/* ═══════════════════════════════════════════════════
   proofofboredom.com — style.css  v2
   Sleek. Modern. Touch of wild.
   Dark default. Light mode via [data-theme="light"].
   ═══════════════════════════════════════════════════ */

/* Inter — loaded here so every page picks it up for light mode */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

/* ── TOKENS ── */
:root {
  --bg:         #06080d;
  --bg-2:       #0c1018;
  --bg-3:       #121824;

  --border:     rgba(138,153,168,0.09);
  --border-mid: rgba(138,153,168,0.17);

  --text:       #edeae0;
  --text-2:     rgba(237,234,224,0.66);
  --text-3:     #788797;

  --accent:     #d63031;
  --accent-2:   #e67e22;
  --gold:       #d4a853;
  --ice:        #b8cdd6;

  --sv-blue:    #0f47af;
  --habs-red:   #af1e2d;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Cormorant Garamond', Georgia, serif;
  --font-mono:    'Space Mono', monospace;

  --ease:     cubic-bezier(0.4,0,0.2,1);
  --ease-out: cubic-bezier(0.0,0,0.2,1);
  --dur:      0.35s;

  --shadow-text: 0 4px 48px rgba(6,8,13,0.97), 0 2px 14px rgba(6,8,13,0.85);
}

[data-theme="light"] {
  --bg:         #ffffff;
  --bg-2:       #fafafa;
  --bg-3:       #f4f4f3;
  --border:     rgba(0,0,0,0.07);
  --border-mid: rgba(0,0,0,0.13);

  --text:       #0f0f0f;
  --text-2:     rgba(15,15,15,0.92);
  --text-3:     #737373;

  --accent:     #b03020;
  --accent-2:   #c86a10;
  --gold:       #b8882a;
  --ice:        #4a6a7a;

  --shadow-text: 0 2px 20px rgba(255,255,255,0.95), 0 1px 8px rgba(255,255,255,0.8);

  /* Light mode uses Inter for body — cleaner on white */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

/* ── GRAIN TEXTURE — organic, not digital ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
}
[data-theme="light"] body::after {
  display: none; /* pure white — no grain in light mode */
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }

/* ── NAV ── */
nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: linear-gradient(to bottom, rgba(6,8,13,0.97), transparent);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
/* Light mode: give nav a clearly visible solid white background with a
   bottom border so it doesn't dissolve into the white hero-overlay area */
[data-theme="light"] nav {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
nav.scrolled {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--text-3);
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.nav-logo:hover { color: var(--text); }
/* Darker text for legibility on the white light-mode nav */
[data-theme="light"] .nav-logo       { color: var(--text-2); }
[data-theme="light"] .nav-links a    { color: var(--text-2); }

.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color var(--dur) var(--ease);
}
/* Underline slide-in on hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--text-3);
  transition: width var(--dur) var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-links a.external {
  color: var(--gold);
  border-bottom: 1px solid rgba(212,168,83,0.32);
  padding-bottom: 2px;
}
.nav-links a.external:hover { border-color: var(--gold); color: var(--gold); }
.nav-links a.external::after { display: none; }

/* ── HERO ── */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}
#hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.58) saturate(0.60);
  transition: filter var(--dur) var(--ease);
}
[data-theme="light"] #hero-video { filter: brightness(0.78) saturate(0.58); }

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 18%, rgba(6,8,13,0.60) 100%),
    linear-gradient(to bottom,
      rgba(6,8,13,0.38)  0%,
      rgba(6,8,13,0.00) 35%,
      rgba(6,8,13,0.55) 62%,
      rgba(6,8,13,1.00) 100%);
  transition: background var(--dur) var(--ease);
}
[data-theme="light"] .hero-overlay {
  background:
    radial-gradient(ellipse at center, transparent 25%, rgba(242,239,232,0.38) 100%),
    linear-gradient(to bottom,
      rgba(242,239,232,0.28)  0%,
      rgba(242,239,232,0.00) 35%,
      rgba(242,239,232,0.60) 62%,
      rgba(242,239,232,1.00) 100%);
}
.hero-overlay::before, .hero-overlay::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 5vh;
  background: var(--bg);
  transition: background var(--dur) var(--ease);
}
.hero-overlay::before { top: 0; }
.hero-overlay::after  { bottom: 0; }

.hero-content {
  position: absolute;
  bottom: 14vh;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 90%;
  max-width: 960px;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fadeUp 1s 0.5s ease forwards;
}

/* ── HERO TITLE — the wild typography moment ── */
.hero-title {
  line-height: 0.88;
  color: var(--text);
  text-shadow: var(--shadow-text);
  opacity: 0;
  animation: fadeUp 1s 0.8s ease forwards;
}
.hero-title span { display: block; }

/* "PROOF" — industrial Bebas block */
.hero-title span:first-child {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 15vw, 13rem);
  letter-spacing: 0.04em;
  color: var(--text);
}

/* "of Boredom" — flowing Crimson italic, the contrast */
.hero-title span:last-child {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(4rem, 11.5vw, 10.5rem);
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.05;
}

.hero-sub {
  margin-top: 2rem;
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ice);
  letter-spacing: 0.02em;
  text-shadow: var(--shadow-text);
  opacity: 0;
  animation: fadeUp 1s 1.1s ease forwards;
}
[data-theme="light"] .hero-sub { color: var(--text-3); }

.video-credit {
  position: absolute;
  bottom: 8vh; right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: rgba(138,153,168,0.35);
  text-decoration: none;
  opacity: 0;
  animation: fadeIn 1s 2.5s ease forwards;
  transition: color var(--dur) var(--ease);
}
.video-credit:hover { color: var(--text-3); }

.scroll-hint {
  position: absolute;
  bottom: 7.5vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s 2s ease forwards;
}
.scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-3);
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--text-3), transparent);
  animation: scrollPulse 2.2s 2.5s ease-in-out infinite;
}

/* ── IDENTITY ── */
#identity {
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 3rem;
  transition: background var(--dur) var(--ease);
}
.identity-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 2rem;
}
.identity-item { display: flex; flex-direction: column; gap: 0.4rem; }
.identity-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.identity-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  letter-spacing: 0.06em;
  color: var(--text);
}
.identity-value.gold     { color: var(--gold); }
.identity-value.sv-blue  { color: var(--sv-blue); }
.identity-value.habs-red { color: var(--habs-red); }
.identity-value.accent   { color: var(--accent); }

/* Light-mode story chapter cards — visible on pure white */
[data-theme="light"] .story-chapter {
  background: #f2f1f0;
  border-radius: 2px;
  padding: 1.5rem 1.8rem 2rem 1.4rem;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

/* ── SECTION TAG ── */
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 3rem;
  padding-left: 3rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.section-tag::before {
  content: '';
  display: inline-block;
  width: 1.8rem;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
  opacity: 0.6;
}

/* ── STORY ── */
#story { padding: 8rem 0 6rem; max-width: 1100px; margin: 0 auto; }

.story-grid { display: grid; grid-template-columns: 1fr 1fr; }
.story-left  { padding: 0 4rem 0 3rem; border-right: 1px solid var(--border); }
.story-right { padding: 0 3rem 0 4rem; }

.story-chapter {
  margin-bottom: 4.5rem;
  padding-left: 1.4rem;
  border-left: 2px solid var(--border);
  transition: border-left-color var(--dur) var(--ease);
}
.story-chapter:hover { border-left-color: var(--text-3); }

/* Giant outlined number — the wild editorial watermark */
.chapter-number {
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 16rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(138,153,168,0.14);
  line-height: 0.82;
  margin-bottom: -2rem;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.02em;
  transition: -webkit-text-stroke-color var(--dur) var(--ease);
}
[data-theme="light"] .chapter-number {
  -webkit-text-stroke: 1.5px rgba(0,0,0,0.22);
}
.story-chapter:hover .chapter-number {
  -webkit-text-stroke-color: rgba(138,153,168,0.22);
}

.chapter-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.story-divider { display: none; } /* replaced by left border */

.chapter-body {
  font-size: 1.18rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-2);
}
.chapter-body em { color: var(--gold); font-style: italic; }

/* ── PULL QUOTE ── */
.pull-quote {
  grid-column: 1/-1;
  padding: 6rem 3rem 5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

/* Giant decorative quotation mark */
.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.15em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: clamp(14rem, 28vw, 26rem);
  font-style: normal;
  line-height: 1;
  color: var(--text-3);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
}
.pull-quote p {
  position: relative;
  z-index: 1;
  font-size: clamp(1.65rem, 3.5vw, 2.5rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.48;
  color: var(--text);
  max-width: 800px;
  margin: 0 auto;
}
.pull-quote cite {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  font-style: normal;
}

/* ── LINK OUT ── */
#link-out {
  padding: 8rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
#link-out::before {
  content: '';
  position: absolute;
  top: 0; left: 3rem; right: 3rem;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--border-mid) 25%,
    var(--border-mid) 75%,
    transparent 100%);
}

.link-out-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 1.6rem;
  letter-spacing: 0.02em;
}
.link-out-copy p {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.82;
  color: var(--text-2);
  margin-bottom: 2.2rem;
}
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-mid);
  padding-bottom: 0.4rem;
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    gap var(--dur) var(--ease);
}
.cta-link:hover { color: var(--gold); border-color: var(--gold); gap: 1.5rem; }
.cta-arrow { transition: transform var(--dur) var(--ease); }
.cta-link:hover .cta-arrow { transform: translateX(5px); }

.link-out-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2.8rem;
  position: relative;
  overflow: hidden;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform 0.2s var(--ease);
}
.link-out-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
  transform: translateY(-4px);
}
.link-out-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border-mid);
}
.card-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.2rem;
}
.card-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.card-body {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-2);
}
.card-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border-mid);
  padding: 0.3rem 0.7rem;
  border-radius: 1px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.link-out-card:hover .tag { border-color: rgba(214,48,49,0.25); }

/* ── CONTACT ── */
#contact {
  padding: 8rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
#contact::before {
  content: '';
  position: absolute;
  top: 0; left: 3rem; right: 3rem;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--border-mid) 25%,
    var(--border-mid) 75%,
    transparent 100%);
}

.contact-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 1.6rem;
}
.contact-copy p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.82;
  color: var(--text-2);
  margin-bottom: 2rem;
}
.contact-reasons {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}
.contact-reasons li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.5;
}
.contact-reasons li::before {
  content: '→';
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-3);
  margin-top: 0.28rem;
  flex-shrink: 0;
}

.contact-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2.8rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform 0.2s var(--ease);
}
.contact-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
  transform: translateY(-4px);
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border-mid);
}
.contact-card-icon {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  display: block;
  opacity: 0.75;
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.contact-card p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 2rem;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.88rem 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: 1px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--dur) var(--ease),
    gap var(--dur) var(--ease),
    transform 0.15s var(--ease);
}
.contact-btn:hover {
  background: var(--accent-2);
  gap: 0.9rem;
  transform: translateY(-1px);
}
.contact-btn:active { transform: translateY(0); }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 201;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-3);
  border-radius: 1px;
  transition:
    transform  var(--dur) var(--ease),
    opacity    var(--dur) var(--ease),
    background var(--dur) var(--ease);
  transform-origin: center;
}
nav.nav-open .nav-hamburger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  background: var(--text);
}
nav.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
nav.nav-open .nav-hamburger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  background: var(--text);
}
nav.nav-open {
  background: var(--bg) !important;
  border-bottom: 1px solid var(--border);
}

/* ── FLOATING CONTROLS ── */
#controls {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
}
.ctrl-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--bg-3);
  border: 1px solid var(--border-mid);
  border-radius: 2px;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  white-space: nowrap;
  user-select: none;
  transition:
    color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform 0.15s var(--ease);
}
.ctrl-btn:hover {
  color: var(--text);
  border-color: var(--text-3);
  transform: translateY(-1px);
}
.ctrl-btn:active { transform: translateY(0); }
.ctrl-icon { font-size: 0.9rem; line-height: 1; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
/* Decorative watermark */
footer::before {
  content: 'POB';
  position: absolute;
  right: -0.08em;
  bottom: -0.25em;
  font-family: var(--font-display);
  font-size: clamp(7rem, 14vw, 13rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  letter-spacing: 0.04em;
}
.footer-left {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
  position: relative;
  z-index: 1;
}
.footer-right {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  opacity: 0.45;
  position: relative;
  z-index: 1;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.3; } 50% { opacity: 1; }
}
/* (marquee removed — identity is static grid) */

/* ── RESPONSIVE ── */

@media (max-width: 900px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { gap: 1.5rem; }

  /* Identity: 2-col grid with breathing room on medium screens */
  #identity { padding: 3rem 2rem; }
  .identity-inner { grid-template-columns: repeat(2,1fr); gap: 1.6rem; }

  .story-grid { grid-template-columns: 1fr; }
  .story-left  {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem 3.5rem;
  }
  .story-right { padding: 3.5rem 1.5rem 0; }
  .section-tag { padding-left: 1.5rem; }
  #story { padding: 6rem 0 4rem; }

  #link-out {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 5rem 1.5rem;
  }
  #link-out::before { left: 1.5rem; right: 1.5rem; }

  #contact {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 5rem 1.5rem;
  }
  #contact::before { left: 1.5rem; right: 1.5rem; }

  footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  #controls { bottom: 1.2rem; right: 1.2rem; }

  .chapter-number { font-size: clamp(4.5rem, 14vw, 8rem); }
  .pull-quote::before { font-size: clamp(10rem, 22vw, 16rem); }
}

/* Mobile nav — hamburger at 768px and below (after 900px so it wins the cascade) */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }

  .nav-hamburger { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    z-index: 198;
  }

  .nav-links a {
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    color: var(--text-2);
  }

  /* show the external link inside the full-screen overlay */
  .nav-links a.external { display: flex; }

  nav.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open { overflow: hidden; }

  /* compact floating controls */
  #controls { bottom: 1rem; right: 1rem; gap: 0.35rem; }
  .ctrl-btn  { padding: 0.42rem 0.65rem; font-size: 0.54rem; }
}

@media (max-width: 480px) {
  .hero-title span:first-child { font-size: clamp(4rem, 18vw, 6rem); }
  .hero-title span:last-child  { font-size: clamp(3rem, 14vw, 5rem); }
  #identity { padding: 2rem 1.5rem; }
  .identity-inner { gap: 1rem; }
  .identity-value { font-size: clamp(1.4rem, 6vw, 2rem); }
  .pull-quote { padding: 4rem 1.5rem 3.5rem; }
  footer::before { font-size: 6rem; }
}

/* ── LIGHT MODE: Inter body — font-weight 400 overrides ── */
/* Dark mode keeps Cormorant Garamond at 300 untouched.    */
[data-theme="light"] .chapter-body,
[data-theme="light"] .link-out-copy p,
[data-theme="light"] .card-body,
[data-theme="light"] .contact-copy p,
[data-theme="light"] .contact-reasons li,
[data-theme="light"] .hero-sub,
[data-theme="light"] .pull-quote p {
  font-weight: 400;
  font-style: normal;
}

/* ── BILINGUAL VISIBILITY — global ── */
:root[lang="fr"] .en-only      { display: none; }
:root:not([lang="fr"]) .fr-only { display: none; }
