/* x01.ro — "glass over the network".
   Monochrome: neutral greys in both themes, no hue. The "signal" token is
   the strongest grey (buttons, markers, links); the Romanian flag in the
   logo is the only colour on the page. Glass is reserved for the chrome;
   everything else stays flat so the glass means something. */

:root {
  --mist: #f4f4f3;
  --mist-deep: #e9e9e7;
  --ink: #171717;
  --slate: #525252;
  --line: rgba(0, 0, 0, 0.1);
  --signal: #262626;
  --signal-ink: #ffffff;
  --signal-soft: rgba(0, 0, 0, 0.06);
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --glass-shade: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 18px 50px -24px rgba(0, 0, 0, 0.22);
  --route: rgba(0, 0, 0, 0.06);
  --field-a: transparent;
  --field-b: transparent;

  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;

  /* Type scale: 1.25 (major third) from 1rem. */
  --t-sm: 0.875rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: 1.5625rem;
  --t-2xl: 1.953rem;
  --t-3xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --t-hero: clamp(2.6rem, 1.3rem + 5.2vw, 5.2rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --radius-panel: 22px;
  --radius-control: 999px;
  --solid: #ffffff;
  color-scheme: light;
}

/* Dark palette: follows the system unless the visitor picked a theme with
   the switch (stored by theme.js as data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mist: #161616;
    --mist-deep: #1c1c1c;
    --ink: #ecebe8;
    --slate: #9b9a96;
    --line: rgba(255, 255, 255, 0.08);
    --signal: #d6d6d3;
    --signal-ink: #161616;
    --signal-soft: rgba(255, 255, 255, 0.07);
    --glass: rgba(255, 255, 255, 0.035);
    --glass-strong: rgba(30, 30, 30, 0.92);
    --glass-edge: rgba(255, 255, 255, 0.09);
    --glass-shade: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 20px 50px -30px rgba(0, 0, 0, 0.8);
    --route: rgba(255, 255, 255, 0.04);
    --field-a: transparent;
    --field-b: transparent;
    --solid: #1e1e1e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --mist: #161616;
  --mist-deep: #1c1c1c;
  --ink: #ecebe8;
  --slate: #9b9a96;
  --line: rgba(255, 255, 255, 0.08);
  --signal: #d6d6d3;
  --signal-ink: #161616;
  --signal-soft: rgba(255, 255, 255, 0.07);
  --glass: rgba(255, 255, 255, 0.035);
  --glass-strong: rgba(30, 30, 30, 0.92);
  --glass-edge: rgba(255, 255, 255, 0.09);
  --glass-shade: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 20px 50px -30px rgba(0, 0, 0, 0.8);
  --route: rgba(255, 255, 255, 0.04);
  --field-a: transparent;
  --field-b: transparent;
  --solid: #1e1e1e;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* Author display rules (e.g. .cookie-notice { display: grid }) would
   otherwise override the hidden attribute. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  position: relative;
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 var(--t-md)/1.55 var(--body);
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
/* The ground: two soft fields of light and a faint drawing of network
   routes. Fixed, so the glass panels have something to frost. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: max(100%, 100vh);
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 85% -10%, var(--field-a), transparent 60%),
    radial-gradient(50rem 36rem at -10% 30%, var(--field-b), transparent 60%),
    url("../img/routes.svg") center top / 1400px auto no-repeat,
    var(--mist);
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--signal); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-hero); font-weight: 760; letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-xl); letter-spacing: -0.015em; line-height: 1.2; }
ul { margin: 0; padding: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--ink); color: var(--mist); padding: 0.5rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 0.5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Chrome: top bar + glass navigation ───────────────────────────────── */
.topbar { font-size: var(--t-sm); color: var(--slate); }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 1.5rem; padding-block: 0.55rem; flex-wrap: wrap; }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.nav {
  position: sticky;
  top: 0.75rem;
  z-index: 50;
  margin-top: 0.25rem;
}
.nav .bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.6rem 0.6rem 0.6rem 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-control);
  box-shadow: var(--glass-shade);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 28px; width: auto; }
.brand { position: relative; }
.brand .on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .on-light { display: none; }
  :root:not([data-theme="light"]) .brand .on-dark { display: block; }
}
:root[data-theme="dark"] .brand .on-light { display: none; }
:root[data-theme="dark"] .brand .on-dark { display: block; }
/* The flag in the logo: stripes rise in once on load, then a slow sheen
   passes down it now and then. */
.brand { display: inline-flex; align-items: center; gap: 4px; }
.brand .flag { flex: none; display: block; overflow: visible; }
.brand .stripe { transform-box: fill-box; transform-origin: 50% 100%; }
.brand .sheen { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .brand .stripe { animation: stripe-in 0.7s cubic-bezier(.2,.8,.2,1) both; }
  .brand .s1 { animation-delay: 0.15s; }
  .brand .s2 { animation-delay: 0.3s; }
  .brand .s3 { animation-delay: 0.45s; }
  .brand .sheen { animation: sheen 7s ease-in-out 1.4s infinite; }
}
@keyframes stripe-in { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@keyframes sheen {
  0% { transform: translateY(0); opacity: 0; }
  6% { opacity: 1; }
  22% { transform: translateY(152px); opacity: 1; }
  26%, 100% { transform: translateY(152px); opacity: 0; }
}
.menu { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; list-style: none; }
.menu > li { position: relative; }
.menu a, .menu button {
  font: 500 var(--t-md) var(--body);
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-control);
  cursor: pointer;
}
.menu a:hover, .menu button:hover, .menu a[aria-current="page"] { background: var(--signal-soft); color: var(--ink); }
.menu button::after { content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.45em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-0.2em) rotate(45deg); transition: transform 0.2s; }
.has-sub > button[aria-expanded="true"]::after { transform: translateY(0.05em) rotate(225deg); }
@media (hover: hover) and (min-width: 62.01rem) { .has-sub:hover > button::after { transform: translateY(0.05em) rotate(225deg); } }
.menu .tools { display: flex; align-items: center; gap: 0.25rem; margin-left: 0.25rem; padding-left: 0.5rem; border-left: 1px solid var(--line); }
.menu .lang { font-weight: 600; font-size: var(--t-sm); letter-spacing: 0.02em; padding: 0.5rem 0.65rem; }
.menu .theme { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; }
.menu .theme::after { content: none; }
.theme svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme .i-moon { display: none; }
}
:root[data-theme="dark"] .theme .i-sun { display: block; }
:root[data-theme="dark"] .theme .i-moon { display: none; }
/* Solid panel (not glass): text behind it must never show through. */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: -0.5rem;
  width: 23rem;
  list-style: none;
  padding: 0.5rem;
  margin-top: 0.5rem;
  background: var(--solid);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.35);
}
/* Bridge the gap between button and panel so the hover doesn't drop. */
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 0.75rem; }
.has-sub > button[aria-expanded="true"] + .submenu { display: block; }
@media (hover: hover) and (min-width: 62.01rem) {
  .has-sub:hover > .submenu, .has-sub:focus-within > .submenu { display: block; }
}
.submenu a { display: block; border-radius: 12px; padding: 0.65rem 0.8rem; }
.submenu strong { display: block; font-weight: 600; }
.submenu span { display: block; font-size: var(--t-sm); color: var(--slate); line-height: 1.4; margin-top: 0.1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 600 var(--t-md) var(--body);
  text-decoration: none;
  padding: 0.75rem 1.3rem;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-signal { background: var(--signal); color: var(--signal-ink); }
.btn-signal:hover { background: color-mix(in srgb, var(--signal) 86%, var(--ink)); color: var(--signal-ink); }
.btn-quiet { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-quiet:hover { border-color: var(--signal); color: var(--ink); }
.nav .btn { padding: 0.6rem 1.1rem; }
.menu-toggle { display: none; }

@media (max-width: 62rem) {
  .menu-toggle {
    display: inline-flex; margin-left: auto; align-items: center; gap: 0.5rem;
    font: 600 var(--t-md) var(--body); color: var(--ink);
    background: none; border: 1px solid var(--line); border-radius: var(--radius-control); padding: 0.5rem 1rem; cursor: pointer;
  }
  .nav .bar { flex-wrap: wrap; border-radius: 26px; }
  .menu, .nav .bar > .btn { display: none; }
  .nav.open .menu { display: flex; flex-direction: column; align-items: stretch; width: 100%; margin: 0.25rem 0 0.25rem; }
  .nav.open .bar > .btn { display: inline-flex; width: 100%; justify-content: center; margin-bottom: 0.25rem; }
  .submenu { position: static; width: auto; box-shadow: none; background: transparent; border: 0; padding: 0 0 0 0.75rem; margin: 0; }
  .menu .tools { border-left: 0; padding-left: 0; margin: 0.25rem 0 0; }
  .menu .tools .lang, .menu .tools .theme { width: auto; }
  .menu a, .menu button { width: 100%; text-align: left; }
}

/* ── Sections ─────────────────────────────────────────────────────────── */
main { display: block; }
.section { padding-block: clamp(2rem, 1.25rem + 3vw, 3.5rem); }
.section-head { display: grid; gap: 0.5rem; max-width: 46rem; margin-bottom: clamp(1rem, 0.6rem + 1.2vw, 1.5rem); }
.section-head p { color: var(--slate); font-size: var(--t-lg); line-height: 1.5; }
.lede { font-size: var(--t-lg); color: var(--slate); line-height: 1.55; max-width: 38rem; }

/* Hero: the headline carries the page; the glass panel beside it is a
   plain-language statement of what we look after, styled like a status
   board — the one place the glass is allowed to be the subject. */
.hero { padding-block: clamp(3rem, 2rem + 6vw, 6.5rem) clamp(3rem, 2rem + 4vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: end; }
.hero h1 { max-width: 13ch; }
.hero .lede { margin-top: 1.5rem; }
.hero .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }
.status {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-panel);
  box-shadow: var(--glass-shade);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  padding: 1.25rem 1.4rem 1.4rem;
}
.status h2 { font-family: var(--body); font-size: var(--t-sm); font-weight: 600; letter-spacing: 0; color: var(--slate); margin-bottom: 0.6rem; }
.status ul { list-style: none; display: grid; }
.status li { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.8rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.status li:first-child { border-top: 0; }
.status .led { width: 0.6rem; height: 0.6rem; margin-top: 0.45rem; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.status strong { font-weight: 600; }
.status span:not(.led) { grid-column: 2; color: var(--slate); font-size: var(--t-sm); line-height: 1.45; }
@media (prefers-reduced-motion: no-preference) {
  .status .led { animation: link 3.2s ease-in-out infinite; }
  .status li:nth-child(2) .led { animation-delay: 0.8s; }
  .status li:nth-child(3) .led { animation-delay: 1.6s; }
  .status li:nth-child(4) .led { animation-delay: 2.4s; }
}
@keyframes link { 0%, 82%, 100% { opacity: 1; } 88% { opacity: 0.35; } 94% { opacity: 1; } }
@media (max-width: 52rem) { .hero .wrap { grid-template-columns: 1fr; } }

/* Partner strip: proof, kept quiet (monochrome until hovered). */
.partners-strip { padding-block: 1.5rem 0; }
.partners-strip p { color: var(--slate); font-size: var(--t-sm); margin-bottom: 1.25rem; }
/* Partner logos are single-colour masks (scripts/prepare-logos.py) painted
   with the page's own ink, so they sit in the glass like type, in both
   themes. Proportions come from logos.css, generated by the build. */
.logo {
  display: block;
  height: calc(var(--lh, 26px) * var(--optical, 1));
  background-color: var(--slate);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: left center; mask-position: left center;
  transition: background-color 0.2s;
}
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 2.4rem; list-style: none; }
.logos a:hover .logo, .logos a:focus-visible .logo { background-color: var(--signal); }
/* Optical sizing: long, heavy wordmarks look bigger than compact marks at
   the same height, so each logo gets a correction factor. */
.logo-bitdefender { --optical: 0.8; }
.logo-acronis { --optical: 0.82; }
.logo-google-workspace { --optical: 0.86; }
.logo-microsoft { --optical: 0.92; }
.logo-1password, .logo-nordlayer, .logo-check-point, .logo-cyberfox { --optical: 0.95; }
.logo-cisco-duo { --optical: 1.08; }
.logo-veeam, .logo-adobe { --optical: 0.98; }

/* Problems: three plain statements on a ruled list, not cards. */
.problems { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.problems li { padding: 1.5rem 1.5rem 0 0; display: grid; gap: 0.6rem; align-content: start; }
.problems li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.problems p { color: var(--slate); }
@media (max-width: 52rem) {
  .problems { grid-template-columns: 1fr; }
  .problems li, .problems li + li { padding: 1.25rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Services index: a table of contents for the business, with the one
   that brings most people here (Managed IT) given the wide row. */
.services { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; }
.services li { background: var(--mist); }
.services li:first-child { grid-column: 1 / -1; }
.services a { display: grid; gap: 0.55rem; padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); text-decoration: none; height: 100%; }
.services a:hover { background: var(--mist-deep); color: var(--ink); }
.services li:first-child a { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 3rem; align-items: start; }
.services li:first-child h3 { font-size: var(--t-2xl); }
.services p { color: var(--slate); }
.services .more { font-weight: 600; color: var(--signal); font-size: var(--t-sm); margin-top: 0.4rem; }
@media (max-width: 52rem) {
  .services { grid-template-columns: 1fr; }
  .services li:first-child a { grid-template-columns: 1fr; }
}

/* Why us: definition list, two columns. */
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 3rem; margin: 0; }
.reasons div { display: grid; gap: 0.25rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.reasons dt { font-family: var(--display); font-weight: 650; font-size: var(--t-lg); letter-spacing: -0.01em; }
.reasons dd { margin: 0; color: var(--slate); }
@media (max-width: 52rem) { .reasons { grid-template-columns: 1fr; } }

/* Process: a real sequence, so it's numbered. */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 0.5rem; align-content: start; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 700; font-size: var(--t-3xl); line-height: 1; color: var(--signal); font-variant-numeric: tabular-nums; }
.steps p { color: var(--slate); }
@media (max-width: 60rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .steps { grid-template-columns: 1fr; } }

/* Feature lists on inner pages. */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.25rem, 0.8rem + 3vw, 3.5rem); align-items: start; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; display: grid; gap: 0.55rem; }
.ticks li { display: grid; grid-template-columns: 1.2rem 1fr; gap: 0.75rem; }
.ticks li::before { content: ""; width: 0.55rem; height: 0.55rem; margin-top: 0.55rem; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.ticks strong { font-weight: 600; }
.ticks span { color: var(--slate); }
.blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 3rem; }
.blocks section { display: grid; gap: 0.4rem; align-content: start; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.blocks p { color: var(--slate); }
@media (max-width: 52rem) { .blocks { grid-template-columns: 1fr; } }

/* Page header for inner pages. */
.page-head { padding-block: clamp(1.5rem, 1rem + 2vw, 2.75rem) clamp(0.75rem, 0.5rem + 0.75vw, 1.25rem); }
.page-head h1 { font-size: var(--t-3xl); font-weight: 720; letter-spacing: -0.03em; max-width: 20ch; line-height: 1.04; }
.page-head .lede { margin-top: 0.75rem; }
.crumbs { font-size: var(--t-sm); color: var(--slate); margin-bottom: 0.75rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Partners page. */
.partner-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; }
.partner-list li { background: var(--mist); padding: 1.1rem 1.3rem; display: grid; gap: 0.45rem; align-content: start; }
.partner-list li > .logo { --lh: 30px; background-color: var(--ink); }
.partner-list .wordmark { font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 30px; letter-spacing: -0.02em; color: var(--ink); }
.partner-list .logos { gap: 1rem 2rem; margin-top: 0.4rem; }
.partner-list .logos .logo { --lh: 22px; background-color: var(--slate); }
.partner-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.partner-list p { color: var(--slate); }
.partner-list .area { font-size: var(--t-sm); color: var(--slate); font-weight: 600; }
@media (max-width: 52rem) { .partner-list { grid-template-columns: 1fr; } }

/* Closing call to action: the second piece of glass. */
.closing .panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.25rem, 0.9rem + 1.5vw, 2rem);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-panel);
  box-shadow: var(--glass-shade);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}
.closing h2 { font-size: var(--t-2xl); }
.closing p { color: var(--slate); margin-top: 0.5rem; max-width: 40rem; }
.closing .actions { display: flex; flex-direction: column; gap: 0.6rem; align-items: stretch; }
@media (max-width: 52rem) { .closing .panel { grid-template-columns: 1fr; } .closing .actions { flex-direction: row; flex-wrap: wrap; } }

/* Contact. */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; }
@media (max-width: 52rem) { .contact-grid { grid-template-columns: 1fr; } }
form { display: grid; gap: 0.8rem; }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 34rem) { .field-row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: var(--t-sm); }
label .opt { font-weight: 400; color: var(--slate); }
input, select, textarea {
  font: 400 var(--t-md) var(--body);
  color: var(--ink);
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  width: 100%;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--signal); outline-offset: 1px; border-color: transparent; }
.form-note { font-size: var(--t-sm); color: var(--slate); }
.form-status { font-weight: 600; min-height: 1.6em; }
.form-status.ok { color: var(--signal); }
.form-status.err { color: #c2412d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-status.err { color: #ff8a73; } }
:root[data-theme="dark"] .form-status.err { color: #ff8a73; }
.aside-card { display: grid; gap: 1.25rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.aside-card dl { display: grid; gap: 1rem; margin: 0; }
.aside-card dt { font-size: var(--t-sm); color: var(--slate); }
.aside-card dd { margin: 0.15rem 0 0; font-weight: 600; }

/* Footer. */
.footer { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); border-top: 1px solid var(--line); padding-block: 1.75rem 1.25rem; font-size: var(--t-sm); color: var(--slate); }
.footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1.5rem 2rem; }
.footer h2 { font-family: var(--body); font-size: var(--t-sm); font-weight: 600; letter-spacing: 0; color: var(--ink); margin-bottom: 0.5rem; }
.footer ul { list-style: none; display: grid; gap: 0.3rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .brand { margin-bottom: 1rem; }
.footer .brand img { height: 26px; }
.footer .legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; justify-content: space-between; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.footer .company { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.anpc { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.anpc a { display: inline-block; border: 1px solid var(--line); border-radius: 8px; padding: 0.35rem 0.7rem; }
@media (max-width: 52rem) { .footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .footer .cols { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Phones: the route drawing would run behind text and form fields. */
@media (max-width: 52rem) {
  body::before {
    background:
      radial-gradient(40rem 30rem at 90% -10%, var(--field-a), transparent 60%),
      radial-gradient(30rem 24rem at -20% 20%, var(--field-b), transparent 60%),
      var(--mist);
  }
}

/* ── Moving logo strip ─────────────────────────────────────────────────── */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 0.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 3.25rem; align-items: center; list-style: none; padding-right: 3.25rem; }
.marquee-track .logo { --lh: 26px; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; width: auto; gap: 1.5rem 2.5rem; }
  .marquee-track[aria-hidden="true"] { display: none; }
}
.marquee-label { color: var(--slate); font-size: var(--t-sm); margin-bottom: 0.5rem; }

/* ── Expand (details/summary) ──────────────────────────────────────────── */
.expand { border-top: 1px solid var(--line); }
.expand:last-child { border-bottom: 1px solid var(--line); }
.expand summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.25rem;
  font-family: var(--display);
  font-weight: 650;
  font-size: var(--t-lg);
  letter-spacing: -0.01em;
}
.expand summary::-webkit-details-marker { display: none; }
.expand summary::after {
  content: "";
  flex: none;
  width: 0.6rem; height: 0.6rem;
  border-right: 1.6px solid var(--slate);
  border-bottom: 1.6px solid var(--slate);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s;
}
.expand[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.expand summary:hover { color: var(--signal); }
.expand-body { padding: 0 0.25rem 0.9rem; display: grid; gap: 0.5rem; color: var(--slate); max-width: 48rem; }
.expand-body ul { display: grid; gap: 0.45rem; padding-left: 1.1rem; }
.expand-body strong { color: var(--ink); font-weight: 600; }
.expands { max-width: 56rem; }

/* ── Home: hero ── */
.hero-home { padding-block: clamp(1.75rem, 1rem + 2.5vw, 3rem) clamp(1rem, 0.6rem + 1.2vw, 1.75rem); }
.hero-home .wrap { display: block; }
.hero-home h1 { font-size: clamp(2.4rem, 1.3rem + 4.2vw, 4.6rem); max-width: 18ch; }
.hero-home .lede { max-width: 44rem; }
.hero-home .lede { margin-top: 0.9rem; }
.hero-home .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* ── Home: compact service list ────────────────────────────────────────── */
.svc { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; }
.svc > li { background: var(--mist); }
.svc > li.featured { grid-column: 1 / -1; background: linear-gradient(120deg, var(--signal-soft), transparent 70%), var(--mist); }
.svc details { height: 100%; }
.svc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1rem; padding: 0.95rem 1.3rem; }
.svc summary::-webkit-details-marker { display: none; }
.svc summary h3 { font-size: var(--t-lg); }
.svc .featured summary h3 { font-size: var(--t-2xl); }
.svc summary .blurb { grid-column: 1; color: var(--slate); }
.svc summary::after {
  content: ""; grid-row: 1; grid-column: 2; align-self: center;
  width: 0.55rem; height: 0.55rem;
  border-right: 1.6px solid var(--slate); border-bottom: 1.6px solid var(--slate);
  transform: rotate(45deg); transition: transform 0.2s;
}
.svc details[open] summary::after { transform: rotate(225deg); }
.svc summary:hover h3 { color: var(--signal); }
.svc .svc-body { padding: 0 1.3rem 1rem; display: grid; gap: 0.5rem; color: var(--slate); }
.svc .svc-body ul { display: grid; gap: 0.35rem; padding-left: 1.1rem; }
.svc .svc-body a { font-weight: 600; color: var(--signal); text-decoration: none; }
.svc .svc-body a:hover { text-decoration: underline; }
@media (max-width: 52rem) { .svc { grid-template-columns: 1fr; } }

/* ── Home: approach in one row ─────────────────────────────────────────── */
.approach { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem; counter-reset: step; }
.approach li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.9rem; align-items: start; }
.approach li::before { content: counter(step); grid-row: span 2; font-family: var(--display); font-weight: 700; font-size: var(--t-2xl); line-height: 1; color: var(--signal); }
.approach strong { font-weight: 600; }
.approach span { color: var(--slate); font-size: var(--t-sm); }
@media (max-width: 52rem) { .approach { grid-template-columns: 1fr; } }
.section-tight { padding-block: clamp(1rem, 0.75rem + 1vw, 1.75rem); }
.legal-doc { max-width: 46rem; display: grid; gap: 0.6rem; }
.legal-doc h2 { font-size: var(--t-xl); margin-top: 0.6rem; }
.legal-doc h3 { font-size: var(--t-lg); margin-top: 0.25rem; }
.legal-doc p, .legal-doc li { color: var(--slate); }
.legal-doc ul { display: grid; gap: 0.25rem; padding-left: 1.2rem; }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.legal-doc th, .legal-doc td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-doc th { color: var(--ink); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.updated { font-size: var(--t-sm); color: var(--slate); }

.footer .sal { display: inline-block; margin-top: 1rem; }
.footer .sal img { display: block; width: 201px; height: 50px; }
.footer .sal .on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer .sal .on-light { display: none; }
  :root:not([data-theme="light"]) .footer .sal .on-dark { display: block; }
}
:root[data-theme="dark"] .footer .sal .on-light { display: none; }
:root[data-theme="dark"] .footer .sal .on-dark { display: block; }

/* Cookie notice: a small glass card, bottom left; never covers the page. */
.cookie-notice {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: min(26rem, calc(100% - 2rem));
  display: grid;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  background: var(--solid);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.45);
  font-size: var(--t-sm);
}
.cookie-notice p { color: var(--slate); }
.cookie-notice a { color: var(--ink); }
.cookie-notice .btn { justify-self: start; padding: 0.55rem 1.1rem; font-size: var(--t-sm); }
.actions-row { margin-top: 1.75rem; }

/* Compact pages: tighter section heads inside tight sections. */
.section-tight .section-head { margin-bottom: clamp(0.75rem, 0.5rem + 0.8vw, 1.25rem); }
.section-tight + .section-tight { padding-top: 0.5rem; }

/* The closing call to action sits close to the content above it. */
.section.closing { padding-block: clamp(1rem, 0.75rem + 1vw, 1.75rem) 0; }

/* Home: the first screen ends at the logo strip. site.js sets --chrome to
   the real height of the top bar and navigation; 7rem is the fallback. */
.first-screen { display: flex; flex-direction: column; min-height: calc(100svh - var(--chrome, 7rem)); }
.first-screen .hero-home { flex: 1; display: flex; align-items: center; }
.first-screen > .section-tight { padding-bottom: clamp(1.25rem, 1rem + 1vw, 2rem); }
@supports (height: 100dvh) { .first-screen { min-height: calc(100dvh - var(--chrome, 7rem)); } }
