/* Public site — "Signal Line" (docs/FLAGSHIP_DIRECTIONS.md). Hand-written, token-based, no frameworks or web fonts.
   Brand colours/font come from config/brand.json via inline :root vars (--brand, --accent, --font-brand). */

:root {
  --brand: #0F766E;
  --accent: #F2A93B;
  --night: #0B1B2B;
  --night-2: #111623;
  --night-3: #182033;
  --night-line: rgba(255, 255, 255, .1);
  --on-dark: #ECEEF4;
  --on-dark-2: #A3AABD;
  --ink: var(--ink-brand, #0B1B2B);
  --ink-2: #2A3040;
  --muted: #5A6070;
  --line: #E3E1D9;
  --line-2: #D3D0C6;
  --paper: #F5F4EF;
  --white: #FFFFFF;
  --sans: var(--font-brand, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(10, 13, 20, .05), 0 12px 32px -12px rgba(10, 13, 20, .18);
  --shadow-lg: 0 2px 4px rgba(10, 13, 20, .06), 0 32px 64px -24px rgba(10, 13, 20, .35);
}

/* ---- base ---------------------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); background: var(--white);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.35rem + 3.6vw, 4.1rem); letter-spacing: -.045em; line-height: 1.02; font-weight: 750; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.1vw, 2.85rem); letter-spacing: -.038em; line-height: 1.06; }
h3, .h3 { font-size: 1.1875rem; letter-spacing: -.015em; font-weight: 650; }
.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
strong { color: var(--ink); font-weight: 650; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); }
.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: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--white); color: var(--ink); border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.mono-label { display: inline-block; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-family: var(--mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.dot-live::before { display: none; }

/* ---- buttons, badges, links ------------------------------------------------------------------------------------ */
.btn { --bg: var(--white); --fg: var(--ink); --bd: var(--line-2); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border: 1px solid var(--bd); border-radius: 999px; background: var(--bg); color: var(--fg);
  font: 600 .95rem/1 var(--sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, box-shadow .25s var(--ease), color .2s; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn .i-arrow { transition: transform .25s var(--ease); }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .875rem; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { --bg: var(--brand); --fg: #fff; --bd: transparent; box-shadow: 0 8px 24px -10px var(--brand), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-primary:hover { --bd: transparent; box-shadow: 0 14px 32px -10px var(--brand), inset 0 1px 0 rgba(255, 255, 255, .3); background: color-mix(in srgb, var(--brand) 92%, #000); }
.btn-quiet { --bg: transparent; }
.btn-quiet-dark { --bg: rgba(255, 255, 255, .04); --fg: var(--on-dark); --bd: rgba(255, 255, 255, .2); }
.btn-quiet-dark:hover { --bd: rgba(255, 255, 255, .55); --bg: rgba(255, 255, 255, .08); }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: none; }
.link-arrow .i-arrow { transition: transform .25s var(--ease); }
.link-arrow:hover .i-arrow { transform: translateX(4px); }
.link-arrow.on-dark { color: var(--on-dark); }
.link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.link-button:hover { color: #fff; text-decoration: underline; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; background: var(--white); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.badge-quote { border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--ink); }
.badge-quote::before { background: var(--accent); }
.badge-scoping::before { background: var(--brand); }
.badge-demo { margin-right: 8px; border-color: #E0A800; }
.badge-demo::before { background: #E0A800; }
.i-check { flex: none; color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .03); color: var(--on-dark); font-size: .875rem; font-weight: 550; text-decoration: none; white-space: nowrap;
  transition: border-color .2s, background-color .2s, transform .25s var(--ease); }
.chip:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .07); transform: translateY(-1px); }
.chip .glyph { color: var(--accent); }
.chip-light { border-color: var(--line); background: var(--white); color: var(--ink); }
.chip-light:hover { border-color: var(--ink); background: var(--white); }
.chip-light .glyph { color: var(--brand); }
.chip-count { font-family: var(--mono); font-size: .7rem; color: var(--muted); }

/* ---- header & navigation ---------------------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--night); color: var(--on-dark);
  border-bottom: 1px solid var(--night-line); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  transition: box-shadow .3s, background-color .3s; }
.site-header.is-scrolled { background: rgba(10, 13, 20, .86); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand-link { display: inline-flex; color: #fff; text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-text { font-weight: 750; letter-spacing: .06em; font-size: 1rem; }
.logo-mark circle[stroke] { stroke: var(--night); }
.site-nav { display: flex; align-items: center; flex: 1; gap: 20px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; flex: 1; }
.nav-list > li > a, .nav-list summary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; color: var(--on-dark-2);
  font-size: .925rem; font-weight: 550; text-decoration: none; cursor: pointer; list-style: none; transition: color .2s, background-color .2s; }
.nav-list summary::-webkit-details-marker { display: none; }
.nav-list summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
.nav-list details[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-list > li > a:hover, .nav-list summary:hover, .nav-list details[open] summary, .nav-list a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .07); }
.has-mega { position: relative; }
.mega { position: absolute; top: calc(100% + 14px); left: -12px; width: min(780px, 86vw); display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px;
  padding: 10px; border-radius: var(--r-lg); background: var(--white); color: var(--ink-2); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  animation: mega-in .28s var(--ease); }
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } }
.mega-col { padding: 14px; border-radius: var(--r); }
.mega-col .mono-label { margin: 0 0 10px 10px; }
.mega-focus { background: var(--paper); }
.mega ul { list-style: none; display: grid; gap: 2px; }
.mega a { display: block; padding: 10px; border-radius: 12px; color: var(--ink); text-decoration: none; transition: background-color .15s; }
.mega a:hover, .mega a[aria-current="page"] { background: rgba(10, 13, 20, .05); }
.mega-focus a strong { display: block; font-size: .95rem; }
.mega-focus a span { display: block; font-size: .82rem; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.mega-cats { grid-template-columns: 1fr 1fr; }
.mega-cats a { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 550; }
.mega-cats .glyph { color: var(--brand); flex: none; }
.mega-all { display: inline-flex !important; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; font-size: .9rem; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-actions .btn-quiet { --fg: var(--on-dark); --bd: rgba(255, 255, 255, .18); }
.nav-actions .btn-quiet:hover { --bd: rgba(255, 255, 255, .5); }
.lp-actions { margin-left: auto; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; background: transparent; color: #fff; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 1.5px; margin: auto; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; content: ""; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1079px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  /* The sheet hangs below the sticky header. It must not be `position: fixed` with insets: the header's
     backdrop-filter makes the header the containing block of fixed descendants, which collapsed the sheet to the
     header's own 68px box (the menu "opened" but was clipped to an empty strip). Absolute + explicit height is
     independent of that. */
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom)); background: var(--night); overflow-y: auto; overscroll-behavior: contain; }
  .nav-open .site-nav { display: flex; animation: sheet-in .3s var(--ease); }
  .nav-open body { overflow: hidden; }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } }
  .nav-list { flex-direction: column; align-items: stretch; flex: none; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--night-line); }
  .nav-list > li > a, .nav-list summary { display: flex; justify-content: space-between; padding: 16px 4px; border-radius: 0; font-size: 1.35rem; font-weight: 650;
    color: #fff; letter-spacing: -.02em; background: none !important; }
  .mega { position: static; width: auto; grid-template-columns: 1fr; padding: 0 0 16px; background: none; border: 0; box-shadow: none; animation: none; }
  .mega-col { padding: 0; background: none !important; }
  .mega-col .mono-label { margin: 8px 0; color: var(--on-dark-2); }
  .mega a { color: var(--on-dark); padding: 10px 0; }
  .mega a:hover { background: none; }
  .mega-focus a span { color: var(--on-dark-2); }
  .mega-cats a { padding: 10px 12px; border: 1px solid var(--night-line); border-radius: 12px; }
  .mega-cats .glyph { color: var(--accent); }
  .mega-all { color: #fff !important; }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: 24px; }
  .nav-actions .btn { min-height: 52px; font-size: 1rem; }
}

/* ---- dark surfaces & heroes --------------------------------------------------------------------------------------- */
.dark { position: relative; background: var(--night); color: var(--on-dark-2); isolation: isolate; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .lead { color: var(--on-dark-2); }
.dark .eyebrow { color: var(--accent); }
.dark .mono-label { color: var(--on-dark-2); }
.dark strong { color: #fff; }
.hero-grid-bg, .hero-home::before { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 20%, transparent 75%); }
.dark::after { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 85% 0%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%),
              radial-gradient(ellipse 40% 50% at 0% 100%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }

.hero-home { padding: clamp(40px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); overflow: hidden; }
.hero-home::before { content: ""; }
.hero-field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.hero-field.is-ready { opacity: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-home h1 { font-size: clamp(2.6rem, 1.2rem + 4.4vw, 4.75rem); letter-spacing: -.05em; line-height: .98; margin-bottom: 24px; }
.hero-home h1 em, .lp-hero h1 em { font-style: normal; background: linear-gradient(100deg, #fff 10%, color-mix(in srgb, var(--brand) 60%, #fff) 50%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy .lead { margin-bottom: 32px; }
.hero-assurances { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; list-style: none; color: var(--on-dark); font-size: .9rem; }
.hero-assurances li { display: inline-flex; align-items: center; gap: 8px; }
.dot-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.dot-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
.hero-art { position: relative; }
.hero-art-mobile { display: none; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(32px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--night-line); }

/* system diagram */
.sysdiag { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.sd-trace { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; }
.sd-spine { stroke: url(#sd-spine); stroke-width: 2; opacity: .55; }
.sd-pulse { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 94; stroke-dashoffset: 100; animation: sd-pulse 3.6s cubic-bezier(.45, 0, .25, 1) infinite; }
.sd-pulse-spine { stroke: #fff; animation-duration: 4.2s; }
@keyframes sd-pulse { to { stroke-dashoffset: 0; } }
.sd-chip rect { fill: rgba(255, 255, 255, .035); stroke: rgba(255, 255, 255, .16); }
.sd-chip circle { fill: var(--accent); }
.sd-chip text { fill: var(--on-dark); font-size: 15px; font-weight: 550; }
.sd-chip, .sd-stage { animation: sd-in .8s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
@keyframes sd-in { from { opacity: 0; transform: translateX(-10px); } }
.sd-stage rect { fill: var(--night-2); stroke: rgba(255, 255, 255, .16); }
.sd-num { fill: var(--on-dark-2); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.sd-label { fill: #fff; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.sd-stage-qa rect { fill: color-mix(in srgb, var(--accent) 10%, var(--night-2)); stroke: var(--accent); }
.sd-scan { fill: var(--accent); opacity: .22; animation: sd-scan 3s ease-in-out infinite alternate; }
@keyframes sd-scan { to { transform: translateX(204px); } }
.sd-tick { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1s 1.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sd-stage-deliver rect { fill: var(--brand); stroke: none; }
.sd-stage-deliver .sd-num { fill: rgba(255, 255, 255, .7); }
.sd-done { fill: var(--accent); stroke: rgba(255, 255, 255, .7); stroke-width: 2; }
.pipeline-m { display: block; width: 100%; height: auto; overflow: visible; }
.pm-node circle { fill: var(--night-2); stroke: rgba(255, 255, 255, .4); stroke-width: 1.5; }
.pm-qa circle { stroke: var(--accent); stroke-width: 2.5; }
.pm-deliver circle { fill: var(--brand); stroke: none; }
.pm-node text { fill: var(--on-dark-2); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

/* inner page hero */
.page-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.page-hero-compact { padding-bottom: clamp(32px, 4vw, 56px); }
.page-hero-inner { display: grid; gap: 40px; align-items: center; }
.page-hero-inner.has-art { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.page-hero .lead { margin-bottom: 28px; }
.page-hero .lead:last-child { margin-bottom: 0; }
.page-hero-art .art { width: 100%; max-width: 460px; margin-left: auto; display: block; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-bottom: 22px; font-size: .85rem; color: var(--on-dark-2); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .5; }
.breadcrumbs a { color: var(--on-dark-2); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs [aria-current] { color: var(--on-dark); }
.hero-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: -8px 0 28px; max-width: 62ch; }
.hero-offer .badge { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: #fff; }
.hero-offer .small { color: var(--on-dark-2); }
.utility-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); }
.done-mark { display: inline-block; color: var(--accent); margin-bottom: 18px; }
.done-mark circle, .done-mark path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1s var(--ease) forwards; }
.done-mark path { animation-delay: .35s; }

/* ---- sections ----------------------------------------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section-tight-top { padding-top: clamp(28px, 4vw, 48px); }
.section-paper { background: var(--paper); }
.section-head { margin-bottom: clamp(28px, 4vw, 52px); max-width: 760px; }
.section-head h2 { margin-bottom: 0; }
.split-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; max-width: none; }
.split-head .lead { margin: 0; }
.split-head > .btn, .split-head > .link-arrow { justify-self: end; }
.section-foot { margin: 32px 0 0; }
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.band h2 { margin-bottom: 10px; }
.band .lead { margin: 0; }

/* category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; list-style: none; }
.cat-tile { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 220px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--white); color: var(--ink-2); text-decoration: none; overflow: hidden;
  transition: transform .35s var(--ease), border-color .25s, box-shadow .35s var(--ease); }
.cat-tile::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.cat-tile:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.cat-tile:hover::after { transform: scaleX(1); }
.cat-tile-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; padding-bottom: 28px; }
.cat-glyph { display: inline-flex; color: var(--brand); }
.glyph [pathLength] { stroke-dasharray: 100; stroke-dashoffset: 0; }
.cat-tile:hover .glyph [pathLength] { animation: redraw .9s var(--ease); }
@keyframes redraw { from { stroke-dashoffset: 100; } }
.cat-tile-name { font-size: 1.125rem; font-weight: 650; color: var(--ink); letter-spacing: -.015em; margin-bottom: 6px; }
.cat-tile-blurb { font-size: .875rem; line-height: 1.45; color: var(--muted); }
.cat-tile-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cat-tile:hover .cat-tile-foot { color: var(--ink); }

/* problems */
.problem-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; }
.problem-card { display: flex; flex-direction: column; padding: 24px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.problem-card h3 { font-size: 1.125rem; }
.problem-card p { font-size: .925rem; color: var(--muted); }
.problem-card .link-arrow { margin-top: auto; font-size: .9rem; }
.problem-links { list-style: none; margin-top: auto; display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 10px; }
.problem-links a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; color: var(--ink); font-size: .9rem; font-weight: 550; text-decoration: none; }
.problem-links a:hover { color: var(--brand); }
.problem-links .i-arrow { opacity: .4; transition: transform .2s var(--ease), opacity .2s; }
.problem-links a:hover .i-arrow { opacity: 1; transform: translateX(3px); }

/* process (home, dark) */
.process-section { --p: 1; overflow: hidden; }
.process-track { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; list-style: none; padding-top: 44px; }
.process-line { position: absolute; top: 12px; left: 0; right: 0; height: 2px; background: var(--night-line); }
.process-line-fill { display: block; width: calc(var(--p) * 100%); height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .15s linear; }
.process-step { position: relative; }
.process-step::before { content: ""; position: absolute; top: -40px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--night); border: 2px solid rgba(255, 255, 255, .25); transition: border-color .4s, background-color .4s, box-shadow .4s; }
.process-step.is-on::before, .process-section:not(.is-tracking) .process-step::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); }
.process-step.is-gate::before { border-radius: 5px; }
.process-step h3 { font-size: 1.05rem; margin-top: 8px; }
.process-step p { font-size: .9rem; margin: 0; }
.process-num { color: var(--accent) !important; }

/* promise / capability ladder */
.promise { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.promise-copy .lead { margin-bottom: 24px; }
.promise-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.promise-card { padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); }
.promise-card-alt { background: var(--night); border-color: var(--night); color: var(--on-dark-2); }
.promise-card-alt .mono-label { color: var(--on-dark-2); }
.promise-card .mono-label { margin-bottom: 18px; }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; line-height: 1.45; }
.ticks .i-check { margin-top: 3px; }
.ticks.on-dark li { color: var(--on-dark); }
.ticks-grid { grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.ladder { list-style: none; display: grid; gap: 14px; }
.ladder li { display: grid; gap: 6px; font-size: .875rem; color: var(--on-dark); }
.ladder-bar { display: block; height: 6px; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--accent)); transform-origin: left; }
.reveal.is-pending .ladder-bar { transform: scaleX(.1); }
.promise-card-alt .small { margin: 18px 0 0; color: var(--on-dark-2); }

/* industries list (home) */
.industry-list { list-style: none; border-top: 1px solid var(--line-2); }
.industry-list a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 24px; align-items: center; padding: 20px 4px;
  border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; transition: padding .3s var(--ease), background-color .3s; }
.industry-list a:hover { padding-inline: 16px; background: var(--white); }
.industry-name { font-size: 1.15rem; font-weight: 650; letter-spacing: -.015em; }
.industry-needs { color: var(--muted); font-size: .925rem; }

/* honest work */
.work-honest { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 64px; align-items: end; padding: clamp(28px, 4vw, 48px);
  border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.work-honest .lead { margin: 0; }

/* CTA section with form */
.cta-section { overflow: hidden; }
.cta-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.cta-grid .lead { margin-bottom: 28px; }
.mini-steps { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; }
.mini-steps li { display: flex; align-items: center; gap: 14px; color: var(--on-dark); font-weight: 550; }
.mini-steps .mono-label { color: var(--accent); }
.form-panel { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: var(--white); color: var(--ink-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.form-panel-light { box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-panel .h3 { margin-bottom: 18px; }

/* ---- forms ---------------------------------------------------------------------------------------------------- */
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full, .form-submit { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.req { color: var(--brand); margin-left: 3px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--white); color: var(--ink);
  font: 400 1rem/1.4 var(--sans); transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
select { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235A6070' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
textarea { resize: vertical; min-height: 96px; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
input:user-invalid, textarea:user-invalid { border-color: #C4342D; }
::placeholder { color: #9A9FAB; }
.form-note { margin: 10px 0 0; font-size: .8rem; color: var(--muted); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 550; color: var(--ink); }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.alert { margin-bottom: 20px; padding: 14px 18px; border-radius: 12px; background: #FFF5E0; border: 1px solid #F1C66A; color: var(--ink); }

/* ---- directory (services index / category / focus) ----------------------------------------------------------------- */
.cat-nav-wrap { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.cat-nav { display: flex; gap: 8px; padding-block: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav .chip { scroll-snap-align: start; }
.filter-bar { display: grid; gap: 8px; max-width: 560px; margin-bottom: 40px; }
.filter-bar input { min-height: 54px; font-size: 1.05rem; border-radius: 999px; padding-inline: 22px; }
.dir-group { padding: 8px 0 48px; scroll-margin-top: calc(var(--header-h) + 72px); }
.dir-group[hidden] { display: none; }
.dir-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: start; margin-bottom: 18px; }
.dir-head h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem); margin-bottom: 4px; }
.dir-head p { margin: 0; color: var(--muted); }
.dir-head .cat-glyph { width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; background: color-mix(in srgb, var(--brand) 8%, var(--white)); }
.dir-head .link-arrow { padding-top: 8px; font-size: .9rem; }
.svc-list { list-style: none; border-top: 1px solid var(--line); }
.svc-row[hidden] { display: none; }
.svc-row a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 8px; border-bottom: 1px solid var(--line);
  color: var(--ink-2); text-decoration: none; transition: background-color .2s, padding .3s var(--ease); }
.svc-row a:hover { background: var(--paper); padding-inline: 16px; }
.section-paper .svc-row a:hover { background: var(--white); }
.svc-row-main { display: grid; gap: 2px; min-width: 0; }
.svc-row-name { font-weight: 650; color: var(--ink); font-size: 1.05rem; letter-spacing: -.01em; }
.svc-row-desc { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.svc-row-meta { display: inline-flex; align-items: center; gap: 14px; }
.svc-row-meta .i-arrow { color: var(--muted); transition: transform .25s var(--ease), color .2s; }
.svc-row a:hover .i-arrow { transform: translateX(4px); color: var(--ink); }
.cat-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cat-layout h2 { margin-bottom: 18px; }
.cat-guide { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; border-radius: var(--r-lg); background: var(--paper); display: grid; gap: 14px; }
.cat-guide .mono-label { margin-top: 8px; }
.factors { list-style: none; display: grid; gap: 8px; }
.factors li { position: relative; padding-left: 18px; font-size: .95rem; }
.factors li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--brand); }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; list-style: none; }
.principles li { padding: 26px; border-radius: var(--r); border: 1px solid var(--line); background: var(--white); }
.principles .mono-label { color: var(--brand); margin-bottom: 18px; }
.principles p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--white); color: var(--ink-2); text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; }
.card h3 { margin: 4px 0 0; }
.card p { font-size: .925rem; color: var(--muted); margin: 0; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; }
.card-foot .link-arrow { font-size: .875rem; }

/* ---- service page ------------------------------------------------------------------------------------------------- */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.svc-block { padding-bottom: clamp(40px, 5vw, 64px); margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.svc-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.svc-block h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: 24px; }
.price-explainer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.price-now { padding: 24px; border-radius: var(--r); background: var(--night); color: var(--on-dark-2); }
.price-now .mono-label { color: var(--accent); }
.price-now .small { margin: 0; }
.price-big { margin: 10px 0 12px; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; color: #fff; }
.fit-list { list-style: none; display: grid; gap: 10px; counter-reset: fit; }
.fit-list li { counter-increment: fit; display: flex; gap: 14px; align-items: baseline; padding: 16px 18px; border-radius: 12px; background: var(--paper); color: var(--ink); font-weight: 550; }
.fit-list li::before { content: counter(fit, decimal-leading-zero); font-family: var(--mono); font-size: .72rem; color: var(--brand); }
.mini-process { list-style: none; display: grid; gap: 0; }
.mini-process li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mini-process li:last-child { border-bottom: 0; }
.mini-process .mono-label { padding-top: 3px; color: var(--brand); }
.mini-process h3 { font-size: 1rem; margin-bottom: 2px; }
.mini-process p { margin: 0; font-size: .925rem; color: var(--muted); }
.mini-process li.is-gate h3::after { content: "gate"; margin-left: 8px; padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: #0B7D68; font-family: var(--mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; vertical-align: 2px; }
.svc-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.glance { padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); display: grid; gap: 12px; }
.glance .cat-glyph { margin-bottom: 4px; }
.facts { display: grid; gap: 0; margin: 0 0 8px; }
.facts > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); font-weight: 550; }
.aside-links { padding: 4px 6px; display: grid; gap: 8px; }
.aside-links ul { list-style: none; display: grid; gap: 4px; margin-bottom: 10px; }
.aside-links a { font-size: .925rem; color: var(--ink); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .3s var(--ease), background-color .2s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
details[open] > summary .faq-icon { background: var(--ink); }
details[open] > summary .faq-icon::before, details[open] > summary .faq-icon::after { background: #fff; }
details[open] > summary .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { padding: 0 48px 20px 0; color: var(--muted); }
.faq-a p { margin: 0; }

/* ---- industries --------------------------------------------------------------------------------------------------- */
.prob-grid, .ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.prob-item, .ind-item { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r); border: 1px solid var(--line); background: var(--white); scroll-margin-top: calc(var(--header-h) + 24px); }
.prob-item:target, .ind-item:target { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.prob-item p { color: var(--muted); font-size: .95rem; margin: 0; }
.ind-item .link-arrow { margin-top: auto; padding-top: 8px; font-size: .9rem; }
.needs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.needs li { padding: 5px 10px; border-radius: 8px; background: var(--paper); font-size: .85rem; color: var(--ink); }
.mini-svcs { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.mini-svcs a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 550; font-size: .925rem; }
.mini-svcs a:hover { color: var(--brand); }
.mini-svcs .badge { font-size: .62rem; }
.mini-svcs-lg a { padding: 18px 4px; }
.mini-svcs-lg strong { display: block; font-size: 1.05rem; }
.mini-svcs-lg small { display: block; color: var(--muted); font-weight: 400; font-size: .9rem; margin-top: 2px; }

/* ---- work / how / pricing / about / contact / book / request / legal -------------------------------------------------- */
.honest-panel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 5vw, 56px);
  border-radius: var(--r-lg); border: 1px dashed var(--line-2); background: var(--paper); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.work-card { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.work-outcome { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
[data-progress] { --p: 1; }
.timeline { position: relative; list-style: none; display: grid; gap: 0; max-width: 860px; }
.timeline-line { position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline-line .process-line-fill { width: 100%; height: calc(var(--p) * 100%); background: linear-gradient(180deg, var(--brand), var(--accent)); transition: height .15s linear; }
.timeline-step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 28px; padding: 0 0 44px; }
.timeline-num { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--line-2); color: var(--ink) !important; transition: border-color .4s, background-color .4s, color .4s; }
.timeline-step.is-on .timeline-num, [data-progress]:not(.is-tracking) .timeline-num { border-color: var(--brand); background: var(--brand); color: #fff !important; }
.timeline-step.is-gate .timeline-num { border-radius: 12px; }
.timeline-step h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); margin: 8px 0 6px; }
.timeline-step p { color: var(--muted); max-width: 56ch; margin: 0; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.detail-grid article { padding: 26px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.detail-grid p { margin: 0; color: var(--muted); font-size: .95rem; }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mode-card { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.mode-card h3 { font-size: 1.35rem; margin: 6px 0 0; }
.mode-card p { color: var(--muted); margin: 0; }
.mode-card .mono-label { margin-top: auto; padding-top: 8px; }
.price-group { margin-bottom: 10px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.price-group > summary { display: flex; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.price-group > summary::-webkit-details-marker { display: none; }
.price-group-name { flex: 1; font-weight: 650; font-size: 1.1rem; color: var(--ink); }
.price-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.price-table th, .price-table td { padding: 12px 22px; text-align: left; border-top: 1px solid var(--line); vertical-align: middle; }
.price-table thead th { font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.price-table .num { text-align: right; }
.price-table a { color: var(--ink); font-weight: 550; }
.price-table .total { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.about-grid .glance { position: sticky; top: calc(var(--header-h) + 24px); }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.9rem); margin: 1.6em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); }
.contact-grid, .book-grid, .request-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.request-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.request-grid aside { position: sticky; top: calc(var(--header-h) + 24px); }
.request-grid aside .mono-label { margin-bottom: 10px; }
.contact-ways { display: grid; gap: 12px; }
.way { position: relative; display: grid; gap: 4px; padding: 22px 56px 22px 24px; border-radius: var(--r); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; transition: border-color .2s, transform .3s var(--ease), box-shadow .3s; }
.way strong { font-size: 1.15rem; }
.way span:not(.mono-label) { color: var(--muted); font-size: .925rem; }
.way .i-arrow { position: absolute; right: 22px; top: 50%; translate: 0 -50%; transition: transform .25s var(--ease); }
.way:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.way:hover .i-arrow { transform: translateX(4px); }
.callout { margin-top: 24px; padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--paper); border-radius: 0 12px 12px 0; font-size: .95rem; }
.booking-form { display: block; }
.booking-form fieldset { margin: 0 0 28px; padding: 0; border: 0; min-width: 0; }
.booking-form legend { margin-bottom: 14px; padding: 0; }
.slot-day { margin-bottom: 14px; }
.slot-day .mono-label { margin-bottom: 8px; }
.slot-row { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.slot time { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: .9rem; color: var(--ink); transition: all .2s; }
.slot input:hover + time { border-color: var(--ink); }
.slot input:checked + time { background: var(--ink); border-color: var(--ink); color: #fff; }
.slot input:focus-visible + time { outline: 2px solid var(--brand); outline-offset: 2px; }
.book-details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.book-details legend { grid-column: 1 / -1; }
.cover { margin-top: 12px; padding: 24px; border-radius: var(--r); background: var(--paper); }
.cover .mono-label { margin-bottom: 14px; }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 10px; }
.legal-toc ol { list-style: none; display: grid; gap: 6px; margin-bottom: 12px; }
.legal-toc a { color: var(--muted); text-decoration: none; font-size: .925rem; }
.legal-toc a:hover { color: var(--ink); }
.ref, .status { font-family: var(--mono); font-size: .9em; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: #fff; }
.terms { white-space: pre-line; padding: 20px; border-radius: 12px; background: var(--paper); }
.accept-form { margin-top: 24px; }

/* landing pages */
.lp-hero { padding: clamp(40px, 6vw, 96px) 0; overflow: hidden; }
.lp-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.lp-copy .ticks { margin: 12px 0 32px; }
.lp-copy .mono-label { margin-top: 4px; }
.lp-art .art { width: 100%; max-width: 480px; display: block; margin-left: auto; }

/* procedural art */
.art { overflow: visible; }
.art-grid path { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.art-panel { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .22); stroke-width: 1.5; }
.art-panel-brand { fill: color-mix(in srgb, var(--brand) 55%, transparent); stroke: var(--brand); }
.art-line { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1.5; }
.art-dot { fill: rgba(255, 255, 255, .35); }
.art-fill-brand { fill: var(--brand); }
.art-fill-accent { fill: var(--accent); }
.art-fill-soft { fill: rgba(255, 255, 255, .16); }
.art-layer { animation: art-float 7s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.4s); }
@keyframes art-float { to { transform: translateY(-8px); } }
.art-edge { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1.2; }
.art-edge-live { stroke: var(--accent); stroke-width: 1.8; stroke-dasharray: 8 92; stroke-dashoffset: 100; animation: sd-pulse 3.4s linear infinite; }
.art-node { fill: var(--night-2); stroke: rgba(255, 255, 255, .5); stroke-width: 1.5; }
.art-node-out { fill: var(--brand); stroke: none; }
.art-arc, .art-curve { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 2.2s .3s var(--ease) forwards; }
.art-area { fill: color-mix(in srgb, var(--brand) 22%, transparent); }
.art-ring { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; }

/* ---- footer ------------------------------------------------------------------------------------------------------- */
.site-footer { background: var(--night); color: var(--on-dark-2); padding: clamp(56px, 7vw, 96px) 0 calc(28px + env(safe-area-inset-bottom)); font-size: .925rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--night-line); }
.footer-brand p { max-width: 44ch; margin-top: 18px; }
.footer-note { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #E0A800; }
.footer-contact { display: grid; gap: 4px; }
.footer-contact a, .site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-cta { justify-self: end; align-self: center; text-align: left; }
.footer-cta-title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; color: #fff; letter-spacing: -.03em; margin-bottom: 18px; }
.footer-cta .btn-primary { color: #fff; }
.footer-cta .btn-primary:hover { text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 48px 0; }
.footer-col h2 { margin-bottom: 14px; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col .link-button { color: var(--on-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: .85rem; }

/* ---- mobile sticky CTA ----------------------------------------------------------------------------------------------- */
.mobile-cta { display: none; }
@media (max-width: 759px) {
  .mobile-cta { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px;
    padding: 8px; border-radius: 20px; background: rgba(10, 13, 20, .92); border: 1px solid var(--night-line); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transform: translateY(140%); transition: transform .45s var(--ease); }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn { min-height: 48px; padding: 0 12px; }
  .nav-open .mobile-cta { display: none; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---- scroll reveal (applied by site.js only to content below the fold) ------------------------------------------------ */
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.reveal.is-pending { opacity: 0; transform: translateY(22px); }
.reveal .ladder-bar { transition: transform 1.1s var(--ease) .2s; }

/* ---- responsive --------------------------------------------------------------------------------------------------- */
@media (max-width: 1160px) {
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .process-track { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .process-line { display: none; }
  .process-step::before { top: -26px; }
  .process-track { padding-top: 26px; }
}
@media (max-width: 1000px) {
  .hero-grid, .page-hero-inner.has-art, .lp-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; }
  .page-hero-art, .lp-art { display: none; }
  .split-head, .promise, .cta-grid, .svc-layout, .cat-layout, .about-grid, .contact-grid, .book-grid, .request-grid, .honest-panel, .footer-top, .legal-grid { grid-template-columns: 1fr; }
  .split-head > .btn, .split-head > .link-arrow, .footer-cta { justify-self: start; }
  .svc-aside, .cat-guide, .about-grid .glance, .request-grid aside, .legal-toc { position: static; }
  .problem-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-aside { order: -1; }
  .svc-aside .glance { box-shadow: none; }
}
@media (max-width: 759px) {
  body { font-size: 1rem; }
  .hero-home { padding-top: 32px; }
  .hero-home h1 { font-size: clamp(2.5rem, 10.5vw, 3.4rem); letter-spacing: -.045em; }
  .hero-art-desktop { display: none; }
  .hero-art-mobile { display: block; margin: 4px -4px 0; }
  .hero-home .btn-row .btn { flex: 1 1 100%; }
  .hero-assurances { display: grid; gap: 10px; margin-top: 26px; }
  .hero-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; scroll-snap-type: x mandatory; }
  .hero-chips::-webkit-scrollbar { display: none; }
  .hero-chips .chip { scroll-snap-align: start; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-tile { min-height: 0; padding: 16px; }
  .cat-tile-top { padding-bottom: 18px; }
  .cat-tile-blurb { display: none; }
  .cat-tile-name { font-size: 1rem; }
  .problem-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scrollbar-width: none; }
  .problem-rail::-webkit-scrollbar { display: none; }
  .problem-card { flex: 0 0 84%; scroll-snap-align: center; }
  .process-track { grid-template-columns: 1fr; gap: 0; padding: 0 0 0 40px; }
  .process-line { display: block; top: 6px; bottom: 6px; left: 9px; right: auto; width: 2px; height: auto; }
  .process-line .process-line-fill { width: 100%; height: calc(var(--p) * 100%); }
  .process-step { padding-bottom: 28px; }
  .process-step::before { top: 2px; left: -40px; }
  .process-step h3 { margin-top: 2px; }
  .promise-cols, .ticks-grid, .price-explainer, .lead-form, .book-details { grid-template-columns: 1fr; }
  .industry-list a { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .industry-needs { grid-column: 1; font-size: .85rem; }
  .industry-list .i-arrow { grid-row: 1 / span 2; grid-column: 2; }
  .work-honest { grid-template-columns: 1fr; }
  .svc-row a { grid-template-columns: 1fr; gap: 10px; padding: 16px 0; }
  .svc-row a:hover { padding-inline: 0; background: none; }
  .svc-row-meta { justify-content: space-between; }
  .dir-head { grid-template-columns: auto minmax(0, 1fr); }
  .dir-head .link-arrow { grid-column: 2; padding-top: 0; }
  .facts > div { grid-template-columns: 88px minmax(0, 1fr); }
  .price-table th, .price-table td { padding: 12px 14px; }
  .price-group > summary { padding: 16px; }
  .timeline-step { gap: 18px; padding-bottom: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer-bottom { flex-direction: column; }
  .section-head { margin-bottom: 28px; }
  .faq-a { padding-right: 0; }
  .band .btn-row, .band .btn-row .btn { width: 100%; }
  .card-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scrollbar-width: none; }
  .card-grid > .card { flex: 0 0 82%; scroll-snap-align: center; }
}

/* ---- productised offer (web/offers.py) -------------------------------------------------------------------------------- */
.offer-scope { display: grid; gap: 28px; }
.offer-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.offer-head h2 { margin-bottom: 12px; }
.offer-head .lead { margin: 0; }
.offer-price { padding: 22px 24px; border-radius: var(--r); background: var(--night); color: var(--on-dark-2); }
.offer-price .mono-label { color: var(--accent); }
.offer-price .small { margin: 0; }
.scope-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.scope-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.scope-list .i-check { margin-top: 4px; color: var(--accent); }
.scope-list h3 { margin: 0 0 4px; font-size: 1.02rem; color: var(--ink); }
.scope-list p { margin: 0; font-size: .925rem; color: var(--muted); }
.scope-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.scope-out, .scope-rule { padding: 20px 22px; border-radius: var(--r); background: var(--paper); }
.scope-out .mono-label, .scope-rule .mono-label { margin-bottom: 10px; }
.scope-rule { border-left: 3px solid var(--brand); }
.scope-rule p:not(.mono-label) { color: var(--ink); }
.offer-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.offer-steps li { display: grid; gap: 4px; padding-top: 12px; border-top: 2px solid var(--ink); font-size: .9rem; color: var(--muted); }
.offer-steps strong { color: var(--ink); font-size: 1rem; }
.offer-cta { margin-top: 28px; }
.section-paper .scope-out, .section-paper .scope-rule { background: var(--white); }

/* ---- price modes (home) ----------------------------------------------------------------------------------------------- */
.price-modes { display: grid; gap: 18px; margin: 0 0 12px; }
.price-modes > div { display: grid; gap: 8px; }
.price-modes dt { margin: 0; }
.price-modes dd { margin: 0; color: var(--on-dark); font-size: .95rem; }

/* ---- work: concept projects (web/work.py) ------------------------------------------------------------------------------ */
.concept-label { margin: 0 0 4px; }
.concept-label .badge, .work-teaser .badge-demo { white-space: normal; text-align: left; }
.work-list { display: grid; gap: clamp(48px, 6vw, 88px); }
.work-item { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; scroll-margin-top: calc(var(--header-h) + 16px); }
.work-item:nth-child(even) .work-shots { order: 2; }
.work-shots { position: relative; padding-bottom: 48px; }
.work-shot { margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.work-shot img { display: block; width: 100%; height: auto; }
.work-shot-desktop { border-radius: var(--r); aspect-ratio: 1200 / 760; }
.work-shot-desktop img { object-fit: cover; object-position: top; height: 100%; }
.work-shot-mobile { position: absolute; right: 4%; bottom: 0; width: 24%; min-width: 96px; border-radius: 18px; aspect-ratio: 390 / 760; border: 3px solid var(--night); box-shadow: var(--shadow-lg); }
.work-shot-mobile img { object-fit: cover; object-position: top; height: 100%; }
.work-body h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 6px 0 8px; }
.concept-note { margin-bottom: 18px; }
.work-facts { display: grid; gap: 14px; margin: 0 0 20px; }
.work-facts dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.work-facts dd { margin: 0; color: var(--ink-2); font-size: .95rem; }
.work-journey { margin: 8px 0 22px; padding-left: 20px; display: grid; gap: 4px; font-size: .95rem; color: var(--ink-2); }
.work-teasers { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.work-teaser { display: grid; height: 100%; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); background: var(--white); transition: transform .3s var(--ease), box-shadow .3s; }
.work-teaser:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.work-teaser img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 720; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.work-teaser-body { display: grid; gap: 8px; justify-items: start; padding: 16px 18px 18px; }
.work-teaser-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; }

/* ---- booking ---------------------------------------------------------------------------------------------------------- */
.book-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.book-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.book-aside .ticks { margin-bottom: 4px; }
.tz-tag { margin-left: 6px; opacity: .7; }
.booked-at time { color: #fff; font-weight: 650; }

@media (max-width: 1000px) {
  .book-grid { grid-template-columns: 1fr; }
  .book-aside { position: static; order: -1; box-shadow: none; }
  .offer-head, .scope-foot, .work-item { grid-template-columns: 1fr; }
  .work-item:nth-child(even) .work-shots { order: 0; }
  .offer-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .scope-list, .work-teasers { grid-template-columns: 1fr; }
  .offer-steps { grid-template-columns: 1fr; }
  .work-shots { padding-bottom: 32px; }
  .work-shot-mobile { width: 30%; right: 3%; }
}

/* ---- motion preferences -------------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .sd-pulse, .art-edge-live, .sd-scan, .dot-live::after { display: none; }
  .reveal.is-pending { opacity: 1; transform: none; }
  .reveal.is-pending .ladder-bar { transform: none; }
}
@media print {
  .site-header, .mobile-cta, .site-footer, .hero-field { display: none !important; }
  .dark { background: #fff; color: #000; }
}

/* Amber stays on dark surfaces; meaningful glyphs and small labels on light use teal. */
.scope-list .i-check, .done-mark { color: var(--brand); }
.process-num { color: var(--brand) !important; }
.dark .process-num { color: var(--accent) !important; }
