/* ============ THE FORBIDDEN SHIRT, Global Stylesheet ============ */

:root {
  --black:      #0A0A0A;
  --off-black:  #111111;
  --dark-grey:  #1A1A1A;
  --white:      #F5F5F0;
  --volt:       #FFFC00;
  --red:        #C8102E;
  --gold:       #FFFC00; /* unified to volt: only one yellow nuance across the UI */
  --mid-grey:   #3A3A3A;
  --light-grey: #AAAAAA; /* bumped from #888 for AA contrast on black */
  --muted:      #888888;

  --font-display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --font-body:    "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "Space Mono", "IBM Plex Mono", ui-monospace, monospace;

  --nav-h: 56px;
}

@font-face {
  font-family: "Kit Name Number";
  src: url("assets/fonts/kit-name-number.ttf") format("truetype");
  font-display: swap;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--black); color: var(--white); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.loaded,
body.page-loaded { opacity: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============ NAVIGATION ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--black);
  border-bottom: 1px solid var(--mid-grey);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.02em;
  color: var(--white);
  display: inline-block;
  transition: transform 0.2s ease;
}
.nav__brand:hover { transform: scale(1.06); }

.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--light-grey);
  transition: transform 0.2s ease, color 0.2s ease;
  padding: 4px 2px;
}
.nav__link:hover { transform: scale(1.06); color: var(--white); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  height: 2px; width: 0;
  background: var(--volt);
  transition: width 0.25s ease;
}
.nav__link:hover::after { width: 100%; }
.nav__link.is-active { color: var(--volt); }
.nav__link.is-active::after { width: 100%; }

.nav__bar {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  height: 2px;
  background: var(--volt);
  z-index: 99;
}

.nav__burger {
  display: none;
  background: none; border: 0; padding: 0; cursor: pointer;
  width: 32px; height: 24px;
  position: relative;
}
.nav__burger span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.nav__burger span:nth-child(1) { top: 4px; }
.nav__burger span:nth-child(2) { top: 11px; }
.nav__burger span:nth-child(3) { top: 18px; }
.nav__burger.is-open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

.nav__overlay {
  position: fixed; inset: 0;
  background: var(--black);
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 32px;
  z-index: 90;
}
.nav__overlay.is-open { display: flex; }
.nav__overlay a {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.08em;
  color: var(--white);
}
.nav__overlay a.is-active { color: var(--volt); }

main { padding-top: calc(var(--nav-h) + 2px); }

/* ============ PAGE STAGE ============ */
.page-header {
  background: var(--black);
  padding: 64px 80px 40px;
  border-bottom: 1px solid var(--mid-grey);
}
.page-header__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--volt);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.page-header__h {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  color: var(--white);
  line-height: 1;
  margin: 0 0 20px;
  letter-spacing: 0.01em;
}
.page-header__sub {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--light-grey);
  max-width: 600px;
  line-height: 1.6;
  margin: 0;
}

/* ============ HERO (landing) ============ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  background: var(--black);
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
  padding: 80px 24px 60px;
  text-align: center;
}
.hero__bg {
  position: absolute; inset: 0;
  opacity: 0.16;
  background-image: url('assets/images/dragon-scales.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  filter: invert(1);
  pointer-events: none;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  pointer-events: none;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,10,0.82) 0%, rgba(10,10,10,0.42) 48%, rgba(10,10,10,0.74) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.62) 0%, rgba(10,10,10,0.20) 46%, rgba(10,10,10,0.78) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  transition: opacity 0.45s ease;
}
.hero__h {
  font-family: var(--font-display);
  font-size: 140px;
  line-height: 0.9;
  letter-spacing: 0.01em;
  margin: 0;
}
.hero__h .l1 { color: var(--white); display: block; }
.hero__h .l2 { color: var(--volt); display: block; }
.hero__sub {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--light-grey);
  max-width: 560px;
  margin: 28px auto 0;
  line-height: 1.55;
}
.hero__description {
  color: var(--light-grey);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  max-width: 680px;
  margin: 28px auto 0;
}
.hero__scroll {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--volt);
  letter-spacing: 0.2em;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: bounce 1.8s infinite ease-in-out;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* CTA Button */
.btn-cta {
  display: inline-block;
  margin-top: 40px;
  padding: 16px 48px;
  background: var(--volt);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  border: 0;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, outline 0.2s ease;
}
.btn-cta:hover {
  transform: scale(1.06);
  outline: 2px solid var(--black);
  outline-offset: -6px;
}
.hero__view-toggle {
  display: block;
  margin: 18px auto 0;
  background: rgba(10, 10, 10, 0.46);
  color: var(--white);
  border: 1px solid rgba(245, 245, 240, 0.38);
  padding: 10px 18px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.hero__view-toggle:hover {
  color: var(--volt);
  border-color: var(--volt);
  background: rgba(10, 10, 10, 0.68);
  transform: translateY(-1px);
}
.hero.is-viewing-shirt .hero__h,
.hero.is-viewing-shirt .hero__sub,
.hero.is-viewing-shirt .hero__description,
.hero.is-viewing-shirt .btn-cta-hero {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  animation: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.hero.is-viewing-shirt .hero__shade {
  opacity: 0.46;
}

/* Fade-in choreography on hero */
.hero__h, .hero__sub, .hero__description, .btn-cta-hero, .hero__view-toggle {
  opacity: 0;
  transform: translateY(30px);
  animation: rise 0.6s ease forwards;
}
.hero__sub  { animation-delay: 0.2s; }
.hero__description { animation-delay: 0.2s; }
.btn-cta-hero { animation-delay: 0.4s; }
.hero__view-toggle { animation-delay: 0.55s; }
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ============ STORY INTRO ============ */
.story {
  background: var(--off-black);
  padding: 100px 80px;
}
.story__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: none;
  margin: 0;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--volt);
  margin-bottom: 16px;
}
.eyebrow--red  { color: var(--red); }
.eyebrow--gold { color: var(--gold); }

.story h2 {
  font-family: var(--font-display);
  font-size: 52px;
  color: var(--white);
  line-height: 1;
  margin: 0 0 28px;
}
.story p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--light-grey);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 0 18px;
}
.pullquote {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
  max-width: 500px;
  margin-top: 28px;
  line-height: 1.6;
}
.kit-figure {
  border: 1px solid var(--mid-grey);
  background: var(--dark-grey);
  padding: 0;
}
.kit-figure__img {
  aspect-ratio: 4/5;
  background: #0A0A0A;
  display: block;
  position: relative;
  overflow: hidden;
}
.kit-figure__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.kit-figure__caption {
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--light-grey);
  border-top: 1px solid var(--mid-grey);
}

/* ============ THREE PILLARS ============ */
.pillars {
  background: var(--black);
  padding: 100px 80px;
  text-align: center;
}
.pillars h2 {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--white);
  margin: 0 auto 60px;
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  text-align: left;
}
.pillar {
  background: var(--dark-grey);
  padding: 48px 36px;
  position: relative;
  transition: box-shadow 0.2s ease;
}
.pillar--1 { border-top: 3px solid var(--volt); }
.pillar--2 { border-top: 3px solid var(--red); }
.pillar--3 { border-top: 3px solid var(--gold); }
.pillar--1:hover { box-shadow: 0 0 0 2px var(--volt); }
.pillar--2:hover { box-shadow: 0 0 0 2px var(--red); }
.pillar--3:hover { box-shadow: 0 0 0 2px var(--gold); }
.pillar__num {
  position: absolute;
  top: 16px; right: 24px;
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
  opacity: 0.12;
}
.pillar--1 .pillar__num { color: var(--volt); }
.pillar--2 .pillar__num { color: var(--red); }
.pillar--3 .pillar__num { color: var(--gold); }
.pillar h3 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
  margin: 0 0 18px;
  letter-spacing: 0.02em;
  position: relative;
  max-width: 80%;
}
.pillar p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--light-grey);
  line-height: 1.65;
  margin: 0;
}

/* ============ SIGNPOSTS ============ */
.signposts {
  background: var(--off-black);
  padding: 80px 0;
}
.signpost {
  display: flex; align-items: center; justify-content: space-between;
  height: 100px;
  padding: 0 80px;
  border-bottom: 1px solid var(--mid-grey);
  transition: background 0.2s ease;
}
.signpost:first-child { border-top: 1px solid var(--mid-grey); }
.signpost:hover { background: var(--dark-grey); }
.signpost__name {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: transform 0.2s ease;
}
.signpost:hover .signpost__name { transform: scale(1.06); }
.signpost__right { display: flex; align-items: center; gap: 32px; }
.signpost__desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--light-grey);
  max-width: 420px;
  text-align: right;
}
.signpost__arrow {
  color: var(--volt);
  font-size: 28px;
  transition: transform 0.2s ease;
}
.signpost:hover .signpost__arrow { transform: translateX(8px); }

/* ============ FOOTER ============ */
.footer {
  background: var(--off-black);
  padding: 40px 0 0;
  border-top: 1px solid var(--mid-grey);
}
.footer__row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 32px;
  padding: 0 80px 32px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--white);
  letter-spacing: 0.04em;
}
.footer__brand-sub {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--light-grey);
  margin-top: 6px;
}
.footer__links {
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
}
.footer__links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--light-grey);
  text-transform: uppercase;
  transition: transform 0.2s ease, color 0.2s ease;
}
.footer__links a:hover { transform: scale(1.06); color: var(--white); }
.footer__meta {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--light-grey);
}
.footer__note {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--light-grey);
  margin-top: 6px;
}
.footer__rule {
  border-top: 1px solid var(--mid-grey);
  text-align: center;
  padding: 18px 20px;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--light-grey);
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__h, .hero__sub, .hero__description, .btn-cta-hero, .hero__view-toggle { animation: none; opacity: 1; transform: none; }
  .hero__scroll { animation: none; }
}

/* ============ FOCUS RINGS ============ */
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible,
.swatch:focus-visible,
.tile:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 2px;
}

/* ============ KIT BUILDER ============ */
.builder {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 0;
  background: var(--black);
  min-height: 100vh;
}
.builder__left {
  background: var(--black);
  padding: 48px 56px 80px;
  border-right: 1px solid var(--mid-grey);
}
.is-embedded-builder body {
  opacity: 1;
  transition: none;
}
.is-embedded-builder .nav,
.is-embedded-builder .nav__bar,
.is-embedded-builder .nav__overlay,
.is-embedded-builder .page-header,
.is-embedded-builder .footer {
  display: none;
}
.is-embedded-builder .builder {
  min-height: 0;
}
.is-embedded-builder .builder__left {
  padding: 0 20px 48px;
  border-right: 0;
}
.is-embedded-builder .annot {
  border-left: 0;
}
.shirt-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.shirt-wrap svg { width: 100%; height: auto; display: block; }
.shirt-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--light-grey);
  letter-spacing: 0.12em;
  margin-top: 18px;
  text-align: center;
}
.download-design {
  display: inline-block;
  margin-top: 20px;
  padding: 13px 28px;
  background: var(--volt);
  color: var(--black);
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, outline 0.2s ease;
}
.download-design:hover {
  transform: scale(1.04);
  outline: 2px solid var(--black);
  outline-offset: -6px;
}
.download-design:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 4px;
}
.download-status {
  max-width: 300px;
  margin: 14px auto 0;
  color: var(--light-grey);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
}
.download-fallback {
  display: inline-block;
  margin-top: 10px;
  color: var(--volt);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-decoration: underline;
}
.download-status[hidden],
.download-fallback[hidden] {
  display: none;
}

.selectors {
  background: var(--off-black);
  padding: 40px;
  margin-top: 48px;
  display: grid;
  gap: 32px;
}
.selector__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--volt);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.selector__row {
  display: grid;
  gap: 14px;
}
.selector__row[data-row="pattern"] {
  grid-template-columns: repeat(3, 100px);
  gap: 12px;
  align-items: start;
}
.swatch-group {
  display: grid;
  gap: 8px;
}
.swatch-group__label {
  margin: 0;
  color: var(--light-grey);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.swatch-group__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.swatch {
  position: relative;
  width: 34px; height: 34px;
  background: var(--mid-grey);
  cursor: pointer;
  border: 2px solid transparent;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.swatch:hover { box-shadow: 0 0 0 2px var(--volt); transform: translateY(-1px); }
.swatch.is-active { border-color: var(--volt); }
.swatch.is-active::after {
  content: "✓";
  position: absolute; top: -4px; right: 1px;
  color: var(--volt);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 0 4px var(--black);
}
.swatch__tip {
  position: absolute;
  top: -30px; left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s ease;
  border: 1px solid var(--mid-grey);
}
.swatch:hover .swatch__tip { opacity: 1; }

.tile {
  position: relative;
  width: 80px;
  background: var(--dark-grey);
  border: 2px solid transparent;
  cursor: pointer;
  padding: 8px 6px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.tile--collar { height: 90px; }
.tile--pattern { width: 100px; height: 120px; }
.tile:hover { box-shadow: 0 0 0 2px var(--volt); }
.tile.is-active { border-color: var(--volt); }
.tile.is-active::after {
  content: "✓";
  position: absolute; top: 4px; right: 6px;
  color: var(--volt);
  font-family: var(--font-mono);
  font-size: 12px;
}
.tile svg { width: 56px; height: 38px; }
.tile--pattern svg { width: 76px; height: 76px; }
.tile__pattern-img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  filter: invert(1);
  opacity: 0.8;
}
.tile__lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--light-grey);
  letter-spacing: 0.05em;
  text-align: center;
}
.tile__cultural {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.pattern-upload {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--mid-grey);
}
.pattern-upload__button {
  display: inline-block;
  padding: 11px 16px;
  background: var(--dark-grey);
  color: var(--volt);
  border: 1px solid var(--mid-grey);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.pattern-upload__button:hover {
  border-color: var(--volt);
  transform: translateY(-1px);
}
.pattern-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.pattern-upload__hint {
  margin: 8px 0 0;
  color: var(--light-grey);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
}
.custom-pattern-controls {
  margin-top: 18px;
  padding: 18px;
  background: var(--dark-grey);
  display: grid;
  gap: 14px;
  border-left: 2px solid var(--volt);
}
.custom-pattern-controls[hidden] {
  display: none;
}
.custom-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--light-grey);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
}
.custom-toggle input {
  width: 15px;
  height: 15px;
  accent-color: var(--volt);
}
.custom-range {
  display: grid;
  gap: 8px;
}
.custom-range .selector__label {
  margin-bottom: 0;
}
.custom-range input:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ============ 3D TEST PAGE ============ */
.model-builder-page {
  overflow: auto;
}
.model-builder-page main {
  min-height: calc(100vh - var(--nav-h) - 2px);
  display: block;
  overflow: visible;
}
.builder-mobile-fallback {
  min-height: calc(100svh - var(--nav-h) - 2px);
  padding: 32px 0 0;
  background: var(--black);
  display: grid;
  grid-template-rows: auto minmax(720px, 1fr);
  text-align: center;
}
.builder-mobile-fallback[hidden] {
  display: none;
}
.builder-mobile-fallback__inner {
  width: min(100%, 560px);
  margin: 0 auto 28px;
  padding: 0 24px;
}
.builder-mobile-fallback .eyebrow {
  text-align: center;
}
.builder-mobile-fallback h1 {
  margin: 0 0 12px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 0.95;
}
.builder-mobile-fallback p:not(.eyebrow) {
  margin: 0;
  color: var(--light-grey);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
}
.builder-mobile-fallback__frame {
  width: 100%;
  min-height: 1100px;
  border: 0;
  background: var(--black);
  overflow: hidden;
}
.builder-mobile-lite .model-test,
.builder-mobile-lite .annot--3d {
  display: none;
}
.model-test {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  height: calc(100vh - var(--nav-h) - 2px);
  min-height: 0;
  background: var(--black);
  border-bottom: 1px solid var(--mid-grey);
  overflow: hidden;
}
.model-test__stage {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 40%, #202020 0%, #0A0A0A 58%);
}
.model-test__viewer {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  background: transparent;
  display: block;
  touch-action: none;
  overscroll-behavior: contain;
}
.model-test__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--mid-grey);
  background: var(--black);
}
.model-tool {
  min-height: 40px;
  padding: 10px 14px;
  background: var(--dark-grey);
  border: 1px solid var(--mid-grey);
  color: var(--light-grey);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.model-tool:hover {
  border-color: var(--volt);
  color: var(--white);
  transform: translateY(-1px);
}
.model-tool--primary {
  background: var(--volt);
  border-color: var(--volt);
  color: var(--black);
}
.model-tool--primary:hover {
  color: var(--black);
}
.meaning-jump {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 0 8px 12px;
  background: transparent;
  border: 0;
  color: var(--volt);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
}
.meaning-jump[hidden] {
  display: none;
}
.meaning-jump span:first-child {
  max-width: 170px;
  line-height: 1.35;
}
.meaning-jump__arrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  animation: meaning-arrow 1.1s ease-in-out infinite;
}
.meaning-jump:hover span:first-child {
  color: var(--white);
}
@keyframes meaning-arrow {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(7px); }
}
.model-status {
  padding: 12px 14px;
  background: var(--dark-grey);
  border-left: 2px solid var(--volt);
}
.selectors--3d {
  margin-top: 28px;
  padding: 0;
  background: transparent;
  gap: 30px;
}
.selector-group {
  display: grid;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--mid-grey);
}
.selector-group:first-child {
  padding-top: 0;
  border-top: 0;
}
.selector-group__title {
  margin: 0 0 -2px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.selector-group .selector--range {
  border-top: 0;
  padding-top: 0;
}
.selectors--3d .selector__label {
  gap: 16px;
}
.selectors--3d .selector__row[data-row="pattern"] {
  grid-template-columns: repeat(3, minmax(82px, 100px));
}
.selectors--3d .tile--pattern {
  width: 100%;
}
.kit-text-grid {
  display: grid;
  grid-template-columns: minmax(92px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
}
.kit-text-field {
  display: grid;
  gap: 8px;
}
.kit-text-field span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--light-grey);
  letter-spacing: 0.12em;
}
.kit-text-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--mid-grey);
  background: var(--black);
  color: var(--white);
  padding: 10px 12px;
  font-family: "Kit Name Number", var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.kit-text-field input:focus {
  outline: 2px solid var(--volt);
  outline-offset: 2px;
}
.selectors--3d .reset-btn {
  color: var(--volt);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid var(--mid-grey);
  padding: 11px 16px;
  justify-self: start;
}
.selectors--3d .reset-btn:hover {
  border-color: var(--volt);
  color: var(--white);
}
.model-test__panel {
  background: var(--off-black);
  border-left: 1px solid var(--mid-grey);
  padding: 48px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.model-test__panel h1 {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  margin: 0 0 24px;
  color: var(--white);
}
.model-test__panel > p:not(.eyebrow) {
  color: var(--light-grey);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
}
.annot--3d {
  margin-top: 0;
  padding: 44px 80px 72px;
  background: var(--off-black);
  border-left: 0;
  border-top: 1px solid var(--mid-grey);
}
.annot--3d[hidden] {
  display: none;
}
.annot--3d .annot__header {
  margin-bottom: 24px;
}
.annot--3d .annot__h {
  font-size: 34px;
}
.annot--3d .annot__cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.annot--3d .combo {
  max-width: 720px;
}

.selector--range {
  border-top: 1px solid var(--mid-grey);
  padding-top: 24px;
}
.range-control {
  width: 100%;
  accent-color: var(--volt);
  cursor: pointer;
}

.reset-btn {
  background: none; border: 0;
  color: var(--light-grey);
  font-family: var(--font-body);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
  align-self: start;
  transition: color 0.2s ease;
}
.reset-btn:hover { color: var(--volt); }

/* Annotation panel */
.annot {
  background: var(--off-black);
  padding: 48px 40px 80px;
  border-left: 1px solid var(--mid-grey);
}
.annot__header { border-bottom: 1px solid var(--mid-grey); padding-bottom: 24px; margin-bottom: 32px; }
.annot__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--volt);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.annot__h {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.annot__desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--light-grey);
  font-style: italic;
  margin: 0;
}

.annot__cards { display: grid; gap: 20px; }
.acard {
  background: var(--dark-grey);
  padding: 24px;
  border-left: 3px solid var(--volt);
  animation: acard-in 0.3s ease forwards;
}
.acard--gold { border-left-color: var(--gold); }
.acard--red  { border-left-color: var(--red); }
@keyframes acard-in {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.acard__row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.acard__row .left  { color: var(--light-grey); }
.acard__row .right { color: var(--volt); }
.acard--gold .acard__row .right { color: var(--gold); }
.acard--red  .acard__row .right { color: var(--red); }
.acard__text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--light-grey);
  margin: 0;
}

.combo {
  margin-top: 36px;
  background: var(--dark-grey);
  padding: 24px;
  border-top: 2px solid var(--volt);
  transition: border-color 0.25s ease;
}
.combo--high { border-top-color: var(--red); }
.combo--note { border-top-color: var(--gold); }
.combo--clear { border-top-color: var(--volt); }
.combo__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.combo--high .combo__label  { color: var(--red); }
.combo--note .combo__label  { color: var(--gold); }
.combo--clear .combo__label { color: var(--volt); }
.combo__text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--light-grey);
  margin: 0;
}

@media (max-width: 1100px) {
  .model-builder-page { overflow: auto; }
  .model-builder-page main { min-height: auto; overflow: visible; }
  .builder { grid-template-columns: 1fr; }
  .builder__left { border-right: 0; border-bottom: 1px solid var(--mid-grey); padding: 40px 28px 60px; }
  .annot { border-left: 0; padding: 40px 28px 60px; }
  .selector__row[data-row="pattern"] { grid-template-columns: repeat(3, minmax(82px, 100px)); }
  .selectors { padding: 28px; }
  .model-test { grid-template-columns: 1fr; height: auto; overflow: visible; }
  .model-test__viewer { height: 640px; min-height: 560px; }
  .model-test__panel { border-left: 0; border-top: 1px solid var(--mid-grey); padding: 32px 28px; overflow: visible; }
  .selectors--3d { padding: 0; }
  .kit-text-grid { grid-template-columns: 1fr; }
  .annot--3d { padding: 40px 28px 60px; }
  .annot--3d .annot__cards { grid-template-columns: 1fr; }
}

/* ============ CULTURE PAGE ============ */
.culture-section { padding: 100px 80px; }
.culture-section--black    { background: var(--black); }
.culture-section--offblack { background: var(--off-black); }

.section-h {
  font-family: var(--font-display);
  font-size: 52px;
  color: var(--white);
  margin: 0 0 24px;
  line-height: 1;
}
.section-intro {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--light-grey);
  max-width: 680px;
  line-height: 1.7;
  margin: 0 0 56px;
}

.colour-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  max-width: 1400px; margin: 0 auto;
}
.ccard {
  background: var(--off-black);
  display: flex; flex-direction: column;
  min-height: 320px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ccard:hover { box-shadow: 0 0 0 2px var(--volt); }
.ccard__top { height: 140px; }
.ccard__body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.ccard__name { font-family: var(--font-display); font-size: 22px; color: var(--white); margin: 0; letter-spacing: 0.02em; }
.ccard__cn   { font-family: var(--font-display); font-size: 36px; line-height: 1; margin: 0; }
.ccard__desc { font-family: var(--font-body); font-size: 13px; color: var(--light-grey); line-height: 1.6; margin: 6px 0 0; }
.ccard__tag {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase;
  align-self: start; padding: 4px 8px; border: 1px solid currentColor; margin-top: auto;
}

.symbol-entry {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-bottom: 32px;
  max-width: 1400px; margin-left: auto; margin-right: auto;
}
.symbol-entry--alt { direction: rtl; }
.symbol-entry--alt > * { direction: ltr; }
.symbol-visual { background: var(--dark-grey); min-height: 360px; display: flex; align-items: center; justify-content: center; padding: 30px; overflow: hidden; }
.symbol-visual svg { max-width: 100%; height: auto; max-height: 320px; }
.symbol-visual img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
}
.symbol-text { padding: 48px; background: var(--off-black); }
.symbol-text h3 { font-family: var(--font-display); font-size: 40px; color: var(--white); margin: 8px 0 18px; line-height: 1; letter-spacing: 0.02em; }
.symbol-text p  { font-family: var(--font-body); font-size: 15px; color: var(--light-grey); line-height: 1.7; }
.sensitivity { display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; padding: 6px 10px; border: 1px solid currentColor; margin-top: 18px; }

.pattern-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  max-width: 1100px; margin: 0 auto;
}
.pcard { text-align: left; }
.pcard__sq {
  width: 100%; aspect-ratio: 1;
  background: var(--off-black);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pcard:hover .pcard__sq { transform: scale(1.04); box-shadow: 0 0 0 2px var(--volt); }
.pcard__sq svg,
.pcard__sq img {
  width: 80%;
  height: 80%;
}
.pcard__sq img {
  object-fit: cover;
  filter: invert(1);
  opacity: 0.85;
}
.pcard h4 { font-family: var(--font-display); font-size: 18px; color: var(--white); margin: 16px 0 6px; letter-spacing: 0.04em; }
.pcard p  { font-family: var(--font-body); font-size: 12px; color: var(--light-grey); margin: 0 0 10px; line-height: 1.55; }
.pcard__tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; }

.survey-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; }
.scard { background: var(--dark-grey); padding: 40px; border-top: 3px solid var(--volt); }
.scard h4 { font-family: var(--font-display); font-size: 20px; color: var(--white); margin: 0 0 24px; letter-spacing: 0.04em; }
.bar-row { margin-bottom: 14px; }
.bar-row__lbl {
  font-family: var(--font-mono); font-size: 10px; color: var(--light-grey);
  letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; justify-content: space-between; margin-bottom: 6px;
}
.bar-row__track { background: var(--mid-grey); height: 10px; width: 100%; position: relative; overflow: hidden; }
.bar-row__fill  { height: 100%; background: var(--volt); transform-origin: left; }
.scard--red .bar-row__fill  { background: var(--red); }
.scard--red .scard { border-top-color: var(--red); }
.scard--gold .bar-row__fill { background: var(--gold); }

.split-row { display: flex; height: 60px; gap: 2px; margin-bottom: 16px; }
.split { display: flex; align-items: flex-end; justify-content: center; padding: 6px; font-family: var(--font-mono); font-size: 10px; color: var(--black); letter-spacing: 0.08em; }
.scard__src { font-family: var(--font-mono); font-size: 9px; color: var(--light-grey); margin-top: 16px; letter-spacing: 0.08em; }

@media (max-width: 900px) {
  .culture-section { padding: 64px 28px; }
  .colour-grid { grid-template-columns: 1fr 1fr; }
  .symbol-entry, .symbol-entry--alt { grid-template-columns: 1fr; direction: ltr; }
  .pattern-grid { grid-template-columns: 1fr 1fr; }
  .survey-grid { grid-template-columns: 1fr; }
  .symbol-text, .symbol-visual { padding: 28px; min-height: auto; }
  .symbol-visual img { max-height: 420px; }
}

/* ============ ABOUT ============ */
.about-section { padding: 100px 80px; }
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; max-width: 1280px; margin: 0 auto; align-items: start; }
.info-block { background: var(--off-black); border-left: 3px solid var(--volt); padding: 40px; }
.info-row { padding: 14px 0; border-bottom: 1px solid var(--mid-grey); display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; align-items: baseline; }
.info-row:last-child { border-bottom: 0; }
.info-row__k { font-family: var(--font-mono); font-size: 10px; color: var(--light-grey); letter-spacing: 0.12em; text-transform: uppercase; }
.info-row__v { font-family: var(--font-body); font-size: 15px; color: var(--white); }

.three-research { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1280px; margin: 0 auto; }
.rcard { background: var(--dark-grey); padding: 36px; border-top: 3px solid var(--volt); }
.rcard--red  { border-top-color: var(--red); }
.rcard--gold { border-top-color: var(--gold); }
.rcard h3 { font-family: var(--font-display); font-size: 22px; color: var(--white); margin: 0 0 16px; letter-spacing: 0.04em; }
.rcard p { font-family: var(--font-body); font-size: 14px; color: var(--light-grey); line-height: 1.7; margin: 0; }

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 48px 64px;
  background: var(--off-black);
  border: 2px solid var(--volt);
  margin-top: 56px;
  max-width: 1280px; margin-left: auto; margin-right: auto;
}
.cta-band__h { font-family: var(--font-display); font-size: 36px; color: var(--white); margin: 0; letter-spacing: 0.02em; }

.bib-list { max-width: 900px; margin: 0 auto; }
.bib-entry { padding: 18px 0; border-bottom: 1px solid var(--mid-grey); font-family: var(--font-body); font-size: 14px; color: var(--light-grey); line-height: 1.8; }
.bib-entry a { color: var(--volt); text-decoration: underline; }
.bib-entry:last-child { border-bottom: 0; }

.note-box {
  max-width: 640px; margin: 0 auto;
  border: 1px solid var(--mid-grey);
  padding: 40px;
}
.note-box h3 { font-family: var(--font-display); font-size: 22px; color: var(--white); margin: 0 0 16px; letter-spacing: 0.04em; }
.note-box p  { font-family: var(--font-body); font-size: 14px; color: var(--light-grey); line-height: 1.7; margin: 0 0 14px; }

@media (max-width: 900px) {
  .about-section { padding: 64px 28px; }
  .two-col, .three-research { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; gap: 56px; }
  .pillars__grid { grid-template-columns: 1fr; }
  .signpost { padding: 0 32px; flex-wrap: wrap; height: auto; padding-top: 20px; padding-bottom: 20px; gap: 8px; }
  .signpost__desc { text-align: left; }
  .footer__row { grid-template-columns: 1fr; padding: 0 32px 32px; }
  .footer__links { justify-content: flex-start; }
  .footer__meta { text-align: left; }
  .page-header { padding: 48px 28px 32px; }
  .story, .pillars { padding: 72px 28px; }
  .hero__h { font-size: 104px; }
}

@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav__brand { font-size: 18px; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .hero__h { font-size: 78px; }
  .builder-mobile-fallback h1 { font-size: 44px; }
}

@media (max-width: 420px) {
  .nav__brand { font-size: 16px; }
  .hero__h { font-size: 64px; }
  .hero__sub { font-size: 16px; }
}
