/* D2Bridge, Option B: "Experience, engineered."
   Technical-drawing language: hairline grid, mono annotations, expanded grotesk, one signal color. */

@view-transition { navigation: auto; }

:root {
  --ink: #111213;
  --graphite: #26282a;
  --steel: #8a8b87;
  --bone: #ecebe6;
  --paper: #f6f5f1;
  --signal: #ff5a1f;
  --signal-rgb: 255, 90, 31;
  --on-signal: #111213;   /* text and icons on a signal fill */
  --signal-text: #b83a0a; /* deeper signal for small orange text on light surfaces (≥4.5:1 on bone) */

  --bg: var(--bone);
  --fg: var(--ink);
  --mute: #5f605c;
  --line: rgba(17, 18, 19, .13);
  --panel: #e2e0da;

  --display: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 3.2vw, 48px);
  --max: 1680px;
  --ease: cubic-bezier(.2, .7, 0, 1);
}

body[data-theme="dark"] {
  --bg: var(--ink);
  --fg: var(--bone);
  --mute: #9c9d98;
  --line: rgba(236, 235, 230, .14);
  --panel: #1c1d1f;
  --signal-text: var(--signal);
}

/* Without JS the page never flips, so dark sections paint themselves */
html:not(.js) [data-theme="dark"] {
  --bg: var(--ink); --fg: var(--bone); --mute: #9c9d98; --line: rgba(236, 235, 230, .14); --panel: #1c1d1f; --signal-text: var(--signal);
  background: var(--bg); color: var(--fg);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--fg);
  transition: background-color .8s var(--ease), color .8s var(--ease);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--signal); color: var(--on-signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; font-weight: 400; }
.muted { color: var(--mute); }
.signal { color: var(--signal); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 14px; }
.skip:focus { left: 8px; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.h-xl { font-size: clamp(2.6rem, 9.4vw, 10.5rem); font-stretch: 125%; letter-spacing: -.045em; line-height: .9; }
.h-l { font-size: clamp(2.2rem, 5.4vw, 5.6rem); font-stretch: 118%; letter-spacing: -.04em; line-height: .95; }
.h-m { font-size: clamp(1.6rem, 3vw, 2.8rem); font-stretch: 112%; letter-spacing: -.03em; line-height: 1.05; }
.lead { font-size: clamp(1.1rem, 1.35vw, 1.3rem); line-height: 1.45; max-width: 34em; }

/* Construction grid that runs behind every page */
.gridlines {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  display: grid; grid-template-columns: repeat(6, 1fr);
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.gridlines span { border-left: 1px solid var(--line); opacity: .6; transition: border-color .8s; }
.gridlines span:last-child { border-right: 1px solid var(--line); }
main, .site-footer { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .4s, border-color .4s;
}
.site-header.scrolled { background: var(--bg); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.wordmark {
  display: flex; align-items: center; gap: 10px; position: relative; z-index: 2;
  font-stretch: 125%; font-weight: 700; font-size: 17px; letter-spacing: .01em; text-transform: uppercase;
}
.wordmark svg { width: 26px; height: 26px; flex: none; }
.wordmark svg.logo { width: auto; height: 21px; }
/* B words roll up through the logo: below (waiting) → on → gone (above) */
.lw { opacity: 0; transform: translateY(780px); transition: transform .55s var(--ease), opacity .3s; }
.lw.on { opacity: 1; transform: none; }
.lw.gone { transform: translateY(-780px); }
.wordmark b { color: var(--signal); font-weight: 700; }
.clock { font-family: var(--mono); font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
.clock::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); margin-right: 8px; vertical-align: 1px; animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a { font-size: 14px; font-weight: 500; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menu-btn {
  display: none; margin-left: auto; position: relative; z-index: 2;
  font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .04em;
  background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 999px; padding: 9px 16px; cursor: pointer;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.btn:hover { background: var(--signal); color: var(--on-signal); }
.btn--signal { background: var(--signal); color: var(--on-signal); }
.btn--signal:hover { background: var(--fg); color: var(--bg); }
.btn--line { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn--line:hover { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.link { display: inline-flex; gap: 8px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: color .3s; }
.link:hover { color: var(--signal); }
.pill { display: inline-block; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--signal); border: 1px solid currentColor; border-radius: 999px; padding: 6px 12px; }

/* ---------- Section scaffolding ---------- */
.sec { padding: clamp(96px, 12vw, 180px) 0; position: relative; }
.sec--tight { padding-top: clamp(48px, 6vw, 90px); }
/* Clients sits between the work gallery and Capabilities: keep only the next section's top space below the logos */
#clients { padding-bottom: clamp(12px, 2vw, 32px); }
.sec-label {
  display: grid; grid-template-columns: repeat(6, 1fr); align-items: baseline;
  padding-top: 14px; border-top: 1px solid var(--fg); margin-bottom: clamp(40px, 5vw, 80px);
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .02em;
}
.sec-label span:nth-child(2) { grid-column: 2 / span 3; }
.sec-label span:last-child:not(:nth-child(2)) { grid-column: 6; text-align: right; color: var(--mute); }
/* A link in the last slot ("All work →") sits on the right edge too, like the plain labels */
.sec-label > a:last-child:not(:nth-child(2)) { grid-column: 5 / span 2; justify-self: end; }
.cols { display: grid; grid-template-columns: repeat(6, 1fr); }
.c-1-2 { grid-column: 1 / span 2; padding-right: 32px; }
.c-1-3 { grid-column: 1 / span 3; padding-right: 32px; }
.c-3-6 { grid-column: 3 / -1; }
.c-2-6 { grid-column: 2 / -1; }
.c-4-6 { grid-column: 4 / -1; }

/* ---------- Hero ---------- */
.hero { padding-top: 112px; }
.hero-head { position: relative; }
.hero-meta {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
  padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--mute);
}
.hero-meta span:nth-child(2) { grid-column: 3; }
.hero-meta span:nth-child(3) { grid-column: 5; }
.hero-meta span:nth-child(4) { grid-column: 6; text-align: right; }
.hero-title { margin-top: clamp(28px, 5vw, 72px); position: relative; z-index: 1; }
/* The mask needs room for ascenders and descenders (d, y, g); negative margins keep the line spacing */
.hero-title .line { display: block; overflow: hidden; padding: .1em 0 .2em; margin: -.1em 0 -.15em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { transform: translateY(130%); animation: rise 1.2s var(--ease) .1s forwards; }
.js .hero-title .line:nth-child(2) > span { animation-delay: .22s; }
.hero-title .indent { padding-left: calc(100% / 6); }
@keyframes rise { to { transform: none; } }
.hero-sub { display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; margin-top: clamp(28px, 4vw, 56px); position: relative; z-index: 1; }
.hero-sub .lead { grid-column: 3 / span 3; padding-right: 32px; }
.hero-sub .btn { grid-column: 6; justify-self: end; }

.crosshair { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; overflow: hidden; }
.crosshair.on { opacity: 1; }
.crosshair .h, .crosshair .v { position: absolute; background: var(--signal); opacity: .55; }
.crosshair .h { left: 0; right: 0; height: 1px; top: 0; transform: translateY(var(--y, 0)); }
.crosshair .v { top: 0; bottom: 0; width: 1px; left: 0; transform: translateX(var(--x, 0)); }
.crosshair .coords {
  position: absolute; left: 0; top: 0; white-space: pre; color: var(--signal);
  font: 500 11px var(--mono); transform: translate(calc(var(--x, 0px) + var(--dx, 12px)), calc(var(--y, 0px) + var(--dy, 10px)));
}
.crosshair.fx .coords { --dx: calc(-100% - 12px); }
.crosshair.fy .coords { --dy: calc(-100% - 10px); }

/* Image window that opens to full bleed as you scroll */
.window { margin-top: clamp(40px, 6vw, 88px); position: relative; }
.window .frame {
  height: 92vh; min-height: 420px; overflow: hidden; background: var(--panel);
  --q: calc(1 - var(--p, 1));
  clip-path: inset(calc(var(--q) * 8%) calc(var(--q) * var(--side, 24%)) calc(var(--q) * 8%) calc(var(--q) * var(--side, 24%)));
}
.window img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.16 - var(--p, 1) * .16)); }
.window .caption { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; color: var(--mute); }

/* Feature callouts on the hero image (js/site.js). Markers are placed in image pixels and follow the scroll zoom. */
.window .frame { position: relative; }
.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; }
.feats { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.feat { position: absolute; left: 0; top: 0; }
.feat[hidden] { display: none; }
.feat-dot { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; pointer-events: auto; }
.feat-dot::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); transition: background .2s, inset .2s; }
.feat-dot::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; animation: feat-ping 2.4s ease-out infinite; }
.feat:nth-child(2) .feat-dot::after { animation-delay: .5s; } .feat:nth-child(3) .feat-dot::after { animation-delay: 1s; }
.feat:nth-child(4) .feat-dot::after { animation-delay: 1.5s; } .feat:nth-child(5) .feat-dot::after { animation-delay: 2s; }
@keyframes feat-ping { from { box-shadow: 0 0 0 0 rgba(var(--signal-rgb), .65); } to { box-shadow: 0 0 0 14px rgba(var(--signal-rgb), 0); } }
.feat-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.feat-tip { position: absolute; left: 22px; top: -14px; width: max-content; max-width: 250px; margin: 0; padding: 10px 13px 11px; background: rgba(17, 18, 19, .9); border-left: 2px solid var(--signal); color: #ecebe6; font-size: 13.5px; line-height: 1.4; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease); pointer-events: none; }
.feat-tip b { display: block; margin-bottom: 5px; color: var(--signal); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.feat.on .feat-tip, .feat:focus-within .feat-tip { opacity: 1; transform: none; }
.feat.on .feat-dot::before, .feat:focus-within .feat-dot::before { background: #fff; inset: 9px; }
.window .frame .crosshair .h, .window .frame .crosshair .v { opacity: .7; }
@media (prefers-reduced-motion: reduce) { .feat-dot::after { animation: none; } }
.feat-chips { display: none; }
/* Phones: the photo is wider than the screen, so a sideways swipe pans it (js/site.js) */
.pan-hint { display: none; }
@media (hover: none) {
  .window .frame.can-pan { touch-action: pan-y; }
  .window .frame.can-pan img { transition: none; }
  .frame.can-pan .pan-hint {
    display: block; position: absolute; left: 50%; bottom: 16px; z-index: 3; margin: 0; padding: 8px 14px;
    transform: translateX(-50%); white-space: nowrap; background: rgba(17, 18, 19, .72); color: #ecebe6;
    font-size: 12px; letter-spacing: .05em; text-transform: uppercase; pointer-events: none; transition: opacity .4s;
  }
  .pan-hint span { display: inline-block; color: var(--signal); animation: pan-nudge 1.6s ease-in-out infinite; }
  .pan-hint span:last-child { animation-direction: reverse; }
  .frame.explored .pan-hint { opacity: 0; }
}
@keyframes pan-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
@media (prefers-reduced-motion: reduce) { .pan-hint span { animation: none; } }
@media (max-width: 860px) {
  .feat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 2px; scrollbar-width: none; }
  .feat-chips button { flex: none; padding: 8px 12px; border: 0; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); cursor: pointer; }
  .feat-chips button[aria-pressed="true"] { background: var(--signal); box-shadow: none; color: var(--on-signal); }
  .feat-tip { max-width: min(230px, 62vw); font-size: 13px; }
}
.window .caption b { color: var(--fg); font-weight: 500; }

/* VITE hero: training stations (js/vite-hero.js). The photo stays; a hovered or tapped station
   gets drafting brackets and a label tab, always kept inside the visible part of the photo. */
.feat-tip .feat-meta { display: block; margin-top: 8px; color: rgba(236, 235, 230, .55); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; }
.feat-tip .feat-go { display: inline-block; margin-top: 8px; color: var(--signal); font-weight: 500; text-decoration: none; }
.hero-hint { position: absolute; left: 16px; top: 16px; max-width: calc(100% - 32px); margin: 0; padding: 7px 11px; background: rgba(17, 18, 19, .72); color: #ecebe6; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; pointer-events: none; transition: opacity .4s; }
.hero-hint::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--signal); vertical-align: 1px; }
.frame:hover .hero-hint, .explored .hero-hint { opacity: 0; }
@media (hover: none) { .hero-hint .hint-fine { font-size: 0; } .hero-hint .hint-fine::after { content: "7 stations · Tap to explore"; font-size: 12px; } }
.box-mode .feat-tip { display: none !important; }
.box-mode .feat.on .feat-dot::before { background: var(--signal); inset: 11px; }
.twin-box { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; opacity: 0; transition: transform .4s var(--ease), width .4s var(--ease), height .4s var(--ease), opacity .25s; }
.twin-box.on { opacity: 1; }
.twin-box.off { opacity: 0 !important; }
.twin-box i { position: absolute; width: clamp(18px, 2.2vw, 32px); height: clamp(18px, 2.2vw, 32px); border: 0 solid var(--signal); filter: drop-shadow(0 0 2px rgba(0, 0, 0, .45)); }
.twin-box i:nth-child(1) { left: 0; top: 0; border-width: 3px 0 0 3px; }
.twin-box i:nth-child(2) { right: 0; top: 0; border-width: 3px 3px 0 0; }
.twin-box i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 3px 3px; }
.twin-box i:nth-child(4) { right: 0; bottom: 0; border-width: 0 3px 3px 0; }
.twin-box .lbl { position: absolute; left: 0; top: 0; width: max-content; margin: 0; display: flex; flex-direction: column; align-items: flex-start; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.twin-box .lbl b { padding: 5px 8px 4px; background: var(--signal); color: #111213; font-weight: 500; }
.twin-box .lbl span { padding: 4px 8px; background: rgba(13, 16, 19, .85); color: rgba(236, 235, 230, .8); }
.twin-box .lbl a { padding: 5px 8px; background: rgba(13, 16, 19, .85); color: var(--signal); text-decoration: none; pointer-events: auto; text-transform: none; letter-spacing: 0; font-size: 12px; }
.twin-box .lbl a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .twin-box { transition: opacity .2s; } }

/* ---------- Manifesto (words light up as you read) ---------- */
.manifesto p {
  font-size: clamp(1.8rem, 4.1vw, 4.3rem); font-stretch: 112%; font-weight: 500;
  line-height: 1.08; letter-spacing: -.035em;
}
.js .manifesto .w { opacity: .14; transition: opacity .35s; }
.js .manifesto .w.on { opacity: 1; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(64px, 9vw, 140px); }
.principle { padding: 22px 32px 0 0; border-top: 1px solid var(--line); }
.principle .mono { color: var(--signal); }
.principle h3 { font-size: clamp(1.4rem, 2.1vw, 2rem); font-stretch: 118%; margin: 44px 0 14px; }
.principle p { color: var(--mute); max-width: 26em; }

/* ---------- Horizontal work gallery ---------- */
.hscroll-sticky { padding: 0 0 8px; }
.hscroll-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(28px, 4vw, 56px); }
.hscroll-track {
  display: flex; gap: clamp(16px, 2vw, 32px); padding: 0 var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  scroll-padding-inline: var(--gutter);   /* snapped cards keep the page margin instead of touching the screen edge */
}
.hscroll-track::-webkit-scrollbar { display: none; }
.hscroll.is-pinned .hscroll-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 72px; }
.hscroll.is-pinned .hscroll-sticky > .wrap { width: 100%; }   /* flex column would shrink it, pulling the section line in */
.hscroll.is-pinned .hscroll-track { overflow: visible; width: max-content; will-change: transform; }
.hs-progress { height: 1px; background: var(--line); margin-top: clamp(24px, 3vw, 40px); position: relative; }
.hs-progress i { position: absolute; inset: 0; background: var(--signal); transform-origin: left; transform: scaleX(var(--hp, 0)); }
.work-card { flex: none; width: clamp(280px, 30vw, 520px); scroll-snap-align: start; }
.work-card.wide { width: clamp(300px, 46vw, 800px); }
.work-card .img { height: min(56vh, 560px); min-height: 300px; overflow: hidden; background: var(--panel); position: relative; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.work-card:hover img { transform: scale(1.05); }
.work-card .fig { position: absolute; left: 12px; top: 12px; background: var(--bg); color: var(--fg); padding: 5px 8px; }
.work-card .meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; color: var(--mute); }
.work-card h3 { font-size: clamp(1.2rem, 1.6vw, 1.6rem); font-stretch: 112%; margin-top: 8px; }
.work-card.ask .img { display: grid; place-items: center; background: var(--signal); color: var(--on-signal); text-align: center; }
.work-card.ask .img span { font-size: clamp(1.8rem, 3vw, 3rem); font-stretch: 125%; font-weight: 600; letter-spacing: -.04em; line-height: 1; }

/* ---------- Index rows (services) ---------- */
.index-list { border-top: 1px solid var(--line); }
.index-row {
  display: grid; grid-template-columns: 1fr 2fr 2fr 1fr; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--line); transition: padding .6s var(--ease);
}
.index-row .mono:first-child { color: var(--mute); }
.index-row h3 { font-size: clamp(1.6rem, 3.3vw, 3.2rem); font-stretch: 118%; letter-spacing: -.04em; transition: color .3s; padding-right: 24px; }
.index-row p { color: var(--mute); max-width: 30em; padding-right: 24px; }
.index-row .tag { text-align: right; color: var(--mute); }
a.index-row:hover { padding-left: 18px; }
a.index-row:hover h3 { color: var(--signal); }

.preview {
  position: fixed; left: 0; top: 0; z-index: 40; width: 320px; aspect-ratio: 4 / 3; pointer-events: none;
  overflow: hidden; opacity: 0; transition: opacity .3s;
}
.preview img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform .8s var(--ease); }
.preview.on { opacity: 1; }
.preview.on img { transform: none; }
@media (pointer: coarse) { .preview { display: none; } }
/* Touch screens: the hover preview becomes a thumbnail inside the row (added by js/site.js) */
.index-row.has-thumb { grid-template-columns: 1fr 2fr 2fr 1fr 128px; }
.index-row .row-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; align-self: center; background: var(--panel); }
/* ---------- Tiles (industries, cards) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tile { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.tile .code { display: flex; justify-content: space-between; color: var(--mute); }
.tile .img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel); }
.tile .img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .8s, transform 1.2s var(--ease); }
.tile:hover .img img { filter: none; transform: scale(1.04); }
.tile h3 { font-size: clamp(1.3rem, 1.7vw, 1.6rem); font-stretch: 118%; }
.tile p { color: var(--mute); font-size: 15px; }
.tile .link { align-self: flex-start; margin-top: auto; }
.tile ul { color: var(--mute); font-size: 15px; display: grid; gap: 6px; }
.tile ul li::before { content: "+ "; color: var(--signal); font-family: var(--mono); }

/* ---------- Process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.process-line { position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: var(--line); }
.process-line i { position: absolute; inset: 0; background: var(--signal); transform-origin: left; transform: scaleX(var(--pp, 1)); }
.stage { position: relative; padding: 56px 32px 0 0; }
.stage::before {
  content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid var(--fg); background: var(--bg); transition: background-color .4s, border-color .4s;
}
.stage.on::before, html:not(.js) .stage::before { background: var(--signal); border-color: var(--signal); }
.stage .mono { color: var(--mute); }
.stage h3 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); font-stretch: 118%; margin: 14px 0 16px; }
.stage p { color: var(--mute); max-width: 24em; }

/* ---------- Spec sheet ---------- */
.spec-fig figure { position: sticky; top: 100px; }
.spec-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.spec-fig figcaption { margin-top: 12px; color: var(--mute); }
.spec { border-top: 1px solid var(--fg); }
.spec > div { display: grid; grid-template-columns: 1fr 3fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.spec dd { font-size: 1.05rem; }
.spec dd a { border-bottom: 1px solid var(--line); }
.spec dd a:hover { color: var(--signal); }

/* ---------- Lab (VITE) ---------- */
.lab { display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; }
.lab .media { grid-column: 1 / span 3; position: relative; }
.lab .media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lab .copy { grid-column: 4 / -1; padding-left: clamp(24px, 4vw, 64px); }
.lab .copy h2 { margin: 22px 0 24px; }
.ticks { display: grid; gap: 12px; margin: 28px 0 34px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; color: var(--mute); }
.ticks li::before { content: "→"; color: var(--signal); font-family: var(--mono); }
.ticks strong { color: var(--fg); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: block; position: relative;
  padding: 26px 40px 26px 0; font-size: clamp(1.1rem, 1.55vw, 1.45rem); font-weight: 500; font-stretch: 108%; letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
/* Block layout: as a flex or grid container, Chrome reports the summary 18px wider than the phone screen */
.faq summary::after { content: "+"; position: absolute; right: 0; top: 26px; font-family: var(--mono); color: var(--signal); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 28px; color: var(--mute); max-width: 46em; }
.faq .a p + p, .faq .a p + ul { margin-top: 12px; }
.faq .a ul { display: grid; gap: 6px; }
.faq .a li::before { content: "+ "; color: var(--signal); font-family: var(--mono); }
.faq .a strong { color: var(--fg); font-weight: 600; }

/* ---------- Journal ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(16px, 2vw, 32px); row-gap: 56px; }
.post .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel); }
.post img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post:hover img { transform: scale(1.04); }
.post .meta { display: flex; justify-content: space-between; color: var(--mute); padding: 14px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.post h3 { font-size: 1.25rem; font-stretch: 108%; line-height: 1.2; letter-spacing: -.02em; transition: color .3s; }
.post:hover h3 { color: var(--signal); }

/* ---------- Inner page head ---------- */
.page-head { padding-top: 128px; padding-bottom: clamp(56px, 7vw, 110px); }
.page-head h1 { font-size: clamp(2.5rem, 7.6vw, 8.4rem); font-stretch: 125%; letter-spacing: -.045em; line-height: .92; margin-top: clamp(28px, 4vw, 56px); }
.page-head .hero-sub { margin-top: clamp(28px, 4vw, 56px); }

/* Headline types itself in (js/site.js, typeHeadline). Hidden until the script takes over; shown anyway after 2.5 s. */
.js .page-head h1, .js h1.hero-title { opacity: 0; animation: tw-failsafe 0s 2.5s forwards; }
.js h1.tw { opacity: 1; animation: none; }
@keyframes tw-failsafe { to { opacity: 1; } }
.tw .tw-w { white-space: nowrap; }
.tw:not(.tw-done) .tw-c { opacity: 0; }
.tw .tw-c.on { opacity: 1; }
.tw-caret { display: inline-block; width: 0; position: relative; }
.tw-caret::after { content: ""; position: absolute; left: .03em; bottom: -.04em; width: .07em; height: .84em; background: var(--signal); }
.tw-caret.blink::after { animation: tw-blink 1s steps(1) infinite; }
.tw-caret.out { opacity: 0; transition: opacity .35s; }
@keyframes tw-blink { 50% { opacity: 0; } }
.js .hero-title.tw .line > span { transform: none; animation: none; }
@media print { .tw .tw-c { opacity: 1 !important; } .tw-caret { display: none; } }

/* ---------- Prose, people, video, tabs ---------- */
.prose p { font-size: 1.12rem; max-width: 38em; }
.prose p + p { margin-top: 1.1em; }
.prose strong { font-weight: 600; }
.prose .list { display: grid; gap: 14px; margin-top: 1.4em; max-width: 38em; }
.prose .list li { position: relative; padding-left: 22px; font-size: 1.05rem; color: var(--mute); }
.prose .list li strong { color: var(--fg); }
.prose .list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--signal); }
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 32px); }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); transition: filter .8s; }
.person:hover img { filter: none; }.person h3 { font-size: 1.5rem; font-stretch: 112%; margin-top: 16px; }
.person p { color: var(--mute); margin-top: 6px; font-size: 15px; }
.person .mono { display: block; margin-top: 16px; color: var(--signal); }
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.tab-list button {
  font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .02em; color: var(--fg); cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; transition: all .3s;
}
.tab-list button[aria-selected="true"] { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel ul { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.tab-panel li { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); color: var(--mute); }
.tab-panel li strong { display: block; color: var(--fg); font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }

/* ---------- Contact ---------- */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: grid; gap: 8px; font: 400 12px var(--mono); text-transform: uppercase; color: var(--mute); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 400 1.15rem var(--display); color: var(--fg); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; border-radius: 0; transition: border-color .3s;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form select { appearance: none; cursor: pointer; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--signal); }
.contact-form .send { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact-form .send p { color: var(--mute); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-block; position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; font: 500 13px var(--display); text-transform: none; color: var(--fg);
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer; transition: all .3s;
}
.chips input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chips input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(96px, 11vw, 160px) 0 24px; }
.f-cta { display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; }
.f-cta .mono { grid-column: 1 / -1; color: var(--mute); margin-bottom: 24px; }
.huge { grid-column: 1 / span 5; font-size: clamp(2.4rem, 7vw, 7.6rem); font-stretch: 125%; font-weight: 600; letter-spacing: -.045em; line-height: .92; }
.huge .arr { display: inline-block; color: var(--signal); margin-left: .12em; transition: transform .6s var(--ease); }
.huge:hover .arr { transform: translate(.1em, -.1em); }
.f-cta .btn { grid-column: 6; justify-self: end; }
.f-cols { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: clamp(72px, 9vw, 130px); padding-top: 20px; border-top: 1px solid var(--line); }
.f-cols > div:first-child { grid-column: span 2; }
.f-cols h4 { font: 400 12px var(--mono); text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.f-cols p, .f-cols li { font-size: 15px; }
.f-cols li + li { margin-top: 6px; }
.f-cols a:hover { color: var(--signal); }
.f-mark { display: block; width: 100%; margin-top: clamp(56px, 8vw, 120px); color: var(--fg); }
.f-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; color: var(--mute); }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Brand page ---------- */
.logo-panels { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(12px, 1.5vw, 24px); }
.panel { position: relative; min-height: 320px; display: grid; place-items: center; padding: 40px 24px; overflow: hidden; }
.panel .mono { position: absolute; left: 16px; top: 14px; opacity: .7; }
.panel--bone { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.panel--ink { background: var(--ink); color: var(--bone); }
.panel--signal { background: var(--signal); color: var(--on-signal); }
.panel .lockup { display: flex; align-items: center; gap: .4em; font-size: clamp(1.8rem, 3.4vw, 3.4rem); font-stretch: 125%; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.panel .lockup svg { width: 1.3em; height: 1.3em; }
.panel .lockup b { color: var(--signal); }
.panel--signal .lockup b { color: var(--ink); }
.panel .big-mark { width: 120px; height: 120px; }
/* Final logo (B.01 Hinge) on the brand page */
.hinge-fig { position: relative; padding: clamp(40px, 6vw, 96px) clamp(20px, 5vw, 80px) clamp(28px, 3vw, 44px); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.hinge-fig img { width: 100%; }
.hinge-fig .hinge-line { position: absolute; top: 18px; bottom: 18px; left: calc(clamp(20px, 5vw, 80px) + (100% - 2 * clamp(20px, 5vw, 80px)) * .4885); border-left: 1px dashed var(--signal); }
.hinge-fig figcaption { display: grid; grid-template-columns: .4885fr .5115fr; margin-top: 22px; color: var(--mute); }
.hinge-fig figcaption span:last-child { padding-left: 14px; }
.brand-logo { width: 78%; max-width: 560px; }
.logo-panels .panel:not(:first-child) .brand-logo { width: 86%; }
.brand-row { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: clamp(12px, 1.5vw, 24px); margin-top: clamp(12px, 1.5vw, 24px); }
.brand-row .panel { min-height: 240px; }
.brand-short { width: 52%; max-width: 180px; }
.brand-icon { width: 108px; height: 108px; }
.clear-demo { padding: 10.8%; outline: 1px dashed var(--signal); outline-offset: -1px; width: min(420px, 88%); }
.clear-demo img { width: 100%; outline: 1px solid var(--line); }
.brand-note { color: var(--mute); font-size: 14px; max-width: 30em; text-align: center; margin-top: 14px; }
.brand-row .panel:last-child { align-content: center; }
.b-family { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.b-family > div { display: grid; gap: 16px; padding: clamp(20px, 2.4vw, 36px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.b-family img { height: clamp(26px, 2.6vw, 40px); width: auto; max-width: 100%; justify-self: start; }
.b-family .mono { color: var(--mute); }
.card-logo { width: 62%; max-width: 260px; }
@media (max-width: 860px) {
  .brand-row, .b-family { grid-template-columns: 1fr; }
  .hinge-fig figcaption { grid-template-columns: 1fr; gap: 6px; }
  .hinge-fig figcaption span:last-child { padding-left: 0; }
}
.construction { position: relative; width: min(360px, 80%); aspect-ratio: 1; }
.construction svg { width: 100%; height: 100%; overflow: visible; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 1vw, 16px); }
.swatch { min-height: 260px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: inset 0 0 0 1px var(--line); }
.swatch h3 { font-size: 1.3rem; font-stretch: 112%; }
.swatch p { font-family: var(--mono); font-size: 11px; text-transform: uppercase; line-height: 1.6; opacity: .8; }
.ratio { display: flex; height: 18px; margin-top: 20px; }
.ratio i { display: block; }
.specimen { border-top: 1px solid var(--line); padding: 32px 0; display: grid; grid-template-columns: 1fr 4fr; gap: 24px; align-items: baseline; }
.specimen .mono { color: var(--mute); }
.specimen .s-display { font-size: clamp(2.6rem, 7vw, 7rem); font-stretch: 125%; font-weight: 600; letter-spacing: -.045em; line-height: .95; }
.specimen .s-text { font-size: 1.3rem; max-width: 34em; }
.specimen .s-mono { font-family: var(--mono); font-size: 1.05rem; text-transform: uppercase; }
.annot { position: relative; padding: clamp(32px, 5vw, 64px); background: var(--panel); }
.annot img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.annot .callout { position: absolute; display: flex; align-items: center; gap: 10px; color: var(--fg); }
.annot .callout i { display: block; width: 56px; height: 1px; background: var(--signal); }
.annot .callout b { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
.annot .callout span { background: var(--bg); padding: 5px 8px; }
.dim { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--mute); }
.dim::before, .dim::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.voice { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.voice > div { padding: 24px 32px 24px 0; border-bottom: 1px solid var(--line); }
.voice h3 { font: 500 12px var(--mono); text-transform: uppercase; color: var(--mute); margin-bottom: 10px; letter-spacing: 0; }
.voice p { font-size: 1.15rem; }
.voice .no p { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--signal); }
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 32px); }
.card-mock { aspect-ratio: 85 / 55; padding: 7%; display: flex; flex-direction: column; justify-content: space-between; }
.card-mock .lockup { font-size: clamp(1rem, 1.7vw, 1.4rem); }
.card-mock .who { font-size: clamp(.9rem, 1.2vw, 1.05rem); }
.card-mock .who strong { display: block; font-size: 1.2em; font-stretch: 112%; }
.banner-mock { grid-column: 1 / -1; aspect-ratio: 4 / 1; background: var(--ink); color: var(--bone); position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 4%; }
.banner-mock img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.banner-mock div { position: relative; font-size: clamp(1.4rem, 4vw, 4rem); font-stretch: 125%; font-weight: 600; letter-spacing: -.045em; line-height: .95; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 45;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border: 0; cursor: pointer;
  background: var(--signal); color: var(--on-signal); font: 600 .95rem/1 var(--display);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
  translate: 0 var(--lift, 0px);               /* lifts above the footer's last line; no transition so it tracks the scroll */
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.to-top .mono { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.to-top .ring { display: none; }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--fg); color: var(--bg); }
.to-top:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
h1[tabindex="-1"]:focus { outline: none; }

/* Option B: round button with a scroll-progress ring */
.to-top--b {
  width: 52px; height: 52px; padding: 0; border-radius: 50%; color: var(--fg); font-size: 1.15rem;
  background: color-mix(in srgb, var(--bg) 20%, transparent);   /* 80% see-through */
  /* Sits on the grid's right-hand line. Narrow screens: inside the line, its edge touching it. */
  --line-r: calc(max(0px, (100% - var(--max)) / 2) + var(--gutter));
  right: calc(var(--line-r) + 1px);
  /* One fixed spot on every screen, just above the footer's last line ("Family-owned since 2022") */
  bottom: 92px;
}
/* Wide screens: centred on the line, like a bead on a rail; the ring fills as you travel down it */
@media (min-width: 1125px) { .to-top--b { right: calc(var(--line-r) + .5px - 26px); } }
@media (min-width: 861px) { .to-top--b { bottom: 64px; } }
/* The footer logo stops short of the right edge, leaving that corner free for the button */
.site-footer .f-mark { width: calc(100% - 72px); }
@media (min-width: 1125px) { .site-footer .f-mark { width: calc(100% - 48px); } }
.to-top--b .lbl { display: none; }
.to-top--b .ring { display: block; position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top--b .ring circle { fill: none; stroke: var(--line); stroke-width: 2; }
.to-top--b .ring .ring-fill { stroke: var(--signal); stroke-dasharray: calc(var(--p, 0) * 100) 100; }
.to-top--b:hover { background: var(--signal); color: var(--on-signal); }
.to-top--b:hover .ring .ring-fill { stroke: var(--on-signal); }

/* Option C: quiet text link, in the site's mono annotation style */
.to-top--c { padding: 8px 2px 6px; gap: 6px; background: var(--bg); color: var(--fg); box-shadow: 0 0 0 6px var(--bg); border-bottom: 1px solid var(--signal); }
.to-top--c .arr { color: var(--signal); font-size: .9rem; }
.to-top--c:hover { background: var(--bg); color: var(--signal); }

/* Option D: dark tile with signal-orange corner brackets, pointing back to section 01 */
.to-top--d { flex-direction: column; gap: 4px; width: 56px; height: 56px; padding: 0; background: var(--fg); color: var(--bg); box-shadow: none; }
.to-top--d::before, .to-top--d::after { content: ""; position: absolute; width: 10px; height: 10px; border: 2px solid var(--signal); transition: inset .3s var(--ease); }
.to-top--d::before { left: -5px; top: -5px; border-right: 0; border-bottom: 0; }
.to-top--d::after { right: -5px; bottom: -5px; border-left: 0; border-top: 0; }
.to-top--d .lbl { font-size: .62rem; color: var(--signal); }
.to-top--d:hover { background: var(--signal); color: var(--on-signal); }
.to-top--d:hover .lbl { color: var(--on-signal); }
.to-top--d:hover::before { left: -9px; top: -9px; }
.to-top--d:hover::after { right: -9px; bottom: -9px; }

@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .2s; transform: none; } }

/* ---------- Logo exploration ---------- */
.logo-badge {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; background: var(--ink); color: var(--bone);
  padding: 10px 14px; border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.logo-badge a { color: var(--signal); }
.lockup { display: flex; align-items: center; gap: .4em; font-stretch: 125%; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.lockup svg { width: 1.3em; height: 1.3em; flex: none; }
.lockup b { color: var(--signal); }
.lockup sup { color: var(--signal); font-size: .52em; line-height: 0; vertical-align: .85em; margin: 0 .04em; }
.panel--signal .lockup sup { color: var(--ink); }
.lockup.lower span { text-transform: none; font-weight: 600; letter-spacing: -.02em; }
.lockup.plain b { color: inherit; }
.opt-jump { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.opt-jump a { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px; display: grid; gap: 18px; transition: background-color .3s; }
.opt-jump a:hover { background: var(--paper); }
.opt-jump svg { width: 64px; height: 64px; }
.opt-jump h3 { font-size: 1.3rem; font-stretch: 118%; }
.opt-jump p { color: var(--mute); font-size: 14px; }
.opt-jump .new { color: var(--signal); }
.logo-main { display: grid; grid-template-columns: repeat(6, 1fr); }
.logo-hero {
  grid-column: 1 / span 3; aspect-ratio: 1; position: relative; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
}
.logo-hero > svg { width: 80%; height: 80%; overflow: visible; }
.logo-hero > .mono { position: absolute; left: 14px; top: 12px; color: var(--mute); }
.logo-copy { grid-column: 4 / -1; padding-left: clamp(24px, 4vw, 64px); }
.logo-copy h2 { margin: 14px 0 24px; }
.logo-copy .lead + .spec { margin-top: 36px; }
.logo-copy .spec ul { display: grid; gap: 6px; }
.logo-copy .spec li::before { content: "+ "; color: var(--signal); font-family: var(--mono); }
.logo-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(12px, 1.5vw, 24px); margin-top: clamp(12px, 1.5vw, 24px); }
.logo-row .panel { min-height: 240px; }
.sizes { display: flex; align-items: flex-end; justify-content: center; gap: 28px; }
.sizes figure { display: grid; justify-items: center; gap: 10px; }
.sizes figcaption { font: 400 10px var(--mono); opacity: .6; }
.ctx-header {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; padding: 18px 24px;
  background: var(--bone); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
}
.ctx-header .lockup { font-size: 17px; }
.ctx-header nav { margin-left: auto; display: flex; gap: 22px; font-size: 13px; font-weight: 500; }
.ctx-header nav b { background: var(--signal); color: var(--on-signal); padding: 8px 14px; border-radius: 999px; font-weight: 600; }
.app-icon { width: 108px; height: 108px; border-radius: 26px; display: grid; place-items: center; }
.app-icon svg { width: 62%; height: 62%; }
.avatar { width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; }
.avatar svg { width: 56%; height: 56%; }
.score { width: 100%; border-collapse: collapse; }
.score th, .score td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.score th { font: 400 12px var(--mono); text-transform: uppercase; color: var(--mute); }
.score td:first-child { font-weight: 500; }
.score svg { width: 28px; height: 28px; vertical-align: middle; margin-right: 10px; }
.dots { font-family: var(--mono); letter-spacing: .15em; color: var(--signal); white-space: nowrap; }
.dots i { color: var(--line); font-style: normal; }
.score .total { font-weight: 700; font-stretch: 118%; font-size: 1.2rem; }
.score tr.pick td { background: color-mix(in srgb, var(--signal) 9%, transparent); }
.js .draw .mk-stroke { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.js .draw.in .mk-stroke { stroke-dashoffset: 0; }
.js .draw .mk-fill { opacity: 0; transform: scale(.6); transform-box: fill-box; transform-origin: center; transition: opacity .6s .9s, transform .8s var(--ease) .9s; }
.js .draw.in .mk-fill { opacity: 1; transform: none; }

/* ---------- Logo round 3 ---------- */
.vgrid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.vgrid--3 { grid-template-columns: repeat(3, 1fr); }
.vcard { position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.vcard .art { aspect-ratio: 1; display: grid; place-items: center; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.vcard .art svg { width: 58%; height: 58%; }
.vcard .id { display: flex; justify-content: space-between; color: var(--mute); }
.vcard h3 { font-size: 1.25rem; font-stretch: 118%; }
.vcard p { color: var(--mute); font-size: 14px; flex: 1; }
.vcard .strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vcard .chip { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; }
.vcard .chip svg { width: 25px; height: 25px; }
.vcard .try { font: 500 11px var(--mono); text-transform: uppercase; color: var(--signal); }
.vcard.pick { background: color-mix(in srgb, var(--signal) 8%, transparent); }
.vcard.pick .art::after { content: "Pick"; position: absolute; right: 26px; top: 26px; font: 500 11px var(--mono); text-transform: uppercase; background: var(--signal); color: var(--on-signal); padding: 5px 10px; border-radius: 999px; }

.impact { position: relative; min-height: 100vh; background: #0b0c0d; color: var(--bone); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 110px 0 32px; }
.impact > svg, .wall > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.impact .wrap, .wall > div { position: relative; z-index: 1; }
.flow .sl { fill: none; stroke: rgba(236, 235, 230, .34); stroke-width: 1.4; stroke-dasharray: 20 4; animation: flow 6s linear infinite; }
.flow .sl.hot { stroke: var(--signal); stroke-width: 2.6; stroke-dasharray: 80 40; animation-duration: 2.6s; }
@keyframes flow { to { stroke-dashoffset: -240; } }
.impact .top { display: flex; justify-content: space-between; gap: 16px; color: rgba(236, 235, 230, .6); }
.impact .giant { font-size: clamp(2.6rem, 12.6vw, 14rem); font-stretch: 125%; font-weight: 700; letter-spacing: -.05em; line-height: .82; }
.impact .giant b { color: var(--signal); }
.impact .bottom { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-top: 20px; }
.impact .bottom p { max-width: 30em; font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: rgba(236, 235, 230, .8); }
.e-apps { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(12px, 1.5vw, 24px); }
.plate {
  position: relative; padding: 28px 26px 22px; border-radius: 6px; color: #1a1b1c; font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  background: linear-gradient(135deg, #d5d5d0, #a3a5a0 48%, #cfcfca 70%, #b4b6b1);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.28), inset 0 2px 0 rgba(255,255,255,.55), 0 12px 30px rgba(0,0,0,.18);
}
.plate::before, .plate::after { content: ""; position: absolute; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #eee, #777); }
.plate::before { left: 10px; } .plate::after { right: 10px; }
.plate .lockup { font-family: var(--display); font-size: 22px; margin-bottom: 18px; text-transform: uppercase; }
.plate .row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(0,0,0,.25); padding: 9px 0; }
.plate .row span:first-child { opacity: .65; }
.wall { position: relative; overflow: hidden; background: #0b0c0d; color: var(--bone); aspect-ratio: 16 / 9; padding: 5%; }
.wall > div { height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.wall .lockup { font-size: clamp(1rem, 2vw, 1.6rem); }
.wall h3 { font-size: clamp(1.6rem, 4vw, 3.6rem); font-stretch: 125%; letter-spacing: -.045em; line-height: .95; max-width: 11em; }

/* ---------- Logo round 4 ---------- */
.lockup.companion { gap: .5em; }
.lockup.companion svg { width: .92em; height: .92em; }
.lockup.companion i { display: block; width: 1px; height: 1.1em; background: currentColor; opacity: .3; }
.vcard .mini { padding: 12px 0 2px; border-top: 1px solid var(--line); font-size: 15px; }
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.5vw, 24px); margin-top: clamp(12px, 1.5vw, 24px); }
.uses .panel { min-height: 200px; }
.uses .bullets { display: grid; gap: 10px; font-size: 15px; text-align: left; }
.uses .bullets span { display: flex; align-items: center; gap: 10px; }
.uses .bullets svg { width: 14px; height: 14px; flex: none; }
.uses .divider { display: flex; align-items: center; gap: 12px; width: 100%; }
.uses .divider::before, .uses .divider::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .3; }
.uses .divider svg { width: 20px; height: 20px; }
.tabmock { display: flex; align-items: center; gap: 8px; background: var(--bone); color: var(--ink); border-radius: 10px 10px 0 0; padding: 10px 14px; font-size: 13px; box-shadow: inset 0 0 0 1px var(--line); }
.tabmock svg { width: 16px; height: 16px; }

/* ---------- Logo round 5: the 2 is the mark ---------- */
.w2 { font-stretch: 125%; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1; white-space: nowrap; }
svg.two, .wordmark svg.two { height: .69em; vertical-align: baseline; margin: 0 .05em; overflow: visible; }
.two-opt { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(12px, 1.5vw, 24px); padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.two-head { display: flex; flex-direction: column; gap: 14px; padding-right: clamp(0px, 2vw, 32px); }
.two-head h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-stretch: 125%; letter-spacing: -.04em; line-height: 1; }
.two-head .id { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--mute); }
.two-head .id b { color: var(--signal); font-weight: 500; }
.two-head p { color: var(--mute); max-width: 34em; }
.two-head .try { margin-top: auto; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--fg); }
.two-hero { min-height: 280px; }
.two-hero .w2 { font-size: clamp(2.2rem, 6.4vw, 6.2rem); }
.two-apps { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(12px, 1.5vw, 24px); }
.two-apps .panel { min-height: 210px; }
.two-apps .w2 { font-size: clamp(1.2rem, 2.2vw, 2rem); }
.two-apps .big-mark { width: 110px; height: 110px; }
.two-sizes { display: flex; align-items: flex-end; gap: 18px; }
.two-sizes svg:nth-child(1) { width: 64px; height: 64px; }
.two-sizes svg:nth-child(2) { width: 32px; height: 32px; }
.two-sizes svg:nth-child(3) { width: 24px; height: 24px; }
.two-sizes svg:nth-child(4) { width: 16px; height: 16px; }
.two-opt .ctx-header { grid-column: 1 / -1; margin: 0; }
.ctx-header .w2 { font-size: 17px; }
.two-today { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.5vw, 24px); }
.two-today .w2 { font-size: clamp(1.6rem, 3.6vw, 3.4rem); }
.two-today .w2 b { color: var(--signal); font-weight: 700; }
.two-compare { display: grid; border-top: 1px solid var(--line); }
.two-compare > div { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.two-compare .w2 { font-size: clamp(1.4rem, 3.4vw, 3rem); }
.two-compare .mono { color: var(--mute); }
.two-compare .ic { display: flex; align-items: center; gap: 12px; }
.two-compare .ic svg { width: 16px; height: 16px; }
.two-compare .ic span { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: var(--bone); }
.two-compare .ic span svg { width: 30px; height: 30px; }
/* ---------- Logo library ---------- */
.lib-bar { position: sticky; top: 72px; z-index: 5; background: var(--bg); border-block: 1px solid var(--line); }
.lib-bar .wrap { display: flex; align-items: center; gap: 16px 24px; padding-block: 12px; flex-wrap: wrap; }
.lib-groups { display: flex; gap: 8px; flex-wrap: wrap; flex: 1 1 520px; }
.lib-groups button, .lib-seg button { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.lib-groups button span { margin-left: 8px; color: var(--mute); }
.lib-groups button:hover, .lib-seg button:hover { border-color: var(--fg); }
.lib-groups button[aria-pressed="true"], .lib-seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.lib-groups button[aria-pressed="true"] span { color: var(--signal); }
.lib-opts { display: flex; gap: 12px; flex-wrap: wrap; }
.lib-seg { display: flex; }
.lib-seg button { border-radius: 0; margin-left: -1px; }
.lib-seg button:first-child { border-radius: 999px 0 0 999px; margin-left: 0; }
.lib-seg button:last-child { border-radius: 0 999px 999px 0; }
.lib-group { padding-block: clamp(28px, 3.5vw, 48px); border-bottom: 1px solid var(--line); }
.lib-g-head { display: grid; grid-template-columns: 1fr 2fr auto; align-items: baseline; gap: 8px 24px; margin-bottom: 20px; }
.lib-g-head h2 { font-size: clamp(1.4rem, 2.2vw, 2rem); font-stretch: 125%; letter-spacing: -.03em; }
.lib-g-head p { color: var(--mute); }
.lib-g-head a { font-size: 12px; text-transform: uppercase; }
.lib-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.2vw, 18px); }
.lib-card { display: grid; gap: 10px; }
.lib-art { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; border: 0; border-radius: 4px; cursor: zoom-in; padding: 12px; font-family: var(--display); transition: transform .3s var(--ease), box-shadow .3s; }
.lib-art:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(17, 18, 19, .12); }
.lib-art:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.lib-art.bg-light { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.lib-art.bg-dark { background: var(--ink); color: var(--bone); }
.lib-art.bg-signal { background: var(--signal); color: var(--on-signal); }
.lib-art.view-mark svg { width: 44%; height: auto; max-height: 70%; }
.lib-art.view-lockup { font-size: clamp(12px, 1.25vw, 17px); }
.lib-art .w2, .lib-art .lockup { font-size: inherit; }
.lib-card.pick .lib-art::after { content: "Pick"; position: absolute; top: 8px; right: 8px; font: 500 10px var(--mono); text-transform: uppercase; background: var(--signal); color: var(--on-signal); padding: 3px 7px; border-radius: 999px; }
.lib-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.lib-meta .mono { font-size: 11px; color: var(--mute); text-transform: uppercase; }
.lib-meta .mono b { color: var(--signal); font-weight: 500; }
.lib-meta h3 { font-size: 15px; font-weight: 600; margin-top: 2px; }
.lib-star { background: none; border: 0; font-size: 20px; line-height: 1; color: var(--mute); cursor: pointer; padding: 2px 4px; }
.lib-star[aria-pressed="true"] { color: var(--signal); }
.lib-empty { padding: 64px 0; color: var(--mute); font-size: 1.1rem; }
.lib-dialog { margin: auto; width: min(1100px, 100% - 32px); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 6px; background: var(--bone); color: var(--ink); }
.lib-dialog::backdrop { background: rgba(17, 18, 19, .6); }
.lib-d-inner { position: relative; display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding: clamp(20px, 3vw, 36px); --line: rgba(17, 18, 19, .13); --mute: #5f605c; --fg: var(--ink); --bg: var(--bone); }
.lib-close { position: absolute; top: 14px; right: 14px; font: 500 12px var(--mono); text-transform: uppercase; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; }
.lib-d-head { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }
.lib-d-head .mono { font-size: 11px; color: var(--mute); text-transform: uppercase; }
.lib-d-head h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-stretch: 125%; letter-spacing: -.04em; line-height: 1; }
.lib-d-head p { color: var(--mute); }
.lib-d-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 12px; }
.lib-d-art { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 24px; }
.lib-d-art .panel { min-height: 180px; }
.lib-d-art .big-mark { width: 96px; height: 96px; }
.lib-d-main { grid-column: 1 / -1; }
.lib-d-art .lib-d-main.panel { min-height: 200px; font-size: clamp(1.6rem, 3.6vw, 3rem); }
.lib-d-art .lib-d-main .w2, .lib-d-art .lib-d-main .lockup { font-size: inherit; }
.lib-d-art .ctx-header { margin: 0; }
@media (max-width: 1100px) { .lib-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) {
  .lib-grid { grid-template-columns: repeat(2, 1fr); }
  .lib-g-head { grid-template-columns: 1fr; }
  .lib-art.view-lockup { font-size: 13px; }
  .lib-d-inner { grid-template-columns: 1fr; }
  .lib-d-links { flex-direction: row; flex-wrap: wrap; }
  .lib-groups { flex-wrap: nowrap; overflow-x: auto; flex-basis: 100%; scrollbar-width: none; }
  .lib-groups button { white-space: nowrap; }
  .lib-bar { top: 72px; }
}

/* Round 6: unlit segments flash on, then settle, like a display powering up */
.boot .ghost { animation: boot 4.5s infinite; }
@keyframes boot { 0%, 22% { opacity: 1; } 24%, 100% { opacity: .14; } }
.two-display { grid-column: 1 / -1; min-height: 240px; }
.two-display .w2 { font-size: clamp(2rem, 5.6vw, 5.4rem); }
@media (max-width: 860px) {
  .two-opt, .two-today { grid-template-columns: 1fr; }
  .two-head { padding-right: 0; }
  .two-apps { grid-template-columns: 1fr 1fr; }
  .two-apps .panel:first-child { grid-column: 1 / -1; }
  .two-compare > div { grid-template-columns: 1fr auto; gap: 12px; }
  .two-compare .mono { grid-column: 1 / -1; }
}

/* ---------- Logo round 7: wordmark only ---------- */
/* Contexts set --wm; each option's --k (and --ks for the short form) evens them out to about 6em (1.6em short) wide. */
.wm { --wm: 1em; font-size: calc(var(--wm) * var(--k, 1)); display: inline-flex; align-items: baseline; white-space: nowrap; line-height: 1; font-stretch: 100%; font-weight: 400; letter-spacing: 0; text-transform: none; font-style: normal; }
.wm.wm-short { font-size: calc(var(--wm) * var(--ks, 1)); }
.wm b, .wordmark .wm b { color: var(--two, var(--signal)); font-weight: inherit; }
.wm-w1 { --k: .935; --ks: .98; font-family: var(--display); font-stretch: 125%; font-weight: 900; letter-spacing: -.05em; }
.wm-w2 { --k: .67; --ks: .71; font-family: var(--display); font-stretch: 125%; font-weight: 200; letter-spacing: .3em; flex-direction: column; align-items: stretch; }
.wm-w2 b { font-weight: 400; }
.wm-w2 .dim { display: block; position: relative; height: .3em; margin: .2em .3em 0 0; border: solid currentColor; border-width: 0 1px; }
.wm-w2 .dim::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid currentColor; }
.wm-w3 { --k: 1.17; --ks: .9; font-family: var(--mono); font-weight: 500; letter-spacing: -.04em; }
.wm-w3 .cur { display: inline-block; width: .55em; height: .11em; margin-left: .1em; background: var(--two, var(--signal)); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.wm-w4 { --k: 1.13; --ks: 1.03; font-family: "Unbounded", var(--display); font-weight: 700; letter-spacing: -.05em; }
.wm-w5 { --k: .75; --ks: .73; font-family: "Michroma", var(--display); letter-spacing: .08em; }
.wm-w6 { --k: .84; --ks: .71; font-family: "Syne", var(--display); font-weight: 800; letter-spacing: -.035em; }
.wm-w7 { --k: .72; --ks: 1.34; font-family: "Big Shoulders Display", var(--display); font-weight: 900; flex-direction: column; align-items: flex-start; line-height: .8; }
.wm-w7 > span:first-child { font-size: 3.25em; letter-spacing: -.02em; }
.wm-w7 > span:last-child { letter-spacing: .1em; margin: .08em -.1em 0 0; }
.wm-w7.wm-short > span:first-child { font-size: 1em; }
.wordmark .wm-w7, .ctx-header .wm-w7 { --k: .5; }
.wm-w8 { --k: 1.53; --ks: 1.57; font-family: "Space Grotesk", var(--display); font-weight: 700; letter-spacing: -.045em; }
.wm-w8 b { font-size: .56em; position: relative; top: -.66em; margin: 0 .08em 0 .04em; letter-spacing: 0; }
.wm-w9 { --k: 1.24; --ks: .96; }
.wm-w9 .a { font-family: var(--display); font-stretch: 125%; font-weight: 800; letter-spacing: -.03em; }
.wm-w9 .s { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 1.34em; letter-spacing: -.01em; margin-left: .1em; }
.wm-w10 { --k: 1.16; --ks: 1.18; font-family: "Saira Stencil One", var(--display); letter-spacing: .03em; }

/* Round 8: Design to B. The B word rolls out upward and the next one rolls in from below. */
[data-v] { display: inline-block; transition: transform .26s var(--ease), opacity .26s; }
[data-v].out { opacity: 0; transform: translateY(-.45em); }
[data-v].pre { transition: none; opacity: 0; transform: translateY(.45em); }
.wm-b1 { --k: 1.16; --ks: .63; font-family: var(--display); font-stretch: 125%; font-weight: 900; letter-spacing: -.04em; }
.wm-b1 .v { font-weight: 250; letter-spacing: -.01em; }
.wm-b2 { --k: .6; --ks: .26; font-family: var(--display); flex-direction: column; align-items: flex-start; }
.wm-b2 .a { font-size: 2.4em; font-stretch: 125%; font-weight: 900; letter-spacing: -.045em; line-height: .9; }
.wm-b2 .l { font-family: var(--mono); font-weight: 500; font-size: .5em; letter-spacing: .14em; text-transform: uppercase; margin-top: .55em; }
.wm-b2 .l i { font-style: normal; opacity: .55; margin-right: .6em; }
.wm-b3 { --k: .98; --ks: .5; font-family: var(--display); font-stretch: 125%; font-weight: 800; letter-spacing: -.03em; }
.wm-b3 .br { font-weight: 100; font-stretch: 100%; opacity: .45; margin: 0 .06em 0 .1em; }
.wm-b3 .br:last-child { margin: 0 0 0 .06em; }
.wm-b4 { --k: 1.3; --ks: .47; font-family: var(--display); font-stretch: 125%; font-weight: 900; letter-spacing: -.02em; }
.wm-b4 .sp { display: inline-flex; align-items: center; gap: .08em; width: 1.5em; height: .72em; margin: 0 .06em; align-self: flex-end; transform: translateY(-.0em); }
.wm-b4 .sp::before, .wm-b4 .sp::after { content: ""; flex: 1; height: .07em; background: currentColor; }
.wm-b4 .sp b { font-size: .62em; letter-spacing: 0; }
.wm-b4 .v { font-family: var(--mono); font-weight: 500; font-size: .36em; letter-spacing: .02em; margin-left: .12em; }
.wm-b5 { --k: .86; --ks: .96; font-family: var(--display); font-stretch: 125%; font-weight: 700; letter-spacing: -.02em; text-transform: uppercase; }
.wm-b5 .tick { display: inline-block; overflow: hidden; margin-left: .12em; padding: .08em .14em; border-block: .05em solid currentColor; line-height: 1; vertical-align: -.1em; }
.wm-b6 { --k: .89; --ks: .54; font-family: var(--display); font-stretch: 125%; align-items: center; }
.wm-b6 .badge { font-weight: 900; letter-spacing: -.04em; padding: .1em .16em .08em .14em; border: .07em solid currentColor; line-height: 1; }
.wm-b6 .dv { font-weight: 300; letter-spacing: -.01em; margin-left: .22em; }
.b-system { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.5vw, 24px); }
.b-system .panel { min-height: 200px; align-content: center; gap: 18px; text-align: center; }
.b-system .wm { --wm: clamp(1.1rem, 1.6vw, 1.5rem); }
.b-system p { color: var(--mute); font-size: 14px; max-width: 24em; }
@media (max-width: 860px) { .b-system { grid-template-columns: 1fr; } }

/* Size by the panel's width so long and short wordmarks fill it the same way */
.fit { container-type: inline-size; }
.fit .wm { --wm: 11cqi; }
.wordmark .wm, .ctx-header .wm { --wm: 22px; }
.wm-sizes { display: grid; justify-items: start; gap: 18px; }
.wm-sizes .wm:nth-child(1) { --wm: 24px; }
.wm-sizes .wm:nth-child(2) { --wm: 16px; }
.wm-sizes .wm:nth-child(3) { --wm: 10.7px; }
@media (max-width: 560px) {
  /* Half-width panels on phones: scale the size ladder so the largest wordmark fits */
  .wm-sizes .wm:nth-child(1) { --wm: 18px; }
  .wm-sizes .wm:nth-child(2) { --wm: 13px; }
}
.app-icon .wm { --wm: 38px; }
.wm-compare { display: grid; border-top: 1px solid var(--line); }
.wm-compare > div { display: grid; grid-template-columns: 160px 1fr 1fr auto; align-items: center; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.wm-compare .wm { --wm: clamp(1.4rem, 2.6vw, 2.4rem); justify-self: start; }
.wm-compare .mono { color: var(--mute); }
.wm-compare .dark { justify-self: start; background: var(--ink); color: var(--bone); padding: 16px 20px; border-radius: 4px; }
.wm-compare .ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: var(--bone); }
.wm-compare .ic .wm { --wm: 17px; }
@media (max-width: 860px) {
  .wm-compare > div { grid-template-columns: 1fr auto; gap: 12px; }
  .wm-compare .mono { grid-column: 1 / -1; }
  .wm-compare .dark { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .clock { display: none; }
  .nav { gap: 22px; }
}
@media (max-width: 860px) {
  .gridlines { grid-template-columns: repeat(2, 1fr); }
  .gridlines span:nth-child(n+3) { display: none; }
  .gridlines span:nth-child(2) { border-right: 1px solid var(--line); }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 1; background: var(--bg);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: 96px var(--gutter) 40px;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .site-header.menu-open .nav { opacity: 1; visibility: visible; }
  .nav a:not(.btn) { font-size: clamp(2rem, 9vw, 3rem); font-stretch: 125%; font-weight: 600; letter-spacing: -.04em; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 18px; }

  .hero-meta { grid-template-columns: 1fr 1fr; column-gap: 20px; row-gap: 12px; }
  .hero-meta span:nth-child(n) { grid-column: auto; text-align: left; }
  .hero-title .indent { padding-left: 0; }
  .hero-sub, .cols, .lab, .f-cta { grid-template-columns: 1fr; }
  .hero-sub .lead, .c-1-2, .c-1-3, .c-3-6, .c-2-6, .c-4-6, .lab .media, .lab .copy, .huge { grid-column: 1; padding-right: 0; }
  .hero-sub .btn, .f-cta .btn { grid-column: 1; justify-self: start; margin-top: 24px; }
  .c-1-2, .c-1-3 { margin-bottom: 32px; }
  .lab .copy { padding-left: 0; margin-top: 32px; }
  .window .frame { height: 70vh; --side: 10%; }
  .sec-label { grid-template-columns: auto 1fr auto; gap: 16px; }
  .sec-label span:nth-child(2) { grid-column: 2; }
  .sec-label span:last-child:not(:nth-child(2)), .sec-label > a:last-child:not(:nth-child(2)) { grid-column: 3; }
  .principles, .process { grid-template-columns: 1fr; }
  .principle h3 { margin-top: 24px; }
  .principle { padding-bottom: 32px; }
  .process-line { display: none; }
  .stage { padding: 0 0 36px 32px; }
  .stage::before { top: 4px; }
  .index-row { grid-template-columns: 56px 1fr; row-gap: 10px; }
  .index-row p, .index-row .tag { grid-column: 2; text-align: left; }
  .index-row.has-thumb { grid-template-columns: 56px minmax(0, 1fr) 88px; column-gap: 14px; }
  .index-row.has-thumb h3 { font-size: clamp(1.35rem, 6.2vw, 1.6rem); }
  .index-row.has-thumb .row-thumb { grid-column: 3; grid-row: 1; align-self: start; }
  .index-row.has-thumb p, .index-row.has-thumb .tag { grid-column: 2 / -1; }
  .index-row.has-thumb h3, .index-row.has-thumb p { padding-right: 0; }
  .tiles, .posts { grid-template-columns: 1fr 1fr; }
  .spec-fig figure { position: static; }
  .spec > div { grid-template-columns: 1fr; gap: 4px; }
  .people, .tab-panel ul, .voice, .apps { grid-template-columns: 1fr; }
  .f-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .f-cols > div:first-child { grid-column: 1 / -1; }
  .logo-panels, .swatches { grid-template-columns: 1fr 1fr; }
  .logo-panels .panel:first-child { grid-column: 1 / -1; }
  .specimen { grid-template-columns: 1fr; }
  .annot .callout { display: none; }
  .banner-mock { aspect-ratio: 2 / 1; }
  .opt-jump { grid-template-columns: 1fr 1fr; }
  .logo-main, .logo-row { grid-template-columns: 1fr; }
  .logo-hero, .logo-copy { grid-column: 1; }
  .logo-copy { padding-left: 0; margin-top: 32px; }
  .ctx-header nav span { display: none; }
  .score-wrap { overflow-x: auto; }
  .score { min-width: 620px; }
  .vgrid, .vgrid--3 { grid-template-columns: 1fr 1fr; }
  .e-apps { grid-template-columns: 1fr; }
  .uses { grid-template-columns: 1fr 1fr; }
  .impact .top span:nth-child(n+3) { display: none; }
}
@media (max-width: 560px) {
  .tiles, .posts, .swatches, .contact-form { grid-template-columns: 1fr; }
  .work-card, .work-card.wide { width: 82vw; }
  .window .caption { flex-direction: column; gap: 4px; }
  .vcard { padding: 10px; }
  .vcard .chip { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .hero-title .line > span { transform: none; }
  @view-transition { navigation: none; }
}

/* Case study pages (ozark.html) */
.award-badge { grid-column: 6; justify-self: end; height: clamp(84px, 8vw, 120px); width: auto; }
.case-facts { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--fg); }
.case-facts > div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.case-facts dt { font: 500 12px var(--mono); text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.case-facts dd { font-size: 1.02rem; line-height: 1.35; }
.case-fig { margin-top: clamp(40px, 5vw, 72px); }
.case-fig img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--panel); }
/* A logo shown as a case figure: transparent artwork centred on the panel, the version matched to the page theme */
.case-logo { position: relative; aspect-ratio: 16 / 9; background: var(--panel); }
.case-logo img { position: absolute; inset: 0; margin: auto; width: 58%; height: 70%; object-fit: contain; aspect-ratio: auto; background: none; transition: opacity .4s; }
.case-logo .on-dark, body[data-theme="dark"] .case-logo .on-light { opacity: 0; }
body[data-theme="dark"] .case-logo .on-dark { opacity: 1; }
.case-fig figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; color: var(--mute); }
.case-fig figcaption b { color: var(--fg); font-weight: 500; }
.case-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 24px); }
.case-pair .case-fig { margin-top: 0; }
/* Three square detail shots in a row */
.case-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.case-trio .case-fig { margin-top: 0; }
.case-trio .case-fig img { aspect-ratio: 1 / 1; }
.case-num { display: block; color: var(--signal); margin-bottom: 18px; }
.case-credits .people { align-items: start; }
.work-card .award-tag { position: absolute; right: 12px; top: 12px; background: var(--signal); color: var(--on-signal); padding: 5px 8px; }
@media (max-width: 1100px) { .case-facts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .award-badge { grid-column: 1; justify-self: start; margin-top: 28px; }
  .case-pair, .case-trio { grid-template-columns: 1fr; }
  .case-fig figcaption { flex-direction: column; gap: 4px; }
}
@media (max-width: 560px) { .case-facts { grid-template-columns: 1fr 1fr; } }

/* Client logo grid (home) */
.clients { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.client { position: relative; aspect-ratio: 16 / 9; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.client img { position: absolute; inset: 0; margin: auto; height: var(--lh, 46%); width: 76%; object-fit: contain; opacity: .78; transition: opacity .3s; }
a.client:hover img, .client:hover img { opacity: 1; }
/* Even out optical size across very wide and compact marks */
.client .lg-doroni { --lh: 14%; }
.client .lg-loadsters { --lh: 20%; }
.client .lg-link2usa { --lh: 30%; }
.client .lg-ajac, .client .lg-phinergy { --lh: 42%; }
.client .lg-outbound-aerospace { --lh: 36%; }
.client .lg-data-blanket { --lh: 50%; }
.client .lg-vaupell { --lh: 42%; }
.client .lg-iop { --lh: 34%; }
.client .lg-dbt-aero { --lh: 60%; }
@media (max-width: 860px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- VITE page: interactive sections ---------- */
.hero-sub .btn-row { grid-column: 6; justify-self: end; flex-direction: column; align-items: flex-end; }
.hero-sub .btn-row .btn { grid-column: auto; justify-self: auto; margin-top: 0; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.seg button { font: 500 13px/1 var(--display); padding: 10px 16px; border-radius: 999px; border: 0; background: transparent; color: var(--mute); cursor: pointer; transition: background .3s, color .3s; }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.seg button:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.seg--big { margin-top: 28px; }
.seg--big button { font-size: 15px; padding: 14px 22px; }

.drill { border: 1px solid var(--line); }
.drill-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drill-hud { display: flex; gap: 22px; margin-left: auto; color: var(--mute); }
.drill-hud b { color: var(--fg); font-weight: 500; }
.drill-reset { background: none; border: 0; color: var(--fg); cursor: pointer; padding: 6px 0; }
.drill-reset:hover { color: var(--signal); }
.drill-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.drill-stage { position: relative; border-right: 1px solid var(--line); background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 20px 20px; }
.drill-stage svg { display: block; width: 100%; height: auto; }
.drill .ln { stroke: var(--fg); stroke-width: 1.2; fill: none; opacity: .5; }
.drill .ln.strong { stroke-width: 2; opacity: .9; }
.drill .ln.dash { stroke-dasharray: 4 4; }
.drill .pt { fill: var(--bg); stroke: var(--fg); stroke-width: 1.5; }
.drill .lbl { font: 500 10px var(--mono); fill: var(--mute); letter-spacing: .06em; }
.drill .stop { fill: var(--signal); stroke: var(--fg); stroke-width: 1.5; }
.drill .lever { stroke: var(--fg); stroke-width: 5; stroke-linecap: round; }
.drill .needle { stroke: var(--signal); stroke-width: 2.5; stroke-linecap: round; }
.drill .dot { fill: var(--fg); }
.drill .tag { fill: var(--fg); }
.drill .tag-t { fill: var(--bg); font-size: 14px; font-weight: 700; }
.drill .lamp { fill: var(--bg); stroke: var(--fg); stroke-width: 1.5; transition: fill .3s; }
.drill .lamp.on, .drill [data-radio].on { fill: var(--signal); }
.drill .lamp.on { filter: drop-shadow(0 0 5px var(--signal)); }
.drill .hs { cursor: pointer; outline: none; }
.drill .hs .hit { fill: transparent; }
.drill .hs .ring { fill: none; stroke: var(--signal); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: 0; transition: opacity .2s; }
.drill .hs:hover .ring, .drill .hs:focus-visible .ring { opacity: .85; }
.drill .hs.next .ring { opacity: 1; animation: vite-pulse 1.4s ease-in-out infinite; }
@keyframes vite-pulse { 50% { opacity: .2; } }
.drill .ram { transition: transform .3s ease-out; }
.drill svg.running .ram { animation: vite-ram 2.4s ease-in-out infinite; }
@keyframes vite-ram { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(40px); } }
.drill .ram.drop { transform: translateY(144px); transition: transform .35s cubic-bezier(.6, 0, 1, 1); }
.drill .ram.drift { transform: translateY(70px); transition: transform 1.2s ease-in; }
.drill svg.pump [data-fan] { animation: vite-spin .9s linear infinite; transform-box: view-box; transform-origin: 160px 420px; }
@keyframes vite-spin { to { transform: rotate(360deg); } }
.drill-flash { position: absolute; inset: 0; pointer-events: none; background: rgba(var(--signal-rgb), .14); box-shadow: inset 0 0 0 3px var(--signal); opacity: 0; transition: opacity .2s; }
.drill-flash.on { opacity: 1; }
.drill-panel { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px 20px; }
.drill-steps li { display: grid; grid-template-columns: 34px 1fr; padding: 10px 0; border-top: 1px solid var(--line); color: var(--mute); }
.drill-steps li b { display: block; color: var(--fg); font-weight: 600; font-size: 15px; }
.drill-steps li em { font-style: normal; font-size: 14px; }
.drill-steps li > span:last-child { transition: filter .4s, opacity .4s; }
.drill-steps li.cur .n { color: var(--signal); }
.drill-steps li.done .n { color: var(--signal); }
.drill-steps li.done b::after { content: " ✓"; color: var(--signal); }
.drill[data-mode="assess"] .drill-steps li:not(.done) > span:last-child { filter: blur(5px); opacity: .45; user-select: none; }
.drill-msg { margin-top: auto; padding: 12px 14px; border-left: 3px solid var(--line); background: var(--panel); }
.drill-msg .mono { color: var(--mute); }
.drill-msg p { margin-top: 6px; font-size: 15px; line-height: 1.45; }
.drill-msg[data-kind="ok"] { border-left-color: var(--fg); }
.drill-msg[data-kind="fail"] { border-left-color: var(--signal); }
.drill-report { display: grid; gap: 18px; padding: 22px 18px; border-top: 1px solid var(--line); background: var(--panel); }
.drill-report[hidden] { display: none; }
.rep-head { display: flex; justify-content: space-between; gap: 16px; color: var(--mute); }
.rep-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.rep-grid div { padding: 14px 14px 0 0; }
.rep-grid .mono { color: var(--mute); }
.rep-grid b { display: block; margin-top: 8px; font-size: clamp(1.3rem, 2.2vw, 2rem); font-stretch: 118%; font-weight: 600; letter-spacing: -.02em; }
.rep-note { color: var(--mute); max-width: 46em; }
.rep-trouble { font-weight: 500; }
.rep-xapi summary { cursor: pointer; color: var(--mute); width: fit-content; }
.rep-xapi summary:hover { color: var(--signal); }
.rep-xapi pre { margin-top: 10px; max-height: 320px; overflow: auto; padding: 14px; background: var(--bg); border: 1px solid var(--line); font: 12px/1.5 var(--mono); white-space: pre; }
/* Sound toggle: a clear pill with a speaker icon; filled orange while sound is on */
.drill-reset.drill-sound { display: inline-flex; align-items: center; gap: 7px; margin-left: -10px; padding: 7px 13px 7px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--fg); color: var(--fg); transition: background .2s, color .2s, box-shadow .2s; }
.drill-sound svg { width: 17px; height: 17px; flex: none; }
.drill-reset.drill-sound:hover { box-shadow: inset 0 0 0 1.5px var(--signal); color: var(--signal); }
.drill-reset.drill-sound[aria-pressed="true"] { background: var(--signal); box-shadow: none; color: var(--on-signal); }
.drill-reset.drill-sound[aria-pressed="true"]:hover { background: var(--fg); color: var(--bg); }
.drill-sound:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
@media (max-width: 860px) {
  .drill-sound { margin-left: auto; }
  .drill-bar .drill-hud { width: auto; flex: 1 1 auto; }
  .drill-sound + .drill-reset { order: 4; margin-left: auto; }
}
@media (max-width: 560px) { .drill-bar { column-gap: 14px; } }
.drill-note { padding: 10px 16px; border-top: 1px solid var(--line); color: var(--mute); }

.cmp { border-top: 1px solid var(--line); }
.cmp-row { display: grid; grid-template-columns: 60px minmax(0, 1.1fr) minmax(0, 2fr); gap: 0 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cmp-row h3 { font-size: clamp(1.2rem, 1.8vw, 1.6rem); font-stretch: 118%; }
.cmp-row p { grid-column: 3; grid-row: 1; font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.4; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.cmp .o { color: var(--mute); }
html.js .cmp[data-state="old"] .v, html.js .cmp[data-state="vite"] .o { opacity: 0; transform: translateY(10px); pointer-events: none; }
html:not(.js) .cmp-row .v { grid-row: 2; margin-top: 8px; }
.cmp[data-state="vite"] .cmp-row h3 { color: var(--signal); transition: color .45s; }

.roi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.roi-in { padding-right: clamp(24px, 4vw, 56px); }
.rg { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 8px 16px; padding: 18px 0 14px; border-bottom: 1px solid var(--line); }
.rg span { color: var(--mute); }
.rg output { font: 600 1.3rem var(--display); font-stretch: 112%; }
.rg--key output { color: var(--signal); }
.rg input[type="range"] { grid-column: 1 / -1; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.rg input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--fg) var(--f, 50%), var(--line) var(--f, 50%)); }
.rg input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; border-radius: 50%; background: var(--signal); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--signal); }
.rg input[type="range"]::-moz-range-track { height: 2px; background: var(--line); }
.rg input[type="range"]::-moz-range-progress { height: 2px; background: var(--fg); }
.rg input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--signal); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--signal); }
.rg input[type="range"]:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.roi-out { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 26px 0 0 clamp(24px, 4vw, 56px); border-left: 1px solid var(--line); }
.roi-out .big { width: 100%; }
.roi-out .big span, .roi-mini span { color: var(--mute); }
.roi-out .big b { display: block; margin-top: 10px; font-size: clamp(2.4rem, 5vw, 4.6rem); font-stretch: 118%; font-weight: 600; letter-spacing: -.04em; line-height: 1; overflow-wrap: anywhere; }
.roi-out .big--signal b { color: var(--signal); }
.bars { display: grid; gap: 8px; width: 100%; }
.bar { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; }
.bar span { color: var(--mute); }
.bar i { display: block; height: 14px; width: var(--w, 0%); background: var(--fg); transition: width .5s var(--ease); }
.bar + .bar i { background: var(--signal); }
.roi-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; }
.roi-mini b { display: block; margin-top: 6px; font-size: 1.6rem; font-stretch: 112%; font-weight: 600; }

.steps-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-bottom: clamp(28px, 3vw, 48px); }
.steps-list button { position: relative; display: grid; gap: 10px; padding: 18px 16px 18px 0; border: 0; background: none; text-align: left; color: var(--mute); font: 600 clamp(1rem, 1.3vw, 1.2rem) var(--display); font-stretch: 112%; cursor: pointer; transition: color .3s; }
.steps-list button::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.steps-list button[aria-selected="true"] { color: var(--fg); }
.steps-list button[aria-selected="true"]::before { transform: scaleX(1); }
.steps-list button:hover { color: var(--fg); }
.steps-list button:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.steps-list .mono { color: var(--signal); }
.steps .step.active { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.step-copy h3 { font-size: clamp(1.6rem, 3vw, 2.8rem); font-stretch: 112%; letter-spacing: -.03em; line-height: 1.05; }
.step-copy p { margin: 18px 0 22px; color: var(--mute); max-width: 30em; }
.step-copy ul { display: grid; gap: 8px; }
.step-copy li::before { content: "→ "; color: var(--signal); font-family: var(--mono); }
.step-vis { aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel); }
.step-vis img { width: 100%; height: 100%; object-fit: cover; }
.step-card { display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 3vw, 40px); border: 1px solid var(--line); }
.step-vis.step-card { overflow: visible; }   /* keeps the 16:10 shape, but grows on narrow screens instead of clipping its list */
.step-card > .mono { color: var(--mute); }
.step-card ol { display: grid; gap: 12px; }
.step-card ol li { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.step-card ol i { flex: none; width: 10px; height: 10px; background: var(--signal); }
.dash { flex: 1; display: grid; align-content: center; gap: 12px; }
.dash div { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 12px; }
.dash i { display: block; height: 12px; width: var(--w); background: var(--fg); }
.dash .hot i { background: var(--signal); }


@media (max-width: 860px) {
  .hero-sub .btn-row { grid-column: 1; justify-self: start; flex-direction: row; align-items: center; margin-top: 24px; }
  .drill-body { grid-template-columns: 1fr; }
  .drill-stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .drill-hud { order: 3; width: 100%; margin-left: 0; }
  .drill-reset { margin-left: auto; }
  .rep-grid { grid-template-columns: 1fr 1fr; }
  .cmp-row { grid-template-columns: 40px minmax(0, 1fr); }
  .cmp-row p { grid-column: 2; grid-row: 2; margin-top: 8px; }
  html:not(.js) .cmp-row .v { grid-row: 3; }
  .roi { grid-template-columns: 1fr; }
  .roi-in { padding-right: 0; }
  .roi-out { padding: 26px 0 0; border-left: 0; }
  .steps-list { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .steps .step.active { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .seg--big button { padding: 12px 14px; font-size: 14px; }
  .drill-hud { gap: 14px; }
  .roi-mini { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .drill svg.running .ram, .drill svg.pump [data-fan], .drill .hs.next .ring { animation: none; }
}.steps .tab-panel .step-copy ul { display: grid; grid-template-columns: 1fr; gap: 8px; border-top: 0; }
.steps .tab-panel li { padding: 0; border-bottom: 0; color: var(--fg); }
.steps .tab-panel .step-card ol li { padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.drill-swipe { display: none; }
@media (max-width: 560px) {
  .drill-stage { overflow-x: auto; overscroll-behavior-x: contain; }
  .drill-stage svg { width: 640px; max-width: none; }
  .drill-swipe { display: block; padding: 8px 16px; border-bottom: 1px solid var(--line); color: var(--mute); }
}@media (max-width: 860px) { .drill-msg { order: -1; margin-top: 0; } }.scenes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.scene { display: grid; align-content: start; gap: 10px; padding: 0; border: 0; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.scene .img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--panel); margin-bottom: 6px; }
.scene .img::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--signal); transition: box-shadow .3s; }
.scene[aria-pressed="true"] .img::after { box-shadow: inset 0 0 0 3px var(--signal); }
.scene img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s, transform 1s var(--ease); }
.scene:hover img, .scene[aria-pressed="true"] img { filter: none; transform: scale(1.03); }
.scene:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.scene .mono { color: var(--signal); }
.scene b { font-size: 1.15rem; font-stretch: 112%; font-weight: 600; }
.scene p { color: var(--mute); font-size: 15px; }
.scenes-cap { margin: 18px 0 clamp(40px, 5vw, 72px); }
.scenes-cap b { color: var(--fg); font-weight: 500; }
@media (max-width: 860px) { .scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }.scenes { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.scene b { font-size: 1.05rem; }
.scene p { font-size: 14px; }
.scenes { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.scene p { font-size: 13.5px; }
/* Below wide desktop, seven cards become a swipeable strip */
@media (max-width: 1280px) {
  .scenes { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * clamp(12px, 1.6vw, 24px)) / 3.4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
  .scene { scroll-snap-align: start; }
}
@media (max-width: 860px) { .scenes { grid-auto-columns: 42%; } }
@media (max-width: 560px) { .scenes { grid-auto-columns: 72%; } }

/* Drill: real-time 3D work cell (js/vite-3d.js). The SVG stays as the fallback. */
.drill-3d { display: none; }
.drill-stage.is-3d { aspect-ratio: 16 / 10; background: #d8d5cf; overflow: hidden; }
.drill-stage.is-3d > svg { display: none; }
.drill-stage.is-3d .drill-3d { display: block; position: absolute; inset: 0; }
.drill.is-3d .drill-swipe { display: none; }
.drill-3d canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.drill-3d canvas:active { cursor: grabbing; }
.d3-tags { position: absolute; inset: 0; pointer-events: none; }
.d3-tag { position: absolute; left: 0; top: 0; pointer-events: auto; display: block; padding: 0; border: 0; background: none; cursor: pointer; color: #111213; font: 500 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.d3-tag span { position: absolute; left: 0; bottom: 9px; transform: translateX(calc(-50% + var(--sx, 0px))); padding: 5px 7px; background: rgba(255, 255, 255, .9); border: 1px solid rgba(17, 18, 19, .2); white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.d3-tag.l span { left: auto; right: 10px; bottom: auto; top: -11px; transform: none; }
.d3-tag.r span { left: 10px; bottom: auto; top: -11px; transform: none; }
.d3-tag i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #111213; box-shadow: 0 0 0 2px #fff; }
.d3-tag:hover span, .d3-tag.hover span, .d3-tag:focus-visible span { border-color: var(--signal); color: var(--signal); }
.d3-tag:focus-visible { outline: none; }
.d3-tag.next span { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.d3-tag.next i { background: var(--signal); animation: d3-pulse 1.4s ease-out infinite; }
.d3-tag.done span::after { content: " ✓"; color: var(--signal); }
.d3-tag.done.next span::after { color: #fff; }
/* Finished steps shrink to a check dot so they don't cover equipment you still need to handle */
.d3-tag.done:not(.next):not(:hover):not(:focus-visible) span { display: none; }
.d3-tag.done:not(.next) i { background: var(--signal); width: 8px; height: 8px; left: -4px; top: -4px; }
.d3-tag[hidden] { display: none; }
@keyframes d3-pulse { from { box-shadow: 0 0 0 2px #fff, 0 0 0 0 rgba(var(--signal-rgb), .7); } to { box-shadow: 0 0 0 2px #fff, 0 0 0 16px rgba(var(--signal-rgb), 0); } }
.d3-hint { position: absolute; left: 12px; bottom: 10px; margin: 0; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: rgba(17, 18, 19, .6); pointer-events: none; }
.d3-hint.step { right: 12px; width: fit-content; padding: 6px 9px; background: rgba(255, 255, 255, .9); border-left: 3px solid var(--signal); color: #111213; font-size: 11px; line-height: 1.35; }
@media (max-width: 860px) { .drill-stage.is-3d { aspect-ratio: 4 / 3; } }
@media (max-width: 560px) {
  .drill-stage.is-3d { aspect-ratio: 1 / 1; }
  .d3-tag { font-size: 9px; letter-spacing: .03em; }
  .d3-tag span { padding: 4px 5px; }
}
@media (prefers-reduced-motion: reduce) { .d3-tag.next i { animation: none; } }

/* ---------- Mobile polish: comfortable tap areas and a 12px floor for small labels ---------- */
@media (max-width: 860px) {
  /* Grow the touch area without moving anything: invisible padding offset by negative margin */
  .wordmark { position: relative; }
  .wordmark::after { content: ""; position: absolute; inset: -12px -6px; }
  .sec-label a.link, .tile > a.link { position: relative; }
  .sec-label a.link::after, .tile > a.link::after { content: ""; position: absolute; inset: -11px -6px; }
  .drill-reset { min-height: 44px; }
  .feat-tip b, .feat-tip .feat-meta, .pill, .swatch p, .st-card dt, .hero-hint { font-size: 12px; }
  /* Small orange labels: the bright signal is too faint at 12px on light sections; use its deeper shade */
  .case-num, .principle .mono, .person .mono, .tile > .mono.signal, .pill { color: var(--signal-text); }
}
/* Touch screens: industry tiles and sector scenes show in colour, since there is no hover to reveal it */
@media (hover: none) { .tile .img img, .scene img { filter: none; } }

/* ---------- Journal articles (journal/*.html) ---------- */
.page-head h1.post-title { font-size: clamp(2.1rem, 4.6vw, 4.6rem); font-stretch: 118%; letter-spacing: -.035em; line-height: 1; max-width: 17em; }
.post-hero { margin-top: clamp(32px, 4vw, 56px); }
.post-hero img { aspect-ratio: auto; max-height: 78vh; object-fit: contain; }
.sec--post { padding-top: clamp(40px, 5vw, 72px); }
.article { max-width: 44rem; margin: 0 auto; }
.article > * + * { margin-top: 1.1em; }
.article h2 { margin-top: 2em; font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-stretch: 112%; letter-spacing: -.03em; line-height: 1.1; }
.article h3 { margin-top: 1.8em; font-size: clamp(1.2rem, 1.7vw, 1.45rem); font-stretch: 108%; letter-spacing: -.02em; line-height: 1.2; }
.article h2 + *, .article h3 + * { margin-top: .6em; }
.article ul, .article ol { display: grid; gap: 10px; padding-left: 0; max-width: 38em; }
.article ul li, .article ol li { position: relative; padding-left: 26px; font-size: 1.08rem; }
.article ul li::before { content: ""; position: absolute; left: 0; top: .66em; width: 12px; height: 2px; background: var(--signal); }
.article ol { counter-reset: n; }
.article ol li { counter-increment: n; }
.article ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .2em; font: 500 12px var(--mono); color: var(--signal-text, var(--signal)); }
.article blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--signal); font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.45; }
.article .post-fig { margin: 2em 0; }
.article .post-fig img { width: 100%; height: auto; background: var(--panel); }
.article .post-fig figcaption { padding-top: 10px; font: 12px var(--mono); text-transform: uppercase; color: var(--mute); }
.article .table-wrap { margin: 1.6em 0; overflow-x: auto; }
.article table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.article th, .article td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article th { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .02em; color: var(--mute); border-bottom-color: var(--fg); }
.article a.link { display: inline; padding-bottom: 0; font-weight: 500; }

/* Contact form: spam trap and send status */
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 1.4em; margin-top: 4px; font-size: 1rem; }
.form-status[data-kind="ok"] { color: var(--fg); padding-left: 14px; border-left: 2px solid var(--signal); }
.form-status[data-kind="error"] { color: var(--signal-text, var(--signal)); }
