/* Retrofit Labs: site styles (v3). Bricolage Grotesque for display and Hanken Grotesk for text (self-hosted, OFL), graphite neutrals,
   signal-orange accent. No gradient text, glass, grain, cursor effects or fade-in entrances. */
/* Type: Bricolage Grotesque (display, optical sizes) and Hanken Grotesk (text). SIL Open Font License 1.1; license files sit next to the fonts.
   The Bricolage files are the published fonts with the width axis fixed at 100% to keep them small, which the license allows. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; 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: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; 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: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk-italic-latin.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; 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: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk-italic-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --bg: #0d0f12;
  --bg-2: #15181c;
  --bg-3: #1e2227;
  --fg: #eef1f4;
  --muted: #aab1b9;
  --faint: #8b929b;
  --line: rgba(238, 241, 244, 0.12);
  --line-strong: rgba(238, 241, 244, 0.26);
  --paper: #f3f5f7;
  --paper-2: #e5e9ed;
  --ink: #111418;
  --ink-muted: #48505a;
  --ink-line: rgba(17, 20, 24, 0.14);
  /* Accent: signal orange + apricot tint */
  --accent: #ff5a1f;
  --accent-hi: #ff7a45;
  --accent-2: #ffb38a;
  --accent-ink: #b3380a;       /* accent for text on light backgrounds (5:1 on paper) */
  --accent-glow: rgba(255, 90, 31, 0.35);
  --danger: #ff8a7a;
  --ok: #9fd4a8;
  /* --serif is kept as the name for the display face so every heading rule picks it up; it is Bricolage Grotesque now. */
  --serif: "Bricolage Grotesque", "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 78rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 6px;
  --radius-lg: 18px;
  --header-h: 72px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--accent); color: #111; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.section-paper :focus-visible, .band-accent :focus-visible, .page-book .book-panel :focus-visible, .panel :focus-visible { outline-color: var(--ink); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--accent); color: #111; padding: .6rem 1rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.muted { color: var(--muted); }

/* ---------- Type ---------- */
.display { font-family: var(--serif); font-weight: 720; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.display em { font-style: normal; }
h1.display { font-size: clamp(2.7rem, 6.2vw, 5.4rem); }
h2.display { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.05; }
.display-xl { font-size: clamp(2.5rem, 5.6vw, 4.8rem) !important; }
.hl { color: var(--accent); }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.25rem; }
.eyebrow-accent { color: var(--accent); }
.section-paper .eyebrow-accent { color: var(--accent-ink); }
.lead { text-wrap: pretty; font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 40em; }
.lead a { color: var(--fg); text-decoration-color: var(--accent); }
@keyframes dot-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,31,.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255,90,31,0); } }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--fg); --btn-fg: var(--ink); --btn-bd: var(--fg);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .75rem 1.35rem; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font: 600 1rem/1.2 var(--sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer; isolation: isolate;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .3s ease, transform .35s var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-primary { --btn-bg: var(--accent); --btn-fg: #111; --btn-bd: var(--accent); }
.btn-primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn-sm { min-height: 40px; padding: .5rem 1.05rem; font-size: .95rem; }
.btn-lg { min-height: 58px; padding: 1rem 1.8rem; font-size: 1.075rem; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--fg); --btn-bd: var(--line-strong); }
.btn-ghost:hover { background: rgba(238,241,244,.08); border-color: var(--fg); }
.btn-dark { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink); }
.btn-dark:hover { background: #000; border-color: #000; }
.btn-danger { --btn-bg: transparent; --btn-fg: var(--danger); --btn-bd: var(--danger); }
.btn-danger:hover { background: rgba(255,138,122,.1); border-color: var(--danger); }
.i-arrow { width: .72em; height: .84em; fill: currentColor; flex: none; transition: transform .35s var(--ease-out); }
.btn:hover .i-arrow { transform: translateY(-3px); }
.i-arrow.i-right { transform: rotate(90deg); }
.btn:hover .i-arrow.i-right { transform: rotate(90deg) translateY(-3px); }
.text-link { font-weight: 600; text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) left 100% / 0% 2px no-repeat, linear-gradient(var(--line-strong), var(--line-strong)) left 100% / 100% 1px no-repeat; padding-bottom: .2em; transition: background-size .45s var(--ease-out), color .2s ease; }
.text-link:hover { background-size: 100% 2px, 100% 1px; color: var(--fg); }
.text-link::after { content: " →"; display: inline-block; transition: transform .35s var(--ease-out); }
.text-link:hover::after { transform: translateX(4px); }
.text-link-quiet::after { content: " ↗"; }
.text-link-quiet:hover::after { transform: translate(2px, -2px); }
.section-paper .text-link { background-image: linear-gradient(var(--accent-ink), var(--accent-ink)), linear-gradient(var(--ink-line), var(--ink-line)); }
.text-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .3s ease, background .3s ease; view-transition-name: site-header; }
.site-header.is-scrolled { border-bottom-color: var(--line); background: var(--bg); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand img { width: 150px; height: auto; }
.nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: .15rem; }
.nav-btn { position: relative; display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; color: var(--muted); font: 500 .96rem/1 var(--sans); padding: .6rem .8rem; border-radius: 999px; cursor: pointer; transition: color .2s ease, background .2s ease; }
.nav-btn:hover, .nav-item.is-open .nav-btn { color: var(--fg); background: rgba(238,241,244,.06); }
.nav-btn[data-current] { color: var(--fg); }
.nav-btn[data-current]::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.nav-caret { width: 10px; height: 6px; transition: transform .35s var(--ease-out); }
.nav-item.is-open .nav-caret { transform: rotate(180deg); }
.nav-mobile-cta { display: none; }
@media (min-width: 1081px) {
  .mega { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - 4px); z-index: 60; visibility: hidden; opacity: 0; transform: translate3d(0, -8px, 0) scale(.985); transform-origin: 50% 0; transition: opacity .22s ease, transform .4s var(--ease-out), visibility 0s linear .4s; pointer-events: none; }
  .nav-item.is-open .mega, html:not(.js) .nav-item:hover .mega, html:not(.js) .nav-item:focus-within .mega { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .22s ease, transform .45s var(--ease-out), visibility 0s; }
  .mega-inner { display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: 0; border-radius: var(--radius-lg); background: rgba(20,20,20,.97); border: 1px solid var(--line-strong); box-shadow: 0 40px 90px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,90,31,.05); overflow: hidden; }
  .mega-intro { position: relative; padding: 1.75rem 1.75rem 1.6rem; background: radial-gradient(340px 220px at 0% 0%, rgba(255,90,31,.22), transparent 70%), var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
  .mega-title { font-family: var(--serif); font-weight: 720; font-size: 2rem; line-height: 1.05; margin: auto 0 .5rem; }
  .mega-sub { color: var(--muted); font-size: .95rem; margin: 0 0 1.1rem; }
  .mega-intro .text-link { align-self: flex-start; font-size: .95rem; }
  .mega-art { position: relative; display: block; width: 64px; height: 44px; margin-bottom: 2.5rem; }
  .mega-art i { position: absolute; bottom: 0; width: 14px; border-radius: 3px 3px 0 0; background: var(--accent); transform-origin: bottom; }
  .mega-art i:nth-child(1) { left: 0; height: 40%; opacity: .45; } .mega-art i:nth-child(2) { left: 22px; height: 70%; opacity: .75; } .mega-art i:nth-child(3) { left: 44px; height: 100%; }
  .nav-item.is-open .mega-art i { animation: mega-bar .9s var(--ease-out) both; } .nav-item.is-open .mega-art i:nth-child(2) { animation-delay: .08s; } .nav-item.is-open .mega-art i:nth-child(3) { animation-delay: .16s; }
  .mega-links { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem; padding: 1rem; align-content: start; }
  .mega-links-3 { grid-template-columns: 1fr; }
  .mega-links-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-links a { display: flex; flex-direction: column; gap: .2rem; padding: .95rem 1.1rem 1rem 2.4rem; border-radius: 12px; text-decoration: none; position: relative; transition: background .2s ease; }
  .mega-links a::before { content: ""; position: absolute; left: 1.05rem; top: 1.25rem; width: 9px; height: 11px; background: var(--faint); clip-path: polygon(50% 0, 100% 43%, 67% 43%, 67% 100%, 33% 100%, 33% 43%, 0 43%); transition: background .2s ease, transform .35s var(--ease-out); }
  .mega-links a:hover, .mega-links a:focus-visible { background: rgba(238,241,244,.05); }
  .mega-links a:hover::before, .mega-links a[aria-current="page"]::before { background: var(--accent); transform: translateY(-2px); }
  .mega-links b { font-weight: 600; font-size: 1rem; color: var(--fg); }
  .mega-links span { color: var(--muted); font-size: .88rem; line-height: 1.35; }
  .nav-item.is-open .mega-links li { animation: mega-in .5s var(--ease-out) both; }
  .nav-item.is-open .mega-links li:nth-child(2) { animation-delay: .03s; } .nav-item.is-open .mega-links li:nth-child(3) { animation-delay: .06s; } .nav-item.is-open .mega-links li:nth-child(4) { animation-delay: .09s; } .nav-item.is-open .mega-links li:nth-child(5) { animation-delay: .12s; } .nav-item.is-open .mega-links li:nth-child(6) { animation-delay: .15s; }
}
@keyframes mega-in { from { opacity: 0; transform: translate3d(0, 8px, 0); } }
@keyframes mega-bar { from { transform: scaleY(0); } }
.nav-toggle { display: none; }
@media (max-width: 1080px) {
  .header-cta { margin-left: auto; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: var(--fg); cursor: pointer; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease-out), background .2s; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav { display: block; visibility: hidden; opacity: 0; transform: translateY(-8px); position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0; padding: .25rem var(--gutter) 1.5rem; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; background: rgba(13,15,18,.985); border-bottom: 1px solid var(--line); transition: opacity .25s ease, transform .35s var(--ease-out), visibility 0s linear .35s; }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .35s var(--ease-out), visibility 0s; }
  html:not(.js) .nav:focus-within { visibility: visible; opacity: 1; transform: none; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-btn { width: 100%; justify-content: space-between; font-size: 1.2rem; padding: 1.05rem 0; border-radius: 0; color: var(--fg); }
  .nav-btn:hover, .nav-item.is-open .nav-btn { background: none; }
  .nav-btn[data-current]::after { left: auto; right: 1.75rem; top: 50%; bottom: auto; margin: -2px 0 0; }
  .nav-caret { width: 14px; height: 9px; }
  .mega { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
  .nav-item.is-open .mega { grid-template-rows: 1fr; }
  .mega-inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear .4s; }
  .nav-item.is-open .mega-inner { visibility: visible; transition: visibility 0s; }
  .mega-art, .mega-title, .mega-sub { display: none; }
  .mega-intro { order: 2; padding: 0 0 1.1rem; }
  .mega-inner { display: flex; flex-direction: column; }
  .mega-links { list-style: none; display: grid; gap: 0; padding: 0 0 .5rem; }
  .mega-links a { display: flex; flex-direction: column; padding: .7rem 0 .7rem 1rem; border-left: 2px solid var(--line); text-decoration: none; }
  .mega-links a[aria-current="page"] { border-left-color: var(--accent); }
  .mega-links b { font-weight: 600; font-size: 1.02rem; }
  .mega-links span { color: var(--muted); font-size: .88rem; }
  .nav-mobile-cta { display: block; margin: 1.5rem 0 0; }
  .nav-mobile-cta .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .brand img { width: 128px; }
}
@media (max-width: 420px) {
  .header-inner { gap: .75rem; }
  .brand img { width: 112px; }
  .header-cta { padding: .45rem .8rem; font-size: .875rem; min-height: 38px; }
  .header-cta .i-arrow { display: none; }
}

/* ---------- Shared section scaffolding ---------- */
.section { position: relative; padding: clamp(5rem, 10vw, 9rem) 0; }
.section-paper { background: var(--paper); color: var(--ink); }
.section-paper .eyebrow { color: var(--ink-muted); }
.section-paper .lead, .section-paper .muted { color: var(--ink-muted); }
.section-paper .lead a { color: var(--ink); }
.section-flush-top { padding-top: 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lead { margin-top: 1.25rem; }
.section-head-row { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 6vw, 6rem); align-items: end; }
.section-head-row .lead { margin: 0; }
.section-head-row .muted { margin: 1rem 0 0; max-width: 40em; }
@media (max-width: 880px) { .section-head-row { grid-template-columns: 1fr; align-items: start; } }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split-center { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.split > div > .lead { margin-top: 1.25rem; }
@media (max-width: 880px) { .split, .split-center { grid-template-columns: 1fr; } }
.num { font-family: var(--serif); font-weight: 620; font-size: 1.6rem; color: var(--accent); line-height: 1; }
.num-lg { display: block; font-size: 2.4rem; margin-bottom: 1rem; }
.section-paper .num { color: var(--accent-ink); }

/* Shared backgrounds: mesh, grid, grain */
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.is-offscreen .marquee-track, .is-offscreen .flow-steps li, .is-offscreen .flow-bar i { animation-play-state: paused !important; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; background-position: -1px -1px; opacity: .55; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(4.5rem, 11vw, 9rem) 0 0; overflow: hidden; isolation: isolate; }
.hero > .wrap { z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-title { max-width: 11.5em; }
.hero-lead { margin: 1.75rem 0 0; max-width: 34em; color: #c9c6bf; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 2rem; margin-top: 2.5rem; }
.hero-note { margin: 1.1rem 0 0; color: var(--faint); font-size: .95rem; }
@media (max-width: 1080px) { .hero-grid { grid-template-columns: 1fr; } .flow-card { max-width: 30rem; } }

/* Hero example-automation card */
.flow-card { position: relative; border-radius: var(--radius-lg); padding: 1.35rem 1.35rem 1.1rem; background: var(--bg-2); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,90,31,.06), inset 0 1px 0 rgba(255,255,255,.06); }
.flow-cap { display: flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.flow-live { width: 7px; height: 7px; border-radius: 50%; background: #5ee08f; box-shadow: 0 0 10px #5ee08f; }
.flow-title { font-family: var(--serif); font-weight: 720; font-size: 1.55rem; line-height: 1.1; margin: .5rem 0 1rem; }
.flow-steps { list-style: none; display: grid; gap: .5rem; counter-reset: fs; }
.flow-steps li { --d: 0s; display: grid; grid-template-columns: 2.25rem 1fr 1.25rem; align-items: center; gap: .75rem; padding: .7rem .75rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); animation: flow-step 8s var(--ease-out) var(--d) infinite; }
.flow-steps li:nth-child(2) { --d: 1.4s; } .flow-steps li:nth-child(3) { --d: 2.8s; } .flow-steps li:nth-child(4) { --d: 4.2s; }
.flow-ico { width: 2.25rem; height: 2.25rem; border-radius: 10px; display: grid; place-items: center; background: var(--bg-3); color: var(--muted); animation: flow-ico 8s var(--ease-out) var(--d) infinite; }
.flow-ico svg { width: 18px; height: 18px; }
.flow-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.flow-txt b { font-weight: 600; font-size: .95rem; }
.flow-txt small { color: var(--faint); font-size: .8rem; }
.flow-ok { width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 1.5px solid var(--line-strong); position: relative; animation: flow-ok 8s var(--ease-out) var(--d) infinite; }
.flow-ok::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #111; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); animation: flow-tick 8s var(--ease-out) var(--d) infinite; }
@keyframes flow-step { 0%, 4% { border-color: var(--line); background: rgba(255,255,255,.02); transform: none; } 8%, 14% { border-color: rgba(255,90,31,.55); background: rgba(255,90,31,.08); transform: translateX(4px); } 20%, 88% { border-color: var(--line); background: rgba(255,255,255,.03); transform: none; } 100% { border-color: var(--line); background: rgba(255,255,255,.02); } }
@keyframes flow-ico { 0%, 4% { background: var(--bg-3); color: var(--muted); } 8%, 88% { background: rgba(255,90,31,.16); color: var(--accent-2); } 96%, 100% { background: var(--bg-3); color: var(--muted); } }
@keyframes flow-ok { 0%, 10% { background: transparent; border-color: var(--line-strong); } 14%, 88% { background: var(--accent); border-color: var(--accent); } 96%, 100% { background: transparent; border-color: var(--line-strong); } }
@keyframes flow-tick { 0%, 11% { transform: rotate(45deg) scale(0); } 16%, 88% { transform: rotate(45deg) scale(1); } 96%, 100% { transform: rotate(45deg) scale(0); } }
.flow-bar { height: 3px; border-radius: 3px; background: var(--line); margin-top: 1rem; overflow: hidden; }
.flow-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; animation: flow-bar 8s linear infinite; }
@keyframes flow-bar { 0% { transform: scaleX(0); } 70%, 88% { transform: scaleX(1); opacity: 1; } 96%, 100% { transform: scaleX(1); opacity: 0; } }

/* Marquee */
.marquee { position: relative; z-index: 1; margin-top: clamp(4rem, 8vw, 6.5rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(13,15,18,.5); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { list-style: none; display: flex; flex: none; }
.marquee-list li { display: flex; align-items: center; gap: 2.2rem; padding: 1.35rem 0 1.35rem 2.2rem; font-family: var(--serif); font-weight: 720; font-size: clamp(1.4rem, 2.2vw, 1.9rem); white-space: nowrap; color: var(--fg); }
.marquee-list li::after { content: ""; width: 10px; height: 12px; background: var(--accent); clip-path: polygon(50% 0, 100% 43%, 67% 43%, 67% 100%, 33% 100%, 33% 43%, 0 43%); }
.marquee-list li:nth-child(even) { font-style: normal; color: var(--muted); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Statement (problem) ---------- */
.statement { position: relative; padding: clamp(6rem, 13vw, 11rem) 0; }
.statement-text { font-family: var(--serif); font-weight: 720; font-size: clamp(2rem, 4.6vw, 4.1rem); line-height: 1.12; letter-spacing: -.012em; max-width: 19em; margin: 0; text-wrap: pretty; }
.statement-text mark { background: none; color: var(--accent); }
.js .statement-text .sw { color: rgba(238,241,244,.42); transition: color .35s ease; }
.js .statement-text .sw.is-lit { color: var(--fg); }
.js .statement-text mark .sw.is-lit { color: var(--accent); }
.statement-answer { margin: clamp(2.5rem, 5vw, 4rem) 0 0; display: flex; align-items: center; gap: 1.25rem; }
.statement-answer .display { font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-style: normal; color: var(--accent-2); }
.statement-answer::before { content: ""; width: clamp(2.5rem, 6vw, 5rem); height: 1px; background: var(--accent); flex: none; }

/* ---------- Who it's for (size scale) ---------- */
.fit h2 em { color: var(--accent-ink); }
.check-list { list-style: none; display: grid; gap: .9rem; margin-top: 2rem; }
.check-list li { position: relative; padding-left: 1.9rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .42em; width: 11px; height: 13px; background: var(--accent); clip-path: polygon(50% 0, 100% 43%, 67% 43%, 67% 100%, 33% 100%, 33% 43%, 0 43%); }
.section-paper .check-list li::before { background: var(--accent-ink); }
.check-list-sm { gap: .6rem; margin-top: 1rem; font-size: .975rem; color: var(--muted); }
.scale-card { position: relative; background: #fff; border: 1px solid var(--ink-line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 40px 80px -40px rgba(60,30,10,.35); }
.scale-h { font-weight: 600; margin: 0 0 2.5rem; }
.scale-h span { font-weight: 400; color: var(--ink-muted); }
.scale-track { position: relative; height: 56px; border-radius: 999px; background: repeating-linear-gradient(90deg, var(--paper-2) 0 2px, transparent 2px 12px), var(--paper); border: 1px solid var(--ink-line); }
.scale-band { position: absolute; top: -8px; bottom: -8px; left: 30%; width: 38%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); box-shadow: 0 12px 32px -8px var(--accent-glow); display: grid; place-items: center; transform-origin: left center; }
.scale-band span { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #111; white-space: nowrap; }
.js .scale .scale-band { transform: scaleX(0); transition: transform 1.1s var(--ease-out) .15s; }
.js .scale .scale-band span { opacity: 0; transition: opacity .4s ease .85s; }
.js .scale.is-in .scale-band { transform: none; }
.js .scale.is-in .scale-band span { opacity: 1; }
.tick { position: absolute; top: 100%; width: 1px; height: 10px; background: var(--ink-muted); }
.t1 { left: 3%; } .t2 { left: 30%; } .t3 { left: 68%; } .t4 { left: 96%; }
.scale-labels { position: relative; height: 1.5rem; margin-top: 16px; font-size: .9rem; font-weight: 600; }
.scale-labels span { position: absolute; transform: translateX(-50%); }
.l1 { left: 3%; } .l2 { left: 30%; } .l3 { left: 68%; } .l4 { left: 93%; }
.scale-notes { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: .75rem; margin-top: 2rem; }
.scale-notes p { margin: 0; font-size: .85rem; line-height: 1.4; color: var(--ink-muted); padding: .85rem; border-radius: 12px; border: 1px solid var(--ink-line); }
.scale-notes b { display: block; color: var(--ink); margin-bottom: .25rem; font-size: .9rem; }
.scale-notes .is-us { background: #fff5ef; border-color: rgba(255,90,31,.45); }
.scale-notes .is-us b { color: var(--accent-ink); }
@media (max-width: 520px) { .scale-notes { grid-template-columns: 1fr; } }

/* ---------- Services bento ---------- */
.services-sec { background: radial-gradient(900px 500px at 85% 0%, rgba(255,90,31,.08), transparent 60%), var(--bg); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.bento-card { --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; min-height: 20rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; overflow: hidden; isolation: isolate; transition: border-color .3s ease, transform .5s var(--ease-out), background .3s ease; }
.bento-card:hover { border-color: rgba(238,241,244,.2); transform: translateY(-4px); }
.bento-card:hover::before, .bento-card:hover::after { opacity: 1; }
.bento-card h3 { font-family: var(--serif); font-weight: 720; font-size: clamp(1.75rem, 2.6vw, 2.35rem); line-height: 1.05; margin: 1.25rem 0 .9rem; }
.bento-card p { color: var(--muted); margin: 0 0 1.5rem; max-width: 34em; }
.card-link { margin-top: auto; font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--fg); }
.card-link::after { content: "→"; transition: transform .35s var(--ease-out); color: var(--accent); }
.bento-card:hover .card-link::after { transform: translateX(5px); }
.b-assess { grid-column: span 4; }
.b-build { grid-column: span 2; grid-row: span 2; }
.b-train, .b-support { grid-column: span 2; }
.b-train { background: linear-gradient(160deg, #1d1410, var(--bg-2) 60%); }
@media (max-width: 1000px) { .bento { grid-template-columns: 1fr 1fr; } .b-assess { grid-column: span 2; } .b-build { grid-column: span 2; grid-row: auto; } .b-train, .b-support { grid-column: span 1; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .b-assess, .b-build, .b-train, .b-support { grid-column: auto; } .bento-card { min-height: 0; } }
.viz { margin: .5rem 0 1.75rem; }
.viz-roadmap { display: grid; gap: .6rem; max-width: 30rem; }
.viz-roadmap div { display: grid; grid-template-columns: 5.5rem 1fr; align-items: center; gap: 1rem; font-size: .82rem; color: var(--faint); }
.viz-roadmap i { display: block; height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; }
.viz-roadmap div:nth-child(1) i { width: 92%; } .viz-roadmap div:nth-child(2) i { width: 64%; opacity: .7; } .viz-roadmap div:nth-child(3) i { width: 40%; opacity: .45; }
.js .viz-roadmap i { transform: scaleX(0); transition: transform 1.1s var(--ease-out); }
.js .is-in .viz-roadmap i, .js .viz-roadmap.is-in i { transform: none; }
.js .viz-roadmap div:nth-child(2) i { transition-delay: .15s; } .js .viz-roadmap div:nth-child(3) i { transition-delay: .3s; }
.viz-nodes svg { width: 100%; max-width: 320px; height: auto; margin: 0 auto; overflow: visible; }
.viz-nodes .edge { fill: none; stroke: var(--line-strong); stroke-width: 1.25; stroke-dasharray: 3 4; }
.viz-nodes .pulse { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 22 400; stroke-dashoffset: 22; animation: pulse-run 3.6s linear infinite; filter: drop-shadow(0 0 4px rgba(255,90,31,.8)); }
.viz-nodes .p2 { animation-delay: 1.8s; }
@keyframes pulse-run { to { stroke-dashoffset: -400; } }
.viz-nodes .node rect { fill: var(--bg-3); stroke: var(--line-strong); }
.viz-nodes .node text { fill: var(--fg); font: 600 11px var(--sans); text-anchor: middle; }
.viz-nodes .node-core circle { fill: var(--accent); stroke: none; filter: drop-shadow(0 0 12px rgba(255,90,31,.6)); }
.viz-nodes .node-core text { fill: #111; font-size: 13px; font-weight: 700; }
.b-build .viz { margin: 1.5rem 0 2rem; flex: 1; display: grid; place-items: center; }
.b-build .viz svg { max-width: 100%; }

/* ---------- Process (sticky scroll) ---------- */
.process-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); }
.process-sticky { position: sticky; top: calc(var(--header-h) + 3rem); }
.process-counter { display: flex; align-items: baseline; gap: .6rem; margin: 2.5rem 0 1.25rem; font-family: var(--serif); font-weight: 720; }
.pc-num { font-size: clamp(4.5rem, 9vw, 7.5rem); line-height: .9; color: var(--accent-ink); font-style: normal; display: inline-block; }
.pc-num.is-swap { animation: pc-swap .55s var(--ease-out); }
@keyframes pc-swap { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pc-of { font-size: 1.5rem; color: var(--ink-muted); }
.process-rail { height: 3px; background: var(--ink-line); border-radius: 3px; overflow: hidden; max-width: 22rem; margin-bottom: 2.25rem; }
.process-rail i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-ink), var(--accent)); transform-origin: left; transform: scaleX(var(--p, .33)); transition: transform .15s linear; }
.process-steps { list-style: none; display: grid; gap: 0; }
.pstep { position: relative; min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 2rem 0 2rem 2.25rem; border-left: 2px solid var(--ink-line); transition: opacity .5s ease; }
.pstep::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .7s var(--ease-out); }
.pstep-k { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.pstep h3 { font-family: var(--serif); font-weight: 720; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.02; margin: .8rem 0 1rem; }
.pstep p { color: var(--ink-muted); font-size: 1.15rem; max-width: 30em; margin: 0; }
.pstep-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.pstep-tags li { font-size: .85rem; font-weight: 500; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--ink-line); background: rgba(255,255,255,.6); }
.js .process .pstep { opacity: .62; }
.js .process .pstep:not(.is-active) p, .js .process .pstep:not(.is-active) .pstep-k { color: var(--ink); }
.js .process .pstep.is-active { opacity: 1; }
.js .process .pstep.is-active::before { transform: scaleY(1); }
@media (max-width: 880px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-sticky { position: static; }
  .process-counter, .process-rail { display: none; }
  .process-cta { display: none; }
  .pstep { min-height: 0; padding: 1.5rem 0 2rem 1.5rem; }
  .js .process .pstep { opacity: 1; }
  .js .process .pstep::before { transform: scaleY(1); opacity: .9; }
}
.process-mobile-cta { display: none; }
@media (max-width: 880px) { .process-mobile-cta { display: block; margin-top: 1.5rem; } }

/* ---------- Accent band (why / pricing) ---------- */
.band-accent { position: relative; overflow: hidden; isolation: isolate; background: var(--accent); color: #111; padding: clamp(5rem, 10vw, 8.5rem) 0; }
.band-accent::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 420px at 90% 10%, rgba(255,215,190,.55), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(170,40,0,.35), transparent 60%); }
.band-accent .eyebrow { color: rgba(17,17,17,.72); }
.why-year { position: absolute; z-index: -1; right: -0.04em; bottom: -0.22em; font-family: var(--serif); font-weight: 620; font-size: clamp(12rem, 34vw, 30rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(17,17,17,.2); letter-spacing: -.03em; user-select: none; will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.why-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.why-top h2 { max-width: 11em; }
.define { background: #111; color: var(--fg); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 30px 60px -30px rgba(60,15,0,.6); }
.define-word { margin: 0 0 .6rem; display: flex; align-items: baseline; gap: .75rem; }
.define-word .display { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.define-word i { color: var(--accent-2); font-family: var(--serif); font-weight: 720; font-size: 1.15rem; }
.define-def { font-size: 1.2rem; font-weight: 500; margin: 0 0 .9rem; }
.define-note { color: var(--muted); margin: 0; font-size: .98rem; }
.why-row { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(1.25rem, 3vw, 2.5rem); margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.why-row li { border-top: 2px solid #111; padding-top: 1.25rem; }
.why-n { font-family: var(--serif); font-weight: 620; font-size: 1.3rem; }
.why-row h3 { font-size: 1.15rem; margin: .5rem 0 .5rem; }
.why-row p { margin: 0; color: rgba(17,17,17,.78); font-size: .98rem; }
@media (max-width: 960px) { .why-top { grid-template-columns: 1fr; align-items: start; } .why-row { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; } }
@media (max-width: 520px) { .why-row { grid-template-columns: 1fr; } }
.built-strip { border-bottom: 1px solid var(--line); padding: 1.6rem 0; background: var(--bg-2); }
.built { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 2rem; }
.built .eyebrow { margin: 0; color: var(--accent); }
.built p { margin: 0; color: var(--muted); }
.built strong { color: var(--fg); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.45rem 3rem 1.45rem 0; position: relative; font-size: 1.15rem; font-weight: 600; line-height: 1.35; transition: color .2s ease; }
.faq summary:hover { color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: linear-gradient(currentColor, currentColor) center/11px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center/1.5px 11px no-repeat; transition: transform .45s var(--ease-out), background-color .25s ease, border-color .25s ease, color .25s; }
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--accent); border-color: var(--accent); color: #111; }
.faq .faq-a { overflow: hidden; }
.faq .faq-a p { margin: 0; padding: 0 3rem 1.6rem 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding: clamp(6rem, 13vw, 11rem) 0; text-align: center; border-top: 1px solid var(--line); }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-inner h2 { max-width: 12em; font-size: clamp(2.6rem, 6vw, 5rem); }
.cta-inner .lead { margin: 1.5rem auto 0; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 2rem; margin-top: 2.75rem; }
.cta-alt { margin: 0; color: var(--muted); }
.cta-alt a { color: var(--fg); }

/* ---------- Page hero ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.page-hero > .wrap { z-index: 1; }
.page-hero h1 { max-width: 13em; }
.page-hero .lead { margin-top: 1.5rem; }
.page-hero-sm h1.display { font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
.page-hero-glow .grid-lines { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 80% 20%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 80% 20%, #000 10%, transparent 70%); }

/* ---------- Services page ---------- */
.svc-index { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.5rem; }
.svc-index a { display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1rem .6rem .65rem; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(13,15,18,.4); text-decoration: none; font-weight: 500; font-size: .95rem; transition: border-color .25s ease, background .25s ease, transform .35s var(--ease-out); }
.svc-index a span { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: rgba(255,90,31,.15); color: var(--accent-2); font-family: var(--serif); font-weight: 620; font-size: 1rem; }
.svc-index a:hover { border-color: var(--accent); background: rgba(255,90,31,.08); transform: translateY(-2px); }
.svc h2.display { font-size: clamp(2.4rem, 4.6vw, 3.9rem); }
.svc .lead { color: var(--fg); margin-top: 1.25rem; }
.svc .muted { margin-top: 1rem; }
.section-paper.svc .lead { color: var(--ink); }
.svc-assess { border-top: 1px solid var(--line); }
.doc-card { position: relative; border-radius: var(--radius-lg); background: var(--paper); color: var(--ink); padding: 1.25rem 1.5rem 1.75rem; box-shadow: 0 50px 100px -40px rgba(255,90,31,.35), 0 30px 60px -30px rgba(0,0,0,.8); transform: rotate(-1.5deg); transition: transform .8s var(--ease-out); }
.doc:hover .doc-card { transform: rotate(0deg) translateY(-6px); }
.doc-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: .9rem; border-bottom: 1px solid var(--ink-line); font-size: .8rem; font-weight: 600; color: var(--ink-muted); }
.doc-dots { display: flex; gap: 5px; } .doc-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--paper-2); }
.doc-dots i:first-child { background: var(--accent); }
.doc-h { font-family: var(--serif); font-weight: 720; font-size: 1.6rem; margin: 1.2rem 0 1rem; }
.doc-row { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--ink-line); }
.doc-p { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-weight: 700; font-size: .85rem; }
.doc-row:first-of-type .doc-p { background: var(--accent); color: #111; }
.doc-lines { display: grid; gap: 6px; } .doc-lines i { display: block; height: 7px; border-radius: 7px; background: var(--paper-2); }
.doc-row:first-of-type .doc-lines i:first-child { background: #e3d3c6; }
.w80 { width: 80%; } .w70 { width: 70%; } .w60 { width: 60%; } .w75 { width: 75%; } .w50 { width: 50%; } .w45 { width: 45%; } .w40 { width: 40%; } .w30 { width: 30%; }
.doc-tag { font-size: .75rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--ink-line); color: var(--ink-muted); }
.doc-tag.tag-go { background: #111; color: #fff; border-color: #111; }
.js .doc .doc-row { opacity: 0; transform: translateX(16px); transition: opacity .6s ease, transform .8s var(--ease-out); }
.js .doc.is-in .doc-row { opacity: 1; transform: none; }
.js .doc.is-in .doc-row:nth-of-type(2) { transition-delay: .3s; } .js .doc.is-in .doc-row:nth-of-type(3) { transition-delay: .42s; } .js .doc.is-in .doc-row:nth-of-type(4) { transition-delay: .54s; } .js .doc.is-in .doc-row:nth-of-type(5) { transition-delay: .66s; }
.mini-h { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 1.25rem; }
.ex-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ex-grid li { position: relative; padding: 1.5rem 1.5rem 1.75rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--ink-line); font-size: 1.08rem; font-weight: 500; line-height: 1.4; min-height: 9.5rem; display: flex; flex-direction: column; gap: 1.25rem; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s; }
.ex-grid li:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(120,50,10,.35); border-color: rgba(255,90,31,.5); }
.ex-i { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #fff1e9; color: var(--accent-ink); font-weight: 700; transition: background .3s, color .3s, transform .5s var(--ease-out); }
.ex-grid li:hover .ex-i { background: var(--accent); color: #111; transform: rotate(45deg); }
@media (max-width: 960px) { .ex-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ex-grid { grid-template-columns: 1fr; } .ex-grid li { min-height: 0; } }
.svc-train { background: radial-gradient(900px 480px at 10% 100%, rgba(255,90,31,.12), transparent 60%), var(--bg); }
.train-top { max-width: 60rem; }
.train-top .lead { max-width: 38em; }
.train-row { list-style: none; counter-reset: tr; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.train-row li { counter-increment: tr; padding: 1.5rem 1.25rem; border-top: 1px solid var(--accent); background: linear-gradient(180deg, rgba(255,90,31,.07), transparent 70%); }
.train-row li::before { content: "0" counter(tr); font-family: var(--serif); font-weight: 620; color: var(--accent); font-size: 1.3rem; }
.train-row h3 { font-size: 1.15rem; margin: .75rem 0 .4rem; }
.train-row p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 880px) { .train-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .train-row { grid-template-columns: 1fr; } }
.svc-support { background: var(--bg-2); border-top: 1px solid var(--line); }
.loop-ring { position: relative; width: min(100%, 26rem); aspect-ratio: 1; margin: 0 auto; }
.loop-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.loop-track { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 5; }
.loop-arc { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 90 438; animation: loop-spin 8s linear infinite; filter: drop-shadow(0 0 6px rgba(255,90,31,.7)); }
@keyframes loop-spin { to { stroke-dashoffset: -528; } }
.loop-item { position: absolute; transform: translate(-50%, -50%); padding: .5rem 1rem; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line-strong); font-weight: 600; font-size: .95rem; white-space: nowrap; animation: loop-hi 8s linear infinite; }
.li1 { left: 50%; top: 8%; } .li2 { left: 92%; top: 50%; animation-delay: 2s; } .li3 { left: 50%; top: 92%; animation-delay: 4s; } .li4 { left: 8%; top: 50%; animation-delay: 6s; }
@keyframes loop-hi { 0%, 22% { border-color: var(--accent); color: #111; background: var(--accent); box-shadow: 0 0 30px -4px var(--accent-glow); } 28%, 100% { border-color: var(--line-strong); color: var(--fg); background: var(--bg-3); box-shadow: none; } }
.loop-core { position: absolute; inset: 30%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(255,90,31,.2), transparent 70%); }
.loop-core b { font-family: var(--serif); font-weight: 620; font-weight: 400; font-size: clamp(2.5rem, 5vw, 3.5rem); color: var(--accent-2); }
@media (max-width: 880px) { .svc-support .loop { order: 2; } .loop-ring { width: min(100%, 20rem); } }
.pricing-head { max-width: 50rem; }
.pricing-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); margin: 1.25rem 0 0; color: rgba(17,17,17,.8); }
.pricing-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.pricing-steps li { position: relative; background: #111; color: var(--fg); border-radius: var(--radius-lg); padding: 1.75rem 1.5rem 1.9rem; }
.ps-n { font-family: var(--serif); font-weight: 620; font-size: 3rem; line-height: 1; color: var(--accent); }
.pricing-steps h3 { font-family: var(--serif); font-weight: 720; font-size: 1.7rem; margin: 1rem 0 .5rem; line-height: 1.1; }
.pricing-steps p { margin: 0; color: var(--muted); }
.pricing-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -0.85rem; top: 50%; z-index: 1; width: 1.7rem; height: 1.7rem; margin-top: -.85rem; border-radius: 50%; background: var(--paper); color: #111; display: grid; place-items: center; font-weight: 700; font-size: .9rem; box-shadow: 0 4px 14px rgba(80,20,0,.35); }
@media (max-width: 800px) { .pricing-steps { grid-template-columns: 1fr; } .pricing-steps li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -1.35rem; margin: 0 0 0 -.85rem; } }

/* ---------- About ---------- */
.about-logo { position: relative; overflow: hidden; padding: 2.5rem; background: radial-gradient(400px 260px at 80% 0%, rgba(255,90,31,.22), transparent 70%), var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; min-height: 16rem; }
.about-logo img { width: min(360px, 100%); height: auto; }
.prose h2 { font-family: var(--serif); font-weight: 720; font-size: clamp(1.75rem, 3vw, 2.4rem); margin: 2.5rem 0 1rem; }
.prose p { color: var(--muted); }
.prose .lead { color: var(--fg); }
.section-paper .prose p { color: var(--ink-muted); }
.prose-narrow { max-width: 44rem; }
.page-privacy .prose h2 { font-family: var(--sans); font-weight: 600; font-size: 1.2rem; margin: 2.25rem 0 .6rem; }
.page-privacy .prose p { color: var(--muted); }
.page-privacy .prose a { color: var(--fg); text-decoration-color: var(--accent); }
.principles { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.principles li { background: #fff; border: 1px solid var(--ink-line); border-radius: var(--radius-lg); padding: 1.5rem 1.5rem 1.75rem; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.principles li:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(120,50,10,.3); }
.principles h3 { font-family: var(--serif); font-weight: 720; font-size: 1.75rem; margin-bottom: .6rem; }
.principles h3::before { content: ""; display: block; width: 11px; height: 13px; margin-bottom: 1rem; background: var(--accent-ink); clip-path: polygon(50% 0, 100% 43%, 67% 43%, 67% 100%, 33% 100%, 33% 43%, 0 43%); }
.principles p { margin: 0; color: var(--ink-muted); }
@media (max-width: 880px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }
.contact-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--ink-line); }
.contact-list div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--ink-line); }
.contact-list dt { color: var(--ink-muted); font-size: .95rem; }
.contact-list dd { margin: 0; font-size: 1.15rem; font-weight: 500; }
.contact-list a { text-decoration-color: var(--accent-ink); }
.page-about .section { border-top: 1px solid var(--line); }
.page-about .section-paper { border-top: 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; font-size: .975rem; }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .6; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; padding-bottom: 2.75rem; margin-bottom: 2.75rem; border-bottom: 1px solid var(--line); }
.footer-brand .btn { margin-top: .25rem; }
.footer-contact { display: grid; gap: .5rem; justify-items: start; justify-self: end; min-width: 16rem; }
.footer-contact a, .footer-contact address { color: var(--muted); text-decoration: none; font-style: normal; }
.footer-contact a:hover { color: var(--accent-2); }
.footer-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.footer-brand img { width: 230px; height: auto; margin-bottom: 1.25rem; }
.footer-brand p { color: var(--muted); max-width: 22em; }
.footer-col { display: flex; flex-direction: column; gap: .55rem; align-items: flex-start; }
.footer-col a, .footer-col span { color: var(--muted); text-decoration: none; transition: color .2s ease; }
.footer-col a:hover { color: var(--accent-2); }
.footer-col a.btn { color: #111; margin-top: .25rem; }
.footer-h { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg); margin-bottom: .5rem; }
.footer-cta p { color: var(--muted); margin: 0 0 .75rem; }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; color: var(--faint); font-size: .9rem; }
.footer-base-inner { display: flex; justify-content: space-between; gap: 1rem; width: 100%; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.footer-base p { margin: 0; }
.footer-base a { color: var(--faint); }
.footer-col a { font-size: .95rem; }
@media (max-width: 1080px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } .footer-contact { justify-self: start; } .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; } .footer-base-inner { flex-direction: column; } }

/* ---------- Motion system ---------- */
/* Hero entrance: split words rise from a clipped line */
.js [data-stagger].is-in > .bento-card:hover, .js [data-stagger].is-in > li.ex-hover:hover { transform: translateY(-4px); }

/* View transitions between pages (progressive enhancement) */
@view-transition { navigation: auto; }
::view-transition-group(site-header) { animation: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-split], .js [data-hero-in], .js [data-reveal], .js [data-stagger] > *, [data-split] .wi { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .statement-text .sw { color: var(--fg); }
  .js .statement-text mark .sw { color: var(--accent); }
  .js .scale .scale-band, .js .viz-roadmap i { transform: none !important; }
  .js .scale .scale-band span, .js .doc .doc-row { opacity: 1 !important; transform: none !important; }
  .js .process .pstep { opacity: 1; }
  .js .process .pstep::before { transform: scaleY(1); }
  .flow-ok { background: var(--accent); border-color: var(--accent); }
  .flow-ok::after { transform: rotate(45deg) scale(1); }
  .flow-bar i { transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* ---------- Booking ---------- */
.book { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); background: radial-gradient(900px 520px at 0% 0%, rgba(255,90,31,.12), transparent 60%); }
.book-aside h1 em, .manage-wrap h1 em { color: var(--accent); }
.book-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.book-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.book-aside h1.display { font-size: clamp(2.6rem, 5vw, 4.25rem); }
.book-aside .lead { margin-top: 1.25rem; }
.book-facts { list-style: none; display: flex; gap: 2.5rem; margin: 2rem 0; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.book-facts li { display: flex; flex-direction: column; }
.book-facts strong { font-family: var(--serif); font-weight: 720; font-size: 1.6rem; line-height: 1.1; color: var(--accent-2); }
.book-facts span { color: var(--muted); font-size: .9rem; }
.book-h { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg); }
.book-alt { margin-top: 2rem; color: var(--muted); font-size: .975rem; }
.book-alt a { color: var(--fg); }
@media (max-width: 960px) { .book-grid { grid-template-columns: 1fr; } .book-aside { position: static; } .book-aside .check-list-sm, .book-aside .book-h { display: none; } }

.book-panel { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); box-shadow: 0 50px 100px -50px rgba(255,90,31,.35); padding: clamp(1.25rem, 3.5vw, 2.5rem); }
.stepper { list-style: none; display: flex; gap: 1.5rem; margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--ink-line); font-size: .9rem; color: var(--ink-muted); flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: .5rem; }
.stepper span { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid var(--ink-line); font-size: .8rem; font-weight: 600; }
.stepper li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.stepper li[aria-current="step"] span { background: var(--accent); color: #111; border-color: var(--accent); }
.stepper li.is-done span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.step[hidden] { display: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label, .field legend { font-size: .925rem; font-weight: 600; color: var(--ink); padding: 0; }
.req { color: var(--ink-muted); }
.opt { font-weight: 400; color: var(--ink-muted); font-size: .85rem; margin-left: .25rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff;
  border: 1px solid rgba(20,20,20,.22); border-radius: var(--radius); padding: .8rem .9rem; min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 7rem; }
select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px rgba(255,90,31,.22); }
::placeholder { color: #8a8882; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.field-error { margin: 0; color: #b3261e; font-size: .875rem; min-height: 0; }
.field-error:empty { display: none; }
.chips-field { margin-bottom: 1rem; }
.chips-field legend { margin-bottom: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: .45rem .9rem; border: 1px solid rgba(20,20,20,.22); border-radius: 999px; font-size: .925rem; background: #fff; cursor: pointer; transition: all .15s ease; user-select: none; }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.chip input:checked + span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: .5rem; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(20,20,20,.25); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.step-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.step-actions-split { justify-content: space-between; }
.book-panel .btn-ghost { --btn-fg: var(--ink); --btn-bd: rgba(20,20,20,.25); }
.book-panel .btn-ghost:hover { background: rgba(20,20,20,.05); border-color: var(--ink); }
.form-alert { background: #fdecea; color: #7a1b14; border: 1px solid #f3c1bb; border-radius: var(--radius); padding: .85rem 1rem; margin-bottom: 1.25rem; font-size: .95rem; }
.page-manage .form-alert { background: rgba(255,138,122,.1); color: #ffd0c9; border-color: rgba(255,138,122,.35); }
.step-title { font-family: var(--serif); font-weight: 720; font-size: 2rem; margin-bottom: 1.25rem; }
.review { margin: 0 0 1.25rem; border-top: 1px solid var(--ink-line); }
.review div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--ink-line); }
.review dt { color: var(--ink-muted); font-size: .925rem; }
.review dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 480px) { .review div { grid-template-columns: 1fr; gap: .15rem; } }
.fine { font-size: .875rem; color: var(--ink-muted); }
.fine a { color: var(--ink); }
.turnstile:empty { display: none; }
.turnstile { margin-bottom: 1rem; }

/* Slot picker */
.picker-tz { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1.25rem; }
.picker-tz label { font-size: .925rem; font-weight: 600; }
.picker-tz select { width: auto; max-width: 100%; min-height: 40px; padding: .45rem 2.3rem .45rem .75rem; font-size: .95rem; }
.picker { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem; }
@media (max-width: 640px) { .picker { grid-template-columns: 1fr; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.cal-title { font-weight: 600; font-size: 1.05rem; }
.cal-nav { display: flex; gap: .25rem; }
.cal-nav button { width: 40px; height: 40px; border: 1px solid rgba(20,20,20,.18); background: #fff; border-radius: var(--radius); cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.cal-nav button[disabled] { opacity: .35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .75rem; font-weight: 600; color: var(--ink-muted); padding: .3rem 0; text-transform: uppercase; letter-spacing: .06em; }
.cal-day { aspect-ratio: 1; min-height: 40px; border: 1px solid transparent; border-radius: var(--radius); background: none; font: 500 .95rem var(--sans); color: #9a978f; cursor: default; display: grid; place-items: center; padding: 0; }
.cal-day.is-available { background: #fff; border-color: rgba(20,20,20,.16); color: var(--ink); cursor: pointer; font-weight: 600; }
.cal-day.is-available:hover { border-color: var(--accent-ink); }
.cal-day, .time-btn { transition: background .2s ease, border-color .2s ease, transform .3s var(--ease-out), box-shadow .3s ease; }
.cal-day.is-available:active, .time-btn:active { transform: scale(.96); }
.cal-day.is-selected { background: var(--accent); color: #111; border-color: var(--accent); box-shadow: 0 8px 20px -8px var(--accent-glow); }
.cal-day.is-today { text-decoration: underline; text-underline-offset: 3px; }
.times-head { font-weight: 600; margin-bottom: .75rem; font-size: 1.05rem; }
.times { display: grid; grid-template-columns: 1fr; gap: .5rem; max-height: 22rem; overflow-y: auto; padding-right: 2px; }
@media (max-width: 640px) { .times { grid-template-columns: 1fr 1fr; max-height: none; } }
.time-btn { min-height: 48px; border: 1px solid rgba(20,20,20,.2); background: #fff; border-radius: var(--radius); font: 600 .975rem var(--sans); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; padding: .4rem; }
.time-btn small { font-weight: 400; color: var(--ink-muted); font-size: .78rem; }
.time-btn:hover { border-color: var(--accent-ink); }
.time-btn[aria-pressed="true"] { background: var(--accent); color: #111; border-color: var(--accent); box-shadow: 0 8px 20px -8px var(--accent-glow); }
.time-btn[aria-pressed="true"] small { color: rgba(17,17,17,.75); }
.picker-empty, .picker-loading { color: var(--ink-muted); font-size: .95rem; }

/* Manage page */
.manage-wrap { max-width: 50rem; }
.manage-wrap h1.display { font-size: clamp(2.6rem, 6vw, 4.5rem); }
.manage-wrap > [data-view] > .lead { margin-top: 1rem; }
.booking-card { margin-top: 2.25rem; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); }
.bc-when { padding: 1.5rem 1.5rem 1.25rem; border-bottom: 1px solid var(--line); }
.bc-date { font-family: var(--serif); font-weight: 720; font-size: clamp(1.6rem, 3.2vw, 2.1rem); line-height: 1.15; margin: 0; }
.bc-alt { margin: .35rem 0 0; color: var(--muted); font-size: .95rem; }
.bc-alt:empty { display: none; }
.bc-meta { margin: 0; padding: .5rem 1.5rem; }
.bc-meta div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.bc-meta div:last-child { border-bottom: 0; }
.bc-meta dt { color: var(--muted); font-size: .925rem; }
.bc-meta dd { margin: 0; overflow-wrap: anywhere; }
.bc-actions { display: flex; flex-wrap: wrap; gap: .6rem; padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--line); }
.is-cancelled .bc-date { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--muted); }
@media (max-width: 480px) { .bc-meta div { grid-template-columns: 1fr; gap: .1rem; } }
.save-note { margin-top: 1.25rem; color: var(--muted); font-size: .95rem; }
.save-note strong { color: var(--fg); }
.save-note .text-btn { color: var(--fg); }
.panel { margin-top: 2rem; background: var(--paper); color: var(--ink); border-radius: 6px; padding: clamp(1.25rem, 3.5vw, 2rem); }
.panel .btn-ghost { --btn-fg: var(--ink); --btn-bd: rgba(20,20,20,.25); }
.panel .btn-ghost:hover { background: rgba(20,20,20,.05); border-color: var(--ink); }
.panel .btn-danger { --btn-fg: #a3261b; --btn-bd: #a3261b; }
.panel .btn-danger:hover { background: #a3261b; color: #fff; }
.panel .form-alert { background: #fdecea; color: #7a1b14; border-color: #f3c1bb; }

/* Print */
@media print { .site-header, .site-footer, .cta-band, .bc-actions, .save-note, .hero-bg { display: none !important; } body { background: #fff; color: #000; } }

/* ---------- Careers ---------- */
.i-arrow.i-down { transform: rotate(180deg); }
.btn:hover .i-arrow.i-down { transform: rotate(180deg) translateY(-3px); }
.careers-hero h1 { max-width: 12em; }
.careers-hero .btn { margin-top: 2.25rem; }
.role-list { list-style: none; display: grid; gap: 1rem; }
.role-card { --mx: 50%; --my: 50%; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding: clamp(1.5rem, 3.5vw, 2.5rem); border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; overflow: hidden; isolation: isolate; transition: border-color .3s ease, transform .5s var(--ease-out); }
.role-card:hover { border-color: rgba(255,90,31,.55); transform: translateY(-4px); }
.role-card:hover::before { opacity: 1; }
.role-k { margin: 0 0 .75rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.role-card h3 { font-family: var(--serif); font-weight: 720; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.05; max-width: 20em; }
.role-sum { color: var(--muted); margin: 1rem 0 1.5rem; max-width: 44em; }
.role-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.role-facts li { padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .9rem; color: var(--muted); }
.role-facts b { color: var(--fg); font-weight: 600; }
.role-go { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #111; transition: transform .5s var(--ease-out), box-shadow .3s; }
.role-go .i-arrow { width: 14px; height: 16px; transform: rotate(90deg); }
.role-card:hover .role-go { transform: scale(1.08); box-shadow: 0 12px 34px -8px var(--accent-glow); }
@media (max-width: 640px) { .role-card { grid-template-columns: 1fr; } .role-go { width: 52px; height: 52px; } }
.join-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.join-grid li { background: #fff; border: 1px solid var(--ink-line); border-radius: var(--radius-lg); padding: 1.5rem 1.4rem 1.75rem; }
.join-n { font-family: var(--serif); font-weight: 620; font-size: 1.6rem; color: var(--accent-ink); }
.join-grid h3 { font-family: var(--serif); font-weight: 720; font-size: 1.6rem; line-height: 1.1; margin: .8rem 0 .5rem; }
.join-grid p { margin: 0; color: var(--ink-muted); }
@media (max-width: 960px) { .join-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .join-grid { grid-template-columns: 1fr; } }

/* Job page */
.crumbs { display: flex; gap: .6rem; align-items: center; margin-bottom: 1.5rem; font-size: .92rem; color: var(--muted); }
.crumbs a { color: var(--fg); text-decoration-color: var(--accent); }
.job-title { font-size: clamp(2.6rem, 6vw, 5.2rem) !important; max-width: 14em !important; }
.job-facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 2.5rem; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; background: var(--line); max-width: 60rem; }
.job-facts li { display: flex; flex-direction: column; gap: .15rem; padding: 1.1rem 1.25rem; background: var(--bg-2); }
.jf-k { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.job-facts b { font-family: var(--serif); font-weight: 720; font-size: 1.55rem; line-height: 1.15; }
.job-facts small { color: var(--muted); font-size: .85rem; }
@media (max-width: 820px) { .job-facts { grid-template-columns: 1fr 1fr; } }
.job-onsite { background: var(--accent); color: #111; }
.job-onsite p { margin: 0; padding: 1rem 0; font-size: 1.02rem; }
.job-intro .prose .lead { color: var(--fg); }
.job-intro .check-list { margin: 1.5rem 0 1.75rem; }
.job-intro .check-list li { color: var(--fg); }
.mini-h-dark { color: var(--muted); margin-top: 2.25rem; }
.split-bar { display: flex; height: 54px; border-radius: 999px; overflow: hidden; margin-bottom: 2rem; box-shadow: 0 20px 40px -24px rgba(120,50,10,.45); }
.sb { display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; white-space: nowrap; overflow: hidden; padding: 0 .5rem; transform-origin: left; }
.sb1 { flex: 30; background: #111418; color: var(--paper); } .sb2 { flex: 25; background: var(--accent); color: #111; } .sb3 { flex: 20; background: var(--accent-2); color: #111; } .sb4 { flex: 25; background: #fff; color: #111; }
.js .split-bar .sb { transform: scaleX(0); transition: transform .9s var(--ease-out); }
.js .split-bar.is-in .sb { transform: none; }
.js .split-bar.is-in .sb2 { transition-delay: .12s; } .js .split-bar.is-in .sb3 { transition-delay: .24s; } .js .split-bar.is-in .sb4 { transition-delay: .36s; }
@media (max-width: 700px) { .split-bar { height: auto; flex-direction: column; border-radius: var(--radius-lg); } .sb { padding: .7rem 1rem; justify-content: flex-start; } }
.area-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.area { background: #fff; border: 1px solid var(--ink-line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); }
.area-pct { margin: 0; font-size: .9rem; color: var(--ink-muted); }
.area-pct b { font-family: var(--serif); font-weight: 620; font-weight: 400; font-size: 1.6rem; color: var(--accent-ink); margin-right: .25rem; }
.area h3 { font-family: var(--serif); font-weight: 720; font-size: clamp(1.7rem, 2.6vw, 2.1rem); margin: .5rem 0 1rem; }
.area ul { list-style: none; display: grid; gap: .7rem; }
.area li { position: relative; padding-left: 1.2rem; color: var(--ink-muted); font-size: .98rem; }
.area li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 800px) { .area-grid { grid-template-columns: 1fr; } }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2), rgba(255,179,138,.2)); }
.timeline li { position: relative; padding: 2.75rem 2rem 0 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 6px rgba(255,90,31,.12); }
.tl-k { display: block; font-family: var(--serif); font-weight: 720; font-size: 2rem; line-height: 1.05; margin-bottom: .75rem; }
.timeline p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .timeline { grid-template-columns: 1fr; gap: 2rem; } .timeline::before { top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), rgba(255,179,138,.2)); } .timeline li { padding: 0 0 0 2.5rem; } .timeline li::before { top: 4px; } }
.fit-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1rem; }
.fit-col { background: #fff; border: 1px solid var(--ink-line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.25rem); }
.fit-col h3 { font-family: var(--serif); font-weight: 720; font-size: 2rem; }
.fit-col .check-list { margin-top: 1.25rem; }
.fit-nice { background: transparent; border-style: dashed; }
@media (max-width: 860px) { .fit-grid { grid-template-columns: 1fr; } }
.log-list { margin: 0; border-top: 1px solid var(--line); }
.log-list div { display: grid; grid-template-columns: 10rem 1fr; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.log-list dt { font-weight: 600; color: var(--accent-2); }
.log-list dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .log-list div { grid-template-columns: 1fr; gap: .25rem; } }

/* Application form */
.apply-sec { background: radial-gradient(900px 520px at 0% 20%, rgba(255,90,31,.12), transparent 60%), var(--bg); border-top: 1px solid var(--line); }
.apply-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.apply-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.apply-aside .lead { margin-top: 1.25rem; }
.apply-tip { margin-top: 2rem; padding: 1.1rem 1.25rem; border-radius: 14px; border: 1px solid rgba(255,90,31,.45); background: rgba(255,90,31,.08); }
.apply-tip p { margin: 0; font-size: .98rem; }
.apply-tip b { color: var(--accent-2); }
.apply-alt { margin-top: 1.5rem; color: var(--muted); font-size: .95rem; }
.apply-alt a { color: var(--fg); }
@media (max-width: 960px) { .apply-grid { grid-template-columns: 1fr; } .apply-aside { position: static; } }
.apply-panel { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3.5vw, 2.5rem); box-shadow: 0 50px 100px -50px rgba(255,90,31,.35); }
.apply-panel :focus-visible { outline-color: var(--ink); }
.apply-group { border: 0; padding: 0 0 1.5rem; margin: 0 0 1.75rem; border-bottom: 1px solid var(--ink-line); min-width: 0; }
.apply-group > legend { display: flex; align-items: center; gap: .6rem; padding: 0; margin-bottom: 1.25rem; font-family: var(--serif); font-weight: 720; font-size: 1.7rem; }
.apply-group > legend span { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--accent); color: #111; font-family: var(--sans); font-size: .85rem; font-weight: 700; }
.apply-panel textarea { min-height: 6.5rem; }
.drop { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.4rem 1.25rem; border: 1.5px dashed rgba(20,20,20,.3); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s, transform .3s var(--ease-out); }
.drop:hover, .drop.is-drag { border-color: var(--accent-ink); background: #fff7f2; }
.drop.is-drag { transform: scale(1.01); }
.drop.has-file { border-style: solid; border-color: var(--accent-ink); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop input:focus-visible + .drop-ico { outline: 2px solid var(--ink); outline-offset: 3px; }
.drop-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #fff1e9; color: var(--accent-ink); }
.drop-ico svg { width: 24px; height: 24px; }
.drop.has-file .drop-ico { background: var(--accent); color: #111; }
.drop-txt { display: flex; flex-direction: column; min-width: 0; }
.drop-txt b { font-weight: 600; overflow-wrap: anywhere; }
.drop-txt small { color: var(--ink-muted); font-size: .88rem; }
.field.has-error .drop { border-color: #b3261e; }
.yn { margin-bottom: 1.25rem; }
.yn > legend { font-size: .925rem; font-weight: 600; margin-bottom: .6rem; padding: 0; }
.yn-opts { display: flex; gap: .6rem; flex-wrap: wrap; }
.yn-opt { position: relative; }
.yn-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.yn-opt span { display: inline-flex; align-items: center; justify-content: center; min-width: 6rem; min-height: 46px; padding: .5rem 1.2rem; border-radius: 999px; border: 1px solid rgba(20,20,20,.25); background: #fff; font-weight: 600; cursor: pointer; transition: all .2s ease; }
.yn-opt input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.yn-opt input:checked + span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: .5rem; }
.yn-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255,90,31,.35); }
.yn-hint { margin: .6rem 0 0; font-size: .9rem; color: #7a1b14; background: #fdecea; border-radius: 8px; padding: .55rem .75rem; }
.field.has-error .yn-opt span { border-color: #b3261e; }
.apply-submit { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; margin-top: 1rem; }
.upload-bar { width: 100%; max-width: 22rem; height: 4px; border-radius: 4px; background: var(--ink-line); overflow: hidden; }
.upload-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-ink), var(--accent)); transform-origin: left; transform: scaleX(0); transition: transform .2s linear; }
.applied-wrap { display: flex; flex-direction: column; align-items: flex-start; min-height: 52vh; justify-content: center; }
.applied-check { width: 64px; height: 64px; margin-bottom: 1.5rem; }
.applied-check svg { width: 100%; height: 100%; }
.applied-check circle { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 1s var(--ease-out) .3s forwards; }
.applied-check path { fill: none; stroke: var(--accent-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s var(--ease-out) 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.applied-ref { margin: 1.25rem 0 0; color: var(--muted); }
.applied-ref b { color: var(--fg); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.applied-alt { margin-top: 2rem; color: var(--muted); }
.applied-alt a { color: var(--fg); }
@media (prefers-reduced-motion: reduce) {
  .js .split-bar .sb { transform: none !important; }
  .applied-check circle, .applied-check path { stroke-dashoffset: 0; }
}

/* =====================================================================
   v3: full-site components (service, industry, product, company, insights)
   Base state = final state; motion only runs "from" keyframes, so the
   global reduced-motion rule leaves everything visible.
   ===================================================================== */
[data-anim].is-offscreen *, [data-anim].is-offscreen::before, [data-anim].is-offscreen::after { animation-play-state: paused !important; }
.js.rv-fallback [data-inview] { opacity: 1 !important; transform: none !important; }
.section-sm { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-line { border-top: 1px solid var(--line); }
.section-dark2 { background: var(--bg-2); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; gap: .6rem; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; border-top: 1.5px solid var(--faint); border-right: 1.5px solid var(--faint); transform: rotate(45deg); }
.crumbs a { color: var(--fg); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) left 100% / 0 1px no-repeat; transition: background-size .35s var(--ease-out); }
.crumbs a:hover { background-size: 100% 1px; }
.crumbs [aria-current] { color: var(--muted); }
.section-paper .crumbs a { color: var(--ink); } .section-paper .crumbs [aria-current] { color: var(--ink-muted); }

/* ---------- Split page hero with illustration ---------- */
.phero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.phero > .wrap { z-index: 1; }
.phero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.phero h1.display { font-size: clamp(2.6rem, 5.4vw, 4.8rem); max-width: 12em; }
.phero .lead { margin-top: 1.5rem; }
.phero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }
.phero-tag { display: inline-flex; gap: .5rem; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.25rem; }
.phero-tag b { font-family: var(--serif); font-weight: 620; font-weight: 400; font-size: 1.1rem; letter-spacing: 0; text-transform: none; color: var(--accent-2); }
@media (max-width: 980px) { .phero-grid { grid-template-columns: 1fr; } .phero .ill-card { max-width: 34rem; } }

/* Illustration frame */
.ill-card { position: relative; border-radius: 22px; padding: clamp(1rem, 2.5vw, 1.5rem); background: linear-gradient(180deg, rgba(32,32,32,.8), rgba(16,16,16,.9)); border: 1px solid var(--line-strong); box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.05); }
.ill-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(150deg, rgba(255,90,31,.65), transparent 30%, transparent 70%, rgba(255,179,138,.3)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.ill-cap { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin: 0 0 .9rem; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ill-cap i { font-style: normal; color: var(--faint); letter-spacing: .08em; }
.ill svg { width: 100%; height: auto; overflow: visible; }
.ill text { font-family: var(--sans); }
.ill-paper { background: #fff; border-color: var(--ink-line); box-shadow: 0 40px 80px -40px rgba(120,50,10,.35); }
.ill-paper .ill-cap { color: var(--ink-muted); }
/* shared svg primitives */
.s-line { fill: none; stroke: var(--line-strong); stroke-width: 1.25; }
.s-dash { fill: none; stroke: var(--line-strong); stroke-width: 1.25; stroke-dasharray: 3 5; }
.s-acc { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.s-fill { fill: var(--bg-3); stroke: var(--line-strong); stroke-width: 1; }
.s-fill-acc { fill: var(--accent); }
.s-t { fill: var(--fg); font-size: 11px; font-weight: 600; }
.s-tm { fill: var(--muted); font-size: 10px; font-weight: 500; }
.s-ta { fill: var(--accent-2); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.s-pulse { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linecap: round; stroke-dasharray: 18 600; animation: s-run 4.2s linear infinite; filter: drop-shadow(0 0 4px rgba(255,90,31,.8)); }
.s-pulse.d2 { animation-delay: -1.4s; } .s-pulse.d3 { animation-delay: -2.8s; }
@keyframes s-run { from { stroke-dashoffset: 618; } to { stroke-dashoffset: 0; } }
.s-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js [data-inview] .s-draw { stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-out); }
.js [data-inview].is-in .s-draw { stroke-dashoffset: 0; }
.js [data-inview].is-in .s-draw.d2 { transition-delay: .35s; } .js [data-inview].is-in .s-draw.d3 { transition-delay: .7s; } .js [data-inview].is-in .s-draw.d4 { transition-delay: 1.05s; }
.s-blink { animation: s-blink 2.4s ease-in-out infinite; }
@keyframes s-blink { 50% { opacity: .25; } }
.s-float { animation: s-float 6s var(--ease-io) infinite alternate; transform-box: fill-box; }
@keyframes s-float { to { transform: translateY(-6px); } }
.s-spin { transform-box: fill-box; transform-origin: center; animation: s-spin 18s linear infinite; }
@keyframes s-spin { to { transform: rotate(360deg); } }
.s-pop { transform-box: fill-box; transform-origin: center; animation: s-pop 5s var(--ease-out) infinite; }
@keyframes s-pop { 0%, 8% { transform: scale(0); opacity: 0; } 16%, 86% { transform: scale(1); opacity: 1; } 96%, 100% { transform: scale(.6); opacity: 0; } }

/* ---------- At-a-glance strip ---------- */
.glance { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; }
.glance li { background: var(--bg); padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; }
.glance .gk { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.glance b { font-family: var(--serif); font-weight: 720; font-size: 1.45rem; line-height: 1.15; }
.glance span:not(.gk) { color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .glance { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .glance { grid-template-columns: 1fr; } }

/* ---------- Deliverables (numbered cards) ---------- */
.deliver { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: dv; }
.deliver li { counter-increment: dv; position: relative; background: #fff; border: 1px solid var(--ink-line); border-radius: var(--radius-lg); padding: 1.6rem 1.5rem 1.75rem; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.deliver li::before { content: counter(dv, decimal-leading-zero); font-family: var(--serif); font-weight: 620; font-size: 1.5rem; color: var(--accent-ink); }
.deliver li:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(120,50,10,.3); }
.deliver h3 { font-family: var(--serif); font-weight: 720; font-size: 1.65rem; line-height: 1.1; margin: .7rem 0 .5rem; }
.deliver p { margin: 0; color: var(--ink-muted); }
.deliver-dark li { background: var(--bg-2); border-color: var(--line); }
.deliver-dark li::before { color: var(--accent); } .deliver-dark p { color: var(--muted); }
.deliver-dark li:hover { box-shadow: 0 24px 50px -24px rgba(0,0,0,.8); border-color: rgba(255,90,31,.4); }
@media (max-width: 900px) { .deliver { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .deliver { grid-template-columns: 1fr; } }

/* ---------- Horizontal steps with drawn rail ---------- */
.hsteps { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 1.5rem; position: relative; padding-top: 2.25rem; }
.hsteps::before, .hsteps::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; border-radius: 2px; }
.hsteps::before { background: var(--line); }
.hsteps::after { background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; }
.js .hsteps[data-inview]::after { transform: scaleX(0); transition: transform 1.6s var(--ease-out) .2s; }
.js .hsteps[data-inview].is-in::after { transform: none; }
.hsteps li { position: relative; }
.hsteps li::before { content: ""; position: absolute; top: calc(-2.25rem + 2px); left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 5px var(--bg); }
.hsteps .hk { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hsteps h3 { font-family: var(--serif); font-weight: 720; font-size: 1.6rem; line-height: 1.1; margin: .5rem 0 .5rem; }
.hsteps p { margin: 0; color: var(--muted); font-size: .98rem; }
.section-paper .hsteps::before { background: var(--ink-line); }
.section-paper .hsteps li::before { background: var(--paper); box-shadow: 0 0 0 5px var(--paper); border-color: var(--accent-ink); }
.section-paper .hsteps .hk { color: var(--accent-ink); } .section-paper .hsteps p { color: var(--ink-muted); }
@media (max-width: 880px) {
  .hsteps { grid-template-columns: 1fr; padding: 0 0 0 2rem; gap: 2rem; }
  .hsteps::before, .hsteps::after { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .hsteps::after { transform-origin: top; }
  .js .hsteps[data-inview]::after { transform: scaleY(0); }
  .hsteps li::before { left: -2rem; top: .2rem; }
}

/* ---------- Good fit / not a fit ---------- */
.fitcmp { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fitcmp > div { border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.fitcmp .yes { background: var(--accent); color: #111; }
.fitcmp .no { background: var(--bg-2); border: 1px solid var(--line); }
.fitcmp h3 { font-family: var(--serif); font-weight: 720; font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.fitcmp ul { list-style: none; display: grid; gap: .8rem; }
.fitcmp li { position: relative; padding-left: 1.8rem; }
.fitcmp .yes li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 8px; border-left: 2px solid #111; border-bottom: 2px solid #111; transform: rotate(-45deg); }
.fitcmp .no li { color: var(--muted); }
.fitcmp .no li::before { content: ""; position: absolute; left: 1px; top: .72em; width: 13px; height: 2px; background: var(--faint); }
@media (max-width: 760px) { .fitcmp { grid-template-columns: 1fr; } }

/* ---------- Sticky side layout ---------- */
.sside { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.sside-head { position: sticky; top: calc(var(--header-h) + 2.5rem); }
.sside-head .lead { margin-top: 1.25rem; }
@media (max-width: 880px) { .sside { grid-template-columns: 1fr; } .sside-head { position: static; } }
.rows { list-style: none; border-top: 1px solid var(--line); }
.rows > li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.rows .rn { font-family: var(--serif); font-weight: 620; font-size: 1.5rem; color: var(--accent); line-height: 1.2; }
.rows h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
.rows p { margin: 0; color: var(--muted); }
.section-paper .rows { border-color: var(--ink-line); } .section-paper .rows > li { border-color: var(--ink-line); }
.section-paper .rows .rn { color: var(--accent-ink); } .section-paper .rows p { color: var(--ink-muted); }

/* ---------- Before / after rows ---------- */
.ba { list-style: none; display: grid; gap: .75rem; }
.ba li { display: grid; grid-template-columns: minmax(0, 1fr) 3rem minmax(0, 1fr); align-items: stretch; }
.ba .b, .ba .a { border-radius: 14px; padding: 1.1rem 1.25rem; }
.ba .b { background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); }
.ba .a { background: rgba(255,90,31,.1); border: 1px solid rgba(255,90,31,.4); }
.ba small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .35rem; color: var(--faint); }
.ba .a small { color: var(--accent); }
.ba .arr { display: grid; place-items: center; color: var(--accent); }
.ba .arr::before { content: ""; width: 11px; height: 13px; background: currentColor; clip-path: polygon(50% 0, 100% 43%, 67% 43%, 67% 100%, 33% 100%, 33% 43%, 0 43%); transform: rotate(90deg); }
.js .ba[data-stagger].is-in > li .arr::before { animation: ba-nudge 2.4s var(--ease-io) infinite; }
@keyframes ba-nudge { 50% { transform: rotate(90deg) translateY(-4px); } }
@media (max-width: 700px) { .ba li { grid-template-columns: 1fr; } .ba .arr { height: 2rem; } .ba .arr::before { transform: rotate(180deg); } .js .ba[data-stagger].is-in > li .arr::before { animation: none; } }

/* ---------- Tile grid (examples) ---------- */
.tiles { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tile { --mx: 50%; --my: 50%; position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg); padding: 1.6rem 1.5rem 1.7rem; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .3s ease, transform .5s var(--ease-out); }
.tile:hover { border-color: rgba(255,90,31,.45); }
.tile:hover::before { opacity: 1; }
.tile h3 { font-family: var(--serif); font-weight: 720; font-size: 1.6rem; line-height: 1.1; margin: .9rem 0 .5rem; }
.tile p { margin: 0; color: var(--muted); font-size: .98rem; }
.tile .ti { width: 2.5rem; height: 2.5rem; border-radius: 12px; display: grid; place-items: center; background: rgba(255,90,31,.14); color: var(--accent-2); }
.tile .ti svg { width: 20px; height: 20px; }
.tile-k { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
a.tile { text-decoration: none; display: flex; flex-direction: column; }
a.tile .card-link { margin-top: 1.25rem; }
a.tile:hover .card-link::after { transform: translateX(5px); }
.section-paper .tile { background: #fff; border-color: var(--ink-line); }
.section-paper .tile p { color: var(--ink-muted); } .section-paper .tile .ti { background: rgba(179,56,10,.1); color: var(--accent-ink); }
.section-paper .tile .tile-k { color: var(--accent-ink); } .section-paper .tile .card-link { color: var(--ink); }
@media (max-width: 1000px) { .tiles, .tiles-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tiles, .tiles-2, .tiles-4 { grid-template-columns: 1fr; } }

/* ---------- Inline CTA panel ---------- */
.callout { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 2.5rem; align-items: center; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: 22px; background: #111; color: var(--fg); border: 1px solid var(--line-strong); }
.callout h2, .callout h3 { font-family: var(--serif); font-weight: 720; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.05; }
.callout p { margin: .6rem 0 0; color: var(--muted); max-width: 38em; }
@media (max-width: 720px) { .callout { grid-template-columns: 1fr; } }

/* ---------- Related links row ---------- */
.rel { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.rel a { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.35rem 1.4rem 1.4rem; border-radius: var(--radius-lg); border: 1px solid var(--line); text-decoration: none; transition: border-color .25s ease, background .25s ease, transform .45s var(--ease-out); }
.rel a:hover { border-color: rgba(255,90,31,.5); background: rgba(255,90,31,.05); transform: translateY(-3px); }
.rel .rk { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.rel b { font-family: var(--serif); font-weight: 720; font-size: 1.5rem; line-height: 1.1; }
.rel span:not(.rk) { color: var(--muted); font-size: .95rem; }
.section-paper .rel a { border-color: var(--ink-line); background: #fff; }
.section-paper .rel .rk { color: var(--accent-ink); } .section-paper .rel span:not(.rk) { color: var(--ink-muted); }
@media (max-width: 880px) { .rel { grid-template-columns: 1fr; } }

/* ---------- Chips ---------- */
.tagrow { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.tagrow li { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .92rem; color: var(--muted); }
.section-paper .tagrow li { border-color: var(--ink-line); color: var(--ink-muted); background: #fff; }
.filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter button { font: 500 .92rem/1 var(--sans); padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s, border-color .2s; min-height: 40px; }
.filter button:hover { color: var(--fg); border-color: var(--fg); }
.filter button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #111; }
.searchbox { position: relative; max-width: 28rem; }
.searchbox input { padding-left: 2.75rem; }
.searchbox::before { content: ""; position: absolute; left: 1rem; top: 50%; width: 13px; height: 13px; margin-top: -9px; border: 2px solid var(--faint); border-radius: 50%; }
.searchbox::after { content: ""; position: absolute; left: 1.95rem; top: 50%; width: 6px; height: 2px; margin-top: 4px; background: var(--faint); transform: rotate(45deg); }

/* ---------- Care band (risks / compliance) ---------- */
.care { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 5rem); }
.care-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(17,17,17,.2); border-radius: var(--radius-lg); overflow: hidden; }
.care-list li { background: var(--accent); padding: 1.4rem 1.4rem 1.5rem; }
.care-list h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.care-list p { margin: 0; color: rgba(17,17,17,.82); font-size: .97rem; }
.care-note { font-size: .9rem; color: rgba(17,17,17,.75); margin-top: 1.25rem; }
.band-accent a { color: #111; }
@media (max-width: 880px) { .care { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .care-list { grid-template-columns: 1fr; } }

/* ---------- Opportunity cards (industry "where we'd start") ---------- */
.opps { list-style: none; display: grid; gap: 1rem; }
.opp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--ink-line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; transition: box-shadow .5s var(--ease-out), transform .5s var(--ease-out); }
.opp:hover { transform: translateY(-3px); box-shadow: 0 28px 50px -30px rgba(120,50,10,.35); }
.opp > div { padding: 1.35rem 1.4rem 1.45rem; }
.opp > div + div { border-left: 1px solid var(--ink-line); }
.opp small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .4rem; }
.opp h3 { font-family: var(--serif); font-weight: 720; font-size: 1.55rem; line-height: 1.1; }
.opp p { margin: 0; color: var(--ink-muted); font-size: .97rem; }
.opp .human { background: var(--paper-2); }
@media (max-width: 860px) { .opp { grid-template-columns: 1fr; } .opp > div + div { border-left: 0; border-top: 1px solid var(--ink-line); } }

/* ---------- Industry hero (full-bleed line art) ---------- */
.ihero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(3rem, 7vw, 5rem) 0 0; }
.ihero-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 2rem 4rem; align-items: end; }
.ihero h1.display { font-size: clamp(2.6rem, 5.8vw, 5.2rem); max-width: 12em; }
.ihero-aside { color: var(--muted); padding-bottom: .6rem; }
.ihero-aside .btn { margin-top: 1.5rem; }
.ihero-art { position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,90,31,.04), transparent); }
.ihero-art svg { display: block; width: 100%; height: auto; max-height: 300px; }
@media (max-width: 880px) { .ihero-top { grid-template-columns: 1fr; } }

/* ---------- Product panels ---------- */
.prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); }
.prod:nth-child(even) .prod-art { order: -1; }
.prod-k { display: flex; gap: .75rem; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.prod-k span { color: var(--faint); }
.prod h2 { font-family: var(--serif); font-weight: 720; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; }
.prod h2 em { color: var(--muted); font-size: .55em; font-style: normal; }
.prod .lead { margin-top: 1rem; }
.prod .check-list { margin: 1.5rem 0 2rem; }
.prod .btn { margin-right: 1rem; }
.status { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 600; border: 1px solid var(--line-strong); color: var(--fg); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5ee08f; box-shadow: 0 0 8px #5ee08f; }
.status-pilot::before { background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.status-ask::before { background: var(--muted); box-shadow: none; }
@media (max-width: 900px) { .prod { grid-template-columns: 1fr; } .prod:nth-child(even) .prod-art { order: 0; } }

/* Chat mock (LoanWick illustration) */
.chat { display: grid; gap: .55rem; }
.bub { max-width: 82%; padding: .7rem .95rem; border-radius: 16px; font-size: .92rem; line-height: 1.4; }
.bub-in { background: var(--bg-3); border: 1px solid var(--line); border-bottom-left-radius: 5px; justify-self: start; }
.bub-out { background: var(--accent); color: #111; border-bottom-right-radius: 5px; justify-self: end; }
.bub small { display: block; font-size: .7rem; opacity: .7; margin-top: .25rem; }
.chat .bub { animation: bub-in 12s var(--ease-out) infinite both; }
.chat .bub:nth-child(2) { animation-delay: 1.2s; } .chat .bub:nth-child(3) { animation-delay: 2.6s; } .chat .bub:nth-child(4) { animation-delay: 3.8s; } .chat .bub:nth-child(5) { animation-delay: 5s; }
@keyframes bub-in { 0% { opacity: 0; transform: translateY(10px) scale(.96); } 5%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
.typing { justify-self: end; display: inline-flex; gap: 4px; padding: .7rem .9rem; border-radius: 16px; background: rgba(255,90,31,.18); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); animation: typing 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-4px); opacity: .5; } }
.demo-note { margin: .9rem 0 0; font-size: .78rem; color: var(--faint); }

/* Guard loop (read / decide / guard / act) */
.loop4 { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: l4; }
.loop4 li { counter-increment: l4; position: relative; padding: 1.5rem 1.4rem 1.6rem; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); }
.loop4 li::before { content: counter(l4); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgba(255,90,31,.15); color: var(--accent-2); font-family: var(--serif); font-weight: 620; font-size: 1.2rem; }
.loop4 li:not(:last-child)::after { content: ""; position: absolute; right: -.85rem; top: 2.1rem; width: .7rem; height: 2px; background: var(--accent); }
.loop4 h3 { font-family: var(--serif); font-weight: 720; font-size: 1.7rem; margin: .8rem 0 .35rem; }
.loop4 p { margin: 0; color: var(--muted); font-size: .96rem; }
.loop4 li.is-guard { border-color: rgba(255,90,31,.55); background: linear-gradient(180deg, rgba(255,90,31,.12), var(--bg-2)); }
@media (max-width: 900px) { .loop4 { grid-template-columns: 1fr 1fr; } .loop4 li::after { display: none; } }
@media (max-width: 520px) { .loop4 { grid-template-columns: 1fr; } }

/* ---------- Canvas field ---------- */
.field-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }

/* ---------- History ---------- */
.era { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); position: relative; }
.era-year { font-family: var(--serif); font-weight: 620; font-size: clamp(4rem, 11vw, 9rem); line-height: .85; color: transparent; -webkit-text-stroke: 1.5px var(--accent); position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.era-year.is-now { color: var(--accent); -webkit-text-stroke: 0; }
.era h2 { font-family: var(--serif); font-weight: 720; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; margin-bottom: 1.25rem; }
.era p { color: var(--muted); max-width: 38em; }
.era .lead { color: var(--fg); }
@media (max-width: 760px) { .era { grid-template-columns: 1fr; gap: 1rem; } .era-year { position: static; } }
.name-morph { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 2rem 0 0; }
.name-morph span { font-family: var(--serif); font-weight: 720; font-size: clamp(1.4rem, 3vw, 2.2rem); }
.name-morph .old { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.name-morph .arrow { width: 3rem; height: 2px; background: var(--accent); position: relative; }
.name-morph .arrow::after { content: ""; position: absolute; right: -2px; top: -4px; width: 10px; height: 10px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }

/* ---------- FAQ page ---------- */
.faq-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; margin-bottom: 2.5rem; }
@media (max-width: 800px) { .faq-tools { grid-template-columns: 1fr; } }
.faq-group { margin-bottom: 3.5rem; }
.faq-group[hidden] { display: none; }
.faq-group-h { display: flex; align-items: baseline; gap: 1rem; font-family: var(--serif); font-weight: 720; font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 .75rem; }
.faq-group-h span { font-style: normal; color: var(--accent); font-size: .7em; }
.faq details[hidden] { display: none; }
.faq-empty { color: var(--muted); padding: 2rem 0; }
.faq .faq-a p + p { padding-top: 0; }
.faq .faq-a a { color: var(--fg); text-decoration-color: var(--accent); }

/* ---------- Glossary ---------- */
.az { position: sticky; top: var(--header-h); z-index: 5; display: flex; flex-wrap: wrap; gap: .25rem; padding: .85rem 0; background: var(--paper); border-bottom: 1px solid var(--ink-line); margin-bottom: 2rem; }
.az a, .az span { display: grid; place-items: center; min-width: 2.2rem; height: 2.2rem; border-radius: 8px; font-weight: 600; font-size: .92rem; text-decoration: none; }
.az a { color: var(--ink); } .az a:hover { background: var(--ink); color: var(--paper); }
.az span { color: rgba(19,18,17,.3); }
.gl-letter { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem 2rem; padding: 1.5rem 0; border-top: 1px solid var(--ink-line); }
.gl-letter[hidden] { display: none; }
.gl-letter > h2 { font-family: var(--serif); font-weight: 620; font-weight: 400; font-size: 3.4rem; line-height: 1; color: var(--accent-ink); }
.gl-terms { margin: 0; display: grid; gap: 1.5rem; }
.gl-term[hidden] { display: none; }
.gl-term dt { font-weight: 700; font-size: 1.15rem; margin-bottom: .3rem; scroll-margin-top: calc(var(--header-h) + 5rem); }
.gl-term dt small { font-weight: 500; color: var(--ink-muted); font-size: .85rem; margin-left: .4rem; }
.gl-term dd { margin: 0; color: var(--ink-muted); max-width: 46em; }
.gl-term dd a { color: var(--ink); text-decoration-color: var(--accent-ink); }
.gl-term:target dt { color: var(--accent-ink); }
.gl-count { color: var(--ink-muted); font-size: .92rem; margin: .75rem 0 0; }
.section-paper input[type="search"] { background: #fff; color: var(--ink); border-color: var(--ink-line); }
@media (max-width: 600px) { .gl-letter { grid-template-columns: 1fr; } .gl-letter > h2 { font-size: 2.6rem; } }

/* ---------- Checklist (resources) ---------- */
.ck { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.ck-groups { display: grid; gap: 1.5rem; }
.ck fieldset { margin: 0; padding: 1.4rem 1.5rem 1.2rem; border: 1px solid var(--ink-line); border-radius: var(--radius-lg); background: #fff; }
.ck legend { font-family: var(--serif); font-weight: 720; font-size: 1.6rem; padding: 0 .4rem; margin-left: -.4rem; }
.ck label { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .75rem; align-items: start; padding: .7rem 0; border-top: 1px solid var(--ink-line); cursor: pointer; color: var(--ink); }
.ck label:first-of-type { border-top: 0; }
.ck input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 1.3rem; height: 1.3rem; margin: .15rem 0 0; border: 1.5px solid var(--ink-muted); border-radius: 5px; background: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.ck input[type="checkbox"]::after { content: ""; width: 5px; height: 10px; border: solid #111; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); margin-top: -2px; transition: transform .25s var(--ease-out); }
.ck input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.ck input[type="checkbox"]:checked::after { transform: rotate(45deg) scale(1); }
.ck input[type="checkbox"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ck label span small { display: block; color: var(--ink-muted); font-size: .88rem; margin-top: .15rem; }
.ck-score { position: sticky; top: calc(var(--header-h) + 2rem); background: #111; color: var(--fg); border-radius: 22px; padding: 1.75rem; text-align: center; }
.ring { position: relative; width: 11rem; height: 11rem; margin: 0 auto 1.25rem; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .rt { stroke: rgba(238,241,244,.12); }
.ring .rv { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke-dashoffset .8s var(--ease-out); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-weight: 720; font-size: 3rem; font-weight: 400; }
.ck-verdict { font-family: var(--serif); font-weight: 720; font-size: 1.5rem; line-height: 1.15; margin: 0 0 .5rem; }
.ck-score p { color: var(--muted); font-size: .95rem; }
.ck-score .btn { margin-top: .5rem; }
@media (max-width: 900px) { .ck { grid-template-columns: 1fr; } .ck-score { position: static; } }

/* ---------- Insights cards + hub ---------- */
.ins-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ins-card[hidden] { display: none; }
.ins-card a { position: relative; display: flex; flex-direction: column; gap: .7rem; height: 100%; padding: 1.4rem 1.4rem 1.5rem; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: border-color .3s ease, transform .5s var(--ease-out); }
.ins-card a:hover { border-color: rgba(255,90,31,.5); transform: translateY(-4px); }
.ins-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; color: var(--faint); }
.ins-topic { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.ins-title { font-family: var(--serif); font-weight: 720; font-size: 1.7rem; line-height: 1.08; color: var(--fg); }
.ins-dek { color: var(--muted); font-size: .96rem; }
.ins-card .card-link { margin-top: auto; padding-top: .5rem; }
.ins-card a:hover .card-link::after { transform: translateX(5px); }
.section-paper .ins-card a { background: #fff; border-color: var(--ink-line); }
.section-paper .ins-title { color: var(--ink); } .section-paper .ins-dek { color: var(--ink-muted); } .section-paper .ins-topic { color: var(--accent-ink); } .section-paper .ins-meta { color: var(--ink-muted); } .section-paper .ins-card .card-link { color: var(--ink); }
/* generative glyphs on cards */
.ins-glyph { position: relative; display: block; height: 7.5rem; margin: -1.4rem -1.4rem .4rem; background: linear-gradient(135deg, #1b1b1b, #121212); border-bottom: 1px solid var(--line); overflow: hidden; }
.section-paper .ins-glyph { background: linear-gradient(135deg, #1a1918, #0f0f0f); }
.ins-glyph i { position: absolute; display: block; transition: transform .8s var(--ease-out); }
.ins-card a:hover .ins-glyph i:nth-child(1) { transform: translate3d(8px, -4px, 0) rotate(6deg); }
.ins-card a:hover .ins-glyph i:nth-child(2) { transform: translate3d(-10px, 4px, 0); }
.ins-card a:hover .ins-glyph i:nth-child(3) { transform: scale(1.12); }
.ins-g1 i:nth-child(1) { width: 9rem; height: 9rem; right: -2rem; top: -3rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,90,31,.8), transparent); }
.ins-g1 i:nth-child(2) { left: 1.4rem; bottom: 1.2rem; width: 5rem; height: 2px; background: var(--accent-2); box-shadow: 0 -10px 0 rgba(255,179,138,.5), 0 -20px 0 rgba(255,179,138,.25); }
.ins-g1 i:nth-child(3) { left: 1.4rem; top: 1.2rem; width: 12px; height: 14px; background: var(--accent); clip-path: polygon(50% 0, 100% 43%, 67% 43%, 67% 100%, 33% 100%, 33% 43%, 0 43%); }
.ins-g2 i:nth-child(1) { left: 1.4rem; top: 1.4rem; width: 4rem; height: 4rem; border: 2px solid var(--accent); border-radius: 50%; }
.ins-g2 i:nth-child(2) { left: 3.4rem; top: 1.4rem; width: 4rem; height: 4rem; border: 2px solid var(--accent-2); border-radius: 50%; opacity: .7; }
.ins-g2 i:nth-child(3) { right: 1.4rem; bottom: 1.2rem; width: 40%; height: 3rem; background: repeating-linear-gradient(90deg, rgba(255,90,31,.5) 0 2px, transparent 2px 10px); }
.ins-g3 i:nth-child(1) { left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(0deg, rgba(255,90,31,.35), transparent); clip-path: polygon(0 100%, 0 70%, 15% 55%, 30% 62%, 48% 35%, 62% 42%, 80% 15%, 100% 22%, 100% 100%); }
.ins-g3 i:nth-child(2) { left: 1.4rem; top: 1.2rem; width: 3rem; height: 3px; background: var(--accent); }
.ins-g3 i:nth-child(3) { right: 1.4rem; top: 1.2rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 14px var(--accent-2); }
.ins-g4 i:nth-child(1) { left: 1.4rem; top: 1.3rem; width: 7rem; height: 4.6rem; border: 1px solid var(--line-strong); border-radius: 8px; background: repeating-linear-gradient(0deg, transparent 0 12px, rgba(238,241,244,.12) 12px 13px); }
.ins-g4 i:nth-child(2) { left: 5rem; top: 2.4rem; width: 7rem; height: 4.6rem; border: 1px solid var(--accent); border-radius: 8px; background: rgba(255,90,31,.12); }
.ins-g4 i:nth-child(3) { right: 1.6rem; bottom: 1.4rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--accent); }
.ins-g5 i:nth-child(1) { left: 1.4rem; bottom: 1.2rem; width: 14px; height: 30%; background: rgba(255,90,31,.5); box-shadow: 22px -10px 0 rgba(255,90,31,.7), 44px -24px 0 var(--accent), 66px -38px 0 var(--accent-2); }
.ins-g5 i:nth-child(2) { right: -1rem; top: -2rem; width: 8rem; height: 8rem; border-radius: 50%; border: 1px dashed rgba(255,179,138,.5); }
.ins-g5 i:nth-child(3) { right: 2rem; top: 1rem; width: 3rem; height: 3rem; border-radius: 50%; background: radial-gradient(closest-side, var(--accent), transparent); }
.ins-g6 i:nth-child(1) { inset: 0; background-image: radial-gradient(rgba(238,241,244,.25) 1px, transparent 1.5px); background-size: 16px 16px; }
.ins-g6 i:nth-child(2) { left: 1.4rem; top: 1.3rem; width: 5.5rem; height: 5.5rem; border-radius: 16px; background: linear-gradient(135deg, var(--accent), #b3380a); transform: rotate(-8deg); }
.ins-g6 i:nth-child(3) { left: 7.5rem; top: 2.6rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 2px solid var(--accent-2); }
.ins-feature a { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 2rem; padding: 0; }
.ins-feature .ins-glyph { grid-row: 1 / span 5; height: auto; min-height: 20rem; margin: 0; border-bottom: 0; border-right: 1px solid var(--line); }
.ins-feature .ins-meta, .ins-feature .ins-title, .ins-feature .ins-dek, .ins-feature .card-link { padding-right: 2rem; }
.ins-feature .ins-meta { padding-top: 2rem; }
.ins-feature .ins-title { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.ins-feature .card-link { padding-bottom: 2rem; }
.ins-feature { grid-column: 1 / -1; }
@media (max-width: 1000px) { .ins-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ins-grid { grid-template-columns: 1fr; } .ins-feature a { grid-template-columns: 1fr; padding: 1.4rem; } .ins-feature .ins-glyph { grid-row: auto; min-height: 9rem; margin: -1.4rem -1.4rem .4rem; border-right: 0; border-bottom: 1px solid var(--line); } .ins-feature .ins-meta, .ins-feature .ins-title, .ins-feature .ins-dek, .ins-feature .card-link { padding: 0; } }

/* ---------- Article ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 70; background: transparent; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.ahero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.ahero h1.display { font-size: clamp(2.4rem, 4.8vw, 4.2rem); max-width: 15em; hyphens: manual; }
.ahero .lead { margin-top: 1.5rem; max-width: 42em; }
.ameta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; color: var(--faint); font-size: .92rem; }
.ameta b { color: var(--fg); font-weight: 600; }
.ahero-glyph { position: absolute; right: -4rem; top: 50%; width: 26rem; height: 26rem; margin-top: -13rem; z-index: -1; opacity: .55; border-radius: 50%; }
.ahero-glyph i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,90,31,.35); animation: ring-out 7s var(--ease-out) infinite; }
.ahero-glyph i:nth-child(2) { animation-delay: -2.3s; } .ahero-glyph i:nth-child(3) { animation-delay: -4.6s; }
@keyframes ring-out { from { transform: scale(.2); opacity: 1; } to { transform: scale(1); opacity: 0; } }
.agrid { display: grid; grid-template-columns: 15rem minmax(0, 44rem); gap: clamp(2rem, 6vw, 6rem); justify-content: center; padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.toc { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; font-size: .92rem; }
.toc p { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 0 0 .9rem; }
.toc ol { list-style: none; display: grid; gap: .1rem; border-left: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 1.75rem 1fr; padding: .4rem 0 .4rem .9rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; transition: color .2s, border-color .2s; }
.toc a span { font-family: var(--serif); font-weight: 620; color: var(--faint); }
.toc a:hover { color: var(--fg); }
.toc a.is-active { color: var(--fg); border-left-color: var(--accent); }
.toc a.is-active span { color: var(--accent); }
.article { font-size: 1.1rem; line-height: 1.72; }
.article > p:first-child { font-size: 1.28rem; line-height: 1.6; color: var(--fg); }
.article p, .article li { color: #c9d0d7; }
.article h2 { font-family: var(--serif); font-weight: 720; font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1.1; margin: 3rem 0 1rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); color: var(--fg); }
.article h3 { font-size: 1.2rem; margin: 2rem 0 .6rem; color: var(--fg); }
.article ul, .article ol { margin: 0 0 1.4em; padding-left: 1.3rem; display: grid; gap: .5rem; }
.article ul { list-style: none; padding-left: 0; }
.article ul > li { position: relative; padding-left: 1.6rem; }
.article ul > li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 11px; background: var(--accent); clip-path: polygon(50% 0, 100% 43%, 67% 43%, 67% 100%, 33% 100%, 33% 43%, 0 43%); }
.article ol > li::marker { color: var(--accent); font-family: var(--serif); font-weight: 620; }
.article strong { color: var(--fg); }
.article a { color: var(--fg); text-decoration-color: var(--accent); }
.article blockquote, .article .note { margin: 2rem 0; padding: 1.25rem 1.4rem; border: 1px solid var(--line-strong); background: var(--bg-2); border-radius: 12px; }
.article .note p:last-child { margin: 0; }
.article .note b { color: var(--accent-2); }
.article table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: .97rem; }
.article th, .article td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { color: var(--fg); font-weight: 600; background: var(--bg-2); }
.article td { color: #cfccc5; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; border: 1px solid var(--line); border-radius: 12px; }
.table-wrap table { margin: 0; }
.sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .95rem; }
.sources h2 { font-family: var(--sans) !important; font-size: 1rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .75rem !important; color: var(--muted) !important; }
.author-box { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; align-items: start; margin-top: 3rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.author-box img { width: 3.5rem; height: 3.5rem; border-radius: 12px; background: var(--bg-3); padding: .45rem; }
.author-box p { margin: 0; color: var(--muted); font-size: .95rem; }
.author-box b { color: var(--fg); }
@media (max-width: 1000px) { .agrid { grid-template-columns: minmax(0, 1fr); } .toc { position: static; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem; } }

/* ---------- Anatomy diagram (custom AI tools) ---------- */
.anat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.anat-list { list-style: none; display: grid; gap: .5rem; counter-reset: an; }
.anat-list li { counter-increment: an; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .9rem; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid transparent; transition: border-color .3s, background .3s; cursor: default; }
.anat-list li::before { content: counter(an); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--line-strong); font-family: var(--serif); font-weight: 620; color: var(--accent-2); }
.anat-list li.is-hot, .anat-list li:hover { border-color: rgba(255,90,31,.5); background: rgba(255,90,31,.06); }
.anat-list h3 { font-size: 1.1rem; margin: .2rem 0 .25rem; }
.anat-list p { margin: 0; color: var(--muted); font-size: .96rem; }
.anat svg .part { transition: opacity .3s ease; }
.anat.has-hot svg .part { opacity: .28; }
.anat.has-hot svg .part.is-hot { opacity: 1; }
@media (max-width: 900px) { .anat { grid-template-columns: 1fr; } }

/* ---------- Month grid (fractional lead) ---------- */
.month { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.week { border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--ink-line); padding: 1.25rem 1.25rem 1.4rem; }
.week h3 { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .8rem; }
.week ul { list-style: none; display: grid; gap: .5rem; }
.week li { font-size: .95rem; padding: .55rem .7rem; border-radius: 10px; background: var(--paper); color: var(--ink); }
.week li.hot { background: var(--accent); color: #111; font-weight: 600; }
@media (max-width: 900px) { .month { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .month { grid-template-columns: 1fr; } }

/* ---------- Role cards (training) ---------- */
.roles4 { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.roles4 li { position: relative; border-radius: var(--radius-lg); padding: 1.5rem 1.4rem 1.6rem; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.roles4 .meter { display: flex; gap: 4px; margin-bottom: 1.25rem; }
.roles4 .meter i { flex: 1; height: 6px; border-radius: 3px; background: var(--line-strong); }
.roles4 .meter i.on { background: var(--accent); }
.js .roles4.is-in .meter i.on { animation: meter-on .8s var(--ease-out) both; }
.roles4 .meter i:nth-child(2) { animation-delay: .1s !important; } .roles4 .meter i:nth-child(3) { animation-delay: .2s !important; } .roles4 .meter i:nth-child(4) { animation-delay: .3s !important; }
@keyframes meter-on { from { transform: scaleX(0); } }
.roles4 h3 { font-family: var(--serif); font-weight: 720; font-size: 1.7rem; margin-bottom: .4rem; }
.roles4 p { color: var(--muted); font-size: .96rem; margin: 0 0 1rem; }
.roles4 ul { list-style: none; display: grid; gap: .4rem; font-size: .92rem; }
.roles4 ul li { all: unset; display: block; position: relative; padding-left: 1rem; color: var(--fg); }
.roles4 ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
@media (max-width: 1000px) { .roles4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .roles4 { grid-template-columns: 1fr; } }

/* ---------- Connections table (integration) ---------- */
.conn { list-style: none; border-top: 1px solid var(--ink-line); }
.conn li { display: grid; grid-template-columns: minmax(0, 1fr) 4rem minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--ink-line); }
.conn .sys { font-weight: 600; }
.conn .flow { position: relative; height: 2px; background: var(--ink-line); overflow: hidden; }
.conn .flow::after { content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%; background: var(--accent-ink); animation: conn-run 2.2s var(--ease-io) infinite; }
.conn li:nth-child(2) .flow::after { animation-delay: .4s; } .conn li:nth-child(3) .flow::after { animation-delay: .8s; } .conn li:nth-child(4) .flow::after { animation-delay: 1.2s; } .conn li:nth-child(5) .flow::after { animation-delay: 1.6s; }
@keyframes conn-run { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.conn .what { color: var(--ink-muted); font-size: .95rem; }
@media (max-width: 760px) { .conn li { grid-template-columns: 1fr 3rem 1fr; } .conn .what { grid-column: 1 / -1; } }

/* ---------- Principles on dark ---------- */
.pgrid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.pgrid li { padding: 1.75rem 1.5rem 1.9rem 0; border-bottom: 1px solid var(--line); }
.pgrid li:nth-child(3n+2), .pgrid li:nth-child(3n+3) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.pgrid h3 { font-family: var(--serif); font-weight: 720; font-size: 1.7rem; margin-bottom: .4rem; }
.pgrid p { margin: 0; color: var(--muted); }
@media (max-width: 880px) { .pgrid { grid-template-columns: 1fr; } .pgrid li:nth-child(n) { padding-left: 0; border-left: 0; } }

/* ---------- Industry hub cards ---------- */
.ind-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ind-card { --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; min-height: 19rem; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; overflow: hidden; isolation: isolate; transition: border-color .3s, transform .5s var(--ease-out); }
.ind-card:hover { border-color: rgba(255,90,31,.5); transform: translateY(-4px); }
.ind-card:hover::before { opacity: 1; }
.ind-card svg { width: 100%; height: 7rem; margin-bottom: 1.25rem; }
.ind-card h3 { font-family: var(--serif); font-weight: 720; font-size: 1.85rem; line-height: 1.05; }
.ind-card p { color: var(--muted); font-size: .96rem; margin: .5rem 0 1rem; }
.ind-card .card-link { margin-top: auto; }
.ind-card:hover .card-link::after { transform: translateX(5px); }
.ind-card .s-draw { transition: stroke-dashoffset 1.6s var(--ease-out); }
.ind-card:hover .s-acc { stroke: var(--accent-2); }
@media (max-width: 1000px) { .ind-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ind-grid { grid-template-columns: 1fr; } }

/* ---------- Big quote / statement small ---------- */
.pull { font-family: var(--serif); font-weight: 720; font-size: clamp(1.9rem, 4vw, 3.3rem); line-height: 1.12; max-width: 20em; margin: 0; text-wrap: pretty; }
.pull em { color: var(--accent); }
.section-paper .pull em { color: var(--accent-ink); }

/* ---------- Home: explore strip ---------- */
.explore { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1000px) { .explore { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .explore { grid-template-columns: 1fr; } }
.hsteps-3 { --n: 3; } .hsteps-4 { --n: 4; } .hsteps-5 { --n: 5; } .hsteps-6 { --n: 6; }
.dl1 { animation-delay: .4s !important; } .dl2 { animation-delay: .8s !important; } .dl3 { animation-delay: 1.2s !important; } .dl4 { animation-delay: 1.6s !important; } .dl5 { animation-delay: 2s !important; } .dl6 { animation-delay: 2.4s !important; } .dl7 { animation-delay: 2.8s !important; } .dl8 { animation-delay: 3.2s !important; }
.s-run2 { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linecap: round; stroke-dasharray: 12 200; stroke-dashoffset: -100; animation: s-run2 2.8s var(--ease-io) infinite; filter: drop-shadow(0 0 4px rgba(255,90,31,.8)); }
@keyframes s-run2 { from { stroke-dashoffset: 12; } to { stroke-dashoffset: -100; } }
.s-ring { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--off, 30); transform-box: fill-box; transform-origin: center; transform: rotate(-90deg); }
.js [data-inview] .s-ring { stroke-dashoffset: 100; transition: stroke-dashoffset 1.8s var(--ease-out); }
.js [data-inview].is-in .s-ring { stroke-dashoffset: var(--off, 30); }
.s-ring.o1 { --off: 55; } .s-ring.o2 { --off: 35; } .s-ring.o3 { --off: 18; }
.s-caret { animation: s-blink 1s steps(2) infinite; }
.chat-tool { justify-self: start; display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--accent-2); padding: .35rem .7rem; border: 1px dashed rgba(255,179,138,.45); border-radius: 999px; }
.chat-tool::before { content: ""; width: 10px; height: 10px; border: 2px solid var(--accent-2); border-top-color: transparent; border-radius: 50%; animation: s-spin 1s linear infinite; }
.chat .chat-tool { animation: bub-in 12s var(--ease-out) infinite both; }
.chat-approve { justify-self: end; display: inline-flex; gap: .5rem; align-items: center; font-size: .78rem; font-weight: 600; color: #111; background: var(--accent-2); padding: .35rem .75rem; border-radius: 999px; }
.chat .chat-approve { animation: bub-in 12s var(--ease-out) infinite both; }
.chat > :nth-child(6) { animation-delay: 6.2s; }
.phero + .section-sm, .ihero + .section-sm { padding-top: 0; }
.section-paper .faq { border-top-color: var(--ink-line); }
.section-paper .faq details { border-bottom-color: var(--ink-line); }
.section-paper .faq summary:hover { color: #000; }
.section-paper .faq summary::after { border-color: rgba(19,18,17,.3); }
.section-paper .faq details[open] summary::after { background-color: var(--accent); border-color: var(--accent); }
.section-paper .faq .faq-a p { color: var(--ink-muted); }
.section-paper .faq .faq-a a { color: var(--ink); text-decoration-color: var(--accent-ink); }
#rel-title { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.section-paper .ill-card:not(.ill) { background: #fff; border-color: var(--ink-line); box-shadow: 0 30px 60px -36px rgba(120,50,10,.35); }
.section-paper .ill-card:not(.ill) .ill-cap { color: var(--ink-muted); }
.section-paper .ill-card:not(.ill) .check-list li { color: var(--ink); }

/* v3: industry hero art sizing + conveyor */
.ihero-art svg { height: clamp(190px, 24vw, 300px); }
.conveyor { animation: conv 10s linear infinite; }
@keyframes conv { from { transform: translateX(-150px); } to { transform: translateX(0); } }
.ind-card svg .s-draw { transition-delay: .1s; }

/* v3: products */
.prod-hero { position: relative; overflow: hidden; isolation: isolate; }
.prod-hero .field-canvas { opacity: .7; }
.i-ext { width: .7em; height: .7em; margin-left: .3em; vertical-align: baseline; }
.notice { margin: 0; padding: 1.1rem 1.3rem 1.1rem 1.4rem; border-left: 3px solid var(--accent); background: rgba(255,90,31,.07); border-radius: 0 12px 12px 0; color: var(--muted); max-width: 60em; }
.pgrid-paper, .section-paper .pgrid { border-color: var(--ink-line); }
.section-paper .pgrid li { border-color: var(--ink-line); }
.section-paper .pgrid p { color: var(--ink-muted); }
.section-paper .fitcmp .no { color: var(--fg); }
.ls-a { opacity: 0; animation: ls-a 8s var(--ease-io) infinite; }
.ls-b { animation: ls-b 8s var(--ease-io) infinite; }
@keyframes ls-a { 0%, 38% { opacity: 1; } 48%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ls-b { 0%, 38% { opacity: 0; } 48%, 92% { opacity: 1; } 100% { opacity: 0; } }
.care-list { gap: .75rem; background: none; border-radius: 0; overflow: visible; }
.care-list li { background: rgba(255,255,255,.1); border: 1px solid rgba(17,17,17,.14); border-radius: 16px; }
.care-list a { color: #111; }

/* v3: search inputs, explore cards, hubs */
input[type="search"] { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--fg); background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: .8rem 1.1rem; min-height: 48px; -webkit-appearance: none; appearance: none; transition: border-color .15s ease, box-shadow .15s ease; }
input[type="search"]::-webkit-search-cancel-button { filter: grayscale(1); }
input[type="search"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,90,31,.3); }
.searchbox input[type="search"] { padding-left: 2.75rem; }
.section-paper input[type="search"] { background: #fff; color: var(--ink); border-color: var(--ink-line); }
.section-paper input[type="search"]:focus { border-color: var(--accent-ink); }
.gl-sec .searchbox { margin-bottom: 0; }
.explore a { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.3rem 1.3rem 1.4rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--ink-line); color: var(--ink); text-decoration: none; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.explore a:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(120,50,10,.35); }
.explore b { font-family: var(--serif); font-weight: 720; font-size: 1.5rem; }
.explore span { color: var(--ink-muted); font-size: .95rem; }
.ins-hero .field-canvas { opacity: .55; }
.ins-filter { margin-bottom: 2rem; }
.faq-empty { color: var(--muted); }
.page-hero .tagrow { margin-top: 2rem; }
.tagrow a { color: inherit; text-decoration: none; }
.tagrow a:hover { color: var(--accent-2); }

/* v3: services hub links */
.svc-more { margin-top: 1.5rem; }
.svc-links { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.svc-links a { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.25rem; border-radius: 14px; border: 1px solid var(--ink-line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; transition: border-color .2s, transform .3s var(--ease-out); }
.svc-links a:hover { border-color: var(--accent-ink); transform: translateY(-2px); }
.svc-links span { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
@media (max-width: 760px) { .svc-links { grid-template-columns: 1fr; } }

/* v3: article hero art (reuses insight card glyphs, scaled) */
.ahero-art { position: absolute; right: max(2rem, calc((100vw - 1280px) / 2)); top: 50%; width: 20rem; height: 7.5rem; margin-top: -3.75rem; z-index: -1; transform: scale(1.3); transform-origin: right center; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, #1b1b1b, #121212); animation: s-float-in 1.2s var(--ease-out) both .3s; }
.ahero-art i { position: absolute; display: block; }
.ahero-glyph i { border-color: rgba(255,90,31,.5); }
@keyframes s-float-in { from { opacity: 0; transform: scale(1.3) translateY(20px); } }
@media (max-width: 1180px) { .ahero-art { display: none; } }
@media (min-width: 1181px) { .ahero h1.display { max-width: min(14em, calc(100% - 26rem)); } .ahero .lead { max-width: min(42em, calc(100% - 26rem)); } }

/* v3: right-side hero art for hub pages */
.has-art .wrap { position: relative; }
.hero-art { position: absolute; right: 0; top: 50%; width: min(34vw, 440px); margin: 0; transform: translateY(-50%); pointer-events: none; }
.hero-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-art .s-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw-in 2.2s var(--ease-out) both .3s; }
@keyframes draw-in { from { stroke-dashoffset: 1; } }
.ring-fill { animation: ring-fill 2.4s var(--ease-out) both .6s; }
@keyframes ring-fill { from { stroke-dashoffset: 440; } }
@media (min-width: 1101px) { .has-art h1.display, .has-art .lead, .has-art .name-morph, .has-art .tagrow { max-width: calc(100% - min(34vw, 440px) - 3rem); } }
@media (max-width: 1100px) { .hero-art { display: none; } }
@media (max-width: 700px) { .az { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .az::-webkit-scrollbar { display: none; } .az a, .az span { flex: 0 0 auto; } }
@media (max-width: 1080px) { .nav { background: #0d0f12; isolation: isolate; z-index: 60; } }

/* v4: proof — track record, shipped work, founder, dated record */
.proof { overflow: hidden; isolation: isolate; }
.proof-stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.proof-stats li { display: flex; flex-direction: column; gap: .35rem; padding: 1.75rem 1.5rem 1.5rem 0; border-right: 1px solid var(--line); }
.proof-stats li + li { padding-left: 1.5rem; }
.proof-stats li:last-child { border-right: 0; }
.ps-n { font-family: var(--serif); font-weight: 720; font-size: clamp(3.2rem, 6.4vw, 5.6rem); line-height: .95; letter-spacing: -.02em; color: var(--fg); font-variant-numeric: tabular-nums; }
.proof-stats li:first-child .ps-n { color: var(--accent); }
.proof-stats b { font-size: 1rem; font-weight: 600; margin-top: .6rem; }
.proof-stats span:not(.ps-n) { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.proof-chart { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 1.5rem 1.5rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)); }
.proof-chart figcaption { display: flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pc-live { width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: pc-ping 2.4s ease-out infinite; }
@keyframes pc-ping { 0% { box-shadow: 0 0 0 0 var(--accent-glow); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255,90,31,0); } }
.pc-bars { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.5rem, 2vw, 1.5rem); align-items: end; height: 13rem; margin-top: 1.25rem; }
.pc-bars li { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; text-align: center; }
.pc-bars b { font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: .45rem; }
.pc-bars i { display: block; border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, var(--accent-hi), var(--accent) 55%, rgba(255,90,31,.55)); transform-origin: bottom; }
.pc-bars .m1 i { height: 58%; } .pc-bars .m2 i { height: 88%; } .pc-bars .m3 i { height: 64%; } .pc-bars .m4 i { height: 56%; } .pc-bars .m5 i { height: 83%; } .pc-bars .m6 i { height: 76%; }
.pc-bars span { margin-top: .6rem; font-size: .85rem; color: var(--muted); line-height: 1.2; }
.pc-bars small { display: block; font-size: .7rem; color: var(--faint); }
.js .proof-chart[data-inview] i { transform: scaleY(0); transition: transform 1.2s var(--ease-out); }
.js .proof-chart[data-inview] b { opacity: 0; transition: opacity .6s ease .9s; }
.js .proof-chart.is-in i { transform: none; }
.js .proof-chart.is-in b { opacity: 1; }
.js .proof-chart.is-in li:nth-child(2) i { transition-delay: .08s; } .js .proof-chart.is-in li:nth-child(3) i { transition-delay: .16s; } .js .proof-chart.is-in li:nth-child(4) i { transition-delay: .24s; } .js .proof-chart.is-in li:nth-child(5) i { transition-delay: .32s; } .js .proof-chart.is-in li:nth-child(6) i { transition-delay: .4s; }
.proof-note { margin: 1.25rem 0 0; max-width: 60em; font-size: .82rem; line-height: 1.55; color: var(--faint); }

.shipped { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ship { position: relative; display: flex; flex-direction: column; padding: 1.5rem 1.5rem 1.35rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); overflow: hidden; transition: border-color .3s ease, transform .45s var(--ease-out); }
.ship::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--accent), transparent); transform: scaleX(.18); transform-origin: left; transition: transform .6s var(--ease-out); }
.ship:hover { border-color: rgba(255,90,31,.45); }
.ship:hover::before { transform: scaleX(1); }
.ship-k { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ship-k span:first-child { color: var(--accent); }
.ship-k span:last-child { color: var(--muted); }
.ship h3 { font-family: var(--serif); font-weight: 720; font-size: 1.6rem; line-height: 1.1; margin-bottom: .75rem; }
.ship h3 a { text-decoration-color: var(--accent); }
.ship p { color: var(--muted); font-size: .96rem; }
.ship-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .5rem; }
.ship-tags li { font-size: .74rem; padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--fg); }
.shipped-more { margin: 2rem 0 0; }

.founder { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.founder-card { position: sticky; top: calc(var(--header-h) + 2rem); padding: 2rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--ink-line); box-shadow: 0 30px 60px -40px rgba(120,50,10,.45); }
.founder-mono { position: relative; width: 7.5rem; height: 7.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: var(--serif); font-weight: 620; font-size: 2.8rem; margin-bottom: 1.5rem; }
.founder-mono::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent; border-bottom-color: transparent; animation: fm-spin 9s linear infinite; }
@keyframes fm-spin { to { transform: rotate(360deg); } }
.founder-name { font-family: var(--serif); font-weight: 720; font-size: 2rem; line-height: 1; margin: 0 0 .4rem; }
.founder-role { color: var(--ink-muted); font-size: .95rem; margin: 0 0 1.5rem; }
.founder-li { display: inline-flex; align-items: center; gap: .55rem; }
.founder-li svg { width: 1rem; height: 1rem; }
.founder-body h2 { margin-bottom: 1.5rem; }
.founder-body .lead { color: var(--ink); }
.founder-body > p:not(.lead):not(.eyebrow) { color: var(--ink-muted); max-width: 40em; }
.creds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: 2.25rem 0 0; border-top: 1px solid var(--ink-line); }
.creds div { padding: 1.1rem 0; border-bottom: 1px solid var(--ink-line); }
.creds dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .3rem; }
.creds dd { margin: 0; color: var(--ink); font-size: .96rem; line-height: 1.45; }

.record { list-style: none; position: relative; margin-left: .5rem; }
.record::before { content: ""; position: absolute; left: 0; top: .6rem; bottom: .6rem; width: 2px; background: var(--ink-line); }
.record::after { content: ""; position: absolute; left: 0; top: .6rem; bottom: .6rem; width: 2px; background: linear-gradient(180deg, var(--accent-ink), var(--accent)); transform-origin: top; }
.js .record[data-inview]::after { transform: scaleY(0); transition: transform 2.4s var(--ease-out); }
.js .record.is-in::after { transform: none; }
.record::before, .record::after { -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent); mask-image: linear-gradient(180deg, #000 88%, transparent); }
.record li:last-child { padding-bottom: 3rem; }
.record li { position: relative; display: grid; grid-template-columns: minmax(8rem, 2fr) minmax(0, 8fr); gap: .5rem 2.5rem; padding: 0 0 2.25rem 2.25rem; }
.record li::before { content: ""; position: absolute; left: -6px; top: .45rem; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent-ink); z-index: 1; }
.record li.is-now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(255,90,31,.18); }
.rec-date { font-family: var(--serif); font-weight: 620; font-size: 1.5rem; line-height: 1.1; color: var(--accent-ink); margin: 0; }
.record h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.record p { color: var(--ink-muted); margin: 0 0 .4rem; max-width: 42em; }
.rec-src { font-size: .8rem; letter-spacing: .02em; color: var(--ink-muted); opacity: .85; }
.rec-src a { color: var(--ink); }

.brec { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.brec > li { padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-2); }
.brec-name { font-family: var(--serif); font-weight: 720; font-size: 1.6rem; line-height: 1.1; margin: 0 0 1rem; }
.brec dl { margin: 0; }
.brec dl div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.brec dt { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); padding-top: .15rem; }
.brec dd { margin: 0; color: var(--fg); font-size: .95rem; }
.brec-inline > li { border-radius: 0; border: 0; background: none; padding: 0; border-left: 2px solid var(--accent); padding-left: 1.25rem; }
.brec-big { font-family: var(--serif); font-weight: 720; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; margin: 0 0 .5rem; color: var(--fg); }
.brec-inline p:not(.brec-big) { color: var(--muted); margin: 0; font-size: .96rem; }

@media (max-width: 1000px) {
  .proof-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-stats li:nth-child(2) { border-right: 0; }
  .proof-stats li:nth-child(3) { padding-left: 0; }
  .proof-stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .shipped, .brec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder { grid-template-columns: 1fr; }
  .founder-card { position: static; display: grid; grid-template-columns: auto 1fr; gap: 0 1.5rem; align-items: center; }
  .founder-mono { grid-row: span 3; margin: 0; width: 6rem; height: 6rem; font-size: 2.2rem; }
  .founder-li { justify-self: start; }
}
@media (max-width: 640px) {
  .shipped, .brec, .creds { grid-template-columns: 1fr; }
  .record li { grid-template-columns: 1fr; padding-left: 1.75rem; }
  .pc-bars { height: 10rem; }
  .pc-bars small { display: none; }
  .founder-card { grid-template-columns: 1fr; }
  .founder-mono { grid-row: auto; margin-bottom: 1rem; }
}
@media (max-width: 460px) {
  .proof-stats { grid-template-columns: 1fr; }
  .proof-stats li, .proof-stats li + li { padding-left: 0; border-right: 0; }
  .proof-stats li + li { border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .pc-live, .founder-mono::after { animation: none; }
  .js .proof-chart[data-inview] i, .js .record[data-inview]::after { transform: none; transition: none; }
  .js .proof-chart[data-inview] b { opacity: 1; transition: none; }
}

/* v5: sites we've built (live, screenshot-backed) */
.sites-sec { overflow: hidden; isolation: isolate; }
.sites-glow { position: absolute; z-index: -1; right: -20rem; top: 6rem; width: 60rem; height: 40rem; background: radial-gradient(closest-side, rgba(255,90,31,.13), transparent 70%); pointer-events: none; }
.sites { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
.site-card { grid-column: span 2; position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 1.5rem); transition: border-color .3s ease, transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.site-card-lg { grid-column: span 3; }
.site-card::before { content: ""; position: absolute; z-index: 2; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--accent), transparent); transform: scaleX(.18); transform-origin: left; transition: transform .6s var(--ease-out); }
.site-card:hover, .site-card:focus-within { border-color: rgba(255,90,31,.45); box-shadow: 0 40px 80px -50px rgba(255,90,31,.45); }
.site-card:hover::before, .site-card:focus-within::before { transform: scaleX(1); }
.js .sites[data-stagger].is-in > .site-card:hover { transform: translateY(-4px); }
.site-card:target { border-color: var(--accent); }
.site-shot { display: block; margin: .75rem .75rem 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0a0a0a; text-decoration: none; }
.site-chrome { display: flex; align-items: center; gap: .35rem; padding: .55rem .75rem; background: #1d1d1d; border-bottom: 1px solid var(--line); font-size: .74rem; color: var(--muted); }
.site-chrome > i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3a; flex: none; }
.site-chrome > i:nth-child(1) { background: #ff5f57; } .site-chrome > i:nth-child(2) { background: #febc2e; } .site-chrome > i:nth-child(3) { background: #28c840; }
.site-url { flex: 1; min-width: 0; margin: 0 .5rem 0 .6rem; padding: .2rem .65rem; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-live { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .66rem; color: var(--ok); }
.site-live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(159,212,168,.5); animation: site-ping 2.2s ease-out infinite; vertical-align: middle; margin-right: .45rem; }
.site-live .site-live-dot { margin-right: 0; }
.eyebrow .site-live-dot { position: relative; top: -1px; }
@keyframes site-ping { 0% { box-shadow: 0 0 0 0 rgba(159,212,168,.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(159,212,168,0); } }
.site-view { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size; }
.site-view img { display: block; width: 100%; height: auto; transform: translate3d(0, 0, 0); transition: transform 7s cubic-bezier(.45, 0, .25, 1); will-change: transform; }
.site-card:hover .site-view img { transform: translate3d(0, calc(-100% + 62.5cqw), 0); transition-duration: 9s; }
.site-view::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.28)); pointer-events: none; transition: opacity .4s ease; }
.site-card:hover .site-view::after { opacity: 0; }
.site-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.4rem; }
.site-body h3 { font-family: var(--serif); font-weight: 720; font-size: clamp(1.7rem, 2.4vw, 2.1rem); line-height: 1.05; margin-bottom: .7rem; }
.site-body > p:not(.ship-k):not(.site-src):not(.site-also) { color: var(--muted); font-size: .96rem; margin: 0 0 .9rem; }
.site-also { color: var(--faint); font-size: .86rem; margin: -.3rem 0 .9rem; }
.site-body .ship-tags { margin-top: auto; padding-top: .25rem; }
.site-link { align-self: flex-start; display: inline-flex; align-items: center; margin-top: 1.1rem; font-weight: 600; color: var(--fg); text-decoration: none; padding-bottom: .2em; background: linear-gradient(var(--accent), var(--accent)) left 100% / 0% 2px no-repeat, linear-gradient(var(--line-strong), var(--line-strong)) left 100% / 100% 1px no-repeat; transition: background-size .45s var(--ease-out); }
.site-link:hover, .site-link:focus-visible { background-size: 100% 2px, 100% 1px; }
.site-link .i-ext { transition: transform .35s var(--ease-out); }
.site-link:hover .i-ext { transform: translate(2px, -2px); }
.site-src { margin: .9rem 0 0; font-size: .78rem; line-height: 1.5; color: var(--faint); }

.sites-teaser .st-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.st-title { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.st-row { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.st-row a { display: flex; flex-direction: column; gap: .75rem; text-decoration: none; color: var(--fg); }
.st-img { display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0a0a0a; transition: border-color .3s ease, transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.st-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease-out); }
.st-row a:hover .st-img, .st-row a:focus-visible .st-img { border-color: rgba(255,90,31,.55); transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 30px 60px -36px rgba(255,90,31,.55); }
.st-row a:hover .st-img img { transform: scale(1.04); }
.st-cap { display: flex; flex-direction: column; gap: .15rem; }
.st-cap b { font-family: var(--serif); font-weight: 720; font-size: 1.35rem; line-height: 1.1; }
.st-cap span { font-size: .8rem; color: var(--muted); }

@media (max-width: 1000px) {
  .sites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-card, .site-card-lg { grid-column: span 1; }
  .site-card-lg:first-child { grid-column: span 2; }
  .st-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sites { grid-template-columns: 1fr; }
  .site-card-lg:first-child { grid-column: auto; }
  .st-row { grid-auto-flow: column; grid-auto-columns: 72%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; scrollbar-width: thin; }
  .st-row li { scroll-snap-align: start; }
}
@media (hover: none) { .site-card:hover .site-view img { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .site-live-dot { animation: none; }
  .site-view img, .st-img, .st-img img { transition: none; }
  .site-card:hover .site-view img, .st-row a:hover .st-img img { transform: none; }
  .st-row a:hover .st-img { transform: none; }
}
.page-work .sites-sec { padding-top: clamp(1rem, 3vw, 2.5rem); }

/* ===== v4: builder-first homepage ===== */
.build-proof { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--bg) 0%, #1a0f0a 55%, var(--bg) 100%); }
.bp-products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.bp-products a { position: relative; display: flex; flex-direction: column; gap: .6rem; height: 100%; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius-lg); text-decoration: none; color: var(--fg); background: var(--bg-2); border: 1px solid rgba(255,122,69,.28); overflow: hidden; transition: transform .5s var(--ease-out), border-color .3s ease, box-shadow .4s ease; }
.bp-products a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,200,170,.22) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease-out); pointer-events: none; }
.bp-products a:hover { transform: translateY(-6px) rotate(-.4deg); border-color: var(--accent); box-shadow: 0 24px 60px -24px var(--accent-glow); }
.bp-products a:hover::after { transform: translateX(120%); }
.bp-products b { font-family: var(--serif); font-weight: 720; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1; }
.bp-products span { color: var(--muted); }
.bp-products .bp-k { color: var(--accent-2); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.bp-products .card-link { margin-top: auto; color: var(--fg); }
@media (max-width: 860px) { .bp-products { grid-template-columns: 1fr; } }

.bento-build .b-tools { grid-column: span 4; background: linear-gradient(150deg, #2a140b, var(--bg-2) 62%); }
.bento-build .b-auto { grid-column: span 2; grid-row: span 2; }
.bento-build .b-integ, .bento-build .b-run { grid-column: span 2; }
.bento-build .b-run { background: linear-gradient(160deg, #1b1222, var(--bg-2) 60%); }
.bento-build .b-auto .viz { margin: 1.5rem 0 2rem; flex: 1; display: grid; place-items: center; }
@media (max-width: 1000px) { .bento-build .b-tools, .bento-build .b-auto { grid-column: span 2; grid-row: auto; } .bento-build .b-integ, .bento-build .b-run { grid-column: span 1; } }
@media (max-width: 640px) { .bento-build .b-tools, .bento-build .b-auto, .bento-build .b-integ, .bento-build .b-run { grid-column: auto; } }

.viz-chat { display: flex; flex-direction: column; gap: .55rem; margin: 0 0 1.5rem; max-width: 30rem; }
.viz-chat .vc { margin: 0; padding: .6rem .9rem; border-radius: 14px; font-size: .92rem; max-width: 85%; opacity: 0; transform: translateY(10px); }
.viz-chat .vc-in { align-self: flex-start; background: var(--bg-3); color: var(--fg); border-bottom-left-radius: 4px; }
.viz-chat .vc-ai { align-self: flex-end; background: linear-gradient(120deg, var(--accent), var(--accent-hi)); color: #111; border-bottom-right-radius: 4px; position: relative; min-height: 2.3rem; }
.viz-chat .vc-ok { align-self: center; background: rgba(159,212,168,.14); color: var(--ok); font-size: .8rem; border: 1px solid rgba(159,212,168,.35); }
.vc-dots { display: inline-flex; gap: 4px; }
.vc-dots i { width: 6px; height: 6px; border-radius: 50%; background: #111; animation: vc-dot 1s ease-in-out infinite; }
.vc-dots i:nth-child(2) { animation-delay: .15s; } .vc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes vc-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.viz-chat .vc-txt { opacity: 0; }
.viz-chat .vc-ai .vc-dots { position: absolute; left: .9rem; top: 50%; margin-top: -3px; }
.is-in .viz-chat .vc, .viz-chat.is-in .vc { animation: vc-pop .6s var(--ease-out) forwards; }
.is-in .viz-chat .vc-in { animation-delay: .2s; }
.is-in .viz-chat .vc-ai { animation-delay: .9s; }
.is-in .viz-chat .vc-ai .vc-dots { animation: vc-hide .2s 2.2s forwards; }
.is-in .viz-chat .vc-ai .vc-txt { animation: vc-show .35s 2.2s forwards; }
.is-in .viz-chat .vc-ok { animation-delay: 2.8s; }
@keyframes vc-pop { to { opacity: 1; transform: none; } }
@keyframes vc-hide { to { opacity: 0; } }
@keyframes vc-show { to { opacity: 1; } }

.side-consult { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 4vw, 3rem); padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius-lg); border: 1px dashed rgba(255,179,138,.45); background: repeating-linear-gradient(135deg, rgba(255,90,31,.05) 0 12px, transparent 12px 24px); }
.sc-tag { display: inline-block; margin: 0 0 .75rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(255,179,138,.15); color: var(--accent-2); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.sc-title { font-family: var(--serif); font-weight: 720; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; margin: 0 0 .6rem; }
.sc-head p:last-child { color: var(--muted); margin: 0; }
.sc-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; align-content: center; }
.sc-links a { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; color: var(--fg); transition: border-color .25s ease, transform .4s var(--ease-out); }
.sc-links a:hover { border-color: var(--accent); transform: translateX(6px); }
.sc-links span { color: var(--muted); font-size: .9rem; text-align: right; }
@media (max-width: 860px) { .side-consult { grid-template-columns: 1fr; } .sc-links a { flex-direction: column; gap: .2rem; } .sc-links span { text-align: left; } }
.svc-side-h { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .bp-aurora i, .vc-dots i { animation: none; } .viz-chat .vc { opacity: 1; transform: none; } .viz-chat .vc-dots { display: none; } .viz-chat .vc-txt { opacity: 1; } }

/* ---------- v3 additions: search, legal, article tools, back to top, mobile booking bar, toast, print ---------- */
.header-search { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-right: -1rem; border-radius: 999px; color: var(--muted); }
.header-search svg { width: 19px; height: 19px; }
.header-search:hover { color: var(--fg); background: rgba(238,241,244,.06); }
@media (max-width: 1080px) { .header-search { margin: 0 -.5rem 0 auto; } .header-cta { margin-left: 0; } }

.footer-legal { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }

.search-form { display: flex; gap: .6rem; max-width: 40rem; margin-top: 1.75rem; }
.search-form input { flex: 1; min-width: 0; min-height: 52px; padding: .75rem 1rem; font: 500 1.05rem/1.3 var(--sans); color: var(--fg); background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.search-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.page-hero .search-form + p { margin-top: 1.5rem; }
.search-wrap > * { max-width: 52rem; }
.search-count, .search-empty { color: var(--muted); margin: 0 0 1.5rem; }
.search-empty a { color: var(--fg); }
.search-results { list-style: none; display: grid; gap: .75rem; }
.search-results a { display: grid; gap: .3rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: var(--bg-2); }
.search-results a:hover { border-color: var(--accent); }
.sr-kind { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.sr-title { font-size: 1.2rem; font-weight: 650; color: var(--fg); }
.sr-snip { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.sr-snip mark { background: rgba(255,90,31,.22); color: var(--fg); border-radius: 2px; padding: 0 .1em; }

.prose ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 1em; display: grid; gap: .45rem; color: var(--muted); }
.prose li::marker { color: var(--accent); }
.prose b { color: var(--fg); font-weight: 600; }
.page-legal .crumbs { margin-bottom: 1.5rem; }

.ameta a { color: var(--fg); font-weight: 600; text-decoration: none; }
.ameta a:hover { text-decoration: underline; }
.article .a-help { margin: 3.5rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.article .a-help-h { font-size: 1.35rem; margin: 0 0 1rem; }
.article .a-help-list, .article .a-chips { list-style: none; padding: 0; }
.article .a-help-list > li, .article .a-chips > li { padding-left: 0; }
.article .a-help-list > li::before, .article .a-chips > li::before { content: none; }
.a-help-list { display: grid; gap: .6rem; }
.a-help-list a { display: grid; gap: .2rem; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: var(--bg-2); }
.a-help-list a:hover { border-color: var(--accent); }
.a-help-list b { color: var(--fg); font-weight: 650; }
.a-help-list span { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.a-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem 2rem; margin-top: 2.5rem; }
.a-tool-h { margin: 0 0 .6rem; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.article .a-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.a-chips a, .a-chips button { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .95rem; border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--fg); font: 500 .92rem/1 var(--sans); text-decoration: none; cursor: pointer; }
.a-chips a:hover, .a-chips button:hover { border-color: var(--fg); }
.a-pref { grid-column: 1 / -1; margin: 0; font-size: .92rem; }
.a-pref a { color: var(--muted); }
.author-mono { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 12px; background: var(--accent); color: #111; font-weight: 750; letter-spacing: -.02em; }
.author-box .author-name { margin: 0 0 .35rem; color: var(--fg); font-size: 1rem; }
.author-name a { color: var(--fg); font-weight: 650; text-decoration: none; }
.author-name span { color: var(--faint); font-size: .88rem; margin-left: .35rem; }

.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line-strong); color: var(--fg); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.to-top svg { width: 13px; height: 15px; fill: currentColor; }
.to-top.is-on { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.to-top:hover { border-color: var(--fg); }

.m-cta { display: none; }
@media (max-width: 720px) {
  .m-cta { position: fixed; left: 1rem; right: 4.5rem; bottom: 1rem; z-index: 40; display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; border-radius: 999px; background: var(--accent); color: #111; font-weight: 650; text-decoration: none; transform: translateY(160%); transition: transform .25s var(--ease-out); }
  .m-cta .i-arrow { width: 11px; height: 13px; fill: currentColor; }
  .m-cta.is-on { transform: none; }
  .page-book .m-cta, .nav-open .m-cta { display: none; }
  .to-top { right: 1rem; bottom: 1rem; }
}

.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 60; transform: translate(-50%, 150%); padding: .7rem 1.1rem; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 600; font-size: .95rem; transition: transform .25s var(--ease-out); pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); }

@media print {
  :root { --bg: #fff; --bg-2: #fff; --fg: #000; --muted: #222; --faint: #444; --line: #ccc; --line-strong: #999; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .skip-link, .toc, .progress, .to-top, .m-cta, .toast, .cta-band, .a-tools, .a-help, .hero-bg, .ahero-art, .ahero-glyph, [data-copy], .header-search, nav.crumbs, .section-paper[aria-labelledby="more-title"] { display: none !important; }
  .article p, .article li, .prose p { color: #000; }
  .article a[href^="http"]::after, .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #444; word-break: break-all; }
  .agrid { display: block; }
  .display, h1, h2, h3 { color: #000; break-after: avoid; }
  section, .section { padding: 1rem 0 !important; }
  img, svg, figure { break-inside: avoid; }
}
