/* Arizona IdeaWorks base.css. Builder B3b, 11 Nov. Written from Terminal Industries' MEASURED numbers
   (dna/DNA.md, DETAILS.md, MOTION.md, crops at 2x) mapped dark on tokens.css. Nothing pasted from Terminal.
   No em or en dashes anywhere in this file.

   Markup as built: CONTRACT-DELTA-3a.md (it wins over HANDOFF.md B2). Main hooks:
     hero      .hero__media (data-slot=hero), .hero__grid, .fig > .fig__frame, .fig__b x4, .fig__x, .fig__y,
               .fig__c[data-side] x4 (label text; the leader is a pseudo-element; inline --cx --cy), .hero__text
     ideas     ol.tl > li.tl__step (.tl__node, .tl__text), li.tl__track + li.tl__fill, figcaption.figcap
               (.figcap__n, .figcap__t; the leader between them is CSS)
     bio       .bio .wrap > h2, .pcard, .bio__body, ul.xgrid
     contact   .contact .wrap > h2, p.contact__sub, .contact__l, .fcard, .opts > .opt, fieldset.checks > .check
     footer    footer.foot > .wrap.foot__in > .brand, p.foot__tag, nav.foot__nav > ul.foot__menu, p.foot__base
     portfolio div.chips[data-filter] > button.chip, .pf__count, ul.pf > li.pc > a > .pc__media + .pc__fig + h2 + .pc__m
     project   .pj-hero, .wrap.pj > h1, ul.pj__chips, dl.zrk, .pj__desc, .pj__gal > figure.pj-fig, .pj__vids, nav.pj__nav
     punch     .punch__scroll (table)      brief   form[data-flow] > fieldset.step, .step__nav
     ?slots    [data-slot] boxes; .ph placeholders carry span.ph__l
   aiw.js variables read here: --p on .hero (0 to 1), --tp on .tl (0 to 1), --na on a notched element (notch centre
   fraction, default .5). */

/* ---------- 0. ground, reset ---------- */
:root {
  color-scheme: dark;
  --hdr: calc(var(--head-top) + var(--head-h));
  /* hairline tile, 111px: 1px lines on two edges, crosshair arm stubs at the corners (DNA section 11) */
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='111' height='111'%3E%3Cpath d='M0 .5H111M.5 0V111' stroke='%23fff' stroke-opacity='.09'/%3E%3Cpath d='M0 .5H6M105 .5H111M.5 0V6M.5 105V111' stroke='%23fff' stroke-opacity='.42'/%3E%3C/svg%3E");
  --fig-line: rgba(255, 255, 255, .34);
  --fig-cl: rgba(194, 236, 98, .42);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100svh; background: var(--ground); color: var(--ink);
  font: 400 var(--t-body)/1.4 var(--f-sans); letter-spacing: .02em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
main { display: block; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 450; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
a { color: inherit; }
p a, .pj__desc a { color: var(--lime); text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--lime); color: var(--lime-ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.is-light :focus-visible { outline-color: var(--light-ink); }
.is-light .fcard :focus-visible { outline-color: var(--lime); }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100; padding: 14px 18px; border-radius: var(--r-8);
  background: var(--lime); color: var(--lime-ink); font: 600 var(--t-label)/1 var(--f-mono); letter-spacing: var(--t-label-tr);
  text-transform: uppercase; text-decoration: none; transition: top .2s var(--e-out);
}
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.smp { display: inline-block; margin-left: 2px; font-size: .9em; font-weight: 700; line-height: 1; letter-spacing: 0; text-transform: none; vertical-align: .22em; }
.lime { color: var(--lime); }
.is-light .lime { color: var(--lime-deep); }
section[id] { scroll-margin-top: 24px; }
#top { scroll-margin-top: 0; }

/* mono label (Terminal label-3: 13 / .18em / uppercase, the #7f7f7f role) */
.eyebrow, .tl__n, .contact__k, .pf__count, .foot__tag {
  font: 400 var(--t-label)/1.25 var(--f-mono); letter-spacing: var(--t-label-tr); text-transform: uppercase; color: var(--ink-3);
}

/* ---------- 1. buttons (Terminal header button: mono 11 / 600, two stacked words, fill rises from the bottom .7s expo.out,
   label turns colour .3s, a 1px underline draws under the label) ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 8px var(--btn-px); border: 0; border-radius: var(--r-8);
  font: 600 var(--t-btn)/1.2 var(--f-mono); letter-spacing: var(--t-btn-tr); text-transform: uppercase; text-align: center;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: color var(--d-col) var(--e-col), box-shadow var(--d-col) var(--e-col);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-fill, var(--ground-2));
  transform: translate3d(0, 101%, 0); transition: transform var(--d-fill) var(--e-out);
}
.btn::after {
  content: ""; position: absolute; left: var(--btn-px); right: var(--btn-px); bottom: 7px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform var(--d-fill) var(--e-out);
}
.btn svg { width: 12px; height: 12px; flex: none; }
.btn--lime { background: var(--lime); color: var(--lime-ink); --btn-fill: var(--ground-2); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); --btn-fill: var(--lime); }
@media (hover: hover) {
  .btn:hover::before { transform: translate3d(0, 0, 0); }
  .btn:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
  .btn--lime:hover { color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
  .btn--line:hover { color: var(--lime-ink); box-shadow: inset 0 0 0 1px var(--lime); }
  .is-light .btn--line:hover { color: var(--lime); box-shadow: inset 0 0 0 1px var(--light-ink); }
}
.btn:focus-visible::before { transform: translate3d(0, 0, 0); }
.btn--lime:focus-visible { color: var(--lime); }
.btn--line:focus-visible { color: var(--lime-ink); }
.is-light .btn--line { color: var(--light-ink); box-shadow: inset 0 0 0 1px rgba(20, 24, 28, .4); --btn-fill: var(--light-ink); }
.is-light .btn--line:focus-visible { color: var(--lime); }
.is-light .fcard .btn--line { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); --btn-fill: var(--lime); }
/* buttons in page content: Terminal's 58px mono CTA (13 / 600 / .18em) */
main .btn { min-height: 58px; padding: 12px 28px; font-size: var(--t-label); letter-spacing: var(--t-label-tr); }
main .btn::after { bottom: 14px; left: 28px; right: 28px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* ---------- 2. floating glass header (DNA section 9: fixed, top 46 / 25, bar padding 18, gap 24, radius 8, blur 30,
   never changes on scroll). The glass sits on ::before so the bar itself has no backdrop-filter: a filter on the bar
   would trap the fixed drawer inside it. ---------- */
.head {
  position: fixed; left: 0; right: 0; top: var(--head-top); z-index: 50;
  display: flex; justify-content: center; padding-inline: var(--gutter); pointer-events: none;
}
.head::before {
  content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; pointer-events: none;
  transition: opacity .25s ease-out;
}
.head.is-open::before { opacity: 1; }
.head__bar {
  position: relative; isolation: isolate; pointer-events: auto;
  display: flex; align-items: center; gap: 24px; max-width: 100%;
  padding: var(--head-pad); border-radius: var(--r-8);
}
.head__bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--glass); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
}
/* over the ONE light section the glass would mix to a muddy mid grey: aiw.js sets .is-on-light while the bar crosses it,
   and the glass turns a near-solid charcoal (white nav text stays far above AA) */
.head__bar::before { transition: background-color .3s var(--e-col); }
.head.is-on-light .head__bar::before { background: rgba(20, 24, 28, .94); box-shadow: 0 10px 30px rgba(20, 24, 28, .14); }
.brand { position: relative; z-index: 2; display: block; flex: none; border-radius: 4px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; }
.nav__list { position: relative; display: flex; align-items: center; list-style: none; }
.nav__list a {
  position: relative; z-index: 1; display: block; padding: 14px 14px;
  font: 450 var(--t-nav)/1 var(--f-sans); letter-spacing: .03em; color: var(--ink); text-decoration: none; white-space: nowrap;
  border-radius: var(--r-8); transition: color var(--d-col) cubic-bezier(0, 0, .58, 1);
}
/* the glide pill (glide.js sets width and transform) */
.nav__glide {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 0; width: 0; list-style: none;
  border-radius: var(--r-8); background: rgba(194, 236, 98, .12); box-shadow: inset 0 0 0 1px rgba(194, 236, 98, .34);
  opacity: 0; pointer-events: none;
  transition: transform .55s var(--e-out), width .55s var(--e-out), opacity .2s linear;
}
.nav__glide.is-on { opacity: 1; }
.nav__acts { display: none; }
.head__acts { display: flex; align-items: center; gap: var(--btn-gap); flex: none; }
.burger {
  position: relative; z-index: 2; display: none; place-items: center; flex: none; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: var(--r-8); background: transparent; color: var(--ink); cursor: pointer;
}
.burger svg, .burger__lines { width: 20px; height: 14px; }
.burger__lines { position: relative; display: block; }
.burger__lines span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .3s var(--e-drawer), opacity .2s, width .3s var(--e-drawer); }
.burger__lines span:nth-child(1) { top: 0; }
.burger__lines span:nth-child(2) { top: 6px; }
.burger__lines span:nth-child(3) { top: 12px; width: 70%; }
.burger[aria-expanded="true"] .burger__lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.burger[aria-expanded="true"] .burger__lines span:nth-child(3) { width: 100%; transform: translateY(-6px) rotate(-45deg); }
.nav__demo { display: none; }

@media (max-width: 1100px) {
  .head__bar { width: 100%; height: var(--head-h); padding: 10px 10px 10px 20px; gap: 12px; justify-content: space-between; }
  .brand img { height: 28px; }
  .head__acts, .nav__glide { display: none; }
  .burger { display: inline-grid; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1; width: min(320px, 100%);
    flex-direction: column; align-items: stretch; gap: 28px; overflow-y: auto; overscroll-behavior: contain;
    padding: calc(var(--hdr) + 24px) 24px 28px;
    background: rgba(14, 17, 20, .9); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
    transform: translate3d(100%, 0, 0); visibility: hidden;
    transition: transform .3s var(--e-drawer), visibility 0s linear .3s;
  }
  .nav.is-open { transform: translate3d(0, 0, 0); visibility: visible; transition: transform .3s var(--e-drawer), visibility 0s; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__list li { border-bottom: 1px solid rgba(255, 255, 255, .2); }
  .nav__list a { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-size: 16px; letter-spacing: -.01em; border-radius: 0; }
  .nav__list a[aria-current]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
  .nav__acts { display: grid; gap: var(--btn-gap); margin-top: auto; }
  .nav__acts .btn { min-height: 54px; }
  .nav__demo {
    position: relative; z-index: 2; display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px;
    margin-left: auto; padding: 0; border: 0; border-radius: var(--r-8); background: transparent; color: var(--ink); cursor: pointer;
  }
  .nav__demo:hover, .nav__demo[aria-expanded="true"] { background: rgba(255, 255, 255, .1); }
  .nav__demo svg { width: 22px; height: 22px; }
}
@media (max-width: 560px) { .nav { width: 100%; } }

/* ---------- 3. hero: his render with a technical framing layer that draws with scroll (--p from aiw.js).
   Windows: frame + brackets .08 to .40, centrelines .20 to .45, callouts .35 to .60, grid .25 to .60, exit .78 to 1. ---------- */
.hero { position: relative; height: 220svh; background: var(--void); }
.hero, .hero__stage {
  --k1: clamp(0, (var(--p, 0) - .08) / .32, 1);
  --k2: clamp(0, (var(--p, 0) - .20) / .25, 1);
  --k4: clamp(0, (var(--p, 0) - .25) / .35, 1);
  --k5: clamp(0, (var(--p, 0) - .78) / .22, 1);
}
.hero__stage {
  --mh: calc(100svh - var(--hdr) - 8px);
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: var(--hdr) minmax(150px, 1fr) auto; grid-template-columns: minmax(0, 1fr);
}
.hero__media { grid-row: 2; grid-column: 1; position: relative; }
.hero__media {
  z-index: 0; overflow: hidden;
  opacity: calc(1 - var(--k5) * .88);
  transform: scale(calc(1.06 - var(--k1) * .06));
  translate: 0 calc(var(--past, 0px) * .5); /* aiw.js --past: px after release, picture at 0.5x */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 80%, transparent 100%);
}
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 50%; }
.hero__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--tile) 0 0 / 111px 111px;
  opacity: calc(var(--k4) * (1 - var(--k5)));
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 62% 48%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 72% 70% at 62% 48%, #000 25%, transparent 78%);
}
/* .fig is the render's own 16:9 box, so the inline --fx --fy --fw --fh and each callout's --cx --cy (all % of the
   render) land on the product at every width */
.fig {
  grid-row: 2; grid-column: 1; position: relative; justify-self: center; height: 100%; width: auto; aspect-ratio: 16 / 9;
  z-index: 2; pointer-events: none; opacity: calc(1 - var(--k5));
  --cl: clamp(16px, 4.4vw, 84px);
}
.fig > * { position: absolute; }
.fig__frame { left: var(--fx); top: var(--fy); width: var(--fw); height: var(--fh); }
.fig__frame::before, .fig__frame::after { content: ""; position: absolute; inset: 0; border: 0 solid var(--fig-line); }
.fig__frame::before { border-width: 1px 0; transform: scaleX(var(--k1)); }
.fig__frame::after { border-width: 0 1px; transform: scaleY(var(--k1)); }
.fig__b { width: 22px; height: 22px; border: 0 solid var(--lime); opacity: var(--k1); transform: scale(calc(.5 + .5 * var(--k1))); }
.fig__b--tl { left: calc(var(--fx) - 7px); top: calc(var(--fy) - 7px); border-width: 1px 0 0 1px; transform-origin: 7px 7px; }
.fig__b--tr { left: calc(var(--fx) + var(--fw) - 15px); top: calc(var(--fy) - 7px); border-width: 1px 1px 0 0; transform-origin: 15px 7px; }
.fig__b--bl { left: calc(var(--fx) - 7px); top: calc(var(--fy) + var(--fh) - 15px); border-width: 0 0 1px 1px; transform-origin: 7px 15px; }
.fig__b--br { left: calc(var(--fx) + var(--fw) - 15px); top: calc(var(--fy) + var(--fh) - 15px); border-width: 0 1px 1px 0; transform-origin: 15px 15px; }
.fig__x {
  left: calc(var(--fx) - 28px); top: calc(var(--fy) + var(--fh) / 2); width: calc(var(--fw) + 56px); height: 1px;
  background: repeating-linear-gradient(90deg, var(--fig-cl) 0 6px, transparent 6px 12px); transform: scaleX(var(--k2));
}
.fig__y {
  left: calc(var(--fx) + var(--fw) / 2); top: calc(var(--fy) - 28px); width: 1px; height: calc(var(--fh) + 56px);
  background: repeating-linear-gradient(180deg, var(--fig-cl) 0 6px, transparent 6px 12px); transform: scaleY(var(--k2));
}
/* callouts: the span is the mono tag; ::before is the leader, ::after the dot sitting on the part at --cx --cy */
.fig__c {
  --kc: clamp(0, (var(--p, 0) - .35 - var(--ci, 0) * .05) / .1, 1);
  left: var(--cx, 50%); top: var(--cy, 50%); padding: 5px 7px; white-space: nowrap;
  background: rgba(8, 10, 11, .74); color: var(--ink);
  font: 500 11px/1 var(--f-mono); letter-spacing: var(--t-label-tr); text-transform: uppercase;
  translate: calc(var(--cl) + 10px) -50%; opacity: clamp(0, var(--kc) * 3, 1);
  transform: translate3d(calc((1 - var(--kc)) * -8px), 0, 0);
}
.fig__c::before {
  content: ""; position: absolute; top: 50%; right: calc(100% + 6px); width: var(--cl); height: 1px;
  background: rgba(255, 255, 255, .6); transform: scaleX(var(--kc)); transform-origin: 0 50%;
}
.fig__c::after {
  content: ""; position: absolute; top: 50%; right: calc(100% + var(--cl) + 6px); width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; box-shadow: inset 0 0 0 1px var(--lime); background: radial-gradient(circle, var(--lime) 0 1.6px, transparent 2.2px);
}
.fig__c[data-side="l"] { translate: calc(-100% - var(--cl) - 10px) -50%; transform: translate3d(calc((1 - var(--kc)) * 8px), 0, 0); }
.fig__c[data-side="l"]::before { right: auto; left: calc(100% + 6px); transform-origin: 100% 50%; }
.fig__c[data-side="l"]::after { right: auto; left: calc(100% + var(--cl) + 6px); }
.fig__c:nth-child(1 of .fig__c) { --ci: 0; color: var(--lime); }
.fig__c:nth-child(2 of .fig__c) { --ci: 1; }
.fig__c:nth-child(3 of .fig__c) { --ci: 2; }
.fig__c:nth-child(4 of .fig__c) { --ci: 3; }

.hero__text, .hero__copy {
  grid-row: 3; grid-column: 1; position: relative; z-index: 3; padding: 4px var(--gutter) clamp(20px, 4svh, 40px);
  opacity: calc(1 - var(--k5)); transform: translate3d(0, calc(var(--k5) * -48px), 0);
}
.hero .eyebrow { color: var(--ink-2); }
.hero h1 {
  margin: 14px 0 14px; font-size: min(var(--t-display), 14.5vw); line-height: var(--t-display-lh); font-weight: 450;
  letter-spacing: -.03em; text-transform: uppercase; text-wrap: nowrap;
}
.hero h1 em { font-style: normal; color: var(--lime); }
.hero__text > p:not(.eyebrow), .hero__copy > p:not(.eyebrow) { max-width: 34em; color: var(--ink-2); }
.hero .btn { margin-top: 18px; }
.hero :is(.hero__acts, .hero__btns, .hero__actions) { display: flex; flex-wrap: wrap; gap: 9px 12px; margin-top: 20px; }
.hero :is(.hero__acts, .hero__btns, .hero__actions) .btn { margin-top: 0; }
@media (max-width: 767px) {
  .hero .btn { min-height: 50px; padding: 10px 18px; letter-spacing: .12em; }
  .hero .btn::after { left: 18px; right: 18px; bottom: 11px; }
  .fig { --cl: 14px; }
  .fig__c { font-size: 10px; letter-spacing: .12em; padding: 4px 5px; white-space: normal; width: max-content; max-width: 7em; line-height: 1.25; }
}
@media (max-width: 1023px) and (max-height: 720px) {
  .hero h1 { font-size: min(46px, 12vw); }
  .hero__text > p:not(.eyebrow), .hero__copy > p:not(.eyebrow) { font-size: 16px; }
}
/* desktop: the render sits right of the copy, height-limited so the frame maths holds */
@media (min-width: 1024px) and (min-aspect-ratio: 4/3) {
  .hero__stage { display: block; --mw: min(70vw, calc(var(--mh) * 1.7)); }
  .hero__media { position: absolute; right: 0; bottom: 0; width: var(--mw); height: var(--mh); }
  .hero .fig { position: absolute; bottom: 0; height: var(--mh); width: calc(var(--mh) * 16 / 9); right: calc(var(--mw) / 2 - var(--mh) * 8 / 9); }
  .hero__media {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%), linear-gradient(180deg, transparent 0, #000 10%, #000 86%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 24%), linear-gradient(180deg, transparent 0, #000 10%, #000 86%, transparent 100%);
    mask-composite: intersect;
  }
  .hero__text, .hero__copy {
    position: absolute; left: 0; bottom: clamp(32px, 7svh, 80px); padding: 0 0 0 var(--gutter);
    width: calc(100vw - var(--mw) / 2 - var(--mh) * .338 - 32px);
  }
}
/* the hero to IDEAS seam: Terminal's separator A, a 48px band whose top edge dips 40 (20 on phones) */
.ideas, .contact { position: relative; }
.ideas::before, .contact::before {
  --sf: min(450px, 31.25%); --st: calc(var(--sf) + 36px); --sd: 40px;
  content: ""; position: absolute; left: 0; right: 0; top: -47px; height: 48px; z-index: 1; pointer-events: none;
  background: var(--ground);
  clip-path: polygon(0 0, calc(50% - var(--st) - 14px) 0, calc(50% - var(--st) - 4px) 1px, calc(50% - var(--st) + 3px) 3.5px,
    calc(50% - var(--sf) - 4px) calc(var(--sd) - 3.5px), calc(50% - var(--sf) + 3px) calc(var(--sd) - .6px), calc(50% - var(--sf) + 14px) var(--sd),
    calc(50% + var(--sf) - 14px) var(--sd), calc(50% + var(--sf) - 3px) calc(var(--sd) - .6px), calc(50% + var(--sf) + 4px) calc(var(--sd) - 3.5px),
    calc(50% + var(--st) - 3px) 3.5px, calc(50% + var(--st) + 4px) 1px, calc(50% + var(--st) + 14px) 0, 100% 0, 100% 100%, 0 100%);
}
/* separator B (20 deep, wider shoulders) in the light ground over the bio's end */
.contact::before { --sd: 20px; --st: calc(var(--sf) + 36px); background: var(--light); }
@media (max-width: 767px) { .ideas::before, .contact::before { --sf: 28.4%; --st: calc(var(--sf) + 32px); --sd: 20px; } }

/* ---------- 4. notches (DETAILS.md). Polygon fallback; aiw.js swaps in the filleted path() on load and resize.
   Cards: opening 44% / floor 36% of the edge. Bands (footer, sections): 70% / 60%. ---------- */
[data-notch] { --no: .44; --nf: .36; position: relative; }
:is(.foot, section)[data-notch] { --no: .70; --nf: .60; }
[data-notch="top"] {
  clip-path: polygon(0 0, calc(var(--na, .5) * 100% - var(--no) * 50%) 0, calc(var(--na, .5) * 100% - var(--nf) * 50%) var(--notch),
    calc(var(--na, .5) * 100% + var(--nf) * 50%) var(--notch), calc(var(--na, .5) * 100% + var(--no) * 50%) 0, 100% 0, 100% 100%, 0 100%);
}
[data-notch="bottom"] {
  clip-path: polygon(0 0, 100% 0, 100% 100%, calc(var(--na, .5) * 100% + var(--no) * 50%) 100%, calc(var(--na, .5) * 100% + var(--nf) * 50%) calc(100% - var(--notch)),
    calc(var(--na, .5) * 100% - var(--nf) * 50%) calc(100% - var(--notch)), calc(var(--na, .5) * 100% - var(--no) * 50%) 100%, 0 100%);
}
[data-notch="left"] {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 calc(var(--na, .5) * 100% + var(--no) * 50%), var(--notch) calc(var(--na, .5) * 100% + var(--nf) * 50%),
    var(--notch) calc(var(--na, .5) * 100% - var(--nf) * 50%), 0 calc(var(--na, .5) * 100% - var(--no) * 50%));
}
[data-notch="right"] {
  clip-path: polygon(0 0, 100% 0, 100% calc(var(--na, .5) * 100% - var(--no) * 50%), calc(100% - var(--notch)) calc(var(--na, .5) * 100% - var(--nf) * 50%),
    calc(100% - var(--notch)) calc(var(--na, .5) * 100% + var(--nf) * 50%), 100% calc(var(--na, .5) * 100% + var(--no) * 50%), 100% 100%, 0 100%);
}
/* Terminal's PathBackground: the same outline as a 1px line in a lighter shade of the fill */
.nl { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.nl path { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ---------- 5. placeholder slot (no stock, ever): raised field, crosshair corners, mono W x H ---------- */
.ph {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: var(--ph-ar, 4 / 3);
  color: var(--ink-3); font: 500 12px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; text-align: center;
  background:
    linear-gradient(var(--cross), var(--cross)) left 12px top 12px / 16px 1px no-repeat,
    linear-gradient(var(--cross), var(--cross)) left 12px top 12px / 1px 16px no-repeat,
    linear-gradient(var(--cross), var(--cross)) right 12px top 12px / 16px 1px no-repeat,
    linear-gradient(var(--cross), var(--cross)) right 12px top 12px / 1px 16px no-repeat,
    linear-gradient(var(--cross), var(--cross)) left 12px bottom 12px / 16px 1px no-repeat,
    linear-gradient(var(--cross), var(--cross)) left 12px bottom 12px / 1px 16px no-repeat,
    linear-gradient(var(--cross), var(--cross)) right 12px bottom 12px / 16px 1px no-repeat,
    linear-gradient(var(--cross), var(--cross)) right 12px bottom 12px / 1px 16px no-repeat,
    var(--raised);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- 6. section headings ---------- */
:is(.ideas, .bio, .contact) h2, .pf__head h1, .k-brief h1, .k-punch h1, .k-legal h1 {
  max-width: var(--head-col); margin-inline: auto; text-align: center;
  font-size: var(--t-h2); line-height: 1; font-weight: 450; letter-spacing: calc(var(--t-h2-tr) * .6); text-transform: uppercase;
}
.ideas h2 span, .ideas h2 em { font-style: normal; color: var(--lime); }

/* ---------- 7. I.D.E.A.S. alternating timeline (Terminal's steps list: lit vs not-yet-reached is colour, .3s) ---------- */
.ideas { background: var(--ground); padding: var(--sec-pt) 0 var(--sec-pb); }
.tl { --tl-gap: clamp(96px, 12.5vw, 200px); position: relative; list-style: none; margin-top: clamp(56px, 7vw, 110px); padding: 0; }
.tl__track, .tl__fill { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; margin-left: -.5px; list-style: none; pointer-events: none; }
.tl__track { background: var(--line-2); }
.tl__fill { background: var(--lime); transform: scaleY(var(--tp, 0)); transform-origin: 50% 0; }
.tl__track .tl__fill { left: 0; margin: 0; }
.tl__step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.tl__step + .tl__step { margin-top: clamp(56px, 8vw, 140px); }
.tl__node {
  position: absolute; width: 15px; height: 15px; border-radius: 50%; z-index: 2;
  background: var(--lime); box-shadow: 0 0 0 5px rgba(194, 236, 98, .14);
  transition: background-color var(--d-col) var(--e-col), box-shadow var(--d-col) var(--e-col);
}
.tl__n { color: var(--lime); font-weight: 500; transition: color var(--d-col) var(--e-col); }
.tl__text h3 {
  margin: 12px 0 14px; font-size: var(--t-statement); line-height: 1.12; font-weight: 450; letter-spacing: -.01em; text-transform: uppercase;
  transition: color var(--d-col) var(--e-col);
}
.tl__text p { color: var(--ink-2); max-width: 30em; transition: color var(--d-col) var(--e-col); }
.tl__media { position: relative; }
.tl__media > :is(picture, .ph, [data-slot]) { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-10); background: var(--raised); }
.tl__media img { width: 100%; height: 100%; object-fit: cover; }
.tl__media > [data-slot] picture { height: 100%; }
/* his own 580px sketch: never drawn past its file, centred on the panel's dark ground */
.tl__media > .tl__img--fit { display: grid; place-items: center; background: var(--void); }
.tl__media > .tl__img--fit picture { width: 100%; max-width: 580px; height: 100%; }
.tl__media > .tl__img--fit img { object-fit: contain; }
.tl__media { transition: opacity var(--d-col) var(--e-col); }
/* dimmed only once aiw.js runs (it writes --tp on .tl); without JS every step is lit. Dim stays AA (ink-3, 5:1). */
html.js .tl .tl__step:not(.is-past):not(.is-cur) :is(.tl__n, h3, p) { color: var(--ink-3); }
html.js .tl .tl__step:not(.is-past):not(.is-cur) .tl__node { background: var(--ground); box-shadow: inset 0 0 0 1px var(--line-2); }
html.js .tl .tl__step:not(.is-past):not(.is-cur) .tl__media { opacity: .5; }
.tl__step.is-cur .tl__node { box-shadow: 0 0 0 6px rgba(194, 236, 98, .2); }

/* figure caption with a leader (Oxide style): FIG label, a hairline, the title */
.figcap {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; min-width: 0;
  font: 400 12px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.figcap > :first-child { order: 1; flex: none; color: var(--lime); font-weight: 500; }
.figcap::after { content: ""; order: 2; flex: 0 1 72px; min-width: 20px; height: 1px; background: var(--line-2); }
/* the title wraps (never an ellipsis: a cut project name reads broken on a phone); the leader holds the first line */
.figcap { align-items: flex-start; }
.figcap::after { margin-top: .65em; }
.figcap > :last-child { order: 3; min-width: 0; flex: 1 1 0; overflow-wrap: anywhere; }
.figcap > :empty { display: none; }
.is-light .figcap { color: var(--light-ink-2); }
.is-light .figcap > :first-child { color: var(--lime-deep); }

@media (max-width: 767px) {
  .tl { padding-left: 36px; }
  .tl__track, .tl__fill { left: 7.5px; }
  .tl__track .tl__fill { left: 0; }
  .tl__node { left: -36px; top: 2px; }
  .tl__text { grid-row: 1; }
  .tl__media { grid-row: 2; }
}
@media (min-width: 768px) {
  .tl__step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--tl-gap); align-items: center; }
  .tl__node { left: 50%; top: 50%; margin: -7.5px 0 0 -7.5px; }
  .tl__media { grid-column: 1; grid-row: 1; }
  .tl__text { grid-column: 2; grid-row: 1; }
  .tl__step:nth-child(even of .tl__step) .tl__media { grid-column: 2; }
  .tl__step:nth-child(even of .tl__step) .tl__text { grid-column: 1; text-align: right; justify-self: end; }
  .tl__step:nth-child(even of .tl__step) .tl__text p { margin-left: auto; }
  /* connector from the node into the media's notch */
  .tl__step::before {
    content: ""; position: absolute; top: 50%; height: 1px; z-index: 0; background: var(--line-2);
    left: calc(50% - var(--tl-gap) / 2 - 20px); width: calc(var(--tl-gap) / 2 + 20px - 12px);
  }
  .tl__step:nth-child(even of .tl__step)::before { left: calc(50% + 12px); }
}

/* ---------- 8. bio: notched portrait card, chips on the hairline crosshair grid ---------- */
.bio { background: var(--ground); padding: var(--sec-pb) 0 calc(var(--sec-dark) + 24px); }
.bio h2 { margin-bottom: clamp(48px, 6vw, 96px); }
.bio :has(> .pcard) { display: grid; gap: 40px; align-items: start; }
.bio :has(> .pcard) > h2 { grid-column: 1 / -1; }
.pcard {
  position: relative; justify-self: center; width: 100%; max-width: 580px;
  padding: calc(var(--notch) + 18px) 20px 22px; background: var(--raised);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center;
}
.pcard > :is(picture, [data-slot], .ph) { grid-column: 1 / -1; margin-bottom: 20px; border-radius: var(--r-12); overflow: hidden; background: var(--raised-2); }
.pcard img { width: 100%; height: auto; }
.pcard :is(h3, .pcard__name) { grid-column: 1; grid-row: 2; font-size: var(--t-h3); line-height: 1.3; letter-spacing: 0; text-transform: uppercase; }
.pcard :is(.pcard__role, h3 + p) { grid-column: 1; grid-row: 3; margin-top: 6px; font: 400 12px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.pcard a[href^="mailto:"] {
  grid-column: 2; grid-row: 2 / span 2; display: inline-grid; place-items: center; width: 48px; height: 48px;
  border-radius: var(--r-8); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--lime);
  transition: background-color var(--d-col) var(--e-col), color var(--d-col) var(--e-col);
}
.pcard a[href^="mailto:"]:hover { background: var(--lime); color: var(--lime-ink); }
.pcard a[href^="mailto:"] svg { width: 20px; height: 20px; }
.bio__body h3, .bio :has(> .pcard) > div > h3 {
  font-size: var(--t-statement); line-height: 1.15; font-weight: 450; letter-spacing: -.01em; text-transform: uppercase;
}
.bio__body h3 > span, .bio__body h3 > br + * { display: block; }
.bio__body p { margin-top: 22px; color: var(--ink-2); max-width: 36em; line-height: 1.5; }
.xgrid {
  position: relative; list-style: none; margin-top: clamp(36px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.xgrid li {
  position: relative; display: flex; align-items: flex-end; min-height: 88px; padding: 18px 20px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font: 500 var(--t-label)/1.35 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
/* crosshair marks, 11px arms, centred on every corner (DNA section 11) */
.xgrid li::before, .xgrid li::after, .xgrid::before, .xgrid::after {
  content: ""; position: absolute; width: 11px; height: 11px; pointer-events: none;
  background: linear-gradient(var(--cross), var(--cross)) center / 11px 1px no-repeat, linear-gradient(var(--cross), var(--cross)) center / 1px 11px no-repeat;
}
.xgrid li::before { left: -6px; top: -6px; }
.xgrid li::after { left: -6px; bottom: -6px; }
.xgrid::before { right: -5px; top: -6px; }
.xgrid::after { right: -5px; bottom: -5px; }
@media (prefers-reduced-motion: no-preference) {
  .xgrid li:nth-child(2)::before { animation: xpulse 2.8s var(--e-in-out) infinite; }
}
@keyframes xpulse { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.9); } }
@media (min-width: 768px) { .xgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .xgrid li { min-height: var(--cell); } }
@media (min-width: 1024px) {
  .bio :has(> .pcard) { grid-template-columns: minmax(290px, 520px) minmax(0, 1fr); column-gap: clamp(48px, 7vw, 120px); align-items: center; }
  .pcard { justify-self: start; }
}

/* ---------- 9. contact: THE ONE LIGHT SECTION, dark notched form card ---------- */
.contact.is-light, .is-light { background: var(--light); color: var(--light-ink); color-scheme: light; }
.contact { padding: var(--sec-pt) 0 calc(var(--sec-dark) + var(--notch)); }
.is-light :is(h1, h2, h3) { color: var(--light-ink); }
.is-light p, .is-light address { color: var(--light-ink-2); }
.is-light :is(.eyebrow, .contact__k) { color: var(--lime-deep); }
.contact h2 + p { max-width: 40em; margin: 18px auto 0; text-align: center; }
.contact__l, .contact .fcard { margin-top: clamp(48px, 6vw, 96px); }
.contact__lk { display: block; margin-bottom: 8px; font: 500 var(--t-label)/1.2 var(--f-mono); letter-spacing: var(--t-label-tr); color: var(--lime-deep); }
.contact__k { font-weight: 500; }
.contact__l h3, .fcard h3 {
  margin: 14px 0 18px; font-size: var(--t-statement); line-height: 1.15; letter-spacing: -.01em; text-transform: uppercase;
}
.contact a[href^="tel:"] {
  display: inline-block; margin: 4px 0 6px; color: var(--light-ink); text-decoration: none;
  font-size: clamp(30px, 3.4vw, 54px); line-height: 1.05; font-weight: 450; letter-spacing: -.03em;
  transition: color var(--d-col) var(--e-col);
}
.contact a[href^="tel:"]:hover { color: var(--lime-deep); }
.contact__l a[href^="mailto:"] {
  color: var(--light-ink); font-size: 20px; text-decoration-thickness: 1px; text-underline-offset: .28em;
}
.contact address { font-style: normal; }
.contact__line { margin-top: 10px; }
.fcard__k { font: 500 var(--t-label)/1.25 var(--f-mono); letter-spacing: var(--t-label-tr); text-transform: uppercase; color: var(--ink-2); }
.is-light .fcard .lime { color: var(--lime); }
.fcard__sub { margin: -4px 0 28px; }
.opts {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); margin-top: clamp(32px, 4vw, 52px);
  border-top: 1px solid var(--light-line);
}
.opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px 0 30px; border-bottom: 1px solid var(--light-line); }
.opt h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; letter-spacing: -.01em; text-transform: uppercase; }
.opt h3 > span { display: block; }
.opt p { flex: 1 1 auto; }
.opt .btn { margin-top: 8px; }
.opt > :first-child:not(h3) { font: 500 var(--t-label)/1.2 var(--f-mono); letter-spacing: var(--t-label-tr); text-transform: uppercase; color: var(--lime-deep); }
@media (min-width: 600px) {
  .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opt { padding-right: 24px; }
  .opt + .opt { padding-left: 24px; border-left: 1px solid var(--light-line); }
  .opt + .opt::before, .opt + .opt::after {
    content: ""; position: absolute; left: -6px; width: 11px; height: 11px;
    background: linear-gradient(rgba(20, 24, 28, .5), rgba(20, 24, 28, .5)) center / 11px 1px no-repeat, linear-gradient(rgba(20, 24, 28, .5), rgba(20, 24, 28, .5)) center / 1px 11px no-repeat;
  }
  .opt + .opt::before { top: -6px; }
  .opt + .opt::after { bottom: -6px; }
}
.fcard {
  --na: .5; position: relative; color: var(--ink); color-scheme: dark; background: var(--ground);
  padding: clamp(28px, 3.6vw, 52px); padding-left: calc(var(--notch) + clamp(24px, 3.2vw, 48px));
}
.fcard :is(h2, h3) { color: var(--ink); }
.fcard p, .fcard label, .fcard legend { color: var(--ink-2); }
@media (min-width: 1024px) {
  .contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 630px); column-gap: clamp(48px, 6vw, 110px); align-items: start; }
  .contact .wrap > :not(.contact__l):not(.fcard) { grid-column: 1 / -1; }
}

/* ---------- 10. forms (contact + design brief). Terminal's dark form: 1px underline inputs, mono submit ---------- */
.contact-form { display: grid; gap: 26px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .contact-form legend { font: 400 14px/1.4 var(--f-sans); letter-spacing: .02em; color: var(--ink-2); }
.field :is(small, .field__hint) { font: 400 12px/1.4 var(--f-mono); letter-spacing: .08em; color: var(--ink-3); }
.contact-form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]), textarea, select) {
  width: 100%; min-height: 48px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 18px/1.4 var(--f-sans); letter-spacing: .01em;
  transition: border-color var(--d-col) var(--e-col), box-shadow var(--d-col) var(--e-col);
}
.contact-form ::placeholder { color: var(--ink-3); opacity: 1; }
.contact-form textarea { min-height: 132px; resize: vertical; }
.contact-form select {
  -webkit-appearance: none; appearance: none; padding-right: 28px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23C2EC62' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center / 12px 8px no-repeat;
}
.contact-form select option { background: var(--raised); color: var(--ink); }
.contact-form :is(input, textarea, select):focus-visible { outline: none; border-bottom-color: var(--lime); box-shadow: 0 1px 0 var(--lime); }.contact-form :is(input, textarea, select)[aria-invalid="true"] { border-bottom-color: var(--err); box-shadow: 0 1px 0 var(--err); }
.field__err { margin: 0; font: 500 14px/1.4 var(--f-sans); color: var(--err); }
.contact-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-form .checks { display: flex; flex-wrap: wrap; gap: 10px; }
.field-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 24px; }
@media (min-width: 600px) { .field-group { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field-group > legend { grid-column: 1 / -1; } }
.req { color: var(--ink-3); font-size: .86em; }
.check {
  position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 16px;
  border: 1px solid var(--line-2); border-radius: var(--r-8);
  transition: background-color var(--d-col) var(--e-col), border-color var(--d-col) var(--e-col);
}
.check:has(:checked) { background: rgba(255, 255, 255, .07); border-color: transparent; }
.check label { cursor: pointer; font: 500 12px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.check label::before { content: ""; position: absolute; inset: 0; }
.check:has(:checked) label { color: var(--ink); }
.contact-form fieldset > legend { width: 100%; margin-bottom: 4px; padding: 0; }
.contact-form input[type="checkbox"], .contact-form input[type="radio"] {
  -webkit-appearance: none; appearance: none; flex: none; display: inline-grid; place-content: center;
  width: 18px; height: 18px; margin: 0; border: 1px solid var(--line-2); border-radius: 4px; background: transparent; cursor: pointer;
}
.contact-form input[type="radio"] { border-radius: 50%; }
.contact-form input[type="checkbox"]::before {
  content: ""; width: 10px; height: 10px; background: var(--lime-ink); transform: scale(0);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%); transition: transform .2s var(--e-out);
}
.contact-form input[type="radio"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-ink); transform: scale(0); transition: transform .2s var(--e-out); }
.contact-form :is(input[type="checkbox"], input[type="radio"]):checked { background: var(--lime); border-color: var(--lime); }
.contact-form :is(input[type="checkbox"], input[type="radio"]):checked::before { transform: scale(1); }
.contact-form :is(input[type="checkbox"], input[type="radio"]):focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }/* option labels read as Terminal tab chips */
.contact-form label:has(> input[type="checkbox"], > input[type="radio"]) {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 16px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: var(--r-8); color: var(--ink-2);
  font: 500 12px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  transition: background-color var(--d-col) var(--e-col), color var(--d-col) var(--e-col), border-color var(--d-col) var(--e-col);
}
.contact-form label:has(> :checked) { background: rgba(255, 255, 255, .07); border-color: transparent; color: var(--ink); }
.contact-form input[type="file"] { width: 100%; padding: 10px 0; font-size: 15px; color: var(--ink-2); }
.contact-form input[type="file"]::file-selector-button {
  margin-right: 16px; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-8); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line-2); background: transparent; color: var(--ink);
  font: 600 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
}
.contact-form :is(button[type="submit"], input[type="submit"]), .contact-form > .btn { width: 100%; }
.contact-form :is(button[type="submit"], input[type="submit"]):not(.btn) {
  min-height: 58px; padding: 12px 28px; border: 0; border-radius: var(--r-8); background: var(--lime); color: var(--lime-ink);
  font: 600 var(--t-label)/1.2 var(--f-mono); letter-spacing: var(--t-label-tr); text-transform: uppercase; cursor: pointer;
  transition: background-color var(--d-col) var(--e-col), color var(--d-col) var(--e-col), opacity .2s;
}
.contact-form :is(button[type="submit"], input[type="submit"]):not(.btn):hover { background: var(--ink); }
.contact-form [disabled] { opacity: .5; cursor: not-allowed; }
.form-note, .form-noscript { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.form-note:not(:empty) { padding-left: 14px; box-shadow: inset 2px 0 0 var(--lime); }

/* ---------- 11. footer: Terminal's dark closing band, centred downward notch, pulled up over the section above so
   the notch shows that section's ground (the light contact on Home) ---------- */
.foot {
  --na: .5; position: relative; z-index: 1; margin-top: calc(var(--notch) * -1);
  background: var(--ground-2); color: var(--ink);
  /* bottom padding clears the fixed 44px Demo notes button (12px from the bottom) so it never sits on the copyright */
  padding: calc(var(--notch) + clamp(72px, 9vw, 150px)) 0 76px;
}
.foot .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.foot :is(.foot__brand, .brand) img, .foot .wrap > a:first-child img { height: clamp(52px, 6.6vw, 100px); width: auto; }
.foot__tag { color: var(--ink-2); max-width: 36em; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; }
.foot ul a { display: inline-block; padding: 12px 0; font: 450 15px/1 var(--f-sans); letter-spacing: .03em; color: var(--ink); text-decoration: none; transition: color var(--d-col) var(--e-col); }
.foot ul a:hover { color: var(--lime); }
.foot :is(.foot__links, .foot__cta) { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 12px; }
.foot__base {
  position: relative; align-self: stretch; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  margin-top: clamp(40px, 6vw, 96px); padding-top: 20px; border-top: 1px solid var(--line);
  font: 400 12px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); text-align: left;
}
.foot__base p { color: var(--ink-3); }
.foot__base::before, .foot__base::after {
  content: ""; position: absolute; top: -6px; width: 11px; height: 11px;
  background: linear-gradient(var(--cross), var(--cross)) center / 11px 1px no-repeat, linear-gradient(var(--cross), var(--cross)) center / 1px 11px no-repeat;
}
.foot__base::before { left: -5px; }
.foot__base::after { right: -5px; }
.foot small { font: inherit; color: var(--ink-3); }
[data-agentnest-chrome] a { color: var(--ink-2); text-decoration: none; }
[data-agentnest-chrome] a:hover { color: var(--lime); }

/* ---------- 12. inner pages: shared top offset under the floating header ---------- */
body:not(.k-home):not(.k-project) main { padding: calc(var(--hdr) + clamp(40px, 6vw, 96px)) 0 calc(var(--sec-pb) + var(--notch) + 40px); }

/* ---------- 13. mono tab chips (DNA section 10: 58 tall, 12 / 18, 1px line, radius 8, active = faint fill) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: var(--chip-h); padding: 12px 18px;
  border: 1px solid var(--line-2); border-radius: var(--r-8); background: transparent; color: var(--ink-3);
  font: 600 var(--t-label)/1 var(--f-mono); letter-spacing: var(--t-label-tr); text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background-color var(--d-col) var(--e-col), color var(--d-col) var(--e-col), border-color var(--d-col) var(--e-col);
}
button.chip { cursor: pointer; }
button.chip:hover { color: var(--ink); border-color: rgba(255, 255, 255, .42); }
.chip[aria-pressed="true"] { background: rgba(255, 255, 255, .07); border-color: transparent; color: var(--ink); }
.chip[aria-pressed="true"]::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--lime); }
span.chip, a.chip, li.chip { min-height: 40px; padding: 8px 14px; font-size: 12px; letter-spacing: .14em; color: var(--ink-2); }
/* stage chips: solid like every chip (a dashed border read as an unfinished placeholder; the asterisk marks the sample) */
@media (max-width: 767px) { .chip { min-height: 48px; padding: 10px 14px; font-size: 12px; letter-spacing: .14em; } }

/* ---------- 14. portfolio: two chip rows, count, mosaic grid ---------- */
.pf__head h1, .k-portfolio h1 { max-width: none; text-align: left; margin: 0; font-size: var(--t-h2); line-height: 1; letter-spacing: calc(var(--t-h2-tr) * .6); text-transform: uppercase; }
.k-portfolio h1 > span { display: block; }
.k-portfolio h1 + p { margin-top: 22px; max-width: 40em; color: var(--ink-2); }
.k-portfolio [role="group"] { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.k-portfolio [role="group"] > .chips__l {
  flex: 0 0 100%; margin-bottom: 2px;
  font: 400 12px/1 var(--f-mono); letter-spacing: var(--t-label-tr); text-transform: uppercase; color: var(--ink-3);
}
.k-portfolio [role="group"] + [role="group"] { margin-top: 22px; }
/* contain: inline-size = the note never widens its row: from 1380px the Market row is sized by its chips (flex: none) */
.k-portfolio [role="group"] > .chips__note { flex: 0 0 100%; contain: inline-size; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
/* wide screens: the two filter rows sit side by side so the first wide card starts higher (a product in the first screen) */
.chip > .smp { margin-left: -8px; }   /* the chip gap (10px) must not push the sample asterisk off its word */
@media (min-width: 1380px) {
  .pf__filters { display: flex; align-items: flex-start; gap: 0 40px; }
  .pf__filters > [role="group"]:first-child { flex: 1 1 0; min-width: 0; }
  .pf__filters > [role="group"] + [role="group"] { flex: none; }
  /* the row label sits above the chips out of flow, so it never widens the Market group's max-content */
  .k-portfolio .pf__filters > [role="group"] { position: relative; padding-top: 26px; }
  .k-portfolio .pf__filters > [role="group"] > .chips__l { position: absolute; left: 0; top: 0; margin: 0; }
  .k-portfolio .pf__filters > [role="group"] + [role="group"] { margin-top: 28px; }
}
.pc.is-wide .pc__media img { object-position: 50% 50%; }
@media (min-width: 1024px) { .pc.is-wide .pc__media img { object-position: var(--pc-op, 50% 50%); } }
.pf__count { margin: 32px 0 20px; }
.pf { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px var(--grid-gap); }
.pc { content-visibility: auto; contain-intrinsic-size: auto 420px; }
.pc > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; border-radius: var(--r-12); }
.pc__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-12); background: var(--raised); }
.pc__media > :is(picture, .ph) { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.pc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--e-out); }
.pc__media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--d-col) var(--e-col);
}
/* a lime corner bracket appears on hover: the FIG frame language */
.pc__media::before {
  content: ""; position: absolute; left: 12px; top: 12px; z-index: 1; width: 20px; height: 20px; pointer-events: none;
  border-left: 1px solid var(--lime); border-top: 1px solid var(--lime); opacity: 0; transform: translate3d(6px, 6px, 0);
  transition: opacity var(--d-col) var(--e-col), transform var(--d-fill) var(--e-out);
}
.pc a > :not(.pc__media):not(h2) {
  order: 1; margin-top: 16px; font: 400 12px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.pc a > :not(.pc__media):not(h2) ~ :not(.pc__media):not(h2) { order: 3; margin-top: 8px; }
.pc h2 { order: 2; margin-top: 8px; font-size: var(--t-h3); line-height: 1.3; font-weight: 450; letter-spacing: -.01em; transition: color var(--d-col) var(--e-col); }
@media (hover: hover) {
  .pc > a:hover .pc__media img { transform: scale(1.04); }
  .pc > a:hover .pc__media::after { box-shadow: inset 0 0 0 1px rgba(194, 236, 98, .5); }
  .pc > a:hover .pc__media::before { opacity: 1; transform: none; }
  .pc > a:hover h2 { color: var(--lime); }
}
.pc > a:focus-visible h2 { color: var(--lime); }
@media (min-width: 600px) {
  .pf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc.is-wide { grid-column: span 2; }
  .pc.is-wide .pc__media { aspect-ratio: 16 / 9; }
}
@media (min-width: 1024px) {
  .pf { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; }
  .pc.is-wide { grid-column: span 2; grid-row: span 2; contain-intrinsic-size: auto 880px; }
  .pc.is-wide ~ .pc.is-wide { grid-column: -3 / -1; }
  .pc.is-wide .pc__media { aspect-ratio: auto; flex: 1 1 auto; min-height: 320px; }
}

/* ---------- 15. project template ---------- */
.pj-hero {
  position: relative; overflow: hidden; background: var(--void);
  padding: calc(var(--hdr) + 32px) var(--gutter) clamp(40px, 6vw, 96px);
  display: grid; justify-items: center;
}
.pj-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; background: linear-gradient(180deg, transparent, var(--ground)); }
.pj-hero > :is(picture, [data-slot], .ph) { position: relative; z-index: 0; width: min(100%, 1180px); }
.pj-hero img {
  width: 100%; height: auto; max-height: 74svh; object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 60% 64% at 50% 50%, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 64% at 50% 50%, #000 52%, transparent 100%);
}
.pj-hero > :not(picture):not([data-slot]):not(.ph) { position: relative; z-index: 1; }
.k-project main { padding-bottom: calc(var(--sec-pb) + var(--notch) + 40px); }
.k-project h1 { margin: clamp(28px, 4vw, 56px) 0 22px; font-size: var(--t-h2); line-height: 1; font-weight: 450; letter-spacing: -.04em; }
.pj__chips { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; }
/* ZRK-style spec numerals: true counts only */
.zrk {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-rows: auto auto;
  margin: clamp(48px, 6vw, 96px) 0; border-top: 1px solid var(--line);
}
.zrk:has(> div) { grid-template-rows: none; }
.zrk > div { padding: 18px 20px 0 0; }
.zrk > div + div, .zrk > dt ~ dt, .zrk > dt ~ dd ~ dd { padding-left: 20px; }
.zrk > div + div { border-left: 1px solid var(--line); }
.zrk dt { padding-top: 18px; font: 400 12px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.zrk dd {
  margin: 14px 0 0; font-size: clamp(56px, 9vw, 168px); line-height: .82; font-weight: 300; letter-spacing: -.06em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.zrk > div:first-child dd, .zrk > dd:first-of-type { color: var(--lime); }
.pj__chips { align-items: center; }
.pj__k { margin-right: 6px; font: 400 12px/1 var(--f-mono); letter-spacing: var(--t-label-tr); text-transform: uppercase; color: var(--ink-3); }
/* spec rows from his own page data (Skills / Markets / By): mono label, plain value, hairlines */
.spec { margin: clamp(36px, 4vw, 64px) 0; max-width: 46em; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 400 12px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.spec dd { margin: 0; color: var(--ink); line-height: 1.4; }
@media (min-width: 600px) { .spec > div { grid-template-columns: 9em minmax(0, 1fr); gap: 20px; align-items: baseline; } }
.pj__desc { max-width: 46em; }
.pj__desc p { color: var(--ink-2); line-height: 1.55; }
.pj__desc p + p { margin-top: 1.1em; }
.pj__gal { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px) var(--grid-gap); margin-top: clamp(56px, 7vw, 120px); }
.pj__gal figure { content-visibility: auto; contain-intrinsic-size: auto 560px; }
.pj__gal figure > :is(picture, [data-slot]) { border-radius: var(--r-10); overflow: hidden; background: var(--raised); }
.pj__gal img { width: 100%; height: auto; }
@media (min-width: 768px) {
  .pj__gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pj__gal figure:first-child { grid-column: 1 / -1; }
}
.pj__vids { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--grid-gap); margin-top: clamp(48px, 6vw, 96px); }
@media (min-width: 768px) { .pj__vids { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vid {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; overflow: hidden; cursor: pointer;
  border-radius: var(--r-10); background: var(--void); color: var(--ink);
}
.vid > :is(picture, [data-slot], img, .ph), .vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--e-out), opacity var(--d-col); }
.vid__play {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: var(--r-8); background: var(--lime); font-size: 0; color: transparent; transition: transform var(--d-fill) var(--e-out);
}
.vid__play::after {
  content: ""; position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -5px;
  border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--lime-ink);
}
@media (hover: hover) { .vid:hover .vid__play { transform: scale(1.08); } .vid:hover img { transform: scale(1.03); } }
.pj__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(64px, 8vw, 140px); padding-top: 24px; border-top: 1px solid var(--line); }
.pj__nav a:not(.btn) { display: grid; gap: 6px; max-width: 44%; color: var(--ink); text-decoration: none; font-size: var(--t-h3); line-height: 1.25; transition: color var(--d-col) var(--e-col); }
.pj__nav a:not(.btn):hover { color: var(--lime); }
.pj__k { display: block; font: 400 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.pj__nav a.pj__all { align-self: center; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: var(--r-8); font: 600 var(--t-label)/1 var(--f-mono); letter-spacing: var(--t-label-tr); text-transform: uppercase; }
.pj__nav a:not(.btn):last-child { text-align: right; }

/* ---------- 16. punch list and the ?slots overlay ---------- */
.punch, .k-punch table { display: block; max-width: 100%; overflow-x: auto; margin-top: 40px; }
.punch table { display: table; width: 100%; margin: 0; }
.k-punch table { border-collapse: collapse; font: 400 13px/1.4 var(--f-mono); letter-spacing: .04em; }
.k-punch th {
  padding: 14px 20px 14px 0; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line-2);
  font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.k-punch td { padding: 12px 20px 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; vertical-align: top; }
.k-punch td:first-child { color: var(--lime); }
.k-punch h1 + p { max-width: 44em; margin: 20px auto 0; text-align: center; color: var(--ink-2); }
.k-punch h2 {
  margin: clamp(48px, 6vw, 88px) 0 0; font: 600 12px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lime);
}
.k-punch .punch__own { max-width: 62em; margin: 22px 0 0; color: var(--ink-2); line-height: 1.5; text-align: left; }
.k-punch .punch__own strong, .k-punch .punch__safe strong { color: var(--ink); font-weight: 600; }
.k-punch .punch__safe td { white-space: normal; max-width: 70em; padding: 14px 0 18px; line-height: 1.5; font-family: var(--f-sans); letter-spacing: 0; font-size: 14px; color: var(--ink-2); }
/* privacy: his own page, a plain reading column */
.k-legal h1 { max-width: 20em; }
.legal__in { max-width: 46em; margin: clamp(40px, 5vw, 72px) auto 0; }
.legal__in p { color: var(--ink-2); line-height: 1.6; }
.legal__in p + p { margin-top: 1.1em; }
.legal__in h2 {
  margin: clamp(36px, 4vw, 56px) 0 14px; font: 400 13px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lime);
}
:is(.show-slots, [data-show-slots]) [data-slot] { outline: 1px dashed rgba(194, 236, 98, .85); outline-offset: -1px; }
:is(.show-slots, [data-show-slots]) [data-slot]:not([data-slot="hero"]):not(.pc__media) { position: relative; }
.slot-tag, [data-slot-size]::after {
  position: absolute; left: 6px; top: 6px; z-index: 6; padding: 4px 6px; pointer-events: none; white-space: nowrap;
  background: rgba(8, 10, 11, .88); color: var(--lime); font: 600 11px/1.25 var(--f-mono); letter-spacing: .06em;
}
[data-slot-size]::after { content: attr(data-slot-size); }

/* ---------- 17. design brief (his questionnaire, three steps) ---------- */
.k-brief h1 + p, .k-brief h1 ~ p { max-width: 44em; margin: 20px auto 0; text-align: center; color: var(--ink-2); }
.k-brief form[data-flow] {
  max-width: 860px; margin: clamp(40px, 5vw, 72px) auto 0; padding: clamp(24px, 4vw, 56px);
  background: var(--raised); border-radius: var(--r-17);
}
form[data-flow] .step { display: grid; gap: 24px; }
form[data-flow] .step > legend {
  width: 100%; margin-bottom: 30px; padding: 0; font: 450 var(--t-h3)/1.25 var(--f-sans); letter-spacing: -.01em; text-transform: uppercase; color: var(--ink);
}
.step__n { display: block; margin-bottom: 10px; font: 500 var(--t-label)/1.2 var(--f-mono); letter-spacing: var(--t-label-tr); color: var(--lime); }
form[data-flow] .step + .step { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
html.js form[data-flow] .step + .step { margin-top: 0; padding-top: 0; border-top: 0; }
form[data-flow] :is(.step__h, .step h3) { font-size: var(--t-h3); line-height: 1.25; text-transform: uppercase; color: var(--ink); margin-top: 10px; }
form[data-flow] :is(.step__nav, .flow-nav) { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; }
form[data-flow] :is(button[type="button"], [data-next], [data-prev]):not(.btn) {
  min-height: 58px; padding: 12px 28px; border: 0; border-radius: var(--r-8); background: transparent; color: var(--ink); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line-2); font: 600 var(--t-label)/1.2 var(--f-mono); letter-spacing: var(--t-label-tr); text-transform: uppercase;
  transition: background-color var(--d-col) var(--e-col), color var(--d-col) var(--e-col);
}
form[data-flow] :is(button[type="button"], [data-next], [data-prev]):not(.btn):hover { background: var(--lime); color: var(--lime-ink); }
form[data-flow] :is(button[type="submit"], input[type="submit"]), form[data-flow] .step__nav .btn { width: auto; }
.field-pair, .field__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 600px) { .field-pair, .field__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 18. 404: a framed void on the hairline grid ---------- */
.k-404 main { min-height: 100svh; display: grid; place-items: center; position: relative; text-align: center; }
.k-404 main::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--tile) 50% 50% / 111px 111px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 20%, transparent 75%);
}
.k-404 main > * { position: relative; }
.k-404 h1 { font-size: clamp(96px, 16vw, 260px); line-height: .82; font-weight: 300; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.k-404 h1 + p, .k-404 h2 { margin: 22px auto 0; max-width: 32em; font-size: var(--t-body); font-weight: 400; color: var(--ink-2); text-transform: none; letter-spacing: .02em; }
.k-404 .btn { margin-top: 32px; }

/* ---------- 19. Demo notes (the honest-samples device), restyled to the header glass ---------- */
.demo { position: fixed; left: 12px; bottom: 12px; z-index: 90; }
.demo__btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px;
  border: 0; border-radius: var(--r-8); background: var(--glass); color: var(--ink); cursor: pointer;
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); box-shadow: inset 0 0 0 1px var(--line);
  font: 600 12px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; transition: background-color .2s;
}
.demo__btn[hidden], .nav__demo[hidden] { display: none; }
.demo__btn:hover, .demo__btn[aria-expanded="true"] { background: rgba(34, 40, 48, .92); }
.demo__btn svg { width: 18px; height: 18px; flex: none; color: var(--lime); }
.demo.is-compact .demo__btn { gap: 0; padding: 0; width: 44px; justify-content: center; }
.demo.is-compact .demo__btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.demo.is-compact .demo__btn:hover, .demo.is-compact .demo__btn:focus-visible, .demo.is-compact .demo__btn[aria-expanded="true"] { gap: 8px; width: auto; padding: 0 16px 0 12px; }
.demo.is-compact .demo__btn:hover > span, .demo.is-compact .demo__btn:focus-visible > span, .demo.is-compact .demo__btn[aria-expanded="true"] > span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
.demo__panel {
  position: absolute; left: 0; bottom: calc(100% + 10px); width: min(380px, calc(100vw - 24px));
  max-height: min(72svh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 20px 22px 8px;
  background: rgba(20, 24, 28, .96); color: var(--ink); border-radius: var(--r-8); box-shadow: inset 0 0 0 1px var(--line-2);
}
.demo__panel[hidden] { display: none; }
.demo__panel:focus, .demo__panel:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--lime); }
.demo__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo__title { margin: 0; font: 600 var(--t-label)/1.2 var(--f-mono); letter-spacing: var(--t-label-tr); text-transform: uppercase; color: var(--lime); }
.demo__x { display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin: -8px -10px -8px 0; padding: 0; border: 0; border-radius: var(--r-8); background: transparent; color: var(--ink); cursor: pointer; }
.demo__x:hover { background: rgba(255, 255, 255, .08); }
.demo__x svg { width: 14px; height: 14px; }
.demo__lead { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.demo__list { list-style: none; margin: 14px 0 0; padding: 0; }
.demo__list li { display: grid; gap: 3px; padding: 12px 0; border-top: 1px solid var(--line); }
.demo__k { font: 400 11px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.demo__v { font-size: 16px; line-height: 1.35; font-weight: 500; color: var(--ink); }
.demo__n { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.demo-noscript { margin: 0 var(--gutter) var(--gutter); text-align: center; font-size: 14px; color: var(--ink-2); }
@media (max-width: 1100px) {
  .demo { --demo-top: calc(var(--hdr) + 10px); left: 12px; right: 12px; top: var(--demo-top); bottom: auto; height: 0; }
  .demo .demo__btn { display: none; }
  .demo .demo__panel { top: 0; bottom: auto; width: min(380px, 100%); max-height: calc(100svh - var(--demo-top) - 12px); }
}

/* ---------- 20. reduced motion: no scrub, the hero framing shown static at .6, no slides ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .hero, .hero__stage { --p: .6 !important; }
  .hero { height: auto; }
  .hero__stage { position: relative; }
  .nav__glide { transition: none; }
}
