/* ============================================================
   Nimish Mehta — "One Flame"  ·  चार धागे, एक लौ
   A dark, lamplit room. One living flame. Text from shadow.
   ============================================================ */

:root {
  /* warm dark — the lamplit room */
  --void:        #13100c;   /* base night */
  --void-2:      #1a160f;   /* raised surface */
  --void-3:      #221c14;   /* panels, terminal */
  --ash:         #0d0b07;   /* deepest, footer */

  /* warm light — what the flame reveals */
  --cream:       #F2E8D6;   /* primary text (AAA on void) */
  --cream-soft:  #CDBFA6;   /* secondary */
  --cream-muted: #978A73;   /* meta, hints */

  /* the flame */
  --flame:       #E8833F;
  --flame-soft:  #C25B3A;
  --ember:       #F1A85C;
  --core:        #FFE6B0;

  /* the cool tech guest */
  --deep:        #5FB4A8;

  --line:        rgba(242,232,214,0.10);
  --line-soft:   rgba(242,232,214,0.055);

  /* type */
  --display: "Cormorant Garamond", Georgia, serif;
  --serif:   "Spectral", Georgia, "Times New Roman", serif;
  --sans:    "Inter", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;
  --deva:    "Noto Serif Devanagari", "Spectral", serif;
  --urdu:    "Noto Nastaliq Urdu", serif;

  /* space (8px base) */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px;
  --s5: 40px; --s6: 64px; --s7: 96px; --s8: 144px;

  --measure: 40rem;
  --measure-wide: 1120px;
  --radius: 10px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: 600ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* warm grain + vignette over the whole night */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%);
  mix-blend-mode: multiply;
}
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 1; opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

::selection { background: rgba(232,131,63,.28); color: var(--core); }

a { color: var(--ember); text-decoration: none; }
a:hover { color: var(--core); }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--void-3); color: var(--cream);
  padding: var(--s2) var(--s4); border-radius: 0 0 var(--radius) 0;
  font-family: var(--mono); font-size: 13px;
}
.skip-link:focus { left: 0; }

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

/* ---------- shared atoms ---------- */
.wrap { width: 100%; max-width: var(--measure-wide); margin: 0 auto; padding: 0 var(--s5); }
.measure { max-width: var(--measure); }

.kicker {
  font-family: var(--mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--flame);
  margin: 0 0 var(--s4);
  display: inline-flex; align-items: center; gap: .7em;
}
.kicker::before {
  content: ""; width: 18px; height: 1px; background: var(--flame-soft);
  opacity: .7;
}

.section { position: relative; z-index: 2; padding: var(--s8) 0; }

.section__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0 0 var(--s6);
  color: var(--cream);
}
.section__title em { font-style: italic; color: var(--ember); }

h3.sub {
  font-family: var(--mono);
  font-size: 13px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--cream-muted);
  margin: var(--s7) 0 var(--s3);
}

p { max-width: 38rem; text-wrap: pretty; }
.section p { color: var(--cream-soft); }
.section p strong { color: var(--cream); font-weight: 600; }
.section p em { color: var(--ember); font-style: italic; }

.lead {
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  line-height: 1.6;
  color: var(--cream) !important;
  font-weight: 300;
}

.crosslink {
  margin-top: var(--s7);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--cream-muted) !important;
}
.crosslink a {
  font-family: var(--mono); font-size: 13px;
  letter-spacing: .04em; white-space: nowrap;
}

/* a faint ember divider glyph */
.ember-rule {
  display: flex; align-items: center; justify-content: center;
  gap: var(--s4); margin: var(--s7) auto; max-width: var(--measure);
  color: var(--flame-soft);
}
.ember-rule::before, .ember-rule::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.ember-rule span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 12px 2px rgba(232,131,63,.7);
}

/* =================  HEADER / NAV  ================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background var(--dur) var(--ease), backdrop-filter var(--dur);
}
.site-header.scrolled {
  background: rgba(15,12,8,.72);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--display); font-size: 1.35rem; font-weight: 600;
  color: var(--cream); letter-spacing: .01em;
}
.wordmark__flame { width: 16px; height: 20px; }
.wordmark__flame .body { fill: var(--flame); }

.nav { display: flex; align-items: center; }
.nav__toggle {
  display: none;
  background: none; border: 1px solid var(--line); color: var(--cream-soft);
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; padding: 8px 14px; border-radius: 6px;
  cursor: pointer;
}
.nav__links {
  display: flex; align-items: center; gap: var(--s5);
  list-style: none; margin: 0; padding: 0;
}
.nav__links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cream-muted);
  padding: 6px 0; position: relative; transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1px; background: var(--flame); transition: right .35s var(--ease);
}
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after,
.nav__links a.active::after { right: 0; }
.nav__links a.active { color: var(--ember); }

/* =================  HERO  ================= */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px var(--s5) var(--s7);
  position: relative;
  overflow: hidden;
}

/* the ambient glow the flame casts on the room — driven by JS var --glow */
.hero__halo {
  position: absolute; left: 50%; top: 38%;
  width: 1500px; height: 1500px; transform: translate(-50%,-50%);
  pointer-events: none; z-index: 0;
  background: radial-gradient(circle,
      rgba(232,131,63,.20) 0%,
      rgba(193,91,58,.10) 22%,
      rgba(120,60,30,.04) 42%,
      transparent 62%);
  opacity: var(--glow, 1);
  transition: opacity .2s linear;
}

.flame-stage {
  position: relative; z-index: 2;
  width: 220px; height: 300px;
  margin-bottom: var(--s3);
}
.flame-stage canvas { width: 100%; height: 100%; display: block; }

.hero__inner { position: relative; z-index: 2; max-width: 820px; }

.hero__kicker {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--flame); margin: 0 0 var(--s4);
}
.hero__kicker .deva { font-family: var(--deva); letter-spacing: .06em; font-size: 14px; }

.hero__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3.4rem, 12vw, 8rem);
  line-height: .92;
  letter-spacing: -.02em;
  margin: 0 0 var(--s5);
  /* lamplit: brighter at the top (near the flame), dimmer below */
  background: radial-gradient(120% 160% at 50% -30%,
      #FFF6E6 0%, var(--cream) 32%, #B8A98E 70%, #6f6450 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero__intro {
  max-width: 38rem; margin: 0 auto var(--s6);
  color: var(--cream-soft) !important;
}

.hero__threads {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--s2) var(--s5);
  list-style: none; margin: 0 0 var(--s6); padding: 0;
}
.hero__threads a {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cream-muted);
  display: inline-flex; align-items: baseline; gap: .55em;
  padding: 10px 4px; transition: color .3s;
}
.hero__threads a .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cream-muted); transition: all .3s; align-self: center;
}
.hero__threads a:hover { color: var(--cream); }
.hero__threads a:hover .dot {
  background: var(--flame); box-shadow: 0 0 10px 2px rgba(232,131,63,.8);
}

.keynote { margin: var(--s5) auto 0; max-width: 44rem; }
.keynote blockquote { margin: 0; }
.keynote__line {
  font-family: var(--deva);
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  line-height: 1.8; font-weight: 400;
  color: var(--core);
  text-shadow: 0 0 28px rgba(232,131,63,.28);
  margin: 0 0 var(--s3);
}
.keynote .gloss {
  font-family: var(--serif); font-style: italic;
  color: var(--cream-muted); font-size: 1rem;
}

.scroll-cue {
  margin-top: var(--s7);
  font-family: var(--mono); font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--cream-muted);
  display: inline-flex; flex-direction: column; align-items: center; gap: var(--s2);
}
.scroll-cue .line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--flame), transparent);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue {
  0%,100% { opacity: .25; transform: scaleY(.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* =================  REVEAL  ================= */
.reveal > * { opacity: 0; transform: translateY(16px); }
.reveal.in > * {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in > *:nth-child(2) { transition-delay: .06s; }
.reveal.in > *:nth-child(3) { transition-delay: .12s; }
.reveal.in > *:nth-child(4) { transition-delay: .18s; }
.reveal.in > *:nth-child(5) { transition-delay: .24s; }
.reveal.in > *:nth-child(n+6) { transition-delay: .3s; }

/* section warm wash so reading areas feel lamplit, not flat black */
.section--warm {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(232,131,63,.05), transparent 70%),
    var(--void);
}

.defer {
  font-family: var(--sans); font-size: 15px;
  color: var(--cream-muted) !important;
  padding: var(--s3) var(--s4);
  border-left: 2px solid var(--deep);
  background: rgba(95,180,168,.04);
  border-radius: 0 6px 6px 0;
}
.defer code, .section code, .crosslink code {
  font-family: var(--mono); font-size: .85em;
  color: var(--ember); background: rgba(232,131,63,.10);
  padding: 1px 6px; border-radius: 4px;
}

/* =================  VENTURES  ================= */
.venture {
  margin: var(--s6) 0;
  padding-left: var(--s5);
  border-left: 1px solid var(--line);
  position: relative;
}
.venture::before {
  content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px;
  width: 1px; background: var(--flame-soft); opacity: 0;
  transition: opacity .5s;
}
.venture:hover::before { opacity: .8; }
.venture--tech { border-left-color: rgba(95,180,168,.25); }
.venture--tech:hover::before { background: var(--deep); opacity: .8; }
.venture .kicker { color: var(--cream-muted); }
.venture--tech .kicker { color: var(--deep); }
.venture h3 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.1;
  margin: 0 0 var(--s3); color: var(--cream);
}

/* =================  TERMINAL  ================= */
.section--terminal { padding-top: var(--s7); }
.terminal-intro { max-width: 40rem; }

.terminal {
  margin-top: var(--s6); max-width: 720px;
  background: linear-gradient(180deg, var(--void-3), #1d1810);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8),
              0 0 60px -20px rgba(232,131,63,.18);
  overflow: hidden;
}
.terminal__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
  background: rgba(0,0,0,.2);
}
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; background: #3a3228; }
.terminal__dot:nth-child(1) { background: #6e4a3a; }
.terminal__dot:nth-child(2) { background: #6e5e3a; }
.terminal__dot:nth-child(3) { background: #3a5a52; }
.terminal__label {
  margin-left: 8px; font-family: var(--mono); font-size: 12px;
  color: var(--cream-muted); letter-spacing: .04em;
}
.terminal__label .flame-mini {
  display: inline-block; width: 7px; height: 9px; margin-left: 6px;
  background: var(--flame); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 0 0 8px 1px rgba(232,131,63,.8);
  animation: flick 1.4s ease-in-out infinite;
}
@keyframes flick { 0%,100%{opacity:.7;transform:scaleY(.9)} 50%{opacity:1;transform:scaleY(1.1)} }

.terminal__screen { padding: var(--s4) var(--s4) var(--s3); }
.terminal__output {
  font-family: var(--mono); font-size: 13.5px; line-height: 1.75;
  color: var(--cream-soft);
  max-height: 360px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.terminal__output .echo { color: var(--cream); }
.terminal__output .echo .u { color: var(--deep); }
.terminal__output .echo .d { color: var(--flame); }
.terminal__output .resp { color: var(--cream-soft); white-space: pre-wrap; }
.terminal__output .resp .key { color: var(--deep); }
.terminal__output .resp .hi { color: var(--cream); }
.terminal__output .resp a { color: var(--ember); text-decoration: underline; text-decoration-color: var(--flame-soft); }
.terminal__output .muted { color: var(--cream-muted); }
.terminal__output .err { color: var(--flame); }
.terminal__line { margin: 0; }
.terminal__block { margin: 6px 0 14px; }

.terminal__form { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.terminal__prompt {
  font-family: var(--mono); font-size: 13.5px; white-space: nowrap;
  display: inline-flex; gap: 2px;
}
.terminal__user { color: var(--deep); }
.terminal__sep, .terminal__path { color: var(--cream-muted); }
.terminal__dollar { color: var(--flame); margin: 0 4px 0 2px; }
.terminal__input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--mono); font-size: 13.5px; color: var(--cream);
  caret-color: var(--flame);
}
.terminal__chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: var(--s3) var(--s4) var(--s4);
  border-top: 1px solid var(--line-soft);
}
.terminal__chips button {
  font-family: var(--mono); font-size: 12px; letter-spacing: .03em;
  color: var(--cream-soft); background: rgba(242,232,214,.03);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 8px 15px; min-height: 44px; cursor: pointer;
  transition: all .25s var(--ease);
}
.terminal__chips button:hover {
  color: var(--core); border-color: var(--flame-soft);
  background: rgba(232,131,63,.10);
}
.terminal__hint {
  font-family: var(--mono); font-size: 11.5px; color: var(--cream-muted);
  margin: var(--s3) 0 0; padding: 0 var(--s4) var(--s4);
}

/* static cv fallback */
.cv-fallback { margin-top: var(--s5); }
.cv-fallback__summary {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cream-muted);
  cursor: pointer; padding: var(--s3) 0;
}
.cv-fallback[open] .cv-fallback__summary { color: var(--cream-soft); }
.cv-fallback__body { padding-top: var(--s3); }
.cv-fallback h3 {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--flame); margin: var(--s5) 0 var(--s3);
}
.cv-list { list-style: none; padding: 0; margin: 0; }
.cv-list li { margin-bottom: var(--s3); color: var(--cream-soft); font-size: 16px; }
.cv-when { font-family: var(--mono); font-size: 12px; color: var(--cream-muted); margin-right: 8px; }
.cv-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px var(--s4); margin: 0; }
.cv-dl dt { font-family: var(--mono); font-size: 12px; color: var(--deep); }
.cv-dl dd { margin: 0; color: var(--cream-soft); font-size: 15px; }
.cv-note { font-family: var(--sans); font-size: 14px; color: var(--cream-muted) !important; }
.cv-download {
  font-family: var(--mono); font-size: 13px;
  display: inline-block; padding: 10px 18px;
  border: 1px solid var(--flame-soft); border-radius: 6px;
  color: var(--ember); transition: all .3s;
}
.cv-download:hover { background: rgba(232,131,63,.10); color: var(--core); }

/* =================  NAZM  ================= */
.section--nazm { background: var(--ash); }
.section--nazm .section__title { color: var(--core); }

.nazm-note {
  max-width: 40rem; margin: 0 0 var(--s8); padding: 0; border: none;
}
.nazm-note p:first-child {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.35;
  color: var(--cream); margin: 0 0 var(--s5); max-width: 100%;
}
.nazm-note p { color: var(--cream-soft); }

.poems { max-width: var(--measure); }
.poems__heading {
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--flame);
  margin: var(--s8) 0 var(--s5);
  display: flex; align-items: center; gap: var(--s4);
}
.poems__heading::after { content:""; flex:1; height:1px; background: var(--line); }
.poems__subnote { font-family: var(--sans); font-size: 14px; color: var(--cream-muted) !important; margin-top: -24px; margin-bottom: var(--s6); }

.poem { margin: 0 0 var(--s8); position: relative; }
.poem__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s2); flex-wrap: wrap; }
.poem__title {
  font-family: var(--display); font-weight: 500; font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15;
  color: var(--cream); margin: 0;
}
.poem__title[lang="hi"] { font-family: var(--deva); font-style: normal; }
.poem__meta { font-family: var(--mono); font-size: 12px; color: var(--cream-muted); letter-spacing: .08em; white-space: nowrap; }
.poem .gloss {
  font-family: var(--serif); font-style: italic;
  color: var(--cream-muted); font-size: 1rem; margin: 0 0 var(--s4); max-width: 36rem;
}
.poem__epigraph {
  font-family: var(--serif); font-style: italic; color: var(--cream-soft);
  font-size: 1rem; border-left: 2px solid var(--flame-soft); padding-left: var(--s4);
  margin: 0 0 var(--s3); max-width: 36rem;
}
.poem__body {
  font-family: var(--serif); white-space: pre-wrap;
  line-height: 2.0; font-size: 1.18rem; color: var(--cream);
  margin: 0; max-width: 40rem;
}
.poem__body--deva { font-family: var(--deva); line-height: 2.1; }
.poem__body--latn { font-style: italic; }
.poem--short .poem__body { color: var(--core); font-size: 1.3rem; line-height: 1.9; }
.poem--short { padding: var(--s5) 0; border-bottom: 1px solid var(--line-soft); margin-bottom: 0; }

.nazm-courtesy { font-family: var(--sans); font-size: 14px; color: var(--cream-muted) !important; margin-top: var(--s7); }

/* =================  CONNECT  ================= */
.connect-list { list-style: none; padding: 0; margin: var(--s5) 0; max-width: 36rem; }
.connect-list li {
  display: flex; align-items: baseline; gap: var(--s4);
  padding: var(--s4) 0; border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.connect-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cream-muted);
  width: 84px; flex-shrink: 0;
}
.connect-aside { font-family: var(--sans); font-size: 13px; color: var(--cream-muted); }
.connect-sign {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.4;
  color: var(--cream); margin-top: var(--s7); max-width: 40rem;
}
.placeholder { border-bottom: 1px dashed var(--flame-soft); }

/* =================  FOOTER  ================= */
.site-footer { position: relative; z-index: 2; background: var(--ash); padding: var(--s7) 0 var(--s6); border-top: 1px solid var(--line-soft); }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s4); }
.site-footer__flame { width: 22px; height: 28px; }
.site-footer__flame .body { fill: var(--flame); filter: drop-shadow(0 0 10px rgba(232,131,63,.6)); }
.site-footer__threads { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s5); }
.site-footer__threads a { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-muted); }
.site-footer__threads a:hover { color: var(--ember); }
.site-footer__nazm { font-family: var(--deva); font-size: 1.2rem; color: var(--core); margin: var(--s3) 0 0; }
.site-footer__nazm .gloss { font-family: var(--serif); font-style: italic; font-size: .9rem; color: var(--cream-muted); display: block; margin-top: 6px; }
.site-footer__by { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--cream-muted); margin: var(--s4) 0 0; }

/* =================  RESPONSIVE  ================= */
@media (max-width: 760px) {
  body { font-size: 18px; }
  .wrap { padding: 0 var(--s4); }
  .section { padding: var(--s7) 0; }
  .nav__toggle { display: inline-block; }
  .nav__links {
    position: absolute; top: 68px; right: var(--s4); left: var(--s4);
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(20,16,11,.96); backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: var(--s2); max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .4s var(--ease), opacity .3s;
  }
  .nav__links.open { max-height: 420px; opacity: 1; padding: var(--s3); }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 12px var(--s2); width: 100%; }
  .flame-stage { width: 160px; height: 220px; }
  .venture { padding-left: var(--s4); }
  .poem__body { font-size: 1.1rem; }
}

/* =================  REDUCED MOTION  ================= */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .reveal > * { opacity: 1; transform: none; }
  .scroll-cue .line { opacity: .6; }
}
