/* Beers Labs Range: one page, five design languages.
   Every colour, border, radius, shadow and font is a token set per [data-style].
   Components also change SHAPE per style further down. Mobile first (390), desktop at 960. */

/* ---------- 1. Tokens per style (every block defines the same property set) ---------- */
:root,
[data-style="hive"] {
  --bg: #0b0a12;
  --bg-img: radial-gradient(1200px 600px at 85% -10%, rgba(255, 55, 180, .22), transparent 60%), radial-gradient(900px 500px at -10% 20%, rgba(0, 20, 130, .55), transparent 60%);
  --fg: #f4e9d2;
  --muted: rgba(244, 233, 210, .72);
  --accent: #f5b623;
  --accent-2: #ff37b4;
  --accent-3: #19b6e6;
  --accent-4: #e07a1f;
  --surface: #f5b623;
  --surface-fg: #0b0a12;
  --surface-2: #15122a;
  --line: rgba(244, 233, 210, .16);
  --line-strong: #0b0a12;
  --bw: 3px;
  --radius: 10px;
  --radius-lg: 22px;
  --shadow: 6px 6px 0 #ff37b4;
  --shadow-up: 9px 9px 0 #ff37b4;
  --blur: 0px;
  --f-display: "Archivo Black", Georgia, serif;
  --f-body: "Spectral", Georgia, serif;
  --f-label: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 400;
  --display-case: uppercase;
  --display-track: .01em;
  --label-track: .08em;
  --cta-bg: #ff37b4;
  --cta-fg: #0b0a12;
  --chip-bg: #f4e9d2;
  --chip-fg: #0b0a12;
  --input-bg: #f4e9d2;
  --input-fg: #0b0a12;
  --empty-bg: repeating-linear-gradient(135deg, transparent 0 9px, rgba(123, 63, 228, .5) 9px 11px), #15122a;
  --empty-line: #7b3fe4;
  --focus: #19b6e6;
  --ease: cubic-bezier(.3, .7, .2, 1);
  --dur: 900ms;
  --theme: #0b0a12;
  --bee-fill: #f5b623;
  --bee-stripe: #0b0a12;
  --bee-wing: rgba(244, 233, 210, .85);
  --bee-line: #0b0a12;
  --heading-shadow: none;
}

[data-style="neo"] {
  --bg: #dfeaff;
  --bg-img: none;
  --fg: #000000;
  --muted: #1d2433;
  --accent: #ffdb33;
  --accent-2: #ea435f;
  --accent-3: #5294ff;
  --accent-4: #4fd1c5;
  --surface: #ffffff;
  --surface-fg: #000000;
  --surface-2: #ffdb33;
  --line: #000000;
  --line-strong: #000000;
  --bw: 3px;
  --radius: 5px;
  --radius-lg: 5px;
  --shadow: 4px 4px 0 #000000;
  --shadow-up: 7px 7px 0 #000000;
  --blur: 0px;
  --f-display: "Archivo Black", Georgia, serif;
  --f-body: "Spectral", Georgia, serif;
  --f-label: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 400;
  --display-case: none;
  --display-track: -.01em;
  --label-track: .04em;
  --cta-bg: #ea435f;
  --cta-fg: #000000;
  --chip-bg: #ffffff;
  --chip-fg: #000000;
  --input-bg: #ffffff;
  --input-fg: #000000;
  --empty-bg: repeating-linear-gradient(135deg, transparent 0 10px, rgba(0, 0, 0, .12) 10px 12px), #ffdb33;
  --empty-line: #000000;
  --focus: #5294ff;
  --ease: cubic-bezier(.34, 1.56, .64, 1);
  --dur: 280ms;
  --theme: #dfeaff;
  --bee-fill: #ffdb33;
  --bee-stripe: #000000;
  --bee-wing: #ffffff;
  --bee-line: #000000;
  --heading-shadow: none;
}

[data-style="vault"] {
  --bg: #0a0b0c;
  --bg-img: radial-gradient(60% 50% at 70% 10%, rgba(201, 162, 76, .18), transparent), radial-gradient(40% 40% at 10% 70%, rgba(201, 162, 76, .07), transparent);
  --fg: #efe8da;
  --muted: rgba(239, 232, 218, .66);
  --accent: #c9a24c;
  --accent-2: #e3c27a;
  --accent-3: rgba(255, 255, 255, .5);
  --accent-4: #8a7340;
  --surface: rgba(255, 255, 255, .07);
  --surface-fg: #efe8da;
  --surface-2: rgba(201, 162, 76, .12);
  --line: rgba(255, 255, 255, .14);
  --line-strong: rgba(255, 255, 255, .22);
  --bw: 1px;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 24px rgba(0, 0, 0, .45);
  --shadow-up: inset 0 1px 0 rgba(255, 255, 255, .32), 0 18px 40px rgba(0, 0, 0, .55);
  --blur: 14px;
  --f-display: "Spectral", Georgia, serif;
  --f-body: "Spectral", Georgia, serif;
  --f-label: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 600;
  --display-case: none;
  --display-track: -.015em;
  --label-track: .14em;
  --cta-bg: #c9a24c;
  --cta-fg: #0a0b0c;
  --chip-bg: rgba(255, 255, 255, .08);
  --chip-fg: #efe8da;
  --input-bg: rgba(255, 255, 255, .06);
  --input-fg: #efe8da;
  --empty-bg: radial-gradient(80% 80% at 50% 0%, rgba(201, 162, 76, .12), transparent), rgba(255, 255, 255, .03);
  --empty-line: rgba(201, 162, 76, .45);
  --focus: #e3c27a;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: 1100ms;
  --theme: #0a0b0c;
  --bee-fill: transparent;
  --bee-stripe: #c9a24c;
  --bee-wing: transparent;
  --bee-line: #c9a24c;
  --heading-shadow: none;
}

[data-style="field"] {
  --bg: #0a0b0c;
  --bg-img: none;
  --fg: #e9e2d0;
  --muted: rgba(233, 226, 208, .62);
  --accent: #c9a24c;
  --accent-2: #e9e2d0;
  --accent-3: rgba(233, 226, 208, .4);
  --accent-4: #c9a24c;
  --surface: transparent;
  --surface-fg: #e9e2d0;
  --surface-2: transparent;
  --line: rgba(233, 226, 208, .28);
  --line-strong: rgba(233, 226, 208, .55);
  --bw: 1px;
  --radius: 0px;
  --radius-lg: 0px;
  --shadow: none;
  --shadow-up: none;
  --blur: 0px;
  --f-display: "Archivo Black", Georgia, serif;
  --f-body: "Spectral", Georgia, serif;
  --f-label: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 400;
  --display-case: uppercase;
  --display-track: .02em;
  --label-track: .12em;
  --cta-bg: #c9a24c;
  --cta-fg: #0a0b0c;
  --chip-bg: transparent;
  --chip-fg: #e9e2d0;
  --input-bg: transparent;
  --input-fg: #e9e2d0;
  --empty-bg: transparent;
  --empty-line: rgba(233, 226, 208, .3);
  --focus: #c9a24c;
  --ease: cubic-bezier(.65, 0, .35, 1);
  --dur: 700ms;
  --theme: #0a0b0c;
  --bee-fill: transparent;
  --bee-stripe: transparent;
  --bee-wing: transparent;
  --bee-line: #e9e2d0;
  --heading-shadow: none;
}

[data-style="ops"] {
  --bg: #000000;
  --bg-img: none;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, .6);
  --accent: #f5d000;
  --accent-2: #ffffff;
  --accent-3: rgba(255, 255, 255, .35);
  --accent-4: #f5d000;
  --surface: #0d0d0d;
  --surface-fg: #ffffff;
  --surface-2: #191919;
  --line: rgba(255, 255, 255, .35);
  --line-strong: #ffffff;
  --bw: 1px;
  --radius: 0px;
  --radius-lg: 0px;
  --shadow: none;
  --shadow-up: none;
  --blur: 0px;
  --f-display: "JetBrains Mono", ui-monospace, monospace;
  --f-body: "JetBrains Mono", ui-monospace, monospace;
  --f-label: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 700;
  --display-case: uppercase;
  --display-track: .04em;
  --label-track: .1em;
  --cta-bg: #f5d000;
  --cta-fg: #000000;
  --chip-bg: #000000;
  --chip-fg: #ffffff;
  --input-bg: #000000;
  --input-fg: #ffffff;
  --empty-bg: #000000;
  --empty-line: #f5d000;
  --focus: #f5d000;
  --ease: linear;
  --dur: 300ms;
  --theme: #000000;
  --bee-fill: #f5d000;
  --bee-stripe: #000000;
  --bee-wing: #ffffff;
  --bee-line: #000000;
  --heading-shadow: none;
}

[data-style="lava"] {
  --bg: #0b0703;
  --bg-img: none;
  --fg: #fff3c4;
  --muted: rgba(255, 243, 196, .72);
  --accent: #f5b623;
  --accent-2: #ff6a1a;
  --accent-3: #c2185b;
  --accent-4: #fff3c4;
  --surface: rgba(0, 0, 0, .5);
  --surface-fg: #fff3c4;
  --surface-2: rgba(0, 0, 0, .45);
  --line: rgba(245, 182, 35, .35);
  --line-strong: rgba(245, 182, 35, .7);
  --bw: 1px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-up: 0 14px 40px rgba(255, 106, 26, .28);
  --blur: 6px;
  --f-display: "Archivo Black", Georgia, serif;
  --f-body: "Spectral", Georgia, serif;
  --f-label: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 400;
  --display-case: none;
  --display-track: .005em;
  --label-track: .1em;
  --cta-bg: #f5b623;
  --cta-fg: #0b0703;
  --chip-bg: rgba(0, 0, 0, .5);
  --chip-fg: #fff3c4;
  --input-bg: rgba(0, 0, 0, .45);
  --input-fg: #fff3c4;
  --empty-bg: repeating-linear-gradient(135deg, transparent 0 10px, rgba(245, 182, 35, .12) 10px 12px), rgba(0, 0, 0, .45);
  --empty-line: rgba(245, 182, 35, .6);
  --focus: #ff6a1a;
  --ease: cubic-bezier(.25, .6, .2, 1);
  --dur: 1400ms;
  --theme: #0b0703;
  --bee-fill: #f5b623;
  --bee-stripe: #0b0703;
  --bee-wing: rgba(255, 243, 196, .8);
  --bee-line: #0b0703;
  --heading-shadow: 0 0 22px rgba(255, 106, 26, .45), 0 0 2px rgba(245, 182, 35, .35);
}

[data-style="collage"] {
  --bg: #f2ede3;
  --bg-img: 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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07 0 0 0 0 .06 0 0 0 0 .05 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fg: #111111;
  --muted: rgba(17, 17, 17, .7);
  --accent: #e2231a;
  --accent-2: #ffe600;
  --accent-3: #111111;
  --accent-4: #e2231a;
  --surface: #fffdf7;
  --surface-fg: #111111;
  --surface-2: #fbf8f1;
  --line: rgba(17, 17, 17, .25);
  --line-strong: #111111;
  --bw: 1px;
  --radius: 0px;
  --radius-lg: 2px;
  --shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 10px 18px -8px rgba(0, 0, 0, .35);
  --shadow-up: 0 1px 0 rgba(0, 0, 0, .08), 0 16px 26px -10px rgba(0, 0, 0, .4);
  --blur: 0px;
  --f-display: "Archivo Black", Georgia, serif;
  --f-body: "Spectral", Georgia, serif;
  --f-label: "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 400;
  --display-case: none;
  --display-track: -.01em;
  --label-track: .08em;
  --cta-bg: #e2231a;
  --cta-fg: #ffffff;
  --chip-bg: #fffdf7;
  --chip-fg: #111111;
  --input-bg: #fffdf7;
  --input-fg: #111111;
  --empty-bg: radial-gradient(rgba(17, 17, 17, .18) 1px, transparent 1.4px) 0 0 / 6px 6px, #fffdf7;
  --empty-line: #111111;
  --focus: #e2231a;
  --ease: cubic-bezier(.2, 1.3, .4, 1);
  --dur: 520ms;
  --theme: #f2ede3;
  --bee-fill: #ffe600;
  --bee-stripe: #111111;
  --bee-wing: #ffffff;
  --bee-line: #111111;
  --heading-shadow: none;
}

/* ---------- 2. Base (mobile first) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background-color: var(--bg); }
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image: var(--bg-img);
  background-attachment: fixed;
  color: var(--fg);
  font: 400 17px/1.55 var(--f-body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 14px; background: var(--cta-bg); color: var(--cta-fg); font: 500 14px var(--f-label); }
.skip:focus { top: 12px; }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 16px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; grid-auto-rows: minmax(var(--row, 44px), auto); }
.blk { grid-column: var(--mc); grid-row: var(--mr); min-width: 0; }
.sec { padding: 48px 0; position: relative; }

h1, h2, h3 { text-shadow: var(--heading-shadow); margin: 0; font-family: var(--f-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track); line-height: 1.02; }
.sec-title { font-size: clamp(30px, 8vw, 64px); margin-bottom: 20px; }
.sec-title.center { text-align: center; align-self: end; }
.label { margin: 0 0 6px; font: 500 12px/1.2 var(--f-label); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  font: 500 14px/1 var(--f-label); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  border: var(--bw) solid var(--line-strong); border-radius: 999px; cursor: pointer;
  background: var(--cta-bg); color: var(--cta-fg); box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-up); }
.btn:active { transform: translate(2px, 2px); }

/* Wipe + flash (measured off benchmarks.snorkel.ai, Themeco "particle" buttons):
   hover = a near-white layer scales 0 -> 1 from the LEFT edge in 300ms on cubic-bezier(.4,0,.2,1),
   label goes dark with it. Press = the layer snaps full and a white flash fades off the button.
   Both layers sit under the label (isolation + z-index -1), so the label never needs a wrapper. */
.btn, .chip { position: relative; isolation: isolate; --wipe: #f5f3ef; --wipe-fg: #121d2e; }
.btn::before, .chip::before, .btn::after, .chip::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
}
.btn::before, .chip::before {
  background: var(--wipe); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.btn::after, .chip::after { background: #fff; opacity: 0; z-index: 1; }
.btn, .chip { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color .3s cubic-bezier(.4, 0, .2, 1); }
@media (hover: hover) {
  .btn:hover::before, .chip:hover::before { transform: scaleX(1); }
  .btn:hover, .chip:hover { color: var(--wipe-fg); }
}
.btn:focus-visible::before, .chip:focus-visible::before { transform: scaleX(1); }
.btn:focus-visible, .chip:focus-visible { color: var(--wipe-fg); }
.btn.is-pressed::before, .chip.is-pressed::before { transform: scaleX(1); transition-duration: 0s; }
.btn.is-pressed, .chip.is-pressed { color: var(--wipe-fg); }
.btn.is-flash::after, .chip.is-flash::after { animation: wipe-flash .45s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes wipe-flash { 0% { opacity: .95; } 100% { opacity: 0; } }

input, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 16px/1.3 var(--f-body); color: var(--input-fg); background: var(--input-bg);
  border: var(--bw) solid var(--line-strong); border-radius: var(--radius);
}
input::placeholder, textarea::placeholder { color: currentColor; opacity: .62; }

/* Honest empty frame: shown wherever a real asset is not in hand yet. */
.empty {
  display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; padding: 16px;
  background: var(--empty-bg); border: 2px dashed var(--empty-line); border-radius: var(--radius);
  text-align: center;
}
.empty > span {
  font: 500 12px/1.3 var(--f-label); letter-spacing: var(--label-track); text-transform: uppercase;
  padding: 6px 10px; background: var(--bg); color: var(--fg); border: 1px solid var(--empty-line); border-radius: var(--radius);
}

/* ---------- 3. Hero ---------- */
.hero { padding-top: 16px; }
.g-hero { --row: 44px; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 38px; height: 38px; flex: none; }
.mark-hex { fill: var(--accent); stroke: var(--line-strong); stroke-width: 2.5; }
.mark-b { fill: var(--surface-fg); }
.wordmark { font: var(--display-weight) 18px/1 var(--f-display); text-transform: var(--display-case); letter-spacing: var(--display-track); white-space: nowrap; }

.nav { justify-self: end; position: relative; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav-list { display: none; }
.menu summary {
  list-style: none; cursor: pointer; min-height: 44px; display: grid; place-items: center; padding: 0 10px;
  font: 500 13px var(--f-label); text-transform: uppercase; letter-spacing: .06em;
  border: var(--bw) solid var(--line-strong); border-radius: var(--radius); background: var(--chip-bg); color: var(--chip-fg);
}
.menu summary::-webkit-details-marker { display: none; }
.menu ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; min-width: 160px; padding: 8px; display: grid; gap: 4px;
  background: var(--bg); border: var(--bw) solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); }
.menu a { display: block; padding: 10px; text-decoration: none; font: 500 14px var(--f-label); text-transform: uppercase; }
.top-cta { justify-self: end; padding: 10px 12px; }

.hero-title { font-size: clamp(40px, 12vw, 96px); align-self: end; padding-top: 12px; }

.dial { align-self: start; }
.dial-label { margin: 0 0 8px; font: 500 12px var(--f-label); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px 8px 8px;
  font: 500 13px/1 var(--f-label); letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
  background: var(--chip-bg); color: var(--chip-fg); border: var(--bw) solid var(--line-strong); border-radius: 999px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.chip[aria-pressed="true"] { background: var(--accent); color: var(--surface-fg); box-shadow: var(--shadow); }
.chip:hover { transform: translateY(-2px); }
/* Swatches preview each language with fixed colours, so the chip shows what you will get. */
.sw { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid currentColor; }
.sw-hive { background: conic-gradient(#f5b623 0 25%, #ff37b4 0 50%, #19b6e6 0 75%, #0b0a12 0); }
.sw-neo { background: #ffdb33; border-radius: 4px; box-shadow: 2px 2px 0 #000; border-color: #000; }
.sw-vault { background: radial-gradient(circle at 35% 30%, #e3c27a, #c9a24c 40%, #0a0b0c 75%); }
.sw-field { background: #0a0b0c; border-radius: 0; box-shadow: inset 0 0 0 2px #0a0b0c, inset 0 0 0 3px #c9a24c; }
.sw-ops { background: repeating-linear-gradient(45deg, #f5d000 0 4px, #000 4px 8px); border-radius: 0; }
.sw-lava { background: radial-gradient(circle at 35% 35%, #fff3c4, #f5b623 25%, #ff6a1a 50%, #c2185b 72%, #0b0703 90%); }
.sw-collage { background: linear-gradient(170deg, #f2ede3 0 45%, #ffe600 45% 70%, #e2231a 70%); border-radius: 2px; border-color: #111; rotate: -4deg; }

.quick { display: flex; flex-direction: column; gap: 8px; }
.quick input { border-radius: 999px; }

.device-wrap { margin: 8px 0; align-self: stretch; }
.device {
  height: 100%; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface-2); color: var(--fg);
  border: var(--bw) solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.device-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: var(--bw) solid var(--line-strong); font: 500 11px var(--f-label); letter-spacing: .06em; }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 1.5px solid var(--line-strong); }
.device-bar i:nth-child(2) { background: var(--accent-2); }
.device-bar i:nth-child(3) { background: var(--accent-3); }
.device-url { margin-left: 8px; opacity: .8; }
.rec { margin-left: auto; display: none; }
.device-screen { flex: 1; min-height: 0; overflow: hidden; background: #000; }
.device-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; aspect-ratio: 16 / 10; }
.device-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 12px; border-top: var(--bw) solid var(--line-strong); font: 500 11px/1.3 var(--f-label); letter-spacing: .05em; text-transform: uppercase; }
.device-foot b { color: var(--accent); font-weight: 700; }
.hint { color: var(--muted); }

.proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.proof li { font: 500 11px/1 var(--f-label); letter-spacing: .06em; text-transform: uppercase; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 999px; }

/* ---------- 4. Manifesto ---------- */
.g-man { --row: 56px; }
.man-ground { border-radius: var(--radius-lg); border: var(--bw) solid var(--line-strong); overflow: hidden; position: relative; }
.man-copy { position: relative; z-index: 1; padding: 20px 18px; align-self: center; }
.man-title { font-size: clamp(24px, 6.4vw, 54px); line-height: 1.12; }
.draft { display: inline-block; margin-left: 8px; padding: 3px 6px; border: 1px dashed currentColor; text-transform: none; letter-spacing: 0; }

/* ---------- 5. Work bento ---------- */
.g-work { --row: 64px; gap: 18px; }
.wcard {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 14px;
  background: var(--surface); color: var(--surface-fg);
  border: var(--bw) solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.wcard:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-up); }
.wc-art { flex: 1; min-height: 180px; overflow: hidden; border-radius: var(--radius); border: var(--bw) solid var(--line-strong); background: #000; }
.wc-art img { width: 100%; height: 100%; object-fit: cover; object-position: top left; aspect-ratio: 16 / 10; }
.wc-art .empty { border: 0; border-radius: 0; }
.wc-body h3 { font-size: clamp(26px, 7vw, 40px); margin-bottom: 8px; }
.wc-body p { margin: 0 0 10px; }
.wc-body .label { color: inherit; opacity: .78; display: flex; justify-content: space-between; }
.wc-link { font: 500 13px var(--f-label); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- 6. Service cards ---------- */
.g-build { --row: 50px; }
.scard { perspective: 1200px; }
.scard-inner {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; width: 100%; height: 100%;
  position: relative; transform-style: preserve-3d; transition: transform var(--dur) var(--ease);
}
.scard-inner:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.face {
  grid-area: 1 / 1; display: flex; flex-direction: column; gap: 8px; padding: 10px; min-height: 230px;
  background: var(--surface); color: var(--surface-fg);
  border: var(--bw) solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.numeral { font: 500 12px/1 var(--f-label); letter-spacing: .12em; text-align: center; }
.s-art { flex: 1; min-height: 120px; overflow: hidden; border-radius: var(--radius); border: var(--bw) solid var(--line-strong); }
.s-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; aspect-ratio: 1; }
.s-art .empty { min-height: 120px; border: 0; border-radius: 0; }
.s-name { font: var(--display-weight) 17px/1.05 var(--f-display); text-transform: var(--display-case); letter-spacing: var(--display-track); text-align: center; }
.back { justify-content: center; text-align: center; padding: 16px; }
.s-copy { font: 400 15px/1.4 var(--f-body); }
.flip-hint { margin: 36px 0 0; position: relative; z-index: 2; text-align: center; font: 500 12px var(--f-label); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--muted); }

/* Default flip (hive, vault): a real card turn. */
.back { transform: rotateY(180deg); }
.scard.flipped .scard-inner { transform: rotateY(180deg); }

/* ---------- 7. Process loop ---------- */
.g-proc { --row: 56px; }
.track {
  position: relative; padding: 48px 28px;
  border: calc(var(--bw) * 2) solid var(--accent); border-radius: 160px; background: var(--surface-2);
}
.stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.stop { display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; align-items: start; }
.stop-n { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; font: 700 15px var(--f-label); background: var(--accent); color: var(--surface-fg); border: var(--bw) solid var(--line-strong); border-radius: 50%; }
.stop b { font: var(--display-weight) 20px/1.1 var(--f-display); text-transform: var(--display-case); letter-spacing: var(--display-track); }
.stop span:last-child { color: var(--muted); font-size: 15px; }
.bee { position: absolute; left: 0; top: 0; width: 30px; height: 30px; z-index: 2; offset-rotate: 0deg; pointer-events: none; }
.bee-body {
  display: block; width: 100%; height: 100%;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, var(--line-strong) 6px 10px);
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
}

/* ---------- 8. Contact ---------- */
.g-contact { --row: 48px; }
.cform { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font: 500 12px var(--f-label); letter-spacing: var(--label-track); text-transform: uppercase; }
textarea { min-height: 120px; resize: vertical; }
.form-note { margin: 0; min-height: 1.4em; font: 500 13px var(--f-label); color: var(--accent); }
.send { width: 100%; }
.foot { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font: 500 12px/1.4 var(--f-label); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.foot a { color: var(--fg); }

/* ---------- 9. Shapes per style ---------- */

/* HIVE: tarot frames, stadiums, ribbons, medallions, hard pink offsets. */
[data-style="hive"] .wcard { overflow: visible; margin-top: 18px; }
[data-style="hive"] .wcard .wc-art { margin-top: -34px; border-radius: 120px 120px 10px 10px / 70px 70px 10px 10px; box-shadow: 0 0 0 4px #f5b623, 0 0 0 7px #0b0a12; }
[data-style="hive"] .wcard:nth-child(2) { background: #19b6e6; }
[data-style="hive"] .wcard:nth-child(3) { background: #ff37b4; }
[data-style="hive"] .wcard:nth-child(4) { background: #e07a1f; }
[data-style="hive"] .wcard:nth-child(2), [data-style="hive"] .wcard:nth-child(3), [data-style="hive"] .wcard:nth-child(4) { box-shadow: 6px 6px 0 #f5b623; }
[data-style="hive"] .wc-body .label span { background: #0b0a12; color: #f5b623; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; }
[data-style="hive"] .face { border-radius: 14px; box-shadow: inset 0 0 0 4px #f5b623, inset 0 0 0 7px #0b0a12, 6px 6px 0 #ff37b4; padding: 14px; }
[data-style="hive"] .s-art { border-radius: 50% 50% 6px 6px / 34% 34% 6px 6px; }
[data-style="hive"] .s-name { background: #ff37b4; color: #0b0a12; padding: 8px 14px; clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%); }
[data-style="hive"] .numeral { width: 38px; height: 38px; margin: 0 auto; display: grid; place-items: center; background: #0b0a12; color: #f5b623; border-radius: 50%; }
[data-style="hive"] .back { background: #15122a; color: #f4e9d2; box-shadow: inset 0 0 0 4px #ff37b4, inset 0 0 0 7px #0b0a12, 6px 6px 0 #19b6e6; }
[data-style="hive"] .man-ground {
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, #f4e9d2 50%, transparent 52%),
    radial-gradient(1px 1px at 33% 68%, #f4e9d2 50%, transparent 52%),
    radial-gradient(2px 2px at 58% 18%, #f5b623 50%, transparent 52%),
    radial-gradient(1px 1px at 72% 80%, #f4e9d2 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 88% 40%, #19b6e6 50%, transparent 52%),
    radial-gradient(1px 1px at 46% 46%, #f4e9d2 50%, transparent 52%),
    radial-gradient(70% 90% at 80% 0%, rgba(255, 55, 180, .3), transparent 60%), #15122a;
  background-size: 180px 180px, 230px 230px, 300px 300px, 160px 160px, 260px 260px, 120px 120px, 100% 100%, auto;
  border-color: #f5b623; box-shadow: 6px 6px 0 #ff37b4;
}
[data-style="hive"] .device { border-radius: 30px; box-shadow: inset 0 0 0 4px rgba(11, 10, 18, .6), 8px 8px 0 #ff37b4; border-color: #f5b623; }
[data-style="hive"] .proof li { background: #f5b623; color: #0b0a12; border: 2px solid #0b0a12; }
[data-style="hive"] .track { background: #15122a; box-shadow: 6px 6px 0 #ff37b4; }

/* NEO: flat fills, 3px black, 5px radius, hard 4px shadow. */
[data-style="neo"] .wcard { border-radius: 5px; }
[data-style="neo"] .wcard:nth-child(1) { background: #ffdb33; }
[data-style="neo"] .wcard:nth-child(2) { background: #5294ff; }
[data-style="neo"] .wcard:nth-child(3) { background: #4fd1c5; }
[data-style="neo"] .wcard:nth-child(4) { background: #ea435f; }
[data-style="neo"] .wcard:hover { transform: translate(-3px, -3px); }
[data-style="neo"] .wcard:active { transform: translate(4px, 4px); box-shadow: 0 0 0 #000; }
[data-style="neo"] .wc-art { border-radius: 5px; box-shadow: 4px 4px 0 #000; }
[data-style="neo"] .wc-body .label span { background: #fff; border: 3px solid #000; padding: 2px 6px; }
[data-style="neo"] .chip, [data-style="neo"] .btn, [data-style="neo"] .quick input, [data-style="neo"] .proof li { border-radius: 5px; }
[data-style="neo"] .chip { box-shadow: 3px 3px 0 #000; }
[data-style="neo"] .chip:active { transform: translate(3px, 3px); box-shadow: 0 0 0 #000; }
[data-style="neo"] .face { border-radius: 5px; }
[data-style="neo"] .scard:nth-of-type(1) .front { background: #ffdb33; }
[data-style="neo"] .scard:nth-of-type(2) .front { background: #5294ff; }
[data-style="neo"] .scard:nth-of-type(3) .front { background: #4fd1c5; }
[data-style="neo"] .scard:nth-of-type(4) .front { background: #ea435f; }
[data-style="neo"] .scard:nth-of-type(5) .front { background: #a388ee; }
[data-style="neo"] .numeral { text-align: left; }
[data-style="neo"] .s-name { text-align: left; font-size: 19px; }
[data-style="neo"] .man-ground { background: #5294ff; border-radius: 5px; box-shadow: 6px 6px 0 #000; }
[data-style="neo"] .man-copy { background: #fff; border: 3px solid #000; border-radius: 5px; box-shadow: 4px 4px 0 #000; margin: 0 8px; }
[data-style="neo"] .device { border-radius: 5px; background: #fff; }
[data-style="neo"] .device-bar { background: #ffdb33; }
[data-style="neo"] .track { border: 3px solid #000; border-radius: 5px; background: #fff; box-shadow: 6px 6px 0 #000; }
[data-style="neo"] .stop-n { border-radius: 5px; background: #ffdb33; }
[data-style="neo"] .menu ul { border-radius: 5px; }
[data-style="neo"] .empty { border-width: 3px; }

/* VAULT: frosted glass, brass, soft depth, 18px radius. */
[data-style="vault"] .wcard,
[data-style="vault"] .face,
[data-style="vault"] .device,
[data-style="vault"] .track,
[data-style="vault"] .man-copy,
[data-style="vault"] .chip,
[data-style="vault"] .menu ul {
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
}
[data-style="vault"] .wcard:hover { transform: translateY(-4px); }
[data-style="vault"] .wc-art { border-radius: 12px; border-color: rgba(255, 255, 255, .12); }
[data-style="vault"] .wc-body .label { color: #c9a24c; opacity: 1; }
[data-style="vault"] .wc-body h3, [data-style="vault"] .hero-title, [data-style="vault"] .sec-title { font-style: italic; }
[data-style="vault"] .chip[aria-pressed="true"] { background: #c9a24c; color: #0a0b0c; }
[data-style="vault"] .numeral { color: #c9a24c; }
[data-style="vault"] .s-art { border-radius: 12px; border-color: rgba(255, 255, 255, .12); }
[data-style="vault"] .s-name { font-style: italic; font-size: 20px; }
[data-style="vault"] .man-ground { background: radial-gradient(50% 80% at 50% 50%, rgba(201, 162, 76, .22), transparent 70%), rgba(255, 255, 255, .02); border-color: rgba(255, 255, 255, .1); }
[data-style="vault"] .man-copy { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 24px rgba(0, 0, 0, .45); margin: 0 8px; }
[data-style="vault"] .track { border-width: 1px; border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 24px rgba(0, 0, 0, .45); }
[data-style="vault"] .stop-n { background: transparent; color: #c9a24c; border: 1px solid #c9a24c; }
[data-style="vault"] .proof li { border-color: rgba(201, 162, 76, .45); color: #e3c27a; }
[data-style="vault"] .device-bar i { border: 0; background: rgba(255, 255, 255, .2); }

/* FIELD: hairlines, square corners, no fills, one brass accent. */
[data-style="field"] .wcard, [data-style="field"] .face, [data-style="field"] .device, [data-style="field"] .track { box-shadow: none; }
[data-style="field"] .wc-art { border: 0; border-bottom: 1px solid var(--line-strong); filter: grayscale(1) contrast(1.05); }
[data-style="field"] .wc-art { position: relative; }
[data-style="field"] .wc-art::after { content: "Fig. " counter(fig); position: absolute; left: 10px; bottom: 10px; padding: 4px 8px; font: 500 11px var(--f-label); letter-spacing: .12em; text-transform: uppercase; background: #0a0b0c; color: #c9a24c; border: 1px solid rgba(233, 226, 208, .55); }
[data-style="field"] .g-work { counter-reset: fig; }
[data-style="field"] .wcard { counter-increment: fig; padding: 0 0 14px; }
[data-style="field"] .wc-body { padding: 0 14px; }
[data-style="field"] .wc-body .label span { color: #c9a24c; }
[data-style="field"] .btn, [data-style="field"] .chip, [data-style="field"] .proof li, [data-style="field"] .quick input { border-radius: 0; border-width: 1px; box-shadow: none; }
[data-style="field"] .btn:hover { transform: none; box-shadow: inset 0 -3px 0 #0a0b0c; }
[data-style="field"] .chip[aria-pressed="true"] { background: transparent; color: #c9a24c; border-color: #c9a24c; }
[data-style="field"] .sec { border-top: 1px solid rgba(233, 226, 208, .28); }
[data-style="field"] .hero { border-top: 0; }
[data-style="field"] .s-art { border: 0; border-bottom: 1px solid var(--line); filter: grayscale(1); }
[data-style="field"] .numeral { text-align: left; color: #c9a24c; }
[data-style="field"] .s-name { text-align: left; font-size: 15px; position: relative; padding-bottom: 6px; }
[data-style="field"] .s-name::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: #c9a24c; transform: scaleX(.18); transform-origin: left; transition: transform var(--dur) var(--ease); }
[data-style="field"] .scard:hover .s-name::after { transform: scaleX(1); }
[data-style="field"] .man-ground {
  background-image: linear-gradient(rgba(233, 226, 208, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(233, 226, 208, .09) 1px, transparent 1px);
  background-size: 32px 32px;
}
[data-style="field"] .track { border: 1px solid var(--line-strong); border-radius: 0; background: transparent; }
[data-style="field"] .stop-n { border-radius: 0; background: transparent; color: #c9a24c; border: 1px solid var(--line-strong); }
[data-style="field"] .device-bar i { border-radius: 0; background: transparent; border: 1px solid var(--line-strong); }
[data-style="field"] .device-screen img { filter: grayscale(1) contrast(1.05); }
[data-style="field"] .mark-hex { fill: transparent; stroke: #e9e2d0; stroke-width: 1.5; }
[data-style="field"] .mark-b { fill: #c9a24c; }

/* OPS: pure black, white hairlines, square, monospace caps, one hazard yellow. */
[data-style="ops"] body { font-size: 15px; }
[data-style="ops"] .wcard, [data-style="ops"] .face, [data-style="ops"] .device { position: relative; }
[data-style="ops"] .wcard::before, [data-style="ops"] .device::before {
  content: ""; position: absolute; inset: -5px; pointer-events: none;
  background:
    linear-gradient(#fff, #fff) 0 0 / 12px 1px no-repeat, linear-gradient(#fff, #fff) 0 0 / 1px 12px no-repeat,
    linear-gradient(#fff, #fff) 100% 0 / 12px 1px no-repeat, linear-gradient(#fff, #fff) 100% 0 / 1px 12px no-repeat,
    linear-gradient(#fff, #fff) 0 100% / 12px 1px no-repeat, linear-gradient(#fff, #fff) 0 100% / 1px 12px no-repeat,
    linear-gradient(#fff, #fff) 100% 100% / 12px 1px no-repeat, linear-gradient(#fff, #fff) 100% 100% / 1px 12px no-repeat;
}
[data-style="ops"] .wc-art, [data-style="ops"] .s-art { filter: grayscale(1) contrast(1.25); }
[data-style="ops"] .wc-body .label span { background: #f5d000; color: #000; padding: 2px 6px; }
[data-style="ops"] .wc-body p, [data-style="ops"] .s-copy { font-size: 14px; text-transform: none; }
[data-style="ops"] .btn, [data-style="ops"] .chip, [data-style="ops"] .proof li, [data-style="ops"] .quick input { border-radius: 0; box-shadow: none; }
[data-style="ops"] .chip[aria-pressed="true"] { background: #f5d000; color: #000; border-color: #f5d000; }
[data-style="ops"] .btn:hover { transform: none; box-shadow: none; outline: 1px solid #f5d000; outline-offset: 3px; }
[data-style="ops"] .numeral { text-align: left; color: #f5d000; }
[data-style="ops"] .numeral::before { content: "SVC-"; }
[data-style="ops"] .s-name { text-align: left; font-size: 14px; }
[data-style="ops"] .man-ground { background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 4px), #000; border-color: rgba(255, 255, 255, .35); }
[data-style="ops"] .man-copy { border-left: 3px solid #f5d000; }
[data-style="ops"] .track { border: 1px dashed rgba(255, 255, 255, .5); border-radius: 0; background: #000; }
[data-style="ops"] .stop-n { border-radius: 0; background: #000; color: #f5d000; border: 1px solid #f5d000; }
[data-style="ops"] .rec { display: inline-flex; align-items: center; gap: 6px; color: #f5d000; }
[data-style="ops"] .rec::before { content: ""; width: 8px; height: 8px; background: #f5d000; }
[data-style="ops"] .device-bar i { border-radius: 0; background: transparent; border: 1px solid #fff; }
[data-style="ops"] .empty { border-style: solid; border-width: 1px; background: repeating-linear-gradient(45deg, rgba(245, 208, 0, .18) 0 8px, transparent 8px 16px), #000; }
[data-style="ops"] .mark-hex { fill: #000; stroke: #fff; stroke-width: 1.5; }
[data-style="ops"] .mark-b { fill: #f5d000; }

/* Flip personalities. Hive and vault turn the card. The others move the back face IN from
   off the card (transform only, the back is always rendered and readable). */
[data-style="neo"] .scard-inner, [data-style="field"] .scard-inner, [data-style="ops"] .scard-inner { overflow: hidden; transform: none !important; border-radius: var(--radius-lg); }
[data-style="neo"] .back, [data-style="field"] .back, [data-style="ops"] .back { backface-visibility: visible; transition: transform var(--dur) var(--ease); }
[data-style="neo"] .back { transform: translateY(105%); background: #fff; }
[data-style="neo"] .scard-inner { box-shadow: 4px 4px 0 #000; }
[data-style="neo"] .face { box-shadow: none; }
[data-style="field"] .back { transform: translateX(-101%); background: #0a0b0c; }
[data-style="ops"] .back { transform: translateY(101%); background: #000; transition: none; }
[data-style="neo"] .scard.flipped .back, [data-style="field"] .scard.flipped .back, [data-style="ops"] .scard.flipped .back { transform: none; }
[data-style="neo"] .scard.flipped .face.front, [data-style="field"] .scard.flipped .face.front, [data-style="ops"] .scard.flipped .face.front { visibility: hidden; transition: visibility 0s var(--dur); }
[data-style="ops"] .scard.flipped .face.front { transition: none; }
[data-style="vault"] .scard.flipped .scard-inner { transform: rotateY(180deg) rotateX(4deg); }

/* ---------- 9b. Get Bizzzy: the CTA with a bee in it ---------- */
.bizzzy { position: relative; overflow: visible; }
.bz-code { display: none; }
.zzz { display: inline-flex; }
.zzz i { font-style: normal; display: inline-block; }
.top-cta .bz-get { display: none; }
.bz-bee { position: absolute; left: calc(100% - 14px); top: -13px; width: 24px; height: 24px; z-index: 3; overflow: visible; pointer-events: none; }
.bee-body { fill: var(--bee-fill); stroke: var(--bee-line); stroke-width: 1.6; }
.bee-stripe { fill: none; stroke: var(--bee-stripe); stroke-width: 2.2; }
.bee-wing { fill: var(--bee-wing); stroke: var(--bee-line); stroke-width: 1.2; }
.bee-eye { fill: var(--bee-line); }
[data-style="field"] .bz-bee, [data-style="ops"] .bz-bee { display: none; }
[data-style="ops"] .bz-txt { display: none; }
[data-style="ops"] .bz-code { display: inline; }
[data-style="hive"] .bizzzy:is(:hover, :focus-visible) { box-shadow: 10px 10px 0 #ff37b4, 0 0 0 3px #f5b623; }
[data-style="vault"] .bizzzy:is(:hover, :focus-visible) { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(227, 194, 122, .6), 0 0 28px rgba(201, 162, 76, .55); }
[data-style="lava"] .bizzzy:is(:hover, :focus-visible) { transform: translateY(-2px); box-shadow: 0 0 0 1px #fff3c4, 0 0 26px rgba(255, 106, 26, .65); }
[data-style="collage"] .bizzzy:is(:hover, :focus-visible) { transform: rotate(-1.5deg) translateY(-2px); }

/* ---------- 9c. Lava: WebGL magma behind translucent panels ---------- */
#lava { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; pointer-events: none; }
.lava-fallback { display: none; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
html.lava-css[data-style="lava"] .lava-fallback {
  display: block;
  background:
    radial-gradient(40% 35% at 20% 15%, rgba(255, 106, 26, .38), transparent 70%),
    radial-gradient(35% 30% at 85% 30%, rgba(194, 24, 91, .34), transparent 70%),
    radial-gradient(45% 40% at 40% 85%, rgba(245, 182, 35, .3), transparent 70%),
    radial-gradient(30% 25% at 75% 80%, rgba(255, 106, 26, .26), transparent 70%),
    #0b0703;
  background-size: 140% 140%;
}
[data-style="lava"] body { background: transparent; }
[data-style="lava"] .wcard, [data-style="lava"] .face, [data-style="lava"] .device, [data-style="lava"] .man-copy, [data-style="lava"] .menu ul {
  background: rgba(0, 0, 0, .5); border: 1px solid rgba(245, 182, 35, .6); border-radius: 16px;
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
}
[data-style="lava"] .man-ground { background: transparent; border: 1px solid rgba(245, 182, 35, .35); border-radius: 16px; }
[data-style="lava"] .track { background: rgba(0, 0, 0, .45); border: 1px solid rgba(245, 182, 35, .6); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); }
[data-style="lava"] .chip { -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); border-color: rgba(245, 182, 35, .6); }
[data-style="lava"] .chip[aria-pressed="true"], [data-style="lava"] .stop-n { color: #0b0703; }
[data-style="lava"] .wc-art, [data-style="lava"] .s-art { border-radius: 12px; border-color: rgba(245, 182, 35, .45); }
[data-style="lava"] .wc-body .label span, [data-style="lava"] .numeral { color: #f5b623; }
[data-style="lava"] .s-name, [data-style="lava"] .wordmark { text-shadow: var(--heading-shadow); }
[data-style="lava"] .mark-b { fill: #0b0703; }
[data-style="lava"] .proof li { background: rgba(0, 0, 0, .5); border-color: rgba(245, 182, 35, .6); }
[data-style="lava"] .device-bar i { border: 0; }

/* ---------- 9d. Collage: newsprint, torn cutouts, tape, halftone, ransom type ---------- */
[data-style="collage"] .wcard { border: 0; border-radius: 2px; padding: 16px; overflow: visible; }
[data-style="collage"] .wcard:nth-child(1) { rotate: -1.4deg; }
[data-style="collage"] .wcard:nth-child(2) { rotate: 2deg; }
[data-style="collage"] .wcard:nth-child(3) { rotate: -2.6deg; }
[data-style="collage"] .wcard:nth-child(4) { rotate: 1.1deg; }
[data-style="collage"] .scard { position: relative; }
[data-style="collage"] .scard:nth-of-type(1) { rotate: -3deg; }
[data-style="collage"] .scard:nth-of-type(2) { rotate: 2deg; }
[data-style="collage"] .scard:nth-of-type(3) { rotate: -1deg; }
[data-style="collage"] .scard:nth-of-type(4) { rotate: 3deg; }
[data-style="collage"] .scard:nth-of-type(5) { rotate: -2deg; }
[data-style="collage"] .device-wrap { rotate: 1.5deg; }
[data-style="collage"] .man-copy { rotate: -1deg; }
[data-style="collage"] .track { rotate: -.5deg; }
[data-style="collage"] .cform { rotate: .5deg; }
[data-style="collage"] .proof li:nth-child(odd) { rotate: -2deg; }
[data-style="collage"] .proof li:nth-child(even) { rotate: 1.5deg; }
/* Tape strips across a corner. */
[data-style="collage"] .wcard::after, [data-style="collage"] .scard::after, [data-style="collage"] .device::after, [data-style="collage"] .man-copy::after {
  content: ""; position: absolute; top: -12px; left: 16px; width: 88px; height: 24px; z-index: 4; pointer-events: none;
  background: rgba(255, 244, 190, .62); rotate: -7deg;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}
[data-style="collage"] .wcard:nth-child(even)::after, [data-style="collage"] .scard:nth-of-type(even)::after { left: auto; right: 14px; rotate: 6deg; }
/* Torn-edge cutouts. */
[data-style="collage"] .wc-art, [data-style="collage"] .s-art, [data-style="collage"] .device-screen {
  position: relative; border: 0; border-radius: 0;
  clip-path: polygon(0% 2%, 6% 0%, 13% 2.5%, 21% .5%, 30% 2%, 38% 0%, 47% 2.2%, 55% .4%, 64% 2%, 72% 0%, 81% 2.4%, 90% .6%, 100% 2%, 98.5% 12%, 100% 25%, 98.2% 38%, 100% 52%, 98.4% 66%, 100% 80%, 98.6% 92%, 100% 98%, 92% 100%, 83% 97.8%, 74% 100%, 65% 98%, 56% 100%, 47% 97.6%, 38% 100%, 29% 98.2%, 20% 100%, 11% 97.8%, 3% 100%, 0% 98%, 1.6% 86%, 0% 72%, 1.8% 58%, 0% 44%, 1.4% 30%, 0% 16%);
}
[data-style="collage"] .wc-art img, [data-style="collage"] .s-art img, [data-style="collage"] .device-screen img { filter: contrast(1.1) saturate(.9); }
/* Halftone dots printed over the imagery. */
[data-style="collage"] .wc-art::after, [data-style="collage"] .s-art::after, [data-style="collage"] .device-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
  background: radial-gradient(rgba(17, 17, 17, .32) 1px, transparent 1.6px) 0 0 / 5px 5px;
}
[data-style="collage"] .face { border: 0; border-radius: 2px; }
[data-style="collage"] .back { background: #ffe600; }
[data-style="collage"] .device { border: 0; border-radius: 2px; background: #fffdf7; padding: 10px; overflow: visible; position: relative; }
[data-style="collage"] .device-bar, [data-style="collage"] .device-foot { border: 0; }
[data-style="collage"] .device-bar i { border: 0; background: #111; }
[data-style="collage"] .device-bar i:nth-child(2) { background: #e2231a; }
[data-style="collage"] .device-bar i:nth-child(3) { background: #ffe600; }
[data-style="collage"] .man-ground {
  border: 0; border-radius: 0;
  background: linear-gradient(90deg, transparent 0 calc(33.3% - .5px), rgba(17, 17, 17, .14) calc(33.3% - .5px) calc(33.3% + .5px), transparent 0 calc(66.6% - .5px), rgba(17, 17, 17, .14) calc(66.6% - .5px) calc(66.6% + .5px), transparent 0), radial-gradient(rgba(226, 35, 26, .22) 1.2px, transparent 1.8px) 0 0 / 8px 8px, #ebe4d6;
}
[data-style="collage"] .man-copy { background: #fffdf7; box-shadow: var(--shadow); margin: 0 8px; position: relative; }
[data-style="collage"] .track { border: 2px dashed #111; background: #fffdf7; }
[data-style="collage"] .stop-n { color: #ffffff; border: 0; }
[data-style="collage"] .chip, [data-style="collage"] .btn, [data-style="collage"] .proof li, [data-style="collage"] .quick input, [data-style="collage"] .menu summary { border-radius: 2px; }
[data-style="collage"] .chip { box-shadow: var(--shadow); border: 0; }
[data-style="collage"] .chip[aria-pressed="true"] { background: #111; color: #ffe600; }
[data-style="collage"] .btn { border: 0; }
[data-style="collage"] .proof li { background: #fffdf7; border: 0; box-shadow: var(--shadow); }
[data-style="collage"] .mark-hex { fill: #ffe600; stroke: #111; }
[data-style="collage"] .mark-b { fill: #111; }
[data-style="collage"] .wc-body .label span { background: #e2231a; color: #fff; padding: 2px 6px; }
[data-style="collage"] .numeral { color: #e2231a; }
/* Ransom-note headings (spans built by app.js only while collage is on). */
.rw { display: inline-block; margin: 0 .1em .14em 0; padding: 0 .12em; }
.rw.r0 { font-family: "Archivo Black", Georgia, serif; }
.rw.r1 { font-family: "Spectral", Georgia, serif; font-style: italic; font-weight: 400; }
.rw.r2 { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; text-transform: uppercase; font-size: .82em; }
.rw.pw { background: #ffffff; box-shadow: 1px 1px 0 rgba(0, 0, 0, .18); }
.rw.py { background: #ffe600; }
.rw.rr { color: #e2231a; }
.rw.hl { background: linear-gradient(176deg, transparent 0 48%, #ffe600 48% 88%, transparent 88%); }

/* ---------- 9e. Buzzies: uncropped map (its top band is the required nicotine warning), 21+ chip,
   no bee anywhere near it, hidden in the gov-facing ops language. ---------- */
.age-chip {
  display: inline-block; margin: 0 0 8px; padding: 4px 8px;
  font: 700 12px/1 var(--f-label); letter-spacing: .06em;
  color: var(--bg); background: var(--fg); border: var(--bw) solid var(--line-strong); border-radius: var(--radius);
}
.wcard .wc-art.uncropped { flex: none; min-height: 0; height: auto; align-self: start; background: transparent; }
.wcard .wc-art.uncropped img { height: auto; object-fit: contain; aspect-ratio: 900 / 536; }
[data-style="ops"] .wcard.buzzies { display: none; }
[data-style="hive"] .wcard .wc-art.uncropped { margin-top: 0; border-radius: 10px; }
[data-style="collage"] .wc-art.uncropped { clip-path: none; }
[data-style="collage"] .wc-art.uncropped::after { content: none; }
[data-style="collage"] .age-chip { background: #e2231a; color: #fff; border: 0; rotate: -3deg; }
[data-style="lava"] .age-chip { background: #f5b623; color: #0b0703; border: 0; }

/* ---------- 9f. Experience mode: a pinned scroll tour above the hero (Hive tokens, no new token set) ---------- */
.sw-xp { background: radial-gradient(circle at 70% 30%, #ff37b4 0 3px, transparent 4px), repeating-linear-gradient(120deg, #0b0a12 0 3px, #f5b623 3px 5px); }
.xp { position: relative; background: #0b0a12; color: #f4e9d2; overflow-x: clip; }
.xp[hidden] { display: none; }
.xp-track { position: relative; height: 360vh; }
.xp-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; touch-action: pan-y; }
.xp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.xp-loader {
  position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: #0b0a12; transition: transform 700ms cubic-bezier(.7, 0, .2, 1);
}
.xp.loaded .xp-loader { transform: none; } /* hidden at once: the comb blooms out of the centre where the loader hex was */
.xp-hex { width: 120px; height: 112px; overflow: visible; }
.xp-cell { fill: transparent; stroke: #f5b623; stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.xp-cell.on { fill: #f5b623; stroke: #0b0a12; }
.xp-count { margin: 0; font: 700 14px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .14em; color: #f5b623; }

/* Captions: one per beat. Revealed by transform + clip-path only (set from p in xp.js). */
.xp-caps { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; pointer-events: none; } /* above pins (2) and rail (4) */
.xp-cap {
  position: absolute; left: 16px; right: 16px; bottom: 16px; max-height: 30vh; overflow: hidden; display: grid; gap: 6px; justify-items: start;
  transform: translateY(28px); clip-path: inset(0 0 100% 0); will-change: transform, clip-path;
}
.xp-cap:not(.end) { padding: 12px 14px; background: rgba(11, 10, 18, .8); border: 2px solid rgba(245, 182, 35, .55); border-radius: 14px; }
.xp-still .xp-cap:not(.end) { background: none; border: 0; padding: 0; }
.xp-cap.end { justify-items: center; text-align: center; margin: 0 auto; max-width: 440px; color: #0b0a12; }
.xp-kicker { margin: 0; font: 700 12px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .28em; text-transform: uppercase; color: #f5b623; }
.xp-title { font: 400 clamp(34px, 9vw, 84px)/.95 "Archivo Black", Georgia, serif; text-transform: uppercase; color: #f4e9d2; text-shadow: 4px 4px 0 #ff37b4; }
.xp-line { margin: 0; max-width: 34ch; font: 400 clamp(19px, 4.6vw, 30px)/1.25 "Spectral", Georgia, serif; color: #f4e9d2; text-shadow: 0 2px 12px rgba(11, 10, 18, .8); }
.xp-hint { margin: 0; font: 500 12px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: rgba(244, 233, 210, .75); }
.xp-cap.end .xp-kicker { color: #0b0a12; }
.xp-cap.end .xp-title { color: #0b0a12; text-shadow: 4px 4px 0 #ff37b4; }
.xp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.xp-list li { font: 700 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; padding: 7px 9px; background: #f5b623; color: #0b0a12; border: 2px solid #0b0a12; border-radius: 999px; }
.xp-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; justify-content: center; align-items: center; pointer-events: auto; }
.xp-read { display: inline-flex; align-items: center; min-height: 44px; font: 700 13px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: #0b0a12; text-underline-offset: 5px; }
.xp .bz-get { display: inline; }

/* Compact captions: phones full width minus gutters, never taller than 30% of the viewport. */
.xp-cap .xp-title { font-size: clamp(18px, 6vw, 26px); text-shadow: 2px 2px 0 #ff37b4; }
.xp-cap .xp-line { font-size: 15px; line-height: 1.35; }
.xp-cap .xp-kicker { font-size: 11px; }
.xp-cap .xp-list li { font-size: 10px; padding: 5px 7px; border-width: 1.5px; }

/* Pins: HTML labels projected onto 3D objects every frame (desktop motion only). */
.xp-pins { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: none; }
.xp-pin {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font: 700 12px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 10px; background: #0b0a12; color: #f5b623; border: 2px solid #f5b623; border-radius: 999px; box-shadow: 3px 3px 0 #ff37b4;
  transform: translate(-9999px, 0); clip-path: inset(0 0 100% 0);
}
.xp-pin.lang { background: #f4e9d2; color: #0b0a12; border-color: #0b0a12; }

/* Progress rail */
.xp-rail { position: absolute; right: 12px; top: 50%; z-index: 4; display: grid; gap: 4px; transform: translateY(-50%); }
.xp-tick { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.xp-tick::before { content: ""; width: 10px; height: 10px; border: 2px solid #f5b623; border-radius: 50%; background: transparent; transition: transform 200ms; }
.xp-tick[aria-current="step"]::before { background: #f5b623; transform: scale(1.35); }

/* Reduced motion: no pinned track; six stacked still frames built by xp.js. */
.xp-stills { display: none; }
.xp.static .xp-track { height: auto; }
.xp.static .xp-stage { position: relative; height: auto; min-height: 220px; }
.xp.static .xp-caps, .xp.static .xp-rail, .xp.static .xp-pins { display: none; }
.xp.static .xp-canvas, .xp.static.loaded .xp-stage { display: none; }
.xp.static .xp-stills { display: grid; gap: 16px; padding: 16px; }
.xp-still { margin: 0; display: grid; gap: 10px; }
.xp-still img { width: 100%; height: auto; border: 2px solid #f5b623; border-radius: 14px; }
.xp-still .xp-cap { position: static; transform: none; clip-path: none; max-height: none; max-width: none; overflow: visible; }
.xp-still .xp-cap.end, .xp-still .xp-cap.end .xp-kicker, .xp-still .xp-cap.end .xp-title, .xp-still .xp-read { color: #f4e9d2; }

/* Phone header: the 4-col grid gives the CTA one track (~80px) and the logo two. Keep both on one line. */
@media (max-width: 599px) {
  .logo { min-width: 0; }
  .wordmark { font-size: 15px; letter-spacing: min(var(--display-track), .02em); }
  .top-cta { white-space: nowrap; font-size: 12px; letter-spacing: .02em; padding: 8px 10px; min-height: 40px; }
}
/* collage tape on the reel tiles pokes 2px past the viewport; clip keeps sticky children working (hidden would not) */
.work { overflow-x: clip; }

@media (min-width: 600px) {
  .xp-track { height: 500vh; }
  .xp-cap { left: 24px; right: auto; bottom: 24px; max-width: 440px; }
  .xp-cap.end { left: 0; right: 0; }
  .xp-cap .xp-title { font-size: clamp(20px, 2.6vw, 34px); }
  .xp-cap .xp-line { font-size: 16px; }
}
@media (min-width: 960px) {
  .xp-pins { display: block; }
  .xp-cap .xp-list { display: none; }
  .xp.static .xp-cap .xp-list { display: flex; }
  .xp.static .xp-stills { grid-template-columns: repeat(2, 1fr); padding: 40px; gap: 28px; }
}

/* ---------- 9g. How it works (Peachweb three-step): three tall big-radius cards, visual in the lower ~55%.
   Mobile first: stacked. Desktop: three equal columns, ~31% each with ~2% gaps. Re-skins through the same tokens. ---------- */
.steps-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.step {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 18px 18px;
  background: var(--surface); color: var(--surface-fg);
  border: var(--bw) solid var(--line-strong); border-radius: calc(var(--radius-lg) * 1.4); box-shadow: var(--shadow);
}
.step-n { margin: 0; font: 500 12px/1 var(--f-label); letter-spacing: var(--label-track); text-transform: uppercase; opacity: .82; }
.step-title { font-size: clamp(24px, 6.4vw, 34px); line-height: 1.04; }
.step-line { margin: 0 0 6px; font-size: 15px; line-height: 1.4; max-width: 34ch; opacity: .86; }
.step-vis { margin-top: auto; flex-shrink: 0; }

/* Step 1: 2x2 mood tiles. Tiles carry no overflow:hidden (an aspect-ratio grid item with it collapses the row);
   the image holds the ratio and the radius itself. */
.mood { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max-content; gap: 8px; }
.mood-tile { margin: 0; will-change: transform; }
.mood-tile img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: var(--bw) solid var(--line-strong); }

/* Step 2: seven glassy rows, one per language. The lit row is the current style, or the one the idle cycle points at. */
.langs { display: grid; gap: 6px; }
.lang-row {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 3px; padding: 9px 12px;
  background: color-mix(in srgb, var(--surface-fg) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--surface-fg) 18%, transparent); border-radius: var(--radius);
  transition: background-color 260ms, transform 260ms var(--ease), color 260ms;
}
.lang-row:hover { transform: translateX(4px); }
.lang-row:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lr-title { font: 600 14px/1.1 var(--f-label); letter-spacing: .04em; text-transform: uppercase; }
.lr-sub { font: 400 12px/1.2 var(--f-body); opacity: .72; }
.lang-row.lit { background: var(--cta-bg); color: var(--cta-fg); border-color: var(--cta-bg); }
.lang-row[aria-pressed="true"] .lr-title::after { content: "  \2713"; }

/* Step 3: a miniature of this page, built from the same tokens, so it re-skins with every switch. */
.mini {
  display: grid; gap: 8px; padding: 8px; min-height: 260px;
  background-color: var(--bg); background-image: var(--bg-img); color: var(--fg);
  border: var(--bw) solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.mini-bar { display: flex; align-items: center; gap: 4px; font: 500 9px var(--f-label); letter-spacing: .06em; opacity: .8; }
.mini-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.mini-bar i:nth-child(2) { background: var(--accent-2); }
.mini-bar i:nth-child(3) { background: var(--accent-3); }
.mini-bar span { margin-left: 6px; }
.mini-hero { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 6px 4px; }
.mini-hero img { width: 78%; height: auto; }
.mini-title { margin: 0; font: var(--display-weight) 13px/1 var(--f-display); text-transform: var(--display-case); letter-spacing: var(--display-track); text-shadow: var(--heading-shadow); }
.mini-dial { display: flex; gap: 4px; }
.mini-dial .sw { width: 12px; height: 12px; border-width: 1px; }
.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mini-card {
  display: grid; gap: 4px; padding: 5px; background: var(--surface); color: var(--surface-fg);
  border: var(--bw) solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow);
  font: var(--display-weight) 10px/1 var(--f-display); text-transform: var(--display-case);
}
.mini-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: calc(var(--radius) * .6); }

/* Per-language shapes */
[data-style="hive"] .step { background: #15122a; color: #f4e9d2; border-color: #f5b623; box-shadow: inset 0 0 0 4px #15122a, inset 0 0 0 6px #f5b623, 6px 6px 0 #ff37b4; }
[data-style="hive"] .step-n { justify-self: start; align-self: flex-start; padding: 6px 12px; background: #f5b623; color: #0b0a12; border: 2px solid #0b0a12; border-radius: 999px; opacity: 1; }
[data-style="hive"] .mood-tile img { border-radius: 50% 50% 10px 10px / 30% 30% 10px 10px; border: 3px solid #f5b623; }
[data-style="hive"] .lang-row { border-radius: 999px; }
[data-style="neo"] .step:nth-child(1) { background: #ffdb33; }
[data-style="neo"] .step:nth-child(2) { background: #5294ff; }
[data-style="neo"] .step:nth-child(3) { background: #4fd1c5; }
[data-style="neo"] .lang-row { background: #fff; border: 3px solid #000; border-radius: 5px; box-shadow: 3px 3px 0 #000; }
[data-style="neo"] .lang-row.lit { background: #ea435f; }
[data-style="neo"] .lang-row:active { transform: translate(3px, 3px); box-shadow: 0 0 0 #000; }
[data-style="neo"] .mood-tile img { box-shadow: 4px 4px 0 #000; }
[data-style="vault"] .step, [data-style="vault"] .mini { -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); }
[data-style="vault"] .step-n { color: #c9a24c; opacity: 1; }
[data-style="vault"] .step-title { font-style: italic; }
[data-style="field"] .step { box-shadow: none; }
[data-style="field"] .step-n { color: #c9a24c; opacity: 1; }
[data-style="field"] .lang-row { background: transparent; border-radius: 0; border-color: rgba(233, 226, 208, .28); }
[data-style="field"] .lang-row.lit { background: transparent; color: #c9a24c; border-color: #c9a24c; }
[data-style="field"] .mood-tile img { filter: grayscale(1) contrast(1.05); border-width: 1px; }
[data-style="ops"] .step::before {
  content: ""; position: absolute; inset: -5px; pointer-events: none;
  background:
    linear-gradient(#fff, #fff) 0 0 / 12px 1px no-repeat, linear-gradient(#fff, #fff) 0 0 / 1px 12px no-repeat,
    linear-gradient(#fff, #fff) 100% 0 / 12px 1px no-repeat, linear-gradient(#fff, #fff) 100% 0 / 1px 12px no-repeat,
    linear-gradient(#fff, #fff) 0 100% / 12px 1px no-repeat, linear-gradient(#fff, #fff) 0 100% / 1px 12px no-repeat,
    linear-gradient(#fff, #fff) 100% 100% / 12px 1px no-repeat, linear-gradient(#fff, #fff) 100% 100% / 1px 12px no-repeat;
}
[data-style="ops"] .step-n { justify-self: start; align-self: flex-start; padding: 3px 6px; background: #f5d000; color: #000; opacity: 1; }
[data-style="ops"] .lang-row { border-radius: 0; }
[data-style="ops"] .mood-tile img { filter: grayscale(1) contrast(1.25); }
[data-style="lava"] .step, [data-style="lava"] .mini {
  background: rgba(0, 0, 0, .5); border: 1px solid rgba(245, 182, 35, .6); border-radius: 16px;
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
}
[data-style="lava"] .step-n { color: #f5b623; opacity: 1; }
[data-style="lava"] .step-title { text-shadow: var(--heading-shadow); }
[data-style="collage"] .step { border: 0; border-radius: 2px; background: #fffdf7; }
[data-style="collage"] .step:nth-child(1) { rotate: -1.4deg; }
[data-style="collage"] .step:nth-child(2) { rotate: 1deg; }
[data-style="collage"] .step:nth-child(3) { rotate: -0.6deg; }
[data-style="collage"] .step::after {
  content: ""; position: absolute; top: -12px; left: 22px; width: 92px; height: 24px; z-index: 4; pointer-events: none;
  background: rgba(255, 244, 190, .62); rotate: -6deg; box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}
[data-style="collage"] .step:nth-child(2)::after { left: auto; right: 18px; rotate: 5deg; }
[data-style="collage"] .step-n { justify-self: start; align-self: flex-start; padding: 3px 8px; background: #e2231a; color: #fff; opacity: 1; rotate: -2deg; }
[data-style="collage"] .mood-tile img {
  border: 0; border-radius: 0;
  clip-path: polygon(0% 2%, 9% 0%, 20% 2.5%, 33% .5%, 47% 2.2%, 60% .4%, 74% 2%, 88% 0%, 100% 2%, 98.5% 18%, 100% 36%, 98.2% 54%, 100% 72%, 98.6% 90%, 100% 98%, 88% 100%, 74% 97.8%, 60% 100%, 46% 97.6%, 32% 100%, 18% 98%, 4% 100%, 0% 98%, 1.6% 80%, 0% 62%, 1.8% 44%, 0% 26%, 1.4% 12%);
}
[data-style="collage"] .mood-tile:nth-child(1) { rotate: -2deg; }
[data-style="collage"] .mood-tile:nth-child(2) { rotate: 2.5deg; }
[data-style="collage"] .mood-tile:nth-child(3) { rotate: 1.5deg; }
[data-style="collage"] .mood-tile:nth-child(4) { rotate: -1deg; }
[data-style="collage"] .lang-row { background: #fff; border: 0; border-radius: 2px; box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 6px 10px -6px rgba(0, 0, 0, .35); }
[data-style="collage"] .lang-row:nth-child(odd) { rotate: -.6deg; }
[data-style="collage"] .lang-row:nth-child(even) { rotate: .5deg; }
[data-style="collage"] .lang-row.lit { background: #ffe600; color: #111; }

/* ---------- 9h. Work: live reel wall. Stage (browser + phone), caption, rail, wall; all from manifest.json.
   Mobile first (4 cols): title, filter, browser, phone breaking its bottom edge beside the caption, swipe rail, wall.
   Every motion here is transform only; the wipe colour is the same near-white as the button wipe. ---------- */
.work { --wipe: #f5f3ef; --wipe-fg: #121d2e; --live: #2fd16b; }
.g-reel { --row: 56px; gap: 12px; }
.reel-head { align-self: end; }
.reel-head .sec-title { margin-bottom: 8px; }
.live-count { display: flex; align-items: center; gap: 8px; margin: 0; font: 500 12px/1.3 var(--f-label); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--muted); }
.live-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--live); }
.reel-filter { display: flex; flex-wrap: wrap; gap: 8px; align-self: center; }
.reel-filter .chip { padding: 8px 16px; }

.tag {
  display: inline-flex; align-items: center; min-height: 20px; padding: 3px 8px;
  font: 500 10px/1 var(--f-label); letter-spacing: var(--label-track); text-transform: uppercase; white-space: nowrap;
  color: var(--chip-fg); background: var(--chip-bg); border: 1px solid var(--line-strong); border-radius: 999px;
}

/* Media: a poster/video box that never collapses (no aspect-ratio on a grid item with overflow hidden). */
.tag[hidden], .reel-play[hidden] { display: none; }
.reel-media { position: relative; overflow: hidden; background: #000; }
.reel-media video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.reel-wipe { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--wipe); transform: scaleX(0); transform-origin: 0 50%; }
.reel-wipe.go { animation: reel-wipe 760ms cubic-bezier(.7, 0, .3, 1) both; }
@keyframes reel-wipe {
  0% { transform: scaleX(0); transform-origin: 0 50%; }
  46% { transform: scaleX(1); transform-origin: 0 50%; }
  54% { transform: scaleX(1); transform-origin: 100% 50%; }
  100% { transform: scaleX(0); transform-origin: 100% 50%; }
}
.reel-play {
  position: absolute; left: 50%; top: 50%; z-index: 3; translate: -50% -50%; min-height: 44px; padding: 10px 18px;
  font: 500 13px/1 var(--f-label); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  color: var(--cta-fg); background: var(--cta-bg); border: var(--bw) solid var(--line-strong); border-radius: 999px; box-shadow: var(--shadow);
}
.reel-play::before { content: ""; display: inline-block; margin-right: 8px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; vertical-align: -1px; }

/* Browser frame */
.reel-browser {
  margin: 0; align-self: start; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface-2); color: var(--fg);
  border: var(--bw) solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.rb-bar { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 8px 10px; border-bottom: var(--bw) solid var(--line-strong); font: 500 11px/1 var(--f-label); letter-spacing: .04em; }
.rb-bar i { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--accent); border: 1.5px solid var(--line-strong); }
.rb-bar i:nth-child(2) { background: var(--accent-2); }
.rb-bar i:nth-child(3) { background: var(--accent-3); }
.rb-url { flex: 1; min-width: 0; margin-left: 6px; padding: 5px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--input-bg); color: var(--input-fg); border: 1px solid var(--line); border-radius: 999px; }
.rb-screen { aspect-ratio: 16 / 10; }

/* Phone frame: absolutely placed inside its grid slot so it overlaps the browser without sizing the rows. */
.reel-phone-slot { position: relative; min-height: 0; z-index: 2; pointer-events: none; }
.reel-phone {
  position: absolute; top: 0; right: 0; height: min(100%, 340px); aspect-ratio: 410 / 864; margin: 0; padding: 8px; pointer-events: auto;
  background: var(--surface-2); border: var(--bw) solid var(--line-strong); border-radius: 30px; box-shadow: var(--shadow);
}
.rp-notch { position: absolute; left: 50%; top: 13px; z-index: 3; width: 34%; height: 13px; translate: -50% 0; background: var(--line-strong); border-radius: 999px; }
.rp-screen { height: 100%; border-radius: 22px; }

/* Caption */
.reel-cap { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 4px; }
.rc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font: 500 11px/1 var(--f-label); letter-spacing: var(--label-track); color: var(--muted); }
.rc-name { font-size: clamp(20px, 5.6vw, 40px); overflow-wrap: break-word; max-width: 100%; }
.rc-blurb { margin: 0; font-size: 15px; line-height: 1.42; }
.rc-visit { margin-top: 4px; }

/* Rail: a swipe row on phones, a list beside the stage on desktop. */
.reel-rail { min-width: 0; }
.rail-list { list-style: none; margin: 0 -16px; padding: 6px 16px 12px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail-list li { flex: none; scroll-snap-align: start; }
.rail-row {
  all: unset; box-sizing: border-box; position: relative; isolation: isolate; overflow: hidden; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 8px; width: 100%; min-width: 168px; min-height: 52px; padding: 8px 12px;
  font: 500 13px/1.15 var(--f-label); letter-spacing: .03em; text-transform: uppercase;
  background: var(--surface); color: var(--surface-fg); border: var(--bw) solid var(--line-strong); border-radius: var(--radius);
  transition: color .3s cubic-bezier(.4, 0, .2, 1);
}
.rail-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wipe); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s cubic-bezier(.4, 0, .2, 1); }
.rail-row[aria-current="true"]::before { transform: scaleX(1); }
.rail-row[aria-current="true"] { color: var(--wipe-fg); }
@media (hover: hover) { .rail-row:hover::before { transform: scaleX(1); } .rail-row:hover { color: var(--wipe-fg); } }
.rail-row:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rr-n { font-size: 11px; opacity: .7; }
.rr-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-dot { grid-column: 3; grid-row: 1; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.rr-dot.live { background: var(--live); }
.rr-kind { grid-column: 2; grid-row: 2; font-size: 10px; letter-spacing: var(--label-track); opacity: .72; }
.rr-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; }
.rail-row.run .rr-prog { animation: rail-prog var(--hold, 9s) linear both; }
@keyframes rail-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Wall: big tiles for the first three shown, two-up below them on phones. */
.reel-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: max-content; gap: 14px 12px; }
.tile { grid-column: span 2; min-width: 0; }
.tile.big { grid-column: span 4; }
.tile[hidden] { display: none; }
.tile-btn {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 8px; width: 100%; height: 100%; padding: 8px;
  background: var(--surface); color: var(--surface-fg); border: var(--bw) solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tile-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.tile-media { flex-shrink: 0; aspect-ratio: 16 / 10; border-radius: var(--radius); border: var(--bw) solid var(--line-strong); }
.tile-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; padding: 0 2px 2px; }
.tile-name { margin: 0; font: var(--display-weight) 17px/1.05 var(--f-display); text-transform: var(--display-case); letter-spacing: var(--display-track); overflow-wrap: anywhere; }
.tile.big .tile-name { font-size: 22px; }
.tile-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.tile-url {
  position: relative; isolation: isolate; overflow: hidden; max-width: 100%; padding: 4px 9px; text-overflow: ellipsis; white-space: nowrap;
  font: 500 10px/1.2 var(--f-label); letter-spacing: .03em; border: 1px solid currentColor; border-radius: 999px; transition: color .3s cubic-bezier(.4, 0, .2, 1);
}
.tile-url::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wipe); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s cubic-bezier(.4, 0, .2, 1); }
@media (hover: hover) {
  .tile-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-up); }
  .tile-btn:hover .tile-url::before { transform: scaleX(1); }
  .tile-btn:hover .tile-url { color: var(--wipe-fg); }
}
.tile-btn:focus-visible .tile-url::before { transform: scaleX(1); }
.tile-btn:focus-visible .tile-url { color: var(--wipe-fg); }
.tile.on-stage .tile-btn { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Per-language shapes for the stage, rail and wall */
[data-style="hive"] .reel-browser { border-radius: 30px; border-color: #f5b623; box-shadow: inset 0 0 0 4px rgba(11, 10, 18, .6), 8px 8px 0 #ff37b4; }
[data-style="hive"] .rb-bar { border-bottom-color: #f5b623; }
[data-style="hive"] .reel-phone { border: 0; border-radius: 40px; background: #15122a; box-shadow: 0 0 0 4px #f5b623, 0 0 0 7px #0b0a12, 7px 7px 0 7px #ff37b4; }
[data-style="hive"] .rp-screen { border-radius: 30px; }
[data-style="hive"] .rp-notch { background: #f5b623; }
[data-style="hive"] .rail-row { border-radius: 999px; border-width: 2px; }
[data-style="hive"] .rr-n { width: 24px; height: 24px; display: grid; place-items: center; background: #0b0a12; color: #f5b623; border-radius: 50%; opacity: 1; }
[data-style="hive"] .tile:nth-child(4n + 2) .tile-btn { background: #19b6e6; }
[data-style="hive"] .tile:nth-child(4n + 3) .tile-btn { background: #ff37b4; }
[data-style="hive"] .tile:nth-child(4n + 4) .tile-btn { background: #e07a1f; }
[data-style="hive"] .tile-btn { box-shadow: 6px 6px 0 #ff37b4; }
[data-style="hive"] .tile:nth-child(4n + 3) .tile-btn { box-shadow: 6px 6px 0 #f5b623; }
[data-style="hive"] .tile-media { border-radius: 90px 90px 10px 10px / 46px 46px 10px 10px; box-shadow: 0 0 0 3px #0b0a12; }
[data-style="hive"] .tag { background: #0b0a12; color: #f5b623; border-color: #0b0a12; }

[data-style="neo"] .reel-browser, [data-style="neo"] .tile-btn, [data-style="neo"] .rail-row { border-radius: 5px; }
[data-style="neo"] .reel-browser { background: #fff; }
[data-style="neo"] .rb-bar { background: #ffdb33; }
[data-style="neo"] .rb-url { border: 2px solid #000; border-radius: 5px; }
[data-style="neo"] .reel-phone { background: #ffdb33; border-radius: 26px; box-shadow: 6px 6px 0 #000; }
[data-style="neo"] .rp-screen { border-radius: 16px; border: 3px solid #000; }
[data-style="neo"] .rail-row { box-shadow: 3px 3px 0 #000; background: #fff; }
[data-style="neo"] .rail-list { gap: 10px; }
[data-style="neo"] .tile:nth-child(4n + 1) .tile-btn { background: #ffdb33; }
[data-style="neo"] .tile:nth-child(4n + 2) .tile-btn { background: #5294ff; }
[data-style="neo"] .tile:nth-child(4n + 3) .tile-btn { background: #4fd1c5; }
[data-style="neo"] .tile:nth-child(4n + 4) .tile-btn { background: #ea435f; }
[data-style="neo"] .tile-media { border-radius: 5px; box-shadow: 4px 4px 0 #000; }
[data-style="neo"] .tile-btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 #000; }
[data-style="neo"] .tag, [data-style="neo"] .tile-url, [data-style="neo"] .reel-play { border-radius: 5px; }
[data-style="neo"] .tag { border-width: 2px; }

[data-style="vault"] .reel-browser, [data-style="vault"] .reel-phone, [data-style="vault"] .tile-btn, [data-style="vault"] .rail-row {
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
}
[data-style="vault"] .rb-bar i { border: 0; background: rgba(255, 255, 255, .2); }
[data-style="vault"] .reel-phone { border-radius: 38px; background: rgba(255, 255, 255, .06); }
[data-style="vault"] .rp-screen { border-radius: 30px; }
[data-style="vault"] .rail-row { border-radius: 14px; }
[data-style="vault"] .rr-n, [data-style="vault"] .rc-meta { color: #c9a24c; }
[data-style="vault"] .rc-name, [data-style="vault"] .tile-name { font-style: italic; }
[data-style="vault"] .tile-media { border-radius: 12px; border-color: rgba(255, 255, 255, .12); }
[data-style="vault"] .tile-btn:hover { transform: translateY(-4px); }
[data-style="vault"] .tag { color: #e3c27a; border-color: rgba(201, 162, 76, .45); }

[data-style="field"] .reel-browser, [data-style="field"] .reel-phone, [data-style="field"] .tile-btn { box-shadow: none; }
[data-style="field"] .rb-bar i { border-radius: 0; background: transparent; border: 1px solid var(--line-strong); }
[data-style="field"] .rb-url, [data-style="field"] .tag, [data-style="field"] .tile-url, [data-style="field"] .reel-play { border-radius: 0; }
[data-style="field"] .reel-media video { filter: grayscale(1) contrast(1.05); }
[data-style="field"] .reel-phone { background: #0a0b0c; border-radius: 26px; }
[data-style="field"] .rp-screen { border-radius: 18px; }
[data-style="field"] .rail-list { gap: 0; }
[data-style="field"] .rail-row { border-radius: 0; border-width: 0 0 1px; background: transparent; }
[data-style="field"] .rr-n { color: #c9a24c; opacity: 1; }
[data-style="field"] .reel-wall { counter-reset: fig; }
[data-style="field"] .tile { counter-increment: fig; }
[data-style="field"] .tile-btn { padding: 0 0 12px; }
[data-style="field"] .tile-media { border: 0; border-bottom: 1px solid var(--line-strong); }
[data-style="field"] .tile-media::after { content: "Fig. " counter(fig); position: absolute; left: 10px; bottom: 10px; z-index: 1; padding: 4px 8px; font: 500 11px var(--f-label); letter-spacing: .12em; text-transform: uppercase; background: #0a0b0c; color: #c9a24c; border: 1px solid rgba(233, 226, 208, .55); }
[data-style="field"] .tile-body { padding: 0 12px; }
[data-style="field"] .tile-btn:hover { transform: none; }
[data-style="field"] .tag { color: #c9a24c; border-color: #c9a24c; background: transparent; }

[data-style="ops"] .reel-browser, [data-style="ops"] .tile-btn { position: relative; overflow: visible; }
[data-style="ops"] .reel-browser::before, [data-style="ops"] .tile-btn::before {
  content: ""; position: absolute; inset: -5px; pointer-events: none;
  background:
    linear-gradient(#fff, #fff) 0 0 / 12px 1px no-repeat, linear-gradient(#fff, #fff) 0 0 / 1px 12px no-repeat,
    linear-gradient(#fff, #fff) 100% 0 / 12px 1px no-repeat, linear-gradient(#fff, #fff) 100% 0 / 1px 12px no-repeat,
    linear-gradient(#fff, #fff) 0 100% / 12px 1px no-repeat, linear-gradient(#fff, #fff) 0 100% / 1px 12px no-repeat,
    linear-gradient(#fff, #fff) 100% 100% / 12px 1px no-repeat, linear-gradient(#fff, #fff) 100% 100% / 1px 12px no-repeat;
}
[data-style="ops"] .rec { display: inline-flex; align-items: center; gap: 6px; color: #f5d000; }
[data-style="ops"] .rec::before { content: ""; width: 8px; height: 8px; background: #f5d000; }
[data-style="ops"] .rb-bar i { border-radius: 0; background: transparent; border: 1px solid #fff; }
[data-style="ops"] .rb-url, [data-style="ops"] .tag, [data-style="ops"] .tile-url, [data-style="ops"] .reel-play { border-radius: 0; box-shadow: none; }
[data-style="ops"] .reel-media video { filter: grayscale(1) contrast(1.25); }
[data-style="ops"] .reel-phone { border-radius: 14px; background: #000; box-shadow: 0 0 0 4px #000, 0 0 0 5px rgba(255, 255, 255, .35); }
[data-style="ops"] .rp-screen { border-radius: 6px; }
[data-style="ops"] .rp-notch { background: #f5d000; border-radius: 0; height: 6px; width: 22%; }
[data-style="ops"] .rail-list { gap: 0; }
[data-style="ops"] .rail-row { border-radius: 0; border-width: 0 0 1px; background: #000; }
[data-style="ops"] .rr-n { color: #f5d000; opacity: 1; }
[data-style="ops"] .rr-dot { border-radius: 0; }
[data-style="ops"] .tile-btn { border-radius: 0; box-shadow: none; }
[data-style="ops"] .tile-media { border-radius: 0; }
[data-style="ops"] .tile-btn:hover { transform: none; outline: 1px solid #f5d000; outline-offset: 3px; }
[data-style="ops"] .tag { background: #f5d000; color: #000; border-color: #f5d000; }
[data-style="ops"] .live-dot { border-radius: 0; }

[data-style="lava"] .reel-browser, [data-style="lava"] .reel-phone, [data-style="lava"] .tile-btn, [data-style="lava"] .rail-row {
  background: rgba(0, 0, 0, .5); border: 1px solid rgba(245, 182, 35, .6); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
}
[data-style="lava"] .reel-browser, [data-style="lava"] .tile-btn { border-radius: 16px; }
[data-style="lava"] .reel-phone { border-radius: 34px; }
[data-style="lava"] .rp-screen { border-radius: 26px; }
[data-style="lava"] .rb-bar i { border: 0; }
[data-style="lava"] .rr-n, [data-style="lava"] .rc-meta { color: #f5b623; }
[data-style="lava"] .tile-media { border-radius: 12px; border-color: rgba(245, 182, 35, .45); }
[data-style="lava"] .rc-name, [data-style="lava"] .tile-name { text-shadow: var(--heading-shadow); }
[data-style="lava"] .tag { border-color: rgba(245, 182, 35, .6); color: #f5b623; }

[data-style="collage"] .reel-browser { border: 0; border-radius: 2px; background: #fffdf7; padding: 10px; overflow: visible; position: relative; rotate: -1deg; }
[data-style="collage"] .rb-bar { border: 0; padding: 4px 2px 10px; }
[data-style="collage"] .rb-bar i { border: 0; background: #111; }
[data-style="collage"] .rb-bar i:nth-child(2) { background: #e2231a; }
[data-style="collage"] .rb-bar i:nth-child(3) { background: #ffe600; }
[data-style="collage"] .rb-url { border-radius: 2px; background: #ffe600; border: 0; }
[data-style="collage"] .reel-phone { border: 0; border-radius: 30px; background: #111; rotate: 3deg; }
[data-style="collage"] .reel-browser::after, [data-style="collage"] .reel-phone::after, [data-style="collage"] .tile-btn::after {
  content: ""; position: absolute; top: -12px; left: 16px; width: 88px; height: 24px; z-index: 4; pointer-events: none;
  background: rgba(255, 244, 190, .62); rotate: -7deg; box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}
[data-style="collage"] .reel-phone::after { left: auto; right: -14px; top: 30px; width: 64px; rotate: 58deg; }
[data-style="collage"] .tile:nth-child(even) .tile-btn::after { left: auto; right: 14px; rotate: 6deg; }
[data-style="collage"] .rb-screen, [data-style="collage"] .tile-media {
  border: 0; border-radius: 0;
  clip-path: polygon(0% 2%, 6% 0%, 13% 2.5%, 21% .5%, 30% 2%, 38% 0%, 47% 2.2%, 55% .4%, 64% 2%, 72% 0%, 81% 2.4%, 90% .6%, 100% 2%, 98.5% 12%, 100% 25%, 98.2% 38%, 100% 52%, 98.4% 66%, 100% 80%, 98.6% 92%, 100% 98%, 92% 100%, 83% 97.8%, 74% 100%, 65% 98%, 56% 100%, 47% 97.6%, 38% 100%, 29% 98.2%, 20% 100%, 11% 97.8%, 3% 100%, 0% 98%, 1.6% 86%, 0% 72%, 1.8% 58%, 0% 44%, 1.4% 30%, 0% 16%);
}
[data-style="collage"] .reel-media video { filter: contrast(1.1) saturate(.9); }
[data-style="collage"] .rb-screen::after, [data-style="collage"] .tile-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: multiply;
  background: radial-gradient(rgba(17, 17, 17, .32) 1px, transparent 1.6px) 0 0 / 5px 5px;
}
[data-style="collage"] .tile-btn { position: relative; overflow: visible; border: 0; border-radius: 2px; }
[data-style="collage"] .tile:nth-child(3n + 1) { rotate: -1.2deg; }
[data-style="collage"] .tile:nth-child(3n + 2) { rotate: 1.4deg; }
[data-style="collage"] .tile:nth-child(3n) { rotate: -.4deg; }
[data-style="collage"] .rail-row { border: 0; border-radius: 2px; background: #fffdf7; box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 6px 10px -6px rgba(0, 0, 0, .35); }
[data-style="collage"] .rail-list li:nth-child(odd) { rotate: -.6deg; }
[data-style="collage"] .rail-list li:nth-child(even) { rotate: .5deg; }
[data-style="collage"] .tag { background: #e2231a; color: #fff; border: 0; border-radius: 2px; }
[data-style="collage"] .tile-url, [data-style="collage"] .reel-play { border-radius: 2px; }
[data-style="collage"] .rc-name { background: #ffe600; padding: 0 .12em; align-self: flex-start; }

/* Desktop: the 12-col board from the bento spec. The rail scrolls inside its own rows. */
@media (min-width: 960px) {
  .g-reel { --row: 88px; gap: 20px; }
  .reel-filter { justify-content: flex-end; align-self: end; padding-bottom: 12px; }
  .rb-bar { padding: 11px 14px; font-size: 12px; }
  .rb-bar i { width: 11px; height: 11px; }
  .reel-phone { height: min(100%, 540px); padding: 10px; border-radius: 40px; }
  .rp-screen { border-radius: 30px; }
  .rp-notch { top: 16px; height: 16px; }
  .reel-cap { padding: 6px 0 0; max-width: 62ch; }
  .rc-name { font-size: clamp(30px, 2.8vw, 44px); }
  .rc-blurb { font-size: 17px; }
  .reel-rail { position: relative; min-height: 360px; }
  .rail-list { position: absolute; inset: 0; margin: 0; padding: 2px 6px 2px 2px; flex-direction: column; gap: 6px; overflow-x: hidden; overflow-y: auto; scroll-snap-type: none; }
  .rail-row { min-width: 0; min-height: 0; padding: 7px 12px; }
  .rail-row { grid-template-columns: 26px 1fr auto auto; }
  .rr-kind { grid-column: 3; grid-row: 1; }
  .rr-dot { grid-column: 4; }
  .reel-wall { margin-top: 36px; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 26px 20px; }
  .tile { grid-column: span 3; }
  .tile.big { grid-column: span 4; }
  .tile-btn { padding: 10px; }
  .tile.big .tile-name { font-size: 26px; }
  [data-style="field"] .tile-btn { padding: 0 0 14px; }
}

/* Motion (html.motion only): the live dot pulses, the phone bobs 6px. Transform only. */
.motion .live-dot { animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.motion .reel-phone { animation: phone-bob 6s ease-in-out infinite; }
@keyframes phone-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.motion[data-style="ops"] .reel-browser .rec::before { animation: ops-blink 1s steps(1) infinite; }
.motion[data-style="field"] .reel-phone, .motion[data-style="ops"] .reel-phone { animation: none; }

/* ---------- 10. Desktop (min-width only, mobile written first) ---------- */
@media (min-width: 600px) {
  .quick { flex-direction: row; }
  .quick input { flex: 1; }
  .top-cta .bz-get { display: inline; }
  .top-cta { padding: 10px 18px; }
}

@media (min-width: 960px) {
  .wrap { padding: 0 40px; }
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
  .blk { grid-column: var(--dc); grid-row: var(--dr); }
  .sec { padding: 88px 0; }
  .g-hero { --row: 76px; }
  .menu { display: none; }
  .nav-list { display: flex; gap: 22px; justify-content: flex-end; }
  .nav-list a { font: 500 14px var(--f-label); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
  .nav-list a:hover { text-decoration: underline; text-underline-offset: 5px; }
  .hero-title { font-size: clamp(56px, 5.6vw, 96px); }
  .device-wrap { margin: 0; }
  .g-man { --row: 90px; }
  .man-copy { padding: 32px; }
  .g-work { --row: 72px; gap: 22px; }
  .wcard { padding: 18px; }
  .steps-row { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2%; }
  .step { min-height: 540px; padding: 28px 26px 24px; }
  .step-title { font-size: clamp(26px, 2.4vw, 36px); }
  .mini { min-height: 300px; }
  .wcard.wide { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; }
  .wcard.wide .wc-art { height: 100%; }
  .wcard.wide .wc-art.uncropped { height: auto; }
  .wcard.buzzies { grid-template-columns: 1.6fr 1fr; align-items: center; }
  [data-style="field"] .wcard.wide { padding: 0; }
  [data-style="field"] .wcard.wide .wc-art { border-bottom: 0; border-right: 1px solid var(--line-strong); }
  [data-style="field"] .wcard.wide .wc-body { padding: 18px; }
  .g-build { --row: 72px; }
  .face { min-height: 0; }
  .g-proc { --row: 80px; }
  .track { padding: 56px 64px; border-radius: 200px; }
  .stops { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .stop { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 8px; }
  .stop-n { grid-row: auto; }
  .g-contact { --row: 64px; }
  .cform { grid-template-columns: 1fr 1fr; align-content: start; }
  .field.full, .form-note { grid-column: 1 / -1; }
  .foot { justify-content: flex-end; }
}

/* ---------- 11. Motion (only under html.motion: no reduced-motion, or ?motion=on) ----------
   Every reveal animates TRANSFORM only, so a stalled animation still shows the content. */
.motion [data-reveal].play { animation-duration: var(--dur); animation-timing-function: var(--ease); animation-fill-mode: both; animation-delay: calc(var(--i, 0) * 90ms); }

/* hive drifts */
.motion[data-style="hive"] [data-reveal].play { animation-name: hive-drift; }
@keyframes hive-drift { from { transform: translateY(48px) rotate(-1.2deg); } to { transform: none; } }
.motion[data-style="hive"] .device { animation: hive-bob 7s ease-in-out infinite; }
@keyframes hive-bob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -10px; rotate: .6deg; } }
.motion[data-style="hive"] .man-ground { animation: hive-stars 60s linear infinite; }
@keyframes hive-stars { to { background-position: 180px 360px, -230px 230px, 300px -300px, 160px 320px, -260px 0, 120px 240px, 0 0, 0 0; } }

/* neo pops: starts pressed into its shadow and snaps out onto it */
.motion[data-style="neo"] [data-reveal].play { animation-name: neo-pop; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes neo-pop { 0% { transform: translate(6px, 6px); } 70% { transform: translate(-2px, -2px); } 100% { transform: none; } }
.motion[data-style="neo"] .chip[aria-pressed="true"] { animation: neo-nudge 2.4s steps(1) infinite; }
@keyframes neo-nudge { 0%, 88% { transform: none; } 90% { transform: translate(-2px, -2px); } 94% { transform: translate(1px, 1px); } }

/* vault fades and lifts softly (lift plus a blur that clears; never hidden) */
.motion[data-style="vault"] [data-reveal].play { animation-name: vault-lift; animation-delay: calc(var(--i, 0) * 140ms); }
@keyframes vault-lift { from { transform: translateY(26px) scale(.985); filter: blur(6px); } to { transform: none; filter: none; } }
.motion[data-style="vault"] .man-ground { animation: vault-glow 9s ease-in-out infinite alternate; }
@keyframes vault-glow { from { background-position: -120px 0, 0 0; } to { background-position: 120px 0, 0 0; } }
.motion[data-style="vault"] .man-ground { background-repeat: no-repeat; }

/* field: one orchestrated load, then still. Hairlines draw, blocks settle in order. */
.motion[data-style="field"].field-load [data-orch] { animation: field-settle 700ms var(--ease) both; animation-delay: calc(var(--o, 0) * 80ms); }
@keyframes field-settle { from { transform: translateY(14px); } to { transform: none; } }
.motion[data-style="field"].field-load .sec::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: #c9a24c; transform-origin: left; animation: field-rule 1.1s var(--ease) both; }
@keyframes field-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.motion[data-style="field"] .device-screen { position: relative; }
.motion[data-style="field"] .device-screen::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #c9a24c; animation: field-scan 6s linear infinite; }
@keyframes field-scan { from { transform: translateY(0); } to { transform: translateY(420px); } }

/* ops decodes text (JS); the REC light blinks at rest */
.motion[data-style="ops"] .rec::before { animation: ops-blink 1s steps(1) infinite; }
@keyframes ops-blink { 50% { background: transparent; } }

/* View Transition circle wipe from the tapped chip (geometry set in app.js). */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* Get Bizzzy: buzz wiggle and one bee loop that lands on the corner. */
.motion .bizzzy:is(:hover, :focus-visible) { animation: bz-wiggle 400ms linear; }
.motion .bizzzy:is(:hover, :focus-visible) .bz-bee { animation: bz-fly 1.2s cubic-bezier(.45, .05, .55, .95); }
.motion[data-style="vault"] .bizzzy:is(:hover, :focus-visible) { animation: bz-wiggle-soft 500ms ease-in-out; }
.motion[data-style="field"] .bizzzy:is(:hover, :focus-visible), .motion[data-style="ops"] .bizzzy:is(:hover, :focus-visible) { animation: none; }
.motion[data-style="field"] .bizzzy:is(:hover, :focus-visible) .zzz i { animation: bz-shiver 200ms steps(2) 2; }
.motion[data-style="field"] .bizzzy .zzz i:nth-child(2) { animation-delay: 60ms; }
.motion[data-style="field"] .bizzzy .zzz i:nth-child(3) { animation-delay: 120ms; }
@keyframes bz-wiggle { 0%, 100% { rotate: 0deg; translate: 0 0; } 20% { rotate: -3deg; translate: -1px 0; } 40% { rotate: 3deg; translate: 1px 0; } 60% { rotate: -2deg; translate: -1px 0; } 80% { rotate: 1deg; translate: 1px 0; } }
@keyframes bz-wiggle-soft { 0%, 100% { rotate: 0deg; } 35% { rotate: -1.2deg; } 70% { rotate: .8deg; } }
@keyframes bz-shiver { 0% { translate: 0 0; } 50% { translate: 1px -1px; } 100% { translate: -1px 1px; } }
@keyframes bz-fly {
  0% { left: calc(100% - 14px); top: -13px; rotate: 0deg; }
  20% { left: calc(100% + 8px); top: calc(100% - 8px); rotate: 90deg; }
  45% { left: -16px; top: calc(100% + 2px); rotate: 180deg; }
  68% { left: -18px; top: -18px; rotate: 270deg; }
  86% { left: 50%; top: -24px; rotate: 340deg; }
  100% { left: calc(100% - 14px); top: -13px; rotate: 360deg; }
}

/* lava: slow drift, panels float up gently */
.motion[data-style="lava"] [data-reveal].play { animation-name: lava-rise; animation-delay: calc(var(--i, 0) * 160ms); }
@keyframes lava-rise { from { transform: translateY(36px); } to { transform: none; } }
.motion[data-style="lava"] .device, .motion[data-style="lava"] .man-copy { animation: lava-float 8s ease-in-out infinite alternate; }
@keyframes lava-float { from { translate: 0 0; } to { translate: 0 -10px; } }
.motion.lava-css[data-style="lava"] .lava-fallback { animation: lava-css-drift 30s ease-in-out infinite alternate; }
@keyframes lava-css-drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

/* collage: pieces drop in and settle, like being pasted down */
.motion[data-style="collage"] [data-reveal].play { animation-name: collage-paste; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes collage-paste { 0% { transform: translateY(-28px) rotate(5deg) scale(1.06); } 70% { transform: translateY(2px) rotate(-.6deg) scale(.995); } 100% { transform: none; } }

/* experience loader: hex cells click in as assets load */
.motion .xp-cell.on { animation: xp-click 260ms cubic-bezier(.34, 1.56, .64, 1); }
@keyframes xp-click { from { transform: scale(.55); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html:not(.motion) { scroll-behavior: auto; }
  html:not(.motion) *, html:not(.motion) *::before, html:not(.motion) *::after { animation: none !important; transition: none !important; }
}
