/* ==========================================================================
   Punjab Mangda Insaf — shared styles
   Mood: a torch in a dark room. Black, ash and bone, with ember red for pain
   and kesri (dawn) only where people rise up.
   ========================================================================== */

:root {
  --ink: #060505;
  --char: #0e0c0b;
  --ash: #1b1817;
  --smoke: #2c2725;
  --dust: #6f6661;
  --bone: #ece4d8;
  --bone-dim: #b9b0a5;
  --ember: #ff3d1f;
  --blood: #8e0e12;
  --dawn: #f6a623;
  --dawn-soft: #ffd38a;

  --f-gur-display: "Noto Serif Gurmukhi", "Mukta Mahee", serif;
  --f-gur: "Mukta Mahee", "Noto Sans Gurmukhi", system-ui, sans-serif;
  --f-display: "Anton", "Impact", sans-serif;
  --f-serif: "Newsreader", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-gur);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--ember); color: #fff; }

/* Film grain over everything */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* ---------- Two languages, equal weight ----------
   .pa = Punjabi, .en = English body text, .en-display = English headline.
   The header switch sets html[data-lang] to pa / both / en. */
.en { font-family: var(--f-serif); font-style: italic; color: #ddd4c8; }
.en-display {
  display: block; font-family: var(--f-display); font-weight: 400; font-style: normal;
  text-transform: uppercase; letter-spacing: .03em; line-height: 1.02; color: var(--bone);
}
.pair > .en, .pair > .pa { display: block; }
.pair > .en { margin-top: .3em; }
html[data-lang="pa"] .en, html[data-lang="pa"] .en-display { display: none !important; }
html[data-lang="en"] .pa { display: none !important; }
html[data-lang="en"] .pair > .en { margin-top: 0; }

.lang { display: inline-flex; border: 1px solid var(--smoke); background: rgba(6,5,5,.6); }
.lang button {
  min-height: 36px; padding: 4px 12px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--f-gur); font-size: 14px; font-weight: 600; color: var(--dust);
  transition: color .2s, background .2s;
}
.lang button + button { border-left: 1px solid var(--smoke); }
.lang button:hover { color: var(--bone); }
.lang button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.lang button:focus-visible { outline: 2px solid var(--dawn); outline-offset: 2px; }
.lang .s { display: none; }
.top__right { display: flex; align-items: center; gap: 12px; }
@media (max-width: 640px) {
  .lang .l { display: none; } .lang .s { display: inline; }
  .lang button { padding: 4px 9px; }
}
@media (max-width: 480px) {
  .top .brand { display: none; }
  .top { justify-content: flex-end; }
  .top .btn { min-height: 38px; padding: 6px 12px; font-size: 14px; }
}
.tag {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ember);
}

/* ---------- Intro curtain ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--ink);
  animation: introOut .9s var(--ease) 2.1s forwards;
}
.intro__line {
  position: absolute; left: 50%; top: 50%;
  width: 0; height: 1px; background: var(--ember);
  box-shadow: 0 0 18px var(--ember);
  transform: translate(-50%, -50%);
  animation: introLine 1.4s var(--ease) .1s forwards;
}
.intro__word {
  font-family: var(--f-gur-display); font-weight: 900;
  font-size: clamp(30px, 7vw, 76px);
  color: var(--bone); opacity: 0; filter: blur(12px);
  transform: translateY(-40px);
  animation: introWord 1.2s var(--ease) .7s forwards;
}
.intro.is-done { display: none; }
@keyframes introLine { to { width: min(70vw, 680px); } }
@keyframes introWord { to { opacity: 1; filter: blur(0); } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: linear-gradient(to bottom, rgba(6,5,5,.85), rgba(6,5,5,0));
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand__gur { font-family: var(--f-gur-display); font-weight: 900; font-size: 19px; }
.brand__en { font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; color: var(--dust); text-transform: uppercase; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid var(--ember); border-radius: 0;
  background: transparent; color: var(--bone);
  font-family: var(--f-gur); font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer;
  transition: background .3s, color .3s, box-shadow .3s, transform .3s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--ember); color: #fff; box-shadow: 0 0 40px rgba(255,61,31,.45); }
.btn:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.btn .en { font-family: var(--f-display); font-style: normal; font-weight: 400; font-size: .9em; letter-spacing: .08em; text-transform: uppercase; color: inherit; }
html[data-lang="both"] .btn .en::before { content: "· "; opacity: .6; }
.btn--dawn { border-color: var(--dawn); }
.btn--dawn:hover, .btn--dawn:focus-visible { background: var(--dawn); color: var(--ink); box-shadow: 0 0 60px rgba(246,166,35,.5); }
.btn--big { min-height: 64px; padding: 16px 34px; font-size: 22px; }
@media (max-width: 560px) { .top .brand__en { display: none; } html[data-lang="both"] .top .btn .en { display: none; } }

/* ---------- Photo slots ----------
   Every photo sits in a .shot. If the file is missing, main.js adds .is-empty
   and the frame shows a smoky texture instead of a broken image. */
.shot { position: relative; overflow: hidden; background: var(--char); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.is-empty img { visibility: hidden; }
.shot.is-empty {
  background:
    radial-gradient(60% 50% at 30% 40%, rgba(142,14,18,.35), transparent 70%),
    radial-gradient(50% 60% at 75% 70%, rgba(80,70,65,.35), transparent 70%),
    linear-gradient(160deg, #141110, #050404);
}

/* ---------- Hero: torchlight ---------- */
.hero {
  position: relative; height: 100svh; min-height: 560px;
  overflow: hidden; isolation: isolate;
  --x: 50%; --y: 45%; --r: 26vmax;
}
.hero .shot { position: absolute; inset: 0; }
.hero__dark img { filter: grayscale(1) brightness(.2) contrast(1.2); transform: scale(1.06); }
.hero__lit {
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, rgba(0,0,0,.6) 40%, transparent 72%);
          mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, rgba(0,0,0,.6) 40%, transparent 72%);
}
.hero__lit img { filter: grayscale(.35) brightness(.95) contrast(1.15) sepia(.15); transform: scale(1.06); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(circle calc(var(--r) * .9) at var(--x) var(--y), rgba(255,140,60,.12), transparent 70%),
    linear-gradient(to top, var(--ink) 4%, rgba(6,5,5,.2) 45%, rgba(6,5,5,.55));
}
.hero__copy {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(70px, 12vh, 130px);
  max-width: 1100px;
}
.hero__title {
  margin: 0; font-family: var(--f-gur-display); font-weight: 900;
  font-size: clamp(46px, 11vw, 168px); line-height: .98; letter-spacing: -.01em;
  text-shadow: 0 0 60px rgba(255,61,31,.25);
}
.hero__title span { display: block; }
.hero__title .insaf { color: var(--ember); text-shadow: 0 0 40px rgba(255,61,31,.6); }
.hero__en {
  margin: 14px 0 0; font-family: var(--f-display); font-size: clamp(18px, 2.6vw, 34px);
  letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim);
}
.hero__sub { margin: 18px 0 0; max-width: 620px; font-size: clamp(17px, 1.7vw, 21px); color: var(--bone); }
.hero__sub .en { display: block; font-size: .9em; margin-top: 4px; }
.cue {
  position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--dust); text-transform: uppercase;
}
.cue i { width: 1px; height: 46px; background: linear-gradient(var(--ember), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hint {
  position: absolute; z-index: 2; right: var(--gutter); top: 84px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: var(--dust); text-transform: uppercase;
}

/* ---------- Prologue: words light up as you scroll ---------- */
.prologue { position: relative; height: 260vh; }
.prologue__stage {
  position: sticky; top: 0; height: 100svh;
  display: grid; place-items: center; padding: 0 var(--gutter);
}
.prologue__text {
  max-width: 1050px; margin: 0;
  font-family: var(--f-gur-display); font-weight: 600;
  font-size: clamp(28px, 5vw, 66px); line-height: 1.3;
}
.prologue__text .w { color: #2a2523; transition: color .4s, text-shadow .4s; }
.prologue__text .w.on { color: var(--bone); }
.prologue__text .w.key.on { color: var(--ember); text-shadow: 0 0 30px rgba(255,61,31,.5); }
.prologue__en { margin: 28px 0 0; max-width: 760px; font-size: clamp(16px, 1.6vw, 21px); opacity: 0; transition: opacity .8s; }
.prologue__en.on { opacity: 1; }

/* ---------- Issue scenes: full-screen photographs, a spotlight opens on each ----------
   main.js sets per scene: --lit (0→1 light), --open (spotlight size), --kb (slow push-in),
   --x/--y (where the light lands, from data-x/data-y). */
.tunnel { position: relative; }
.tunnel__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--ink); }
.tunnel__world { position: absolute; inset: 0; }
.scene {
  --lit: 0; --open: 0; --kb: 1.1; --x: 50%; --y: 42%;
  position: absolute; inset: 0; margin: 0; visibility: hidden;
  will-change: transform, opacity; transform-origin: var(--x) var(--y);
}
.scene__img { position: absolute; inset: 0; overflow: hidden; }
.scene__img .shot { position: absolute; inset: 0; }
.scene__img img { transform: scale(var(--kb)); transform-origin: var(--x) var(--y); }
.scene__dark img { filter: grayscale(1) brightness(.13) contrast(1.3); }
.scene__lit {
  -webkit-mask-image: radial-gradient(circle calc(var(--open) * 85vmax) at var(--x) var(--y), #000 0%, rgba(0,0,0,.7) 45%, transparent 78%);
          mask-image: radial-gradient(circle calc(var(--open) * 85vmax) at var(--x) var(--y), #000 0%, rgba(0,0,0,.7) 45%, transparent 78%);
}
.scene__lit img { filter: grayscale(.45) sepia(.2) brightness(.95) contrast(1.15); }
/* warm light falling from above, film vignette, and a dark floor for the words */
.scene__img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40vmax 55vmax at var(--x) calc(var(--y) - 10%), rgba(255,196,140,calc(var(--lit) * .16)), transparent 70%),
    radial-gradient(130% 95% at 50% 45%, transparent 45%, rgba(6,5,5,.85) 100%),
    linear-gradient(to top, rgba(6,5,5,.96) 0%, rgba(6,5,5,.6) 28%, transparent 55%);
}
.scene__cap {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: calc(7vh + 4vh);
  max-width: 1000px;
  opacity: calc(var(--lit) * 1.4 - .4);
  transform: translateY(calc((1 - var(--lit)) * 40px));
}
.scene__meta { display: flex; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.scene__no {
  font-family: var(--f-display); font-size: clamp(42px, 6vw, 88px); line-height: .85;
  color: transparent; -webkit-text-stroke: 1.2px var(--ember);
}
.scene__file { font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ember); }
.scene__title { margin: 0 0 12px; }
.scene__title .pa { display: block; font-family: var(--f-gur-display); font-weight: 900; font-size: clamp(42px, 7.4vw, 112px); line-height: 1.02; text-shadow: 0 4px 40px rgba(0,0,0,.8); }
.scene__title .en-display { font-size: clamp(26px, 3.8vw, 58px); margin-top: 4px; text-shadow: 0 4px 30px rgba(0,0,0,.8); }
html[data-lang="en"] .scene__title .en-display { font-size: clamp(42px, 7vw, 108px); }
.scene__line { margin: 0; max-width: 720px; font-size: clamp(17px, 1.9vw, 24px); line-height: 1.45; text-shadow: 0 2px 18px rgba(0,0,0,.9); }
.scene__line .en { font-size: 1em; }
.letterbox i { position: absolute; left: 0; right: 0; height: 7vh; background: #000; z-index: 3; pointer-events: none; }
.letterbox i:first-child { top: 0; } .letterbox i:last-child { bottom: 0; }
.tunnel__head { position: absolute; z-index: 4; top: calc(7vh + 64px); left: var(--gutter); }
.tunnel__head h2 { margin: 4px 0 0; font-family: var(--f-gur-display); font-weight: 900; font-size: clamp(18px, 2.2vw, 28px); line-height: 1.15; }
.tunnel__head h2 .en-display { font-size: clamp(14px, 1.6vw, 20px); color: var(--bone-dim); letter-spacing: .08em; }
.rail {
  position: absolute; z-index: 4; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none;
}
.rail li { width: 26px; height: 2px; background: rgba(236,228,216,.25); transition: width .4s var(--ease), background .4s; }
.rail li.on { width: 46px; background: var(--ember); box-shadow: 0 0 10px var(--ember); }
@media (max-width: 700px) {
  .letterbox i { height: 4vh; }
  .tunnel__head { top: calc(4vh + 60px); }
  .scene__cap { bottom: calc(4vh + 3vh); }
  .scene__line { font-size: 16px; }
  .rail { right: 8px; }
  .rail li { width: 14px; } .rail li.on { width: 24px; }
}

/* ---------- Map ---------- */
.mapsec { position: relative; height: 320vh; }
.mapsec__stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center;
  gap: var(--gutter); padding: 70px var(--gutter) 30px;
}
.mapsec__copy h2 { margin: 10px 0 0; font-family: var(--f-gur-display); font-weight: 900; font-size: clamp(34px, 5.4vw, 80px); line-height: 1.08; }
.mapsec__count { font-family: var(--f-display); font-size: clamp(80px, 13vw, 200px); line-height: .9; color: var(--ember); text-shadow: 0 0 50px rgba(255,61,31,.45); }
.mapsec__copy p { max-width: 460px; }
.regions { display: flex; gap: 18px; margin: 18px 0 0; padding: 0; list-style: none; font-family: var(--f-gur-display); font-weight: 600; font-size: 20px; }
.regions li { color: var(--smoke); transition: color .6s, text-shadow .6s; }
.regions li.on { color: var(--bone); text-shadow: 0 0 20px rgba(255,61,31,.6); }
.map { position: relative; width: 100%; height: min(80svh, 760px); }
.map svg { width: 100%; height: 100%; overflow: visible; }
.map .outline { fill: none; stroke: var(--ember); stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(255,61,31,.8)); }
.map .ac { fill: #120f0e; stroke: rgba(236,228,216,.08); stroke-width: .5; transition: fill .9s var(--ease), stroke .9s; cursor: pointer; }
.map .ac.lit { fill: var(--blood); stroke: rgba(255,90,60,.55); }
.map .ac.lit.hot { fill: var(--ember); }
.map .ac:hover { fill: var(--bone) !important; }
.map__tip {
  position: absolute; pointer-events: none; padding: 6px 10px;
  background: var(--ink); border: 1px solid var(--ember);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; white-space: nowrap;
  transform: translate(-50%, -130%); opacity: 0; transition: opacity .2s;
}
.map__tip.on { opacity: 1; }
.map__missing { font-family: var(--f-mono); font-size: 13px; color: var(--dust); }
@media (max-width: 800px) {
  .mapsec__stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding-top: 80px; gap: 8px; align-content: start; }
  .mapsec__copy p { display: none; }
  .mapsec__count { font-size: 76px; }
  .map { height: 52svh; }
}

/* ---------- The face ---------- */
.face {
  position: relative; min-height: 120svh;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  gap: var(--gutter); padding: 14vh var(--gutter);
}
.face .shot { aspect-ratio: 4 / 5; --lit: 0; }
.face .shot img { filter: grayscale(calc(1 - var(--lit) * .7)) brightness(calc(.12 + var(--lit) * .78)) contrast(1.15); transform: scale(calc(1.12 - var(--lit) * .1)); }
.face .shot::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 55% at 50% 35%, transparent 30%, rgba(6,5,5,calc(.95 - var(--lit) * .55)) 100%);
}
.face h2 { margin: 10px 0 6px; font-family: var(--f-gur-display); font-weight: 900; font-size: clamp(38px, 5.6vw, 86px); line-height: 1.05; }
.face__en { font-family: var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--dust); font-size: clamp(14px, 1.5vw, 19px); }
.face blockquote { margin: 26px 0 0; padding-left: 20px; border-left: 2px solid var(--ember); font-size: clamp(19px, 2vw, 26px); font-family: var(--f-gur-display); font-weight: 600; }
.face blockquote .en { display: block; margin-top: 8px; font-size: .78em; font-weight: 400; }
@media (max-width: 800px) { .face { grid-template-columns: 1fr; padding-top: 10vh; } }

/* ---------- Vigil: candles and the call ---------- */
.vigil { position: relative; height: 230vh; }
.vigil__stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; place-items: center; text-align: center; padding: 0 var(--gutter);
  --dawn-p: 0;
}
.vigil__stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 70% at 50% 110%, rgba(246,166,35,calc(var(--dawn-p) * .55)), rgba(142,14,18,calc(var(--dawn-p) * .25)) 45%, transparent 75%);
}
.candles {
  position: absolute; left: 0; right: 0; bottom: 0; height: 36%;
  display: grid; grid-template-columns: repeat(var(--cols, 16), 1fr); align-items: end;
  padding: 0 var(--gutter) 3vh; z-index: -1;
}
.candle { position: relative; justify-self: center; width: 8px; height: calc(18px + var(--h, 0) * 34px); background: linear-gradient(#d9cbb5, #6f6252); border-radius: 2px 2px 0 0; opacity: .5; transition: opacity .6s; }
.candle::before {
  content: ""; position: absolute; left: 50%; bottom: 100%;
  width: 10px; height: 18px; margin-left: -5px; border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
  background: radial-gradient(circle at 50% 75%, #fff8e0, var(--dawn) 45%, rgba(255,61,31,.6) 70%, transparent 72%);
  opacity: 0; transform: scale(.3); transform-origin: 50% 100%;
  transition: opacity .5s, transform .5s var(--ease);
}
.candle::after {
  content: ""; position: absolute; left: 50%; bottom: 60%; width: 80px; height: 80px; margin-left: -40px;
  background: radial-gradient(circle, rgba(246,166,35,.25), transparent 65%); opacity: 0; transition: opacity .6s;
}
.candle.on { opacity: 1; }
.candle.on::before { opacity: 1; transform: scale(1); animation: flicker 1.6s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
.candle.on::after { opacity: 1; }
@keyframes flicker {
  0% { transform: scale(1) rotate(-2deg); } 40% { transform: scale(.92, 1.06) rotate(2deg); }
  70% { transform: scale(1.04, .95) rotate(-1deg); } 100% { transform: scale(.96, 1.04) rotate(1deg); }
}
.vigil__copy { max-width: 900px; transform: translateY(-8vh); }
.vigil__copy h2 { margin: 0; font-family: var(--f-gur-display); font-weight: 900; font-size: clamp(34px, 6vw, 92px); line-height: 1.12; }
.vigil__copy h2 em { font-style: normal; color: var(--dawn); text-shadow: 0 0 40px rgba(246,166,35,.5); }
.vigil__copy .en { display: block; margin: 16px auto 34px; font-size: clamp(16px, 1.8vw, 22px); }

/* ---------- Footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 28px var(--gutter) 34px; border-top: 1px solid var(--ash);
  font-family: var(--f-mono); font-size: 12px; color: var(--dust); letter-spacing: .06em;
}
.foot a { color: var(--bone-dim); }

/* ---------- Plain reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion: no 3D, no scrubbing ---------- */
.rm .intro { display: none; }
.rm body::after { animation: none; }
.rm .prologue, .rm .mapsec, .rm .vigil { height: auto; }
.rm .prologue__stage, .rm .mapsec__stage, .rm .vigil__stage { position: relative; height: auto; min-height: 100svh; }
.rm .prologue__text .w { color: var(--bone); }
.rm .prologue__en { opacity: 1; }
.rm .tunnel { height: auto !important; }
.rm .tunnel__stage { position: relative; height: auto; overflow: visible; }
.rm .tunnel__world { position: relative; }
.rm .scene { position: relative; height: 100svh; visibility: visible; --lit: 1; --open: 1; --kb: 1; transform: none !important; opacity: 1 !important; }
.rm .tunnel__head { position: absolute; }
.rm .rail, .rm .letterbox { display: none; }
.rm .face .shot { --lit: 1; }
.rm .vigil__stage { --dawn-p: 1; }
.rm .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Form page
   ========================================================================== */
.formpage { background: radial-gradient(100% 60% at 50% -10%, rgba(246,166,35,.12), transparent 60%), var(--ink); }
.fhero { padding: 130px var(--gutter) 30px; max-width: 980px; margin: 0 auto; }
.fhero h1 { margin: 10px 0 0; font-family: var(--f-gur-display); font-weight: 900; font-size: clamp(38px, 7vw, 92px); line-height: 1.05; }
.fhero h1 em { font-style: normal; color: var(--dawn); }
.fhero p { max-width: 640px; font-size: 18px; }
.fhero .en { display: block; font-size: .92em; }

.formpage .top { background: rgba(6,5,5,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ash); }
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px; background: var(--ash); }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ember), var(--dawn)); box-shadow: 0 0 12px var(--dawn); transition: width .5s var(--ease); }

.jform { max-width: 980px; margin: 0 auto; padding: 10px var(--gutter) 80px; }
.jform fieldset { margin: 0 0 26px; padding: clamp(20px, 3.5vw, 40px); border: 1px solid var(--ash); background: linear-gradient(180deg, rgba(27,24,23,.6), rgba(14,12,11,.6)); }
.jform legend { float: left; width: 100%; padding: 0; margin: 0 0 4px; }
.jform legend ~ * { clear: both; }
.jform legend .tag { display: block; }
.jform legend b { display: block; font-family: var(--f-gur-display); font-weight: 900; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 18px; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.label { font-weight: 700; font-size: 17px; }
.label .en { font-size: 14px; margin-left: 6px; }
.label .req { color: var(--ember); margin-left: 3px; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1px solid var(--smoke); border-radius: 0; background: var(--ink); color: var(--bone);
  font-family: var(--f-gur); font-size: 17px;
  transition: border-color .25s, box-shadow .25s;
}
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ember) 50%), linear-gradient(135deg, var(--ember) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--dawn); box-shadow: 0 0 0 3px rgba(246,166,35,.18); }
.input::placeholder, .textarea::placeholder { color: #5a524d; }
.prefix { display: flex; }
.prefix span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--smoke); border-right: 0; font-family: var(--f-mono); color: var(--dust); }
.help { font-size: 13.5px; color: var(--dust); }
.err { min-height: 0; font-size: 14px; color: #ff7a63; }
.field.bad .input, .field.bad .select, .field.bad .textarea { border-color: var(--ember); }
.check { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--dawn); }

.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; margin-top: 14px; }
.chip { position: relative; display: block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip > span {
  display: block; height: 100%; padding: 12px 14px 12px 44px;
  border: 1px solid var(--smoke); background: var(--ink);
  font-weight: 600; line-height: 1.35; transition: border-color .25s, background .25s, box-shadow .25s;
}
.chip > span::before {
  content: ""; position: absolute; left: 14px; top: 15px; width: 18px; height: 18px;
  border: 1px solid var(--dust); transition: background .2s, border-color .2s;
}
.chip > span .en { display: block; font-size: 13.5px; font-weight: 400; margin-top: 2px; }
.chip input:checked + span { border-color: var(--ember); background: rgba(142,14,18,.22); box-shadow: inset 0 0 30px rgba(255,61,31,.12); }
.chip input:checked + span::before { background: var(--ember); border-color: var(--ember); box-shadow: 0 0 10px var(--ember); }
.chip input:focus-visible + span { outline: 2px solid var(--dawn); outline-offset: 2px; }

.drop {
  position: relative; margin-top: 16px; padding: 34px 20px; text-align: center;
  border: 1px dashed var(--dust); background: var(--ink); cursor: pointer;
  transition: border-color .25s, background .25s;
}
.drop:hover, .drop.over { border-color: var(--dawn); background: rgba(246,166,35,.05); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop b { display: block; font-size: 19px; }
.upl { display: none; margin-top: 14px; padding: 16px; border: 1px solid var(--smoke); }
.upl.on { display: block; }
.upl__row { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px; }
.upl__name { font-family: var(--f-mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upl__bar { height: 4px; margin: 12px 0 8px; background: var(--ash); }
.upl__bar i { display: block; height: 100%; width: 0; background: var(--dawn); transition: width .3s; }
.upl__state { font-size: 14px; color: var(--bone-dim); }
.upl__state.ok { color: #9fe0a0; }
.upl__state.bad { color: #ff7a63; }
.linkbtn { background: none; border: 0; padding: 6px 0; color: var(--dawn); text-decoration: underline; cursor: pointer; font-size: 14px; }

.submitrow { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 10px; }
.submitrow .help { flex: 1 1 260px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.formerr { margin-top: 14px; color: #ff7a63; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.thanks { display: none; min-height: 100svh; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; }
.thanks.on { display: grid; }
.thanks h2 { margin: 26px 0 8px; font-family: var(--f-gur-display); font-weight: 900; font-size: clamp(36px, 6vw, 78px); line-height: 1.1; }
.thanks .flame { position: relative; width: 40px; height: 56px; margin: 0 auto; transform-origin: 50% 100%; animation: flicker 1.4s ease-in-out infinite alternate; filter: drop-shadow(0 0 24px rgba(246,166,35,.7)); }
.thanks .flame::before {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 30px; height: 30px; margin-left: -15px;
  border-radius: 0 50% 50% 50%; transform: rotate(45deg);
  background: radial-gradient(circle at 62% 62%, #fffbe8 0 18%, var(--dawn-soft) 30%, var(--dawn) 55%, var(--ember) 100%);
}
.thanks .flame::after { content: ""; position: absolute; left: 50%; top: 50%; width: 240px; height: 240px; margin: -120px 0 0 -120px; background: radial-gradient(circle, rgba(246,166,35,.18), transparent 65%); }
.thanks .ref { font-family: var(--f-mono); color: var(--dust); margin-top: 18px; }

/* ==========================================================================
   Bilingual balance — English sits beside Punjabi at equal weight.
   (Overrides the single-language sizes above.)
   ========================================================================== */
.intro__en { position: absolute; top: calc(50% + clamp(40px, 6vw, 70px)); font-family: var(--f-display); font-size: clamp(16px, 2.6vw, 30px); letter-spacing: .2em; color: var(--bone-dim); opacity: 0; animation: introWord 1.2s var(--ease) 1s forwards; }

.hero__title { font-size: clamp(40px, 9vw, 138px); }
.hero__en { margin: 10px 0 0; font-size: clamp(30px, 6.2vw, 96px); letter-spacing: .03em; color: var(--bone); }
html[data-lang="en"] .hero__en { font-size: clamp(56px, 11vw, 170px); line-height: .95; }
html[data-lang="en"] .hero__en .red { color: var(--ember); text-shadow: 0 0 40px rgba(255,61,31,.6); }
.hero__sub { font-size: clamp(17px, 1.8vw, 22px); }
.hero__sub .en { font-size: 1em; margin-top: 6px; }

.prologue__text--en { margin-top: .7em; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(26px, 4.4vw, 60px); line-height: 1.2; }
.prologue__text--en .w.key.on { color: var(--ember); }



.mapsec__copy h2 .en-display { margin-top: 10px; font-size: clamp(28px, 4.2vw, 62px); color: var(--bone-dim); }
.regions li .en { font-family: var(--f-display); font-style: normal; font-size: .8em; letter-spacing: .06em; text-transform: uppercase; color: inherit; margin-left: 6px; }
.mapsec__copy p.pair { font-size: 17px; }

.face__en { font-size: clamp(30px, 4.4vw, 66px); letter-spacing: .03em; color: var(--bone-dim); line-height: 1; }
html[data-lang="en"] .face__en { color: var(--bone); font-size: clamp(42px, 6vw, 92px); }
.face blockquote .en { font-size: .92em; }

.vigil__copy .en-display { margin: 16px auto 0; font-size: clamp(26px, 4.4vw, 66px); line-height: 1.05; }
.vigil__copy .en-display em { font-style: normal; color: var(--dawn); }
.vigil__copy .btn { margin-top: 34px; }

.fhero h1 .en-display { margin-top: 8px; font-size: clamp(30px, 5.4vw, 72px); }
.fhero h1 .en-display em { color: var(--dawn); font-style: normal; }
.fhero p .en { font-size: 1em; margin-top: 6px; }
.jform legend .en-display { font-size: clamp(20px, 2.4vw, 28px); color: var(--bone-dim); margin-top: 2px; }
.label .en { font-size: 16px; font-weight: 400; margin-left: 8px; }
html[data-lang="en"] .label .en { margin-left: 0; font-style: normal; font-family: var(--f-gur); font-weight: 700; font-size: 17px; color: var(--bone); }
.chip > span .en { font-size: 15px; }
html[data-lang="en"] .chip > span .en { margin-top: 0; font-style: normal; font-family: var(--f-gur); font-weight: 600; font-size: 16px; color: var(--bone); }
.check .en { font-size: 1em; }
.thanks .en-display { font-size: clamp(28px, 4.6vw, 60px); margin-bottom: 14px; }
.thanks p.pair { font-size: 18px; }
