/* mi!o design lab — prototype styles. Palette from the brand guide; neon is an accent only. */
:root {
  --soda: #01847e;
  --vinyl: #311f17;
  --plum: #bf3367;
  --washi: #dbd9d8;
  --neon: #d8f3b0;
  --paper: #f7f7f7;
  --cell: 144px;
  --gap: 40px;
  --radius: 32px;
  --ease: cubic-bezier(0.43, 0.05, 0.17, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --display: "Poppins", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { background: var(--washi); }
body {
  margin: 0;
  font-family: var(--display);
  color: var(--vinyl);
  background: var(--washi);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

/* ---------- Fixed grid backdrop (union-tec recruit) ---------- */
.grid-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.grid-layer {
  position: absolute; inset: 0;
  background-size: var(--cell) var(--cell);
  transition: opacity 0.7s var(--ease);
}
.grid-layer--light {
  background-color: var(--washi);
  background-image:
    linear-gradient(to right, rgb(49 31 23 / 0.13) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(49 31 23 / 0.13) 1px, transparent 1px);
}
.grid-layer--dark {
  background-color: var(--vinyl);
  background-image:
    linear-gradient(to right, rgb(219 217 216 / 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(219 217 216 / 0.12) 1px, transparent 1px);
  opacity: 0;
}
body[data-theme="dark"] .grid-layer--dark { opacity: 1; }
.mark {
  position: absolute; font: 700 14px/1 var(--mono);
  transform: translate(-50%, -50%);
  animation: flicker 4s steps(1) infinite;
}
.grid-layer--light .mark { color: var(--plum); }
.grid-layer--dark .mark { color: var(--neon); }
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: 0.15; } 52% { opacity: 1; } 71% { opacity: 0; } 74% { opacity: 1; } }

/* ---------- Washi paper grain over everything ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.19  0 0 0 0 0.12  0 0 0 0 0.09  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.16;
  mix-blend-mode: multiply;
}
.grain::after {
  /* faint long fibres, like washi */
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.004 0.09' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -0.85'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
  opacity: 0.35; mix-blend-mode: screen;
}

/* ---------- Page + folders + panels ---------- */
.page { position: relative; z-index: 1; padding: var(--gap) var(--gap) 96px; }
.folder {
  position: sticky; /* top is set per folder in JS so tall panels scroll fully before the next slides over */
  margin-top: 128px;
}
.folder:first-child { margin-top: 0; }
.tab {
  display: inline-flex; align-items: center; height: 44px;
  padding: 0 64px 0 24px; margin-left: var(--tab-x, 40px);
  font: 700 13px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase;
  clip-path: path("M0 44V12C0 5.37 5.37 0 12 0H246C250.5 0 254.6 2.5 256.7 6.5L276 44H0Z");
  width: 276px; position: relative; top: 1px;
}
.panel {
  position: relative; border-radius: var(--radius); overflow: hidden;
  padding: 168px max(96px, calc((100% - 1160px) / 2));
}
.panel.has-tab { border-top-left-radius: 0; }
.panel.tight { padding-top: 120px; padding-bottom: 120px; }

/* colour pairings from the guide */
.c-soda { background: var(--soda); color: var(--vinyl); }
.c-plum { background: var(--plum); color: var(--neon); }
.c-vinyl { background: var(--vinyl); color: var(--washi); }
.c-washi { background: var(--washi); color: var(--vinyl); }
.c-paper { background: var(--paper); color: var(--vinyl); }
.t-soda { background: var(--soda); color: var(--neon); }
.t-plum { background: var(--plum); color: var(--neon); }
.t-vinyl { background: var(--vinyl); color: var(--neon); }
.t-washi { background: var(--washi); color: var(--vinyl); }
.t-paper { background: var(--paper); color: var(--vinyl); }

/* ---------- Type ---------- */
.display { font-weight: 700; font-size: clamp(44px, 4.6vw, 66px); line-height: 1; letter-spacing: -0.02em; }
.h1 { font-weight: 700; font-size: clamp(44px, 4.6vw, 66px); line-height: 1; letter-spacing: -0.02em; }
.h2 { font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1.18; }
.h3 { font-weight: 600; font-size: 23px; line-height: 1.35; }
.body-l { font-size: 19px; line-height: 1.7; }
.body { font-size: 16px; line-height: 1.75; }
.mono { font: 700 13px/1.6 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; }
.muted { opacity: 0.75; }
.stack > * + * { margin-top: calc(var(--s, 28px) * 1.35); }
.measure { max-width: 560px; }

/* section label: line draws, then label fades in */
.label { display: inline-flex; align-items: center; gap: 12px; font: 700 16px/1.4 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; }
.label::before {
  content: ""; display: block; flex: none; height: 3px; width: 40px;
  background: currentColor; transform-origin: left; transform: scaleX(0);
  transition: transform 0.9s var(--ease);
}
.label > span { display: inline-block; opacity: 0; transition: opacity 0.6s 0.5s; }
.label.in::before { transform: scaleX(1); }
.label.in > span { opacity: 1; }

/* ---------- Buttons, pills, stickers ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font: 700 14px/1 var(--mono); letter-spacing: 0.14em; text-transform: lowercase;
  padding: 16px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: transform 0.5s var(--bounce), background 0.25s;
}
.btn:hover { transform: translateY(-3px); }
.btn-neon { background: var(--neon); color: var(--soda); }
.btn-vinyl { background: var(--vinyl); color: var(--paper); }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.sticker {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font: 700 13px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
}
.pill { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 999px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Placeholders ---------- */
.ph {
  display: grid; place-items: center; text-align: center; padding: 24px;
  background: var(--washi); color: rgb(49 31 23 / 0.6);
  font: 700 12px/1.5 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: 24px;
}
.oval { border-radius: 999px; }

/* ---------- Wave + logos ---------- */
.wave { width: 100%; height: auto; }
.logo-row { display: flex; align-items: flex-end; gap: 14px; text-decoration: none; }
.logo-row svg.mark { width: 92px; height: 21px; }
.logo-row .lab { font: 600 15px/1 var(--display); letter-spacing: 0.04em; }

/* ---------- Reveals ---------- */
.reveal .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.reveal .w > span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.reveal.in .w > span { transform: none; }
.fade { opacity: 0; transform: translateY(32px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.fade.in { opacity: 1; transform: none; }
.readalong .rw { opacity: 0.22; transition: opacity 0.35s; }
.readalong .rw.lit { opacity: 1; }

/* ---------- Pinned buttons ---------- */
.pin-top { position: fixed; top: 24px; right: 24px; z-index: 50; display: grid; gap: 8px; justify-items: stretch; }
.pin-top .pill { font: 700 14px/1 var(--mono); letter-spacing: 0.14em; justify-content: center; text-decoration: none; cursor: pointer; border: 2px solid var(--vinyl); }
.pin-contact { background: var(--vinyl); color: var(--neon); }
.pin-menu { background: var(--neon); color: var(--vinyl); }
.pin-bottom { position: fixed; right: 24px; bottom: 24px; z-index: 50; background: var(--plum); color: var(--neon); text-decoration: none; font: 700 14px/1 var(--mono); letter-spacing: 0.14em; box-shadow: 0 10px 30px rgb(49 31 23 / 0.25); }
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--vinyl); color: var(--washi);
  display: grid; align-content: center; justify-items: start; padding: 80px; gap: 12px;
  clip-path: circle(0 at calc(100% - 80px) 80px); transition: clip-path 0.7s var(--ease);
}
.menu.open { clip-path: circle(150% at calc(100% - 80px) 80px); }
.menu a { font: 700 clamp(40px, 6vw, 80px)/1.1 var(--display); text-decoration: none; }
.menu a:hover { color: var(--neon); }
.menu .close { position: absolute; top: 24px; right: 24px; width: 140px; justify-content: center; font: 700 14px/1 var(--mono); letter-spacing: 0.14em; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 40px 0; }
.marquee-track { display: flex; align-items: center; gap: 48px; white-space: nowrap; will-change: transform; }
.marquee-track .word { font-weight: 700; font-size: clamp(64px, 9vw, 128px); line-height: 1; letter-spacing: -0.02em; color: var(--neon); }
.marquee-track svg { width: 150px; height: 76px; color: var(--plum); flex: none; }

/* ---------- Components ---------- */
.row { display: flex; gap: 120px; align-items: center; }
.row > .grow { flex: 1; min-width: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; perspective: 1400px; }
.card {
  border-radius: 28px; padding: 48px; display: grid; gap: 28px; align-content: start;
  transform-style: preserve-3d; will-change: transform;
}
.card svg { width: 120px; height: 61px; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.tile { border-radius: 28px; padding: 56px 48px; display: grid; gap: 28px; align-content: start; }
.tile .ph { aspect-ratio: 4 / 3; }
.tile svg { width: 110px; height: 56px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 72px; }
.step { position: relative; padding-top: 32px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--neon); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 180ms); }
.steps.in .step::before { transform: none; }
.step .num { font: 700 56px/1 var(--display); color: var(--neon); margin-bottom: 28px; }
.chat { background: var(--paper); border-radius: 28px; padding: 40px; display: grid; gap: 20px; width: 560px; max-width: 100%; }
.bubble { max-width: 440px; border-radius: 22px; padding: 18px 24px; line-height: 1.6; opacity: 0; transform: translateY(16px) scale(0.98); transition: opacity 0.5s, transform 0.5s var(--ease); transition-delay: calc(var(--i) * 700ms); }
.chat.in .bubble { opacity: 1; transform: none; }
.bubble .who { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bubble .who img { width: 34px; height: auto; }
.b-you { justify-self: end; background: var(--vinyl); color: var(--washi); }
.b-pd { justify-self: start; background: var(--soda); color: var(--neon); }
.concept { background: var(--soda); color: var(--neon); }
.concept .ph { aspect-ratio: 5 / 3; margin-bottom: 12px; background: var(--paper); }
.pains { display: grid; gap: 20px; justify-items: start; }
.pain { background: var(--neon); color: var(--plum); font-weight: 600; font-size: 22px; padding: 14px 28px; border-radius: 999px; opacity: 0; transform: translateY(-30px) rotate(var(--r)); transition: opacity 0.5s, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); transition-delay: calc(var(--i) * 160ms); }
.pains.in .pain { opacity: 1; transform: rotate(var(--r)); }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; align-items: start; }
.price { border-radius: 28px; padding: 48px 40px; display: grid; gap: 28px; }
.price .amount { display: flex; align-items: baseline; gap: 8px; }
.price .amount b { font: 700 64px/1 var(--display); }
.price ul { margin: 0; padding: 0; list-style: none; line-height: 2; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 40px; }
.work-grid .ph { aspect-ratio: 4 / 3; background: var(--paper); }
.work-grid figure { margin: 0; display: grid; gap: 16px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 64px; }
.footer-cols h4 { margin: 0 0 14px; font: 700 13px/1.4 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--neon); }
.footer-cols p { margin: 0 0 14px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgb(219 217 216 / 0.4); }

/* union-tec "recommended pages" card: dashed outline, centred oval; on hover the card widens,
   its colour floods in from a 1.2x zoom and the oval stretches */
.rcards { display: flex; gap: 32px; perspective: 1400px; }
.rc {
  --fill: var(--vinyl); --ink: var(--neon); --line: var(--vinyl);
  position: relative; flex: 1 1 0; min-width: 0; height: 560px; overflow: hidden; isolation: isolate;
  display: grid; grid-template-rows: auto 1fr auto; gap: 24px; padding: 44px 44px 40px;
  border: 2px dashed var(--line); border-radius: 24px; color: var(--line); text-decoration: none;
  transition: flex-grow 0.6s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.rc-bg {
  position: absolute; inset: 0; z-index: -1; background: var(--fill); opacity: 0; transform: scale(1.2);
  transition: opacity 0.5s var(--ease), transform 0.8s ease-in-out;
}
.rc-bg::after { content: ""; position: absolute; inset: 0; background: rgb(49 31 23 / 0.18); }
.rc-title { font-weight: 700; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.12; }
.rc-oval {
  justify-self: center; align-self: center; width: 62%; aspect-ratio: 1.55; border-radius: 999px;
  background: var(--fill); color: var(--ink); display: grid; place-items: center; overflow: hidden;
  transition: width 0.7s var(--ease), aspect-ratio 0.7s var(--ease), border-radius 0.7s var(--ease);
}
.rc-oval svg { width: 58%; height: auto; transition: transform 0.8s var(--ease); }
.rc-oval img { width: 62%; height: auto; transform: translateY(8%); transition: transform 0.8s var(--ease); }
.rc-desc { font-size: 16px; line-height: 1.7; margin-bottom: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s var(--ease), opacity 0.4s, margin 0.6s var(--ease); }
.rc-foot { display: flex; align-items: center; font: 700 13px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: lowercase; }
.rc-foot i { flex: 0 0 14px; transition: flex-grow 0.6s var(--ease); }
.rc:hover, .rc:focus-visible { flex-grow: 1.45; color: var(--ink); border-color: transparent; }
.rc:hover .rc-bg, .rc:focus-visible .rc-bg { opacity: 1; transform: scale(1); }
.rc:hover .rc-oval, .rc:focus-visible .rc-oval { width: 84%; aspect-ratio: 2.3; }
.rc:hover .rc-oval svg, .rc:hover .rc-oval img { transform: scale(1.08); }
.rc:hover .rc-oval img { transform: translateY(14%) scale(1.15); }
.rc:hover .rc-desc, .rc:focus-visible .rc-desc { max-height: 140px; opacity: 1; margin-bottom: 20px; }
.rc:hover .rc-foot i { flex-grow: 1; }

.rc-big { font: 700 clamp(72px, 7vw, 120px)/1 var(--display); transition: transform 0.8s var(--ease); }
.rc:hover .rc-big { transform: scale(1.15) rotate(-8deg); }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 36px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 18px; height: 9px; border-left: 3px solid var(--plum); border-bottom: 3px solid var(--plum); transform: rotate(-45deg); }
.hero-cat { position: absolute; right: 120px; bottom: -96px; width: 260px; pointer-events: none; }
.price .btn { justify-self: start; }

.submark { display: inline-block; justify-self: start; color: var(--vinyl); line-height: 0; }
.submark svg { width: 76px; height: 39px; transition: transform 0.5s var(--ease); }
.submark:hover svg { transform: rotate(-6deg) scale(1.06); }
.rc-oval svg.icon { width: 34%; }
.tile .tile-icon { width: 64px; height: 64px; }
.marquee-track svg.spark { width: 64px; height: 64px; color: var(--neon); }

/* eyebrow sits 30px above its headline (Figma) */
.stack > .label + * { margin-top: 30px; }

/* subtle drop with a little bounce, for cards and pills */
.drop { opacity: 0; transform: translateY(-26px); transition: opacity 0.45s ease, transform 0.9s var(--bounce); transition-delay: calc(var(--i, 0) * 110ms); }
.drop.in { opacity: 1; transform: none; }

/* ---------- Global top bar: submark · links · book pill ---------- */
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.topbar .submark svg { width: 97px; height: 49px; }
.topnav { display: flex; gap: 36px; font: 700 14px/1 var(--mono); letter-spacing: 0.14em; }
.topnav a { text-decoration: none; transition: opacity 0.2s; }
.topnav a:hover { opacity: 0.6; }
.topbar .pill { justify-self: end; }
.pill.pill-vinyl, .pill.pill-neon { font: 700 14px/1 var(--mono); letter-spacing: 0.14em; text-decoration: none; border: 0; cursor: pointer; transition: transform 0.5s var(--bounce); }
.pill-vinyl { background: var(--vinyl); color: var(--neon); }
.pill-neon { background: var(--neon); color: var(--vinyl); }
.pill-vinyl:hover, .pill-neon:hover { transform: translateY(-3px); }
.dot { width: 6px; height: 6px; }

/* ---------- Floating contact / menu: drop in once the hero is scrolled past ---------- */
.floaters { position: fixed; top: 24px; right: 24px; z-index: 50; display: grid; gap: 8px; width: 140px; }
.floaters .pill { justify-content: center; opacity: 0; transform: translateY(-36px); pointer-events: none; transition: opacity 0.3s, transform 0.4s var(--ease); }
.past-hero .floaters .pill { opacity: 1; transform: none; pointer-events: auto; transition: opacity 0.35s, transform 0.85s var(--bounce); }
.past-hero .floaters .pill + .pill { transition-delay: 0.08s; }

/* ---------- Home hero: pinned; scrolling swipes the squiggle right → left ---------- */
.swap { position: relative; height: 240svh; }
.swap-stage {
  --sw: min(calc((100vw - 2 * var(--gap)) * 0.704), calc((100svh - 2 * var(--gap)) * 1.07));
  position: sticky; top: var(--gap); height: calc(100svh - 2 * var(--gap)); padding: 0; overflow: visible;
}
.swap .topbar { position: absolute; z-index: 4; left: 7.5%; right: 7.5%; top: clamp(28px, 7%, 70px); }
.swap .topnav { color: var(--plum); }
.swap-lockup { position: absolute; z-index: 1; left: 7.5%; top: 33%; width: clamp(240px, 37%, 543px); height: auto; color: var(--vinyl); }
.swap-a, .swap-b { position: absolute; z-index: 2; bottom: 5.5%; }
.swap-a { left: 7.5%; width: min(500px, 42%); }
.swap-b { left: 64%; width: min(470px, 31%); }
.swap-a > * + *, .swap-b > * + * { margin-top: 24px; }
.swap-a > .label + *, .swap-b > .label + * { margin-top: 30px; }
.swap-a > .btns, .swap-b > .btns { margin-top: 40px; }
.swap-a > *, .swap-b > * { transition: opacity 0.4s, transform 0.6s var(--ease); }
.swap.is-swapped .swap-a > * { opacity: 0; transform: translateX(-40px); }
.swap:not(.is-swapped) .swap-b > * { opacity: 0; transform: translateX(40px); }
.swap.is-swapped .swap-b > * { transition-delay: 0.5s; }
.swap.is-swapped .swap-b > :nth-child(3) { transition-delay: 0.6s; }
.swap.is-swapped .swap-b > :nth-child(4) { transition-delay: 0.7s; }
.swap:not(.is-swapped) .swap-b .reveal .w > span { transform: translateY(105%); }
.swap.is-swapped .swap-b .reveal .w > span { transition-delay: calc(0.5s + var(--i) * 40ms); }
.swap-squiggle {
  position: absolute; z-index: 3; bottom: 0; left: calc(100% - var(--sw) * 0.789); width: var(--sw); height: auto;
  color: var(--plum); pointer-events: none;
  transition: left 1.15s cubic-bezier(0.76, 0, 0.18, 1), color 0.9s var(--ease);
}
.swap.is-swapped .swap-squiggle { left: calc(var(--sw) * -0.193); color: var(--soda); }

/* ---------- pocket hero (Figma 19:421) ---------- */
.pd-hero { min-height: calc(100svh - 2 * var(--gap)); padding: clamp(28px, 4vh, 44px) 56px 96px; display: grid; grid-template-rows: auto 1fr; gap: 48px; }
.pd-hero .topnav { color: var(--neon); }
.pd-hero-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: center; gap: 64px; }
.pd-hero .copy { position: relative; z-index: 2; max-width: 560px; }
.pd-hero .copy > * + * { margin-top: 32px; }
.pd-hero .wordmark { width: min(481px, 100%); height: auto; color: var(--vinyl); }
.pd-hero h1 { font-weight: 700; font-size: clamp(30px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -0.01em; color: var(--vinyl); }
.pd-hero .sticker { rotate: -4deg; }
.pd-photo { position: relative; z-index: 2; width: 360px; aspect-ratio: 360 / 500; border-radius: 999px; background: var(--washi); display: grid; place-items: center; overflow: hidden; }
.pd-photo img { width: 72%; height: auto; }
.pd-squiggle { position: absolute; z-index: 1; right: -36%; bottom: -220px; width: 980px; max-width: none; color: var(--vinyl); pointer-events: none; }

/* ---------- FAQ: click a question to open it ---------- */
:root { interpolate-size: allow-keywords; }
.faq-row { border-top: 2px solid currentColor; }
.faq-row:last-child { border-bottom: 2px solid currentColor; }
.faq-row summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 30px 0; }
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row p { max-width: 760px; padding-bottom: 32px; }
.faq-row::details-content { block-size: 0; overflow: hidden; transition: block-size 0.5s var(--ease), content-visibility 0.5s allow-discrete; }
.faq-row[open]::details-content { block-size: auto; }
.faq-x { position: relative; flex: none; width: 44px; height: 44px; border-radius: 999px; background: var(--neon); transition: transform 0.6s var(--bounce); }
.faq-x::before, .faq-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2.5px; margin: -1.25px 0 0 -8px; border-radius: 2px; background: var(--soda); }
.faq-x::after { transform: rotate(90deg); transition: transform 0.4s var(--ease); }
.faq-row[open] .faq-x { transform: rotate(180deg); }
.faq-row[open] .faq-x::after { transform: rotate(0deg); }
.faq-row summary:hover .faq-x { transform: scale(1.08); }

/* ---------- Selected work: acrylic figurine display boxes ---------- */
@property --hover { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
.vitrines { display: flex; justify-content: space-between; gap: 40px; padding: 48px 4% 140px; perspective: 1800px; }
.vitrine { --w: 270px; --h: 330px; --d: 270px; position: relative; width: var(--w); translate: 0 var(--lift, 0); outline: none; cursor: pointer; }
.vbox {
  position: relative; width: var(--w); height: var(--h); margin: 0 auto; transform-style: preserve-3d;
  transform: rotateX(-9deg) rotateY(calc(var(--ry, -26deg) + var(--hover))) rotateZ(var(--tilt, 0deg));
  transition: --hover 1.1s var(--bounce);
}
.vitrine:hover .vbox, .vitrine:focus-visible .vbox, .vitrine.open .vbox { --hover: -64deg; }
.vitrine::after { content: ""; position: absolute; left: 6%; right: 6%; top: calc(var(--h) + 10px); height: 34px; border-radius: 50%; background: rgb(49 31 23 / 0.22); filter: blur(14px); z-index: -1; }
.vf { position: absolute; left: 50%; top: 50%; backface-visibility: visible; }
.vf-front, .vf-back { width: var(--w); height: var(--h); }
.vf-left, .vf-right { width: var(--d); height: var(--h); }
.vf-top, .vf-bottom { width: var(--w); height: var(--d); }
.vf-front { transform: translate(-50%, -50%) translateZ(calc(var(--d) / 2)); }
.vf-back { transform: translate(-50%, -50%) rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.vf-right { transform: translate(-50%, -50%) rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.vf-left { transform: translate(-50%, -50%) rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.vf-top { transform: translate(-50%, -50%) rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.vf-bottom { transform: translate(-50%, -50%) rotateX(-90deg) translateZ(calc(var(--h) / 2)); }
/* clear acrylic: bright edges, a faint sheen, thicker lid */
.vf-front, .vf-back, .vf-left, .vf-right {
  border: 2px solid rgb(255 255 255 / 0.95); border-radius: 4px;
  background: linear-gradient(155deg, rgb(255 255 255 / 0.42), rgb(255 255 255 / 0.06) 42%, rgb(255 255 255 / 0.16) 70%, rgb(255 255 255 / 0.32));
  box-shadow: inset 0 0 0 5px rgb(255 255 255 / 0.16), inset 0 0 26px rgb(255 255 255 / 0.3);
}
.vf-back { background: rgb(255 255 255 / 0.2); }
.vf-top { border: 7px solid rgb(255 255 255 / 0.9); background: rgb(255 255 255 / 0.35); border-radius: 4px; }
.vf-bottom { background: var(--paper); box-shadow: inset 0 0 0 7px rgb(255 255 255 / 0.9), inset 0 0 40px rgb(49 31 23 / 0.08); }
/* the collectible card behind the figure */
.v-card {
  position: absolute; left: 50%; top: 9%; width: 64%; height: 64%; border-radius: 10px; background: var(--card); color: var(--paper);
  display: grid; place-items: center; align-content: center; gap: 14px; padding: 18px; text-align: center;
  transform: translateX(-50%) translateZ(calc(var(--d) / -2 + 26px));
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.18);
}
.v-card img { width: 46%; height: auto; opacity: 0.9; }
.v-card span { font: 700 11px/1.3 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.8; }
.v-card .v-card-name { font: 700 26px/1 var(--display); letter-spacing: -0.01em; text-transform: none; opacity: 0.35; display: grid; gap: 6px; }
.v-card .v-card-name small { font: 700 11px/1 var(--mono); letter-spacing: 0.3em; text-transform: uppercase; }
/* the figure stands on the base */
.v-fig { position: absolute; left: 50%; bottom: 2px; width: 70%; height: auto; transform: translateX(-50%) translateZ(18px); filter: drop-shadow(0 12px 10px rgb(49 31 23 / 0.25)); }
.v-fig-logo { width: 52%; bottom: 40%; filter: drop-shadow(0 8px 10px rgb(0 0 0 / 0.35)); }
.v-fig-empty { width: 30%; bottom: 36%; color: var(--neon); filter: drop-shadow(0 6px 8px rgb(49 31 23 / 0.2)); animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }
/* client details on the right-hand side panel */
.v-info { display: grid; align-content: end; gap: 12px; padding: 28px; color: var(--paper); }
.v-info { background: transparent; transition: background 0.5s var(--ease); }
.v-info > * { opacity: 0; transform: translateY(10px); transition: opacity 0.35s, transform 0.6s var(--bounce); }
.v-info h3 { font: 700 30px/1.05 var(--display); letter-spacing: -0.01em; }
.v-info p { font-size: 16px; line-height: 1.5; color: var(--neon); }
.v-info .btn { justify-self: start; margin-top: 8px; }
.vitrine:hover .v-info, .vitrine:focus-visible .v-info, .vitrine.open .v-info { background: var(--info); }
.vitrine:hover .v-info > *, .vitrine:focus-visible .v-info > *, .vitrine.open .v-info > * { opacity: 1; transform: none; transition-delay: 0.35s; }
.v-caption { margin-top: 64px; text-align: center; color: var(--vinyl); opacity: 0.7; }

/* ---------- Contact: the M submark as a window, zooming in on scroll ---------- */
.mzoom { height: 260svh; padding: 0; overflow: visible; }
.mzoom-stage { position: sticky; top: 24px; height: calc(100svh - 48px); overflow: hidden; border-radius: var(--radius); display: grid; place-items: center; }
.mzoom-window {
  position: absolute; inset: 0;
  -webkit-mask: url("/assets/submark.svg") center / var(--mw, 62%) auto no-repeat;
          mask: url("/assets/submark.svg") center / var(--mw, 62%) auto no-repeat;
}
.mzoom-fill {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 30% 30%, rgb(255 255 255 / 0.18), transparent 70%),
    radial-gradient(50% 60% at 80% 80%, rgb(1 132 126 / 0.55), transparent 70%),
    var(--plum);
  transform: scale(var(--fz, 1.15));
}
.mzoom-copy { position: relative; z-index: 2; display: grid; justify-items: center; gap: 16px; text-align: center; color: var(--paper); }
.mzoom-copy h2 { margin-bottom: 18px; }
.mpill {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; min-width: min(560px, 80vw);
  padding: 22px 44px; border-radius: 999px; background: var(--vinyl); color: var(--paper); border: 2px solid rgb(247 247 247 / 0.7);
  font: 700 clamp(26px, 3vw, 44px)/1 var(--display); text-decoration: none; transition: transform 0.6s var(--bounce), background 0.3s;
}
.mpill .dot { background: var(--neon); width: 10px; height: 10px; }
.mpill:hover { transform: scale(1.04); background: #000; }

/* hero helpers */
.hero { min-height: calc(100svh - 2 * var(--gap)); padding: 44px 64px 96px; display: grid; grid-template-rows: auto 1fr; }
.hero-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.hero-top nav { display: flex; gap: 44px; font: 700 14px/1 var(--mono); letter-spacing: 0.12em; }
.hero-top nav a { text-decoration: none; }
.hero-body { position: relative; display: grid; align-content: center; }
.hero .bigwave { position: absolute; right: -180px; bottom: -160px; width: 980px; pointer-events: none; will-change: transform; }
.hero .copy { position: relative; z-index: 2; max-width: 820px; }
.float-sticker { position: absolute; z-index: 3; }

@media (max-width: 900px) {
  :root { --gap: 16px; }
  .panel { padding: 96px 24px; }
  .hero { padding: 24px; }
  .hero-top { grid-template-columns: 1fr auto; }
  .hero-top nav { display: none; }
  .row { flex-direction: column; align-items: stretch; gap: 40px; }
  .cards, .two-up, .steps, .prices, .work-grid, .footer-cols { grid-template-columns: 1fr; }
  .faq-row { grid-template-columns: 1fr; gap: 12px; }
  .rcards { flex-direction: column; }
  .rc { height: auto; min-height: 400px; }
  .rc-oval { width: min(62%, 260px); }
  .rc-desc { max-height: none; opacity: 1; }
  .tab { --tab-x: 16px !important; }
  .hero .bigwave { width: 520px; right: -140px; bottom: -80px; }
  .pin-top { top: 12px; right: 12px; }
  .pin-bottom { right: 12px; bottom: 12px; }
  .floaters { top: 12px; right: 12px; width: auto; }
  .floaters .pill, .topbar .pill { font-size: 12px; padding: 10px 16px; gap: 8px; }
  .topbar .pill { white-space: nowrap; }
  .topnav { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .topbar .submark svg { width: 72px; height: 36px; }
  .swap-stage { --sw: 118vw; }
  .swap .topbar { left: 24px; right: 24px; top: 24px; }
  .swap-lockup { left: 24px; top: 17%; width: 72%; }
  .swap-a, .swap-b { left: 24px; right: 24px; width: auto; top: 28%; bottom: auto; }
  .pd-hero { padding: 24px 24px 72px; }
  .vitrines { flex-direction: column; align-items: center; gap: 72px; padding: 32px 0 60px; }
  .vitrine { --w: 190px; --h: 240px; --d: 190px; translate: none; }
  .v-caption { margin-top: 48px; }
  .mpill { min-width: 0; width: 82vw; padding: 18px 28px; }
  .faq-x { width: 36px; height: 36px; }
  .pd-hero-body { grid-template-columns: 1fr; }
  .pd-photo { width: 220px; justify-self: center; }
  .pd-squiggle { width: 640px; right: -60%; bottom: -160px; }
  .hero-cat { width: 170px; right: 0; bottom: -24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal .w > span, .fade, .drop, .bubble, .pain { transform: none !important; opacity: 1 !important; }
  .label::before { transform: none; } .label > span { opacity: 1; }
}
