/* MG Local Web Lab: page shell. Same tokens, type and chamfer motif as the main site. */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0E0E0C;
  --bg-2: #141412;
  --bg-3: #1B1B18;
  --bg-4: #23231F;
  --text: #F3F2EE;
  --muted: #A9A8A1;
  --dim: #85847D;
  --line: rgba(243, 242, 238, 0.1);
  --line-2: rgba(243, 242, 238, 0.18);
  --lime: #C6F135;
  --lime-soft: rgba(198, 241, 53, 0.14);
  --ink: #0E0E0C;
  --paper: #F3F2EE;
  --paper-2: #E7E6E0;
  --paper-text: #3A3A35;
  --paper-line: rgba(14, 14, 12, 0.12);
  --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1440px;
  --gutter: clamp(20px, 4.2vw, 64px);
  --hdr: 72px;
  --section: clamp(96px, 12vw, 176px);
  --ease: cubic-bezier(0.2, 0.75, 0.15, 1);
  --ease-in-out: cubic-bezier(0.7, 0, 0.2, 1);
  --fs-hero: clamp(3.4rem, 1.2rem + 9vw, 10.5rem);
  --fs-h2: clamp(2.25rem, 1rem + 4.3vw, 5.25rem);
  --fs-h3: clamp(1.45rem, 1rem + 1.4vw, 2.35rem);
}

/* The page is dark by design. Declaring it keeps browsers (Chrome auto-dark, Samsung Internet)
   from re-colouring it; the media query is what Samsung Internet looks for. */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; }
}
@media (prefers-color-scheme: light) {
  :root { color-scheme: dark; }
}

*, *::before, *::after { box-sizing: border-box; }

.ch, .chb, .chb::before, .tag, .btn, .btn-ghost::before, .lang, .lang button {
  --chamfer: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  --chamfer-in: polygon(calc(var(--c) - 0.42px) 0, calc(100% - var(--c) + 0.42px) 0, 100% calc(var(--c) - 0.42px), 100% calc(100% - var(--c) + 0.42px), calc(100% - var(--c) + 0.42px) 100%, calc(var(--c) - 0.42px) 100%, 0 calc(100% - var(--c) + 0.42px), 0 calc(var(--c) - 0.42px));
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--hdr);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
p { margin: 0; }
::selection { background: var(--lime); color: var(--ink); }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text);
}

/* Only the language in <html data-lang> is visible */
html[data-lang="en"] .l-sl,
html:not([data-lang="en"]) .l-en { display: none !important; }

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 12px 16px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Chamfer motif ---------- */

.ch { --c: 10px; clip-path: var(--chamfer); }

.chb {
  --c: 18px;
  --bd: var(--line-2);
  --fill: var(--bg-2);
  position: relative;
  isolation: isolate;
  background: var(--bd);
  clip-path: var(--chamfer);
}

.chb::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--fill);
  clip-path: var(--chamfer-in);
}

/* ---------- Labels ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--lime);
  clip-path: polygon(3px 0, 7px 0, 10px 3px, 10px 7px, 7px 10px, 3px 10px, 0 7px, 0 3px);
}

.eyebrow b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }

.tag {
  --c: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--bg-3);
  clip-path: var(--chamfer);
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.tag-lime { background: var(--lime); color: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  --c: 10px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  background: var(--lime);
  color: var(--ink);
  clip-path: var(--chamfer);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.35s var(--ease);
}

.btn:hover { background: #D6FF4D; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: -6px; }

.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.45s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-ghost {
  --bd: rgba(243, 242, 238, 0.32);
  --fill: var(--bg);
  isolation: isolate;
  background: var(--bd);
  color: var(--text);
}
.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--fill);
  clip-path: var(--chamfer-in);
  transition: background-color 0.35s var(--ease);
}
.btn-ghost:hover { background: var(--lime); }
.btn-ghost:hover::before { background: var(--bg-3); }
.btn-ghost:focus-visible { outline-color: var(--lime); }

.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; --c: 8px; }

/* ---------- Header ---------- */

.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: transform 0.5s var(--ease), background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.hdr.is-solid {
  background: rgba(14, 14, 12, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.hdr.is-hidden { transform: translateY(-100%); }

.hdr-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--hdr);
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 194px; height: 28px; }
.brand-lab {
  padding: 3px 7px 2px;
  border: 1px solid rgba(198, 241, 53, 0.55);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--lime);
}

.nav {
  display: flex;
  gap: clamp(18px, 2vw, 32px);
  margin-left: auto;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.3s;
}

.nav .n { font-family: var(--display); font-size: 11.5px; letter-spacing: 0.08em; color: var(--dim); transition: color 0.3s; }

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover .n, .nav a.is-active .n { color: var(--lime); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.lang {
  --c: 6px;
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 2px;
  padding: 3px;
  background: rgba(243, 242, 238, 0.07);
  clip-path: var(--chamfer);
}

.lang button {
  --c: 5px;
  min-width: 38px;
  height: 36px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  clip-path: var(--chamfer);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--lime); color: var(--ink); }

.hdr-cta { flex: none; }

.menu-btn {
  display: none;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 2px 0 12px;
  border: 0;
  background: none;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.menu-btn .b-close { display: none; }
.menu-btn[aria-expanded="true"] .b-open { display: none; }
.menu-btn[aria-expanded="true"] .b-close { display: inline; }

.menu-btn .bars { position: relative; width: 24px; height: 12px; }
.menu-btn .bars::before,
.menu-btn .bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: 10px; }
.menu-btn[aria-expanded="true"] .bars::before { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 5px; transform: rotate(-45deg); }

.mmenu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: calc(var(--hdr) + 28px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--bg);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s linear 0.7s;
  overflow-y: auto;
}

.mmenu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.7s var(--ease-in-out);
}

.mmenu-links { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }

.mmenu-links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(26px, 7.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}

.mmenu-links b { font-weight: 600; }
.mmenu-links a span { font-size: 13px; font-weight: 500; letter-spacing: 0.1em; color: var(--lime); }

.mmenu.is-open .mmenu-links a { opacity: 1; transform: none; }
.mmenu.is-open .mmenu-links li:nth-child(2) a { transition-delay: 50ms; }
.mmenu.is-open .mmenu-links li:nth-child(3) a { transition-delay: 100ms; }
.mmenu.is-open .mmenu-links li:nth-child(4) a { transition-delay: 150ms; }
.mmenu.is-open .mmenu-links li:nth-child(5) a { transition-delay: 200ms; }

.mmenu-foot { display: grid; gap: 18px; margin-top: auto; padding-top: 36px; }
.mmenu-foot .lang, .mmenu-foot .btn { justify-self: start; }
.mmenu-foot p { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 15px; }
.mmenu-foot a:hover { color: var(--lime); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--hdr) + clamp(36px, 7vh, 88px)) 0 clamp(28px, 5vh, 56px);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 88% 92%, #1C2408 0%, rgba(14, 14, 12, 0) 70%),
    var(--bg);
}

.hero-bg i {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  animation: drift var(--dur, 16s) ease-in-out infinite alternate;
}

.hero-bg .b1 {
  width: 90vmax;
  height: 90vmax;
  right: -38vmax;
  bottom: -52vmax;
  background: radial-gradient(closest-side, rgba(198, 241, 53, 0.42), rgba(198, 241, 53, 0.13) 42%, rgba(198, 241, 53, 0) 72%);
  --dur: 14s;
}

.hero-bg .b2 {
  width: 70vmax;
  height: 70vmax;
  left: -30vmax;
  top: -42vmax;
  background: radial-gradient(closest-side, rgba(110, 140, 25, 0.3), rgba(110, 140, 25, 0) 70%);
  --dur: 19s;
  animation-direction: alternate-reverse;
}

.hero-bg .b3 {
  width: 40vmax;
  height: 40vmax;
  right: 8vmax;
  top: 2vmax;
  background: radial-gradient(closest-side, rgba(43, 89, 195, 0.22), rgba(43, 89, 195, 0) 70%);
  --dur: 11s;
}

.hero-bg .b4 {
  width: 34vmax;
  height: 34vmax;
  right: 30vmax;
  bottom: -6vmax;
  background: radial-gradient(closest-side, rgba(201, 154, 98, 0.18), rgba(201, 154, 98, 0) 70%);
  --dur: 17s;
  animation-direction: alternate-reverse;
}

.hero.is-off .hero-bg i { animation-play-state: paused; }

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-7vmax, -5vmax, 0) scale(1.08); }
  100% { transform: translate3d(5vmax, -9vmax, 0) scale(0.94); }
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14, 14, 12, 0.7) 0%, rgba(14, 14, 12, 0.35) 42%, rgba(14, 14, 12, 0) 72%),
    linear-gradient(0deg, var(--bg) 0%, rgba(14, 14, 12, 0) 22%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(243, 242, 238, 0.045) 1px, transparent 1px);
  background-size: calc((100% - var(--gutter) * 2) / 6) 100%;
  background-position: var(--gutter) 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.2) 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.2) 100%);
}

.grain {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(32px, 5vw, 96px);
  flex: 1;
}

.hero .eyebrow { grid-column: 1 / -1; }

.hero-title {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  margin-top: clamp(24px, 4vh, 44px);
  font-size: var(--fs-hero);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.hero-title .ln { display: block; }
.hero-title .ln-3 { color: var(--lime); }

.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.w > span { display: inline-block; }

.hero-title .w > span {
  transform: translateY(108%);
  animation: word-up 1.05s var(--ease) forwards;
  animation-delay: calc(0.12s + var(--i) * 90ms);
}

@keyframes word-up { to { transform: none; } }

.hero-foot {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  display: grid;
  gap: 28px;
  margin-top: clamp(32px, 6vh, 64px);
}

.hero-lede {
  max-width: 52ch;
  font-size: clamp(17px, 1.05rem + 0.25vw, 20px);
  line-height: 1.55;
  color: #D3D2CB;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 1s var(--ease) forwards;
  animation-delay: calc(0.5s + var(--d, 0s));
}

@keyframes fade-up { to { opacity: 1; transform: none; } }

/* Experiment index card */

.index {
  --c: 16px;
  --fill: rgba(20, 20, 18, 0.9);
  grid-column: 2;
  grid-row: 2 / 4;
  align-self: end;
  width: 100%;
  padding: 20px 20px 8px;
}

.index-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.index-head b { font-weight: 500; color: var(--text); }

.index ol { margin: 0; padding: 0; list-style: none; }

.index li { border-bottom: 1px solid var(--line); }
.index li:last-child { border-bottom: 0; }

.index a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 34px;
  gap: 0 12px;
  align-items: center;
  padding: 14px 0;
  transition: padding 0.45s var(--ease);
}

.index-n { font-family: var(--display); font-size: 13px; color: var(--lime); font-variant-numeric: tabular-nums; }
.index-t { display: grid; gap: 2px; min-width: 0; }
.index-t strong { font-family: var(--display); font-size: 16px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.index-t > span { font-size: 13.5px; color: var(--muted); line-height: 1.35; }

.index-sw {
  --c: 7px;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--a), var(--b));
  clip-path: polygon(7px 0, 27px 0, 34px 7px, 34px 27px, 27px 34px, 7px 34px, 0 27px, 0 7px);
  transition: transform 0.6s var(--ease);
}

.index a:hover { padding-left: 8px; }
.index a:hover .index-sw { transform: rotate(90deg) scale(1.08); }
.index a:hover strong { color: var(--lime); }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3vh, 32px);
  display: grid;
  justify-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--lime), var(--lime)) 0 0 / 100% 40% no-repeat, var(--line-2);
  animation: scroll-line 2.2s var(--ease-in-out) infinite;
}

@keyframes scroll-line {
  0% { background-position: 0 -40%; }
  100% { background-position: 0 160%; }
}

/* ---------- Sections ---------- */

.sec { position: relative; padding: var(--section) 0; }

.exp { position: relative; }

.exp-head {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  align-items: end;
  gap: 24px clamp(32px, 6vw, 112px);
  padding-top: var(--section);
  padding-bottom: clamp(40px, 5vw, 72px);
}

.exp-head .eyebrow { grid-column: 1 / -1; }
.exp-head .eyebrow b { margin-right: 4px; }
.exp-head h2 { font-size: var(--fs-h2); }
.exp-head > p { max-width: 40ch; color: var(--muted); font-size: 17px; }

.exp-stage { position: relative; }

/* Caption: what's possible / fits / CTA */

.cap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 28px clamp(28px, 4vw, 72px);
  align-items: start;
  margin-top: clamp(36px, 4vw, 56px);
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.cap-k {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

.cap-v { max-width: 52ch; color: #D3D2CB; font-size: 16.5px; line-height: 1.55; }
.cap-cta { align-self: center; }

/* Closing CTA */

.lab-end { padding: var(--section) 0 clamp(64px, 8vw, 120px); }

.end {
  --c: 28px;
  --fill: var(--lime);
  --bd: var(--lime);
  display: grid;
  gap: 28px;
  padding: clamp(32px, 5vw, 80px);
  color: var(--ink);
}

.end .eyebrow { color: rgba(14, 14, 12, 0.7); }
.end .eyebrow::before { background: var(--ink); }
.end .eyebrow b { color: var(--ink); margin-right: 4px; }
.end h2 { color: var(--ink); font-size: clamp(2.2rem, 1.1rem + 3.6vw, 5rem); letter-spacing: -0.05em; max-width: 18ch; }
.end p { max-width: 56ch; color: rgba(14, 14, 12, 0.78); font-size: 18px; }
.end .btn { background: var(--ink); color: var(--text); justify-self: start; }
.end .btn:hover { background: #24241F; }
.end .btn:focus-visible { outline-color: var(--lime); }

.lab-fine { margin-top: 28px; max-width: 80ch; font-size: 14px; color: var(--dim); }

/* ---------- Footer ---------- */

.foot {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 48px;
  align-items: end;
}

.foot-sign { width: min(100%, 480px); }
.foot-sign img { width: 100%; }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.foot-cols h2 {
  margin-bottom: 16px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.foot-cols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot-cols li { color: var(--muted); }
.foot-cols a { color: var(--muted); transition: color 0.3s; overflow-wrap: anywhere; }
.foot-cols a:hover { color: var(--lime); }

.foot-claim {
  margin-top: clamp(48px, 6vw, 80px);
  font-family: var(--display);
  font-size: clamp(1.6rem, 1rem + 2.2vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 22ch;
}

.foot-claim em { font-style: normal; color: var(--lime); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--dim);
}

.foot-bottom img { width: 180px; height: 26px; }
.foot-bottom a:hover { color: var(--lime); }

/* ---------- Cursor (fine pointers only, added by JS) ---------- */

.cursor, .cursor-dot { display: none; }

.has-cursor .cursor,
.has-cursor .cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.has-cursor .cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--lime);
}

.has-cursor .cursor {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid rgba(198, 241, 53, 0.6);
  border-radius: 50%;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background-color 0.4s var(--ease), border-color 0.4s, opacity 0.3s;
}

.cursor-label {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.has-cursor .cursor.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(198, 241, 53, 0.12); }
.has-cursor .cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--lime); border-color: var(--lime); }
.has-cursor .cursor.is-label .cursor-label { opacity: 1; }
.has-cursor .cursor.is-hidden, .has-cursor .cursor-dot.is-hidden { opacity: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1240px) {
  .nav, .hdr-cta, .hero-scroll { display: none; }
  .hdr-in > .lang { margin-left: auto; }
  .menu-btn { display: inline-flex; }
}

@media (max-width: 1023px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; }
  .hero-title { grid-row: auto; }
  .hero-foot { grid-row: auto; }
  .index { grid-column: 1; grid-row: auto; margin-top: 40px; max-width: 520px; }
  .exp-head { grid-template-columns: minmax(0, 1fr); }
  .cap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cap-cta { grid-column: 1 / -1; justify-self: start; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  :root { --hdr: 64px; }
  body { font-size: 16px; }
  .brand img { width: 150px; height: 22px; }
  .brand { gap: 8px; }
  .brand-lab { font-size: 11px; padding: 2px 6px 1px; }
  .hdr-in { gap: 12px; }
  .lang button { min-width: 36px; height: 34px; }
  .menu-btn { padding-left: 4px; }
  .menu-btn .menu-label { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cap { grid-template-columns: minmax(0, 1fr); }
  .cap-cta { width: 100%; }
  .end .btn { width: 100%; }
  .foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 24px; }
  .foot-cols > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 374px) {
  .brand img { width: 136px; height: 20px; }
  .brand-lab { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg i, .hero-scroll::after { animation: none; }
  .hero-title .w > span, .fade-up { animation: none; transform: none; opacity: 1; }
  .mmenu, .mmenu-links a { transition: none; }
}

/* =========================================================
   Experiment 01 · Paint shop: mix on scroll
   ========================================================= */

.paint-scroll { position: relative; height: 380vh; }

.paint-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #0B0B0A;
}

.paint-pour, .paint-room { position: absolute; inset: 0; }

.paint-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.exp-paint.gl-on .paint-gl { opacity: 1; }
.exp-paint.gl-on .paint-poster { opacity: 0; }

/* Static picture used before WebGL starts, or when it is not available */
.paint-poster {
  position: absolute;
  inset: 0;
  transition: opacity 0.8s ease;
  background:
    radial-gradient(60% 40% at 64% 18%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 70%),
    #0B0B0A;
}

.paint-poster i {
  position: absolute;
  top: -5%;
  bottom: 30%;
  width: 70px;
  border-radius: 0 0 40px 40px;
  box-shadow: inset 10px 0 18px rgba(255, 255, 255, 0.35), inset -8px 0 14px rgba(0, 0, 0, 0.25);
}

.paint-poster i:nth-child(1) { left: calc(64% - 210px); background: #2650C8; }
.paint-poster i:nth-child(2) { left: calc(64% - 35px); background: #F2EFE8; }
.paint-poster i:nth-child(3) { left: calc(64% + 140px); background: #F3B70A; }

.paint-poster b {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -8%;
  height: 42%;
  border-radius: 50% 50% 0 0 / 18% 18% 0 0;
  background:
    radial-gradient(30% 50% at 38% 30%, rgba(38, 80, 200, 0.95), rgba(38, 80, 200, 0) 70%),
    radial-gradient(30% 50% at 70% 34%, rgba(243, 183, 10, 0.95), rgba(243, 183, 10, 0) 70%),
    radial-gradient(25% 40% at 55% 22%, rgba(242, 239, 232, 0.95), rgba(242, 239, 232, 0) 70%),
    #9CAF88;
  box-shadow: inset 0 18px 30px rgba(255, 255, 255, 0.28);
}

/* Recipe overlay on the pour */
.paint-hud {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  padding-top: calc(var(--hdr) + 12vh);
  pointer-events: none;
}

.paint-hud-in { display: grid; gap: 22px; justify-items: start; }
.paint-hud-in > * { max-width: 380px; }

.paint-brand {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.paint-brand b { font-weight: 600; color: var(--text); letter-spacing: 0.2em; }

.paint-recipe {
  display: grid;
  gap: 0;
  width: 100%;
  min-width: 300px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.paint-recipe li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 14px;
  padding: 13px 0 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 16px;
}

.paint-recipe i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.paint-recipe b { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--text); }

.paint-recipe s {
  grid-column: 2 / -1;
  display: block;
  height: 2px;
  background: var(--line);
  text-decoration: none;
}

.paint-recipe u {
  display: block;
  height: 100%;
  background: var(--sw);
  transform-origin: left;
  transform: scaleX(var(--k, 1));
}

.paint-meter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  font-family: var(--display);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.paint-meter i { height: 2px; background: var(--line-2); }
.paint-meter u { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(var(--k, 1)); }
.paint-meter b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; min-width: 4.2ch; text-align: right; }

.paint-result {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 14px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 1.4rem + 2.6vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--text);
  opacity: var(--k, 1);
  transform: translateY(calc((1 - var(--k, 1)) * 16px));
}
.paint-eq { color: var(--muted); font-weight: 400; }
.paint-result i {
  align-self: center;
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: #9CAF88;
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.2), inset 0 3px 6px rgba(255, 255, 255, 0.25);
}
.paint-result small { font-size: 15px; font-weight: 500; letter-spacing: 0.06em; color: var(--muted); }

/* The room: the paint becomes the wall */
.paint-room {
  --room-h: min(76svh, 54vw);
  --lift: 0px;
  background: var(--wall);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}

.paint-room.is-on { visibility: visible; }

.paint-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 70% at 52% 30%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 70%),
    radial-gradient(120% 90% at 50% 120%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0) 30%);
}

.paint-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--room-h) * 0.1956 + var(--lift));
  background:
    linear-gradient(180deg, #EEE9E0 0, #EEE9E0 calc(var(--room-h) * 0.0222), rgba(0, 0, 0, 0.18) calc(var(--room-h) * 0.0222), rgba(0, 0, 0, 0) calc(var(--room-h) * 0.0222 + 6px)),
    linear-gradient(180deg, transparent 23%, rgba(70, 40, 15, 0.28) 23%, rgba(70, 40, 15, 0.28) calc(23% + 1.5px), transparent calc(23% + 1.5px), transparent 40%, rgba(70, 40, 15, 0.28) 40%, rgba(70, 40, 15, 0.28) calc(40% + 1.5px), transparent calc(40% + 1.5px), transparent 60%, rgba(70, 40, 15, 0.28) 60%, rgba(70, 40, 15, 0.28) calc(60% + 1.5px), transparent calc(60% + 1.5px), transparent 84%, rgba(70, 40, 15, 0.28) 84%, rgba(70, 40, 15, 0.28) calc(84% + 1.5px), transparent calc(84% + 1.5px)),
    linear-gradient(180deg, #C9A06E 10%, #9C7246 100%);
}

.paint-room-svg {
  position: absolute;
  right: max(0px, calc((100% - var(--wrap)) / 2));
  bottom: var(--lift);
  height: var(--room-h);
  width: auto;
  max-width: none;
  overflow: visible;
}

.paint-room-ui {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  height: calc(100% - var(--room-h) * 0.2);
  padding-top: var(--hdr);
}

.paint-info-k {
  font-family: var(--display);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}
.paint-info-k b { font-weight: 600; letter-spacing: 0.22em; }

.paint-name {
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(2.6rem, 1.2rem + 3.4vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.paint-hex { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-family: var(--display); font-size: 15px; }

.paint-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 35%, transparent);
  background: transparent;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.3s;
}
.paint-copy:hover { border-color: currentColor; }
.paint-copy svg { width: 15px; height: 15px; }
.paint-copied:empty { display: none; }
.paint-copied { font-weight: 500; font-size: 13px; opacity: 0.8; }
.paint-code { opacity: 0.7; letter-spacing: 0.08em; }

.paint-pick { display: grid; gap: 16px; justify-items: start; }

.paint-swatches { display: grid; grid-template-columns: repeat(5, 48px); gap: 12px; }

.paint-swatches button {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.18), inset 0 3px 6px rgba(255, 255, 255, 0.22), 0 6px 14px -6px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.4s var(--ease);
}

.paint-swatches button::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}

.paint-swatches button:hover { transform: translateY(-3px); }
.paint-swatches button[aria-checked="true"]::after { opacity: 1; transform: none; }
.paint-swatches button:focus-visible { outline: none; }
.paint-swatches button:focus-visible::after { opacity: 1; transform: none; border-style: dashed; }

.paint-note { max-width: 36ch; font-size: 13.5px; line-height: 1.45; opacity: 0.72; }

@media (max-width: 1023px) {
  .paint-scroll { height: 330vh; }
  .paint-hud { padding-top: calc(var(--hdr) + 12px); }
  .paint-hud .wrap { padding: 0 calc(var(--gutter) - 8px); }
  .paint-hud-in {
    gap: 12px;
    padding: 16px 16px 18px;
    background: rgba(11, 11, 10, 0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  }
  .paint-recipe { min-width: 0; }
  .paint-recipe li { padding: 9px 0 8px; font-size: 14.5px; }
  .paint-result { font-size: clamp(2rem, 1.2rem + 4vw, 3rem); }
  .paint-room { --room-h: min(50svh, 100vw); --lift: 168px; }
  .paint-room-svg { right: auto; left: 50%; transform: translateX(-59.5%); }
  .paint-room-ui { justify-content: space-between; height: 100%; padding-top: calc(var(--hdr) + 12px); padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .paint-pick {
    position: relative;
    z-index: 1;
    justify-items: stretch;
    padding: 14px;
    background: rgba(14, 14, 12, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--text);
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  }
  .paint-swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; justify-items: center; }
  .paint-swatches button { width: 42px; height: 42px; }
  .paint-swatches button::after { inset: -4px; }
  .paint-note { max-width: none; font-size: 12.5px; text-align: center; }
}

@media (max-width: 720px) {
  .paint-hud-in > * { max-width: none; }
  .paint-recipe { width: 100%; }
  .paint-name { font-size: clamp(2.3rem, 1.4rem + 4vw, 3.2rem); }
}

/* Reduced motion: no scroll-driven pour. A still frame, then the room as a normal block. */
html.is-still .paint-scroll { height: auto; }
html.is-still .paint-sticky { position: relative; height: auto; overflow: visible; background: none; }
html.is-still .paint-pour { position: relative; height: 82vh; height: 82svh; overflow: hidden; }
html.is-still .paint-room { position: relative; height: 100vh; height: 100svh; opacity: 1; visibility: visible; overflow: hidden; }
html.is-still .paint-room-ui { padding-top: 32px; }

/* =========================================================
   Experiment 02 · Hunting shop: slow-motion round
   ========================================================= */

.round-scroll { position: relative; height: 440vh; }

.round-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: radial-gradient(60% 50% at 70% 50%, #1A140C 0%, #050504 70%);
}

.round-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.exp-round.gl-on .round-gl { opacity: 1; }
.exp-round.gl-on .round-poster { opacity: 0; }

.round-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12vh 0 10vh 34%;
  transition: opacity 1s ease;
}
.round-poster svg { height: 70vh; width: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)); }

.round-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
}

.round-hud-in {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--hdr) + 28px);
  padding-bottom: 40px;
}

.round-brand, .round-card-k {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.round-brand b, .round-card-k b { font-weight: 600; letter-spacing: 0.22em; color: #E8C987; }

.round-tc { display: grid; gap: 4px; font-family: var(--display); }
.round-tc > span { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.6rem); font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.round-tc small { font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.round-card-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-top: var(--hdr);
  pointer-events: none;
}

.round-card {
  --c: 22px;
  --fill: rgba(16, 15, 13, 0.86);
  --bd: rgba(232, 201, 135, 0.28);
  width: min(440px, 100%);
  padding: clamp(24px, 2.4vw, 36px);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}

.exp-round.is-card .round-card { opacity: 1; transform: none; pointer-events: auto; }

.round-card h3 {
  margin-top: 14px;
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.9rem);
  letter-spacing: -0.045em;
}
.round-card h3 span { display: block; margin-top: 6px; font-size: 0.5em; font-weight: 500; letter-spacing: -0.01em; color: #E8C987; }

.round-specs { margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.round-specs div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.4;
}
.round-specs dt { color: var(--muted); }
.round-specs dd { margin: 0; color: var(--text); }

.round-buy { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 22px; }
.round-price { display: grid; gap: 2px; font-family: var(--display); }
.round-price b { font-size: 2.1rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.round-price small { font-size: 13px; color: var(--muted); }
.round-stock { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #CFE8B8; }
.round-stock i { width: 8px; height: 8px; border-radius: 50%; background: #8FD16A; box-shadow: 0 0 0 4px rgba(143, 209, 106, 0.16); }

.round-reserve { width: 100%; margin-top: 20px; background: #E8C987; }
.round-reserve:hover { background: #F3D9A0; }
.round-note:empty { display: none; }
.round-note { margin-top: 12px; padding: 10px 12px; background: rgba(232, 201, 135, 0.1); border-left: 2px solid #E8C987; font-size: 13.5px; line-height: 1.45; color: #EDE3CC; }
.round-legal { margin-top: 14px; font-size: 12.5px; line-height: 1.45; color: var(--dim); }

@media (max-width: 1023px) {
  .round-scroll { height: 380vh; }
  .round-poster { padding: 10vh 0 46vh; }
  .round-poster svg { height: 38vh; }
  .round-hud-in { padding-top: calc(var(--hdr) + 16px); padding-bottom: 24px; }
  .round-card-wrap { align-items: flex-end; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .round-card { --c: 16px; width: 100%; max-width: 520px; margin: 0 auto; padding: 18px 18px 16px; }
  .round-card h3 { margin-top: 8px; font-size: 1.75rem; }
  .round-card h3 span { display: inline; margin: 0 0 0 8px; }
  .round-specs { margin-top: 12px; }
  .round-specs div { padding: 6px 0; font-size: 13px; }
  .round-buy { margin-top: 12px; }
  .round-price b { font-size: 1.6rem; }
  .round-reserve { min-height: 48px; margin-top: 12px; }
  .round-legal { margin-top: 8px; font-size: 11.5px; }
}

html.is-still .round-scroll { height: auto; }
html.is-still .round-sticky { position: relative; }
html.is-still .round-hud { display: none; }

/* =========================================================
   Experiment 03 · Car detailing: polish reveal
   ========================================================= */

.polish-stage {
  position: relative;
  height: min(92vh, 960px);
  height: min(92svh, 960px);
  min-height: 560px;
  overflow: hidden;
  background: #0A0A0A;
  -webkit-user-select: none;
  user-select: none;
}

.polish-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.exp-polish.gl-on .polish-gl { opacity: 1; }
.exp-polish.gl-on .polish-poster { opacity: 0; }

.polish-poster {
  position: absolute;
  inset: 0;
  transition: opacity 0.8s ease;
  background:
    linear-gradient(176deg, #050506 0 22%, #9a9da3 22.4%, #2a2b2e 23.4%, transparent 23.6%),
    linear-gradient(170deg, transparent 47%, rgba(255, 255, 255, 0.35) 48%, transparent 50%),
    radial-gradient(42% 46% at 78% 108%, #050505 0 70%, transparent 71%),
    linear-gradient(110deg, #6b6660 0 45%, #6E0B15 45.2% 100%);
}

.has-cursor .polish-gl { cursor: none; }

.polish-pad {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: calc(var(--r, 60px) * 2);
  height: calc(var(--r, 60px) * 2);
  margin: calc(var(--r, 60px) * -1) 0 0 calc(var(--r, 60px) * -1);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), inset 0 0 24px rgba(255, 255, 255, 0.12);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s, width 0.3s var(--ease), height 0.3s var(--ease);
}

.polish-pad i {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.6);
  animation: pad-spin 1.6s linear infinite;
  animation-play-state: paused;
}

.has-cursor .polish-stage.has-pad .polish-pad { opacity: 1; }
.polish-stage.is-polishing .polish-pad i { animation-play-state: running; }
.polish-stage.is-polishing .polish-pad { background: rgba(255, 255, 255, 0.06); }

@keyframes pad-spin { to { transform: rotate(360deg); } }

.polish-hud {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 0 28px;
  pointer-events: none;
}

.polish-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

.polish-brand { font-family: var(--display); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(243, 242, 238, 0.7); }
.polish-brand b { font-weight: 600; letter-spacing: 0.24em; color: #fff; }

.polish-colors { display: flex; gap: 10px; pointer-events: auto; }
.polish-colors button {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 38%), var(--sw);
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.18);
  cursor: pointer;
}
.polish-colors button::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.polish-colors button[aria-checked="true"]::after { opacity: 1; transform: none; }
.polish-colors button:focus-visible { outline: none; }
.polish-colors button:focus-visible::after { opacity: 1; border-style: dashed; }

.polish-hint {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(10, 10, 10, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  transition: opacity 0.5s, transform 0.6s var(--ease);
}
.polish-hint svg { width: 22px; height: 22px; animation: hint-wipe 2.4s var(--ease-in-out) infinite; }
.polish-hint.is-gone { opacity: 0; transform: translateY(10px); }

@keyframes hint-wipe {
  0%, 100% { transform: translateX(-6px) rotate(-8deg); }
  50% { transform: translateX(6px) rotate(8deg); }
}

.polish-bottom { display: flex; align-items: flex-end; }

.polish-meter {
  --c: 16px;
  --fill: rgba(12, 12, 11, 0.74);
  display: grid;
  gap: 12px;
  width: min(380px, 100%);
  padding: 18px 20px 16px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.polish-pct { display: flex; align-items: baseline; gap: 4px; font-family: var(--display); line-height: 1; }
.polish-pct b { font-size: clamp(3rem, 2rem + 2.6vw, 4.4rem); font-weight: 600; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.polish-pct > span { font-size: 1.6rem; font-weight: 500; color: var(--muted); }
.polish-pct small { margin-left: 10px; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.polish-ba { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; font-family: var(--display); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.polish-ba b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.polish-ba i { height: 4px; background: repeating-linear-gradient(90deg, #6f6a62 0 3px, #57534d 3px 6px); }
.polish-ba u { display: block; height: 100%; background: linear-gradient(90deg, #fff, var(--lime)); transform-origin: left; transform: scaleX(var(--k, 0)); transition: transform 0.25s var(--ease); }

.polish-done:empty { display: none; }
.polish-done { font-size: 14px; line-height: 1.45; color: var(--lime); }

.polish-actions { display: flex; gap: 8px; }
.polish-btn {
  flex: 1;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.polish-btn:hover { border-color: var(--lime); color: var(--lime); }
.exp-polish:not(.is-done) [data-reset] { opacity: 0.55; }

.polish-offer { font-size: 13px; line-height: 1.4; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); }

@media (max-width: 1023px) {
  .polish-stage { height: 72vh; height: 72svh; min-height: 500px; }
  .polish-hud { padding: 16px 0 12px; }
  .polish-meter {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 14px;
    width: 100%;
    padding: 12px 14px;
  }
  .polish-pct { grid-row: 1 / 3; flex-direction: column; align-items: flex-start; gap: 2px; }
  .polish-pct b { font-size: 2.5rem; }
  .polish-pct > span { display: none; }
  .polish-pct b::after { content: "%"; font-size: 1.1rem; font-weight: 500; color: var(--muted); margin-left: 2px; }
  .polish-pct small { margin: 0; font-size: 10.5px; }
  .polish-ba { font-size: 11px; gap: 8px; }
  .polish-done { grid-column: 1 / -1; font-size: 13px; }
  .polish-actions { grid-column: 2; }
  .polish-btn { min-height: 34px; font-size: 13px; padding: 0 8px; }
  .polish-offer { display: none; }
  .polish-hint { font-size: 14px; padding: 10px 14px; }
}

/* =========================================================
   Experiment 04 · Carpentry: 3D configurator
   ========================================================= */

.config-stage {
  --c: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--wrap);
  min-height: min(84vh, 820px);
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}

.config-view {
  position: relative;
  min-height: 520px;
  background:
    radial-gradient(70% 60% at 50% 42%, #FFFEFB 0%, rgba(255, 254, 251, 0) 70%),
    linear-gradient(180deg, #F1EEE7 0%, #E7E3D9 62%, #DCD7CB 100%);
  overflow: hidden;
}

.config-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.config-gl:active { cursor: grabbing; }
.exp-config.gl-on .config-gl { opacity: 1; }
.exp-config.gl-on .config-poster { opacity: 0; }
.has-cursor .config-gl { cursor: none; }

/* Static drawing of the table if WebGL is not available */
.config-poster { position: absolute; inset: 0; transition: opacity 0.8s ease; }
.config-poster i { position: absolute; display: block; }
.config-poster i:nth-child(1) { left: 18%; right: 18%; top: 40%; height: 18px; background: linear-gradient(180deg, #C9A06E, #9C7246); border-radius: 4px; box-shadow: 0 24px 40px -18px rgba(60, 40, 20, 0.45); }
.config-poster i:nth-child(2), .config-poster i:nth-child(3) { top: calc(40% + 18px); width: 12px; height: 26%; background: linear-gradient(90deg, #8F6640, #B8885A); border-radius: 0 0 4px 4px; }
.config-poster i:nth-child(2) { left: 24%; transform: rotate(3deg); }
.config-poster i:nth-child(3) { right: 24%; transform: rotate(-3deg); }

.config-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  transform: translateX(-50%);
  background: rgba(14, 14, 12, 0.78);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  color: var(--paper);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.5s, transform 0.6s var(--ease);
}
.config-hint svg { width: 20px; height: 20px; animation: hint-spin 3s var(--ease-in-out) infinite; }
.config-hint.is-gone { opacity: 0; transform: translate(-50%, 10px); }
@keyframes hint-spin { 0%, 100% { transform: rotate(-25deg); } 50% { transform: rotate(25deg); } }

.config-zoom {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  gap: 6px;
}
.config-zoom button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--paper-line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}
.config-zoom button:hover { background: #fff; border-color: rgba(14, 14, 12, 0.35); }
.config-zoom svg { width: 18px; height: 18px; }
.config-zoom button:focus-visible { outline-color: var(--ink); }

.config-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
  padding: clamp(28px, 3vw, 44px);
  border-left: 1px solid var(--paper-line);
}

.config-brand { font-family: var(--display); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #6B6A63; }
.config-brand b { font-weight: 600; letter-spacing: 0.22em; color: var(--ink); }
.config-title { margin-top: -8px; font-size: clamp(2rem, 1.3rem + 1.6vw, 2.9rem); letter-spacing: -0.045em; color: var(--ink); }
.config-sub { margin-top: -10px; font-size: 15px; color: var(--paper-text); }

.config-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.config-group legend {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6B6A63;
}
.config-pick { margin-left: auto; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink); }

.config-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.config-opts label { position: relative; cursor: pointer; }
.config-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

.config-sizes label { flex: 1; }
.config-sizes span {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 0 10px;
  border: 1px solid var(--paper-line);
  background: #fff;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.config-sizes label:hover span { border-color: rgba(14, 14, 12, 0.4); }
.config-sizes input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.config-woods { gap: 10px; }
.config-woods label { display: grid; justify-items: center; gap: 8px; flex: 1; }
.config-sw {
  display: block;
  width: 100%;
  height: 58px;
  background: #C9A06E center / cover;
  box-shadow: inset 0 0 0 1px rgba(14, 14, 12, 0.08);
  transition: box-shadow 0.25s;
}
.config-woods input[value="walnut"] + .config-sw { background-color: #6B4A33; }
.config-woods input[value="ash"] + .config-sw { background-color: #E0C9A2; }
.config-name { font-family: var(--display); font-size: 14px; font-weight: 500; }
.config-woods label:hover .config-sw { box-shadow: inset 0 0 0 1px rgba(14, 14, 12, 0.35); }
.config-woods input:checked + .config-sw { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }

.config-legs { gap: 14px; }
.config-dot {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dot, #C9A06E) center / cover;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(14, 14, 12, 0.12);
  transition: box-shadow 0.25s, transform 0.3s var(--ease);
}
.config-legs label:hover .config-dot { transform: translateY(-2px); }
.config-legs input:checked + .config-dot { box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.18), 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }

.config-opts input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

.config-total { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--paper-line); }
.config-price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--display); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #6B6A63; }
.config-price b { font-size: clamp(2.2rem, 1.6rem + 1.4vw, 3rem); font-weight: 600; letter-spacing: -0.045em; text-transform: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.config-meta { margin-top: 6px; font-size: 13px; color: var(--paper-text); }
.config-send { width: 100%; }
.config-send:focus-visible { outline-color: var(--ink); }
.config-fine { margin-top: -12px; font-size: 12.5px; color: #6B6A63; text-align: center; }

@media (max-width: 1023px) {
  .config-stage { grid-template-columns: minmax(0, 1fr); --c: 20px; }
  .config-view { min-height: 0; height: 58vh; height: 58svh; }
  .config-panel { border-left: 0; border-top: 1px solid var(--paper-line); gap: 18px; padding: 22px 18px 24px; }
  .config-hint { bottom: 14px; font-size: 13px; }
  .config-zoom { top: 12px; right: 12px; }
  .config-zoom button { width: 38px; height: 38px; }
}

/* ---------- Fallbacks: no WebGL, or the 3D library could not load ---------- */

.exp-round.is-fallback .round-scroll,
.exp-paint.is-fallback .paint-scroll { height: auto; }
.exp-round.is-fallback .round-sticky { position: relative; }
.exp-round.is-fallback .round-hud { display: none; }
.exp-round.is-fallback .round-card { opacity: 1; transform: none; pointer-events: auto; }
.exp-round.is-fallback .round-reserve, .exp-round.is-fallback .round-note { display: none; }
.exp-polish.is-fallback .polish-hud > :not(.polish-top),
.exp-polish.is-fallback .polish-colors,
.exp-polish.is-fallback .polish-pad { display: none; }
.exp-polish.is-fallback .polish-stage { height: 60vh; min-height: 360px; }
.exp-config.is-fallback .config-zoom,
.exp-config.is-fallback .config-hint { display: none; }

@media (max-width: 480px) {
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
}
