/* Retrofit Labs — site styles (v2: signal orange accent + motion) */
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #0e0e0e;
  --bg-2: #161616;
  --bg-3: #1f1f1f;
  --fg: #f1efea;
  --muted: #b3b0a9;
  --faint: #8f8c86;
  --line: rgba(241, 239, 234, 0.12);
  --line-strong: rgba(241, 239, 234, 0.26);
  --paper: #f4f1ea;
  --paper-2: #ebe6dc;
  --ink: #131211;
  --ink-muted: #4d4a45;
  --ink-line: rgba(19, 18, 17, 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: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", "Inter", 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: 400; letter-spacing: -0.015em; line-height: 1.0; text-wrap: balance; }
.display em { font-style: italic; }
h1.display { font-size: clamp(3rem, 7.6vw, 6.6rem); }
h2.display { font-size: clamp(2.3rem, 4.8vw, 4rem); line-height: 1.03; }
.display-xl { font-size: clamp(2.6rem, 6.6vw, 5.6rem) !important; }
.hl { font-style: italic; color: var(--accent); }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hl { background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 45%, var(--accent) 70%, var(--accent-hi) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .06em .06em 0; margin-right: -.06em; animation: hl-shift 7s var(--ease-io) infinite alternate; }
  .is-split .hl { background: none; color: var(--accent); animation: none; padding: 0; margin: 0; }
  .is-split .hl .wi { background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 45%, var(--accent) 70%, var(--accent-hi) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; margin-right: -.06em; animation: hl-shift 7s var(--ease-io) infinite alternate; }
}
@keyframes hl-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.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); }
.pill { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.6rem; padding: .42rem .9rem .42rem .7rem; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255,255,255,.035); font-size: .86rem; font-weight: 500; color: var(--fg); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: dot-pulse 2.4s ease-out infinite; flex: none; }
@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); box-shadow: 0 0 0 0 var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.25); overflow: hidden; }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(120px circle at var(--bx, 50%) var(--by, 50%), rgba(255,255,255,.45), transparent 60%); opacity: 0; transition: opacity .25s ease; }
.btn-primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); box-shadow: 0 10px 34px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-primary:hover::before { opacity: 1; }
.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(241,239,234,.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; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.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: rgba(14,14,14,.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); 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: rgba(14,14,14,.86); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand img { width: 150px; height: auto; }
.nav { display: flex; gap: .35rem; margin-left: auto; }
.nav a { position: relative; color: var(--muted); text-decoration: none; font-size: .96rem; font-weight: 500; padding: .45rem .8rem; border-radius: 999px; transition: color .2s ease, background .2s ease; }
.nav a:hover { color: var(--fg); background: rgba(241,239,234,.06); }
.nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.nav-toggle { display: none; }
@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .brand img { width: 128px; }
  .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: flex; visibility: hidden; opacity: 0; transform: translateY(-8px); position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: .5rem var(--gutter) 1.25rem; background: rgba(14,14,14,.97); 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; }
  .nav a { font-size: 1.2rem; padding: .95rem 0; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--fg); }
  .nav a:hover { background: none; }
  .nav a[aria-current="page"]::after { left: auto; right: 0; top: 50%; bottom: auto; margin: -2px 0 0; }
}
@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-style: italic; 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; }
.mesh { position: absolute; inset: -20% -10% -10%; }
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.b1 { width: 62vmax; height: 62vmax; right: -18vmax; top: -26vmax; background: radial-gradient(closest-side, rgba(255,90,31,.55), rgba(255,90,31,.18) 45%, transparent 72%); animation: drift1 22s var(--ease-io) infinite alternate; }
.b2 { width: 46vmax; height: 46vmax; right: 14vmax; top: 6vmax; background: radial-gradient(closest-side, rgba(255,179,138,.30), rgba(255,179,138,.08) 50%, transparent 72%); animation: drift2 26s var(--ease-io) infinite alternate; }
.b3 { width: 54vmax; height: 54vmax; left: -22vmax; bottom: -30vmax; background: radial-gradient(closest-side, rgba(160,40,0,.45), rgba(160,40,0,.12) 50%, transparent 72%); animation: drift3 30s var(--ease-io) infinite alternate; }
@keyframes drift1 { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-8vmax, 6vmax, 0) scale(1.12); } 100% { transform: translate3d(-3vmax, 12vmax, 0) scale(.95); } }
@keyframes drift2 { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(10vmax, -4vmax, 0) scale(.9); } 100% { transform: translate3d(-6vmax, 5vmax, 0) scale(1.15); } }
@keyframes drift3 { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(14vmax, -8vmax, 0); } }
.mesh-soft .b1 { opacity: 1; } .mesh-soft .b2 { opacity: .8; }
.is-offscreen .blob, .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%); }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hero-glow { position: absolute; width: 640px; height: 640px; left: 0; top: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,122,69,.16), transparent 70%); transform: translate3d(var(--gx, 60vw), var(--gy, 10vh), 0) translate(-50%, -50%); opacity: 0; transition: opacity .6s ease; will-change: transform; }
.hero:hover .hero-glow { opacity: 1; }

/* ---------- 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: linear-gradient(180deg, rgba(30,30,30,.82), rgba(18,18,18,.82)); 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); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.flow-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(255,90,31,.7), transparent 35%, transparent 65%, rgba(255,179,138,.35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.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-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(14,14,14,.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-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: italic; 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-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(241,239,234,.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: italic; 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::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,90,31,.16), transparent 55%); opacity: 0; transition: opacity .35s ease; }
.bento-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255,122,69,.9), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.bento-card:hover { border-color: rgba(241,239,234,.2); transform: translateY(-4px); }
.bento-card:hover::before, .bento-card:hover::after { opacity: 1; }
.bento-card h3 { font-family: var(--serif); font-weight: 400; 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); }
.pc-num { font-size: clamp(4.5rem, 9vw, 7.5rem); line-height: .9; color: var(--accent-ink); font-style: italic; display: inline-block; }
.pc-num.is-swap { animation: pc-swap .55s var(--ease-out); }
@keyframes pc-swap { from { opacity: 0; transform: translateY(24px); filter: blur(4px); } to { opacity: 1; transform: none; filter: 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: 400; 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-style: italic; 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-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-style: italic; 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-orb { position: absolute; z-index: -1; left: 50%; top: 100%; width: min(1100px, 150vw); aspect-ratio: 1; transform: translate(-50%, -42%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255,90,31,.55), rgba(255,90,31,.2) 40%, rgba(255,90,31,.05) 62%, transparent 72%); animation: orb-breathe 9s var(--ease-io) infinite alternate; }
.cta-orb::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 1px solid rgba(255,179,138,.25); }
@keyframes orb-breathe { from { transform: translate(-50%, -42%) scale(1); } to { transform: translate(-50%, -48%) scale(1.08); } }
.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%); }
.page-hero-glow .b1 { top: -36vmax; right: -26vmax; }
.page-hero-glow .b2 { top: -10vmax; right: 6vmax; }

/* ---------- 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(14,14,14,.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-style: italic; 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-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-style: italic; 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-style: italic; 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-style: italic; font-size: 3rem; line-height: 1; color: var(--accent); }
.pricing-steps h3 { font-family: var(--serif); font-weight: 400; 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: 400; 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: 400; 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-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr; gap: 2.5rem; }
.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); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-base-inner { flex-direction: column; } }

/* ---------- Motion system ---------- */
/* Hero entrance: split words rise from a clipped line */
.js [data-split] { opacity: 0; }
.js [data-split].is-split { opacity: 1; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .12em; margin: 0 -.04em -.12em; }
[data-split] .wi { display: inline-block; transform: translate3d(0, 108%, 0) rotate(4deg); transform-origin: 0 100%; transition: transform 1.05s var(--ease-out); transition-delay: var(--d, 0s); }
[data-split].is-play .wi { transform: none; }
.js [data-hero-in] { opacity: 0; transform: translate3d(0, 18px, 0); filter: blur(6px); transition: opacity .9s ease, transform 1.1s var(--ease-out), filter .9s ease; transition-delay: var(--d, 0s); }
.js .is-play [data-hero-in], .js [data-hero-in].is-play { opacity: 1; transform: none; filter: none; }
/* Scroll reveals */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 32px, 0); transition: opacity .9s ease, transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .8s ease, transform 1s var(--ease-out), border-color .3s ease, box-shadow .5s var(--ease-out), background .3s ease; transition-delay: var(--d, 0s); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }
.js [data-stagger].is-in > .bento-card:hover, .js [data-stagger].is-in > li.ex-hover:hover { transform: translateY(-4px); }
.js .rv-fallback [data-reveal], .js.rv-fallback [data-reveal], .js.rv-fallback [data-stagger] > *, .js.rv-fallback [data-hero-in], .js.rv-fallback [data-split] { opacity: 1 !important; transform: none !important; filter: none !important; }

/* View transitions between pages (progressive enhancement) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease-out) both; }
::view-transition-group(site-header) { animation: none; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

@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); }
  .hero-glow { display: none; }
  .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: 400; 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: 400; 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-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::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255,90,31,.16), transparent 60%); opacity: 0; transition: opacity .35s ease; }
.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: 400; 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-style: italic; font-size: 1.6rem; color: var(--accent-ink); }
.join-grid h3 { font-family: var(--serif); font-weight: 400; 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: rgba(18,18,18,.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.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: 400; 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: #131211; 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-style: italic; font-weight: 400; font-size: 1.6rem; color: var(--accent-ink); margin-right: .25rem; }
.area h3 { font-family: var(--serif); font-weight: 400; 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-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: 400; 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-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; }
.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; }
}
