/* Chamactive — site styles. Built on the Chamactive Design System tokens.
   Color rule: neutral surfaces and graphite type; blue only on things you click; navy only in the CTA band and footer. */
/* Fonts: self-hosted (OFL). Google Fonts is blocked in mainland China. */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/open-sans-latin-400-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: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/open-sans-latin-600-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: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/open-sans-latin-700-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: "Open Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/open-sans-latin-800-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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/ibm-plex-mono-latin-400-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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/ibm-plex-mono-latin-500-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; }

:root {
  --brand-navy: #002d64; --brand-blue: #007cfb;
  --action: #0066d6; --action-hover: #0052ad; --on-action: #ffffff;
  --surface-page: #ffffff; --surface-alt: #f6f5f2; --surface-tint: #edebe6; --surface-band: #002d64;
  --ink: #23262b; --ink-heading: #15181d; --ink-muted: #5d6066;
  --on-band: #ffffff; --on-band-muted: #b9c7dd;
  --line: #e2e0db; --line-strong: #15181d; --field-border: #8a8780; --focus: #0066d6; --success: #1d7a46;
  --font-sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-pill: 999px;
  --shadow-md: 0 12px 32px rgba(20,20,20,0.08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --action: #5aa6ff; --action-hover: #8cc2ff; --on-action: #0b1424;
    --surface-page: #121315; --surface-alt: #18191c; --surface-tint: #202226; --surface-band: #061a3a;
    --ink: #e8e8e6; --ink-heading: #ffffff; --ink-muted: #a4a6aa;
    --line: #2a2c30; --line-strong: #e8e8e6; --field-border: #6c6f75; --focus: #5aa6ff; --success: #5fd394;
    --shadow-md: 0 12px 32px rgba(0,0,0,0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --action: #5aa6ff; --action-hover: #8cc2ff; --on-action: #0b1424;
  --surface-page: #121315; --surface-alt: #18191c; --surface-tint: #202226; --surface-band: #061a3a;
  --ink: #e8e8e6; --ink-heading: #ffffff; --ink-muted: #a4a6aa;
  --line: #2a2c30; --line-strong: #e8e8e6; --field-border: #6c6f75; --focus: #5aa6ff; --success: #5fd394;
  --shadow-md: 0 12px 32px rgba(0,0,0,0.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface-page); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--action); }
a:hover { color: var(--action-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--ink-heading); text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1248px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 24px); }
.section { padding-block: clamp(56px, 7vw, 96px); }
.section--alt { background: var(--surface-alt); border-block: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 40px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface-page); padding: 8px 12px; border-radius: var(--radius-sm); }

/* Logos: navy on light, white on dark */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

/* Type */
.eyebrow { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.eyebrow--muted { color: var(--ink-muted); }
.display { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
.h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.h3 { font-size: 20px; line-height: 28px; font-weight: 700; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--ink-muted); max-width: 62ch; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 22px; }
.head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: var(--radius-md); border: 1.5px solid transparent; font: 700 15px/20px var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn--primary { background: var(--action); color: var(--on-action); }
.btn--primary:hover { background: var(--action-hover); color: var(--on-action); }
.btn--secondary { background: transparent; color: var(--ink-heading); border-color: var(--field-border); }
.btn--secondary:hover { border-color: var(--ink-heading); color: var(--ink-heading); }
.btn--inverse { background: #ffffff; color: #002d64; }
.btn--inverse:hover { background: #eef2f7; color: #002d64; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.topbar { background: var(--surface-alt); color: var(--ink-muted); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 18px; }
.topbar .wrap { min-height: 38px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.topbar__info { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.lang { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface-page); }
.lang span { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--radius-pill); font-weight: 600; color: var(--ink-muted); }
.lang span[aria-current="true"] { background: var(--ink-heading); color: var(--surface-page); }
.lang a { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--radius-pill); font-weight: 600; color: var(--ink-muted); text-decoration: none; }
.lang a:hover { color: var(--ink-heading); background: var(--surface-tint); }
body.zh { font-family: "Open Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif; }
body.zh .display, body.zh .h1, body.zh .h2 { letter-spacing: 0; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface-page); border-bottom: 1px solid var(--line); }
.site-header .wrap { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 600; font-size: 15px; color: var(--ink-muted); text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink-heading); }
.nav a[aria-current="page"] { color: var(--ink-heading); border-bottom-color: var(--line-strong); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--field-border); border-radius: var(--radius-md); background: transparent; color: var(--ink-heading); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--surface-page); }
.mobile-nav .wrap { display: flex; flex-direction: column; padding-block: 8px 20px; gap: 4px; min-height: 0; align-items: stretch; }
.mobile-nav a:not(.btn) { padding: 12px 0; font-weight: 600; color: var(--ink-heading); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav a[aria-current="page"] { color: var(--ink-heading); box-shadow: inset 3px 0 0 var(--line-strong); padding-left: 12px; }
.mobile-nav .btn { margin-top: 12px; }
@media (max-width: 920px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
}

/* Hero */
.hero { background: var(--surface-alt); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-block: clamp(48px, 7vw, 104px); display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero__aside { flex: 1 1 400px; min-width: 0; max-width: 560px; }
.page-hero { background: var(--surface-alt); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-block: clamp(48px, 6vw, 84px); display: flex; flex-direction: column; gap: 18px; }

/* Compare */
.compare { background: var(--surface-page); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.compare__head, .compare__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.compare__head span { padding: 12px 20px; font: 500 12px/16px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-alt); }
.compare__head span.us { color: var(--surface-page); background: var(--ink-heading); }
.compare__row { border-top: 1px solid var(--line); }
.compare__topic { grid-column: 1 / -1; padding: 16px 20px 0; font-weight: 700; font-size: 14px; line-height: 20px; color: var(--ink-heading); }
.compare__cell { display: flex; gap: 10px; padding: 8px 20px 16px; font-size: 14px; line-height: 21px; color: var(--ink-muted); min-width: 0; }
.compare__cell svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.compare__cell.us { color: var(--ink); }
.compare__cell.us svg { color: var(--success); }
@media (max-width: 420px) { .compare__cell, .compare__topic, .compare__head span { padding-inline: 14px; } }

/* Protections */
.protections { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px 32px; }
.protection { display: flex; flex-direction: column; gap: 12px; }
.protection svg { width: 28px; height: 28px; color: var(--ink-heading); }

/* Cards */
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--surface-page); border: 1px solid var(--line); border-radius: var(--radius-md); min-width: 0; }
.card--tint { background: var(--surface-tint); border-color: transparent; }
.card__num { font: 400 13px/20px var(--font-mono); color: var(--ink-muted); }
.card__link { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 14px; text-decoration: none; }
.areas { display: flex; flex-wrap: wrap; gap: 24px; }
.areas .card { flex: 1 1 260px; }
.areas .card--core { flex: 2 1 520px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--line-strong); }
.step__num { font: 400 13px/20px var(--font-mono); color: var(--ink-muted); }
.step h3 { font-size: 18px; line-height: 26px; }
.step p { font-size: 15px; line-height: 24px; }
.steps--v { grid-template-columns: 1fr; gap: 0; }
.steps--v .step { flex-direction: row; gap: 24px; padding-block: 22px; border-top: 1px solid var(--line); }
.steps--v .step__num { flex: none; width: 36px; font-size: 15px; }


/* Two-column service blocks */
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > * { min-width: 0; }
.split__main { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.split__side { flex: 1 1 360px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; }
.checks svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--ink-heading); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.services-anchor { scroll-margin-top: 96px; }

/* Notice */
.notice { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-alt); }
.notice--info { background: var(--surface-tint); border-color: transparent; }
.notice svg { flex: none; width: 24px; height: 24px; color: var(--ink-heading); }
.notice h3 { font-size: 16px; line-height: 24px; margin-bottom: 4px; }
.notice p { font-size: 15px; line-height: 24px; }

/* Fact table */
.facts { margin: 0; display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.facts dt { padding-right: 20px; font-weight: 600; color: var(--ink-muted); }

/* CTA band */
.cta { background: var(--surface-band); }
.cta .wrap { padding-block: clamp(48px, 6vw, 88px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { color: #ffffff; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.cta p { color: var(--on-band-muted); font-size: 18px; line-height: 28px; margin-top: 10px; max-width: 60ch; }

/* Form */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-heading); }
.label .opt { font-weight: 400; color: var(--ink-muted); }
.input, .select, .textarea { width: 100%; min-height: 44px; padding: 10px 14px; font: 400 16px/22px var(--font-sans); color: var(--ink); background: var(--surface-page); border: 1px solid var(--field-border); border-radius: var(--radius-sm); }
.textarea { min-height: 128px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.help { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 22px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--action); }
.form-status { padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-tint); color: var(--ink); font-size: 15px; line-height: 22px; }
.layout-contact { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.layout-contact > .card { flex: 2 1 560px; padding: clamp(22px, 3vw, 40px); }
.layout-contact > aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* Prose (privacy) */
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: 20px; line-height: 28px; margin-top: 12px; }

/* Footer */
.site-footer { background: var(--surface-band); color: var(--on-band-muted); border-top: 1px solid rgba(185,199,221,0.22); }
.site-footer .wrap { padding-block: 64px 32px; display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { height: 30px; width: auto; max-width: 100%; align-self: flex-start; object-fit: contain; }
.brand img { object-fit: contain; }
.footer-brand p { font-size: 14px; line-height: 22px; max-width: 290px; }
.site-footer h3 { margin-bottom: 12px; font: 500 12px/16px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #ffffff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer li, .site-footer a { font-size: 14px; line-height: 22px; color: var(--on-band-muted); text-decoration: none; }
.site-footer a:hover { color: #ffffff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(185,199,221,0.25); font-size: 13px; line-height: 18px; }

/* Pillars panel (home hero) */
.pillars { background: var(--surface-page); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.pillars__head { margin: 0; padding: 12px 20px; font: 500 12px/16px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-alt); border-bottom: 1px solid var(--line); }
.pillar { display: flex; align-items: center; gap: 16px; padding: 20px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.pillars__head + .pillar { border-top: 0; }

.pillar:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
.pillar__num { flex: none; font: 400 13px/20px var(--font-mono); color: var(--ink-muted); }
.pillar__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pillar__title { font-weight: 700; font-size: 18px; line-height: 24px; color: var(--ink-heading); }
.pillar__items { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.pillar__arrow { flex: none; width: 20px; height: 20px; color: var(--action); }
.pillar__arrow svg { width: 20px; height: 20px; display: block; }

/* Pillar groups (home "what we do") */
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 24px; align-items: start; }
.group { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.group__head { margin: 0; display: flex; align-items: baseline; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--line-strong); font-weight: 800; font-size: 20px; line-height: 28px; color: var(--ink-heading); }
/* Pillar header (services page) */
.pillar-head { background: var(--surface-page); border-top: 1px solid var(--line); }
.pillar-head .wrap { padding-block: clamp(40px, 5vw, 64px) 0; display: flex; flex-direction: column; gap: 10px; }
.pillar-head .wrap::after { content: ""; display: block; margin-top: clamp(24px, 3vw, 32px); border-bottom: 2px solid var(--line-strong); }
.pillar-head .h1 { margin: 0; }
.pillar-head .lead { margin: 0; }

/* ================= Motion =================
   Everything below is progressive: content is visible without JS, and
   prefers-reduced-motion turns every animation off. */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }

/* Globe (home hero) */
.hero--home { position: relative; overflow: hidden; }
.hero__aside--globe { position: relative; }
.hero--home .hero__text { position: relative; z-index: 2; }
.globe { position: absolute; left: 62%; top: 50%; width: min(780px, 155%); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; }
.hero__aside--globe .pillars { position: relative; z-index: 1; background: color-mix(in srgb, var(--surface-page) 84%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.hero__aside--globe .pillars__head { background: color-mix(in srgb, var(--surface-alt) 70%, transparent); }
@media (max-width: 720px) { .globe { width: 150%; left: 50%; } }

/* Header lifts once the page scrolls */
.site-header { transition: box-shadow .3s ease, background-color .3s ease; }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(20,20,20,.06); background: color-mix(in srgb, var(--surface-page) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }

/* Buttons, cards, links */
.btn { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .25s var(--ease-out), box-shadow .25s ease; }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,102,214,.28); }
.btn--secondary:hover, .btn--inverse:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.chips .btn[aria-current="true"] { background: var(--ink-heading); color: var(--surface-page); border-color: var(--ink-heading); }
.card { transition: transform .45s var(--ease-out), box-shadow .45s ease, border-color .3s ease; }
.card:has(.card__link):hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--field-border); }
.card--tint:has(.card__link):hover { border-color: transparent; }
.card__link { display: inline-flex; gap: 2px; transition: gap .3s var(--ease-out); }
.card:hover .card__link { gap: 8px; }

/* Pillar rows: a quiet sweep on hover */
.pillar { position: relative; isolation: isolate; }
.pillar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--surface-alt); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.pillar:hover::before, .pillar:focus-visible::before { transform: scaleX(1); }
.pillar__arrow { transition: transform .4s var(--ease-out); }
.pillar:hover .pillar__arrow { transform: translateX(5px); }
.pillar__num { transition: color .3s ease; }
.pillar:hover .pillar__num { color: var(--ink-heading); }

/* Closing band: slow light drifting over the navy */
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: -50%; z-index: -1; pointer-events: none;
  background: radial-gradient(30% 40% at 30% 45%, rgba(0,124,251,.42), transparent 70%), radial-gradient(28% 38% at 72% 60%, rgba(90,166,255,.20), transparent 70%); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .22s ease both; }
  ::view-transition-new(root) { animation: vt-in .5s var(--ease-out) both; }
  .topbar { view-transition-name: topbar; }
  .site-header { view-transition-name: site-header; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

  /* Hero entrance */
  .hero__text > *, .page-hero .wrap > *, .hero__aside > .compare { animation: rise 1s var(--ease-out) both; }
  .hero__text > :nth-child(1), .page-hero .wrap > :nth-child(1) { animation-delay: .05s; }
  .page-hero .wrap > :nth-child(2) { animation-delay: .15s; }
  .page-hero .wrap > :nth-child(3), .hero__text > :nth-child(3) { animation-delay: .3s; }
  .page-hero .wrap > :nth-child(4), .hero__text > :nth-child(4) { animation-delay: .42s; }
  .hero__aside > .compare { animation-delay: .35s; }
  .hero--home .hero__text > :nth-child(3) { animation-delay: .75s; }
  .hero--home .hero__text > :nth-child(4) { animation-delay: .9s; }
  .hero__text > .display { animation: none; }
  .display .w { display: inline-block; animation: word 1.1s var(--ease-out) both; animation-delay: calc(.12s + var(--i) * .055s); }
  .globe { animation: globe-in 2.2s var(--ease-out) .2s both; }
  .hero__aside--globe .pillars { animation: rise 1.1s var(--ease-out) .55s both; }
  .hero__aside--globe .pillar { animation: rise .9s var(--ease-out) both; }
  .hero__aside--globe .pillar:nth-of-type(1) { animation-delay: .8s; }
  .hero__aside--globe .pillar:nth-of-type(2) { animation-delay: .92s; }
  .hero__aside--globe .pillar:nth-of-type(3) { animation-delay: 1.04s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  @keyframes word { from { opacity: 0; transform: translateY(.45em); filter: blur(10px); } }
  @keyframes globe-in { from { opacity: 0; transform: translate(-50%, -46%) scale(.92); } }

  .cta::before { animation: drift 16s ease-in-out infinite alternate; }
  @keyframes drift { 50% { transform: translate3d(9%, -5%, 0) rotate(6deg); } to { transform: translate3d(-4%, 6%, 0) rotate(-4deg); } }

  /* Scroll reveal (data-reveal is added by site.js only to content below the fold) */
  [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
  [data-reveal].in { opacity: 1; transform: none; }
  /* Step rules draw from left to right */
  .step[data-reveal] { border-top-color: transparent; }
  .step[data-reveal]::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--line-strong); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--d, 0) * 120ms + .15s); }
  .steps--v .step[data-reveal]::before { top: -1px; height: 1px; background: var(--line); }
  .step { position: relative; }
  .step[data-reveal].in::before { transform: scaleX(1); }
  /* Protection icons draw their strokes */
  .protection[data-reveal] svg * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms + .25s); }
  .protection[data-reveal].in svg * { stroke-dashoffset: 0; }
  /* Pillar headings: rule draws under the title */
  .pillar-head[data-reveal] { transform: none; }
  .pillar-head[data-reveal] .wrap::after { transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease-out) .2s; }
  .pillar-head[data-reveal].in .wrap::after { transform: scaleX(1); }
  /* Compare: the check pops in after the row arrives */
  .compare__row[data-reveal] .compare__cell.us svg { transform: scale(0); transition: transform .6s var(--ease-spring); transition-delay: calc(var(--d, 0) * 90ms + .35s); }
  .compare__row[data-reveal].in .compare__cell.us svg { transform: scale(1); }
}

/* Form: spam trap (hidden from people and assistive tech) and sending state */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }
.form-status.is-error { background: color-mix(in srgb, #b42318 10%, var(--surface-page)); color: var(--ink); }
