/* ==========================================================================
   BIGI — main stylesheet
   Concept: everything is built from "modules", the squares QR codes are made of.
   Palette: ink + paper + one signal colour.
   ========================================================================== */

:root {
  --ink: #0d0d0b;
  --ink-2: #151512;
  --ink-3: #1d1d19;
  --paper: #eeebe4;
  --paper-2: #e5e1d8;
  --paper-3: #d8d3c7;
  --signal: #ff4b1f;
  --signal-deep: #c9330d;
  --forest: #1d3b2a;
  --muted-paper: #69655c;
  --muted-ink: #8f8b81;
  --hair-paper: rgba(13, 13, 11, 0.11);
  --hair-ink: rgba(238, 235, 228, 0.11);

  --f-display: 'Archivo', 'Helvetica Neue', system-ui, sans-serif;
  --f-body: 'Archivo', system-ui, sans-serif;
  --f-mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1480px;
  --radius: 28px;
  --bezel-pad: 6px;

  --z-menu: 80;
  --z-veil: 90;
  --z-bar: 100;
  --z-toast: 105;
  --z-cursor: 110;
  --z-grain: 95;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
em { font-style: normal; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 16px; z-index: 200; padding: 10px 16px; border-radius: 999px;
  background: var(--signal); color: var(--ink); font-weight: 600; transform: translateY(-200%);
  transition: transform .4s var(--ease-out);
}
.skip:focus { transform: none; }

/* ---------- Themes ---------- */
.t-paper {
  --bg: var(--paper); --fg: var(--ink); --muted: var(--muted-paper); --hair: var(--hair-paper);
  --card: #f6f4ef; --card-2: #ebe7df; --shell: rgba(13, 13, 11, 0.035);
  background: var(--bg); color: var(--fg);
}
.t-ink {
  --bg: var(--ink); --fg: var(--paper); --muted: var(--muted-ink); --hair: var(--hair-ink);
  --card: #141411; --card-2: #1b1b17; --shell: rgba(238, 235, 228, 0.035);
  background: var(--bg); color: var(--fg);
}
.t-signal {
  --bg: var(--signal); --fg: var(--ink); --muted: rgba(13, 13, 11, 0.66); --hair: rgba(13, 13, 11, 0.18);
  --card: #ff6a43; --card-2: #ff7d5a; --shell: rgba(13, 13, 11, 0.06);
  background: var(--bg); color: var(--fg);
}

/* ---------- Layout & type ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(104px, 13vw, 200px); }
.mono {
  font-family: var(--f-mono); font-size: 11px; line-height: 1.5; letter-spacing: 0.04em;
  text-transform: uppercase; font-variation-settings: 'wdth' 87.5; font-weight: 400;
}
.muted { color: var(--muted); }
.signal { color: var(--signal); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--hair);
  font-family: var(--f-mono); font-size: 10.5px; line-height: 1; letter-spacing: 0.14em;
  text-transform: uppercase; font-variation-settings: 'wdth' 87.5;
  color: var(--fg); white-space: nowrap; width: fit-content; justify-self: start; align-self: start;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--signal); flex: none; }
.t-signal .eyebrow::before { background: var(--ink); }

.h1, .h2, .h3 {
  font-family: var(--f-display); font-weight: 760; letter-spacing: -0.035em;
  font-variation-settings: 'wdth' 108; line-height: 1;
}
.h1 { font-size: clamp(3.2rem, 9vw, 9.5rem); }
.h2 { font-size: clamp(2.5rem, 6.2vw, 6.4rem); }
.h3 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1; }
.h1 em, .h2 em, .h3 em {
  font-style: normal; font-weight: 300; font-variation-settings: 'wdth' 92; letter-spacing: -0.04em;
}
.lead { font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.lead strong { color: var(--fg); font-weight: 560; }

/* ---------- Bezel (outer shell + inner core) ---------- */
.bezel {
  padding: var(--bezel-pad); border-radius: var(--radius);
  background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair);
}
.bezel__core {
  position: relative; border-radius: calc(var(--radius) - var(--bezel-pad)); background: var(--card);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 1px 1px rgba(13, 13, 11, 0.03),
    0 24px 60px -36px rgba(13, 13, 11, 0.35);
}
.t-ink .bezel__core { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 80px -40px rgba(0, 0, 0, 0.8); }

/* Browser chrome strip used on mockups */
.chrome {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border-bottom: 1px solid var(--hair); background: var(--card-2);
}
.chrome i { width: 8px; height: 8px; border-radius: 2px; background: var(--hair); }
.chrome i:first-child { background: var(--signal); }
.chrome span {
  margin-left: 10px; flex: 1; max-width: 280px; height: 20px; border-radius: 6px;
  background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair);
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .04em; line-height: 20px; padding: 0 10px;
  color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-variation-settings: 'wdth' 87.5;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 16px;
  padding: 7px 7px 7px 24px; border-radius: 999px; min-height: 54px;
  font-size: 15px; font-weight: 560; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .6s var(--ease-spring), background-color .4s var(--ease-out), color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn__icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--signal); color: var(--ink);
  transition: transform .6s var(--ease-spring), background-color .4s;
}
.btn__icon svg { width: 15px; height: 15px; }
.btn:hover .btn__icon { transform: translate(3px, -2px) scale(1.07); }
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--ghost { box-shadow: inset 0 0 0 1px var(--hair); color: var(--fg); }
.btn--ghost .btn__icon { background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); color: var(--fg); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--sm { min-height: 44px; padding: 5px 5px 5px 18px; font-size: 14px; gap: 12px; }
.btn--sm .btn__icon { width: 34px; height: 34px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* Rolling label: text slides up and a copy slides in */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.2; }
.roll > span { position: relative; display: inline-block; transition: transform .7s var(--ease-spring); }
.roll > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
a:hover .roll > span, button:hover .roll > span { transform: translateY(-100%); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 560; font-size: 15px;
  padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .6s var(--ease-spring);
}
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .6s var(--ease-spring); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* Chips / segmented controls / swatches / fields */
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--hair); font-size: 14px; font-weight: 520; white-space: nowrap;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out), box-shadow .4s var(--ease-out), transform .5s var(--ease-spring);
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed='true'], .chip[aria-checked='true'] { background: var(--fg); color: var(--bg); box-shadow: none; }
.chip sup { font-family: var(--f-mono); font-size: 9px; opacity: .6; top: -0.5em; }

.seg {
  position: relative; display: inline-flex; padding: 4px; border-radius: 999px; gap: 2px;
  background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair);
}
.seg button {
  position: relative; z-index: 1; height: 32px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 540; color: var(--muted); white-space: nowrap;
  transition: color .35s var(--ease-out), background-color .35s var(--ease-out);
}
.seg button:hover { color: var(--fg); }
.seg button[aria-checked='true'], .seg button[aria-pressed='true'] { background: var(--fg); color: var(--bg); }
.seg--sm button { height: 28px; padding: 0 11px; font-size: 12px; }

.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches--sm { gap: 6px; }
.swatches--sm .swatch { width: 22px; height: 22px; border-radius: 7px; }
.swatch {
  width: 30px; height: 30px; border-radius: 9px; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
  transition: transform .5s var(--ease-spring), box-shadow .3s;
}
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-checked='true'] { box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 0 0 2px var(--card), 0 0 0 4px var(--fg); }

.field { display: grid; gap: 8px; }
.field__label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-variation-settings: 'wdth' 87.5; }
.input {
  width: 100%; height: 48px; padding: 0 16px; border-radius: 14px; border: 0; outline: 0;
  background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); font-size: 15px;
  transition: box-shadow .3s var(--ease-out), background-color .3s;
}
.input:focus { box-shadow: inset 0 0 0 1.5px var(--fg); background: var(--card); }

.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; font-weight: 520; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle__ui {
  position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--hair);
  transition: background-color .35s var(--ease-out);
}
.toggle__ui::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .45s var(--ease-spring);
}
.toggle input:checked + .toggle__ui { background: var(--signal); }
.toggle input:checked + .toggle__ui::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle__ui { outline: 2px solid var(--signal); outline-offset: 2px; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-bar);
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  padding: 18px var(--gutter); pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand {
  position: fixed; left: var(--gutter); top: 31px; z-index: var(--z-bar);
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink);
  transition: color .45s var(--ease-out); font-weight: 800; font-size: 21px; letter-spacing: -0.04em;
  font-variation-settings: 'wdth' 118;
}
.brand__mark { width: 22px; height: 22px; }
body[data-bar='ink'] .brand { color: var(--paper); }
html.is-veiled .brand, html.veil-on .brand { color: var(--paper); transition: none; }
.brand__mark rect:nth-child(5) { fill: var(--signal); }
body[data-bar='signal'] .brand__mark rect:nth-child(5) { fill: var(--paper); }
.brand__mark rect { fill: currentColor; transition: transform .6s var(--ease-spring); transform-box: fill-box; transform-origin: center; }
.brand:hover .brand__mark rect:nth-child(odd) { transform: scale(.55); }

.island {
  position: absolute; left: 50%; top: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 18px 0 8px;
  border-radius: 999px; background: var(--signal); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(13, 13, 11, 0.1), 0 12px 30px -14px rgba(201, 51, 13, 0.75);
  font-weight: 500;
  transition: transform .7s var(--ease-spring), opacity .5s var(--ease-out), background-color .45s var(--ease-out), box-shadow .45s;
}
body[data-bar='signal'] .island { background: var(--paper); box-shadow: inset 0 0 0 1px rgba(13, 13, 11, 0.12), 0 12px 30px -14px rgba(13, 13, 11, 0.4); }
.island.is-hidden { transform: translate(-50%, -160%); opacity: 0; }
.island__sep { width: 1px; height: 14px; background: rgba(13, 13, 11, .28); }
.island__page b {
  display: inline-grid; place-items: center; height: 28px; padding: 0 9px; margin-right: 4px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 500;
}
.island .dot-live { background: var(--ink); }
.island .dot-live::after { border-color: var(--ink); }
.dot-live { position: relative; width: 7px; height: 7px; border-radius: 2px; background: #3ddc84; flex: none; }
.dot-live::after {
  content: ''; position: absolute; inset: -4px; border-radius: 4px; border: 1px solid #3ddc84;
  animation: ping 2.2s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 80%, 100% { transform: scale(1.4); opacity: 0; } }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.menu-btn {
  display: inline-flex; align-items: center; gap: 14px; height: 50px; padding: 0 8px 0 20px;
  border-radius: 999px; background: rgba(13, 13, 11, 0.86); color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(238, 235, 228, 0.12), 0 10px 30px -12px rgba(0,0,0,.45);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  font-weight: 560; font-size: 14px;
  transition: transform .6s var(--ease-spring), background-color .4s;
}
.menu-btn:active { transform: scale(.96); }
.menu-btn__label { position: relative; display: block; height: 18px; overflow: hidden; line-height: 18px; }
.menu-btn__label span { display: block; transition: transform .7s var(--ease-spring); }
.menu-btn[aria-expanded='true'] .menu-btn__label span { transform: translateY(-100%); }
.menu-btn__grid {
  display: grid; grid-template-columns: repeat(3, 5px); gap: 3px; place-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--signal);
  transition: transform .7s var(--ease-spring);
}
.menu-btn__grid i { width: 5px; height: 5px; background: var(--ink); border-radius: 1px; transition: transform .5s var(--ease-spring), opacity .4s; }
.menu-btn:hover .menu-btn__grid { transform: rotate(90deg); }
.menu-btn[aria-expanded='true'] .menu-btn__grid { transform: rotate(0deg); }
.menu-btn[aria-expanded='true'] .menu-btn__grid i:nth-child(2n) { transform: scale(0); opacity: 0; }
.menu-btn[aria-expanded='true'] .menu-btn__grid i:nth-child(5) { transform: scale(1.25) rotate(45deg); }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--ink); color: var(--paper);
  --fg: var(--paper); --bg: var(--ink); --muted: var(--muted-ink); --hair: var(--hair-ink); --card: #141411; --card-2: #1b1b17; --shell: rgba(238,235,228,.035);
  overflow: hidden;
}
.menu__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.menu__inner {
  position: relative; height: 100%; display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); grid-template-rows: 1fr auto;
  gap: 24px 56px; padding: 120px var(--gutter) 28px; max-width: var(--maxw); margin: 0 auto;
}
.menu__nav { align-self: center; display: grid; gap: 0; counter-reset: m; }
.menu__link {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 6px 0; border-bottom: 1px solid var(--hair-ink);
  opacity: 0; transform: translateY(40px);
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-spring), color .4s;
  transition-delay: calc(var(--i, 0) * 70ms + 80ms);
}
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu__idx { font-family: var(--f-mono); font-size: 11px; color: var(--muted-ink); font-variation-settings: 'wdth' 87.5; align-self: start; padding-top: 1.4em; }
.menu__txt {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 8.2vh, 7.4rem); line-height: 1.02;
  letter-spacing: -0.045em; font-variation-settings: 'wdth' 100;
  transition: font-variation-settings .8s var(--ease-spring), color .4s, transform .8s var(--ease-spring);
  transform-origin: left center;
}
.menu__desc { font-family: var(--f-mono); font-size: 11px; color: var(--muted-ink); text-transform: uppercase; letter-spacing: .06em; font-variation-settings: 'wdth' 87.5; transition: color .4s; }
.menu__link::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: var(--signal);
  transform: scale(0) rotate(-90deg); transition: transform .6s var(--ease-spring);
}
.menu__nav:hover .menu__link { color: rgba(238, 235, 228, 0.32); }
.menu__nav .menu__link:hover, .menu__nav .menu__link:focus-visible { color: var(--paper); }
.menu__link:hover .menu__txt, .menu__link:focus-visible .menu__txt { font-variation-settings: 'wdth' 125; }
.menu__link:hover::before, .menu__link:focus-visible::before { transform: scale(1) rotate(0); }
.menu__link:hover .menu__idx, .menu__link:focus-visible .menu__idx { opacity: 0; }
.menu__link[aria-current='page'] .menu__desc { color: var(--signal); }
.menu__link[aria-current='page'] .menu__desc::before { content: '● '; }

.menu__preview {
  position: relative; align-self: center; aspect-ratio: 4 / 4.4; max-height: 64vh; width: 100%;
  opacity: 0; transform: translateY(30px) scale(.97);
  transition: opacity .8s var(--ease-out) .3s, transform 1s var(--ease-spring) .3s;
}
.menu.is-open .menu__preview { opacity: 1; transform: none; }
.menu__preview .bezel__core { height: 100%; background: #121210; }
.mprev {
  position: absolute; inset: 0; padding: 26px; display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out), transform .7s var(--ease-spring);
  pointer-events: none;
}
.mprev.is-active { opacity: 1; transform: none; }
.mprev__title { font-family: var(--f-display); font-weight: 760; font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1; letter-spacing: -0.035em; font-variation-settings: 'wdth' 110; }
.mprev__title em { font-weight: 300; font-variation-settings: 'wdth' 92; }
.mprev__qr { width: 58%; aspect-ratio: 1; align-self: center; border-radius: 14px; background: var(--paper); padding: 4%; }
.mprev__qr canvas { width: 100%; height: 100%; }
.mprev__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mprev__grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px; }
.mprev__big { font-family: var(--f-display); font-weight: 820; font-size: clamp(4rem, 7vw, 7rem); line-height: 1; letter-spacing: -0.05em; font-variation-settings: 'wdth' 120; }
.mprev__big span { color: var(--signal); }
.mprev__rows { display: grid; gap: 10px; }
.mprev__rows div { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--hair-ink); }

.menu__foot {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px;
  padding-top: 20px; border-top: 1px solid var(--hair-ink); color: var(--muted-ink);
  opacity: 0; transition: opacity .8s var(--ease-out) .45s;
}
.menu.is-open .menu__foot { opacity: 1; }
.menu__foot a:hover, .menu__foot button:hover { color: var(--paper); }
.menu__foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--hair-ink); margin: 0 2px; }

/* ---------- Veil (module page transition) ---------- */
.veil {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: var(--z-veil); pointer-events: none;
}
.veil.is-active { pointer-events: auto; }
html.veil-on .veil { background: var(--ink); }

/* Grain */
.grain {
  position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: .06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: var(--z-cursor); pointer-events: none; display: none; }
html.has-cursor .cursor { display: block; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor [contenteditable='true'] { cursor: text !important; }
.cursor__pos { position: absolute; left: 0; top: 0; will-change: transform; }
.cursor__dot {
  position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; background: var(--signal); border-radius: 1px;
}
.cursor__ring {
  position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .5s var(--ease-spring), height .5s var(--ease-spring), left .5s var(--ease-spring), top .5s var(--ease-spring),
              border-radius .5s var(--ease-spring), background-color .3s, opacity .3s, transform .5s var(--ease-spring);
}
.cursor.is-link .cursor__ring { width: 54px; height: 54px; left: -27px; top: -27px; border-radius: 14px; transform: rotate(45deg); }
.cursor.is-label .cursor__ring {
  width: 96px; height: 96px; left: -48px; top: -48px; border-radius: 50%; mix-blend-mode: normal;
  background: var(--signal); box-shadow: none; transform: none;
}
.cursor__label {
  font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink);
  opacity: 0; transform: scale(.6); transition: opacity .3s, transform .5s var(--ease-spring); white-space: nowrap;
  font-variation-settings: 'wdth' 87.5;
}
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-text .cursor__ring { opacity: 0; }
.cursor.is-down .cursor__ring { transform: scale(.8); }
.cursor.is-hidden { opacity: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast);
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border-radius: 16px;
  background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 520;
  box-shadow: inset 0 0 0 1px rgba(238,235,228,.12), 0 20px 50px -20px rgba(0,0,0,.5);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .7s var(--ease-spring), opacity .4s;
  pointer-events: none; max-width: calc(100vw - 32px);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast::before { content: ''; width: 10px; height: 10px; background: var(--signal); border-radius: 2px; flex: none; }

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 48px, 0); filter: blur(8px);
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out), filter 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js [data-reveal='fade'] { transform: none; }
.js [data-reveal='scale'] { transform: scale(.94); }

.split .w { display: inline-block; vertical-align: baseline; clip-path: inset(-0.35em -0.3em -0.3em -0.3em); }
.split .w > span { display: inline-block; }
.js .split .w > span { transform: translate3d(0, 160%, 0); transition: transform 1.2s var(--ease-spring); transition-delay: calc(var(--wi, 0) * 55ms + var(--d, 0s)); transform-origin: left bottom; }
.js .split.is-in .w > span { transform: none; }

[data-scrub-words] .sw { transition: opacity .2s linear; }
.js [data-scrub-words].is-ready .sw { opacity: .16; }
.js [data-scrub-words].is-ready .sw.on { opacity: 1; }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column;
}
.hero__stage { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; z-index: 0; }
.hero__stage canvas { width: 100% !important; height: 100% !important; }
.hero__stage.is-fallback { display: grid; place-items: center; }
.hero__stage.is-fallback canvas { width: min(56%, 460px) !important; height: auto !important; aspect-ratio: 1; }
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 68% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 68% 45%, #000 0%, transparent 75%);
}
.hero__content {
  position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: space-between;
  padding-top: 112px; padding-bottom: 32px; pointer-events: none;
}
.hero__content a, .hero__content button { pointer-events: auto; }
.hero__top { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.hero__title {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(3.2rem, min(7.6vw, 12.5vh), 9rem);
  line-height: 1; letter-spacing: -0.05em; font-variation-settings: 'wdth' 106;
}
.hero__line { display: block; }
.hero__rot { display: grid; overflow: hidden; padding-bottom: .3em; margin-bottom: -.3em; color: var(--signal); }
.rot__w { grid-area: 1 / 1; display: flex; white-space: nowrap; }
.rot__w .c { display: inline-block; white-space: pre; transform: translate3d(0, 150%, 0); transition: transform 1s var(--ease-spring); transition-delay: calc(var(--ci) * 32ms); }
.rot__w.is-active .c { transform: none; }
.rot__w.is-out .c { transform: translate3d(0, -150%, 0); transition: transform .55s var(--ease-io); transition-delay: calc(var(--ci) * 16ms); }
.rot__w.no-t .c { transition: none !important; }
.hero__amp { font-weight: 300; font-variation-settings: 'wdth' 90; }
.hero__sub { display: flex; flex-wrap: wrap; align-items: end; gap: 24px 40px; margin-top: clamp(22px, 2.6vw, 36px); }
.hero__lead { max-width: 39ch; font-size: clamp(.98rem, 1.1vw, 1.08rem); line-height: 1.5; color: var(--muted); }
.hero__lead strong { color: var(--fg); font-weight: 560; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }

.hero__side { display: grid; justify-items: end; gap: 16px; text-align: right; max-width: 470px; }
.hero__fig { color: var(--muted); min-height: 3em; }
.hero__fig b { color: var(--fg); font-weight: 400; }
.formtabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.formtab {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 560; color: var(--muted); overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease-out);
}
.formtab:hover { color: var(--fg); }
.ft-s { display: none; }
.formtab__bar { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--fg); transform: scaleX(0); transform-origin: left; }
.formtab[aria-selected='true'] { color: var(--bg); }
.formtab[aria-selected='true'] .formtab__bar { transform: scaleX(1); transition: transform .6s var(--ease-spring); }
.formtab__prog { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: rgba(238,235,228,.18); overflow: hidden; opacity: 0; }
.formtab__prog i { position: absolute; inset: 0; background: var(--signal); transform: scaleX(var(--p, 0)); transform-origin: left; }
.formtab[aria-selected='true'] .formtab__prog { opacity: 1; }

.scrollcue { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.scrollcue i { position: relative; width: 1px; height: 32px; background: var(--hair); overflow: hidden; }
.scrollcue i::after { content: ''; position: absolute; inset: 0; background: var(--fg); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Marquee */
.marquee { position: relative; overflow: hidden; padding: 26px 0; border-block: 1px solid var(--hair); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquee__item {
  font-family: var(--f-display); font-weight: 780; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -0.04em;
  font-variation-settings: 'wdth' 118; white-space: nowrap;
}
.marquee__item.is-outline { color: transparent; -webkit-text-stroke: 1.2px var(--fg); }
.marquee__sq { width: 16px; height: 16px; background: var(--signal); flex: none; }

/* Manifesto + loop */
.manifesto__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: clamp(40px, 6vw, 80px); }
.manifesto__text {
  font-family: var(--f-display); font-weight: 640; font-size: clamp(1.9rem, 4.3vw, 4.4rem); line-height: 1.04;
  letter-spacing: -0.035em; font-variation-settings: 'wdth' 104; max-width: 22ch;
}
.manifesto__text .hl { color: var(--signal); }
.loop { margin-top: clamp(64px, 9vw, 130px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.loop__rail { grid-column: 1 / -1; position: relative; height: 1px; background: var(--hair); margin-bottom: 14px; display: flex; justify-content: space-between; }
.loop__rail > b { position: relative; top: -22px; font-weight: 400; color: var(--muted); }
.loop__rail > span { position: absolute; inset: -4px 0; animation: rail 6s var(--ease-io) infinite; }
.loop__rail > span::after { content: ''; position: absolute; right: 0; top: 0; width: 9px; height: 9px; background: var(--signal); border-radius: 2px; }
@keyframes rail { 0% { transform: translateX(calc(-100% + 9px)); } 92%, 100% { transform: translateX(0); } }
.loop__node .bezel__core { padding: clamp(22px, 2.6vw, 34px); min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.loop__top { display: flex; justify-content: space-between; align-items: start; }
.loop__name { font-family: var(--f-display); font-weight: 760; font-size: clamp(1.8rem, 2.8vw, 2.7rem); line-height: 1; letter-spacing: -0.04em; font-variation-settings: 'wdth' 112; }
.loop__node p { color: var(--muted); font-size: 15px; max-width: 30ch; margin-top: 12px; }
.mod-ico { display: grid; grid-template-columns: repeat(4, 7px); gap: 3px; }
.mod-ico i { width: 7px; height: 7px; background: var(--fg); opacity: .14; border-radius: 1px; transition: opacity .4s, background-color .4s, transform .6s var(--ease-spring); }
.mod-ico i.on { opacity: 1; }
.mod-ico i.hot { background: var(--signal); opacity: 1; }
.loop__node:hover .mod-ico i { transform: scale(.7); }
.loop__node:hover .mod-ico i.on, .loop__node:hover .mod-ico i.hot { transform: scale(1.1); }

/* Labs */
.labs__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.labs__side { position: sticky; top: 110px; display: grid; gap: 26px; }
.labs__side .h2 { font-size: clamp(2.6rem, 4.6vw, 4.8rem); }
.labs__tabs { display: grid; gap: 6px; margin-top: 4px; }
.labtab {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 12px; padding: 14px 20px; border-radius: 18px; text-align: left;
  box-shadow: inset 0 0 0 1px var(--hair); transition: background-color .45s var(--ease-out), color .45s, box-shadow .45s, transform .6s var(--ease-spring);
}
.labtab:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.labtab:active { transform: scale(.985); }
.labtab__i { font-family: var(--f-mono); font-size: 10.5px; grid-row: span 2; padding-top: 6px; color: var(--muted); }
.labtab__t { font-family: var(--f-display); font-weight: 760; font-size: 1.35rem; letter-spacing: -0.03em; font-variation-settings: 'wdth' 110; line-height: 1.1; }
.labtab__d { font-size: 14px; color: var(--muted); }
.labtab[aria-selected='true'] { background: var(--ink); color: var(--paper); box-shadow: none; }
.labtab[aria-selected='true'] .labtab__d, .labtab[aria-selected='true'] .labtab__i { color: var(--muted-ink); }
.labtab[aria-selected='true']::after { content: ''; position: absolute; right: 20px; top: 20px; width: 10px; height: 10px; background: var(--signal); border-radius: 2px; }
.labs__stage .bezel__core { min-height: 640px; background: var(--card); }
.labpanel { animation: panelIn .8s var(--ease-spring) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px) scale(.99); } to { opacity: 1; transform: none; } }

/* Lab: responsive website */
.wlab { display: flex; flex-direction: column; height: 100%; min-height: 640px; }
.wlab__bar, .qrlab__bar, .blab__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; border-bottom: 1px solid var(--hair);
}
.wlab__readout b { color: var(--fg); font-weight: 500; }
.wlab__viewport {
  position: relative; flex: 1; padding: 22px; display: flex; justify-content: center; align-items: flex-start;
  background-image: radial-gradient(var(--hair) 1px, transparent 1px); background-size: 14px 14px; overflow: hidden;
}
.wlab__frame {
  position: relative; width: 100%; max-width: 100%; height: 560px; border-radius: 14px; background: #f7f3ea; color: #1b1a17;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 30px 60px -30px rgba(0,0,0,.35);
  display: flex; flex-direction: column; overflow: hidden;
  --card-2: #efe9dd; --hair: rgba(0,0,0,.08); --shell: rgba(0,0,0,.03); --muted: #7a7466;
}
.wlab__frame.is-anim { transition: width .9s var(--ease-spring); }
.wlab__handle {
  position: absolute; right: -1px; top: 50%; width: 18px; height: 72px; margin-top: -36px; border-radius: 9px;
  background: var(--ink); display: grid; place-items: center; cursor: ew-resize; touch-action: none;
  box-shadow: 0 6px 20px -6px rgba(0,0,0,.4); transition: transform .5s var(--ease-spring);
}
.wlab__handle:hover, .wlab__handle.is-drag { transform: scaleY(1.12); background: var(--signal); }
.wlab__handle span { width: 2px; height: 26px; border-left: 2px solid rgba(255,255,255,.7); border-right: 2px solid rgba(255,255,255,.7); box-sizing: content-box; width: 2px; }
.wlab__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 7px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); white-space: nowrap; pointer-events: none; transition: opacity .5s; }
.wlab__hint.is-gone { opacity: 0; }

/* Demo site "Kalaki" — uses container queries */
.kal { container-type: inline-size; flex: 1; overflow: auto; --k-green: #1f3d2b; --k-cream: #f7f3ea; --k-clay: #e0673a; font-family: var(--f-body); }
.kal__nav { display: flex; align-items: center; gap: 22px; padding: 16px 22px; }
.kal__logo { font-weight: 800; font-size: 18px; letter-spacing: -0.03em; font-variation-settings: 'wdth' 118; display: flex; align-items: center; gap: 8px; }
.kal__logo::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--k-clay); box-shadow: 5px 0 0 var(--k-green); }
.kal__links { display: flex; gap: 18px; margin-left: auto; font-size: 13px; font-weight: 520; }
.kal__cta { padding: 9px 16px; border-radius: 999px; background: var(--k-green); color: var(--k-cream); font-size: 12.5px; font-weight: 600; }
.kal__burger { display: none; margin-left: auto; width: 34px; height: 34px; border-radius: 10px; background: var(--k-green); place-content: center; gap: 4px; }
.kal__burger i { display: block; width: 14px; height: 2px; background: var(--k-cream); }
.kal__hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; padding: 16px 22px 22px; align-items: center; }
.kal__kicker { display: inline-block; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--k-clay); margin-bottom: 12px; }
.kal__h { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 7.2cqi, 64px); line-height: 1; letter-spacing: -0.045em; font-variation-settings: 'wdth' 108; color: var(--k-green); }
.kal__p { margin-top: 14px; font-size: 14px; color: #5f5a4e; max-width: 34ch; }
.kal__btn { display: inline-flex; margin-top: 18px; padding: 11px 18px; border-radius: 999px; background: var(--k-clay); color: #fff; font-size: 13px; font-weight: 600; }
.kal__art { position: relative; aspect-ratio: 1; border-radius: 22px; background: var(--k-green); overflow: hidden; }
.kal__art i { position: absolute; border-radius: 50%; }
.kal__art i { left: 50%; top: 50%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.kal__art i:nth-child(1) { height: 66%; background: var(--k-cream); }
.kal__art i:nth-child(2) { height: 46%; background: #6b4227; }
.kal__art i:nth-child(3) { height: 19%; background: #8a5a37; box-shadow: 0 0 0 6px rgba(255,255,255,.15); }
.kal__art i:nth-child(4) { height: 30%; left: auto; top: auto; right: -6%; bottom: -8%; transform: none; background: var(--k-clay); border-radius: 30%; }
.kal__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 22px 22px; }
.kal__card { padding: 16px; border-radius: 16px; background: #efe8da; display: grid; gap: 10px; }
.kal__card b { font-size: 14px; letter-spacing: -0.01em; }
.kal__card span { font-size: 12px; color: #6d675a; }
.kal__card i { width: 26px; height: 26px; border-radius: 8px; background: var(--k-green); }
.kal__card:nth-child(2) i { background: var(--k-clay); border-radius: 50%; }
.kal__card:nth-child(3) i { background: #c9a66b; border-radius: 4px 14px; }
.kal__band { margin: 0 22px 22px; padding: 18px 22px; border-radius: 16px; background: var(--k-green); color: var(--k-cream); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; }
.kal__band span { padding: 8px 14px; border-radius: 999px; background: var(--k-cream); color: var(--k-green); font-size: 12px; }
@container (max-width: 640px) {
  .kal__hero { grid-template-columns: minmax(0, 1fr); }
  .kal__art { aspect-ratio: 16 / 10; order: -1; }
  .kal__cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kal__links { display: none; }
  .kal__cta { margin-left: auto; }
}
@container (max-width: 440px) {
  .kal__cta { display: none; }
  .kal__burger { display: grid; }
  .kal__cards { grid-template-columns: minmax(0, 1fr); }
  .kal__band { flex-direction: column; align-items: flex-start; }
  .kal__h { font-size: 34px; }
}

/* Lab: QR */
.qrlab { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 640px; }
.qrlab__stage {
  position: relative; display: grid; place-items: center; padding: 40px 28px 64px; border-right: 1px solid var(--hair);
  background-image: radial-gradient(var(--hair) 1px, transparent 1px); background-size: 14px 14px;
}
.qrlab__canvas-wrap { position: relative; width: min(100%, 400px); aspect-ratio: 1; border-radius: 24px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 30px 60px -30px rgba(0,0,0,.35); transition: background-color .4s; }
.qrlab__canvas-wrap canvas { width: 100%; height: 100%; }
.qrlab__meta { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; color: var(--muted); }
.qrlab__controls { display: grid; align-content: start; gap: 24px; padding: 28px; }
.ctl { display: grid; gap: 10px; }
.ctl__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.qrlab__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.counter { font-family: var(--f-mono); font-size: 10px; color: var(--muted); text-align: right; }

/* Lab: builder */
.blab { display: flex; flex-direction: column; min-height: 640px; height: 640px; }
.blab__name { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.blab__name i { width: 8px; height: 8px; border-radius: 2px; background: #3ddc84; }
.blab__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.blab__body { flex: 1; display: grid; grid-template-columns: 168px minmax(0, 1fr); min-height: 0; }
.blab__palette { display: grid; align-content: start; gap: 6px; padding: 14px; border-right: 1px solid var(--hair); overflow: auto; }
.blab__palette .field__label { margin: 2px 4px 6px; }
.pblock {
  display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 12px; text-align: left; font-size: 13.5px; font-weight: 540;
  box-shadow: inset 0 0 0 1px var(--hair); background: var(--card); transition: transform .5s var(--ease-spring), box-shadow .3s, background-color .3s;
}
.pblock:hover { box-shadow: inset 0 0 0 1px var(--fg); transform: translateX(3px); }
.pblock:active { transform: scale(.97); }
.pblock svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.pblock span:last-child { margin-left: auto; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.blab__canvas {
  position: relative; overflow: auto; padding: 18px; display: flex; justify-content: center;
  background-image: radial-gradient(var(--hair) 1px, transparent 1px); background-size: 14px 14px;
}
.blab__page {
  width: 100%; max-width: 100%; align-self: flex-start; border-radius: 14px; overflow: hidden; min-height: 200px;
  background: var(--pg-bg); color: var(--pg-fg); box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 30px 60px -30px rgba(0,0,0,.35);
  transition: max-width .8s var(--ease-spring), background-color .5s, color .5s;
  --pg-bg: #f7f4ee; --pg-fg: #121210; --pg-acc: #ff4b1f; --pg-soft: rgba(0,0,0,.05); --pg-line: rgba(0,0,0,.09);
}
.blab__page.is-mobile { max-width: 340px; }
.blab__page[data-theme='ink'] { --pg-bg: #121210; --pg-fg: #efebe3; --pg-acc: #ff4b1f; --pg-soft: rgba(255,255,255,.06); --pg-line: rgba(255,255,255,.1); }
.blab__page[data-theme='forest'] { --pg-bg: #1d3b2a; --pg-fg: #f1ecdf; --pg-acc: #e8c26a; --pg-soft: rgba(255,255,255,.07); --pg-line: rgba(255,255,255,.12); }
.blab__page[data-theme='signal'] { --pg-bg: #ff4b1f; --pg-fg: #140602; --pg-acc: #140602; --pg-soft: rgba(0,0,0,.08); --pg-line: rgba(0,0,0,.14); }
.blab__empty { padding: 60px 20px; text-align: center; color: var(--pg-fg); opacity: .5; font-size: 14px; }

.bb { position: relative; outline: 1px dashed transparent; outline-offset: -1px; transition: outline-color .25s, transform .5s var(--ease-spring), box-shadow .3s, opacity .3s; background: var(--pg-bg); }
.bb:hover, .bb.is-selected { outline-color: var(--pg-acc); }
.bb.is-dragging { z-index: 5; box-shadow: 0 24px 50px -20px rgba(0,0,0,.45); opacity: .95; transition: box-shadow .3s, opacity .3s; cursor: grabbing; }
.bb.is-new { animation: bbIn .7s var(--ease-spring) both; }
@keyframes bbIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }
.bb__tools {
  position: absolute; top: 8px; right: 8px; z-index: 3; display: flex; gap: 2px; padding: 3px; border-radius: 10px;
  background: var(--ink); color: var(--paper); opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .4s var(--ease-spring);
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.5);
}
.bb:hover .bb__tools, .bb.is-selected .bb__tools, .bb:focus-within .bb__tools { opacity: 1; transform: none; }
.bb__tools button { width: 28px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 13px; }
.bb__tools button:hover { background: rgba(255,255,255,.12); }
.bb__tools .bb__drag { cursor: grab; touch-action: none; }
.bb__tools svg { width: 14px; height: 14px; }
.bb [contenteditable] { outline: none; border-radius: 4px; transition: box-shadow .2s; }
.bb [contenteditable]:hover { box-shadow: 0 0 0 1px var(--pg-line); }
.bb [contenteditable]:focus { box-shadow: 0 0 0 2px var(--pg-acc); }
.bbh { padding: 34px 26px 30px; display: grid; gap: 12px; }
.bbh__k { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--pg-acc); }
.bbh__t { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 3.2vw, 40px); line-height: .95; letter-spacing: -0.04em; font-variation-settings: 'wdth' 110; }
.bbh__p { font-size: 14px; opacity: .7; max-width: 42ch; }
.bbt { padding: 22px 26px; font-size: 14.5px; line-height: 1.6; opacity: .85; }
.bbi { padding: 10px 26px 20px; }
.bbi__ph { aspect-ratio: 16 / 7; border-radius: 12px; background: var(--pg-soft); position: relative; overflow: hidden; }
.bbi__ph i { position: absolute; border-radius: 50%; background: var(--pg-acc); width: 30%; aspect-ratio: 1; left: 12%; top: 30%; opacity: .9; }
.bbi__ph i + i { background: var(--pg-fg); width: 50%; left: 40%; top: 45%; border-radius: 16px; opacity: .14; }
.bbf { padding: 18px 26px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bbf > div { padding: 14px; border-radius: 12px; background: var(--pg-soft); display: grid; gap: 6px; font-size: 13px; }
.bbf b { font-size: 14px; }
.bbf span { opacity: .65; font-size: 12px; }
.blab__page.is-mobile .bbf { grid-template-columns: 1fr; }
.bbq { padding: 26px; font-family: var(--f-display); font-size: 21px; font-weight: 560; letter-spacing: -0.02em; line-height: 1.2; border-left: 3px solid var(--pg-acc); margin: 12px 26px; padding: 6px 0 6px 18px; }
.bbb { padding: 12px 26px 30px; }
.bbb span { display: inline-flex; padding: 12px 20px; border-radius: 999px; background: var(--pg-acc); color: var(--pg-bg); font-weight: 600; font-size: 14px; }
.blab__page[data-theme='signal'] .bbb span { color: #ff4b1f; }
.publish { position: relative; overflow: hidden; }
.publish__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left; }

/* Work list */
.sechead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(40px, 6vw, 80px); }
.sechead__l { display: grid; gap: 22px; }
.worklist { border-top: 1px solid var(--hair); }
.workrow {
  position: relative; display: grid; grid-template-columns: 70px minmax(0, 1.3fr) minmax(0, 1fr) 70px 40px; align-items: center; gap: 20px;
  padding: clamp(20px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--hair); transition: color .5s var(--ease-out);
}
.workrow__i { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.workrow__name {
  font-family: var(--f-display); font-weight: 760; font-size: clamp(1.9rem, 4.4vw, 4.4rem); line-height: 1; letter-spacing: -0.045em;
  font-variation-settings: 'wdth' 104; transition: font-variation-settings .9s var(--ease-spring), transform .9s var(--ease-spring);
}
.workrow__kind { color: var(--muted); font-size: 15px; }
.workrow__year { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.workrow__arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--hair); transition: background-color .4s, color .4s, transform .6s var(--ease-spring), box-shadow .4s; }
.workrow__arrow svg { width: 14px; height: 14px; }
.workrow__thumb { display: none; }
.worklist:hover .workrow { color: color-mix(in oklab, var(--fg) 34%, transparent); }
.worklist .workrow:hover { color: var(--fg); }
.workrow:hover .workrow__name { font-variation-settings: 'wdth' 122; transform: translateX(12px); }
.workrow:hover .workrow__arrow { background: var(--signal); color: var(--ink); box-shadow: none; transform: rotate(45deg); }

.hoverimg {
  position: fixed; left: 0; top: 0; z-index: 60; width: 380px; aspect-ratio: 16 / 10; pointer-events: none;
  opacity: 0; transition: opacity .4s var(--ease-out); will-change: transform;
}
.hoverimg.is-on { opacity: 1; }
.hoverimg__inner {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden; transform: scale(.55);
  transition: transform .7s var(--ease-spring); box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
}
.hoverimg.is-on .hoverimg__inner { transform: none; }
.hoverimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .35s var(--ease-out), transform .8s var(--ease-spring); }
.hoverimg img:not(.is-on) { opacity: 0; transform: scale(1.12); }

/* CTA */
.cta { position: relative; overflow: hidden; padding-block: clamp(100px, 12vw, 180px) clamp(70px, 8vw, 110px); }
.cta__mods { position: absolute; inset: 0; pointer-events: none; opacity: .5; }
.cta__inner { position: relative; display: grid; gap: clamp(36px, 5vw, 64px); }
.cta__big { display: block; width: fit-content; font-family: var(--f-display); font-weight: 820; font-size: clamp(3.4rem, 11vw, 12.4rem); line-height: .86; letter-spacing: -0.055em; font-variation-settings: 'wdth' 104; }
.cta__big > span { display: block; white-space: nowrap; transition: font-variation-settings 1s var(--ease-spring), transform 1s var(--ease-spring); }
.cta__big > span + span { font-weight: 300; font-variation-settings: 'wdth' 92; }
.cta__big:hover > span:first-child { font-variation-settings: 'wdth' 124; }
.cta__big:hover > span + span { transform: translateX(3vw); }
.cta__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; border-top: 1px solid var(--hair); }
.cta__mail { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.8rem); letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 12px; }
.copybtn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--hair); color: var(--fg); font-variation-settings: 'wdth' 87.5;
  transition: background-color .3s, color .3s, transform .5s var(--ease-spring);
}
.copybtn svg { width: 12px; height: 12px; }
.copybtn:hover { background: var(--fg); color: var(--bg); }
.copybtn:active { transform: scale(.94); }
.cta__mailrow { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Footer */
.footer { position: relative; overflow: hidden; padding-top: clamp(64px, 8vw, 110px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: clamp(48px, 6vw, 80px); }
.footer__col { display: grid; align-content: start; gap: 12px; }
.footer__col .mono { margin-bottom: 6px; }
.footer__col a, .footer__col button { width: fit-content; font-size: 15px; transition: color .3s; }
.footer__col a:hover, .footer__col button:hover { color: var(--signal); }
.footer__lead { font-family: var(--f-display); font-weight: 640; font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.1; letter-spacing: -0.03em; max-width: 18ch; font-variation-settings: 'wdth' 104; }
.footer__word {
  display: flex; justify-content: space-between; align-items: baseline; font-family: var(--f-display); font-weight: 900;
  font-size: 27.6vw; line-height: .78; letter-spacing: -0.06em; font-variation-settings: 'wdth' 125;
  color: var(--paper); margin-bottom: 0.04em; padding-inline: calc(var(--gutter) * .5); user-select: none;
}
.footer__word span { display: inline-block; transition: transform .9s var(--ease-spring), color .4s, background-color .4s; }
.footer__word .footer__sq { width: .62em; height: .62em; background: var(--signal); border-radius: .05em; }
.footer__word .footer__sq:hover { background: var(--paper); }
.footer__word span:hover { transform: translateY(-6%); color: var(--signal); }
.js .footer__word span { transform: translateY(40%); }
.js .footer__word.is-in span { transform: none; transition-delay: calc(var(--wi) * 60ms); }
.js .footer__word.is-in span:hover { transform: translateY(-6%); transition-delay: 0s; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding: 18px 0 22px; border-top: 1px solid var(--hair); color: var(--muted); }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.ahero { padding-top: clamp(140px, 16vw, 210px); padding-bottom: clamp(80px, 10vw, 140px); }
.ahero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.ahero__copy { display: grid; gap: 30px; }
.ahero .h1 { font-size: clamp(3rem, 6.6vw, 7.4rem); }
.ahero__facts { display: flex; flex-wrap: wrap; gap: 8px; }

.idcard-wrap { perspective: 1400px; justify-self: end; width: min(100%, 400px); }
.idcard { position: relative; aspect-ratio: 5 / 7.4; transform-style: preserve-3d; transition: transform 1.1s var(--ease-spring); cursor: pointer; }
.idcard.is-flipped .idcard__flip { transform: rotateY(180deg); }
.idcard__flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1.1s var(--ease-spring); }
.idcard__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 30px; padding: 6px; background: rgba(13,13,11,.05); box-shadow: inset 0 0 0 1px var(--hair-paper); }
.idcard__core { position: relative; height: 100%; border-radius: 24px; overflow: hidden; background: var(--ink); color: var(--paper); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 50px 90px -40px rgba(13,13,11,.6), inset 0 1px 0 rgba(255,255,255,.08); }
.idcard__back { transform: rotateY(180deg); }
.idcard__back .idcard__core { background: var(--paper); color: var(--ink); box-shadow: 0 50px 90px -40px rgba(13,13,11,.5), inset 0 0 0 1px rgba(0,0,0,.06); }
.idcard__glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.18), transparent 50%); mix-blend-mode: overlay; }
.idcard__top { display: flex; justify-content: space-between; align-items: start; }
.idcard__chip { width: 46px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, #f4c47a, #b9853e); position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.idcard__chip::before { content: ''; position: absolute; inset: 9px 0; border-block: 1px solid rgba(0,0,0,.25); }
.idcard__mods { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin: 18px 0; }
.idcard__mods i { aspect-ratio: 1; background: var(--paper); border-radius: 2px; opacity: .1; transition: opacity .6s, background-color .6s; }
.idcard__mods i.on { opacity: .9; }
.idcard__mods i.hot { background: var(--signal); opacity: 1; }
.idcard__name { font-family: var(--f-display); font-weight: 820; font-size: clamp(3.6rem, 6.2vw, 5.8rem); line-height: .86; letter-spacing: -0.05em; font-variation-settings: 'wdth' 120; }
.idcard__role { margin-top: 10px; color: var(--muted-ink); }
.idcard__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 18px; border-top: 1px solid rgba(238,235,228,.12); }
.idcard__meta div { display: grid; gap: 4px; }
.idcard__meta span:first-child { color: var(--muted-ink); }
.idcard__qr { width: 78%; align-self: center; aspect-ratio: 1; }
.idcard__qr canvas { width: 100%; height: 100%; }
.idcard__hint { text-align: center; margin-top: 14px; color: var(--muted); }

.story__text { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.8rem, 3.9vw, 4rem); line-height: 1.06; letter-spacing: -0.035em; font-variation-settings: 'wdth' 102; max-width: 24ch; }
.story__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; margin-top: clamp(60px, 8vw, 110px); padding-top: 32px; border-top: 1px solid var(--hair); }
.story__cols p { color: var(--muted); font-size: 16px; }
.story__cols h3 { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; color: var(--fg); font-variation-settings: 'wdth' 108; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.stat { padding: 30px 24px 10px 0; display: grid; gap: 12px; border-right: 1px solid var(--hair); padding-left: 24px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__n { font-family: var(--f-display); font-weight: 800; font-size: clamp(3.6rem, 7.4vw, 7.6rem); line-height: .85; letter-spacing: -0.06em; font-variation-settings: 'wdth' 116; font-variant-numeric: tabular-nums; }
.stat__n sup {
  position: relative; top: 0.5em; margin-left: 8px; padding: 5px 8px; border-radius: 7px; vertical-align: top;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  font-variation-settings: 'wdth' 87.5; background: var(--signal); color: var(--ink);
}
.stat p { color: var(--muted); font-size: 15px; max-width: 24ch; }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.bento > * { grid-column: span 6; }
.bento > .span-7 { grid-column: span 7; }
.bento > .span-5 { grid-column: span 5; }
.bento .bezel__core { padding: clamp(24px, 3vw, 40px); min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; height: 100%; }
.bento .bezel { height: 100%; }
.pcp__n { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.pcp h3 { font-family: var(--f-display); font-weight: 760; font-size: clamp(1.7rem, 2.6vw, 2.6rem); line-height: 1; letter-spacing: -0.04em; font-variation-settings: 'wdth' 110; margin-bottom: 14px; }
.pcp p { color: var(--muted); max-width: 40ch; }
.pcp__vis { display: flex; justify-content: space-between; align-items: start; }
.mod-anim { display: grid; grid-template-columns: repeat(5, 9px); gap: 4px; }
.mod-anim i { width: 9px; height: 9px; border-radius: 2px; background: var(--fg); opacity: .12; transition: opacity .5s, background-color .5s, transform .6s var(--ease-spring); }
.mod-anim i.on { opacity: 1; }
.mod-anim i.hot { background: var(--signal); opacity: 1; }

/* Process: horizontal pinned on desktop */
.process { overflow: hidden; }
.process__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.process__bar { position: relative; height: 2px; background: var(--hair); margin-top: 40px; overflow: hidden; }
.process__bar i { position: absolute; inset: 0; background: var(--signal); transform: scaleX(var(--p, 0)); transform-origin: left; }
.process__track { display: flex; gap: 16px; margin-top: 40px; will-change: transform; }
.pstep { flex: 0 0 min(560px, 80vw); }
.pstep .bezel__core { padding: clamp(26px, 3vw, 44px); min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.pstep__n { font-family: var(--f-display); font-weight: 800; font-size: clamp(5rem, 9vw, 9rem); line-height: .8; letter-spacing: -0.06em; font-variation-settings: 'wdth' 120; color: transparent; -webkit-text-stroke: 1.2px var(--fg); }
.pstep h3 { font-family: var(--f-display); font-weight: 760; font-size: clamp(1.8rem, 2.8vw, 2.8rem); letter-spacing: -0.04em; line-height: 1; font-variation-settings: 'wdth' 110; margin-bottom: 14px; }
.pstep p { color: var(--muted); }
.pstep ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.pstep li { padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); font-size: 12.5px; }
.pstep:last-child .bezel__core { background: var(--signal); color: var(--ink); --hair: rgba(13,13,11,.2); --muted: rgba(13,13,11,.7); --fg: var(--ink); }

.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tool { position: relative; height: 112px; perspective: 800px; }
.tool__in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--ease-spring); }
.tool:hover .tool__in, .tool:focus-within .tool__in { transform: rotateX(-180deg); }
.tool__f, .tool__b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.tool__f { background: var(--card); box-shadow: inset 0 0 0 1px var(--hair); }
.tool__b { background: var(--ink); color: var(--paper); transform: rotateX(180deg); }
.tool__f b { font-size: 17px; font-weight: 640; letter-spacing: -0.02em; }
.tool__b span:last-child { font-size: 13.5px; line-height: 1.35; }
.tool__b .mono { color: var(--signal); }

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.phead { padding-top: clamp(140px, 15vw, 200px); padding-bottom: clamp(40px, 5vw, 64px); }
.phead__title { position: relative; display: inline-block; font-family: var(--f-display); font-weight: 820; font-size: clamp(5rem, 19vw, 20rem); line-height: .78; letter-spacing: -0.065em; font-variation-settings: 'wdth' 118; }
.phead__count { position: absolute; left: 100%; top: .06em; margin-left: .12em; font-family: var(--f-mono); font-size: clamp(.9rem, 1.4vw, 1.3rem); font-weight: 400; letter-spacing: 0; color: var(--signal); font-variation-settings: 'wdth' 87.5; }
.phead__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; margin-top: clamp(30px, 4vw, 56px); }
.ptools { position: sticky; top: 84px; z-index: 20; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 46px; padding: 8px; border-radius: 999px; background: rgba(238, 235, 228, .82); box-shadow: inset 0 0 0 1px var(--hair); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters .chip { height: 38px; }

.pgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(16px, 2vw, 28px); padding-bottom: clamp(100px, 12vw, 180px); padding-top: clamp(24px, 3vw, 40px); }
.pcard { position: relative; grid-column: span 6; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; min-width: 0; }
.pcard[data-size='l'] { grid-column: span 7; }
.pcard[data-size='s'] { grid-column: span 5; }
.pcard[data-size='s'][data-offset] { margin-top: clamp(60px, 10vw, 160px); }
.pcard[data-size='xl'] { grid-column: 1 / -1; }
.pcard__hit { position: absolute; inset: 0; z-index: 3; border-radius: var(--radius); }
.pcard__media { position: relative; z-index: 4; pointer-events: none; transition: transform 1s var(--ease-spring); }
.pcard__media .pcard__live { pointer-events: auto; }
.pcard__media .bezel__core { background: var(--card-2); }
.pcard__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--card-2); }
.pcard[data-size='xl'] .pcard__img { aspect-ratio: 21 / 9; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.4s var(--ease-spring), filter .6s; }
.pcard:hover .pcard__img img { transform: scale(1.045); }
.pcard:hover .pcard__media { transform: translateY(-6px); }
.pcard__tint { position: absolute; inset: 0; background: var(--c); mix-blend-mode: multiply; opacity: 0; transition: opacity .6s; pointer-events: none; }
.pcard:hover .pcard__tint { opacity: .12; }
.pcard__meta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding: 0 6px; }
.pcard__i { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.pcard__name { white-space: nowrap; font-family: var(--f-display); font-weight: 760; font-size: clamp(1.5rem, 2.2vw, 2.1rem); letter-spacing: -0.04em; line-height: 1.05; font-variation-settings: 'wdth' 108; transition: font-variation-settings .8s var(--ease-spring); }
.pcard:hover .pcard__name { font-variation-settings: 'wdth' 120; }
.pcard__year { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.pcard__kick { grid-column: 2 / -1; color: var(--muted); font-size: 15px; }
.pcard__tags { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pcard__tags span { padding: 5px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); font-size: 12px; }
.pcard.is-out { opacity: 0; transform: scale(.96); }
.pcard.is-gone { display: none; }

/* Generated art for experiments */
.art { position: absolute; inset: 0; display: grid; place-items: center; }
.art--qr { background: var(--ink); }
.art--qr canvas { width: 46%; aspect-ratio: 1; height: auto; }
.art--builder { background: var(--forest); padding: 8% 12%; display: grid; grid-template-columns: 22% 1fr; gap: 4%; place-items: stretch; }
.art--builder > div { border-radius: 10px; background: rgba(241, 236, 223, .08); padding: 8px; display: grid; gap: 6px; align-content: start; }
.art--builder > div i { display: block; height: 14px; border-radius: 5px; background: rgba(241, 236, 223, .18); }
.art--builder > div:last-child { background: #f1ecdf; gap: 10px; padding: 14px; }
.art--builder > div:last-child i { background: rgba(29, 59, 42, .14); height: 18px; }
.art--builder > div:last-child i:first-child { height: 46px; background: #1d3b2a; }
.art--builder > div:last-child i.acc { background: #e8c26a; width: 40%; outline: 2px dashed #e8c26a; outline-offset: 3px; }

/* Index view */
.pgrid[data-view='list'] { display: block; }
.pgrid[data-view='list'] .pcard { display: none; }
.plist { display: none; }
.pgrid[data-view='list'] .plist { display: block; border-top: 1px solid var(--hair); }
.prow { display: grid; grid-template-columns: 60px minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr) 60px; gap: 20px; align-items: center; width: 100%; text-align: left; padding: 22px 0; border-bottom: 1px solid var(--hair); transition: color .4s, padding .6s var(--ease-spring); }
.prow__name { white-space: nowrap; font-family: var(--f-display); font-weight: 740; font-size: clamp(1.4rem, 2.6vw, 2.4rem); letter-spacing: -0.04em; font-variation-settings: 'wdth' 106; line-height: 1.05; transition: font-variation-settings .8s var(--ease-spring); }
.prow__c, .prow__t { color: var(--muted); font-size: 14.5px; }
.prow__y { font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-align: right; }
.plist:hover .prow { color: color-mix(in oklab, var(--fg) 35%, transparent); }
.plist .prow:hover { color: var(--fg); padding-left: 14px; }
.prow:hover .prow__name { font-variation-settings: 'wdth' 122; }
.prow.is-gone { display: none; }

/* Case study modal */
.case { position: fixed; inset: 0; z-index: 102; display: flex; align-items: flex-end; justify-content: center; }
.case__backdrop { position: absolute; inset: 0; background: rgba(13, 13, 11, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .6s var(--ease-out); }
.case.is-open .case__backdrop { opacity: 1; }
.case__sheet {
  position: relative; width: min(1240px, 100%); height: calc(100vh - 40px); height: calc(100dvh - 40px);
  border-radius: 30px 30px 0 0; overflow: auto; overscroll-behavior: contain;
  transform: translateY(100%); transition: transform .9s var(--ease-spring);
}
.case.is-open .case__sheet { transform: none; }
.case__head { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px clamp(18px, 3vw, 36px); background: rgba(238, 235, 228, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--hair); }
.case__nav { display: flex; gap: 6px; }
.iconbtn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--hair); transition: background-color .3s, color .3s, transform .5s var(--ease-spring); }
.iconbtn:hover { background: var(--fg); color: var(--bg); }
.iconbtn:active { transform: scale(.92); }
.iconbtn svg { width: 16px; height: 16px; }
.case__body { padding: clamp(22px, 3vw, 40px) clamp(18px, 3vw, 36px) 60px; display: grid; gap: clamp(30px, 4vw, 56px); }
.case__media .bezel__core { background: var(--card-2); }
.case__img { position: relative; aspect-ratio: 16 / 9.4; overflow: hidden; }
.case__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case.is-open .case__img { animation: caseImg 1.2s var(--ease-spring) .15s both; }
@keyframes caseImg { from { clip-path: inset(12% 12% 12% 12% round 20px); transform: scale(1.06); } to { clip-path: inset(0 0 0 0 round 0); transform: none; } }
.case__title { font-family: var(--f-display); font-weight: 820; font-size: clamp(2.8rem, 7vw, 6.4rem); letter-spacing: -0.055em; line-height: 1; font-variation-settings: 'wdth' 112; }
.case__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); }
.case__summary { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.5; }
.case__facts { display: grid; gap: 0; border-top: 1px solid var(--hair); }
.case__facts div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.case__facts dt { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-top: 4px; }
.case__hl { display: grid; gap: 0; margin-top: 30px; counter-reset: hl; }
.case__hl li { counter-increment: hl; display: grid; grid-template-columns: 46px 1fr; padding: 14px 0; border-top: 1px solid var(--hair); }
.case__hl li::before { content: counter(hl, decimal-leading-zero); font-family: var(--f-mono); font-size: 11px; color: var(--signal); padding-top: 4px; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.chero { padding-top: clamp(140px, 15vw, 200px); padding-bottom: clamp(56px, 7vw, 100px); }
.chero__title { font-family: var(--f-display); font-weight: 820; font-size: clamp(3rem, 8.6vw, 9.4rem); line-height: 1; letter-spacing: -0.055em; font-variation-settings: 'wdth' 110; max-width: 13ch; }
.chero__title em { font-weight: 300; font-variation-settings: 'wdth' 90; }
.chero__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; margin-top: clamp(36px, 5vw, 70px); padding-top: 28px; border-top: 1px solid var(--hair); }
.bigmail { font-family: var(--f-display); font-weight: 680; font-size: clamp(1.6rem, 3.8vw, 3.6rem); letter-spacing: -0.04em; line-height: 1; display: inline-flex; align-items: center; gap: 16px; font-variation-settings: 'wdth' 104; transition: color .4s; word-break: break-all; }
.bigmail:hover { color: var(--signal); }
.bigmail-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.brief__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.brief .bezel__core { padding: clamp(24px, 4vw, 56px); }
.brief__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: clamp(26px, 3vw, 44px); }
.madlib { font-family: var(--f-display); font-weight: 560; font-size: clamp(1.45rem, 2.7vw, 2.55rem); line-height: 1.55; letter-spacing: -0.03em; font-variation-settings: 'wdth' 102; color: var(--muted); }
.madlib > span, .madlib > p { color: var(--fg); }
.ml-in {
  display: inline-block; vertical-align: baseline; min-width: 5ch; max-width: 100%; padding: 0 .18em; margin: 0 .05em;
  border: 0; outline: 0; background: transparent; color: var(--signal); font: inherit; letter-spacing: -0.03em;
  text-overflow: ellipsis;
  /* --z: zoom factor set in JS (pages.js) — keeps the underline 2px at any zoom */
  border-bottom: calc(2px / var(--z, 1)) solid var(--hair); border-radius: 0;
  /* browsers force a light background + dark text on autofill (even with !important);
     a very long transition keeps this field's own transparent background and orange text */
  transition: border-color .3s, background-color 600000s 0s, color 600000s 0s;
}
.ml-in:-webkit-autofill { -webkit-text-fill-color: var(--signal); caret-color: var(--signal); filter: none; animation: mlFill 1ms; }
.ml-in:autofill { -webkit-text-fill-color: var(--signal); filter: none; }
/* start/end of an autofill preview or fill, picked up in JS via animationstart */
.ml-in:not(:-webkit-autofill) { animation: mlUnfill 1ms; }
@keyframes mlFill { from { opacity: 1; } to { opacity: 1; } }
@keyframes mlUnfill { from { opacity: 1; } to { opacity: 1; } }
/* Chrome draws its autofill hover preview in its own locked system font. In Chromium the field
   is zoomed (.ml-z) so that preview is full size; this stroke + spacing match the site font's
   weight and width. .is-sizing eases the width while a preview opens, closes or is picked. */
.ml-in.ml-z.is-preview { -webkit-text-stroke: 0.04em var(--signal); letter-spacing: -0.005em; }
.ml-in.is-sizing { transition: border-color .3s, background-color 600000s 0s, color 600000s 0s, width .45s var(--ease-spring); }
.ml-in::placeholder { color: color-mix(in oklab, var(--fg) 28%, transparent); }
.ml-in:focus { border-bottom-color: var(--signal); }
.ml-in.is-invalid { border-bottom-color: #ff2d55; animation: shake .5s var(--ease-out); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.ml-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; margin: .15em .1em; }
.ml-chips .chip { font-family: var(--f-body); font-size: clamp(13px, 1.1vw, 15px); letter-spacing: 0; height: 38px; color: var(--fg); }
.ml-chips .chip[aria-pressed='true'], .ml-chips .chip[aria-checked='true'] { color: var(--bg); }
.madlib textarea.ml-in { display: block; width: 100%; min-height: 3.2em; resize: vertical; margin-top: .3em; font-size: .7em; line-height: 1.5; padding: .4em 0; }
.brief__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-top: clamp(30px, 4vw, 50px); padding-top: 24px; border-top: 1px solid var(--hair); }
.brief__err { color: #ff6b6b; font-size: 14px; min-height: 1.4em; }
.brief__done { display: grid; gap: 22px; justify-items: start; }
.brief__done .h3 { max-width: 18ch; }
.brief__qr { width: 210px; aspect-ratio: 1; border-radius: 16px; background: var(--paper); padding: 10px; }
.brief__qr canvas { width: 100%; height: 100%; }

.cside { display: grid; gap: 16px; }
.cside .bezel__core { padding: 26px; display: grid; gap: 18px; }
.cside__row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.cside__row:last-child { border-bottom: 0; padding-bottom: 0; }
.cside__big { font-family: var(--f-display); font-weight: 760; font-size: 2.6rem; letter-spacing: -0.04em; line-height: 1; font-variation-settings: 'wdth' 112; font-variant-numeric: tabular-nums; }
.vqr { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; }
.vqr__c { aspect-ratio: 1; border-radius: 14px; background: var(--paper); padding: 8px; }
.vqr__c canvas { width: 100%; height: 100%; }

.faq { border-top: 1px solid var(--hair); }
.faq__item { border-bottom: 1px solid var(--hair); }
.faq__q { width: 100%; display: grid; grid-template-columns: 60px 1fr 44px; align-items: center; gap: 16px; padding: 26px 0; text-align: left; }
.faq__q span:nth-child(2) { font-family: var(--f-display); font-weight: 680; font-size: clamp(1.25rem, 2.2vw, 2rem); letter-spacing: -0.03em; line-height: 1.15; font-variation-settings: 'wdth' 104; transition: font-variation-settings .8s var(--ease-spring); }
.faq__q:hover span:nth-child(2) { font-variation-settings: 'wdth' 116; }
.faq__plus { position: relative; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair); transition: background-color .4s, transform .7s var(--ease-spring); }
.faq__plus::before, .faq__plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; transition: transform .6s var(--ease-spring); }
.faq__plus::after { transform: rotate(90deg); }
.faq__q[aria-expanded='true'] .faq__plus { background: var(--signal); color: var(--ink); transform: rotate(180deg); box-shadow: none; }
.faq__q[aria-expanded='true'] .faq__plus::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-spring); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 60px 30px 76px; color: var(--muted); max-width: 70ch; font-size: 17px; }
.faq__q[aria-expanded='true'] + .faq__a { grid-template-rows: 1fr; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .island__extra { display: none; }
  .labs__grid { grid-template-columns: minmax(0, 1fr); }
  .labs__side { position: static; }
  .labs__tabs { grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .labs__tabs::-webkit-scrollbar { display: none; }
  .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop__rail { display: none; }
  .labtab { grid-template-columns: minmax(0, 1fr); }
  .labtab__i { grid-row: auto; padding: 0; }
  .labtab__d { display: none; }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .brief__grid { grid-template-columns: minmax(0, 1fr); }
  .cside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .island { display: none; }
  .menu__inner { grid-template-columns: minmax(0, 1fr); padding-top: 110px; }
  .menu__preview { display: none; }
  .menu__link { grid-template-columns: 40px minmax(0, 1fr); }
  .menu__desc { grid-column: 2; margin-top: -4px; padding-bottom: 6px; }
  .menu__txt { font-size: clamp(2.8rem, 13vw, 5rem); }

  .hero__stage { position: relative; width: 100%; height: 54vh; height: 54svh; order: -1; margin-top: 70px; }
  .hero__grid { -webkit-mask-image: radial-gradient(ellipse 80% 40% at 50% 30%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 80% 40% at 50% 30%, #000 0%, transparent 75%); }
  .hero__content { padding-top: 8px; gap: 28px; position: static; }
  .hero__top { position: absolute; top: 84px; left: var(--gutter); z-index: 2; }
  .hero__bottom { position: relative; z-index: 1; }
  .hero__bottom { grid-template-columns: minmax(0, 1fr); }
  .hero__side { justify-items: start; text-align: left; order: -1; max-width: none; }
  .hero__fig { min-height: 0; }
  .hero__title { font-size: clamp(3rem, 14.5vw, 6rem); }

  .loop { grid-template-columns: minmax(0, 1fr); }
  .loop__rail { display: none; }
  .loop__node .bezel__core { min-height: 0; }

  .workrow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'thumb thumb' 'name arrow' 'kind arrow'; gap: 6px 16px; }
  .workrow__i, .workrow__year { display: none; }
  .workrow__name { grid-area: name; }
  .workrow__kind { grid-area: kind; font-size: 14px; }
  .workrow__arrow { grid-area: arrow; align-self: center; }
  .workrow__thumb { display: block; grid-area: thumb; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; margin-bottom: 12px; }
  .workrow__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .hoverimg { display: none; }

  .ahero__grid { grid-template-columns: minmax(0, 1fr); }
  .idcard-wrap { justify-self: center; }
  .story__cols { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stat { padding: 26px 16px 26px 0; border-bottom: 1px solid var(--hair); }
  .stat:nth-child(2n) { border-right: 0; padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
  .bento > *, .bento > .span-7, .bento > .span-5 { grid-column: 1 / -1; }
  .process__track { flex-direction: column; transform: none !important; }
  .pstep { flex: none; }
  .pstep .bezel__core { min-height: 0; }

  .phead__row { grid-template-columns: minmax(0, 1fr); }
  .phead__row > .mono { display: none; }
  .pgrid { grid-template-columns: minmax(0, 1fr); }
  .pcard, .pcard[data-size] { grid-column: 1 / -1; }
  .pcard[data-size='s'][data-offset] { margin-top: 0; }
  .pcard[data-size='xl'] .pcard__img { aspect-ratio: 16 / 10; }
  .ptools { border-radius: 24px; top: 76px; }
  .prow { grid-template-columns: minmax(0, 1fr) auto; }
  .prow__i, .prow__t { display: none; }
  .prow__c { grid-column: 1; grid-row: 2; }
  .prow__y { grid-row: 1 / span 2; grid-column: 2; }
  .case__grid { grid-template-columns: minmax(0, 1fr); }
  .case__sheet { height: calc(100dvh - 16px); border-radius: 22px 22px 0 0; }

  .chero__row { grid-template-columns: minmax(0, 1fr); }
  .cside { grid-template-columns: minmax(0, 1fr); }
  .faq__q { grid-template-columns: minmax(0, 1fr) 44px; }
  .faq__q span:first-child { display: none; }
  .faq__a p { padding: 0 0 26px; }
}

@media (max-width: 760px) {
  .qrlab { grid-template-columns: minmax(0, 1fr); }
  .qrlab__stage { border-right: 0; border-bottom: 1px solid var(--hair); padding: 28px 20px 56px; }
  .blab { height: auto; }
  .blab__body { grid-template-columns: minmax(0, 1fr); }
  .blab__palette { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--hair); }
  .blab__palette .field__label { display: none; }
  .pblock { flex: none; }
  .pblock span:last-child { display: none; }
  .blab__canvas { max-height: 520px; }
  .labs__stage .bezel__core, .wlab, .qrlab { min-height: 0; }
  .wlab__frame { height: 500px; }
  .labtab { padding: 14px; border-radius: 16px; min-width: 0; }
  .labs__tabs { grid-auto-columns: minmax(124px, 1fr); }
  .labtab__t { font-size: 1.1rem; }
  .labtab[aria-selected='true']::after { right: 12px; top: 14px; width: 8px; height: 8px; }
}

@media (max-width: 640px) {
  .topbar { padding: 12px 14px; }
  .brand { left: 16px; top: 23px; font-size: 19px; }
  .menu-btn { height: 46px; padding-left: 16px; }
  .menu-btn__grid { width: 34px; height: 34px; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: space-between; }
  .hero__ctas { width: 100%; }
  .formtabs { width: 100%; }
  .hero__fig { display: none; }
  .formtab { flex: 1; justify-content: center; padding: 0 6px; }
  .ft-l { display: none; }
  .ft-s { display: inline; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat:nth-child(n) { padding: 24px 0; border-right: 0; }
  .chip { height: 36px; padding: 0 13px; font-size: 13px; }
  .ptools { border-radius: 20px; }
  .cta__row { flex-direction: column; align-items: flex-start; }
  .vqr { grid-template-columns: 96px minmax(0, 1fr); }
  .madlib { line-height: 1.7; }
}

@media (hover: none) {
  .workrow:hover .workrow__name { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .js .split .w > span { transform: none; }
  .js .footer__word span { transform: none; }
  .js [data-scrub-words].is-ready .sw { opacity: 1; }
}


/* ==========================================================================
   v2 additions: hero tabs, live links, QR menu lab, AI lab, new art
   ========================================================================== */

/* Signal button (most visible action on the page) */
.btn--signal { background: var(--signal); color: var(--ink); box-shadow: 0 14px 34px -14px rgba(255, 75, 31, .8); }
.btn--signal .btn__icon { background: var(--ink); color: var(--signal); }
.btn--signal:hover { box-shadow: 0 18px 40px -12px rgba(255, 75, 31, .95); }
.btn--signal.is-pulse { animation: sigPulse 1.8s var(--ease-out) .5s 2; }
@keyframes sigPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 75, 31, .6), 0 14px 34px -14px rgba(255, 75, 31, .8); } 100% { box-shadow: 0 0 0 16px rgba(255, 75, 31, 0), 0 14px 34px -14px rgba(255, 75, 31, .8); } }

/* Card chrome: live-site chip */
.chrome { position: relative; }
.pcard__live {
  position: relative; z-index: 4; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px;
  border-radius: 999px; background: var(--signal); color: var(--ink); font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; font-variation-settings: 'wdth' 87.5; white-space: nowrap;
  transition: background-color .3s, color .3s, transform .5s var(--ease-spring);
}
.pcard__live svg { width: 11px; height: 11px; transition: transform .5s var(--ease-spring); }
.pcard__live::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--ink); }
.pcard__live:hover { background: var(--ink); color: var(--signal); }
.pcard__live:hover::before { background: var(--signal); }
.pcard__live:hover svg { transform: translate(2px, -2px); }
.pcard__live--try { background: var(--fg); color: var(--bg); }
.pcard__live--try::before { background: var(--signal); }

/* Case sheet: visit button in the sticky header + big CTA row */
.case__head-r { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.case__visit { min-height: 42px; padding: 4px 4px 4px 16px; font-size: 14px; gap: 12px; }
.case__visit .btn__icon { width: 34px; height: 34px; }
.case__visit-s { display: none; }
.case__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 18px 18px 18px 24px; border-radius: 22px; background: var(--ink); color: var(--paper);
}
.case__cta-l { display: grid; gap: 4px; }
.case__cta-l .mono { color: var(--muted-ink); }
.case__cta-l b { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -0.02em; font-variation-settings: 'wdth' 108; word-break: break-all; }
.case__media-link { display: block; border-radius: var(--radius); }

/* Experiment art: QR menu + AI */
.art--menu { background: #5a1a24; display: grid; grid-template-columns: auto auto; gap: 7%; place-content: center; }
.art--menu .am-tent { width: 7.5vw; max-width: 96px; aspect-ratio: 3 / 4; background: #f6e9dc; border-radius: 8px; padding: 9%; display: grid; place-items: center; align-self: end; margin-bottom: 12%; }
.art--menu .am-tent canvas { width: 100%; height: auto; aspect-ratio: 1; }
.art--menu .am-phone { width: 11vw; max-width: 150px; aspect-ratio: 9 / 18; border-radius: 18px; background: #0d0d0b; padding: 5px; }
.art--menu .am-screen { height: 100%; border-radius: 14px; background: #f6f1e7; padding: 14% 10%; display: grid; gap: 7%; align-content: start; }
.art--menu .am-screen i { display: block; height: 9px; border-radius: 4px; background: rgba(29, 26, 22, .12); }
.art--menu .am-screen i:first-child { height: 26%; background: #e2b05a; border-radius: 10px; }
.art--menu .am-screen i.acc { width: 45%; background: #7a2331; }
.art--ai { background: #0d0d0b; overflow: hidden; }
.art--ai .ai-star { position: absolute; background: var(--signal); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.art--ai .ai-star:nth-child(1) { width: 34%; aspect-ratio: 1; left: 33%; top: 22%; }
.art--ai .ai-star:nth-child(2) { width: 12%; aspect-ratio: 1; left: 64%; top: 16%; background: var(--paper); }
.art--ai .ai-star:nth-child(3) { width: 7%; aspect-ratio: 1; left: 28%; top: 64%; background: var(--paper); opacity: .6; }
.art--ai .ai-orbit { position: absolute; left: 18%; top: 34%; width: 64%; height: 30%; border-radius: 50%; border: 1.5px solid rgba(238, 235, 228, .35); transform: rotate(-14deg); }

/* ---------- Lab: QR menu ---------- */
.mlab { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); min-height: 680px; }
.mlab__stage {
  position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 40px); padding: 36px 24px;
  border-right: 1px solid var(--hair); background-image: radial-gradient(var(--hair) 1px, transparent 1px); background-size: 14px 14px; overflow: hidden;
}
.tent { position: relative; width: 168px; flex: none; align-self: flex-end; margin-bottom: 40px; perspective: 600px; }
.tent__card {
  position: relative; padding: 16px 14px 14px; border-radius: 14px; background: #f6e9dc; color: #2a1015; text-align: center; display: grid; gap: 8px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 30px 40px -24px rgba(0,0,0,.45); transform: rotateX(6deg); transform-origin: bottom;
}
.tent__name { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; font-variation-settings: 'wdth' 116; }
.tent__table { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #7a2331; }
.tent__qr { background: #fff; border-radius: 10px; padding: 8px; }
.tent__qr canvas { width: 100%; height: auto; aspect-ratio: 1; }
.tent__scan { font-size: 11px; font-weight: 600; }
.tent__base { height: 10px; margin: 0 6px; border-radius: 0 0 8px 8px; background: #d9c6b2; }

.phone { position: relative; width: 290px; height: 600px; flex: none; border-radius: 46px; padding: 9px; background: #0d0d0b; box-shadow: inset 0 0 0 1.5px #2a2a26, 0 50px 80px -40px rgba(13,13,11,.6), 0 0 0 1px rgba(0,0,0,.2); }
.phone__screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: var(--m-bg); color: var(--m-fg); isolation: isolate; }
.phone__island { position: absolute; left: 50%; top: 9px; width: 86px; height: 24px; margin-left: -43px; border-radius: 999px; background: #000; z-index: 20; }

/* Camera layer */
.cam { position: absolute; inset: 0; z-index: 10; background: radial-gradient(120% 80% at 50% 40%, #3a2a22, #120c0a 70%); display: grid; place-items: center; transition: opacity .5s var(--ease-out), transform .8s var(--ease-spring); }
.cam.is-done { opacity: 0; transform: scale(1.08); pointer-events: none; }
.cam__table { position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(#5b3a26, #3a2416); opacity: .8; }
.cam__qr { position: relative; width: 132px; padding: 10px; border-radius: 10px; background: #f6e9dc; transform: perspective(500px) rotateX(18deg) rotateZ(-4deg); box-shadow: 0 20px 30px -10px rgba(0,0,0,.6); }
.cam__qr canvas { width: 100%; height: auto; aspect-ratio: 1; }
.cam__frame { position: absolute; width: 190px; height: 190px; left: 50%; top: 50%; margin: -95px 0 0 -95px; }
.cam__frame i { position: absolute; width: 26px; height: 26px; border: 3px solid rgba(255,255,255,.9); }
.cam__frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.cam__frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 12px; }
.cam__frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 12px; }
.cam__frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
.cam__line { position: absolute; left: 14px; right: 14px; top: 0; height: 2px; background: #ffd23f; box-shadow: 0 0 14px 2px rgba(255,210,63,.7); animation: camScan 1.4s var(--ease-io) infinite alternate; }
@keyframes camScan { from { transform: translateY(14px); } to { transform: translateY(174px); } }
.cam.is-hit .cam__line { opacity: 0; }
.cam.is-hit .cam__frame i { border-color: #ffd23f; transition: border-color .2s; }
.cam.is-hit .cam__frame { animation: camHit .5s var(--ease-back); }
@keyframes camHit { 50% { transform: scale(.9); } }
.cam__pill {
  position: absolute; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; background: #ffd23f; color: #1a1406; font-size: 12px; font-weight: 600; white-space: nowrap;
  transition: transform .6s var(--ease-spring), opacity .3s;
}
.cam.is-hit .cam__pill { transform: translate(-50%, 0); opacity: 1; }
.cam__hint { position: absolute; top: 52px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font-size: 11px; font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }

/* Menu UI */
.mui { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding-bottom: 90px; transition: transform .9s var(--ease-spring); }
.mui::-webkit-scrollbar { display: none; }
.mui.is-hidden { transform: translateY(100%); }
.mui__top { position: sticky; top: 0; z-index: 5; padding: 42px 16px 10px; background: var(--m-bg); }
.mui__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mui__brand { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 800; font-size: 17px; letter-spacing: -0.03em; font-variation-settings: 'wdth' 112; }
.mui__brand::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--m-acc); box-shadow: inset 0 0 0 4px var(--m-bg), 0 0 0 1.5px var(--m-acc); }
.mui__table { white-space: nowrap; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: var(--m-card); box-shadow: inset 0 0 0 1px var(--m-line); }
.mui__lang { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--m-card); box-shadow: inset 0 0 0 1px var(--m-line); }
.mui__lang button { height: 22px; padding: 0 7px; border-radius: 999px; font-family: var(--f-mono); font-size: 9.5px; color: var(--m-muted); }
.mui__lang button[aria-pressed='true'] { background: var(--m-fg); color: var(--m-bg); }
.mui__cats { position: relative; display: flex; gap: 6px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.mui__cats::-webkit-scrollbar { display: none; }
.mui__cats button { position: relative; z-index: 1; flex: none; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--m-muted); box-shadow: inset 0 0 0 1px var(--m-line); transition: color .3s; }
.mui__cats button[aria-current='true'] { color: var(--m-bg); box-shadow: none; }
.mui__ind { position: absolute; z-index: 0; top: 0; left: 0; height: 28px; border-radius: 999px; background: var(--m-fg); transition: transform .5s var(--ease-spring), width .5s var(--ease-spring); }
.mui__hero { margin: 4px 16px 0; padding: 16px; border-radius: 20px; background: var(--m-acc); color: var(--m-bg); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; overflow: hidden; }
.mui__hero b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 19px; line-height: 1; letter-spacing: -0.03em; font-variation-settings: 'wdth' 112; }
.mui__hero span { font-size: 11px; opacity: .85; }
.mui__hero .mui__table { display: inline-block; margin: 6px 6px 0 0; padding: 3px 7px; background: rgba(0,0,0,.18); box-shadow: none; color: inherit; opacity: 1; font-size: 9px; }
.mui__hero .dish { width: 76px; height: 76px; margin: -6px -8px -6px 0; background: transparent; }
.mui__sec { padding: 18px 16px 0; scroll-margin-top: 112px; }
.mui__foot { min-height: 330px; padding: 18px 16px 0; font-size: 11px; color: var(--m-muted); text-align: center; }
.mui__sec h4 { margin: 0 0 8px; font-family: var(--f-mono); font-size: 10px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--m-muted); }
.mitem { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; padding: 9px; margin-bottom: 8px; border-radius: 16px; background: var(--m-card); box-shadow: inset 0 0 0 1px var(--m-line); }
.mitem__name { font-size: 13.5px; font-weight: 650; line-height: 1.2; letter-spacing: -0.01em; }
.mitem__desc { font-size: 11px; line-height: 1.35; color: var(--m-muted); margin-top: 2px; }
.mitem__meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.mitem__price { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; color: var(--m-fg); }
.mitem__veg { font-family: var(--f-mono); font-size: 8.5px; line-height: 1; padding: 3px 6px; border-radius: 999px; background: color-mix(in oklab, #4f7d3a 22%, transparent); color: var(--m-fg); }
.madd { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--m-fg); color: var(--m-bg); font-size: 17px; line-height: 1; transition: transform .4s var(--ease-spring); }
.madd:active { transform: scale(.88); }
.mstep { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mstep button { width: 26px; height: 22px; border-radius: 8px; background: var(--m-fg); color: var(--m-bg); font-size: 14px; line-height: 1; }
.mstep span { font-family: var(--f-mono); font-size: 11px; }
.mstep.bump span { animation: bump .35s var(--ease-back); }
@keyframes bump { 50% { transform: scale(1.5); } }
.mui__tray {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 8px 8px 14px; border-radius: 20px; background: var(--m-fg); color: var(--m-bg);
  transform: translateY(130%); transition: transform .6s var(--ease-spring); box-shadow: 0 16px 30px -12px rgba(0,0,0,.5);
}
.mui__tray.is-on { transform: none; }
.mui__tray b { font-size: 13px; }
.mui__tray span { display: block; font-size: 10.5px; opacity: .7; }
.mui__tray button { padding: 10px 12px; border-radius: 14px; background: var(--m-acc); color: var(--m-bg); font-size: 12px; font-weight: 700; white-space: nowrap; }
.mui__toast {
  position: absolute; left: 14px; right: 14px; top: 46px; z-index: 30; padding: 12px 14px; border-radius: 16px; background: var(--m-fg); color: var(--m-bg);
  font-size: 12px; font-weight: 600; display: flex; gap: 10px; align-items: center; transform: translateY(-140px); opacity: 0; transition: transform .6s var(--ease-spring), opacity .3s;
}
.mui__toast.is-on { transform: none; opacity: 1; }
.mui__toast i { font-style: normal; font-size: 16px; display: inline-block; animation: ring .6s ease-in-out 2; }
@keyframes ring { 25% { transform: rotate(-18deg); } 75% { transform: rotate(18deg); } }

.mlab__controls { display: grid; align-content: start; gap: 22px; padding: 28px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); }
.stepper button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; transition: background-color .3s, color .3s; }
.stepper button:hover { background: var(--fg); color: var(--bg); }
.stepper output { min-width: 42px; text-align: center; font-family: var(--f-display); font-weight: 760; font-size: 20px; font-variation-settings: 'wdth' 112; }
.feats { display: grid; gap: 8px; padding-top: 4px; }
.feats li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.feats li::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--signal); flex: none; }

/* Menu themes */
.phone[data-theme='paper'] { --m-bg: #f6f1e7; --m-fg: #1d1a16; --m-card: #fffaf1; --m-muted: #857b6c; --m-acc: #7a2331; --m-line: rgba(29,26,22,.08); }
.phone[data-theme='ink'] { --m-bg: #121210; --m-fg: #f0ebe1; --m-card: #1b1b18; --m-muted: #8f8a80; --m-acc: #e8c26a; --m-line: rgba(255,255,255,.08); }
.phone[data-theme='wine'] { --m-bg: #4a1620; --m-fg: #f6e9dc; --m-card: #5a1e2a; --m-muted: #d3b7a8; --m-acc: #f2b45a; --m-line: rgba(255,255,255,.1); }
.phone[data-theme='forest'] { --m-bg: #1d3b2a; --m-fg: #f1ecdf; --m-card: #24472f; --m-muted: #b5c4b0; --m-acc: #e8c26a; --m-line: rgba(255,255,255,.1); }

/* Dish illustrations (pure CSS) */
.dish { position: relative; width: 58px; height: 58px; border-radius: 14px; background: color-mix(in oklab, var(--m-acc) 14%, var(--m-card)); overflow: hidden; }
.dish::before { content: ''; position: absolute; inset: 9%; border-radius: 50%; background: #fbf7ef; box-shadow: inset 0 0 0 3px #efe6d6, 0 3px 6px rgba(0,0,0,.12); }
.dish i { position: absolute; display: block; }
.dish--pkhali i { width: 24%; height: 24%; border-radius: 50%; top: 38%; box-shadow: inset -2px -2px 0 rgba(0,0,0,.15); }
.dish--pkhali i:nth-child(1) { left: 20%; background: #4f7d3a; }
.dish--pkhali i:nth-child(2) { left: 38%; top: 26%; background: #8e2a4f; }
.dish--pkhali i:nth-child(3) { left: 56%; background: #2f5a2b; }
.dish--pkhali i:nth-child(4) { width: 5%; height: 5%; left: 45%; top: 30%; background: #e0233a; box-shadow: 4px 9px 0 #e0233a, -12px 10px 0 #e0233a; }
.dish--badri i { width: 44%; height: 14%; left: 28%; border-radius: 999px; background: #5b2a5e; box-shadow: inset 0 -3px 0 #3b1840; }
.dish--badri i:nth-child(1) { top: 32%; } .dish--badri i:nth-child(2) { top: 46%; } .dish--badri i:nth-child(3) { top: 60%; width: 30%; left: 35%; }
.dish--badri i:nth-child(4) { width: 7%; height: 7%; left: 30%; top: 26%; background: #e0233a; box-shadow: 14px 22px 0 #e0233a; }
.dish--khinkali i { width: 26%; height: 26%; top: 42%; border-radius: 50% 50% 46% 46%; background: repeating-conic-gradient(from 0deg at 50% 0%, #f1e5c9 0 8deg, #e2d1ab 8deg 12deg); box-shadow: inset 0 -3px 0 rgba(0,0,0,.08); }
.dish--khinkali i::after { content: ''; position: absolute; left: 38%; top: -22%; width: 24%; height: 30%; border-radius: 40%; background: #e2d1ab; }
.dish--khinkali i:nth-child(1) { left: 18%; } .dish--khinkali i:nth-child(2) { left: 37%; top: 30%; } .dish--khinkali i:nth-child(3) { left: 56%; }
.dish--mtsvadi i:nth-child(1) { left: 16%; right: 16%; top: 49%; height: 3%; background: #8a6a4a; }
.dish--mtsvadi i:nth-child(n+2) { width: 16%; height: 18%; top: 41%; border-radius: 30%; background: #7a3d1d; box-shadow: inset -2px -2px 0 #4f2410, inset 2px 2px 0 #a2582d; }
.dish--mtsvadi i:nth-child(2) { left: 22%; } .dish--mtsvadi i:nth-child(3) { left: 41%; } .dish--mtsvadi i:nth-child(4) { left: 60%; }
.dish--mtsvadi i:nth-child(5) { width: 16%; height: 16%; left: 36%; top: 66%; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px #b23a6a; }
.dish--chakapuli::before { background: #fbf7ef; box-shadow: inset 0 0 0 5px #d9cbb3; }
.dish--chakapuli i:nth-child(1) { inset: 22%; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #8bb04d, #557a2a); }
.dish--chakapuli i:nth-child(2) { width: 9%; height: 9%; left: 40%; top: 36%; border-radius: 50%; background: #7a1b2b; box-shadow: 9px 10px 0 #7a1b2b, -4px 14px 0 #c8d6a0; }
.dish--khachapuri i:nth-child(1) { left: 12%; right: 12%; top: 26%; bottom: 26%; border-radius: 50% / 60%; background: #d99a43; transform: rotate(-12deg); box-shadow: inset 0 -3px 0 #b8782c; }
.dish--khachapuri i:nth-child(2) { left: 25%; right: 25%; top: 36%; bottom: 36%; border-radius: 50%; background: #f6e3a6; transform: rotate(-12deg); }
.dish--khachapuri i:nth-child(3) { width: 18%; height: 18%; left: 41%; top: 41%; border-radius: 50%; background: #f2a01c; box-shadow: inset -2px -2px 0 #d47f0a; }
.dish--lemonade::before { display: none; }
.dish--lemonade i:nth-child(1) { left: 33%; right: 33%; top: 16%; bottom: 14%; border-radius: 4px 4px 10px 10px; background: rgba(255,255,255,.65); box-shadow: inset 0 0 0 2px rgba(255,255,255,.9); }
.dish--lemonade i:nth-child(2) { left: 36%; right: 36%; top: 34%; bottom: 17%; border-radius: 2px 2px 8px 8px; background: #6fbf3f; }
.dish--lemonade i:nth-child(3) { width: 5%; height: 5%; left: 45%; top: 50%; border-radius: 50%; background: rgba(255,255,255,.8); box-shadow: 4px 8px 0 rgba(255,255,255,.7), -2px 15px 0 rgba(255,255,255,.6); }
.dish--wine::before { display: none; }
.dish--wine i:nth-child(1) { left: 30%; right: 30%; top: 14%; height: 36%; border-radius: 6px 6px 50% 50%; background: linear-gradient(transparent 30%, #7a1b2b 30%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.dish--wine i:nth-child(2) { left: 48.5%; width: 3%; top: 49%; height: 26%; background: rgba(255,255,255,.85); }
.dish--wine i:nth-child(3) { left: 36%; right: 36%; top: 74%; height: 4%; border-radius: 4px; background: rgba(255,255,255,.85); }
.dish--churchkhela::before { display: none; }
.dish--churchkhela i { top: 14%; bottom: 14%; width: 15%; border-radius: 999px; background: radial-gradient(circle at 50% 30%, #8a3a24 40%, transparent 41%) 0 0 / 100% 22% repeat-y, #6a2a1e; }
.dish--churchkhela i:nth-child(1) { left: 34%; } .dish--churchkhela i:nth-child(2) { left: 52%; top: 20%; background-color: #8a5a2e; }
.dish--churchkhela i:nth-child(3) { left: 30%; right: 30%; top: 10%; bottom: auto; height: 3%; width: auto; border-radius: 2px; background: #6b5136; }

/* ---------- Lab: AI design ---------- */
.ailab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 680px; }
.ailab__stage {
  display: grid; align-content: center; justify-items: center; gap: 14px; padding: 28px 24px; border-right: 1px solid var(--hair);
  background-image: radial-gradient(var(--hair) 1px, transparent 1px); background-size: 14px 14px;
}
.ailab__canvas { position: relative; width: min(100%, 340px); aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #0d0d0b; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 30px 60px -30px rgba(0,0,0,.45); }
.ailab__canvas canvas { width: 100%; height: 100%; }
.ailab__step.is-gone { opacity: 0; }
.ailab__step { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); white-space: nowrap; padding: 5px 9px; border-radius: 999px; background: rgba(13,13,11,.72); color: var(--paper); font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity .4s; }
.ailab__vars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(100%, 340px); }
.ailab__vars button { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--hair); opacity: 0; transform: translateY(10px) scale(.94); transition: opacity .5s var(--ease-out), transform .6s var(--ease-spring), box-shadow .3s; }
.ailab__vars.is-on button { opacity: 1; transform: none; }
.ailab__vars button canvas { width: 100%; height: 100%; }
.ailab__vars button[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--signal); }
.ailab__controls { display: grid; align-content: start; gap: 22px; padding: 28px; }
.prompt {
  position: relative; min-height: 92px; padding: 14px 16px; border-radius: 16px; background: var(--ink); color: var(--paper);
  font-family: var(--f-mono); font-size: 12px; line-height: 1.6; font-variation-settings: 'wdth' 87.5;
}
.prompt b { color: var(--signal); font-weight: 400; }
.prompt__caret { display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--signal); animation: blink 1s steps(1) infinite; }
.ailab__note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.gen { position: relative; overflow: hidden; }
.gen__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--signal); transform: scaleX(var(--g, 0)); transform-origin: left; }

/* v2 responsive */
@media (max-width: 1100px) {
  .mlab { grid-template-columns: minmax(0, 1fr); }
  .mlab__stage { border-right: 0; border-bottom: 1px solid var(--hair); }
  .ailab { grid-template-columns: minmax(0, 1fr); }
  .ailab__stage { border-right: 0; border-bottom: 1px solid var(--hair); }
  .hero__side { max-width: none; }
}
@media (max-width: 900px) {
  .story__cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .mlab, .ailab { min-height: 0; }
  .tent { display: none; }
  .phone { width: 270px; height: 560px; }
  .mlab__stage { padding: 24px 12px; }
}
@media (max-width: 640px) {
  .loop { grid-template-columns: minmax(0, 1fr); }
  .case__visit-l { display: none; }
  .case__visit-s { display: inline; }
  .case__head [data-case-count] { display: none; }
  .case__cta { padding: 16px; }
  .case__cta .btn { width: 100%; justify-content: space-between; }
  .art--menu .am-tent { width: 18vw; } .art--menu .am-phone { width: 26vw; }
}
