:root {
  --bg: #0d0b10;
  --bg-2: #15121a;
  --panel: #1b1721;
  --line: #2c2634;
  --ink: #f3eee8;
  --muted: #9d95a8;
  --toxic: #8cff3f;
  --pink: #ff3ea5;
  --bone: #efe6d6;
  --radius: 18px;
  --display: "Bungee", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
  /* faint layer lines, like the side of a print */
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
h3 { font-size: 1.35rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--toxic); color: #000; padding: 8px 12px; }

/* ---------- Buttons ---------- */
.btn {
  --c: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid var(--c);
  font: 700 .95rem var(--body); text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  background: transparent; color: var(--ink);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-pink { --c: var(--pink); background: var(--pink); color: #14000b; box-shadow: 0 0 0 0 var(--pink); }
.btn-pink:hover { box-shadow: 0 8px 30px -6px var(--pink); }
.btn-toxic { --c: var(--toxic); background: var(--toxic); color: #0b1400; }
.btn-toxic:hover { box-shadow: 0 8px 30px -6px var(--toxic); }
.btn-ghost { --c: var(--line); }
.btn-ghost:hover { --c: var(--ink); }
.btn-sm { padding: .55em 1.1em; font-size: .85rem; }
.btn.wide { width: 100%; }
:focus-visible { outline: 3px solid var(--toxic); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter);
  background: rgba(13, 11, 16, .78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-hex {
  width: 44px; height: 50px; flex: none;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--toxic); padding: 2px;
}
.brand-hex img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; clip-path: inherit; transform: scale(1.35); }
.brand-hex.lg { width: 64px; height: 72px; }
.brand-word { font-family: var(--display); font-size: 1.3rem; }
.brand-word em { font-style: normal; color: var(--pink); }
.brand-word small { font-size: .7em; color: var(--toxic); margin-left: 4px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 7px 8px; transition: transform .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  padding: clamp(40px, 8vw, 96px) var(--gutter) 120px;
  min-height: calc(100vh - 74px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: auto -10% -30% 40%; height: 70%;
  background: radial-gradient(closest-side, rgba(255, 62, 165, .25), transparent), radial-gradient(closest-side at 20% 30%, rgba(140, 255, 63, .15), transparent);
  filter: blur(20px); pointer-events: none;
}
.eyebrow { font: 500 .85rem var(--mono); color: var(--toxic); text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: center; gap: 10px; margin: 0 0 20px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--toxic); box-shadow: 0 0 12px var(--toxic); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.print-title { position: relative; font-size: clamp(2.6rem, 7.4vw, 6.4rem); margin: 0 0 24px; }
.layer-text { display: block; position: relative; color: transparent; }
.layer-text::before {
  content: attr(data-text); position: absolute; inset: 0; color: var(--ink);
  clip-path: inset(100% 0 0 0);
  animation: print-up 2.2s steps(22) forwards;
  /* visible layer lines on the letters */
  -webkit-mask-image: repeating-linear-gradient(0deg, #000 0 3px, rgba(0,0,0,.72) 3px 4px);
          mask-image: repeating-linear-gradient(0deg, #000 0 3px, rgba(0,0,0,.72) 3px 4px);
}
.layer-text.accent::before { color: var(--pink); animation-delay: 1.9s; }
@keyframes print-up { to { clip-path: inset(0 0 0 0); } }
.nozzle {
  position: absolute; left: 0; right: 0; height: 2px; bottom: 0;
  background: linear-gradient(90deg, transparent, var(--toxic) 20%, var(--toxic) 80%, transparent);
  box-shadow: 0 0 16px var(--toxic);
  animation: nozzle 4.1s steps(44) forwards;
}
@keyframes nozzle { 0% { bottom: 0; opacity: 1; } 95% { bottom: 100%; opacity: 1; } 100% { bottom: 100%; opacity: 0; } }

.lede { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 34em; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { list-style: none; padding: 0; margin: 44px 0 0; display: flex; gap: clamp(20px, 4vw, 44px); flex-wrap: wrap; }
.hero-stats li { display: flex; align-items: center; gap: 10px; }
.hero-stats strong { font: 400 2.4rem var(--display); color: var(--toxic); }
.hero-stats span { font-size: .8rem; color: var(--muted); line-height: 1.3; }

.hero-stage { position: relative; height: min(620px, 70vh); perspective: 1200px; }
.build-plate { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .3s ease-out; }
.specimen-card {
  position: absolute; margin: 0; width: 48%; aspect-ratio: 3/4;
  background: var(--panel); padding: 10px 10px 40px; border-radius: 10px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px var(--line);
}
.specimen-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.specimen-card figcaption { position: absolute; bottom: 10px; left: 14px; font: 700 .8rem var(--mono); color: var(--bone); letter-spacing: .06em; text-transform: uppercase; }
.specimen-card.c1 { left: 0; top: 10%; transform: rotate(-8deg) translateZ(20px); animation: float 7s ease-in-out infinite; }
.specimen-card.c2 { left: 28%; top: 0; transform: rotate(3deg) translateZ(60px); z-index: 2; animation: float 8s ease-in-out infinite -2s; }
.specimen-card.c3 { right: 0; top: 30%; transform: rotate(9deg) translateZ(40px); animation: float 6s ease-in-out infinite -4s; }
.specimen-card.c2 figcaption { color: var(--pink); }
@keyframes float { 50% { translate: 0 -12px; } }
.hex-badge {
  position: absolute; left: 12%; bottom: 0; width: 130px; height: 148px; z-index: 3;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--toxic); padding: 3px; animation: spin-slow 18s linear infinite;
}
.hex-badge img { width: 100%; height: 100%; object-fit: cover; clip-path: inherit; transform: scale(1.3); object-position: 50% 42%; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.gcode {
  position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden;
  border-top: 1px solid var(--line); background: rgba(0,0,0,.4);
  font: 400 .8rem var(--mono); color: var(--muted); white-space: nowrap; padding: 12px 0;
}
.gcode-track { display: inline-block; animation: ticker 60s linear infinite; }
.gcode-track span { margin-right: 40px; }
.gcode-track b { color: var(--toxic); font-weight: 400; }
.gcode-track i { color: var(--pink); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) var(--gutter); position: relative; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.kicker { font: 700 .82rem var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.kicker.pink { color: var(--pink); }
.kicker.toxic { color: var(--toxic); }
.sub { color: var(--muted); font-size: 1.1rem; margin: 18px 0 0; }
.sub.quote { font-style: italic; color: var(--bone); border-left: 3px solid var(--toxic); padding-left: 16px; }
.tag { font: 700 .72rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--toxic); margin: 0 0 8px; }

/* ---------- Vault ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  font: 500 .9rem var(--body); color: var(--muted); background: var(--panel);
  border: 1px solid var(--line); padding: .5em 1.1em; border-radius: 999px; cursor: pointer; transition: .2s;
}
.chip:hover { color: var(--ink); border-color: var(--muted); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.vault-grid { columns: 4 240px; column-gap: 18px; }
.specimen {
  break-inside: avoid; margin: 0 0 18px; position: relative; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; background: var(--panel);
  border: 1px solid var(--line);
  transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
  transition: transform .15s ease-out, border-color .2s, opacity .35s, scale .35s;
  display: block; width: 100%; padding: 0; text-align: left; color: inherit; font: inherit;
}
.specimen:hover { border-color: var(--toxic); }
.specimen img { width: 100%; height: auto; transition: transform .6s; }
.specimen:hover img { transform: scale(1.05); }
.specimen .spec-no {
  position: absolute; top: 12px; left: 12px; font: 700 .7rem var(--mono);
  background: rgba(0,0,0,.65); color: var(--toxic); padding: 4px 8px; border-radius: 6px; backdrop-filter: blur(4px);
}
.specimen .spec-info {
  position: absolute; inset: auto 0 0 0; padding: 40px 14px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.88));
}
.specimen h3 { font-size: 1.05rem; }
.specimen p { margin: 4px 0 0; font-size: .8rem; color: var(--bone); opacity: .8; }
.specimen.is-hidden { display: none; }
.specimen.pop { animation: pop .4s ease-out both; }
@keyframes pop { from { opacity: 0; scale: .94; } }

/* ---------- Krakenstock ---------- */
.kraken { background: radial-gradient(ellipse at 80% 20%, rgba(255,62,165,.18), transparent 60%), var(--bg-2); border-block: 1px solid var(--line); }
.kraken-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.kraken-title { font-family: "Bungee Shade", var(--display); font-size: clamp(2.8rem, 7vw, 5.5rem); color: var(--pink); }
.kraken-title sup { font-size: .3em; vertical-align: super; font-family: var(--display); }
.spec-stack { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 4px; }
.spec-stack li { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); }
.spec-stack li:first-child { border-radius: 14px 14px 4px 4px; }
.spec-stack li:last-child { border-radius: 4px 4px 14px 14px; }
.spec-stack b { display: block; }
.spec-stack small { color: var(--muted); font-family: var(--mono); font-size: .78rem; }
.swatch { width: 28px; height: 28px; border-radius: 8px; background: var(--sw); border: 1px solid rgba(255,255,255,.2); flex: none; }

.kraken-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: min(640px, 80vh); }
.kg { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.kg img { width: 100%; height: 100%; object-fit: cover; }
.kg-a { grid-row: span 2; }

.goth-strip { margin-top: 80px; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: end; }
.goth-copy p:not(.kicker) { color: var(--muted); }
.goth-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.goth-row figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; border: 1px solid var(--line); }
.goth-row img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.goth-row figure:hover img { transform: scale(1.06); }
.goth-row figcaption { position: absolute; left: 12px; bottom: 10px; font: 700 .75rem var(--mono); text-transform: uppercase; background: rgba(0,0,0,.7); padding: 4px 8px; border-radius: 6px; }

/* ---------- Lab ---------- */
.lab-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.lab-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; }
.lab-card-body { padding: 24px; }
.lab-card.egon { grid-column: span 7; display: grid; grid-template-columns: 1fr 1.1fr; }
.lab-card.egon img, .lab-card.nasa img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.lab-card.egon blockquote { margin: 16px 0 0; color: var(--bone); font-style: italic; border-left: 3px solid var(--pink); padding-left: 14px; font-size: .98rem; }
.lab-card.machines { grid-column: span 5; padding: 24px; }
.machine-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.machine-list li { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; flex-wrap: wrap; }
.machine-list b { display: block; }
.machine-list small { color: var(--muted); }
.m-icon { color: var(--toxic); font-size: 1.4rem; }
.color-dots { display: flex; gap: 4px; margin-left: auto; }
.color-dots i { width: 12px; height: 12px; border-radius: 50%; }
.color-dots i:nth-child(1) { background: #ff3ea5; } .color-dots i:nth-child(2) { background: #8cff3f; }
.color-dots i:nth-child(3) { background: #ffd23f; } .color-dots i:nth-child(4) { background: #3fa9ff; }
.color-dots i:nth-child(5) { background: #efe6d6; } .color-dots i:nth-child(6) { background: #ff7a2f; }
.color-dots i:nth-child(7) { background: #111; border: 1px solid #555; }
.lab-card.nasa { grid-column: span 7; display: grid; grid-template-columns: 1fr 1.3fr; }
.lab-card.nasa p:not(.tag) { color: var(--muted); }
.lab-card.materials { grid-column: span 5; padding: 24px; }
.mat-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.mat-grid span { font: 500 .85rem var(--mono); border: 1px solid var(--line); padding: 6px 12px; border-radius: 8px; background: var(--bg-2); }
.mat-grid span:nth-child(odd) { color: var(--toxic); }
.fine { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Fails ---------- */
.fails { background:
  repeating-linear-gradient(-45deg, rgba(140,255,63,.05) 0 18px, transparent 18px 36px), var(--bg); border-block: 1px solid var(--line); }
.fail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.fail {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.fail figure { margin: 0; aspect-ratio: 4/5; overflow: hidden; position: relative; }
.fail img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.fail .stamp {
  position: absolute; top: 16px; right: -6px; transform: rotate(8deg);
  font: 400 .95rem var(--display); color: var(--toxic); border: 3px solid var(--toxic); padding: 2px 10px; border-radius: 6px;
  background: rgba(0,0,0,.6);
}
.fail-body { padding: 18px; display: grid; gap: 10px; }
.fail-body p { margin: 0; color: var(--muted); font-size: .92rem; }
.meter { display: flex; align-items: center; gap: 10px; font: 400 .72rem var(--mono); color: var(--muted); text-transform: uppercase; }
.meter-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--toxic)); border-radius: inherit; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.fail.in .meter-bar i { width: var(--v); }

/* ---------- Forge ---------- */
.forge-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.slot {
  background: linear-gradient(180deg, #221c29, #16121b); border: 1px solid var(--line); border-radius: 24px; padding: 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.slot-window { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: #000; padding: 10px; border-radius: 14px; border: 2px solid var(--toxic); box-shadow: 0 0 30px -8px var(--toxic); }
.reel { height: 96px; overflow: hidden; background: var(--bone); border-radius: 8px; position: relative; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.45), transparent 30%, transparent 70%, rgba(0,0,0,.45)); pointer-events: none; }
.reel-strip { will-change: transform; }
.reel-item { height: 96px; display: grid; place-items: center; text-align: center; font: 700 .95rem var(--body); color: #120d16; padding: 0 8px; line-height: 1.15; }
.reel-item .emo { display: block; font-size: 1.7rem; margin-bottom: 2px; }
.slot-result { font-size: 1.15rem; margin: 22px 0; min-height: 3.2em; }
.slot-result b { color: var(--toxic); }
.slot-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.order-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 700 .75rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: flex; justify-content: space-between; }
.field output { color: var(--toxic); }
input, select, textarea {
  width: 100%; font: 400 1rem var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--toxic); box-shadow: 0 0 0 3px rgba(140,255,63,.18); }
input[type=range] { padding: 0; accent-color: var(--pink); background: none; border: 0; height: 44px; }
textarea { resize: vertical; }
.form-note { margin: 4px 0 0; font-size: .88rem; color: var(--toxic); min-height: 1.4em; }
.form-note.err { color: var(--pink); }
.flash { animation: flash .8s; }
@keyframes flash { 30% { box-shadow: 0 0 0 4px var(--toxic); } }

/* ---------- TikTok CTA ---------- */
.tt-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, #1d1024, #0f1a0b); border: 1px solid var(--line); border-radius: 32px; padding: clamp(28px, 5vw, 64px); overflow: hidden;
}
.tt-copy h2 { font-size: clamp(2rem, 5vw, 3.8rem); margin-bottom: 14px; word-break: break-word; }
.tt-copy p:not(.kicker) { color: var(--muted); margin-bottom: 26px; }
.tt-phones { position: relative; height: 380px; }
.phone { position: absolute; width: 170px; aspect-ratio: 9/18; border-radius: 28px; border: 6px solid #000; overflow: hidden; box-shadow: 0 30px 60px -20px #000, 0 0 0 1px var(--line); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone.p1 { left: 5%; top: 30px; transform: rotate(-10deg); }
.phone.p2 { left: 35%; top: 0; z-index: 2; border-color: var(--pink); }
.phone.p3 { left: 65%; top: 40px; transform: rotate(10deg); }

/* ---------- Footer ---------- */
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding: 40px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand p { margin: 0; color: var(--ink); font-family: var(--display); }
.foot-brand small { font-family: var(--body); color: var(--muted); }
.foot-meta { font: .8rem var(--mono); margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 24px; padding: 0; width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
.lightbox::backdrop { background: rgba(5, 3, 8, .82); backdrop-filter: blur(6px); }
.lightbox[open] { animation: pop .3s ease-out; }
.lb-body { display: grid; grid-template-columns: 1.1fr 1fr; }
.lb-body img { width: 100%; height: 100%; max-height: calc(100vh - 34px); object-fit: cover; }
.lb-info { padding: 36px 28px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.lb-info h3 { font-size: 1.8rem; }
.lb-info p { margin: 0; color: var(--muted); }
.lb-mat { font: .8rem var(--mono); color: var(--bone) !important; }
.lb-close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero, .kraken-inner, .forge-wrap, .tt-card, .goth-strip { grid-template-columns: 1fr; }
  .hero-stage { height: 460px; max-width: 520px; width: 100%; margin: 0 auto; }
  .lab-card.egon, .lab-card.nasa, .lab-card.machines, .lab-card.materials { grid-column: 1 / -1; }
  .kraken-gallery { height: 520px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .hero { min-height: 0; padding-bottom: 100px; }
  .hero-stage { height: 380px; }
  .hex-badge { width: 96px; height: 110px; }
  .vault-grid { columns: 2 150px; column-gap: 12px; }
  .specimen { margin-bottom: 12px; }
  .lab-card.egon, .lab-card.nasa { grid-template-columns: 1fr; }
  .lab-card.egon img, .lab-card.nasa img { max-height: 320px; }
  .goth-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .order-form { grid-template-columns: 1fr; padding: 20px; }
  .slot { padding: 18px; }
  .reel, .reel-item { height: 84px; }
  .reel-item { font-size: .8rem; }
  .lb-body { grid-template-columns: 1fr; }
  .lb-body img { max-height: 50vh; }
  .lightbox { overflow-y: auto; }
  .tt-phones { height: 300px; }
  .phone { width: 120px; }
  .phone.p1 { left: 0; } .phone.p2 { left: calc(50% - 60px); } .phone.p3 { left: auto; right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* keep hover tilt working after the scroll reveal finishes */
.specimen.reveal.in { transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); }

/* grid children may shrink below their content width (long display words) */
.hero > *, .kraken-inner > *, .forge-wrap > *, .tt-card > *, .goth-strip > * { min-width: 0; }
.kraken-copy { container-type: inline-size; }
.kraken-title { font-size: min(8.2cqi, 4.4rem); white-space: nowrap; }
/* land section headings below the sticky nav */
section[id] { scroll-margin-top: 72px; }

/* 404 page */
.notfound { min-height: 100vh; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.notfound-img { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); max-height: 70vh; }
.notfound-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .notfound { grid-template-columns: 1fr; } }
