/* =====================================================================
   VoltaServices: site.css
   One stylesheet for the whole site.

   Palette   paper + ink, one accent: volt (#D8F53A). Volt is only ever a
             FILL behind ink text. Never volt text on paper (fails contrast).
   Shape     interactive = pill. Panels are double-bezel: shell 26px around
             a 20px core (6px gap keeps the curves concentric). Inputs, icon
             chips and list hover plates 12px. Nothing else.
   Type      Geist for everything; Geist Mono only for small fact labels.
   Theme     follows the OS (prefers-color-scheme). Tokens below.
   Z-index   mobile menu 45 · nav 50 · grain 60 · skip link 70
   ===================================================================== */

:root {
    --paper:      #F2F3EF;
    --surface:    #FAFBF8;
    --surface-2:  #E8EAE4;
    --ink:        #111413;
    --ink-2:      #393E3C;
    --ink-3:      #5A605D;   /* 5.6:1 on --paper */
    --line:       #D5D8D1;
    --line-strong:#B4B9B1;
    --volt:       #D8F53A;
    --volt-ink:   #111413;
    --volt-soft:  rgba(216, 245, 58, 0.28);
    --danger:     #B42318;
    --ok:         #2F6B1F;
    --shadow:     0 1px 1px rgba(17, 20, 19, 0.04), 0 12px 32px -12px rgba(17, 20, 19, 0.14);
    --nav-bg:     rgba(242, 243, 239, 0.82);
    --map-land:   #E3E6DF;
    --map-edge:   #BFC4BB;
    --shell-bg:   rgba(17, 20, 19, 0.035);
    --shell-ring: rgba(17, 20, 19, 0.07);
    --shell-ring-hover: rgba(17, 20, 19, 0.22);
    --core-hi:    rgba(255, 255, 255, 0.9);
    --grain-opacity: 0.035;

    --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Geist Mono", ui-monospace, "Cascadia Code", monospace;

    --r-pill: 999px;
    --r-card: 20px;
    --r-shell: 26px;
    --r-input: 12px;
    --r-chip: 12px;      /* icon chips and list hover plates */

    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(72px, 10vw, 136px);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);

    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper:      #0F1211;
        --surface:    #161A19;
        --surface-2:  #1D2221;
        --ink:        #EEF0EA;
        --ink-2:      #C5CAC3;
        --ink-3:      #939A94;   /* 6.6:1 on --paper */
        --line:       #272D2B;
        --line-strong:#3A413E;
        --volt-soft:  rgba(216, 245, 58, 0.14);
        --danger:     #F97066;
        --ok:         #A6D96A;
        --shadow:     0 1px 1px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
        --nav-bg:     rgba(15, 18, 17, 0.8);
        --map-land:   #1D2221;
        --map-edge:   #3A413E;
        --shell-bg:   rgba(238, 240, 234, 0.035);
        --shell-ring: rgba(238, 240, 234, 0.07);
        --shell-ring-hover: rgba(238, 240, 234, 0.24);
        --core-hi:    rgba(255, 255, 255, 0.06);
        --grain-opacity: 0.05;
    }
}

/* ---------------------------------------------------------------------
   Base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-weight: 560; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--volt); color: var(--volt-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 70;
    background: var(--ink); color: var(--paper);
    padding: 10px 18px; border-radius: var(--r-pill); font-size: 15px; text-decoration: none;
    transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 12px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }
.section--tint + .section, .section + .section.section--tint { padding-top: var(--section); }
.hero + .section { padding-top: 0; }
.page-hero + .section, .page-hero + .wrap { padding-top: clamp(8px, 2vw, 24px); }

.ph-light { line-height: 1; }

/* Film grain. Fixed and non-interactive so it never repaints on scroll. */
body::after {
    content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
    opacity: var(--grain-opacity);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Double bezel: a machined tray (shell) holding a plate (core). */
.shell {
    padding: 6px; border-radius: var(--r-shell);
    background: var(--shell-bg);
    box-shadow: 0 0 0 1px var(--shell-ring), var(--shadow);
}
.core {
    border-radius: var(--r-card); background: var(--surface);
    box-shadow: inset 0 1px 0 var(--core-hi), 0 1px 2px rgba(17, 20, 19, 0.05);
    overflow: hidden; height: 100%;
}
a.shell { display: block; text-decoration: none; transition: transform 0.6s var(--ease-spring), box-shadow 0.4s var(--ease); }
a.shell:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--shell-ring-hover), var(--shadow); }
a.shell:active { transform: translateY(-1px) scale(0.99); }

/* Cursor spotlight on linked panels: a soft volt glow follows the pointer.
   Drawn behind the content (isolated core, negative z-index). */
.spot .core { position: relative; isolation: isolate; }
.spot .core::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--volt-soft), transparent 70%);
    opacity: 0; transition: opacity 0.5s var(--ease);
}
.spot:hover .core::before { opacity: 1; }

/* Type scale */
.display { font-size: clamp(2.6rem, 5.4vw, 4.75rem); letter-spacing: -0.045em; line-height: 1.02; font-weight: 560; }
.h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.h3 { font-size: clamp(1.25rem, 1.6vw, 1.45rem); letter-spacing: -0.02em; line-height: 1.2; }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; letter-spacing: -0.01em; }
.body { color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.label { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--ink-3); }
.mark { background: var(--volt); color: var(--volt-ink); padding: 0 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.text-link {
    text-decoration: underline; text-decoration-color: var(--line-strong);
    text-decoration-thickness: 1px; text-underline-offset: 4px;
    transition: text-decoration-color 0.2s var(--ease);
}
.text-link:hover { text-decoration-color: var(--ink); }

/* ---------------------------------------------------------------------
   Buttons. Pill shape, with the arrow in its own volt bubble.
   --------------------------------------------------------------------- */
.btn {
    --btn-bg: var(--ink); --btn-fg: var(--paper);
    display: inline-flex; align-items: center; gap: 12px;
    min-height: 52px; padding: 6px 6px 6px 24px;
    border-radius: var(--r-pill);
    background: var(--btn-bg); color: var(--btn-fg);
    font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
    text-decoration: none; white-space: nowrap;
    border: 1px solid transparent;
    transition: transform 0.5s var(--ease-spring), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn__bubble {
    display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: var(--r-pill);
    background: var(--volt); color: var(--volt-ink); font-size: 18px;
    transition: transform 0.5s var(--ease-spring);
}
.btn:hover .btn__bubble { transform: translate(3px, -1px) scale(1.06); }
.btn--plain { padding: 6px 24px; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost .btn__bubble { background: var(--surface-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 42px; font-size: 15px; padding: 4px 4px 4px 18px; gap: 10px; }
.btn--sm .btn__bubble { width: 34px; height: 34px; font-size: 16px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* The one eyebrow on the site (home hero). */
.pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 5px 14px 5px 5px; margin-bottom: 26px; border-radius: var(--r-pill);
    background: var(--shell-bg); box-shadow: 0 0 0 1px var(--shell-ring), inset 0 1px 0 var(--core-hi);
    font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: -0.005em;
}
.pill__chip { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-pill); background: var(--volt); color: var(--volt-ink); font-size: 14px; }

.badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13.5px; font-weight: 500;
    padding: 5px 12px; border-radius: var(--r-pill);
    background: var(--volt); color: var(--volt-ink);
}

/* ---------------------------------------------------------------------
   Header & navigation
   --------------------------------------------------------------------- */
.nav-sentinel { position: absolute; top: 0; height: 8px; width: 1px; }
.site-header { position: sticky; top: 0; z-index: 50; padding-top: 14px; pointer-events: none; }
.site-header > * { pointer-events: auto; }
.nav {
    display: flex; align-items: center; gap: 24px;
    width: max-content; max-width: calc(100% - 2 * var(--gutter)); margin-inline: auto;
    height: 60px; padding: 0 8px 0 18px; border-radius: var(--r-pill);
    background: var(--nav-bg);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    box-shadow: 0 0 0 1px var(--shell-ring), inset 0 1px 0 var(--core-hi);
    transition: box-shadow 0.4s var(--ease), transform 0.6s var(--ease-spring);
}
.site-header.is-stuck .nav { box-shadow: 0 0 0 1px var(--shell-ring), inset 0 1px 0 var(--core-hi), var(--shadow); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.03em; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo__box { fill: var(--ink); }
.logo__v { stroke: var(--paper); }
.logo__dot { fill: var(--volt); }

.nav__links { display: flex; align-items: center; gap: 2px; margin-left: 20px; list-style: none; padding: 0; }
.nav__link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: var(--r-pill);
    font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); margin-left: 2px; }
.nav__link .ph-caret-down { font-size: 13px; transition: transform 0.4s var(--ease-spring); }
.nav__link[aria-expanded="true"] .ph-caret-down { transform: rotate(180deg); }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-2); padding: 8px 6px; font-variant-numeric: tabular-nums; }
.nav__phone:hover { color: var(--ink); }
.nav__phone i { font-size: 18px; }
.nav__actions { display: flex; align-items: center; gap: 12px; margin-left: 8px; }

/* Services panel */
.mega {
    position: absolute; left: 50%; top: calc(100% + 10px);
    width: min(1180px, calc(100% - 2 * var(--gutter)));
    opacity: 0; transform: translate(-50%, -8px) scale(0.985); transform-origin: top center;
    pointer-events: none; visibility: hidden;
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    transition: opacity 0.3s var(--ease), transform 0.5s var(--ease-spring), visibility 0s linear 0.5s;
}
.mega.is-open { opacity: 1; transform: translate(-50%, 0) scale(1); pointer-events: auto; visibility: visible; transition-delay: 0s; }
.mega .core { padding-inline: 16px; }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 28px; padding-block: 24px 22px; }
.mega__group h2 { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); padding: 0 12px 10px; }
.mega__group ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.mega__item { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 10px 12px; border-radius: var(--r-chip); text-decoration: none; transition: background-color 0.2s var(--ease); }
.mega__item:hover { background: var(--surface-2); }
.mega__item i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-chip); background: var(--surface-2); font-size: 19px; transition: background-color 0.2s var(--ease); }
.mega__item:hover i { background: var(--volt); color: var(--volt-ink); }
.mega__item b { display: block; font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.mega__item span { display: block; font-size: 13.5px; color: var(--ink-3); line-height: 1.4; margin-top: 2px; }
.mega__all { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 16px 12px 0; margin-top: 12px; }

/* Hamburger + mobile menu */
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-pill); position: relative; margin-left: auto; background: var(--surface-2); }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 0.45s var(--ease-spring), top 0.45s var(--ease-spring); }
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 26px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 0; z-index: 45;
    background: color-mix(in srgb, var(--paper) 84%, transparent);
    -webkit-backdrop-filter: blur(28px) saturate(140%); backdrop-filter: blur(28px) saturate(140%);
    overflow-y: auto; padding: 104px var(--gutter) 40px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-menu > ul { list-style: none; padding: 0; }
.mobile-menu li { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.mobile-menu.is-open li { opacity: 1; transform: none; }
.mobile-menu__big { display: block; font-size: 30px; font-weight: 560; letter-spacing: -0.035em; padding: 10px 0; text-decoration: none; }
.mobile-menu__sub { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; list-style: none; padding: 4px 0 16px; }
.mobile-menu__sub a { display: block; padding: 6px 0; color: var(--ink-2); text-decoration: none; font-size: 15.5px; }
.mobile-menu__foot { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.mobile-menu__foot .btn { justify-content: space-between; }

@media (max-width: 1023px) {
    .nav__links, .nav__actions, .mega { display: none; }
    .nav__toggle { display: block; }
    .nav { width: auto; margin-inline: 12px; max-width: none; padding-right: 8px; }
}
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ---------------------------------------------------------------------
   Breadcrumb
   --------------------------------------------------------------------- */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-3); margin-bottom: 28px; list-style: none; padding: 0; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }

/* ---------------------------------------------------------------------
   Hero (home)
   --------------------------------------------------------------------- */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 17ch; }
.hero .lead { margin-top: 24px; }
.hero .btn-row { margin-top: 36px; }

.map-card { position: relative; padding: clamp(20px, 3vw, 32px); }
.map-card svg { width: 100%; height: auto; max-height: 440px; margin-inline: auto; }
.map-card__land { fill: var(--map-land); stroke: var(--map-edge); stroke-width: 0.8; }
.map-card__ni { fill: var(--map-land); stroke: var(--map-edge); stroke-width: 0.8; opacity: 0.55; }
.map-card__link { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: 2 4; opacity: 0.55; animation: flow 2.4s linear infinite; }
.map-card__node { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; }
.map-card__label--node { font-weight: 500; fill: var(--ink-2); font-size: 8.5px; }
.map-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.map-card__head b { font-weight: 540; letter-spacing: -0.02em; font-size: 16px; }
.map-card__legend { display: flex; gap: 14px; font-size: 13px; color: var(--ink-3); }
.map-card__legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-card__legend i { width: 9px; height: 9px; border-radius: 50%; border: 1.4px solid var(--ink); background: var(--paper); }
.map-card__legend i.hq { background: var(--volt); }
@keyframes flow { to { stroke-dashoffset: -12; } }
.map-card__dot { fill: var(--volt); stroke: var(--ink); stroke-width: 1.5; }
.map-card__pulse { fill: none; stroke: var(--volt); stroke-width: 1.5; transform-origin: center; transform-box: fill-box; animation: pulse 2.8s var(--ease) infinite; }
.map-card__label { font-family: var(--font); font-size: 9px; font-weight: 600; fill: var(--ink); letter-spacing: -0.01em; }
.map-card__label--sub { font-weight: 400; fill: var(--ink-3); }
.map-card__caption { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.map-card__caption i { font-size: 20px; flex: none; margin-top: 1px; }
@keyframes pulse {
    0%   { transform: scale(1);   opacity: 0.9; }
    80%  { transform: scale(3.2); opacity: 0; }
    100% { transform: scale(3.2); opacity: 0; }
}

/* ---------------------------------------------------------------------
   Facts row (big numbers)
   --------------------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.facts > div { padding: 24px 24px 0 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { order: 2; font-size: 15px; color: var(--ink-2); line-height: 1.45; margin-top: 10px; max-width: 26ch; }
.facts dd { font-size: clamp(2.4rem, 4.2vw, 3.6rem); font-weight: 560; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts dd small { font-size: 0.42em; letter-spacing: -0.02em; margin-left: 4px; font-weight: 500; color: var(--ink-3); }
.facts > div { display: flex; flex-direction: column; }

/* ---------------------------------------------------------------------
   Service index (home): sticky title + grouped rows
   --------------------------------------------------------------------- */
.index { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.index__intro { position: sticky; top: 108px; }
.index__intro .body { margin-top: 20px; }
.index__intro .btn { margin-top: 28px; }
.index__group + .index__group { margin-top: 48px; }
.index__group > h3 { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--ink); }
.rows { display: grid; gap: 2px; }
.rows { list-style: none; padding: 0; }
.row {
    display: grid; grid-template-columns: 44px 1fr auto; gap: 20px; align-items: center;
    padding: 16px; margin-inline: -16px; border-radius: var(--r-chip);
    text-decoration: none; position: relative;
    transition: background-color 0.35s var(--ease);
}
.row > i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-chip); background: var(--surface-2); font-size: 22px; transition: background-color 0.3s var(--ease); }
.row > div > b { display: block; font-weight: 500; font-size: 19px; letter-spacing: -0.02em; }
.row > div > span { display: block; color: var(--ink-3); font-size: 15px; margin-top: 2px; line-height: 1.45; }
.row__go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: 17px; transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.5s var(--ease-spring); }
.row:hover { background: var(--surface); box-shadow: 0 0 0 1px var(--shell-ring); }
.row > div { transition: transform 0.6s var(--ease-spring); }
.row:hover > div { transform: translateX(4px); }
.row:hover > i, .row:hover .row__go { background: var(--volt); border-color: var(--volt); color: var(--volt-ink); }
.row:hover .row__go { transform: rotate(-45deg); }

/* ---------------------------------------------------------------------
   Products (two-tile bento)
   --------------------------------------------------------------------- */
.products { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 48px; }
.products > :nth-child(1), .products > :nth-child(4) { grid-column: span 7; }
.products > :nth-child(2), .products > :nth-child(3) { grid-column: span 5; }
.products > :nth-child(n+3) .tile { min-height: 380px; }
.tile--plain p, .tile--tint p { color: var(--ink-2); }
.tile--plain .tile__list li, .tile--tint .tile__list li { background: var(--surface-2); }
.tile--tint { background: var(--surface-2); }
.tile--tint .tile__list li { background: var(--paper); }
.tile--plain .tile__glyph, .tile--tint .tile__glyph { opacity: 0.05; font-size: 240px; right: -30px; bottom: -50px; }
.tile--tint .btn--ghost .btn__bubble { background: var(--paper); }
.tile {
    position: relative; overflow: hidden; isolation: isolate;
    padding: clamp(28px, 4vw, 48px);
    display: flex; flex-direction: column; min-height: 440px;
}
.tile h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); letter-spacing: -0.04em; margin-top: 20px; }
.tile p { margin-top: 14px; max-width: 40ch; font-size: 17px; line-height: 1.55; }
.tile .btn-row { margin-top: auto; padding-top: 36px; }
.tile__glyph { position: absolute; right: -40px; bottom: -60px; font-size: 300px; opacity: 0.09; z-index: -1; transition: transform 1.2s var(--ease); }
.shell:hover .tile__glyph { transform: rotate(-6deg) scale(1.04); }
.tile__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; padding: 0; }
.tile__list li { font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: var(--r-pill); }

.tile--volt { background: var(--volt); color: var(--volt-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.tile--volt p { color: #2C322F; }
.tile--volt .tile__list li { background: rgba(17, 20, 19, 0.08); }
.tile--volt .btn { --btn-bg: #111413; --btn-fg: #F2F3EF; }
.tile--volt .btn--ghost { --btn-bg: transparent; --btn-fg: #111413; border-color: rgba(17, 20, 19, 0.35); }
.tile--volt .btn--ghost:hover { border-color: #111413; }
.tile--volt .btn--ghost .btn__bubble { background: rgba(17, 20, 19, 0.08); color: #111413; }

.tile--ink { background: #151918; color: #EEF0EA; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.tile--ink p { color: #B8BEB7; }
.tile--ink .tile__list li { background: rgba(238, 240, 234, 0.08); }
.tile--ink .btn--ghost { --btn-fg: #EEF0EA; border-color: #3A413E; }
.tile--ink .btn--ghost:hover { border-color: #EEF0EA; }
.tile--ink .btn--ghost .btn__bubble { background: var(--volt); color: var(--volt-ink); }
.tile--ink .tile__glyph { opacity: 0.07; }

/* ---------------------------------------------------------------------
   How it starts (timeline)
   --------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; list-style: none; padding: 0; counter-reset: none; }
.step { position: relative; padding: 36px 32px 0 0; border-top: 1px solid var(--line-strong); }
.step::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); transition: background-color 0.4s var(--ease); }
.step.in::before { background: var(--volt); }
.step h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -0.04em; }
.step p { margin-top: 12px; color: var(--ink-2); max-width: 32ch; }
.step__time { display: block; margin-top: 18px; }

/* ---------------------------------------------------------------------
   Manifesto
   --------------------------------------------------------------------- */
.manifesto { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.manifesto__lines { font-size: clamp(2.4rem, 5.6vw, 5rem); line-height: 1.02; letter-spacing: -0.05em; font-weight: 560; }
.manifesto__lines > span { display: block; }
.manifesto__lines > span:nth-child(2) { color: var(--ink-3); }
.manifesto__lines span:nth-child(3) .mark { padding-inline: 0.04em; }
.manifesto .body { font-size: 18px; }

/* ---------------------------------------------------------------------
   CTA band
   --------------------------------------------------------------------- */
.cta {
    /* Rule: the CTA band always has the strongest contrast against the page.
       Ink on light paper, volt on dark paper. Volt is a spark, not paint. */
    --cta-bg: #151918; --cta-fg: #EEF0EA; --cta-muted: #B8BEB7; --cta-faint: #939A94;
    --cta-btn-bg: var(--volt); --cta-btn-fg: #111413; --cta-bubble-bg: #111413; --cta-bubble-fg: var(--volt);
    --cta-glyph: var(--volt); --cta-glyph-opacity: 0.14;
    position: relative; overflow: hidden; isolation: isolate;
    border-radius: 28px; background: var(--cta-bg); color: var(--cta-fg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), var(--shadow);
    padding: clamp(36px, 6vw, 80px);
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end;
}
@media (prefers-color-scheme: dark) {
    .cta {
        --cta-bg: var(--volt); --cta-fg: #111413; --cta-muted: #2C322F; --cta-faint: #3B423E;
        --cta-btn-bg: #111413; --cta-btn-fg: #F2F3EF; --cta-bubble-bg: var(--volt); --cta-bubble-fg: #111413;
        --cta-glyph: #111413; --cta-glyph-opacity: 0.08;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    }
}
.cta h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); letter-spacing: -0.045em; max-width: 14ch; }
.cta p { margin-top: 18px; font-size: 18px; color: var(--cta-muted); max-width: 40ch; }
.cta__actions { display: grid; gap: 18px; justify-items: start; }
.cta .btn { --btn-bg: var(--cta-btn-bg); --btn-fg: var(--cta-btn-fg); }
.cta .btn .btn__bubble { background: var(--cta-bubble-bg); color: var(--cta-bubble-fg); }
.cta__phone { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 560; letter-spacing: -0.03em; text-decoration: none; font-variant-numeric: tabular-nums; display: inline-flex; gap: 10px; align-items: center; }
.cta__phone:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.cta__hours { font-size: 14.5px; color: var(--cta-faint); }
.cta__glyph { position: absolute; right: 4%; top: -30%; font-size: 420px; color: var(--cta-glyph); opacity: var(--cta-glyph-opacity); z-index: -1; pointer-events: none; }

/* ---------------------------------------------------------------------
   Page hero (inner pages)
   --------------------------------------------------------------------- */
.page-hero { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 104px); }
.page-hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 88px); align-items: end; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin-top: 22px; }
.page-hero .btn-row { margin-top: 32px; }
.page-hero .badge { margin-bottom: 22px; }

.fact-card__head { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.fact-card__head i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-chip); background: var(--volt); color: var(--volt-ink); font-size: 22px; }
.fact-card__head b { font-weight: 500; letter-spacing: -0.01em; }
.fact-card dl { display: grid; }
.fact-card dl > div { padding: 18px 24px; display: grid; gap: 4px; }
.fact-card dl > div + div { border-top: 1px solid var(--line); }
.fact-card dd { font-size: 21px; font-weight: 520; letter-spacing: -0.025em; line-height: 1.25; }

/* ---------------------------------------------------------------------
   Included grid (service pages)
   --------------------------------------------------------------------- */
.split-head { max-width: 720px; }
.split-head .body { margin-top: 18px; }
.included { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; margin-top: 48px; list-style: none; padding: 0; }
.included li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; padding: 26px 0; border-top: 1px solid var(--line); }
.included li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.included i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--volt); color: var(--volt-ink); font-size: 15px; margin-top: 2px; }
.included h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.3; font-weight: 540; }
.included p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }

/* Approach (editorial pull) */
.approach { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.approach p { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.45; letter-spacing: -0.02em; color: var(--ink); }

/* Latency (VoltaVPN) */
.latency { margin-top: 36px; display: grid; gap: 14px; list-style: none; padding: 0; }
.latency li { display: grid; grid-template-columns: 110px 1fr 64px; align-items: center; gap: 16px; font-size: 15px; }
.latency__bar { height: 10px; border-radius: var(--r-pill); background: var(--ink); transform-origin: left; width: calc(var(--ms) * 2.2%); transform: scaleX(0); transition: transform 1.2s var(--ease); }
.latency.in .latency__bar { transform: scaleX(1); }
.latency li:first-child .latency__bar { background: var(--volt); outline: 1px solid var(--ink); }
.latency b { font-weight: 560; font-variant-numeric: tabular-nums; text-align: right; }
.latency .label { display: block; }

/* FAQ */
.faq { max-width: 880px; }
.faq > h2 { margin-bottom: 36px; }
.faq__list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: 15px; transition: transform 0.45s var(--ease-spring), background-color 0.3s var(--ease); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--volt); border-color: var(--volt); color: var(--volt-ink); }
.faq details p { padding: 0 56px 24px 0; color: var(--ink-2); max-width: 64ch; }

/* Related */
.related { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 14px; margin-top: 32px; }
.related > :first-child { grid-row: span 2; }
.related__core { display: flex; flex-direction: column; gap: 10px; padding: 26px; min-height: 180px; }
.related > :first-child .related__core { min-height: 100%; background: var(--surface-2); }
.related__core > i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-chip); background: var(--paper); font-size: 23px; transition: background-color 0.3s var(--ease); }
a.shell:hover .related__core > i { background: var(--volt); color: var(--volt-ink); }
.related__core b { font-weight: 540; font-size: 20px; letter-spacing: -0.025em; margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.related__core b i { font-size: 18px; transition: transform 0.5s var(--ease-spring); }
a.shell:hover .related__core b i { transform: translate(3px, -3px); }
.related > :first-child .related__core b { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.035em; }
.related__core span { color: var(--ink-3); font-size: 15px; line-height: 1.45; max-width: 38ch; }

/* ---------------------------------------------------------------------
   Services index cards
   --------------------------------------------------------------------- */
.catalogue + .catalogue { margin-top: clamp(56px, 7vw, 96px); }
.catalogue__head { display: flex; align-items: baseline; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.catalogue__head .label { margin-left: auto; }
.cards { display: grid; gap: 16px; margin-top: 24px; grid-template-columns: repeat(6, 1fr); }
.cards > * { grid-column: span 3; }
.cards { gap: 14px; }
.cards--4 > :first-child { grid-row: span 2; }
.cards--4 > :last-child { grid-column: span 6; }
.cards--4 > :last-child .card { min-height: 0; }
.cards--5 > * { grid-column: span 2; }
.cards--5 > :first-child { grid-row: span 2; }
.card {
    position: relative; display: flex; flex-direction: column; gap: 12px;
    padding: 26px; min-height: 260px;
}
.card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-chip); background: var(--surface-2); font-size: 24px; transition: background-color 0.3s var(--ease); }
a.shell:hover .card__icon { background: var(--volt); color: var(--volt-ink); }
.card h3 { font-size: 22px; letter-spacing: -0.03em; margin-top: auto; padding-top: 24px; }
.card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.card__fact { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 14px; }
.card__fact span:last-child { font-weight: 500; text-align: right; }
.card .badge { position: absolute; top: 28px; right: 28px; }
.card--product { background: var(--surface-2); }
.card--product .card__icon { background: var(--paper); }

/* Lead card in each group: the ink feature tile. */
.card--lead { background: #151918; color: #EEF0EA; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); isolation: isolate; overflow: hidden; }
.card--lead h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: -0.04em; }
.card--lead p { color: #B8BEB7; }
.card--lead .card__more { color: #EEF0EA; font-size: 17px; line-height: 1.5; letter-spacing: -0.01em; max-width: 44ch; }
.card--lead .card__icon { background: var(--volt); color: var(--volt-ink); }
.card--lead .card__fact { border-top-color: #2C3330; }
.card--lead .muted { color: #939A94; }
@media (prefers-color-scheme: dark) {
    /* On a dark page the ink tile would vanish; lift it and give it a volt edge. */
    .card--lead, .tile--ink { background: #232A27; box-shadow: inset 0 1px 0 rgba(216, 245, 58, 0.45); }
}
.card--lead.card--volt { background: var(--volt); color: var(--volt-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.card--volt p, .card--volt .card__more { color: #2C322F; }
.card--volt .card__icon { background: #111413; color: var(--volt); }
.card--volt .card__fact { border-top-color: rgba(17, 20, 19, 0.18); }
.card--volt .muted { color: #3B423E; }
.card__glyph { position: absolute; right: -30px; bottom: -40px; font-size: 240px; opacity: 0.07; z-index: -1; transition: transform 1.2s var(--ease); }
a.shell:hover .card__glyph { transform: rotate(-6deg) scale(1.04); }

.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin-top: 40px; }
.projects > div { padding: 26px 0; border-top: 1px solid var(--line); }
.projects h3 { font-size: 20px; letter-spacing: -0.025em; font-weight: 540; }
.projects p { margin-top: 8px; color: var(--ink-2); }

/* ---------------------------------------------------------------------
   About
   --------------------------------------------------------------------- */
.story { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.story__text p { font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.story__text p + p { margin-top: 1.1em; }
.story__text p:first-child { font-size: clamp(1.35rem, 2.1vw, 1.7rem); line-height: 1.4; letter-spacing: -0.02em; color: var(--ink); }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 48px; }
.principle { padding: 32px; }
.principle--volt { background: var(--volt); color: var(--volt-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.principle--volt p { color: #2C322F; }
.principle i { font-size: 30px; }
.principle h3 { font-size: 23px; letter-spacing: -0.03em; margin-top: 40px; }
.principle p { margin-top: 10px; color: var(--ink-2); }

/* ---------------------------------------------------------------------
   Contact
   --------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; padding-block: clamp(32px, 5vw, 64px) var(--section); }
.contact h1 { max-width: 12ch; }
.contact .lead { margin-top: 22px; }
.ways { margin-top: 40px; border-top: 1px solid var(--ink); }
.way { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.way i { font-size: 24px; margin-top: 2px; }
.way a, .way b { font-size: 20px; font-weight: 540; letter-spacing: -0.02em; text-decoration: none; font-variant-numeric: tabular-nums; }
.way a:hover { text-decoration: underline; text-underline-offset: 5px; }
.way p { color: var(--ink-3); font-size: 15px; margin-top: 2px; }
.next { margin-top: 40px; }
.next ol { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 14px; }
.next li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--ink-2); }
.next li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 500; color: var(--ink); }

.form-shell { position: sticky; top: 96px; }
.form-card { padding: clamp(24px, 4vw, 44px); }
.form-card h2 { font-size: 28px; letter-spacing: -0.035em; }
.form-card > p { margin-top: 8px; color: var(--ink-3); font-size: 15px; }
.form { display: grid; gap: 20px; margin-top: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; color: var(--ink); }
.field label .opt { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 50px; padding: 12px 16px;
    border-radius: var(--r-input); border: 1px solid var(--line-strong);
    background: var(--paper); color: var(--ink); font-size: 16px;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 21px) 52%, calc(100% - 16px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--volt-soft); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__help { font-size: 13.5px; color: var(--ink-3); }
.field__error { font-size: 14px; color: var(--danger); min-height: 0; }
.field__error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 4px; }
.form__foot p { font-size: 13.5px; color: var(--ink-3); max-width: 30ch; }
.form__alert { padding: 14px 16px; border-radius: var(--r-input); border: 1px solid var(--danger); color: var(--danger); font-size: 15px; }
.form__alert:empty { display: none; }
.btn .spin { display: none; animation: spin 0.9s linear infinite; }
.btn.is-loading .spin { display: block; }
.btn.is-loading .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-done { text-align: left; }
.form-done i { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--volt); color: var(--volt-ink); font-size: 28px; }
.form-done h2 { margin-top: 24px; }
.form-done p { margin-top: 10px; color: var(--ink-2); }

/* ---------------------------------------------------------------------
   Legal prose
   --------------------------------------------------------------------- */
.legal { display: grid; grid-template-columns: 3fr 9fr; gap: clamp(32px, 6vw, 96px); padding-bottom: var(--section); }
.legal__aside { position: sticky; top: 100px; align-self: start; display: grid; gap: 6px; font-size: 15px; }
.legal__aside a { text-decoration: none; color: var(--ink-3); padding: 4px 0; }
.legal__aside a:hover, .legal__aside a[aria-current="page"] { color: var(--ink); }
.prose { max-width: 72ch; color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 26px; letter-spacing: -0.03em; color: var(--ink); margin-top: 2.2em; line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; letter-spacing: -0.02em; color: var(--ink); margin-top: 1.6em; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.prose a:hover { text-decoration-color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose strong { color: var(--ink); font-weight: 560; }
.legal-facts { margin-block: 1.6em; }
/* Legal markup is verbatim, so the bezel is drawn with shadow spreads instead of a wrapper. */
.spec-card, .gdpr-right { border-radius: var(--r-card); background: var(--surface); box-shadow: 0 0 0 6px var(--shell-bg), 0 0 0 7px var(--shell-ring), inset 0 1px 0 var(--core-hi); }
.spec-card { overflow: hidden; margin: 7px; }
.spec-card__row { display: grid; grid-template-columns: minmax(140px, 0.9fr) 1.1fr; gap: 16px; padding: 12px 20px; font-size: 15px; }
.spec-card__row + .spec-card__row { border-top: 1px solid var(--line); }
.spec-card__k { color: var(--ink-3); }
.spec-card__v { color: var(--ink); font-weight: 500; }
.gdpr-rights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 1.6em 7px; }
.gdpr-right { padding: 20px; }
.gdpr-right h3 { margin-top: 0; display: flex; gap: 10px; align-items: center; font-size: 17px; }
.gdpr-right h3 i { font-size: 20px; }
.gdpr-right p { margin-top: 8px; font-size: 15px; }
.legal-related { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------------
   404
   --------------------------------------------------------------------- */
.lost { min-height: 62dvh; display: grid; place-content: center; text-align: center; justify-items: center; gap: 22px; padding-block: var(--section); }
.lost .display { max-width: 14ch; }
.lost .lead { margin-inline: auto; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 64px 32px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 2fr 0.8fr 1.2fr; gap: 40px; }
.footer h2 { font-size: 13.5px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer__services { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.footer a { text-decoration: none; color: var(--ink-2); }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer__about p { color: var(--ink-2); margin-top: 16px; max-width: 34ch; }
.footer__contact li { color: var(--ink-2); }
.footer__phone { font-size: 20px; font-weight: 540; letter-spacing: -0.02em; color: var(--ink) !important; font-variant-numeric: tabular-nums; }
.footer__mark {
    margin-top: 56px; font-size: clamp(48px, 15.2vw, 196px); font-weight: 600; line-height: 0.82;
    letter-spacing: -0.065em; color: var(--surface-2); white-space: nowrap; overflow: hidden;
    user-select: none; padding-bottom: 0.06em;
}
.footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; }

/* Headline word reveal: each word rises out of its own mask. The bottom
   padding keeps descenders (p, y, g) from being clipped by the mask. */
.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.words .w > span { display: inline-block; }

/* ---------------------------------------------------------------------
   Server map (/network). Pins are links to the list below the map, so it
   works without JS; network.js adds the panel and the two views.
   --------------------------------------------------------------------- */
.netmap__core { padding: clamp(20px, 3vw, 32px); }
.netmap__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.netmap__title { font-size: 16px; font-weight: 540; letter-spacing: -0.02em; }
.netmap__views { display: none; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--surface-2); }
.js .netmap__views { display: inline-flex; }
.netmap__views button { padding: 7px 16px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--ink-3); transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.netmap__views button:hover { color: var(--ink); }
.netmap__views button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--shell-ring), 0 1px 2px rgba(17, 20, 19, 0.06); }

.netmap__body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(20px, 3vw, 40px); }
.netmap__stage { align-self: center; }
.netmap__view + .netmap__view { margin-top: 40px; }
.js .netmap__view { display: none; margin: 0; }
.js [data-current="world"] .netmap__view--world,
.js [data-current="uk"] .netmap__view--uk { display: block; animation: netmap-in 0.6s var(--ease) both; }
@keyframes netmap-in { from { opacity: 0; transform: scale(0.985); } }

.netmap__canvas { position: relative; }
.netmap__canvas--uk { max-width: 420px; margin-inline: auto; }
.netmap__canvas--uk svg { width: 100%; height: auto; }
.netmap__land {
    position: absolute; inset: 0; background: color-mix(in srgb, var(--ink-3) 45%, transparent);
    -webkit-mask: var(--land) center / 100% 100% no-repeat;
    mask: var(--land) center / 100% 100% no-repeat;
}
.netmap__links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.netmap__links path { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 2 5; opacity: 0.4; vector-effect: non-scaling-stroke; animation: netmap-flow 2.4s linear infinite; }
@keyframes netmap-flow { to { stroke-dashoffset: -14; } }

/* A pin is anchored on the centre of its dot; the label sits beside it. */
.netmap__pin {
    --dot: 14px;
    position: absolute; left: var(--x); top: var(--y); z-index: 1;
    display: flex; align-items: center; gap: 8px;
    transform: translate(calc(var(--dot) / -2), -50%);
    text-decoration: none; color: var(--ink);
}
.netmap__pin--left { flex-direction: row-reverse; transform: translate(calc(-100% + var(--dot) / 2), -50%); }
.netmap__pin::before { content: ""; position: absolute; top: 50%; left: calc(var(--dot) / 2 - 16px); width: 32px; height: 32px; transform: translateY(-50%); }
.netmap__pin--left::before { left: auto; right: calc(var(--dot) / 2 - 16px); }
.netmap__dot {
    position: relative; flex: none; width: var(--dot); height: var(--dot); border-radius: 50%;
    background: var(--paper); border: 1.6px solid var(--ink);
    transition: transform 0.4s var(--ease-spring), background-color 0.3s var(--ease);
}
.netmap__pin--hq .netmap__dot { background: var(--volt); }
.netmap__pin--hq .netmap__dot::after { content: ""; position: absolute; inset: -1.6px; border-radius: 50%; border: 1.5px solid var(--volt); animation: pulse 2.8s var(--ease) infinite; }
.netmap__label {
    display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
    padding: 3px 10px; border-radius: var(--r-pill);
    background: var(--surface); box-shadow: 0 0 0 1px var(--shell-ring), 0 2px 6px -2px rgba(17, 20, 19, 0.12);
    font-size: 13px; font-weight: 540; letter-spacing: -0.01em;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.netmap__count { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.netmap__pin:hover { z-index: 2; }
.netmap__pin:hover .netmap__dot, .netmap__pin.is-active .netmap__dot { transform: scale(1.25); background: var(--volt); }
.netmap__pin.is-active { z-index: 3; }
.netmap__pin.is-active .netmap__label { background: var(--ink); color: var(--paper); box-shadow: none; }
.netmap__pin.is-active .netmap__count { color: inherit; opacity: 0.7; }
.netmap__pin:focus-visible { outline: none; }
.netmap__pin:focus-visible .netmap__dot { outline: 2px solid var(--ink); outline-offset: 3px; }

/* UK view: the drawn map already has dots and labels, so its pins are
   invisible hit areas that light up on hover and when picked. */
.netmap__pin--ghost { width: 30px; height: 30px; border-radius: 50%; transform: translate(-50%, -50%); }
.netmap__pin--ghost::before { display: none; }
.netmap__pin--ghost::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1.6px solid transparent; transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease); }
.netmap__pin--ghost:hover::after, .netmap__pin--ghost.is-active::after { border-color: var(--ink); background: var(--volt-soft); }
.netmap__pin--ghost:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }

.netmap__panel { display: none; }
.js .netmap__panel { display: block; padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); max-height: 600px; overflow-y: auto; overscroll-behavior: contain; }
.netmap__intro { display: grid; gap: 10px; align-content: center; min-height: 100%; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.netmap__intro i { font-size: 28px; color: var(--ink); }
.netmap__intro b { color: var(--ink); font-weight: 540; }
.netmap__panel .place { grid-template-columns: 1fr; gap: 18px; padding: 0; border: 0; }
.netmap__panel .place__head h3 { font-size: 20px; }
.netmap__panel .servers { grid-template-columns: 1fr; }
.netmap__panel .server { background: var(--paper); }
.netmap__panel h3:focus, .netmap__panel h4:focus { outline: none; }

/* The list under the map */
.places { margin-top: 48px; border-bottom: 1px solid var(--line); }
.place { display: grid; grid-template-columns: 220px 1fr; gap: 20px 48px; padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.place__head h3 { font-size: 22px; letter-spacing: -0.025em; font-weight: 540; }
.place__head .label { display: block; margin-top: 6px; }
.place__cities { display: grid; gap: 28px; }
.place__city { scroll-margin-top: 96px; }
.place__city h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 16px; font-weight: 540; letter-spacing: -0.015em; }
.place__city h4 i { font-size: 18px; color: var(--ink-3); }
.place__city h4 .badge { padding: 2px 9px; font-size: 12px; }
.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; list-style: none; padding: 0; }
.server { padding: 18px 20px; border-radius: var(--r-chip); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.server__name { font-family: var(--mono); font-size: 13.5px; font-weight: 500; }
.server p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.server__services { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; list-style: none; padding: 0; }
.server__services a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px 4px 8px; border-radius: var(--r-pill); background: var(--surface-2);
    font-size: 13px; font-weight: 500; text-decoration: none;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.server__services a:hover { background: var(--volt); color: var(--volt-ink); }
.server__services i { font-size: 15px; }

@media (max-width: 1023px) {
    .netmap__body { grid-template-columns: 1fr; }
    .js .netmap__panel { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); max-height: none; }
    .netmap__intro { min-height: 0; }
}
@media (max-width: 767px) {
    .place { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 639px) {
    .netmap__pin { --dot: 12px; }
    .netmap__label { display: none; }
}

/* ---------------------------------------------------------------------
   Motion. Content is visible without JS; .js enables the reveal.
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal { opacity: 0; transform: translateY(24px); filter: blur(4px); transition: opacity 0.9s var(--ease), transform 1s var(--ease), filter 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
    .js .reveal.in { opacity: 1; transform: none; filter: none; }
    .js .rise { animation: rise 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 60ms); }
    .js .words .w > span { animation: word 1.1s var(--ease-spring) both; animation-delay: calc(var(--w) * 55ms + 120ms); }
    @keyframes word { from { transform: translateY(105%); } }
    @keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }
}
@media (prefers-reduced-transparency: reduce) {
    .nav, .mega, .mobile-menu { -webkit-backdrop-filter: none; backdrop-filter: none; }
    .nav { background: var(--surface); }
    .mobile-menu { background: var(--paper); }
    body::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
    .latency__bar { transform: none; }
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1023px) {
    .hero__grid, .page-hero__grid, .index, .manifesto, .cta, .approach, .story, .contact, .legal { grid-template-columns: 1fr; }
    .index__intro, .form-shell, .legal__aside { position: static; }
    .legal__aside { display: none; }
    .facts { grid-template-columns: repeat(2, 1fr); }
    .facts > div:nth-child(3) { border-left: 0; padding-left: 0; }
    .facts > div:nth-child(n+3) { margin-top: 24px; border-top: 1px solid var(--line); }
    .products { grid-template-columns: 1fr; }
    .products > * { grid-column: auto !important; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { max-width: 16ch; }
    .map-card svg { max-height: 420px; }
}
@media (max-width: 767px) {
    body { font-size: 16px; }
    .facts { grid-template-columns: 1fr; }
    .facts > div, .facts > div + div { padding: 20px 0 0; border-left: 0; }
    .facts > div + div { margin-top: 20px; border-top: 1px solid var(--line); }
    .steps { grid-template-columns: 1fr; gap: 36px; border-left: 1px solid var(--line-strong); margin-left: 5px; }
    .step { border-top: 0; padding: 0 0 0 28px; }
    .step::before { top: 6px; left: -6px; }
    .included, .projects, .principles, .gdpr-rights-grid, .related, .form__row { grid-template-columns: 1fr; }
    .related > :first-child { grid-row: auto; }
    .included li:last-child:nth-child(odd) { grid-column: auto; }
    .cards > *, .cards--4 > *, .cards--5 > * { grid-column: 1 / -1; grid-row: auto; }
    .tile { min-height: 380px; }
    .row { grid-template-columns: 40px 1fr; gap: 14px; }
    .row > i { width: 40px; height: 40px; }
    .row__go { display: none; }
    .footer__grid { grid-template-columns: 1fr; }
    .latency li { grid-template-columns: 84px 1fr 56px; }
    .faq details p { padding-right: 0; }
    .btn-row .btn { width: 100%; justify-content: space-between; }
}
