/* ════════════════════════════════════════════════════════════
   VAULT homepage — Swiss, editorial
   White ground · one variable grotesque (Archivo) + system mono for data
   One accent (Swiss Red) · hairlines · a drawn vault door, no stock imagery
   Scoped to body.home; loaded after style.css (which still styles
   the shared chat widget).
   ════════════════════════════════════════════════════════════ */

/* ─── Archivo, self-hosted (SIL OFL; see /fonts/Archivo-OFL.txt) ──
   One variable file per script range carries both axes: wght 100–900, wdth 62–125%.
   Copied from @fontsource-variable/archivo by `npm run fonts`. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"),
       url("/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Arial sized to Archivo's metrics so the swap doesn't shift the layout */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  size-adjust: 101%;
  ascent-override: 88%;
  descent-override: 21%;
  line-gap-override: 0%;
}

body.home {
  --sw-white: #FFFFFF;
  --sw-paper: #F7F7F8;
  --sw-ink: #111111;
  --sw-ink-2: #55555C;
  --sw-rule: #D9D9DE;
  --sw-red: #E4002B;

  /* One variable neo-grotesque (Archivo: wght 100–900, wdth 62–125%).
     Roles differ only by width and weight — the single-family Swiss rule. */
  --sw-sans: "Archivo", "Archivo Fallback", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sw-width-text: 100%;
  --sw-width-display: 92%;
  --sw-width-numeral: 62%;
  --sw-width-label: 112%;
  --sw-width-wordmark: 125%;
  --sw-weight-text: 400;
  --sw-weight-strong: 650;
  --sw-weight-display: 800;

  --sw-gutter: clamp(16px, 3vw, 40px);
  --sw-col-gap: clamp(12px, 1.6vw, 24px);
  --sw-section: clamp(72px, 10vw, 144px);

  --sw-text-sm: 0.8125rem;
  --sw-text-base: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --sw-text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --sw-text-h2: clamp(2rem, 1.2rem + 3.2vw, 4rem);
  --sw-text-hero: clamp(2.75rem, 1rem + 7.2vw, 8.25rem);
  --sw-text-hero-title: clamp(2.25rem, 0.75rem + 4.2vw, 5rem);
  --sw-text-figure: clamp(2.5rem, 1.4rem + 4.4vw, 5.5rem);

  --sw-ease: cubic-bezier(0.2, 0, 0, 1);

  background: var(--sw-white);
  color: var(--sw-ink);
  font-family: var(--sw-sans);
  font-size: var(--sw-text-base);
  line-height: 1.5;
  font-weight: var(--sw-weight-text);
  font-stretch: var(--sw-width-text);
  font-kerning: normal;
  font-feature-settings: "kern", "liga", "calt";
  font-optical-sizing: auto;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  scrollbar-color: #B5B5BC var(--sw-white);
}

body.home * { scrollbar-color: #B5B5BC var(--sw-white); }
body.home ::selection { background: var(--sw-red); color: var(--sw-white); }
body.home ::-webkit-scrollbar-track { background: var(--sw-white); }
body.home ::-webkit-scrollbar-thumb { background: #B5B5BC; border-radius: 0; }

body.home a { color: inherit; transition: none; }
body.home a:hover { color: inherit; }
body.home :focus-visible { outline: 2px solid var(--sw-red); outline-offset: 3px; }
body.home img { max-width: 100%; display: block; }

.sw-skip {
  position: absolute; left: var(--sw-gutter); top: -100px; z-index: 100;
  background: var(--sw-ink); color: var(--sw-white) !important; padding: 10px 16px; font-size: var(--sw-text-sm);
}
.sw-skip:focus { top: 8px; }

/* ─── Grid ─────────────────────────────────────────────────── */
.sw-wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--sw-gutter);
}

.sw-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--sw-col-gap);
}

.sw-grid > * { grid-column: 1 / -1; }

/* ─── Buttons ──────────────────────────────────────────────── */
.sw-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  font-family: var(--sw-sans); font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.01em;
  border: 1px solid transparent; border-radius: 0;
  transition: background-color 150ms var(--sw-ease), color 150ms var(--sw-ease), border-color 150ms var(--sw-ease);
  white-space: nowrap;
}
body.home .sw-btn-accent { background: var(--sw-red); color: var(--sw-white); }
body.home .sw-btn-accent:hover { background: var(--sw-ink); color: var(--sw-white); }
body.home .sw-btn-accent:focus-visible { outline-color: var(--sw-ink); }
body.home .sw-btn-line { border-color: var(--sw-ink); color: var(--sw-ink); background: transparent; cursor: pointer; }
body.home .sw-btn-line:hover { background: var(--sw-ink); color: var(--sw-white); }
body.home .sw-btn-inverse { background: var(--sw-white); color: var(--sw-red); }
body.home .sw-btn-inverse:hover { background: var(--sw-ink); color: var(--sw-white); }
body.home .sw-btn-inverse-line { border-color: var(--sw-white); color: var(--sw-white); }
body.home .sw-btn-inverse-line:hover { background: var(--sw-white); color: var(--sw-red); }
body.home .sw-btn:active { transform: translateY(1px); }

/* ─── Utility bar & header ─────────────────────────────────── */
.sw-utility { border-bottom: 1px solid var(--sw-rule); font-size: var(--sw-text-sm); color: var(--sw-ink-2); }
.sw-utility-row { display: flex; justify-content: space-between; gap: 16px; min-height: 36px; align-items: center; }
.sw-utility p { display: flex; gap: 24px; flex-wrap: wrap; }
body.home .sw-utility a:hover { color: var(--sw-red); }

.sw-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--sw-white);
  border-bottom: 1px solid var(--sw-ink);
}
.sw-header-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 24px; }

.sw-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.25rem; letter-spacing: 0.14em;
}
/* Brand mark: static SVG, replaced in place by the liquid-metal canvas when WebGL2 is available.
   760:680 matches the mark's artboard (scripts/build-logo.js). */
.sw-mark { position: relative; display: block; width: 36px; aspect-ratio: 760 / 680; }
.sw-mark img { width: 100%; height: 100%; display: block; }
.sw-mark .liquid-logo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sw-mark.is-liquid img { visibility: hidden; }
/* Liquid chrome needs a dark ground to read; a solid ink tile keeps it Swiss. */
.sw-mark-tile { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--sw-ink); }
.sw-mark-tile-lg { width: 96px; height: 96px; }
.sw-mark-lg { width: 76px; }
.sw-brand-footer { font-size: 1.75rem; gap: 14px; }

.sw-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); font-size: 0.9375rem; font-weight: 500; }
body.home .sw-nav a:not(.sw-btn) { padding: 6px 0; border-bottom: 2px solid transparent; }
body.home .sw-nav a:not(.sw-btn):hover { border-bottom-color: var(--sw-red); }
.sw-nav .sw-btn { min-height: 40px; padding: 0 18px; }

.sw-menu-toggle {
  display: none;
  font: 700 0.9375rem var(--sw-sans); color: var(--sw-ink);
  background: none; border: 1px solid var(--sw-ink); border-radius: 0;
  min-height: 40px; padding: 0 16px; cursor: pointer;
}

/* Extra tokens for the 2026 layout */
body.home {
  --sw-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  --sw-steel: #E6E6EA;
  --sw-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --sw-text-h2: clamp(2rem, 1.25rem + 2.8vw, 3.75rem);
  --sw-text-hero-title: clamp(2rem, 1rem + 3vw, 4rem);
  --sw-shadow-card: 0 1px 0 rgba(17, 17, 17, 0.04), 0 18px 40px -18px rgba(17, 17, 17, 0.28);
}
html[data-theme="dark"] body.home { --sw-steel: #26262B; --sw-shadow-card: 0 18px 40px -18px rgba(0, 0, 0, 0.7); }

/* ─── Hero ─────────────────────────────────────────────────── */
.sw-hero { padding: clamp(40px, 7vw, 112px) 0 clamp(48px, 7vw, 104px); border-bottom: 1px solid var(--sw-rule); overflow: hidden; }
.sw-hero-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sw-col-gap);
  align-items: center;
}
.sw-hero-copy { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 32px); }
.sw-hero-visual { grid-column: 8 / -1; position: relative; }

.sw-hero-title {
  font-size: var(--sw-text-hero-title);
  font-weight: var(--sw-weight-display); font-stretch: var(--sw-width-display);
  line-height: 0.98; letter-spacing: -0.035em; word-spacing: 0.06em;
  text-wrap: balance; max-width: 22ch;
}
.sw-hero-title .highlight { color: var(--sw-red); background: none; -webkit-text-fill-color: currentColor; }
.sw-hero-lead { font-size: var(--sw-text-lg); line-height: 1.5; color: var(--sw-ink-2); max-width: 44ch; text-wrap: pretty; }
.sw-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.sw-hero-cities { font-size: var(--sw-text-sm); color: var(--sw-ink-2); display: flex; align-items: baseline; gap: 0 0.35em; flex-wrap: wrap; }
.sw-hero-cities::before { content: ""; width: 8px; height: 8px; background: var(--sw-red); align-self: center; margin-right: 4px; }
.sw-hero-cities #heroCities { color: var(--sw-ink); font-weight: var(--sw-weight-strong); }

/* Vault door: SVG on every screen; the 3D door fades in over it on desktop */
.sw-door { position: relative; width: min(100%, 520px); margin-left: auto; aspect-ratio: 1; perspective: 1400px; }
.sw-door .vd {
  width: 100%; height: 100%; display: block; overflow: visible;
  transform: rotateY(-18deg) rotateX(3deg); transform-origin: 60% 50%;
  transition: opacity 700ms var(--sw-spring);
}
.vd-shadow { fill: var(--sw-ink); opacity: 0.08; }
.vd-frame { fill: none; stroke: var(--sw-ink); stroke-width: 20; }
.vd-slab { fill: var(--sw-steel); stroke: var(--sw-ink); stroke-width: 1.5; }
.vd-ring { fill: none; stroke: var(--sw-ink); stroke-width: 2; }
.vd-bolts circle { fill: var(--sw-ink); }
.vd-wheel circle:first-child { fill: none; stroke: var(--sw-ink); stroke-width: 7; }
.vd-wheel line { stroke: var(--sw-ink); stroke-width: 5; stroke-linecap: round; }
.vd-wheel .vd-knob { fill: var(--sw-ink); stroke: none; }
.vd-dial-face { fill: var(--sw-white); stroke: var(--sw-ink); stroke-width: 2; }
.vd-ticks line { stroke: var(--sw-ink); stroke-width: 1.2; }
.vd-ticks .vd-major { stroke-width: 2; }
.vd-hub { fill: var(--sw-ink); }
.vd-index { fill: var(--sw-red); }
/* Rotate around each part's own centre */
.vd-wheel, .vd-dial { transform-box: fill-box; transform-origin: center; }
.vd-wheel { animation: vd-wheel 9s ease-in-out infinite; }
.vd-dial { animation: vd-dial 7s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes vd-wheel { 0%, 100% { transform: rotate(-30deg); } 50% { transform: rotate(40deg); } }
@keyframes vd-dial {
  0% { transform: rotate(0deg); } 22% { transform: rotate(140deg); } 30% { transform: rotate(140deg); }
  55% { transform: rotate(-60deg); } 63% { transform: rotate(-60deg); } 88% { transform: rotate(210deg); } 100% { transform: rotate(360deg); }
}

.sw-hero-3d { display: none; }
.has-3d-hero .sw-hero-3d { display: block; position: absolute; inset: 0; animation: sw-fade-in 700ms var(--sw-spring) both; }
.has-3d-hero .sw-door .vd { opacity: 0; }
@keyframes sw-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Client Portal preview card, overlapping the door */
.sw-preview {
  position: absolute; left: clamp(-72px, -4vw, 0px); bottom: -6%; z-index: 2;
  width: min(250px, 72%);
  padding: 14px 16px 10px;
  background: var(--sw-white); border: 1px solid var(--sw-ink);
  box-shadow: var(--sw-shadow-card);
  font-size: 0.8125rem; line-height: 1.35;
  animation: sw-preview-in 900ms var(--sw-spring) 600ms both, sw-float 7s ease-in-out 1.6s infinite;
}
@keyframes sw-preview-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes sw-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.sw-preview-head { display: flex; align-items: center; gap: 8px; font-weight: var(--sw-weight-strong); color: var(--sw-ink-2); }
.sw-preview-dot { width: 7px; height: 7px; border-radius: 50%; background: #0A8F4E; box-shadow: 0 0 0 3px rgba(10, 143, 78, 0.16); }
.sw-preview-box { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--sw-ink); }
.sw-preview-box span:first-child { font-family: var(--sw-mono); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em; }
.sw-preview-box span:last-child { color: var(--sw-ink-2); }
.sw-preview-list { list-style: none; }
.sw-preview-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--sw-rule); }
.sw-preview-list li:last-child { border-bottom: none; }
.sw-preview-state { color: var(--sw-ink-2); font-size: 0.75rem; white-space: nowrap; }
.sw-preview-state.is-moving { color: var(--sw-red); font-weight: var(--sw-weight-strong); }
.sw-preview-state.is-moving::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor;
  vertical-align: 1px; animation: sw-blink 1.6s ease-in-out infinite;
}
@keyframes sw-blink { 50% { opacity: 0.25; } }

/* ─── Key figures ──────────────────────────────────────────── */
.sw-figures { border-bottom: 1px solid var(--sw-ink); }
.sw-figures-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sw-figure { padding: clamp(24px, 3vw, 40px) var(--sw-col-gap) clamp(24px, 3vw, 40px) 0; display: flex; flex-direction: column-reverse; gap: 8px; }
.sw-figure + .sw-figure { border-left: 1px solid var(--sw-rule); padding-left: var(--sw-col-gap); }
.sw-figure dd {
  font-stretch: var(--sw-width-numeral); font-weight: var(--sw-weight-display);
  font-size: var(--sw-text-figure); line-height: 0.9; letter-spacing: -0.02em;
  font-feature-settings: "kern", "tnum", "lnum";
}
.sw-figure dt { font-size: var(--sw-text-sm); color: var(--sw-ink-2); }

/* ─── Sections ─────────────────────────────────────────────── */
.sw-section { padding: var(--sw-section) 0; border-bottom: 1px solid var(--sw-rule); }
.sw-head { display: flex; flex-direction: column; gap: 16px; max-width: 46rem; }
.sw-head h2 {
  font-size: var(--sw-text-h2); font-weight: var(--sw-weight-display); font-stretch: var(--sw-width-display);
  line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance;
}
.sw-head p { color: var(--sw-ink-2); font-size: var(--sw-text-lg); max-width: 52ch; text-wrap: pretty; }
.sw-head .sw-head-note { font-size: var(--sw-text-base); }

/* Two-column: heading on the left (sticky), content on the right */
.sw-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sw-col-gap); row-gap: 40px; align-items: start; }
.sw-head-side { grid-column: 1 / span 4; position: sticky; top: 112px; }
.sw-split > :not(.sw-head-side) { grid-column: 6 / -1; }

/* How it works */
.sw-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sw-col-gap); margin-top: clamp(40px, 5vw, 72px); }
.sw-step { position: relative; padding-top: 28px; border-top: 1px solid var(--sw-ink); display: flex; flex-direction: column; gap: 12px; }
.sw-step::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--sw-red);
  transform: scaleX(0); transform-origin: left center; transition: transform 600ms var(--sw-spring);
}
.sw-step:hover::before { transform: scaleX(1); }
.sw-step-icon { width: 48px; height: 48px; fill: none; stroke: var(--sw-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; transition: stroke 300ms var(--sw-spring), transform 500ms var(--sw-spring); }
.sw-step:hover .sw-step-icon { stroke: var(--sw-red); transform: translateY(-3px); }
.sw-step h3 { font-size: var(--sw-text-lg); font-weight: var(--sw-weight-display); letter-spacing: -0.015em; }
.sw-step p { color: var(--sw-ink-2); max-width: 36ch; text-wrap: pretty; }

/* Services */
.sw-services { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
.sw-services li { position: relative; padding: 24px 0 28px; border-top: 1px solid var(--sw-rule); display: flex; flex-direction: column; gap: 8px; }
.sw-services li:nth-child(-n + 2) { border-top-color: var(--sw-ink); }
.sw-services li::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 40px; height: 2px; background: var(--sw-red);
  transform: scaleX(0); transform-origin: left center; transition: transform 450ms var(--sw-spring);
}
.sw-services li:hover::before { transform: scaleX(1); }
.sw-services h3 { font-size: var(--sw-text-lg); font-weight: var(--sw-weight-strong); letter-spacing: -0.01em; line-height: 1.25; }
.sw-services p { color: var(--sw-ink-2); text-wrap: pretty; }

/* Security: spec panel in ink */
.sw-spec { background: var(--sw-ink); color: var(--sw-white); padding: clamp(28px, 3.5vw, 48px); }
.sw-spec-title { font-size: var(--sw-text-sm); opacity: 0.7; margin-bottom: 16px; }
.sw-features { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.sw-features li {
  display: flex; align-items: baseline; gap: 12px; padding: 14px 0;
  border-top: 1px solid color-mix(in srgb, var(--sw-white) 18%, transparent);
  font-weight: var(--sw-weight-strong);
}
html[data-theme="dark"] body.home .sw-spec { background: var(--sw-paper); color: var(--sw-ink); border: 1px solid var(--sw-rule); }
html[data-theme="dark"] body.home .sw-features li { border-top-color: var(--sw-rule); }
.sw-features li::before {
  content: ""; flex: none; width: 10px; height: 6px; transform: translateY(-3px) rotate(-45deg);
  border-left: 2px solid var(--sw-red); border-bottom: 2px solid var(--sw-red);
}

/* ─── Locations: globe + facility register ─────────────────── */
#locations .sw-grid { row-gap: clamp(32px, 4vw, 56px); }
.sw-head-wide { grid-column: 1 / -1; }
.sw-register {
  list-style: none; grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sw-col-gap);
  border-top: 1px solid var(--sw-ink);
}
.sw-register li {
  display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: baseline; column-gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--sw-rule);
}
.sw-register-no { font-family: var(--sw-mono); font-size: 0.75rem; color: var(--sw-ink-2); transition: color 150ms var(--sw-ease); }
.sw-register-city { font-size: var(--sw-text-lg); font-weight: var(--sw-weight-strong); letter-spacing: -0.01em; transition: transform 400ms var(--sw-spring); }
.sw-register-country { font-size: var(--sw-text-sm); color: var(--sw-ink-2); text-align: right; }
.sw-register li:hover .sw-register-no, .sw-register li.is-active .sw-register-no { color: var(--sw-red); }
.sw-register li:hover .sw-register-city, .sw-register li.is-active .sw-register-city { transform: translateX(6px); }

.sw-globe { display: none; }
.has-3d-globe .sw-register { grid-column: 6 / -1; grid-template-columns: 1fr; }
.has-3d-globe .sw-globe { display: block; grid-column: 1 / span 5; position: sticky; top: 96px; align-self: start; margin: 0; }
.sw-globe-canvas { width: 100%; aspect-ratio: 1; cursor: grab; touch-action: pan-y; }
.sw-globe-canvas:active { cursor: grabbing; }
.sw-globe-caption {
  min-height: 1.6em; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--sw-ink);
  font-weight: var(--sw-weight-strong); font-variant-numeric: tabular-nums lining-nums; white-space: pre;
}

/* ─── Partners ─────────────────────────────────────────────── */
.sw-partners { padding: clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--sw-rule); }
.sw-partners .sw-grid { align-items: baseline; row-gap: 16px; }
.sw-partners-title { grid-column: 1 / span 3; font-size: var(--sw-text-sm); font-weight: var(--sw-weight-strong); color: var(--sw-ink-2); }
.sw-partners-list { grid-column: 4 / -1; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 0; }
.sw-partners-list li { font-size: var(--sw-text-lg); font-weight: var(--sw-weight-strong); padding: 0 clamp(16px, 2vw, 28px); border-left: 1px solid var(--sw-rule); }
.sw-partners-list li:first-child { padding-left: 0; border-left: none; }
.m-marquee .sw-partners-list { flex-wrap: nowrap; }
.m-marquee .sw-partners-list li:first-child { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--sw-rule); }
.sw-partners .m-marquee { grid-column: 4 / -1; }

/* ─── Call to action: the one full-bleed red field ─────────── */
.sw-cta { background: var(--sw-red); color: var(--sw-white); padding: clamp(64px, 9vw, 128px) 0; }
.sw-cta-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sw-col-gap); row-gap: 24px; align-items: end; }
.sw-cta h2 {
  grid-column: 1 / span 8;
  font-size: clamp(2.25rem, 1rem + 4.2vw, 5rem); font-weight: var(--sw-weight-display); font-stretch: var(--sw-width-display);
  line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance;
}
.sw-cta p { grid-column: 1 / span 6; font-size: var(--sw-text-lg); text-wrap: pretty; }
.sw-cta-actions { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
body.home .sw-cta :focus-visible { outline-color: var(--sw-white); }

/* ─── Footer ───────────────────────────────────────────────── */
.sw-footer { background: var(--sw-paper); padding: clamp(56px, 7vw, 96px) 0 32px; font-size: 0.9375rem; }
.sw-footer .sw-grid { row-gap: 40px; }
.sw-footer-brand { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 16px; color: var(--sw-ink-2); max-width: 36ch; }
.sw-footer-brand .sw-brand { color: var(--sw-ink); }
.sw-footer-col { grid-column: span 2; display: flex; flex-direction: column; gap: 8px; }
.sw-footer-col:nth-of-type(2) { grid-column: 6 / span 3; }
.sw-footer-col h2 { font-size: var(--sw-text-sm); font-weight: 700; color: var(--sw-ink-2); margin-bottom: 8px; }
.sw-footer-col address { font-style: normal; color: var(--sw-ink-2); margin-top: 8px; }
body.home .sw-footer a:hover { color: var(--sw-red); }
.sw-footer-legal { grid-column: 1 / -1; border-top: 1px solid var(--sw-rule); padding-top: 20px; font-size: var(--sw-text-sm); color: var(--sw-ink-2); }

/* ─── Type roles ───────────────────────────────────────────── */
.sw-brand { font-weight: var(--sw-weight-display); font-stretch: var(--sw-width-wordmark); letter-spacing: 0.08em; }
.sw-btn, .sw-menu-toggle, body.home .chat-widget-btn-label { font-weight: var(--sw-weight-strong); }

/* ─── Shared chat widget button, restyled for this page ────── */
body.home .chat-widget-btn { height: 48px; padding: 0 20px; border-radius: 0; background: var(--sw-ink); color: var(--sw-white); box-shadow: none; font-family: var(--sw-sans); }
body.home .chat-widget-btn:hover { background: var(--sw-red); transform: none; box-shadow: none; }
body.home .chat-widget-btn::after { display: none; }
body.home .chat-widget-btn-icon { display: none; }
body.home .chat-widget-btn-label { font-size: 0.9375rem; letter-spacing: 0.01em; }

/* ─── Micro-interactions ───────────────────────────────────── */
body.home .sw-nav a:not(.sw-btn) { position: relative; border-bottom: none; }
body.home .sw-nav a:not(.sw-btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sw-red);
  transform: scaleX(0); transform-origin: right center; transition: transform 350ms var(--sw-spring);
}
body.home .sw-nav a:not(.sw-btn):hover::after, body.home .sw-nav a:not(.sw-btn):focus-visible::after { transform: scaleX(1); transform-origin: left center; }
body.home .sw-btn { transition: background-color 150ms var(--sw-ease), color 150ms var(--sw-ease), border-color 150ms var(--sw-ease), transform 250ms var(--sw-spring); }
body.home .sw-btn:active { transform: scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  .vd-wheel, .vd-dial, .sw-preview, .sw-preview-state.is-moving::before, .has-3d-hero .sw-hero-3d { animation: none; }
  .sw-door .vd { transform: none; }
  body.home .sw-btn, .sw-step::before, .sw-step-icon, .sw-services li::before, .sw-register-city,
  body.home .sw-nav a:not(.sw-btn)::after { transition: none; }
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sw-hero-copy { grid-column: 1 / span 7; }
  .sw-hero-visual { grid-column: 8 / -1; }
  .sw-preview { left: -24px; bottom: -8%; width: min(220px, 80%); }
  .sw-head-side { grid-column: 1 / -1; position: static; }
  .sw-split > :not(.sw-head-side) { grid-column: 1 / -1; }
  .sw-footer-brand { grid-column: 1 / -1; }
  .sw-footer-col, .sw-footer-col:nth-of-type(2) { grid-column: span 4; }
}

@media (max-width: 768px) {
  .sw-utility-links { display: none !important; }
  .sw-menu-toggle { display: inline-flex; align-items: center; }
  .sw-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--sw-white); border-bottom: 1px solid var(--sw-ink); padding: 8px var(--sw-gutter) 16px;
  }
  .sw-nav.is-open { display: flex; }
  body.home .sw-nav a:not(.sw-btn) { padding: 14px 0; border-bottom: 1px solid var(--sw-rule); }
  .sw-nav .sw-btn { margin-top: 12px; min-height: 48px; }

  /* Hero on phones: title → door → text → buttons */
  .sw-hero { padding-top: 32px; }
  .sw-hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .sw-hero-copy { display: contents; }
  .sw-hero-title { order: 1; max-width: none; }
  .sw-hero-visual { order: 2; margin: 4px 0 8px; }
  .sw-hero-lead { order: 3; }
  .sw-hero-actions { order: 4; }
  .sw-hero-actions .sw-btn { flex: 1 1 0; padding: 0 12px; }
  .sw-hero-actions .sw-btn-accent { flex-basis: 100%; }
  .sw-hero-cities { order: 5; }
  .sw-hero-visual { padding-bottom: 72px; }
  .sw-door { width: min(74vw, 320px); margin: 0 0 0 auto; }
  .sw-preview { left: 0; bottom: 0; width: min(200px, 56vw); font-size: 0.72rem; padding: 10px 12px 4px; }
  .sw-preview-box { margin: 8px 0 4px; }
  .sw-preview-list li { padding: 5px 0; }

  .sw-figures-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-figure:nth-child(3) { border-left: none; padding-left: 0; }
  .sw-figure:nth-child(n + 3) { border-top: 1px solid var(--sw-rule); }

  .sw-steps { grid-template-columns: 1fr; gap: 32px; }
  .sw-services { grid-template-columns: 1fr; }
  .sw-services li:nth-child(2) { border-top-color: var(--sw-rule); }
  .sw-features { grid-template-columns: 1fr; }

  .sw-register { grid-template-columns: 1fr; }
  .has-3d-globe .sw-globe { grid-column: 1 / -1; position: static; width: 100%; max-width: 420px; }
  .has-3d-globe .sw-register { grid-column: 1 / -1; }

  .sw-partners-title, .sw-partners-list, .sw-partners .m-marquee { grid-column: 1 / -1; }
  .sw-cta h2, .sw-cta p { grid-column: 1 / -1; }
  .sw-cta-actions .sw-btn { flex: 1 1 auto; }
  .sw-footer-col, .sw-footer-col:nth-of-type(2) { grid-column: 1 / -1; }
}

/* ─── Print ────────────────────────────────────────────────── */
@media print {
  .sw-utility, .sw-header, .sw-hero-actions, .sw-cta-actions, .sw-skip, .sw-hero-visual { display: none !important; }
  .sw-cta { background: none; color: var(--sw-ink); }
}

/* ─── Glass surfaces (header, phone menu, chat button) ─────── */
body.home {
  --sw-glass: rgba(255, 255, 255, 0.72);
  --sw-glass-strong: rgba(255, 255, 255, 0.86);
  --sw-glass-ink: rgba(17, 17, 17, 0.72);
  --sw-glass-blur: saturate(180%) blur(18px);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sw-header { background: var(--sw-glass); -webkit-backdrop-filter: var(--sw-glass-blur); backdrop-filter: var(--sw-glass-blur); border-bottom-color: rgba(17, 17, 17, 0.85); }
  body.home .chat-widget-btn { background: var(--sw-glass-ink); -webkit-backdrop-filter: var(--sw-glass-blur); backdrop-filter: var(--sw-glass-blur); border: 1px solid rgba(255, 255, 255, 0.14); }
  body.home .chat-widget-btn:hover { background: var(--sw-red); border-color: var(--sw-red); }
  @media (max-width: 768px) {
    .sw-nav { background: var(--sw-glass-strong); -webkit-backdrop-filter: var(--sw-glass-blur); backdrop-filter: var(--sw-glass-blur); }
  }
}

/* ─── Compact header (utility bar + main bar) ──────────────── */
.sw-utility { font-size: 0.75rem; }
.sw-utility-row { min-height: 28px; }
.sw-header-row { min-height: 54px; gap: 16px; }
.sw-brand { font-size: 1.05rem; gap: 8px; }
.sw-mark-tile:not(.sw-mark-tile-lg) { width: 34px; height: 34px; }
.sw-mark:not(.sw-mark-lg) { width: 27px; }
.sw-nav { font-size: 0.875rem; }
.sw-nav .sw-btn { min-height: 34px; padding: 0 14px; font-size: 0.875rem; }
.sw-menu-toggle { min-height: 34px; padding: 0 12px; font-size: 0.875rem; }
body.home .sw-header .theme-toggle { width: 34px; height: 34px; }
body.home .sw-header .i18n-switch > button { min-height: 34px; padding: 0 10px; }
@media (max-width: 768px) {
  body.home .sw-nav a:not(.sw-btn) { padding: 12px 0; }
  .sw-nav .sw-btn { min-height: 44px; }
}
