/* ==========================================================================
   NADIA'S DEPOT x MOTION REEL — unified stylesheet
   One type system: Archivo X (display) · Manrope (UI) · Instrument Serif (accent)
   · IBM Plex Mono (micro labels). One palette: coral page, cream ink, navy night.
   ========================================================================== */

@font-face {
  font-family: "Archivo X";
  font-style: normal;
  font-weight: 800 900;
  font-stretch: 125%;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/archivo/v25/k3kPo8UDI-1M0wlSV9XAw6lQkqWY8Q8EsLydOxI.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/manrope/v23/xn7gYHE41ni1AdIRggexSg.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/instrumentserif/v5/jizHRFtNs2ka5fXjeivQ4LroWlx-6zAjjH7M.woff2") format("woff2");
}

:root {
  --page: #e27657;      /* coral: hero + exit strip */
  --navy: #1f2e5c;      /* night: motion reel */
  --word: #f6ede1;      /* cream ink on navy and display words */
  --ui: #ffffff;        /* white ink on coral */
  --accent: #f0653f;
  --mid: rgba(246, 237, 225, 0.66);
  --line: rgba(246, 237, 225, 0.18);

  --display: "Archivo X", sans-serif;
  --body: "Manrope", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  /* set by the depot layout engine */
  --k: 1px; --n: 1px; --rail: 73px;
  --wordFS: 214px; --wordX: -5px; --wordB: 0px; --wordH: 214px;
  --c: 1px;

  --tone-bg: var(--page);
}

body[data-tone="cream"] { --tone-bg: var(--navy); }

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--page);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--page);
  color: var(--ui);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* entrance reveal (shared) */
html.js .rv { opacity: 0; }
html.ready .rv { opacity: 1; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ui); color: var(--page); padding: 8px 12px; border-radius: 6px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   SHARED HEADER
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: calc(58 * var(--n));
  padding: 0 calc(36 * var(--n));
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  color: var(--ui);
  transition: color 0.35s ease;
}
body[data-tone="cream"] .nav { color: var(--word); }

.nav a { color: inherit; text-decoration: none; }

.logo {
  font-family: var(--body);
  font-weight: 800;
  font-size: max(22px, calc(30 * var(--n)));
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo:hover, .links a:hover { opacity: 0.75; }

.links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: calc(30 * var(--n));
}
.links a {
  font-family: var(--body);
  font-weight: 700;
  font-size: max(12px, calc(15 * var(--n)));
  line-height: 1.2;
  padding: 6px 0;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: opacity 0.16s ease;
}

/* Vante-style outlined pill, Depot wording */
.talk,
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 16px;
  border: 1px solid currentColor;
  border-radius: 99px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.talk:hover,
.menu-btn:hover { background: currentColor; color: var(--tone-bg); }
.talk i, .menu-btn i {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.menu-btn b {
  display: block; width: 13px; height: 7px;
  border-top: 1px solid currentColor; border-bottom: 1px solid currentColor;
}
.menu-btn { display: none; }

@media (max-width: 819.98px) {
  .links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav { padding: 0 18px; }
  .nav-end { display: flex; gap: 8px; align-items: center; }
}
@media (min-width: 820px) {
  .nav-end { display: flex; align-items: center; }
}

/* mobile menu sheet */
.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--page);
  color: var(--ui);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 96px 28px 48px;
  animation: sheetIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.menu-sheet[hidden] { display: none; }
.menu-sheet a {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(40px, 12vw, 76px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ui);
  text-decoration: none;
  text-transform: lowercase;
}
.menu-sheet a em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  color: var(--navy);
}
@keyframes sheetIn { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   CHAPTER 1 — HERO: NADIA'S DEPOT (container pile, crane, cards)
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--page);
  isolation: isolate;
}

.word {
  position: absolute;
  left: var(--wordX);
  bottom: var(--wordB);
  height: var(--wordH);
  z-index: 1;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

#word {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: var(--wordFS);
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--word);
  white-space: nowrap;
}

#gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  touch-action: manipulation;
}

.card {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 calc(42 * var(--c));
  color: var(--ui);
  pointer-events: none;
  overflow: hidden;
}

.card > * {
  opacity: 0;
  transform: translateY(calc(10 * var(--c)));
  transition: opacity 0.28s ease-out, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.card.show > * { opacity: 1; transform: translateY(0); }
.card.show > :nth-child(1) { transition-delay: 0s; }
.card.show > :nth-child(2) { transition-delay: 0.06s; }
.card.show > :nth-child(3) { transition-delay: 0.12s; }
.card.show > :nth-child(4) { transition-delay: 0.18s; }

.card .eb {
  font-family: var(--body);
  font-weight: 800;
  font-size: max(11px, calc(12 * var(--c)));
  text-transform: uppercase;
  letter-spacing: 0.24em;
  line-height: 1.2;
  color: var(--ui);
}

.card h2 {
  font-family: var(--body);
  font-weight: 800;
  font-size: max(18px, calc(40 * var(--c)));
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-top: calc(12 * var(--c));
  color: var(--ui);
}
.card h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 1.08em;
}

.card p {
  font-family: var(--body);
  font-weight: 500;
  font-size: max(11px, calc(16 * var(--c)));
  line-height: 1.5;
  max-width: calc(440 * var(--c));
  color: rgba(255, 255, 255, 0.88);
  margin-top: calc(10 * var(--c));
}

.card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: calc(8 * var(--c));
  margin-top: calc(14 * var(--c));
}
.card .chip {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: calc(5 * var(--c)) calc(12 * var(--c));
  font-family: var(--body);
  font-weight: 700;
  font-size: max(11px, calc(12.5 * var(--c)));
  line-height: 1.2;
  color: var(--ui);
  white-space: nowrap;
}

.card .mail {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: calc(14 * var(--c));
  background: var(--accent);
  color: var(--ui);
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 800;
  font-size: max(11px, calc(13 * var(--c)));
  padding: max(5px, calc(7 * var(--c))) calc(16 * var(--c));
  min-height: 24px;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
  transition: opacity 0.16s ease;
}
.card .mail:hover { opacity: 0.88; }
.card .mail.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.card .mail.ghost:hover { background: rgba(255, 255, 255, 0.12); opacity: 1; }
.card .mail:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }

.card.tight { padding: 0 max(14px, calc(28 * var(--c))); }
.card.tight h2 { font-size: 16px; margin-top: 4px; }
.card.tight p { margin-top: 5px; line-height: 1.35; }
.card.tight .chips { gap: 5px; margin-top: 6px; }
.card.tight .chip { padding: 3px 9px; }
.card.tight .mail { margin-top: 6px; }

.pill {
  position: absolute;
  right: calc(34 * var(--n));
  top: calc(var(--rail) + 26 * var(--n));
  height: max(26px, calc(30 * var(--n)));
  padding: 0 calc(14 * var(--n));
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-family: var(--body);
  font-weight: 800;
  font-size: max(11px, calc(10 * var(--n)));
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ui);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 4;
  transition: opacity 0.25s ease;
}
.pill.hide { opacity: 0 !important; }

.eyebrow {
  position: absolute;
  left: calc(35 * var(--n));
  bottom: calc(14 * var(--n));
  z-index: 4;
  font-family: var(--body);
  font-weight: 800;
  font-size: max(11px, calc(10 * var(--n)));
  text-transform: uppercase;
  letter-spacing: 0.24em;
  line-height: 1.2;
  color: var(--ui);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 380px) {
  .eyebrow { letter-spacing: 0.16em; }
}

/* ==========================================================================
   CHAPTER 2 — MOTION REEL: VANTE (pinned scroll, video ribbon -> grid)
   Lives on navy. Same display face as the hero word.
   ========================================================================== */

.reel {
  position: relative;
  background: var(--navy);
  color: var(--word);
  z-index: 1;
}

.reel-track { position: relative; height: 900vh; }

.reel-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--navy);
}

#reel-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.r-hl {
  position: absolute;
  left: 0; right: 0;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(40px, 6.7vw, 130px);
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
  text-align: center;
  color: var(--word);
  will-change: transform;
}
#r-l1 { top: calc(50% - 0.98em); }
#r-l2 { top: calc(50% + 0.03em); }
#r-l1 span, #r-l2 span { display: inline-block; }
#r-l1 span { margin-right: 15vw; }
#r-l2 span { margin-left: 15vw; }

#r-cap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 15em;
  text-align: center;
  font-family: var(--body);
  font-size: clamp(9px, 0.74vw, 13px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--word);
}

#r-glow {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 42%;
  background: linear-gradient(rgba(246, 237, 225, 0.09), rgba(246, 237, 225, 0));
  pointer-events: none;
}

#r-cross {
  position: absolute;
  left: 32px; right: 32px;
  top: 37.5%;
  height: 1px;
  background: var(--line);
  pointer-events: none;
}
#r-cross i {
  position: absolute;
  left: 50%;
  top: -0.62em;
  margin-left: -0.3em;
  font: 400 13px var(--mono);
  color: var(--mid);
  background: var(--navy);
  padding: 0 0.3em;
  line-height: 1.2;
}

#r-rule {
  position: absolute;
  left: 3.5vw; right: 3.5vw;
  top: 50%;
  height: 1px;
  background: var(--line);
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

/* hint + pager sit just under the shared header */
.r-hint {
  position: absolute;
  left: 50%;
  top: calc(58px + 22px);
  transform: translateX(-50%);
  font: 400 11.5px var(--mono);
  letter-spacing: 0.06em;
  color: var(--word);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  white-space: nowrap;
  opacity: 1;
}
.r-hint:hover { opacity: 0.75; }

#r-pager {
  position: absolute;
  left: 36px;
  top: calc(58px + 18px);
  display: flex;
  pointer-events: auto;
}
#r-pager span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 36px;
  border: 1px solid var(--line);
  margin-left: -1px;
  font: 400 11px var(--mono);
  color: var(--mid);
}

#r-name {
  position: absolute;
  left: 0; top: 0;
  padding: 6px 11px;
  background: var(--word);
  color: var(--navy);
  border-radius: 99px;
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s;
  white-space: nowrap;
  z-index: 3;
}

.r-bot {
  position: absolute;
  left: 32px; right: 32px; bottom: 26px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  font-size: 12.5px;
  line-height: 1.35;
}
.r-bot p { color: var(--word); max-width: 21em; }
.r-mid {
  font: 400 11.5px var(--mono);
  letter-spacing: 0.06em;
  color: var(--word);
}
.r-mid s { text-decoration: none; color: var(--mid); margin: 0 0.9em; }
.r-more {
  justify-self: end;
  display: flex;
  gap: 12px;
  align-items: center;
  font: 400 11.5px var(--mono);
  letter-spacing: 0.06em;
  color: var(--word);
  text-decoration: none;
}
.r-more:after { content: ""; width: 22px; height: 1px; background: var(--word); }
.r-more:hover { opacity: 0.75; }

/* ==========================================================================
   CHAPTER 3 — EXIT STRIP (back to coral, back to the depot)
   ========================================================================== */

.exit {
  position: relative;
  background: var(--page);
  color: var(--ui);
  padding: clamp(56px, 9vw, 120px) 36px 28px;
  z-index: 1;
}
.exit-big {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(40px, 8.4vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--word);
}
.exit-big em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  color: var(--ui);
  letter-spacing: -0.01em;
}
.exit-big + .exit-sub {
  margin-top: 18px;
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-width: 30em;
}
.exit-row {
  margin-top: clamp(28px, 4vw, 52px);
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  padding-top: 22px;
  font: 400 12px var(--mono);
  letter-spacing: 0.06em;
  color: var(--ui);
}
.exit-row a { color: inherit; text-decoration: none; }
.exit-row a:hover { opacity: 0.75; }
.exit-row .talk { font-family: var(--body); font-size: 12.5px; }

/* ==========================================================================
   RESPONSIVE (tablet + mobile)
   ========================================================================== */

@media (max-width: 760px) {
  .r-bot {
    left: 18px; right: 18px; bottom: 18px;
    grid-template-columns: 1fr auto;
  }
  .r-mid, .r-hint, #r-pager { display: none; }
  .r-bot p { max-width: 17em; font-size: 11px; }
  .exit { padding-left: 20px; padding-right: 20px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .links { gap: 20px; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .rv { opacity: 1 !important; }
  .card > * { transition: none !important; transform: none !important; }
  .pill, .talk, .menu-btn { transition: none !important; }
  .menu-sheet { animation: none; }
}
