/* ============================================================
   VIBETRIBE STUDIO · vibetribe.studio
   A scroll-driven, 3D story of the studio and its three apps.

   Contract with home.js: without the .motion class (no JS, the
   ?motion=off hook, or reduced motion) every scene renders as a
   flat, finished composition in normal flow. home.js adds
   html.motion, which turns each scene into a sticky,
   scroll-scrubbed 3D stage.
   ============================================================ */
:root {
  --bg: #030304;
  --bg-2: #0a0a0c;
  --card: #121214;
  --card-2: #1a1a1d;

  --border: rgba(255, 255, 255, 0.10);
  --border-2: rgba(255, 255, 255, 0.20);

  --text: #ffffff;
  --text-2: #a7a7b1;
  --text-3: #74747e;
  --text-4: #52525b;
  --on-accent: #000000;

  --accent: #e4e4e7;
  --accent-2: #ffffff;

  --green: #4ade80;
  --green-bg: rgba(74, 222, 128, 0.12);
  --blue: #60a5fa;
  --purple: #a78bfa;
  --orange: #fb923c;
  --red: #f87171;

  --tint-1: rgba(255, 255, 255, 0.03);
  --tint-2: rgba(255, 255, 255, 0.07);
  --tint-3: rgba(255, 255, 255, 0.12);
  --tint-4: rgba(255, 255, 255, 0.20);

  --font-display: "Inter", -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Menlo", "Consolas", monospace;

  --header-h: 64px;
  --gutter: max(32px, calc((100vw - 1320px) / 2 + 32px));
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Each scene re-tints these */
  --tone: #e4e4e7;
  --tone-2: #ffffff;
  --tone-rgb: 228, 228, 231;
  --modal-accent: var(--green);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* clip (not hidden) so position: sticky keeps working */
body { overflow-x: clip; padding-top: var(--header-h); }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 30% 0%, rgba(255, 255, 255, 0.08), transparent 65%),
    radial-gradient(45% 45% at 100% 100%, rgba(255, 255, 255, 0.04), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
main { position: relative; z-index: 1; }
section { scroll-margin-top: var(--header-h); }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ============================================================
   TONES
   ============================================================ */
[data-tone="itch"]   { --tone: #fb923c; --tone-2: #fdba74; --tone-3: #fed7aa; --tone-rgb: 251, 146, 60; }
[data-tone="apex"]   { --tone: #60a5fa; --tone-2: #93c5fd; --tone-3: #bfdbfe; --tone-rgb: 96, 165, 250; }
[data-tone="nebula"] { --tone: #a78bfa; --tone-2: #c4b5fd; --tone-3: #ddd6fe; --tone-rgb: 167, 139, 250; }
[data-tone="artha"]  { --tone: #4ade80; --tone-2: #86efac; --tone-3: #bbf7d0; --tone-rgb: 74, 222, 128; }
[data-tone="studio"] { --tone: #e4e4e7; --tone-2: #ffffff; --tone-3: #ffffff; --tone-rgb: 228, 228, 231; }

/* ============================================================
   SHARED PIECES
   ============================================================ */
.shell {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .pip {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--tone);
  box-shadow: 0 0 0 4px rgba(var(--tone-rgb), 0.16);
}
.eyebrow .pip.green { background: var(--green); box-shadow: 0 0 0 4px var(--green-bg); }
.chrome-text {
  background: linear-gradient(180deg, #fff 0%, #e4e4e7 30%, #a1a1aa 70%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tri-text {
  background: linear-gradient(100deg, #93c5fd 0%, #a78bfa 45%, #4ade80 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.accent {
  background: linear-gradient(100deg, var(--tone-3, #fff) 0%, var(--tone) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn:hover { background: var(--tint-2); border-color: var(--tint-4); }
.btn:active { transform: scale(0.98); }
.btn svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn.primary { background: var(--accent-2); color: var(--on-accent); border-color: var(--accent-2); font-weight: 600; }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.btn.tone {
  background: var(--tone);
  border-color: var(--tone);
  color: #05060a;
  font-weight: 600;
  box-shadow: 0 12px 34px -12px rgba(var(--tone-rgb), 0.75);
}
.btn.tone:hover { background: var(--tone-2); border-color: var(--tone-2); }
.btn:focus-visible, .reach-out:focus-visible, .nav-links a:focus-visible { outline: 2px solid var(--tone-2); outline-offset: 3px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 0 4px rgba(var(--tone-rgb), 0.15);
}
.status.work i { background: var(--orange); box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(5, 5, 7, 0.6);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
}
.nav .brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 600; }
.nav .brand-mark { height: 30px; width: auto; display: block; }
.nav .brand-mark .vibe-fill { fill: var(--text); }
.nav .brand-mark .vibe-text { fill: var(--bg); }
.nav .brand-mark .tribe-text { fill: var(--text); }
.nav .brand-mark .frame { stroke: var(--text); fill: none; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-2);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); opacity: 0.85; }
.nav-links a:hover, .nav-links a.on { color: var(--text); background: var(--tint-1); }
.reach-out {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--tint-1);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.reach-out:hover { background: var(--tint-2); border-color: var(--tint-4); }
.reach-out .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-bg);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.progress {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, #fb923c, #60a5fa 35%, #a78bfa 62%, #4ade80 88%, #fff);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.motion .progress { display: block; }

/* ============================================================
   3D STAGES
   A .fit box holds a fixed-size .stage, scaled by --s (set in JS)
   so a 1280 x 800 app window keeps its proportions at any width.
   The stage owns the perspective; .cam / .rig / .spin are nested
   3D groups the timelines move independently.
   ============================================================ */
.fit { position: relative; --s: 0.5; }
.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--w) * 1px);
  height: calc(var(--h) * 1px);
  transform: translate(-50%, -50%) scale(var(--s));
  perspective: 2600px;
  perspective-origin: 50% 40%;
}
.cam, .rig, .spin {
  position: absolute;
  left: 0;
  top: 0;
  width: 1280px;
  height: 800px;
  transform-style: preserve-3d;
}
.stage > .cam, .stage > .rig { left: calc(50% - 640px); top: calc(50% - 400px); }

.floor {
  position: absolute;
  left: -560px;
  right: -560px;
  top: -400px;
  bottom: -400px;
  transform: translateZ(-90px);
  pointer-events: none;
  background-image:
    radial-gradient(closest-side, rgba(var(--tone-rgb), 0.2), transparent 70%),
    linear-gradient(rgba(var(--tone-rgb), 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--tone-rgb), 0.14) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
  background-position: center, center, center;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  opacity: 0.6;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 72px 0 40px; }
.hero .pin { position: relative; }
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 500;
  margin: 22px 0 0;
  padding-bottom: 0.06em;
}
.hero-copy h1 .ln { display: inline-block; }
.hero-copy h1 em { font-style: italic; font-weight: 300; padding-right: 0.06em; }
.hero-copy .lede {
  margin: 24px auto 0;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
}
.hero-copy .lede strong { color: var(--text); font-weight: 500; }
.cta-row { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

.deck-fit { height: clamp(260px, 44vw, 640px); margin-top: 40px; }
.deck-slot {
  position: absolute;
  left: 160px;
  top: 100px;
  width: 960px;
  height: 600px;
  transform-style: preserve-3d;
  transform: translateX(var(--x, 0px)) rotateY(var(--ry, 0deg)) scale(0.62);
}
.deck-slot[data-i="0"] { --x: -660px; --ry: 16deg; }
.deck-slot[data-i="2"] { --x: 660px; --ry: -16deg; }
.deck-win { position: absolute; inset: 0; border-radius: 10px; }
.deck-win .a-win { transform: scale(0.75); transform-origin: 0 0; pointer-events: none; }
.deck-win::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%);
  pointer-events: none;
}
.deck-label {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 34px);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 30px;
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.deck-label b {
  font-family: var(--font-display);
  font-size: 52px;
  letter-spacing: -0.035em;
  text-transform: none;
  font-weight: 500;
  color: var(--text);
}
.deck-label b i { font-style: normal; color: var(--c); }

.hero-beat {
  max-width: 780px;
  margin: 72px auto 0;
  padding: 0 32px;
  text-align: center;
}
.hero-beat h2, .copy h2, .cta-inner > h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 18px 0 0;
  padding-bottom: 0.06em;
}
.hero-beat p, .copy .beat {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
}
.copy .beat b { display: block; color: var(--text); font-weight: 500; margin-bottom: 4px; }
.scroll-hint { display: none; }

/* ============================================================
   SCENES (static layout first)
   ============================================================ */
.scene { position: relative; padding: 96px 0; }
/* The 3D floors reach past the stage; clip sideways (clip keeps sticky working) */
.hero, .scene { overflow-x: clip; }
.scene::before {
  content: "";
  position: absolute;
  right: -10%;
  top: 10%;
  width: 70%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(var(--tone-rgb), 0.10), transparent);
  pointer-events: none;
}
.scene .pin {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
.scene .fit { height: clamp(320px, 46vw, 680px); }
.copy { position: relative; z-index: 2; }
.beats { margin-top: 4px; }
.copy-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.copy .status { margin-top: 22px; }

/* ============================================================
   MOTION LAYOUT: sticky, full-viewport stages
   ============================================================ */
.motion .hero,
.motion .scene { height: var(--len); padding: 0; }
.motion .hero .pin,
.motion .scene .pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  overflow: hidden;
}
.motion .scene .pin {
  max-width: none;
  padding-left: var(--gutter);
  padding-right: 0;
  gap: 24px;
}
.motion .scene .fit { height: 100%; }

.motion .hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--header-h) + clamp(24px, 5vh, 64px));
}
.motion .deck-fit {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  bottom: 0;
  height: auto;
  margin: 0;
}
.motion .hero-beat {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: calc(var(--header-h) + 5vh);
  margin: 0 auto;
  visibility: hidden;
}
.motion .hero-beat h2 { font-size: clamp(30px, 3vw, 46px); }
.motion .hero-beat p { font-size: 16px; margin-top: 12px; }

.motion .beats { display: grid; }
.motion .beat { grid-area: 1 / 1; }

.motion .scroll-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-3);
}
.scroll-hint i {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, #fff, transparent);
  animation: hint 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes hint { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.motion .caret { display: inline-block; }

/* ============================================================
   CALLOUTS: 2D labels that track anchors inside the 3D layers
   ============================================================ */
.callouts { display: none; }
.motion .callouts { display: block; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.co {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  visibility: hidden;
  will-change: transform;
}
.co[data-side="r"] { flex-direction: row-reverse; }
.co-box {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(8, 9, 14, 0.8);
  border: 1px solid rgba(var(--tone-rgb), 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.85);
}
.co-box b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.co-box small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.co-line { width: 40px; height: 1px; background: linear-gradient(90deg, rgba(var(--tone-rgb), 0.15), rgba(var(--tone-rgb), 0.95)); }
.co[data-side="r"] .co-line { background: linear-gradient(270deg, rgba(var(--tone-rgb), 0.15), rgba(var(--tone-rgb), 0.95)); }
.co-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--tone-3);
  box-shadow: 0 0 0 4px rgba(var(--tone-rgb), 0.3), 0 0 16px rgba(var(--tone-rgb), 0.9);
}
.anc { position: absolute; left: 0; top: 0; width: 1px; height: 1px; pointer-events: none; }
.anc.r { left: 100%; top: 50%; }
.anc.rt { left: 100%; top: 18px; }

/* ============================================================
   CTA + WALL
   ============================================================ */
.cta { position: relative; padding: 150px 0 110px; text-align: center; overflow: hidden; }
.cta-glow {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 1100px;
  height: 760px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(40% 40% at 30% 50%, rgba(96, 165, 250, 0.14), transparent),
    radial-gradient(40% 40% at 50% 40%, rgba(167, 139, 250, 0.16), transparent),
    radial-gradient(40% 40% at 70% 55%, rgba(74, 222, 128, 0.12), transparent);
  pointer-events: none;
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-inner > h2 { font-size: clamp(44px, 6.6vw, 92px); line-height: 1; letter-spacing: -0.045em; margin-top: 22px; }
.cta-inner > p { margin: 26px auto 0; max-width: 600px; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.cta-actions { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }

.wall-fit { height: clamp(240px, 36vw, 540px); margin-top: 64px; }
.wall { perspective: 1500px; perspective-origin: 50% 50%; }
.wall-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: translateZ(1300px);
}
.wall-slot {
  position: absolute;
  left: -269px;
  top: -168px;
  width: 538px;
  height: 336px;
  transform-style: preserve-3d;
  transform: rotateY(var(--a)) translateZ(-1300px);
}
.wall-item {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  transform-style: preserve-3d;
}
.wall-item .a-win { transform: scale(0.42); transform-origin: 0 0; pointer-events: none; }
.wall-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 35%);
  pointer-events: none;
}
.wall-cap {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 18px);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}
.wall-cap b { color: var(--text); font-weight: 600; letter-spacing: 0.12em; }

.meta-row {
  margin: 96px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 860px;
  padding-top: 36px;
  border-top: 1px solid var(--tint-2);
}
.meta-row .cell { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.meta-row .lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}
.meta-row .val { font-size: 16px; font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { position: relative; z-index: 1; padding: 36px 0 56px; border-top: 1px solid var(--tint-2); }
footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
footer .right { display: inline-flex; gap: 22px; align-items: center; flex-wrap: wrap; }
footer a { transition: color 0.2s ease; }
footer a:hover { color: var(--text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
}
@media (max-width: 899px) {
  .shell { padding: 0 20px; }
  .nav { font-size: 10px; gap: 12px; }
  .nav .brand-label { display: none; }
  .reach-out { padding: 8px 14px; font-size: 10px; letter-spacing: 0.16em; }

  .hero { padding-top: 48px; }
  .hero-copy { padding: 0 20px; }
  .hero-copy .lede { font-size: 16px; }
  .deck-fit { height: 56vw; }
  .hero-beat { padding: 0 20px; }

  .scene { padding: 64px 0; }
  .scene .pin { grid-template-columns: 1fr; gap: 20px; padding: 0 20px; }
  .scene .fit { height: 64vw; margin: 0 -20px; }
  .hero-beat h2, .copy h2 { font-size: 30px; }
  .hero-beat p, .copy .beat { font-size: 15.5px; }

  .motion .scene .pin {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
    gap: 6px;
    padding: calc(var(--header-h) + 22px) 20px 8px;
  }
  .motion .scene .fit { height: auto; margin: 0 -20px; }
  .motion .copy h2 { font-size: 26px; margin-top: 12px; }
  .motion .copy .beat { font-size: 14.5px; margin-top: 10px; }
  .motion .copy-actions { margin-top: 14px; }
  .motion .copy-actions .btn { padding: 10px 16px; font-size: 13px; }
  .motion .copy .status { display: none; }

  .motion .hero-copy { top: calc(var(--header-h) + 28px); }
  .motion .hero-copy h1 { font-size: 44px; }
  .motion .hero-beat { top: calc(var(--header-h) + 22px); padding: 0 20px; }
  .motion .hero-beat h2 { font-size: 27px; }
  .motion .hero-beat p { font-size: 14.5px; margin-top: 10px; }
  .motion .callouts { display: none; }

  .cta { padding: 110px 0 96px; }
  .cta-inner > p { font-size: 16px; }
  .wall-fit { height: 50vw; margin-top: 44px; }
  .meta-row { grid-template-columns: 1fr; gap: 26px; margin-top: 64px; }
  footer .shell { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .reach-out .dot, .scroll-hint i, .caret { animation: none; }
}
.wall-fly { position: absolute; inset: 0; transform-style: preserve-3d; }
