/* ==========================================================================
   VNYX IT — "Drawing Set" design system
   The site is a set of engineering sheets: the closet (night) is drawn
   into a plan (paper). Every section is a sheet with a title block.
   ========================================================================== */

/* ---------- Fonts (self-hosted, Latin; see assets/fonts/LICENSE.md) ---------- */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-roman.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 600; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
/* Metric-matched fallbacks: while a web font is still downloading, the local font takes the same space,
   so the swap doesn't push anything around (CLS). Fraunces values match the headline cut (opsz 120–144). */
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"), local("Noto Serif"); size-adjust: 84%; ascent-override: 116.4%; descent-override: 30.3%; line-gap-override: 0%; }
@font-face { font-family: "Plex Sans Fallback"; src: local("Arial"), local("Arimo"), local("Roboto"); size-adjust: 100.7%; ascent-override: 101.8%; descent-override: 27.3%; line-gap-override: 0%; }

:root {
  /* Night — the closet */
  --night: #0B0E14;
  --night-2: #12151A;
  --night-3: #1B1F26;
  --night-text: #ECE9E1;
  --night-muted: #9A9DA3;
  --night-rule: rgba(236, 233, 225, 0.12);

  /* Paper — the plan */
  --paper: #F3F1EA;
  --paper-2: #E9E5DA;
  --paper-3: #DDD8CA;
  --card: #F8F6F0;
  --ink: #12151B;
  --ink-2: #353A42;
  --graphite: #5E636B;
  --rule: rgba(21, 24, 29, 0.14);
  --rule-strong: rgba(21, 24, 29, 0.32);

  /* Signal */
  --cobalt: #2D46FF;
  --cobalt-ink: #1C2CB0;
  --cobalt-tint: rgba(45, 70, 255, 0.08);
  --cobalt-line: rgba(45, 70, 255, 0.22);
  --rust: #B14A16;
  --rust-tint: rgba(177, 74, 22, 0.09);
  --beacon: #FF6B1A;
  --amber: var(--beacon);
  --ok: #1F7A4A;
  --ok-tint: rgba(31, 122, 74, 0.1);

  /* Type */
  --f-display: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --f-sans: "IBM Plex Sans", "Plex Sans Fallback", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-md: 1rem;
  --t-lg: 1.125rem;
  --t-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --t-2xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --t-3xl: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);
  --t-4xl: clamp(2.75rem, 1.8rem + 4.4vw, 5.75rem);

  /* Space (8pt) */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem; --s10: 8rem;

  --wrap: 1240px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --radius: 4px;
  --nav-h: 68px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --z-bg: 0; --z-content: 1; --z-sticky: 20; --z-nav: 40; --z-cursor: 90; --z-modal: 100;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--t-md);
  line-height: 1.6;
  font-feature-settings: "ss02", "cv01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
::selection { background: var(--cobalt); color: var(--paper); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
.theme-night :focus-visible { outline-color: var(--amber); }

h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: var(--z-modal);
  background: var(--cobalt); color: var(--paper); padding: 0.75rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Paper grain — fixed, very subtle */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200;
  opacity: 0.05; 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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 860px; }
.stack > * + * { margin-top: var(--s4); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s5); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

section { position: relative; }

.theme-night { background: var(--night); color: var(--night-text); }
.theme-night .muted { color: var(--night-muted); }
.muted { color: var(--graphite); }

/* Blueprint grid paper */
.gridpaper {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--cobalt-tint) 1px, transparent 1px),
    linear-gradient(90deg, var(--cobalt-tint) 1px, transparent 1px),
    linear-gradient(rgba(43,63,224,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,63,224,0.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  font-weight: 380;
  letter-spacing: -0.025em;
  line-height: 0.98;
  font-size: var(--t-4xl);
}
.h2 {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 120, "SOFT" 30;
  font-weight: 400;
  font-size: var(--t-3xl);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 48, "SOFT" 20;
  font-weight: 500;
  font-size: var(--t-2xl);
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.h4 { font-family: var(--f-sans); font-weight: 600; font-size: var(--t-lg); line-height: 1.35; letter-spacing: -0.005em; }
.display em, .h2 em, .h3 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--cobalt);
}
.theme-night .display em, .theme-night .h2 em, .theme-night .h3 em { color: var(--amber); }
.lede { font-size: var(--t-xl); line-height: 1.5; color: var(--ink-2); max-width: 38ch; text-wrap: pretty; }
.theme-night .lede { color: var(--night-muted); }
.body-lg { font-size: var(--t-lg); line-height: 1.65; color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.theme-night .body-lg { color: var(--night-muted); }

.mono, .label {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.label { color: var(--graphite); display: inline-flex; align-items: center; gap: 0.6em; }
.theme-night .label { color: var(--night-muted); }
.label .tick { width: 18px; height: 1px; background: currentColor; display: inline-block; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

.tag {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3em 0.65em; border: 1px solid var(--rule-strong); border-radius: 2px; color: var(--ink-2);
  background: var(--card);
}
.tag--cobalt { border-color: var(--cobalt-line); color: var(--cobalt-ink); background: var(--cobalt-tint); }
.tag--rust { border-color: rgba(177,74,22,.3); color: var(--rust); background: var(--rust-tint); }
.tag--ok { border-color: rgba(31,122,74,.3); color: var(--ok); background: var(--ok-tint); }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.theme-night .tag { background: transparent; border-color: var(--night-rule); color: var(--night-muted); }
.theme-night .tag--rust { color: #F0A27A; border-color: rgba(240, 162, 122, 0.35); }
.theme-night .tag--cobalt { color: #AEB8FF; border-color: rgba(174, 184, 255, 0.35); }
.theme-night .tag--ok { color: #6FD39C; border-color: rgba(111, 211, 156, 0.35); }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--cobalt); --b-fg: #F7F6F2; --b-bd: var(--cobalt);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.75em;
  min-height: 52px; padding: 0 1.4rem;
  font-family: var(--f-sans); font-weight: 500; font-size: var(--t-md); letter-spacing: -0.005em;
  color: var(--b-fg); background: var(--b-bg); border: 1px solid var(--b-bd); border-radius: var(--radius);
  text-decoration: none; cursor: pointer; isolation: isolate; overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.2s, color 0.2s;
  touch-action: manipulation;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 10px 24px -14px rgba(45, 70, 255, 0.9);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.22) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease-out);
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 16px 30px -14px rgba(45, 70, 255, 0.95); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn .arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--rule-strong); box-shadow: none; }
.btn--ghost:hover { --b-bg: var(--card); box-shadow: 0 10px 22px -16px rgba(21,24,29,.5); }
.theme-night .btn--ghost { --b-fg: var(--night-text); --b-bd: var(--night-rule); }
.theme-night .btn--ghost:hover { --b-bg: rgba(255,255,255,0.05); }
.btn--lg { min-height: 60px; padding: 0 1.75rem; font-size: var(--t-lg); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em; font-weight: 500; color: var(--cobalt-ink);
  text-decoration: none; border-bottom: 1px solid var(--cobalt-line); padding-bottom: 2px;
  transition: gap 0.25s var(--ease-out), border-color 0.2s;
}
.link-arrow:hover { gap: 0.8em; border-color: var(--cobalt); }
/* Invisible 44px touch area around small text links (no visual change) */
.link-arrow, .logo, .dx-jump { position: relative; }
.link-arrow::after, .logo::after, .dx-jump::after { content: ""; position: absolute; inset: -10px -6px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color 0.4s var(--ease-out), color 0.4s, border-color 0.4s, transform 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
  color: var(--ink);
}
.nav[data-tone="night"] { color: var(--night-text); }
.nav.is-solid { background: rgba(243, 241, 234, 0.82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--rule); color: var(--ink); }
.nav.is-solid[data-tone="night"] { background: rgba(11, 14, 20, 0.72); border-color: var(--night-rule); color: var(--night-text); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; gap: var(--s6); width: 100%; }
.nav__inner > nav { margin-left: auto; }
.nav__links { display: flex; gap: var(--s5); list-style: none; padding: 0; margin-block: 0; }
.nav__links a {
  font-size: var(--t-sm); text-decoration: none; opacity: 0.78; transition: opacity 0.2s; position: relative; padding: 0.5rem 0;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.15rem; height: 1px; background: currentColor;
}
.nav__cta { display: flex; gap: var(--s3); align-items: center; }
.nav__cta .btn { min-height: 42px; padding: 0 1rem; font-size: var(--t-sm); }
.nav__menu { display: none; background: none; border: 1px solid currentColor; border-radius: var(--radius); width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; opacity: 0.85; }

.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: inherit; }
.logo__mark { display: block; width: 254px; max-width: 100%; height: 32px; flex: none; }
/* Fixed kit colours: the nav changes tone as it crosses paper/night sheets. */
.nav[data-tone="night"] .logo__mark [fill="#12151B"] { fill: #F3F1EA; }
.nav[data-tone="night"] .logo__mark [fill="#2D46FF"] { fill: #C9CEDA; }
.nav[data-tone="paper"] .logo__mark [fill="#F3F1EA"] { fill: #12151B; }
.nav[data-tone="paper"] .logo__mark [fill="#C9CEDA"] { fill: #2D46FF; }

.mobile-menu {
  position: fixed; inset: 0; z-index: calc(var(--z-nav) + 1); background: var(--paper);
  display: flex; flex-direction: column; padding: calc(var(--nav-h) + 1rem) var(--gutter) 2rem;
  transform: translateY(-102%); transition: transform 0.5s var(--ease-out); visibility: hidden;
}
.mobile-menu.is-open { transform: none; visibility: visible; }
.mobile-menu a.mm-link { font-family: var(--f-display); font-size: 2rem; text-decoration: none; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: baseline; }
.mobile-menu a.mm-link span { font-family: var(--f-mono); font-size: 0.75rem; color: var(--graphite); }
.mobile-menu .btn { margin-top: auto; }
.mobile-menu__close { position: absolute; top: 12px; right: var(--gutter); width: 44px; height: 44px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: none; cursor: pointer; }

/* ---------- Sheets (sections) ---------- */
.sheet { padding-block: clamp(5rem, 9vw, 9rem); position: relative; }
.sheet--tight { padding-block: clamp(3.5rem, 6vw, 6rem); }
.sheet-head {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--s5); align-items: end;
  padding-bottom: var(--s5); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); border-bottom: 1px solid var(--rule-strong);
}
.theme-night .sheet-head { border-color: var(--night-rule); }
.sheet-no {
  font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase;
  display: grid; place-items: center; min-width: 76px; height: 54px; padding: 0 0.6rem;
  border: 1px solid var(--rule-strong); line-height: 1.2; text-align: center;
}
.sheet-no b { display: block; font-size: 1.05rem; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); }
.theme-night .sheet-no { border-color: var(--night-rule); }
.theme-night .sheet-no b { color: var(--night-text); }
.sheet-title { display: flex; flex-direction: column; gap: 0.35rem; }
.sheet-meta { text-align: right; }

/* Registration crosshair marks at sheet corners */
.reg { position: absolute; width: 18px; height: 18px; pointer-events: none; opacity: 0.45; }
.reg::before, .reg::after { content: ""; position: absolute; background: currentColor; }
.reg::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.reg::after { top: 50%; left: 0; right: 0; height: 1px; }
.reg--tl { top: 18px; left: 18px; } .reg--tr { top: 18px; right: 18px; }
.reg--bl { bottom: 18px; left: 18px; } .reg--br { bottom: 18px; right: 18px; }

/* Dimension line */
.dim { display: flex; align-items: center; gap: 0.6rem; color: var(--graphite); font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; }
.dim::before, .dim::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.5; }
.dim--ends { position: relative; }
.dim--ends::before { border-left: 1px solid currentColor; height: 9px; background: linear-gradient(currentColor, currentColor) center/100% 1px no-repeat; opacity: 0.6; }
.dim--ends::after { border-right: 1px solid currentColor; height: 9px; background: linear-gradient(currentColor, currentColor) center/100% 1px no-repeat; opacity: 0.6; }

/* Stamp */
.stamp {
  display: inline-grid; place-items: center; text-align: center; gap: 0.15rem;
  padding: 0.6rem 0.9rem; border: 2px solid currentColor; border-radius: 6px;
  font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  color: var(--cobalt); transform: rotate(-6deg); opacity: 0.9;
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px currentColor;
}
.stamp b { font-size: 0.95rem; letter-spacing: 0.12em; }
.stamp--ok { color: var(--ok); }
.stamp--rust { color: var(--rust); }

/* Cards */
.card {
  position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1.25rem, 2.4vw, 2rem);
  transition: border-color 0.3s, box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.card:hover { border-color: var(--rule-strong); box-shadow: 0 24px 50px -36px rgba(21, 24, 29, 0.5); }
.card--flat:hover { transform: none; box-shadow: none; border-color: var(--rule); }
.card__corner { position: absolute; top: -1px; right: -1px; font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.1em; padding: 0.35rem 0.55rem; border-left: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--graphite); background: var(--paper); }

/* Lists */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 0.75rem; align-items: start; line-height: 1.5; }
.checklist li svg { margin-top: 0.2rem; color: var(--cobalt); }
.checklist--x li svg { color: var(--rust); }
.checklist .na { color: var(--graphite); }

/* Ticker */
.ticker { overflow: hidden; border-block: 1px solid var(--rule-strong); background: var(--paper); }
.ticker__track { display: flex; gap: 3rem; padding-block: 1rem; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; gap: 0.8rem; align-items: center; font-family: var(--f-mono); font-size: var(--t-sm); letter-spacing: 0.04em; white-space: nowrap; color: var(--ink-2); }
.ticker__item svg { color: var(--cobalt); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* FAQ */
.faq { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr 28px; gap: var(--s4); align-items: center;
  padding: 1.4rem 0; font-family: var(--f-display); font-variation-settings: "opsz" 36; font-size: var(--t-xl); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q-no { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--graphite); letter-spacing: 0.08em; }
.faq summary .q-ico { width: 28px; height: 28px; border: 1px solid var(--rule-strong); border-radius: 50%; display: grid; place-items: center; transition: transform 0.35s var(--ease-out), background 0.2s; }
.faq details[open] summary .q-ico { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq .a { padding: 0 0 1.6rem calc(56px + var(--s4)); color: var(--ink-2); max-width: 70ch; line-height: 1.7; }
.faq .a p + p { margin-top: 0.8rem; }

/* Footer — drawing title block */
.footer { background: var(--night); color: var(--night-text); padding-top: clamp(4rem, 8vw, 7rem); position: relative; overflow: hidden; }
.footer__big { user-select: none; margin-top: var(--s8); opacity: 0.28; }
.footer__big .logo__mark { width: 100%; height: auto; }
.titleblock { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; border: 1px solid var(--night-rule); }
.titleblock > div { padding: 1.25rem; border-right: 1px solid var(--night-rule); }
.titleblock > div:last-child { border-right: 0; }
.titleblock h3 { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--night-muted); font-weight: 400; margin-bottom: 0.9rem; }
.titleblock ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.125rem; }
.titleblock a { display: inline-block; padding-block: 3px; text-decoration: none; opacity: 0.85; font-size: var(--t-sm); }
.titleblock a:hover { opacity: 1; text-decoration: underline; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; padding-block: 1.25rem; border-top: 1px solid var(--night-rule); margin-top: var(--s6); font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--night-muted); text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3BB273; box-shadow: 0 0 0 3px rgba(59,178,115,.18); margin-right: 0.5rem; vertical-align: middle; }

/* Forms */
.field { display: grid; gap: 0.45rem; }
.field label, .field .flabel { font-weight: 500; font-size: var(--t-sm); color: var(--ink); }
.field .req { color: var(--rust); margin-left: 2px; }
.field .help { font-size: var(--t-xs); color: var(--graphite); line-height: 1.5; }
.field .err { font-size: var(--t-xs); color: var(--rust); display: none; }
.field.has-error .err { display: block; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--rust); }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 0.8rem 0.95rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--rule-strong); border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-tint); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip span {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 1rem;
  border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--card); font-size: var(--t-sm);
  transition: background 0.2s, border-color 0.2s, color 0.2s; cursor: pointer; user-select: none;
}
.chip span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; transition: background 0.2s; }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:checked + span::before { background: var(--amber); border-color: var(--amber); }
.chip input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 2px; }

input[type="range"].range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
input[type="range"].range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--cobalt) var(--fill, 50%), var(--rule-strong) var(--fill, 50%)); }
input[type="range"].range::-moz-range-track { height: 2px; background: var(--rule-strong); }
input[type="range"].range::-moz-range-progress { height: 2px; background: var(--cobalt); }
input[type="range"].range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--cobalt); box-shadow: 0 4px 12px -4px rgba(43,63,224,.6); }
input[type="range"].range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 2px solid var(--cobalt); }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translateX(-28px); }
.js .line-draw path, .js .line-draw line, .js .line-draw rect, .js .line-draw polyline, .js .line-draw circle { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); transition: stroke-dashoffset 1.8s var(--ease-in-out); transition-delay: var(--d, 0s); }
.js .line-draw.is-in path, .js .line-draw.is-in line, .js .line-draw.is-in rect, .js .line-draw.is-in polyline, .js .line-draw.is-in circle { stroke-dashoffset: 0; }

.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-word > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.is-in .split-word > span, .split-word.is-in > span { transform: none; }

/* Drafting cursor (fine pointers only) */
.xhair { position: fixed; top: 0; left: 0; pointer-events: none; z-index: var(--z-cursor); opacity: 0; transition: opacity 0.3s; mix-blend-mode: difference; color: #fff; }
.xhair.is-on { opacity: 1; }
.xhair__h, .xhair__v { position: fixed; background: currentColor; opacity: 0.18; }
.xhair__h { left: 0; right: 0; height: 1px; }
.xhair__v { top: 0; bottom: 0; width: 1px; }
.xhair__read { position: fixed; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; white-space: nowrap; opacity: 0.7; }

/* Reading progress */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--cobalt); z-index: calc(var(--z-nav) + 2); }

/* Sticky mobile CTA */
.mcta { display: none; }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: var(--s2); } .mt-2 { margin-top: var(--s4); } .mt-3 { margin-top: var(--s5); } .mt-4 { margin-top: var(--s6); } .mt-5 { margin-top: var(--s7); } .mt-6 { margin-top: var(--s8); }
.center { text-align: center; }
.hr { height: 1px; background: var(--rule-strong); border: 0; margin: 0; }
.nowrap { white-space: nowrap; }
.ink-cobalt { color: var(--cobalt-ink); }
.ink-rust { color: var(--rust); }
.ink-ok { color: var(--ok); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; }
  .nav__cta .btn--ghost { display: none; }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock > div:nth-child(2) { border-right: 0; }
  .titleblock > div:nth-child(-n+2) { border-bottom: 1px solid var(--night-rule); }
}
@media (max-width: 720px) {
  :root { --nav-h: 60px; }
  .nav__cta .btn { display: none; }
  .sheet-head { grid-template-columns: 1fr; gap: var(--s3); }
  .sheet-no { justify-self: start; display: inline-flex; gap: 0.5rem; align-items: baseline; height: auto; min-width: 0; padding: 0.35rem 0.6rem; }
  .sheet-no b { display: inline; font-size: 0.8rem; }
  .sheet-meta { display: none; }
  .faq summary { grid-template-columns: 36px 1fr 28px; font-size: 1.15rem; }
  .faq .a { padding-left: 0; }
  .titleblock { grid-template-columns: 1fr; }
  .titleblock > div { border-right: 0; border-bottom: 1px solid var(--night-rule); }
  .titleblock > div:last-child { border-bottom: 0; }
  .reg { display: none; }
  .mcta {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: var(--z-sticky);
    transform: translateY(150%); transition: transform 0.45s var(--ease-out);
  }
  .mcta.is-on { transform: none; }
  .mcta .btn { width: 100%; box-shadow: 0 18px 40px -12px rgba(21,24,29,.55); }
  /* The sticky bar must never cover a focused control (WCAG 2.4.11). */
  html { scroll-padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal], .split-word > span { opacity: 1 !important; transform: none !important; }
  .line-draw * { stroke-dashoffset: 0 !important; }
  .ticker__track { animation: none; }
}

/* <picture> is only a format switch: lay out the <img> as if it were a direct child */
picture { display: contents; }

/* Static shared chrome: five drawing-set columns and readable local business details. */
.footer .titleblock { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
.footer .titleblock > div { min-width: 0; }
.footer__nap { margin-top: var(--s6); max-width: 90ch; font-size: var(--t-sm); line-height: 1.8; }
.footer__nap a { text-underline-offset: 3px; }
@media (max-width: 1024px) {
  .footer .titleblock { grid-template-columns: 1fr 1fr; }
  .footer .titleblock > div { border-right: 1px solid var(--night-rule); border-bottom: 1px solid var(--night-rule); }
  .footer .titleblock > div:nth-child(even) { border-right: 0; }
  .footer .titleblock > div:last-child { grid-column: 1 / -1; border: 0; }
  html:not(.js) .nav .logo__mark [fill="#F3F1EA"] { fill: #12151B; }
  html:not(.js) .nav .logo__mark [fill="#C9CEDA"] { fill: #2D46FF; }
  html:not(.js) .nav { position: relative; height: auto; min-height: var(--nav-h); background: var(--paper); color: var(--ink); }
  html:not(.js) .nav__inner { flex-wrap: wrap; padding-block: var(--s3); gap: var(--s3); }
  html:not(.js) .nav nav { flex-basis: 100%; order: 3; }
  html:not(.js) .nav__links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
  html:not(.js) .nav__links a { display: inline-flex; align-items: center; min-height: 44px; }
  html:not(.js) .nav__menu { display: none; }
}
@media (max-width: 720px) {
  .footer .titleblock { grid-template-columns: 1fr; }
  .footer .titleblock > div { border-right: 0; }
}
