/* Shared look for every public page: tokens, type, masthead, footer and the
   section patterns. Values come from the accepted "Inside the work" design
   (design/ACCEPTED-DIRECTION.md). The interactive map's own rules live in
   case_study.css, loaded after this file on that page only.

   Color carries meaning, the same way on every page:
   amber = outside services, lavender = app capabilities, cyan = screens,
   coral = business outcomes. */

:root {
  color-scheme: dark;
  --site-gutter: 44px;
  --bg: #0d0d12;
  --panel: #16161d;
  --panel2: #1d1c26;
  --ink: #f1eee8;
  --muted: #aba8b1;
  --soft: #bcbcbd;
  --line: #2d2b38;
  --neon-cyan: #4df3ff;
  --neon-violet: #c084fc;
  --neon-amber: #ffb86b;
  --neon: var(--neon-cyan);
  --accent: #ecd8bf;
  --violet: #bda4ec;
  --gold: #e0bd81;
  --service: #dfbd83;
  --core: #bda4ec;
  --surface: #88c8d7;
  --outcome: #e4a593;
  /* Only the case study (case_study.css) still uses the serif. */
  --serif: 'Instrument Serif', Georgia, serif;
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 82% -5%, #c084fc1f, transparent 38%),
    radial-gradient(ellipse at 8% 8%, #4df3ff14, transparent 34%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Emphasis is the same family: light italic, warmer. One voice, two weights.
   (Was Instrument Serif italic; rejected 2026-09-19. Needs DM Sans 300 italic
   in the layout's font link.) */
em { font-style: italic; font-weight: 300; color: var(--accent); }

h1 { font-size: clamp(40px, 4.3vw, 67px); font-weight: 450; line-height: 1.04; letter-spacing: -.05em; margin: 0; }
h2 { font-size: 32px; line-height: 1.1; font-weight: 450; letter-spacing: -.035em; margin: 0; }
h3 { margin: 0; }

.masthead, main, .site-footer { width: calc(100% - 88px); max-width: 1660px; margin: auto; }

.skip { position: absolute; top: -80px; left: 20px; padding: 12px; background: var(--accent); color: #1a1a1a; z-index: 10; }
.skip:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Masthead */
.masthead { height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 30px; line-height: 1; letter-spacing: -1.5px; font-weight: 550; display: flex; gap: 12px; align-items: center; }
/* Optical alignment with the lettering, independent of symbol-font metrics. */
.wordmark-symbol { display: block; flex: none; width: .7em; height: .7em; fill: #dec8b1; transform: translateY(.025em); filter: drop-shadow(0 0 7px #ffb86b55); }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 13px; }
.site-nav a { padding: 10px 0; border-bottom: 1px solid transparent; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--neon-cyan); text-shadow: 0 0 14px #4df3ff80; }
.site-nav .nav-cta { color: var(--ink); border-bottom-color: #818182; }

/* Type helpers */
.eyebrow { font-size: 10px; letter-spacing: .13em; font-weight: 500; margin: 0 0 15px; color: var(--accent); text-shadow: 0 0 16px #ecd8bf40; }
.signal { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--neon-cyan); margin-right: 8px; box-shadow: 0 0 14px var(--neon-cyan); animation: signal-pulse 2.4s ease-in-out infinite; }
@keyframes signal-pulse { 50% { opacity: .45; } }
.fine { font-size: 11px; line-height: 1.7; color: #99999a; max-width: 720px; margin: 22px 0 0; }
.text-link { border-bottom: 1px solid #818182; padding-bottom: 2px; color: var(--ink); white-space: nowrap; }
.figure-label { display: block; font-size: 9px; letter-spacing: .13em; color: var(--muted); margin-bottom: 16px; }

/* Neon layer. One hue per practice; anything inside [data-hue] glows in it. */
[data-hue="amber"] { --neon: var(--neon-amber); }
[data-hue="cyan"] { --neon: var(--neon-cyan); }
[data-hue="violet"] { --neon: var(--neon-violet); }
[data-hue="coral"] { --neon: #ff9478; }
/* A tint and a soft halo, not a neon sign. */
em.glow { color: color-mix(in srgb, var(--neon) 22%, #fff); text-shadow: 0 0 28px color-mix(in srgb, var(--neon) 32%, transparent); }
.page-head[data-hue] .eyebrow, .page-head[data-hue] .signal { color: var(--neon); }
.page-head[data-hue] .signal { background: var(--neon); box-shadow: 0 0 14px var(--neon); }
.page-head[data-hue] { position: relative; }
.page-head[data-hue]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--neon), transparent 70%); box-shadow: 0 0 16px var(--neon); }
.masthead { position: relative; z-index: 3; }

/* Home: hero over the threads canvas (app/javascript/home/threads.js) */
main > section.neon-hero { position: relative; border-top: 0; padding: 0; min-height: min(78vh, 760px); display: grid; align-items: center; margin: 0 calc(-1 * var(--site-gutter)); overflow: hidden; }
.hero-threads { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 46%); mask-image: linear-gradient(90deg, transparent 0, #000 46%); }
.neon-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 60%, var(--bg) 99%); }
.neon-hero-copy { position: relative; z-index: 1; width: calc(100% - 88px); max-width: 1660px; margin: 0 auto; padding: 70px 0 150px; }
.neon-hero h1 { font-size: clamp(44px, 6vw, 92px); max-width: 1100px; }
.neon-lede { font-size: 18px; line-height: 1.6; color: var(--soft); max-width: 600px; margin: 26px 0 0; }
.neon-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button-neon, .button-ghost { display: inline-flex; align-items: center; gap: 12px; padding: 15px 22px; border-radius: 999px; font-size: 14px; font-weight: 550; transition: box-shadow .3s, transform .3s, background .3s; }
.button-neon { color: #07131a; background: linear-gradient(120deg, #7eeefa, #c4f7fb); box-shadow: 0 0 0 1px #4df3ff66, 0 8px 30px #4df3ff2e; }
.button-neon:hover { color: #07131a; transform: translateY(-2px); box-shadow: 0 0 0 1px #4df3ff, 0 10px 40px #4df3ff59; }
.button-ghost { color: var(--ink); border: 1px solid #ffffff2e; background: #ffffff0a; backdrop-filter: blur(6px); }
.button-ghost:hover { color: var(--ink); border-color: var(--neon-violet); box-shadow: 0 0 28px #c084fc55; }

/* Home: the practice portals */
main > section.portals { border-top: 0; margin-top: -90px; position: relative; z-index: 2; padding-top: 0; }
.portal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.portal { position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px 24px 26px; border-radius: 22px; background: linear-gradient(180deg, #1a1a24f2, #111118f2); border: 1px solid color-mix(in srgb, var(--neon) 35%, #2d2b38);
  box-shadow: 0 0 0 1px #00000066, 0 0 34px color-mix(in srgb, var(--neon) 14%, transparent), 0 30px 60px #00000080; transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s, border-color .5s; overflow: hidden; }
.portal::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--spin, 0deg), transparent 0 70%, var(--neon) 85%, transparent 100%); -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 .4s; animation: portal-spin 5s linear infinite; pointer-events: none; }
.portal:hover, .portal:focus-visible { color: inherit; transform: translateY(-8px); border-color: var(--neon); box-shadow: 0 0 0 1px var(--neon), 0 0 60px color-mix(in srgb, var(--neon) 45%, transparent), 0 40px 80px #000000a6; }
.portal:hover::before, .portal:focus-visible::before { opacity: 1; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes portal-spin { to { --spin: 360deg; } }
.portal-visual { height: 170px; border-radius: 14px; margin-bottom: 22px; display: grid; place-items: center; overflow: hidden; position: relative;
  background: radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--neon) 30%, transparent), transparent 70%), #0b0b11; border: 1px solid #ffffff12; }
.portal-kicker { font-size: 10px; letter-spacing: .14em; color: var(--neon); margin: 0 0 12px; text-shadow: 0 0 14px color-mix(in srgb, var(--neon) 70%, transparent); }
.portal h3 { font-size: 27px; line-height: 1.12; font-weight: 500; letter-spacing: -.03em; }
.portal-line { font-size: 14px; line-height: 1.65; color: var(--soft); margin: 12px 0 18px; }
.portal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.portal-tags span { font-size: 11px; padding: 6px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--neon) 35%, transparent); color: color-mix(in srgb, var(--neon) 70%, #fff); background: color-mix(in srgb, var(--neon) 7%, transparent); }
.portal-enter { margin-top: auto; font-size: 14px; font-weight: 550; color: var(--neon); display: inline-flex; gap: 8px; align-items: center; }
.portal:hover .portal-enter span { transform: translate(3px, -3px); }
.portal-enter span { transition: transform .3s; display: inline-block; }

/* Portal mini-visuals: pure CSS, decorative. */
.mini-journey { display: flex; gap: 9px; align-items: center; }
.mini-journey i { width: 38px; height: 78px; border-radius: 8px; background: linear-gradient(180deg, var(--c) 0 26%, #f3eadb 26%); box-shadow: 0 8px 20px #00000080; animation: mini-fit 6s ease-in-out infinite; animation-delay: calc(var(--k) * .12s); }
.mini-journey i:nth-child(1) { --c: #2f6fed; --r: -9deg; --y: 8px; --k: 0; } .mini-journey i:nth-child(2) { --c: #11a37f; --r: 6deg; --y: -10px; --k: 1; }
.mini-journey i:nth-child(3) { --c: #e5484d; --r: -4deg; --y: 12px; --k: 2; } .mini-journey i:nth-child(4) { --c: #8a4fff; --r: 8deg; --y: -6px; --k: 3; } .mini-journey i:nth-child(5) { --c: #0ea5b7; --r: -7deg; --y: 6px; --k: 4; }
@keyframes mini-fit { 0%, 30% { transform: rotate(var(--r)) translateY(var(--y)); filter: saturate(.7); } 45%, 88% { transform: none; filter: none; background: linear-gradient(180deg, var(--neon-amber) 0 26%, #fdf6ea 26%); box-shadow: 0 0 22px #ffb86b80; } 100% { transform: rotate(var(--r)) translateY(var(--y)); } }
.mini-systems { width: 88%; max-width: 330px; height: 150px; color: var(--neon-cyan); }
.systems-path { stroke: currentColor; stroke-width: 1.5; opacity: .5; }
.systems-node rect { fill: #152328; stroke: currentColor; stroke-opacity: .5; }
.systems-node path { stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.systems-core { filter: drop-shadow(0 0 9px #7bdfd577); }
.systems-core rect { stroke-opacity: 1; }
.systems-junction { fill: currentColor; }
.mini-pipe { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; width: 80%; position: relative; }
.pipe-col { display: grid; gap: 6px; } .pipe-col i { width: 46px; height: 9px; border-radius: 3px; background: #ffffff26; }
.pipe-col.out i { background: var(--neon-violet); box-shadow: 0 0 10px #c084fc99; animation: mini-land 2.4s ease-out infinite; animation-delay: calc(var(--k, 0) * .3s); }
.pipe-col.out i:nth-child(2) { --k: 1; } .pipe-col.out i:nth-child(3) { --k: 2; } .pipe-col.out i:nth-child(4) { --k: 3; }
@keyframes mini-land { 0%, 40% { opacity: .15; transform: scaleX(.4); } 60%, 100% { opacity: 1; transform: none; } }
.pipe-flow { position: relative; height: 2px; background: linear-gradient(90deg, #ffffff1f, var(--neon-violet)); }
.pipe-flow b { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px var(--neon-violet); animation: mini-flow 2.4s linear infinite; }
.pipe-flow b:nth-child(2) { animation-delay: -.8s; } .pipe-flow b:nth-child(3) { animation-delay: -1.6s; }
@keyframes mini-flow { from { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } to { left: 100%; opacity: 0; } }
.mini-pipe span { position: absolute; right: 0; bottom: -34px; font: 10px ui-monospace, Menlo, monospace; color: var(--neon-violet); text-shadow: 0 0 10px #c084fc; }

/* Home: how we work */
.how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.how-grid li { padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: #ffffff05; }
.how-grid span { font: 11px ui-monospace, Menlo, monospace; color: var(--neon-cyan); text-shadow: 0 0 10px #4df3ff99; }
.how-grid h3 { font-size: 19px; font-weight: 500; letter-spacing: -.02em; margin: 14px 0 8px; }
.how-grid p { font-size: 13.5px; line-height: 1.7; color: var(--muted); margin: 0; }

/* /data */
.pipe-stage { position: relative; display: grid; grid-template-columns: auto 1fr auto 1fr auto; gap: 18px; align-items: center; padding: 34px 30px 54px; margin-bottom: 34px; border-radius: 20px; background: #0b0b11; border: 1px solid color-mix(in srgb, var(--neon-violet) 30%, var(--line)); box-shadow: 0 0 50px #c084fc14 inset; }
.pipe-box { padding: 16px 20px; border-radius: 12px; border: 1px solid #ffffff24; font-size: 14px; font-weight: 500; background: #ffffff08; }
.pipe-box small { display: block; font: 10px ui-monospace, Menlo, monospace; color: var(--muted); margin-top: 5px; font-weight: 400; }
.pipe-box.mid { border-color: var(--neon-violet); box-shadow: 0 0 26px #c084fc4d; }
.pipe-line { position: relative; height: 2px; background: linear-gradient(90deg, #ffffff1f, var(--neon-violet)); }
.pipe-line b { position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px var(--neon-violet); animation: mini-flow 2.6s linear infinite; }
.pipe-line b:nth-child(2) { animation-delay: -.65s; } .pipe-line b:nth-child(3) { animation-delay: -1.3s; } .pipe-line b:nth-child(4) { animation-delay: -1.95s; }
.pipe-check { position: absolute; right: 30px; bottom: 18px; font: 11px ui-monospace, Menlo, monospace; color: var(--neon-violet); text-shadow: 0 0 12px #c084fc; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.step-text { font-size: 15px !important; line-height: 1.65 !important; color: var(--soft) !important; margin: 0 !important; }

/* Hero and page heads */
.hero, .page-head { padding: 64px 0 56px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 55px; align-items: center; }
.page-head { padding: 52px 0 44px; align-items: end; }
.hero-copy { max-width: 430px; justify-self: end; }
.hero-copy p { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 14px 0 0; }
.hero-copy p:first-child { color: var(--ink); font-size: 17px; line-height: 1.5; margin-top: 0; }

.button-primary { margin-top: 23px; display: flex; align-items: center; gap: 14px; background: #eddbc5; color: #242027; border: 1px solid #f5e7d5; padding: 15px 19px; text-align: left; width: 100%; box-shadow: 0 6px 32px #dfb68c0d; }
.button-primary:hover { background: #fff0dc; color: #242027; }
.button-primary > span:last-child { margin-left: auto; font-size: 20px; }
.button-primary strong { font-size: 14px; display: block; font-weight: 550; }
.button-primary small { display: block; font-size: 10px; color: #66594f; margin-top: 5px; }
.button-primary .play { width: 34px; height: 34px; border: 1px solid #776858; border-radius: 50%; display: grid; place-items: center; font-size: 12px; padding-left: 2px; flex-shrink: 0; }

/* Section scaffolding */
main > section { border-top: 1px solid var(--line); padding: 60px 0; }
main > section.hero, main > section.page-head { border-top: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 32px; }
.section-heading > p { font-size: 13px; line-height: 1.7; max-width: 460px; color: var(--muted); margin: 0; }

/* Home: drawer of subscriptions -> one connected system */
.shift-figure { display: grid; grid-template-columns: 1fr auto 1.35fr; gap: 28px; align-items: stretch; }
.drawer, .connected { border: 1px solid var(--line); background: var(--panel); padding: 24px; }
.drawer { display: flex; flex-direction: column; }
.drawer-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: auto 0; }
.drawer-chips span { font-size: 12px; padding: 9px 12px; border: 1px dashed #56535c; color: var(--muted); }
.drawer-chips span:nth-child(3n) { transform: rotate(-1.5deg); }
.drawer-chips span:nth-child(4n+1) { transform: rotate(1.2deg) translateY(2px); }
.shift-arrow { align-self: center; font-size: 26px; color: var(--accent); }
.layers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.layers > div { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--tone); padding-top: 12px; }
.layers small { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--tone); min-height: 24px; }
.layers span { font-size: 11px; line-height: 1.35; padding: 8px 9px; border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent); background: color-mix(in srgb, var(--tone) 7%, transparent); }
[data-layer="service"], [data-tone="service"] { --tone: var(--service); }
[data-layer="core"], [data-tone="core"] { --tone: var(--core); }
[data-layer="surface"], [data-tone="surface"] { --tone: var(--surface); }
[data-layer="outcome"], [data-tone="outcome"] { --tone: var(--outcome); }

/* Numbered card grid: responsibilities, workflow summary */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card-grid li { background: var(--bg); }
.card-grid li > a, .card-grid li > div { display: block; height: 100%; padding: 26px 24px 28px; }
.card-grid li > a:hover { background: var(--panel); color: inherit; }
.card-grid span { font-size: 10px; letter-spacing: .13em; color: var(--gold); }
.card-grid h3 { font-size: 19px; line-height: 1.25; font-weight: 500; letter-spacing: -.02em; margin: 14px 0 10px; }
.card-grid p { font-size: 13px; line-height: 1.7; color: var(--soft); margin: 0; }

/* Method: heading left, numbered steps right */
.method { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.method h2 { font-size: 48px; line-height: 1.08; }
.method > div > p:not(.eyebrow) { font-size: 14px; line-height: 1.75; color: var(--soft); margin: 18px 0 20px; max-width: 440px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps span { font: 12px/1.9 ui-monospace, Menlo, monospace; color: var(--gold); }
.steps h3 { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.steps p { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 6px 0 0; }

/* Home: the stage (home/_journey.html.erb, app/javascript/home/stage.js).
   Each .touch carries its own cobbled look in custom properties (--tint,
   --paper, --radius, --font, --tilt, --lift). [data-state="fitted"] ignores
   them all in favour of one brand, which is the whole point. */
main > section.stage { border-top: 0; padding: 0 0 56px; }
.stage-bar { display: flex; align-items: center; gap: 26px; margin-bottom: 12px; }
.stage-toggle { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); flex-shrink: 0; }
.stage-toggle button { font: inherit; font-size: 12px; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: background .25s, color .25s; }
.stage-toggle button[aria-pressed="true"] { background: #eddbc5; color: #242027; }
.stage-toggle button:focus-visible, .brand-swatches button:focus-visible, .journey-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stage-bar p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--soft); }

.journey { border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(ellipse at 50% 40%, #2a2530 0, transparent 65%), var(--panel); overflow: hidden; }
.journey-track { list-style: none; margin: 0; padding: 48px 30px 26px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.touch { flex: 1 0 158px; min-width: 0; scroll-snap-align: center; }

.touch-card { --ease: cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; height: 268px; overflow: hidden; color: #26232b; border: 1px solid #0000001f; box-shadow: 0 14px 34px #0000004d;
  transition: transform .9s var(--ease), border-radius .9s var(--ease), background .7s, box-shadow .7s, color .7s; transition-delay: calc(var(--i, 0) * 60ms); }
.touch:nth-child(1) { --i: 0; } .touch:nth-child(2) { --i: 1; } .touch:nth-child(3) { --i: 2; } .touch:nth-child(4) { --i: 3; }
.touch:nth-child(5) { --i: 4; } .touch:nth-child(6) { --i: 5; } .touch:nth-child(7) { --i: 6; }

/* Both labels occupy one grid cell and crossfade. */
.swap { display: grid; }
.swap > span { grid-area: 1 / 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .5s; transition-delay: calc(var(--i, 0) * 60ms); }
.touch-url { font: 9px/1 ui-monospace, Menlo, monospace; padding: 8px 10px; background: #00000012; color: #00000099; }
.touch-head { padding: 11px 12px; font-size: 12px; font-weight: 600; color: #fff; background: var(--accent-color); transition: background .7s; transition-delay: calc(var(--i, 0) * 60ms); }
.touch-head span { display: flex; align-items: center; gap: 7px; }
.vendor-mark { width: 12px; height: 12px; border: 2px solid #ffffffcc; border-radius: 50%; flex-shrink: 0; }
.brand-mark { width: 18px; height: 18px; border-radius: 6px; background: #ffffff; color: var(--brand); display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.touch-body { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 9px; font-size: 11px; }
.touch-foot { padding: 9px 12px; font-size: 9px; border-top: 1px solid #00000014; color: #00000080; }

/* Mini interface pieces */
.ui-hero, .ui-photo { height: 58px; border-radius: inherit; background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color) 55%, #fff), color-mix(in srgb, var(--accent-color) 18%, #fff)); }
.ui-line { height: 6px; border-radius: 3px; background: currentColor; opacity: .16; }
.w90 { width: 90%; } .w80 { width: 80%; } .w70 { width: 70%; } .w55 { width: 55%; }
.ui-label { font-size: 10px; opacity: .6; }
.ui-button { margin-top: auto; text-align: center; font-size: 11px; font-weight: 600; padding: 9px; color: #fff; background: var(--accent-color); border-radius: var(--control-radius); transition: background .7s, border-radius .7s; }
.ui-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.ui-slots i { height: 22px; border: 1px solid currentColor; opacity: .25; border-radius: var(--control-radius); }
.ui-slots i.on { opacity: 1; background: var(--accent-color); border-color: var(--accent-color); }
.ui-bubble { align-self: flex-start; max-width: 92%; padding: 8px 10px; border-radius: 12px 12px 12px 3px; background: #00000012; font-size: 10.5px; line-height: 1.45; }
.ui-bubble.me { align-self: flex-end; border-radius: 12px 12px 3px 12px; color: #fff; background: var(--accent-color); }
.ui-amount { font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.ui-stars { font-size: 20px; letter-spacing: 2px; color: var(--accent-color); }
.ui-row { padding: 9px 0; border-bottom: 1px solid #00000014; display: flex; justify-content: space-between; }
.ui-row::after { content: "›"; opacity: .4; }

.touch-step { width: 100%; border: 0; background: none; text-align: left; padding-left: 0; padding-right: 0; padding-bottom: 5px; font-family: inherit; cursor: pointer; margin: 16px 0 0; font-size: 11px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; position: relative; padding-top: 14px; }
.touch-step span { font-size: 9px; letter-spacing: .12em; color: var(--gold); }
.touch-step::before { content: ""; position: absolute; top: 0; left: 0; right: -16px; border-top: 2px dashed #56535c; transition: border-color .7s; transition-delay: calc(var(--i, 0) * 60ms); }
.touch:last-child .touch-step::before { right: 0; }
.touch-step::after { content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #56535c; transition: background .7s; transition-delay: calc(var(--i, 0) * 60ms); }

/* Seven apps: every card is someone else's product. */
[data-state="cobbled"] .touch-card { --accent-color: var(--tint); --control-radius: var(--radius); font-family: var(--font); background: var(--paper); border-radius: var(--radius); transform: rotate(var(--tilt)) translateY(var(--lift)); }
[data-state="cobbled"] .touch[data-kind="text"] .touch-card { color: #e9e9ee; }
[data-state="cobbled"] .touch[data-kind="text"] .touch-url, [data-state="cobbled"] .touch[data-kind="text"] .touch-foot { color: #ffffff99; background: #ffffff14; }
[data-state="cobbled"] .touch[data-kind="text"] .ui-bubble:not(.me) { background: #ffffff1f; }
[data-state="cobbled"] .swap .fit, [data-state="fitted"] .swap .off { opacity: 0; }

/* One experience: the same seven steps, in the business's own brand, and
   alive. stage.js gives each step a turn as .is-active (its moment plays
   below) and leaves the ones before it .is-done. The cobbled state gets none
   of this on purpose. */
.journey { position: relative; }
.journey::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s;
  background: radial-gradient(ellipse 60% 70% at 50% 62%, color-mix(in srgb, var(--brand) 38%, transparent), transparent 72%); }
[data-state="fitted"] .journey::before { opacity: 1; animation: stage-breathe 7s ease-in-out infinite; }
.journey-track { position: relative; }

[data-state="fitted"] .touch-card { --accent-color: var(--brand); --control-radius: 999px; position: relative; font-family: inherit; border-radius: 20px; border-color: #ffffff66;
  background: linear-gradient(180deg, #fdf9f2, #f3eadb);
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--rise, 0px)) scale(var(--grow, 1));
  box-shadow: 0 1px 0 #ffffffcc inset, 0 18px 40px color-mix(in srgb, var(--brand) 26%, #00000059); }
[data-state="fitted"] .touch-card.is-tilting { transition: transform .12s linear, box-shadow .3s; transition-delay: 0s; --rise: -12px; --grow: 1.04; }
[data-state="fitted"] .is-active .touch-card { --rise: -14px; --grow: 1.045; transition: transform .7s cubic-bezier(.3, 1.5, .5, 1), box-shadow .5s; transition-delay: 0s;
  box-shadow: 0 1px 0 #ffffffcc inset, 0 0 0 1.5px color-mix(in srgb, var(--brand) 70%, #fff), 0 26px 60px color-mix(in srgb, var(--brand) 55%, #00000040); }
/* Glare that follows the cursor. */
.touch-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), #ffffffb3, transparent 45%); mix-blend-mode: soft-light; }
[data-state="fitted"] .touch-card.is-tilting::after { opacity: 1; }

[data-state="fitted"] .touch-url { background: transparent; color: #0000008c; border-bottom: 1px solid #0000000f; }
[data-state="fitted"] .touch-head { background: linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--brand) 72%, #fff) 140%); background-size: 200% 100%; }
[data-state="fitted"] .is-active .touch-head { animation: stage-sheen 1.6s ease-out; }
[data-state="fitted"] .touch-foot { color: color-mix(in srgb, var(--brand) 80%, #000); border-top-color: #0000000f; }
[data-state="fitted"] .ui-button { box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 45%, transparent); }

/* The thread: fills as the journey passes, with a comet on the active step. */
[data-state="fitted"] .touch-step::before { border-top-style: solid; border-color: color-mix(in srgb, var(--brand) 35%, #56535c); }
[data-state="fitted"] .touch-step::after { background: color-mix(in srgb, var(--brand) 45%, #56535c); }
[data-state="fitted"] .is-done .touch-step::before, [data-state="fitted"] .is-active .touch-step::before { border-color: var(--brand); }
[data-state="fitted"] .is-done .touch-step::after { background: var(--brand); }
[data-state="fitted"] .is-active .touch-step { color: var(--ink); }
[data-state="fitted"] .is-active .touch-step::after { background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 55%, transparent), 0 0 18px 4px var(--brand); animation: stage-ping 1.9s ease-out; }

/* 01 Finds you: a living hero image, and the button gets tapped. */
[data-state="fitted"] .ui-hero, [data-state="fitted"] .ui-photo { border-radius: 12px; background-size: 220% 220%; animation: stage-pan 9s ease-in-out infinite alternate;
  background-image: radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--brand) 75%, #fff), transparent 55%), radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--brand) 40%, #ffd9a8), transparent 60%), linear-gradient(135deg, color-mix(in srgb, var(--brand) 25%, #fff), #fff); }
.ui-tap { position: relative; overflow: hidden; }
.ui-tap::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #ffffffd9; transform: scale(0); opacity: 0; }
[data-state="fitted"] .is-active .ui-tap::before { animation: stage-ripple .9s ease-out .45s; }

/* 02 Books, 05 Pays: the label resolves. */
.ui-done { display: grid; }
.ui-done > span { grid-area: 1 / 1; transition: opacity .3s, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.ui-done > span:last-child { opacity: 0; transform: translateY(8px) scale(.9); }
[data-state="fitted"] .is-active .ui-done > span { transition-delay: .8s; }
[data-state="fitted"] :is(.is-active, .is-done) .ui-done > span:first-child { opacity: 0; transform: translateY(-8px); }
[data-state="fitted"] :is(.is-active, .is-done) .ui-done > span:last-child { opacity: 1; transform: none; }
[data-state="fitted"] .ui-slots i { opacity: .3; transition: opacity .3s, background .3s, transform .45s cubic-bezier(.3, 1.8, .5, 1); }
[data-state="fitted"] .ui-slots i.on { background: transparent; border-color: currentColor; }
[data-state="fitted"] .is-active .ui-slots i.on { transition-delay: .35s; }
[data-state="fitted"] :is(.is-active, .is-done) .ui-slots i.on { opacity: 1; background: var(--brand); border-color: var(--brand); transform: scale(1.08); }

/* 03 Reminder: the reply pops in. */
[data-state="fitted"] .ui-bubble { background: color-mix(in srgb, var(--brand) 9%, #fff); box-shadow: 0 2px 6px #0000000f; }
[data-state="fitted"] .ui-bubble.me { background: var(--brand); transform-origin: 100% 100%; transform: scale(0); opacity: 0; transition: transform .5s cubic-bezier(.3, 1.7, .5, 1), opacity .2s; }
[data-state="fitted"] .is-active .ui-bubble.me { transition-delay: .7s; }
[data-state="fitted"] :is(.is-active, .is-done) .ui-bubble.me { transform: none; opacity: 1; }

/* 04 Report: a sweep of light across the photo, lines draw in. */
.ui-photo { position: relative; overflow: hidden; }
[data-state="fitted"] .is-active .ui-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, #ffffffcc 50%, transparent 65%); animation: stage-sweep 1.1s ease-out .3s both; }
[data-state="fitted"] .touch[data-kind="report"] .ui-line { transform-origin: 0 50%; transform: scaleX(.15); transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
[data-state="fitted"] .touch[data-kind="report"].is-active .ui-line { transition-delay: .6s; }
[data-state="fitted"] .touch[data-kind="report"]:is(.is-active, .is-done) .ui-line { transform: none; }

/* 06 Review: stars fill one by one. */
.ui-stars i { font-style: normal; display: inline-block; }
[data-state="fitted"] .ui-stars i { color: #00000026; transition: color .2s, transform .45s cubic-bezier(.3, 2, .5, 1); }
[data-state="fitted"] :is(.is-active, .is-done) .ui-stars i { color: var(--brand); }
[data-state="fitted"] .is-active .ui-stars i { animation: stage-star .5s cubic-bezier(.3, 1.8, .5, 1) both; transition-delay: calc(.35s + var(--n) * .13s); animation-delay: calc(.35s + var(--n) * .13s); }
.ui-stars i:nth-child(1) { --n: 0; } .ui-stars i:nth-child(2) { --n: 1; } .ui-stars i:nth-child(3) { --n: 2; } .ui-stars i:nth-child(4) { --n: 3; } .ui-stars i:nth-child(5) { --n: 4; }

/* 07 Comes back: everything they did is already there. */
.ui-chip { display: none; }
[data-state="fitted"] .ui-row { align-items: center; }
[data-state="fitted"] .ui-row::after { display: none; }
[data-state="fitted"] .ui-chip { display: inline-block; font-size: 9px; font-weight: 600; padding: 3px 8px; border-radius: 999px; color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, #fff); opacity: 0; transform: translateX(10px); transition: opacity .3s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
[data-state="fitted"] .is-active .ui-row:nth-child(1) .ui-chip { transition-delay: .4s; }
[data-state="fitted"] .is-active .ui-row:nth-child(2) .ui-chip { transition-delay: .6s; }
[data-state="fitted"] .is-active .ui-row:nth-child(3) .ui-chip { transition-delay: .8s; }
[data-state="fitted"] :is(.is-active, .is-done) .ui-chip { opacity: 1; transform: none; }

@keyframes stage-breathe { 50% { opacity: .62; } }
@keyframes stage-pan { to { background-position: 100% 100%; } }
@keyframes stage-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes stage-ripple { 0% { transform: scale(0); opacity: .9; } 100% { transform: scale(22); opacity: 0; } }
@keyframes stage-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes stage-star { 0% { transform: scale(.3) rotate(-30deg); } 60% { transform: scale(1.45) rotate(8deg); } 100% { transform: none; } }
@keyframes stage-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 80%, transparent), 0 0 18px 4px var(--brand); } 70% { box-shadow: 0 0 0 14px transparent, 0 0 18px 4px var(--brand); } }

.brand-bench { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.brand-bench label { font-size: 9px; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
/* Keep editable controls at 16px or more to avoid iOS focus zoom. */
.brand-bench input { font: inherit; font-size: 16px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; width: 220px; }
.brand-bench input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.brand-bench input::placeholder { color: #77747d; }
.brand-swatches { display: flex; gap: 8px; }
.brand-swatches button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bg); background: var(--swatch); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.brand-swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.brand-bench p { margin: 0 0 0 auto; font-size: 12px; line-height: 1.6; color: var(--muted); max-width: 430px; }

/* Home: off the shelf vs made to fit */
.contrast-table { border: 1px solid var(--line); }
.contrast-head, .contrast-row { display: grid; grid-template-columns: 1fr 1fr; }
.contrast-head span { font-size: 9px; letter-spacing: .13em; padding: 14px 26px; color: var(--muted); }
.contrast-head span:last-child { color: var(--accent); background: var(--panel); border-left: 1px solid var(--line); }
.contrast-row { border-top: 1px solid var(--line); }
.contrast-row p { margin: 0; padding: 22px 26px; font-size: 15px; line-height: 1.55; color: #8f8c95; }
.contrast-row p:last-child { font-size: 18px; font-weight: 500; letter-spacing: -.02em; line-height: 1.35; color: var(--ink); background: var(--panel); border-left: 1px solid var(--line); }

/* Home: what we cover */
.coverage-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.coverage-list a { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 30px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.coverage-list a:hover { color: inherit; background: linear-gradient(90deg, transparent, var(--panel) 30%, var(--panel) 70%, transparent); }
.coverage-list h3 { font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.coverage-list p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--soft); }
.coverage-list span { color: var(--gold); font-size: 18px; }

/* Home: the spine */
.spine { display: grid; grid-template-columns: 1.2fr 1fr; gap: 55px; align-items: start; }
.spine h2 { font-size: 44px; line-height: 1.08; }
.spine p:not(.eyebrow) { font-size: 15px; line-height: 1.75; color: var(--soft); margin: 0 0 16px; }
.spine .spine-note { margin-top: 26px; font-size: 14px; }
.spine-note em { font-size: 21px; margin-right: 10px; }

/* Proof card */
.proof-numbers { display: flex; gap: 30px; }
.proof-numbers strong { font-size: 32px; font-weight: 450; letter-spacing: -.04em; display: block; color: #ece0cf; line-height: 1; }
.proof-numbers span { font-size: 10px; color: var(--muted); display: block; margin-top: 5px; }
.proof-open { display: flex; align-items: center; gap: 12px; background: #eddbc5; color: #242027; padding: 14px 18px; font-size: 14px; font-weight: 550; white-space: nowrap; }
.proof-open .play { width: 30px; height: 30px; border: 1px solid #776858; border-radius: 50%; display: grid; place-items: center; font-size: 11px; padding-left: 2px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 50px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.faq summary span { font-size: 24px; font-weight: 300; color: var(--gold); transition: transform .2s; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { font-size: 14px; line-height: 1.75; color: var(--soft); margin: 0 0 24px; max-width: 680px; }

/* CTA band */
.cta { display: grid; grid-template-columns: 1.5fr 1fr; gap: 55px; align-items: center; }
.cta h2 { font-size: 44px; line-height: 1.08; }
.cta p:not(.eyebrow) { font-size: 14px; line-height: 1.75; color: var(--soft); margin: 0; }
.cta > div:last-child { max-width: 430px; justify-self: end; }

/* Services */
.service-list article { display: grid; grid-template-columns: 60px 1.2fr 1fr; gap: 30px; padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.service-list article:first-child { border-top: 0; padding-top: 0; }
.service-list article > span { font: 13px/2.6 ui-monospace, Menlo, monospace; color: var(--gold); }
.service-list h2 { font-size: 28px; font-weight: 500; letter-spacing: -.035em; }
.service-list p { font-size: 14px; line-height: 1.75; color: var(--soft); margin: 12px 0 0; }
.in-practice { border-left: 1px solid var(--line); padding-left: 26px; }
.in-practice h3 { font-size: 9px; letter-spacing: .13em; text-transform: uppercase; font-weight: 500; color: var(--surface); }
.in-practice p { font-size: 13px; color: var(--muted); }
.note-band { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.note-band p:not(.eyebrow) { font-size: 14px; line-height: 1.75; color: var(--soft); margin: 0 0 16px; }

/* Approach */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pair > div { border: 1px solid var(--line); border-top: 2px solid var(--tone); background: var(--panel); padding: 26px 26px 28px; }
.pair h3 { font-size: 21px; font-weight: 500; letter-spacing: -.025em; color: var(--tone); }
.pair p { font-size: 14px; line-height: 1.75; color: var(--soft); margin: 12px 0 0; }
.principle-list { margin: 0; padding: 0; list-style: none; counter-reset: rule; columns: 2; column-gap: 50px; }
.principle-list li { counter-increment: rule; break-inside: avoid; position: relative; padding: 14px 0 14px 38px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; color: var(--soft); }
.principle-list li::before { content: counter(rule, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-size: 10px; letter-spacing: .1em; color: var(--core); }

/* Work */
.crumbs { display: flex; gap: 10px; padding: 18px 0 0; font-size: 11px; color: var(--muted); }
.crumbs a { border-bottom: 1px solid #56535c; }
.work-card { display: grid; grid-template-columns: auto 1.4fr auto auto; gap: 30px; align-items: center; border: 1px solid var(--line); background: var(--panel); padding: 28px; }
.work-card:hover { border-color: #6e6066; color: inherit; }
.work-card .case-mark { background: #242328; border: 1px solid #6e6066; color: #e9d6bd; border-radius: 4px; font: 13px ui-monospace, Menlo, monospace; display: grid; place-items: center; width: 47px; height: 47px; }
.work-card h2 { font-size: 27px; font-weight: 500; letter-spacing: -.035em; }
.work-card p { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 8px 0 0; max-width: 560px; }
.work-card .proof-numbers { gap: 26px; }
.work-card .proof-open { background: none; color: var(--ink); padding: 0 0 6px; font-size: 13px; font-weight: 400; border-bottom: 1px solid #818182; }

/* Built-work case studies (work/show): the same three lenses as the work
   preview, filled in. [data-hue] tints each study like a practice page. */
.work-list { display: grid; gap: 14px; }
.work-card[data-hue] .case-mark { border-color: color-mix(in srgb, var(--neon) 45%, #6e6066); color: color-mix(in srgb, var(--neon) 55%, #fff); }
.work-card[data-hue]:hover { border-color: color-mix(in srgb, var(--neon) 55%, #6e6066); box-shadow: 0 0 40px color-mix(in srgb, var(--neon) 9%, transparent); }
.work-kind { display: block; font: 10px ui-monospace, Menlo, monospace; letter-spacing: .06em; color: var(--muted); margin-bottom: 9px; }
.work-card[data-hue] .work-kind { color: color-mix(in srgb, var(--neon) 60%, var(--muted)); }
main > section.study-strip { display: flex; align-items: center; gap: 40px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.study-name { display: flex; gap: 14px; align-items: center; flex-shrink: 0; }
.study-name .case-mark { background: #242328; border: 1px solid color-mix(in srgb, var(--neon) 45%, #6e6066); color: color-mix(in srgb, var(--neon) 55%, #fff); border-radius: 4px; font: 13px ui-monospace, Menlo, monospace; display: grid; place-items: center; width: 47px; height: 47px; }
.study-name strong { font-size: 18px; font-weight: 500; display: block; }
.study-name div > span { font-size: 11px; color: var(--muted); display: block; margin-top: 4px; }
.study-strip .proof-numbers { margin-left: auto; gap: 34px; }
.study-strip .proof-numbers span { max-width: 120px; line-height: 1.45; }
.study-status { margin: 0; padding-left: 26px; border-left: 1px solid var(--line); font: 10px/1.9 ui-monospace, Menlo, monospace; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }
.study-status .text-link { text-transform: none; letter-spacing: 0; font-size: 12px; }
ul.drawer-chips { list-style: none; padding: 0; }
.drawer-chips li { font-size: 12px; padding: 9px 12px; border: 1px dashed #56535c; color: var(--muted); }
.drawer-chips li:nth-child(3n) { transform: rotate(-1.5deg); }
.drawer-chips li:nth-child(4n+1) { transform: rotate(1.2deg) translateY(2px); }
.flow-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.flow { background: var(--bg); padding: 28px 28px 30px; display: flex; flex-direction: column; }
.flow:last-child:nth-child(odd) { grid-column: 1 / -1; }
.flow-head > span { font-size: 10px; letter-spacing: .13em; color: var(--gold); }
.flow-head h3 { font-size: 21px; line-height: 1.25; font-weight: 500; letter-spacing: -.025em; margin: 12px 0 8px; }
.flow-head p { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 0; }
.flow-steps { list-style: none; margin: 24px 0; padding: 0; counter-reset: step; }
.flow-steps li { counter-increment: step; position: relative; padding: 0 0 16px 30px; font-size: 13.5px; line-height: 1.6; color: var(--soft); }
.flow-steps li:last-child { padding-bottom: 0; }
.flow-steps li::before { content: ""; position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--surface); background: #233438; }
.flow-steps li:not(:last-child)::after { content: ""; position: absolute; left: 4.5px; top: 17px; bottom: -2px; width: 1px; background: #88c8d74d; }
.flow-branch { margin-top: auto; padding: 14px 16px; border-left: 2px solid var(--outcome); background: #e4a5930a; }
.flow-branch h4 { margin: 0 0 6px; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; font-weight: 500; color: var(--outcome); }
.flow-branch p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--soft); }
.study-care .fine { margin-top: 26px; }
.study-next { display: flex; justify-content: space-between; align-items: end; gap: 30px; border-top: 1px solid var(--line); padding: 30px 0; font-size: 13px; color: var(--muted); }
.study-next a:last-child { text-align: right; }
.study-next span { display: block; font-size: 11px; }
.study-next strong { display: block; margin-top: 6px; font-size: 24px; font-weight: 500; letter-spacing: -.03em; color: var(--ink); }
.study-next a:hover strong { color: var(--accent); }

/* Prose (privacy) */
.prose { max-width: 720px; }
.prose h2 { font-size: 21px; font-weight: 500; letter-spacing: -.025em; margin: 34px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 14px; line-height: 1.8; color: var(--soft); margin: 0 0 12px; }
.prose code { font-size: 12px; padding: 2px 6px; border: 1px solid var(--line); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 26px; margin-top: 20px; }
.footer-top { display: flex; justify-content: space-between; gap: 50px; flex-wrap: wrap; }
.footer-top p { font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 300px; margin: 14px 0 0; }
.site-footer nav { display: flex; gap: 64px; flex-wrap: wrap; }
.site-footer nav div { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.site-footer nav h2 { font-size: 9px; letter-spacing: .13em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 10px; color: #989899; }

@media (max-width: 1200px) {
  :root { --site-gutter: 24px; }
  .masthead, main, .site-footer, .neon-hero-copy { width: calc(100% - 48px); }
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .hero, .page-head, .cta { gap: 30px; }
  .work-card { grid-template-columns: auto 1fr auto; }
  .work-card .proof-numbers { grid-column: 2 / -1; }
  main > section.study-strip { flex-wrap: wrap; gap: 22px 30px; }
  .study-strip .proof-numbers { margin-left: 0; }
  .study-status { border-left: 0; padding-left: 0; width: 100%; }
}

@media (max-width: 850px) {
  h2 { font-size: 29px; }
  .hero, .page-head, .cta, .method, .faq, .note-band, .spine { grid-template-columns: 1fr; gap: 22px; }
  .spine h2 { font-size: 34px; }
  .stage-bar { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
  .journey-track { padding: 34px 20px 22px; }
  .touch { flex: 0 0 172px; }
  .brand-bench p { margin-left: 0; }
  .hero, .page-head { padding: 36px 0; }
  .hero-copy, .cta > div:last-child { max-width: 540px; justify-self: start; }
  .hero-copy p:first-child { font-size: 15px; }
  .button-primary { max-width: 420px; }
  main > section { padding: 44px 0; }
  .section-heading { display: block; margin-bottom: 26px; }
  .section-heading > p { margin-top: 16px; }
  .shift-figure { grid-template-columns: 1fr; gap: 14px; }
  .shift-arrow { transform: rotate(90deg); justify-self: center; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-grid, .how-grid { grid-template-columns: 1fr; }
  main > section.portals { margin-top: -70px; }
  .neon-hero-copy { padding: 50px 0 120px; }
  .pipe-stage { grid-template-columns: 1fr; gap: 12px; padding-bottom: 50px; }
  .pipe-line { height: 26px; width: 2px; justify-self: center; background: linear-gradient(180deg, #ffffff1f, var(--neon-violet)); }
  .pipe-line b { display: none; }
  .site-nav { gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
  .method h2 { font-size: 37px; }
  .cta h2 { font-size: 35px; }
  .proof-open { justify-self: start; }
  .coverage-list a { grid-template-columns: 1fr auto; gap: 8px 20px; }
  .coverage-list p { grid-column: 1; grid-row: 2; }
  .coverage-list h3 { font-size: 21px; }
  .contrast-row p { padding: 18px; font-size: 14px; }
  .contrast-row p:last-child { font-size: 16px; }
  .contrast-head span { padding: 12px 18px; }
  .service-list article { grid-template-columns: 44px 1fr; }
  .in-practice { grid-column: 2; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .principle-list { columns: 1; }
  .site-nav { gap: 20px; }
  .flow-list { grid-template-columns: 1fr; }
  .flow { padding: 24px 20px; }
  .study-next strong { font-size: 20px; }
}

@media (max-width: 520px) {
  :root { --site-gutter: 16px; }
  .masthead, main, .site-footer, .neon-hero-copy { width: calc(100% - 32px); }
  .neon-hero h1 { font-size: 42px; }
  .neon-lede { font-size: 16px; }
  .card-grid.four { grid-template-columns: 1fr; }

  .masthead { height: 76px; padding: 10px 0; flex-wrap: nowrap; }
  .wordmark { font-size: 26px; }
  .site-nav { width: 100%; gap: 0; justify-content: space-between; font-size: 12px; }
  h1 { font-size: 41px; }
  h2, .cta h2 { font-size: 30px; }
  .method h2 { font-size: 40px; }
  .eyebrow { font-size: 8px; }
  .layers { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .card-grid, .pair { grid-template-columns: 1fr; }
  .card-grid li > a, .card-grid li > div { padding: 22px 18px; }
  .work-card, .drawer, .connected { padding: 20px; }
  .proof-numbers { flex-wrap: wrap; gap: 18px 24px; }
  .contrast-row p { padding: 14px 12px; font-size: 12px; }
  .contrast-row p:last-child { font-size: 13.5px; }
  .contrast-head span { padding: 10px 12px; font-size: 8px; }
  .work-card { grid-template-columns: 1fr; gap: 18px; }
  .work-card .proof-numbers { grid-column: auto; }
  .service-list h2 { font-size: 23px; }
  .site-footer nav { gap: 34px; }
  .footer-base { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq summary span, .stage-toggle button, .touch-card, .touch-card *, .touch-step::before, .touch-step::after { transition: none !important; animation: none !important; }
  .journey::before, .portal::before, .mini-journey i, .pipe-col.out i, .pipe-flow b, .pipe-line b, .signal { animation: none !important; }
}

/* A compact native menu keeps navigation available without filling the phone hero. */
.mobile-menu { display: none; }
.mobile-menu summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; gap: 16px; font-size: 13px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { font-size: 20px; color: var(--accent); }
.mobile-menu[open] summary span { transform: rotate(45deg); }

/* The shared record behind the customer-facing screens. */
.touch-step:hover, .touch-step[aria-pressed="true"] { color: var(--ink); }
.touch-step:focus-visible, .journey-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.handoff-context { display: grid; grid-template-columns: 1fr 1.7fr; gap: 38px; padding: 28px 30px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; background: linear-gradient(115deg, #ffffff04, #88c8d707); }
.stage .journey { border-radius: 22px 22px 0 0; }
.handoff-intro .eyebrow { color: var(--surface); margin-bottom: 12px; }
.handoff-intro h3 { font-size: 21px; letter-spacing: -.025em; font-weight: 500; }
.handoff-intro > p:not(.eyebrow) { font-size: 13px; line-height: 1.65; color: var(--muted); max-width: 330px; margin: 12px 0; }
.journey-play { border: 1px solid #88c8d74d; color: var(--ink); background: #88c8d709; border-radius: 99px; padding: 10px 15px; min-height: 44px; font: inherit; font-size: 12px; cursor: pointer; }
.journey-play span { margin-left: 15px; color: var(--surface); }
.handoff-details { min-width: 0; min-height: 182px; }
.handoff-route { display: flex; flex-wrap: wrap; gap: 10px; color: var(--surface); margin: 0 0 12px; font-size: 11px; }
.handoff-details h4 { margin: 0; font-size: 20px; letter-spacing: -.02em; font-weight: 500; }
.handoff-body { color: var(--soft); font-size: 14px; line-height: 1.65; margin: 10px 0 16px; max-width: 640px; }
.handoff-facts { padding: 0; margin: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.handoff-facts li { font-size: 11px; border: 1px solid #88c8d72b; border-radius: 5px; padding: 6px 9px; color: #c1dce2; background: #88c8d707; }
.handoff-details article:not([hidden]) { animation: handoff-reveal .35s ease-out both; }
@keyframes handoff-reveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
[data-state="cobbled"] .handoff-fit, [data-state="cobbled"] .handoff-details article { display: none; }
[data-state="fitted"] .handoff-off { display: none; }
.handoff-off .handoff-route, .handoff-off .handoff-facts li { color: var(--muted); }

@media (max-width: 850px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu .site-nav { position: absolute; top: calc(100% - 6px); right: 0; width: min(320px, calc(100vw - 32px)); padding: 14px 20px; display: flex; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: 14px; background: #16161dfc; box-shadow: 0 20px 50px #0009; }
  .mobile-menu .site-nav a { padding: 14px 0; font-size: 14px; }
  .handoff-context { grid-template-columns: 1fr; gap: 24px; padding: 24px 20px; }
  .handoff-intro > p:not(.eyebrow) { max-width: none; }
  .handoff-details { min-height: 218px; }
  .neon-hero-copy { padding-top: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .handoff-details article:not([hidden]) { animation: none; }
}

/* A legible preview of the case-study format, independent of any one project. */
.work-window { display: block; border: 1px solid #ffffff24; border-radius: 14px; overflow: hidden; background: #101117; transition: border-color .2s; }
.work-window:hover { color: inherit; border-color: #dec8b177; }
.work-window-footer a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.work-window-bar, .work-window-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 26px; }
.work-window-bar { border-bottom: 1px solid var(--line); font: 10px/1.5 ui-monospace, monospace; letter-spacing: .05em; color: var(--muted); }
.work-window-bar > span:first-child { color: #e0d2bd; }
.work-window-bar i { display: inline-block; width: 5px; height: 5px; margin: 0 9px 1px 0; background: #e0d2bd; border-radius: 50%; }
.work-lenses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work-lens { min-width: 0; padding: 28px 26px 24px; display: flex; flex-direction: column; --lens: #d9bb92; background: radial-gradient(ellipse at 50% 10%, #d9bb9208, transparent 80%); }
.work-lens + .work-lens { border-left: 1px solid var(--line); }
.work-lens[data-lens="workflow"] { --lens: #90cbd1; background: radial-gradient(ellipse at 50% 10%, #90cbd108, transparent 80%); }
.work-lens[data-lens="criteria"] { --lens: #c4afd9; background: radial-gradient(ellipse at 50% 10%, #c4afd908, transparent 80%); }
.lens-label { margin: 0 0 12px; font: 9px/1.5 ui-monospace, monospace; letter-spacing: .06em; color: var(--lens); }
.work-lens h3 { font-size: 18px; line-height: 1.4; font-weight: 450; letter-spacing: -.025em; margin: 0; }
.lens-caption { min-height: 65px; margin: auto 0 0; padding-top: 20px; font-size: 12px; line-height: 1.7; color: var(--muted); border-top: 1px solid var(--line); }
.capability-sketch { padding: 28px 0; }
.capability-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.capability-row span, .capability-hub { padding: 10px 6px; font-size: 10px; line-height: 1.5; text-align: center; border: 1px solid #d9bb923d; border-radius: 5px; background: #d9bb9206; }
.capability-hub { color: #f1dcc0; border-color: #d9bb9270; background: #d9bb9210; }
.capability-bridge { height: 25px; margin: 0 25%; border-left: 1px solid #d9bb9250; border-right: 1px solid #d9bb9250; }
.workflow-sketch, .criteria-sketch { list-style: none; margin: 25px 0; padding: 0; }
.workflow-sketch li { position: relative; display: flex; gap: 12px; font-size: 12px; line-height: 1.5; padding-bottom: 21px; }
.workflow-sketch li:last-child { padding-bottom: 0; }
.workflow-sketch li:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: -3px; width: 1px; background: #90cbd14d; }
.workflow-dot { width: 9px; height: 9px; flex: none; margin-top: 4px; border-radius: 50%; border: 1px solid var(--lens); background: #233438; }
.workflow-sketch small, .criteria-sketch small { display: block; font-size: 10px; line-height: 1.65; color: var(--muted); margin-top: 4px; }
.workflow-sketch small.workflow-branch { border-left: 1px solid #90cbd16b; padding-left: 8px; color: #9ebfc3; }
.criteria-sketch li { display: flex; gap: 10px; font-size: 12px; line-height: 1.5; margin-bottom: 18px; }
.criteria-sketch li:last-child { margin-bottom: 0; }
.criteria-sketch li > span:first-child { color: var(--lens); font-size: 16px; line-height: 1.1; }
.work-window-footer { border-top: 1px solid var(--line); background: #ffffff03; font-size: 12px; color: var(--muted); }
.work-window-footer a { color: #e6d3bb; font-size: 13px; font-weight: 500; }
.work-window-footer a span { margin-left: 12px; }
@media (max-width: 1000px) and (min-width: 701px) { .work-lens { padding: 24px 16px; } .work-lens h3 { font-size: 16px; } .capability-row { gap: 5px; } }
@media (max-width: 700px) {
  .work-lenses { grid-template-columns: 1fr; }
  .work-lens + .work-lens { border-left: 0; border-top: 1px solid var(--line); }
  .work-lens { padding: 24px; }
  .work-window-bar, .work-window-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding: 18px 24px; }
  .capability-row span, .capability-hub { font-size: 12px; }
  .workflow-sketch li, .criteria-sketch li { font-size: 13px; }
  .workflow-sketch small, .criteria-sketch small { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .work-window { transition: none; } }
