/* ==========================================================================
   Assurify — landing page (index.html)  ·  Art direction v2
   --------------------------------------------------------------------------
   Loaded after styles.css on index.html only; everything is scoped to
   `body.home` so the shared SEO pages are untouched.

   Direction: SWISS SIGNAL. A Swiss-grid, type-led system built from the
   logo's two colours — saturated mint and deep ink — with paper as the rest
   stop. Each section has its own composition:

     hero        mint field · giant grotesque headline · ink shield "specimen"
     what        ink · scroll-lit statement · lifecycle track
     numbers     paper · staggered giant numerals, no containers
     ecosystem   blueprint · routed system diagram (not cards)
     categories  ink · typographic index / accordion
     contact     mint · closing composition with oversized outline shield
     ask         paper · three full-height "doors"
     footer      ink · oversized wordmark

   Type: Inter (display, tight & heavy) × Fraunces Italic (voice) × Plex Mono.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
body.home {
  --paper: #f3f0e8;
  --paper-2: #e9e5da;
  --card: #fbfaf6;
  --night: #0a0f1a;
  --night-2: #141c2b;
  --teal: #0be6cb;
  --teal-deep: #006a5f;
  --ink: #0a0f1a;
  --muted: #566073;
  --muted-d: #9aa5b6;
  --rule: rgba(10, 15, 26, .16);
  --rule-strong: rgba(10, 15, 26, .9);
  --rule-d: rgba(243, 240, 232, .18);

  /* bridge for shared modals / chat / forms */
  --bg: var(--paper); --surface: #fff; --line: var(--rule); --ink-soft: var(--muted);
  --accent: var(--night); --accent-soft: #dcf5ef; --accent-ink: #05342f;
  --font-sans: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;

  --f-sans: var(--font-sans);
  --f-serif: var(--font-display);
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(20px, 3.4vw, 48px);
  --section-y: clamp(80px, 11vw, 168px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  background: var(--paper); color: var(--ink); font-family: var(--f-sans);
}
body.home ::selection { background: var(--night); color: var(--teal); }
body.home .wrap { width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto; }
:where(body.home) a { color: inherit; }
body.home :focus-visible { outline: 2px solid var(--night); outline-offset: 3px; }
body.home .on-dark :focus-visible { outline-color: var(--teal); }
body.home .btn-primary { background: var(--night); color: #fff; border-radius: 999px; }
body.home .btn-primary:hover { background: #1d2a40; }
body.home #assurify-chat-root { --ac-grad: linear-gradient(135deg, #0a0f1a 0%, #1d2a40 100%); }
body.home .eyebrow-static { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); background: none; padding: 0; border: 0; }

/* ---------- 2. Type primitives ---------- */
.x-label { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: inherit; opacity: .8; }
.x-label::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.x-label b { font-weight: 500; }
.x-display {
  font-family: var(--f-sans); font-weight: 800; letter-spacing: -.055em; line-height: .9; margin: 0; text-wrap: balance;
  font-size: clamp(44px, 7.4vw, 124px);
}
.x-display i, .x-serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.03em; }
.x-lede { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; max-width: 46ch; margin: 0; text-wrap: pretty; }

/* ---------- 3. Buttons ---------- */
.x-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; height: 60px; padding: 0 8px 0 26px; border-radius: 999px;
  font: 600 15px/1 var(--f-sans); text-decoration: none; cursor: pointer; border: 1.5px solid currentColor; background: transparent; color: inherit;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.x-btn i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--night); color: var(--teal); font-style: normal; transition: transform .35s var(--ease); }
.x-btn:hover { background: var(--night); color: var(--paper); border-color: var(--night); }
.x-btn:hover i { transform: translateX(3px) rotate(-45deg); background: var(--teal); color: var(--night); }
.x-btn--ink { background: var(--night); color: var(--paper); border-color: var(--night); }
.x-btn--ink i { background: var(--teal); color: var(--night); }
.x-btn--ink:hover { background: var(--paper); color: var(--night); border-color: var(--paper); }
.x-btn--ink:hover i { background: var(--night); color: var(--teal); }
.x-btn--teal { background: var(--teal); color: var(--night); border-color: var(--teal); }
.x-btn--teal i { background: var(--night); color: var(--teal); }
.x-btn--teal:hover { background: var(--paper); border-color: var(--paper); color: var(--night); }

/* ---------- 4. Navigation (mint over the hero, paper once scrolled) ---------- */
.hn { position: sticky; top: 0; z-index: 60; background: var(--teal); border-bottom: 1px solid rgba(10,15,26,.14); transition: background .3s, border-color .3s; }
.hn.scrolled { background: rgba(243, 240, 232, .92); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-color: var(--rule); }
.hn-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.hn .brand { display: flex; flex: none; }
.hn .brand-logo { height: 26px; width: auto; display: block; filter: brightness(0); transition: filter .3s; } /* one-colour ink mark on mint */
.hn.scrolled .brand-logo { filter: none; }
.hn-links { display: flex; margin-left: auto; }
.hn-links a, .hn-signin { position: relative; padding: 10px 14px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.hn-links a::after, .hn-signin::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.hn-links a:hover::after, .hn-signin:hover::after { transform: scaleX(1); }
.hn-signin { opacity: .72; }
.hn-call { display: inline-flex; align-items: center; gap: 12px; padding: 6px 20px 6px 6px; border-radius: 999px; text-decoration: none; background: var(--night); color: var(--paper); transition: background .25s, color .25s; }
.hn-call:hover { background: var(--paper); color: var(--night); }
.hn-call-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: var(--night); }
.hn-call-ico svg { width: 16px; height: 16px; }
.hn-call-txt { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.hn-call-txt b { font-size: 13.5px; font-weight: 600; }
.hn-call-txt small { font: 400 11px var(--f-mono); opacity: .7; }
.hn-mini { display: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--night); color: var(--teal); margin-left: auto; }
.hn-mini svg { width: 18px; height: 18px; }
.hn-toggle { display: none; width: 42px; height: 42px; border: 1.5px solid var(--night); border-radius: 50%; background: transparent; cursor: pointer; position: relative; padding: 0; }
.hn-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--night); transition: transform .35s var(--ease), opacity .2s; }
.hn-toggle span:nth-child(1) { top: 15px; } .hn-toggle span:nth-child(2) { top: 19.5px; } .hn-toggle span:nth-child(3) { top: 24px; }
.hn-toggle.active span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.hn-toggle.active span:nth-child(2) { opacity: 0; }
.hn-toggle.active span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }
.hn-sheet { display: none; }
@media (max-width: 1240px) {
  .hn-links, .hn .hn-call, .hn .hn-signin { display: none; }
  .hn-mini { display: grid; } .hn-toggle { display: block; }
  .hn-inner { gap: 10px; height: 64px; }
  .hn-sheet { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--night); color: var(--paper); padding: 8px var(--gutter) 28px; max-height: 0; overflow: hidden; visibility: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .3s, visibility 0s .5s; }
  .hn-sheet.open { max-height: calc(100vh - 64px); min-height: calc(100vh - 64px); visibility: visible; opacity: 1; overflow-y: auto; transition: max-height .5s var(--ease), opacity .3s; }
  .hn-sheet a.hn-s-link { display: flex; align-items: baseline; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--rule-d); text-decoration: none; font-weight: 800; font-size: 32px; letter-spacing: -.045em; }
  .hn-sheet a.hn-s-link i { font: 500 11px var(--f-mono); letter-spacing: .1em; color: var(--teal); font-style: normal; }
  .hn-sheet .hn-call { display: flex; margin-top: 24px; justify-content: center; background: var(--teal); color: var(--night); padding: 9px 22px 9px 9px; }
  .hn-sheet .hn-call-ico { background: var(--night); color: var(--teal); }
}

/* ---------- 5. HERO — mint field, giant type, ink shield specimen ---------- */
.x-hero { position: relative; background: var(--teal); color: var(--night); overflow: hidden; }
.x-hero::before { /* Swiss column guides */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(10,15,26,.09) 0 1px, transparent 1px calc(100% / 12));
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.x-hero-main { position: relative; padding: clamp(28px, 4.2vw, 64px) 0 clamp(40px, 6vw, 88px); min-height: min(86vh, 860px); }
.x-hero-copy { position: relative; z-index: 2; width: min(100%, 58%); }
.x-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 14px 8px 12px; border: 1.5px solid var(--night); border-radius: 999px; font: 500 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.x-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--night); animation: x-ping 2.4s infinite; }
@keyframes x-ping { 0% { box-shadow: 0 0 0 0 rgba(10,15,26,.5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(10,15,26,0); } }
.x-hero h1 { margin: clamp(22px, 3vw, 40px) 0 0; font-size: clamp(46px, 7.7vw, 132px); }
.x-hero h1 i { letter-spacing: -.045em; }
.x-hero-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); margin-top: clamp(26px, 3.4vw, 52px); align-items: start; }
.x-tagline { margin: 0; font-weight: 600; font-size: clamp(19px, 1.7vw, 26px); line-height: 1.22; letter-spacing: -.025em; }
.x-sub { margin: 14px 0 0; font-size: 15.5px; line-height: 1.55; color: rgba(10,15,26,.78); max-width: 40ch; }
.x-actions { display: grid; gap: 12px; justify-items: stretch; }
.x-note { margin: 4px 0 0; font: 500 11.5px/1.6 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.x-note a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.x-note a:hover { text-decoration-thickness: 2px; }

/* swipe control — markup/JS untouched; skin only */
.home .swipe-cta { width: 100%; height: 60px; background: var(--night); border: 0; box-shadow: none; animation: none; }
.home .swipe-cta:focus-visible { box-shadow: 0 0 0 3px var(--teal), 0 0 0 5px var(--night); }
.home .swipe-fill { background: rgba(11,230,203,.28); }
.home .swipe-label { font-size: 14.5px; font-weight: 600; padding: 0 20px 0 64px; }
.home .swipe-text { background: linear-gradient(100deg, rgba(243,240,232,.6) 0%, #fff 45%, rgba(243,240,232,.6) 90%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; }
.home .swipe-chevrons { color: var(--teal); }
.home .swipe-knob { left: 6px; top: 6px; width: 48px; height: 48px; background: var(--teal); color: var(--night); box-shadow: none; }
.home .swipe-cta.is-done { background: var(--paper); box-shadow: none; }
.home .swipe-cta.is-done .swipe-knob { background: var(--night); color: var(--teal); }
.home .swipe-cta.is-done .swipe-label, .home .swipe-cta.is-done .swipe-text { color: var(--night); background: none; }

/* the shield specimen */
.x-shield { position: absolute; z-index: 1; right: calc(var(--gutter) * -.2); top: clamp(24px, 3vw, 44px); bottom: -2px; width: min(37vw, 560px); margin: 0; pointer-events: none; }
.x-shield svg { position: absolute; right: 0; bottom: 0; width: 100%; height: 100%; max-height: 118%; overflow: visible; }
.x-scan { animation: x-scan 6s linear infinite; }
@keyframes x-scan { 0% { transform: translateY(-80px); } 100% { transform: translateY(700px); } }
.x-dev { color: var(--teal); }
.x-cell text, .x-shield-t { font: 500 10.5px var(--f-mono); letter-spacing: .16em; fill: rgba(243,240,232,.62); }
.x-live { animation: x-blink 2.2s ease-in-out infinite; }
@keyframes x-blink { 50% { opacity: .3; } }

.x-ticker { position: relative; z-index: 3; background: var(--night); color: var(--paper); }
.x-ticker ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.x-ticker li { display: flex; align-items: baseline; gap: 14px; padding: 22px 24px 24px 0; }
.x-ticker li + li { padding-left: 24px; border-left: 1px solid var(--rule-d); }
.x-ticker i { font: 500 12px var(--f-mono); color: var(--teal); font-style: normal; letter-spacing: .08em; }
.x-ticker span { font-weight: 600; font-size: clamp(16px, 1.55vw, 22px); letter-spacing: -.025em; line-height: 1.2; }

/* ---------- 6. WHAT IS ASSURIFY — ink, scroll-lit statement, lifecycle track ---------- */
.x-what { background: var(--night); color: var(--paper); padding: var(--section-y) 0 clamp(72px, 9vw, 128px); position: relative; overflow: hidden; }
.x-what-head { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; color: var(--teal); }
.x-statement { margin: clamp(28px, 4vw, 56px) 0 0; font-weight: 700; font-size: clamp(30px, 5.4vw, 88px); line-height: 1.02; letter-spacing: -.05em; text-wrap: pretty; max-width: 19em; }
.x-statement em { font-family: var(--f-serif); font-weight: 400; font-style: italic; color: var(--teal); letter-spacing: -.03em; }
html.js .x-statement .w { opacity: .2; transition: opacity .25s linear; }
.x-what-foot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); margin-top: clamp(56px, 8vw, 120px); align-items: end; }
.x-what-foot p { margin: 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--muted-d); max-width: 40ch; }
.x-flow { list-style: none; margin: 0; padding: 40px 0 0; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); }
.x-flow::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--rule-d); }
.x-flow::after { content: ""; position: absolute; top: 3px; width: 56px; height: 9px; left: 0; background: linear-gradient(90deg, transparent, var(--teal)); border-radius: 9px; animation: x-run 5s var(--ease) infinite; }
@keyframes x-run { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 56px); opacity: 0; } }
.x-flow li { position: relative; padding-right: 10px; }
.x-flow li::before { content: ""; position: absolute; top: -40px; left: 0; width: 15px; height: 15px; border: 1.5px solid var(--teal); background: var(--night); border-radius: 50%; }
.x-flow li:first-child::before { background: var(--teal); }
.x-flow i { display: block; font: 500 11px var(--f-mono); font-style: normal; letter-spacing: .1em; color: var(--teal); }
.x-flow b { display: block; margin-top: 6px; font-weight: 600; font-size: clamp(14px, 1.3vw, 18px); letter-spacing: -.02em; line-height: 1.2; }

/* ---------- 7. NUMBERS — paper, staggered giant numerals, no containers ---------- */
.x-nums { background: var(--paper); padding: var(--section-y) 0; position: relative; }
.x-nums-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; row-gap: clamp(20px, 3vw, 48px); align-items: end; }
.x-n { position: relative; display: grid; gap: 14px; }
.x-n strong { font-weight: 800; letter-spacing: -.07em; line-height: .78; font-variant-numeric: tabular-nums lining-nums; display: block; }
.x-n span { font: 500 12px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding-top: 12px; border-top: 1.5px solid var(--night); max-width: 26ch; }
.x-n1 { grid-column: 1 / 8; }  .x-n1 strong { font-size: clamp(96px, 20vw, 320px); }
.x-n2 { grid-column: 6 / 13; grid-row: 2; justify-self: end; } .x-n2 strong { font-size: clamp(72px, 13.5vw, 220px); color: var(--teal-deep); }
.x-n3 { grid-column: 1 / 5; grid-row: 3; } .x-n3 strong { font-size: clamp(64px, 9vw, 150px); }
.x-n4 { grid-column: 7 / 13; grid-row: 3; justify-self: end; } .x-n4 strong { font-size: clamp(64px, 9vw, 150px); background: var(--teal); padding: .08em .12em .02em; width: fit-content; }
.x-n4 span { max-width: 26ch; }

/* ---------- 8. ECOSYSTEM — blueprint + routed diagram ---------- */
.x-eco { background: var(--paper-2); padding: var(--section-y) 0; position: relative; overflow: hidden; }
.x-eco::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 48px 48px; opacity: .55; pointer-events: none; }
.x-eco .wrap { position: relative; }
.x-eco-head { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 88px); }
.x-eco-head .x-display { margin-top: 20px; font-size: clamp(40px, 6.6vw, 112px); }
.x-eco-head .x-lede { color: var(--muted); }
.x-diagram { position: relative; }
.x-wires { display: none; }
.x-nodes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 1.5px solid var(--night); margin-left: 8px; }
.x-node { position: relative; padding: 4px 0 36px 28px; }
.x-node::before { content: ""; position: absolute; left: -8px; top: 8px; width: 14px; height: 14px; background: var(--paper-2); border: 1.5px solid var(--night); border-radius: 50%; }
.x-node-tag { display: block; font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); }
.x-node h3 { margin: 8px 0 0; font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.x-node p { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 44ch; }
.x-node-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 1.5px solid var(--night); padding-bottom: 2px; }
.x-node-link span { transition: transform .3s var(--ease); }
.x-node-link:hover span { transform: translateX(4px); }
.x-node-link::after { content: ""; position: absolute; inset: 0; }
.x-node--admin h3 { font-size: clamp(30px, 3.4vw, 46px); }
.x-cap { margin: 0; padding: 0 0 0 28px; font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 1100px) {
  .x-diagram { aspect-ratio: 1000 / 740; }
  .x-wires { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .x-wires path { fill: none; stroke: var(--night); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
  .x-wires .flow { stroke: var(--teal-deep); stroke-width: 2.5; stroke-dasharray: 3 14; stroke-linecap: round; animation: x-flow 1.6s linear infinite; }
  @keyframes x-flow { to { stroke-dashoffset: -34; } }
  .x-wires circle { fill: var(--night); }
  .x-nodes { position: absolute; inset: 0; display: block; border: 0; margin: 0; }
  .x-node {
    position: absolute; left: calc(var(--x) / 10 * 1%); top: calc(var(--y) / 7.4 * 1%); width: calc(var(--w) / 10 * 1%); height: calc(var(--h) / 7.4 * 1%);
    padding: 20px 22px 18px; background: var(--card); border: 1.5px solid var(--night); display: flex; flex-direction: column; transition: background .3s, color .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
  }
  .x-node::before { display: none; }
  .x-node:hover { transform: translate(-4px, -4px); box-shadow: 4px 4px 0 var(--night); }
  .x-node p { flex: 1; font-size: clamp(12.5px, 1.2vw, 15px); }
  .x-node h3 { font-size: clamp(22px, 2.4vw, 34px); }
  .x-node-link { align-self: flex-start; margin-top: 8px; }
  .x-node--admin { background: var(--night); color: var(--paper); }
  .x-node--admin p { color: var(--muted-d); }
  .x-node--admin .x-node-tag { color: var(--teal); }
  .x-node--admin h3 { color: var(--teal); font-size: clamp(28px, 3.2vw, 46px); }
  .x-node--admin .x-node-link { border-color: var(--teal); color: var(--teal); }
  .x-node--admin:hover { box-shadow: 4px 4px 0 var(--teal); }
  .x-node--claims { background: var(--teal); }
  .x-node--claims p, .x-node--claims .x-node-tag { color: rgba(10,15,26,.78); }
  .x-cap { position: absolute; left: 71%; top: calc(655 / 7.4 * 1%); padding: 0; }
}
@media (min-width: 1100px) and (max-width: 1250px) { .x-node { padding: 14px 16px 12px; } .x-node p { font-size: 12.5px; line-height: 1.45; } }

/* ---------- 9. CATEGORIES — typographic index ---------- */
.x-cats { background: var(--night); color: var(--paper); padding: var(--section-y) 0; position: relative; }
.x-cats-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 72px); }
.x-cats-head .x-label { color: var(--teal); }
.x-cats-head .x-display { margin-top: 20px; font-size: clamp(38px, 6.2vw, 104px); }
.x-cats-head .x-display i { color: var(--teal); }
.x-cats-head .x-lede { color: var(--muted-d); }
.x-index { border-top: 1.5px solid var(--paper); }
.x-item { border-bottom: 1px solid var(--rule-d); scroll-margin-top: 72px; }
.x-item h3 { margin: 0; }
.x-item-btn { display: grid; grid-template-columns: clamp(34px, 5vw, 72px) minmax(0, 1fr) auto auto; align-items: center; gap: clamp(8px, 2vw, 28px); width: 100%; padding: clamp(14px, 1.6vw, 24px) 0; background: none; border: 0; color: var(--paper); text-align: left; cursor: pointer; font-family: var(--f-sans); transition: color .3s, padding .45s var(--ease); }
.x-item-btn i { font: 500 12px var(--f-mono); font-style: normal; letter-spacing: .1em; color: var(--muted-d); }
.x-item-name { font-weight: 800; font-size: clamp(34px, 7.2vw, 116px); letter-spacing: -.055em; line-height: .96; transition: transform .5s var(--ease); }
.x-item-btn em { font: 500 12px var(--f-mono); font-style: normal; letter-spacing: .1em; color: var(--muted-d); }
.x-item-ico { width: clamp(30px, 4vw, 56px); height: clamp(30px, 4vw, 56px); color: var(--muted-d); transition: color .3s, transform .5s var(--ease); }
.x-item-btn:hover { color: var(--teal); }
.x-item-btn:hover .x-item-name { transform: translateX(10px); }
.x-item.is-open .x-item-btn { color: var(--teal); }
.x-item.is-open .x-item-ico, .x-item.is-open .x-item-btn i, .x-item.is-open .x-item-btn em { color: var(--teal); }
.x-item.is-open .x-item-ico { transform: rotate(-8deg) scale(1.08); }
.x-item-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .6s var(--ease), visibility 0s .6s; }
.x-item.is-open .x-item-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .6s var(--ease); }
html:not(.js) .x-item-panel { grid-template-rows: 1fr; visibility: visible; }
.x-item-inner { min-height: 0; overflow: hidden; }
.x-item-cols { display: grid; grid-template-columns: clamp(34px, 5vw, 72px) minmax(0, 5fr) minmax(0, 7fr); gap: clamp(8px, 2vw, 28px); padding: 8px 0 clamp(28px, 4vw, 56px); }
.x-item-cols > div:first-child { grid-column: 2; }
.x-item-cols.no-brands > div:first-child { grid-column: 2 / 4; }
.x-sub-l { display: block; margin-bottom: 10px; font: 500 11.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.x-links { list-style: none; margin: 0; padding: 0; }
.x-links a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule-d); text-decoration: none; font-size: 15px; line-height: 1.35; transition: color .2s, padding .3s var(--ease); }
.x-links a span { color: var(--teal); flex: none; transition: transform .3s var(--ease); }
.x-links a:hover { color: var(--teal); padding-left: 8px; }
.x-links a:hover span { transform: translateX(4px); }
.x-links--cols { columns: 2; column-gap: 36px; }
.x-links--cols li { break-inside: avoid; }

/* ---------- 10. CONTACT — mint closing composition ---------- */
.x-contact { position: relative; background: var(--teal); color: var(--night); padding: var(--section-y) 0 clamp(72px, 9vw, 140px); overflow: hidden; }
.x-contact-shield { position: absolute; right: -8vw; top: -6%; width: min(60vw, 760px); height: auto; opacity: .9; pointer-events: none; }
.x-contact .wrap { position: relative; }
.x-contact h2 { margin-top: 22px; font-size: clamp(48px, 10.4vw, 176px); max-width: 8.5em; line-height: .86; }
.x-contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); margin-top: clamp(40px, 6vw, 88px); align-items: start; }
.x-contact-side .x-lede { color: rgba(10,15,26,.82); }
.x-contact-list { display: grid; margin-top: 36px; border-top: 1.5px solid var(--night); }
.x-contact-list > * { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid rgba(10,15,26,.3); text-decoration: none; font-size: 16px; line-height: 1.5; }
.x-contact-list > *::before { content: attr(data-k); font: 500 11.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .7; padding-top: 3px; }
.x-form { background: var(--night); color: var(--paper); padding: clamp(24px, 3.4vw, 48px); position: relative; }
.x-form::before { content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 6px; background: var(--teal); }
.x-form .form-row { gap: 20px; }
.x-form .form-field { margin-bottom: 22px; gap: 4px; }
.x-form .form-field label { font: 500 11.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-d); }
.x-form .form-field input, .x-form .form-field textarea, .x-form .form-field select {
  width: 100%; min-width: 0; box-sizing: border-box; background: transparent; color: var(--paper); border: 0; border-bottom: 1.5px solid var(--rule-d); border-radius: 0; padding: 10px 0 12px; font: 400 17px var(--f-sans); transition: border-color .25s;
}
.x-form .form-row > .form-field { min-width: 0; }
.x-form .form-field input::placeholder { color: rgba(243,240,232,.35); }
.x-form .form-field select option { color: var(--night); }
.x-form .form-field input:focus, .x-form .form-field textarea:focus, .x-form .form-field select:focus { outline: none; border-bottom-color: var(--teal); }
.x-form .form-status { color: var(--paper); }
.x-form .form-status-success { color: var(--teal); }
.x-form .form-status-error { color: #ff8f86; }
.x-form .x-btn { width: 100%; margin-top: 8px; }
.x-form .x-btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- 11. ASK AN AI — three full-height doors ---------- */
.x-ask { background: var(--paper); padding: var(--section-y) 0 0; }
.x-ask-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.x-ask-head .x-display { margin-top: 20px; font-size: clamp(40px, 6.4vw, 108px); }
.x-ask-hl { background: linear-gradient(transparent 58%, var(--teal) 58%, var(--teal) 92%, transparent 92%); padding: 0 .04em; }
.x-ask-head .x-lede { color: var(--muted); }
.x-feats { list-style: none; margin: clamp(32px, 4vw, 56px) 0 clamp(40px, 5vw, 72px); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--night); }
.x-feats li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 16px 20px 16px 0; font-size: 14.5px; line-height: 1.35; }
.x-feats li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.x-feats .ask-ai-feature-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid var(--night); border-radius: 50%; background: none; color: var(--night); }
.x-feats strong { display: block; font-weight: 600; }
.x-doors { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--night); }
.home .ask-ai-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: clamp(340px, 34vw, 480px); padding: clamp(22px, 2.4vw, 36px) clamp(18px, 2.2vw, 32px) clamp(24px, 2.4vw, 36px);
  background: var(--paper); border: 0; border-radius: 0; box-shadow: none; text-align: left; color: var(--night); font: inherit; cursor: pointer; transition: background .4s var(--ease), color .4s var(--ease);
}
.home .ask-ai-card + .ask-ai-card { border-left: 1px solid var(--rule); }
.home .ask-ai-card:hover { transform: none; box-shadow: none; background: var(--night); color: var(--paper); }
.home .ask-ai-card .ask-ai-card-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; background: none; color: inherit; margin-bottom: auto; }
.home .ask-ai-card h3 { margin: clamp(40px, 6vw, 88px) 0 0; font-weight: 800; font-size: clamp(40px, 5.2vw, 84px); letter-spacing: -.06em; line-height: .9; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.home .ask-ai-card .ask-ai-badge { position: static; order: -1; padding: 4px 9px; border-radius: 2px; background: var(--teal); color: var(--night); font: 500 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; transform: none; box-shadow: none; }
.home .ask-ai-card .ask-ai-card-sub { margin: 14px 0 0; font: 500 11.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); transition: color .4s; }
.home .ask-ai-card:hover .ask-ai-card-sub { color: var(--teal); }
.home .ask-ai-card .ask-ai-card-desc { margin: 10px 0 0; font-size: 15px; line-height: 1.5; opacity: .75; max-width: 30ch; }
.home .ask-ai-card .ask-ai-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.home .ask-ai-card .ask-ai-tag { padding: 3px 10px; border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit; opacity: .6; font: 500 11px var(--f-mono); letter-spacing: .04em; }
.home .ask-ai-card .ask-ai-cta { align-self: flex-start; margin-top: 24px; display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; color: inherit; background: none; border: 0; padding: 0; }
.home .ask-ai-card .ask-ai-cta span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--night); color: var(--teal); transition: transform .35s var(--ease), background .3s; }
.home .ask-ai-card:hover .ask-ai-cta span { background: var(--teal); color: var(--night); transform: rotate(-45deg); }
.home .ask-ai-toast { font-family: var(--f-sans); }

/* ---------- 12. FOOTER — ink, oversized wordmark ---------- */
.x-foot { background: var(--night); color: var(--paper); padding: clamp(56px, 8vw, 112px) 0 0; overflow: hidden; }
.x-foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: clamp(28px, 4vw, 72px); }
.x-foot-about { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted-d); max-width: 44ch; }
.x-foot-contact { display: grid; gap: 6px; margin-top: 24px; font-size: 15px; line-height: 1.55; font-style: normal; }
.x-foot-contact a { text-decoration: none; width: fit-content; background: linear-gradient(var(--teal), var(--teal)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s; padding-bottom: 2px; }
.x-foot-contact a:hover { background-size: 100% 1px; color: var(--teal); }
.x-foot-contact span { color: var(--muted-d); }
.x-foot-social { display: flex; gap: 8px; margin-top: 26px; }
.x-foot-social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--rule-d); border-radius: 50%; transition: background .25s, color .25s, border-color .25s; }
.x-foot-social a:hover { background: var(--teal); color: var(--night); border-color: var(--teal); }
.x-foot-app { margin-top: 26px; }
.x-foot-app .footer-app-label { display: block; margin-bottom: 10px; font: 500 11.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-d); }
.x-foot .play-badge { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 12px; border: 1px solid var(--rule-d); border-radius: 10px; background: #000; color: #fff; text-decoration: none; transition: border-color .25s; }
.x-foot .play-badge:hover { border-color: var(--teal); }
.x-foot h4 { margin: 0 0 16px; font: 500 11.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.x-foot-col a { display: block; padding: 8px 0; font-size: 15px; text-decoration: none; transition: color .2s, padding .3s var(--ease); width: fit-content; }
.x-foot-col a:hover { color: var(--teal); padding-left: 6px; }
.x-foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 80px); padding-top: 20px; border-top: 1px solid var(--rule-d); font: 400 12px var(--f-mono); letter-spacing: .06em; color: var(--muted-d); }
.x-wordmark { display: block; width: 100%; height: auto; margin: clamp(20px, 3vw, 40px) 0 -1.4%; }

/* ---------- 13. Motion ---------- */
.home .reveal { transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.home .reveal.in { transform: none; }

/* ---------- 14. Responsive ---------- */
@media (max-width: 1099px) {
  .x-hero-copy { width: min(100%, 72%); }
  .x-hero-row { grid-template-columns: 1fr; }
  .x-actions { max-width: 440px; }
  .x-eco-head, .x-cats-head, .x-ask-head { grid-template-columns: 1fr; }
  .x-what-foot { grid-template-columns: 1fr; }
  .x-foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .x-foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .x-hero-main { min-height: 0; padding-bottom: 0; }
  .x-hero-copy { width: 100%; }
  .x-shield { position: relative; right: auto; top: auto; bottom: auto; width: min(86%, 420px); height: auto; aspect-ratio: 520 / 640; margin: 36px 0 0 auto; transform: translateX(calc(var(--gutter) * .8)); }
  .x-hero h1 { font-size: clamp(44px, 13.4vw, 84px); }
  .x-ticker ol { grid-template-columns: 1fr; }
  .x-ticker li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-d); }
  .x-ticker li { padding: 16px 0; }
  .x-flow { grid-template-columns: 1fr; padding: 0 0 0 36px; row-gap: 22px; }
  .x-flow::before { left: 7px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .x-flow::after { display: none; }
  .x-flow li::before { left: -36px; top: 2px; }
  .x-nums-grid { display: flex; flex-direction: column; gap: 40px; align-items: flex-start; }
  .x-n2, .x-n4 { justify-self: auto; }
  .x-n1 strong { font-size: clamp(110px, 38vw, 200px); } .x-n2 strong { font-size: clamp(90px, 30vw, 160px); }
  .x-n3 strong, .x-n4 strong { font-size: clamp(72px, 22vw, 120px); }
  .x-item-btn { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .x-item-btn em { display: none; }
  .x-item-cols { grid-template-columns: 30px minmax(0, 1fr); }
  .x-item-cols > div { grid-column: 2 !important; }
  .x-item-cols > div + div { margin-top: 24px; }
  .x-contact-grid { grid-template-columns: 1fr; }
  .x-contact-shield { width: 86vw; right: -34vw; top: 1%; opacity: .55; }
  .x-contact-shield path:last-child { display: none; }
  .x-feats, .x-doors { grid-template-columns: 1fr; }
  .x-feats li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .home .ask-ai-card { min-height: 0; }
  .home .ask-ai-card + .ask-ai-card { border-left: 0; border-top: 1px solid var(--rule); }
  .home .ask-ai-card h3 { margin-top: 36px; font-size: clamp(44px, 14vw, 72px); }
  .x-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .x-links--cols { columns: 1; }
  .x-contact-list > * { grid-template-columns: 1fr; gap: 2px; }
  .x-foot-grid { grid-template-columns: 1fr; }
  .x-what-head { flex-direction: column; gap: 6px; }
  .x-statement { font-size: clamp(28px, 8.6vw, 44px); }
}

/* ---------- 15. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .home .reveal { transition: opacity .01s; transform: none; }
  .x-kicker i, .x-scan, .x-live, .x-flow::after, .x-wires .flow { animation: none !important; }
  html.js .x-statement .w { opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   16. MOTION LAYER
   Everything below is progressive: initial "hidden" states only apply under
   html.js, and prefers-reduced-motion switches the lot off (see end).
   ========================================================================== */

/* film grain — a tactile print surface instead of flat digital colour */
body.home::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .075; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* scroll progress — a hairline under the nav */
.hn::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--night); transform-origin: left; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* intro curtain (first visit per session) */
.x-intro { display: none; }
html.x-intro-on .x-intro { display: grid; place-items: center; align-content: center; gap: 22px; position: fixed; inset: 0; z-index: 200; background: var(--night); transition: transform 1.05s cubic-bezier(.76, 0, .24, 1); }
html.x-intro-on.x-go .x-intro { transform: translateY(-101%); }
.x-intro svg { width: 76px; height: auto; overflow: visible; }
.x-intro svg path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: x-draw 1.2s cubic-bezier(.6, 0, .2, 1) forwards; }
.x-intro svg path + path { animation-delay: .35s; }
.x-intro span { font: 500 12px var(--f-mono); letter-spacing: .5em; text-transform: uppercase; color: var(--paper); opacity: 0; animation: x-fade .6s .5s forwards; padding-left: .5em; }
@keyframes x-draw { to { stroke-dashoffset: 0; } }
@keyframes x-fade { to { opacity: 1; } }

/* masked word reveal for display headings (split by home.js) */
.mk { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .03em .14em; margin: -.06em -.03em -.14em; }
.mk > span { display: inline-block; transform: translateY(112%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); will-change: transform; }
.x-display.is-in .mk > span { transform: none; }
html:not(.js) .mk > span { transform: none; }

/* hero entrance sequence */
html.js .x-kicker, html.js .x-hero-row > *, html.js .x-ticker { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
html.js.x-go .x-kicker { opacity: 1; transform: none; transition-delay: .15s; }
html.js.x-go .x-hero-row > :nth-child(1) { opacity: 1; transform: none; transition-delay: .85s; }
html.js.x-go .x-hero-row > :nth-child(2) { opacity: 1; transform: none; transition-delay: 1s; }
html.js.x-go .x-ticker { opacity: 1; transform: none; transition-delay: 1.25s; }
html.js .x-hero h1 .mk > span { transition-delay: calc(.25s + var(--d, 0) * 90ms); }

/* shield: draws in, then lives */
html.js .x-outline { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s cubic-bezier(.5, 0, .2, 1) .2s; }
html.js.x-go .x-outline { stroke-dashoffset: 0; }
html.js .x-shield-body { opacity: 0; transform: scale(.93); transform-origin: 260px 320px; transition: opacity 1s var(--ease) .4s, transform 1.4s var(--ease) .4s; }
html.js.x-go .x-shield-body { opacity: 1; transform: none; }
html.js .x-cell { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(1s + var(--i) * .13s); }
html.js.x-go .x-cell { opacity: 1; transform: none; }
.x-cellbg { opacity: 0; animation: x-cell 12s infinite; animation-delay: calc(3.5s + var(--i) * 1.7s); }
.x-tick { stroke-dasharray: 1; stroke-dashoffset: 1; animation: x-tick 12s infinite; animation-delay: calc(3.5s + var(--i) * 1.7s); }
@keyframes x-cell { 0% { opacity: 0; } 4%, 14% { opacity: .13; } 22%, 100% { opacity: 0; } }
@keyframes x-tick { 0%, 100% { stroke-dashoffset: 1; } 5%, 20% { stroke-dashoffset: 0; } 26% { stroke-dashoffset: 1; } }
.x-dev { transition: transform .6s var(--ease); }
.x-shield svg { transform: perspective(1400px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .5s var(--ease); transform-style: preserve-3d; }

/* marquee bar (replaces the static three-column strip) */
.x-ticker ol { display: flex; flex: none; grid-template-columns: none; }
.x-marquee { overflow: hidden; }
.x-marquee-track { display: flex; width: max-content; animation: x-marq 46s linear infinite; }
.x-marquee:hover .x-marquee-track { animation-play-state: paused; }
.x-ticker li, .x-ticker li + li { display: flex; align-items: baseline; gap: 14px; padding: 24px 0 26px; border: 0; white-space: nowrap; }
.x-ticker li::after { content: ""; flex: none; align-self: center; width: 9px; height: 9px; margin: 0 clamp(28px, 4vw, 64px); background: var(--teal); transform: rotate(45deg); }
.x-ticker span { font-size: clamp(18px, 2vw, 28px); }
@keyframes x-marq { to { transform: translateX(-50%); } }

/* giant background word behind "What is Assurify" */
.x-bgword { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); pointer-events: none; overflow: hidden; }
.x-bgword span { display: block; width: max-content; font-weight: 800; font-size: clamp(160px, 26vw, 420px); letter-spacing: -.07em; line-height: 1; white-space: nowrap; color: rgba(243, 240, 232, .035); translate: var(--bx, 0) 0; will-change: translate; }
.x-what .wrap { position: relative; }

/* ecosystem: wires draw left→right, nodes cascade */
@media (min-width: 1100px) {
  html.js .x-wires { clip-path: inset(-10px 100% -10px -10px); transition: clip-path 2s cubic-bezier(.5, 0, .2, 1) .15s; }
  html.js .x-diagram.is-in .x-wires { clip-path: inset(-10px -10px -10px -10px); }
}

/* category index: rolling names */
@media (hover: hover) and (min-width: 861px) {
  .x-item-name { height: 1.04em; padding: 0; overflow: hidden; }
  .x-item-name > span { display: block; line-height: .96; transition: transform .6s var(--ease); }
  .x-item-name > span::after { content: attr(data-t); display: block; margin-top: .06em; color: var(--teal); }
  .x-item-btn:hover .x-item-name > span { transform: translateY(-1.02em); }
  .x-item-btn:hover .x-item-name { transform: none; }
}

/* magnetic controls get a gentle spring */
.x-btn, .hn-call { will-change: transform; }
.x-mag { transition: transform .5s var(--ease); }

/* stagger entrance for index rows and doors */
html.js .x-item, html.js .x-doors .ask-ai-card { transition-property: background, color, opacity, transform; }

@media (max-width: 860px) {
  .x-ticker li, .x-ticker li + li { padding: 18px 0 20px; }
  .x-ticker ol { display: flex; }
  .x-bgword span { font-size: 38vw; }
}

@media (prefers-reduced-motion: reduce) {
  body.home::after { display: none; }
  .x-marquee-track, .x-cellbg, .x-tick, .x-intro svg path, .x-intro span { animation: none !important; }
  .mk > span, html.js .x-kicker, html.js .x-hero-row > *, html.js .x-ticker, html.js .x-cell, html.js .x-shield-body { transform: none !important; opacity: 1 !important; transition: none !important; }
  html.js .x-outline { stroke-dashoffset: 0; transition: none; }
  html.js .x-wires { clip-path: none; transition: none; }
  .x-intro { display: none !important; }
  .x-marquee { overflow-x: auto; }
}
.x-btn, .hn-call { transition: background .3s var(--ease), color .3s var(--ease), border-color .3s, translate .45s var(--ease); }

/* ==========================================================================
   17. LIGHT MODE
   The page is now a light-surface system: pale-mint hero, white/paper
   sections, mint reserved for the marquee bar and the closing contact block.
   Ink survives only where it is a deliberate focal object (shield, buttons,
   the Admin node, hover states). Later in the cascade, so it wins over the
   dark treatments above without touching them.
   ========================================================================== */
body.home { --paper-3: #fbfaf6; --mint-wash: #e2faf5; }
body.home .on-dark :focus-visible { outline-color: var(--night); }

/* nav: always a light bar */
.hn { background: rgba(243, 240, 232, .9); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--rule); }
.hn .brand-logo, .hn.scrolled .brand-logo { filter: none; }
@media (max-width: 1240px) {
  .hn-sheet { background: var(--paper); color: var(--night); border-bottom: 1px solid var(--rule); }
  .hn-sheet a.hn-s-link { border-bottom-color: var(--rule); }
  .hn-sheet a.hn-s-link i { color: var(--teal-deep); }
  .hn-sheet .hn-call { background: var(--night); color: var(--paper); }
  .hn-sheet .hn-call-ico { background: var(--teal); color: var(--night); }
}

/* intro curtain: paper with ink strokes */
html.x-intro-on .x-intro { background: var(--paper); }
.x-intro svg path { stroke: var(--night); }
.x-intro span { color: var(--night); }

/* hero: pale mint field, ink shield stays as the one dark object */
.x-hero { background: var(--mint-wash); }
.x-hero::before { background: repeating-linear-gradient(90deg, rgba(10,15,26,.07) 0 1px, transparent 1px calc(100% / 12)); }
.x-sub { color: var(--muted); }
.x-kicker { background: rgba(255, 255, 255, .55); }
.x-kicker i { background: var(--teal-deep); }
.x-btn:hover { background: var(--night); color: var(--paper); }

/* marquee: the mint stripe */
.x-ticker { background: var(--teal); color: var(--night); }
.x-ticker i { color: var(--night); opacity: .65; }
.x-ticker li::after { background: var(--night); }

/* what is assurify */
.x-what { background: var(--paper-3); color: var(--night); }
.x-what-head { color: var(--teal-deep); }
.x-statement em { color: var(--teal-deep); }
.x-what-foot p { color: var(--muted); }
.x-bgword span { color: rgba(10, 15, 26, .045); }
.x-flow::before { background: var(--rule); }
.x-flow li::before { background: var(--paper-3); border-color: var(--night); }
.x-flow li:first-child::before { background: var(--night); }
.x-flow::after { background: linear-gradient(90deg, transparent, var(--teal)); }
.x-flow i { color: var(--teal-deep); }

/* categories: light index */
.x-cats { background: var(--paper); color: var(--night); }
.x-cats::before { display: none; }
.x-cats-head .x-label { color: var(--teal-deep); }
.x-cats-head .x-display i { color: var(--teal-deep); }
.x-cats-head .x-lede { color: var(--muted); }
.x-index { border-top-color: var(--night); }
.x-item { border-bottom-color: var(--rule); }
.x-item-btn { color: var(--night); }
.x-item-btn i, .x-item-btn em, .x-item-ico { color: var(--muted); }
.x-item-btn:hover, .x-item.is-open .x-item-btn { color: var(--teal-deep); }
.x-item.is-open .x-item-ico, .x-item.is-open .x-item-btn i, .x-item.is-open .x-item-btn em { color: var(--teal-deep); }
.x-sub-l { color: var(--teal-deep); }
.x-links a { border-bottom-color: var(--rule); color: var(--night); }
.x-links a span { color: var(--teal-deep); }
.x-links a:hover { color: var(--teal-deep); }
@media (hover: hover) and (min-width: 861px) { .x-item-name > span::after { color: var(--teal-deep); } }

/* contact: keeps the mint punch, form becomes a light sheet */
.x-form { background: var(--paper-3); color: var(--night); box-shadow: 8px 8px 0 var(--night); }
.x-form::before { background: var(--night); }
.x-form .form-field label { color: var(--muted); }
.x-form .form-field input, .x-form .form-field textarea, .x-form .form-field select { color: var(--night); border-bottom-color: rgba(10, 15, 26, .28); }
.x-form .form-field input::placeholder { color: rgba(10, 15, 26, .38); }
.x-form .form-field input:focus, .x-form .form-field textarea:focus, .x-form .form-field select:focus { border-bottom-color: var(--night); }
.x-form .form-status { color: var(--night); }
.x-form .form-status-success { color: var(--teal-deep); }
.x-form .form-status-error { color: #b3261e; }
.x-form .x-btn--teal { background: var(--night); color: var(--paper); border-color: var(--night); }
.x-form .x-btn--teal i { background: var(--teal); color: var(--night); }
.x-form .x-btn--teal:hover { background: var(--teal); color: var(--night); border-color: var(--teal); }
.x-form .x-btn--teal:hover i { background: var(--night); color: var(--teal); }
@media (max-width: 860px) { .x-form { box-shadow: none; border: 1.5px solid var(--night); } }

/* ask: alternate to the soft paper */
.x-ask { background: var(--paper-2); }
.home .ask-ai-card { background: var(--paper-2); }

/* footer: light, with the full-colour wordmark */
.x-foot { background: var(--paper-3); color: var(--night); border-top: 1.5px solid var(--night); }
.x-foot-about, .x-foot-contact span, .x-foot-bottom, .x-foot-app .footer-app-label { color: var(--muted); }
.x-foot-contact a { background-image: linear-gradient(var(--night), var(--night)); }
.x-foot-contact a:hover, .x-foot-col a:hover { color: var(--teal-deep); }
.x-foot-social a { border-color: var(--rule); }
.x-foot-social a:hover { background: var(--night); color: var(--teal); border-color: var(--night); }
.x-foot h4 { color: var(--teal-deep); }
.x-foot .play-badge { border-color: var(--night); }
.x-foot .play-badge:hover { border-color: var(--teal-deep); }
.x-foot-bottom { border-top-color: var(--rule); }

/* ==========================================================================
   18. SCALE-DOWN — type and numerals sized to sit comfortably in the viewport
   ========================================================================== */
body.home { --section-y: clamp(56px, 7.5vw, 112px); }

.x-display { font-size: clamp(32px, 4.4vw, 68px); line-height: .96; }
.x-hero h1 { font-size: clamp(36px, 5.2vw, 80px); line-height: .94; }
.x-hero-main { min-height: 0; padding-bottom: clamp(36px, 5vw, 64px); }
.x-tagline { font-size: clamp(17px, 1.4vw, 22px); }
.x-eco-head .x-display, .x-cats-head .x-display, .x-ask-head .x-display { font-size: clamp(30px, 4.2vw, 64px); }
.x-contact h2 { font-size: clamp(38px, 6.6vw, 104px); line-height: .92; }
.x-statement { font-size: clamp(24px, 3.3vw, 50px); line-height: 1.08; max-width: 22em; }
.x-bgword span { font-size: clamp(120px, 18vw, 300px); }
.x-ticker span { font-size: clamp(15px, 1.5vw, 21px); }
.x-ticker li, .x-ticker li + li { padding: 18px 0 20px; }

/* numbers: one compact row instead of giant staggered numerals */
.x-nums { padding: clamp(40px, 5vw, 72px) 0; }
.x-nums-grid { grid-template-columns: repeat(4, 1fr); column-gap: clamp(16px, 2.4vw, 40px); row-gap: 28px; align-items: start; }
.x-n1, .x-n2, .x-n3, .x-n4 { grid-column: auto; grid-row: auto; justify-self: stretch; }
.x-n strong, .x-n1 strong, .x-n2 strong, .x-n3 strong, .x-n4 strong {
  font-size: clamp(36px, 4.6vw, 68px); line-height: .9; letter-spacing: -.05em; color: var(--night);
  background: none; padding: 0; -webkit-text-stroke: 0; width: auto;
}
.x-n2 strong { color: var(--teal-deep); }
.x-n span { font-size: 11px; padding-top: 10px; }

/* ecosystem + index + doors */
.x-node h3 { font-size: clamp(20px, 2vw, 28px); }
.x-node--admin h3 { font-size: clamp(24px, 2.4vw, 34px); }
.x-item-name { font-size: clamp(26px, 4.3vw, 64px); }
.x-item-btn { padding: clamp(10px, 1.2vw, 18px) 0; }
.x-item-ico { width: clamp(24px, 2.8vw, 40px); height: clamp(24px, 2.8vw, 40px); }
.home .ask-ai-card { min-height: clamp(280px, 26vw, 380px); }
.home .ask-ai-card h3 { font-size: clamp(30px, 3.4vw, 52px); margin-top: clamp(28px, 4vw, 56px); }
.x-wordmark { width: min(100%, 900px); margin-inline: auto; }
.x-foot-about { font-size: 14px; }

@media (max-width: 860px) {
  .x-hero h1 { font-size: clamp(34px, 10.4vw, 56px); }
  .x-nums-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .x-n strong, .x-n1 strong, .x-n2 strong, .x-n3 strong, .x-n4 strong { font-size: clamp(38px, 12vw, 56px); }
  .x-statement { font-size: clamp(22px, 6.6vw, 34px); }
  .x-item-name { font-size: clamp(24px, 7.6vw, 40px); }
  .home .ask-ai-card h3 { font-size: clamp(32px, 9vw, 46px); }
  .x-contact h2 { font-size: clamp(36px, 11vw, 64px); }
  .x-bgword span { font-size: 30vw; }
}
@media (max-width: 560px) { .x-statement { font-size: clamp(22px, 6.4vw, 30px); } }
