/* ==========================================================
   Justice for Zubeen Garg
   Palette drawn from the Assamese gamosa and muga silk:
   gamosa red, pat white, muga gold, and lamp-night ink.
   ========================================================== */
:root {
  --gamosa: #a80f1e;
  --gamosa-deep: #5f0912;
  --ink: #170a0c;
  --muga: #e0a93f;
  --pat: #fbf9f5;
  --pat-2: #f3eee6;
  --text: #2a1517;
  --muted: #6b5658;
  --on-dark: rgba(251, 249, 245, 0.78);

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --bengali: "Noto Serif Bengali", "Nirmala UI", "Noto Serif", serif;

  --wrap: 1120px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-h: calc(64px + var(--safe-top));
  --gutter: max(1.25rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(224, 169, 63, 0.25);
}
html.gate-open, html.gate-open body { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--pat);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;   /* nothing may ever scroll sideways on a phone */
}
button, a, .btn, .chip { touch-action: manipulation; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--muga); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--pat); color: var(--gamosa); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2 * var(--gutter), 760px); }
.assamese { font-family: var(--bengali); font-weight: 500; }

/* ---------- Woven border ---------- */
.gamosa {
  height: 22px;
  background:
    linear-gradient(var(--gamosa), var(--gamosa)) 0 0 / 100% 4px no-repeat,
    linear-gradient(var(--gamosa), var(--gamosa)) 0 100% / 100% 4px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='22'%3E%3Cpath d='M14 4l8 7-8 7-8-7z' fill='%23a80f1e'/%3E%3Cpath d='M14 8l4 3-4 3-4-3z' fill='%23fbf9f5'/%3E%3C/svg%3E") 0 0 / 28px 22px repeat-x,
    var(--pat);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--safe-top) max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 0;
  background: rgba(95, 9, 18, 0.94);
  backdrop-filter: blur(8px);
  color: var(--pat);
}
.brand { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.02em; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 1.6rem; font-size: 0.98rem; }
.nav a { text-decoration: none; opacity: 0.86; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { opacity: 1; border-color: var(--muga); }
.header-actions { display: flex; align-items: center; gap: .1rem; margin-right: -10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }

/* music button: three little bars that dance while the song plays */
.music-btn { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: none; border: 0; border-radius: 50%; color: var(--pat); cursor: pointer; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.eq i { display: block; width: 3px; height: 18px; background: var(--muga); border-radius: 1px; opacity: .75; transform: scaleY(.25); transform-origin: 50% 100%; }
.music-btn.playing .eq i { opacity: 1; transform: scaleY(.7); animation: eq .9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.6s; }
.eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--pat); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: 0.03em;
  padding: 0.7rem 1.5rem; border: 2px solid transparent; border-radius: 2px;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
}
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-light { background: var(--pat); color: var(--gamosa); }
.btn-light:hover { background: #fff; }
.btn-outline { background: transparent; color: var(--pat); border-color: rgba(251,249,245,.7); }
.btn-outline:hover { background: rgba(251,249,245,.12); border-color: var(--pat); }
.btn-gold { background: var(--muga); color: var(--ink); }
.btn-gold:hover { background: #efbd57; }
.btn-outline-dark { background: transparent; color: var(--pat); border-color: rgba(251,249,245,.4); }
.btn-outline-dark:hover { border-color: var(--muga); color: var(--muga); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h) - 22px);
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 3rem;
  padding: clamp(2.5rem, 6vw, 5rem) max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  color: var(--pat);
  background:
    radial-gradient(120% 90% at 78% 40%, rgba(255,120,90,.20), transparent 60%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px),
    var(--gamosa);
  overflow: hidden;
}
.hero .assamese { margin: 0 0 .6rem; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--muga); }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .84; }
.h1-big { display: block; font-size: clamp(5rem, 17vw, 12.5rem); letter-spacing: -0.01em; }
.h1-small { display: block; font-size: clamp(2.2rem, 7vw, 5.4rem); letter-spacing: 0.01em; margin-top: .12em; }
.hero-lede { max-width: 34rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); margin: 1.6rem 0 1rem; color: rgba(251,249,245,.92); }
.since { margin: 0 0 1.6rem; font-style: italic; color: var(--muga); min-height: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* one orchestrated entrance */
.h1-big, .h1-small, .hero .assamese { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.h1-big { animation-delay: .1s; }
.h1-small { animation-delay: .3s; }
.hero .assamese { animation-delay: 0s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Portrait in a woven frame with two lamps */
.portrait { position: relative; margin: 0; justify-self: center; width: min(100%, 420px); }
.frame {
  position: relative; aspect-ratio: 4 / 5; padding: 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M14 4l8 10-8 10-8-10z' fill='%23a80f1e' opacity='.9'/%3E%3C/svg%3E") 0 0 / 28px 28px,
    var(--pat);
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
}
.frame::before { content: ""; position: absolute; inset: 14px; border: 4px solid var(--pat); z-index: 2; pointer-events: none; }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: saturate(.95) contrast(1.03); }
.frame-fallback { display: none; position: absolute; inset: 14px; place-items: center; font-family: var(--bengali); font-size: 9rem; color: var(--pat); background: var(--gamosa-deep); }
.portrait.no-photo .frame-fallback { display: grid; }
.portrait figcaption { margin-top: 1.3rem; text-align: center; font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: .03em; }
.portrait figcaption span { font-family: var(--serif); font-weight: 400; font-size: 1rem; opacity: .85; letter-spacing: 0; }

.saki { position: absolute; bottom: 62px; width: 46px; height: 24px; z-index: 3; }
.saki::before, .gate-lamp::before { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 14px; background: var(--muga); border-radius: 0 0 46px 46px; box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.saki i, .gate-lamp i, .flame {
  position: absolute; left: 50%; bottom: 12px; width: 12px; height: 26px; margin-left: -6px;
  background: radial-gradient(ellipse at 50% 75%, #fff8d6 0 25%, #ffc94a 55%, rgba(255,120,30,.0) 100%);
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  filter: drop-shadow(0 0 8px rgba(255,190,80,.9));
  transform-origin: 50% 100%;
  animation: flicker 1.6s ease-in-out infinite alternate;
}
.saki-l { left: -24px; } .saki-r { right: -24px; }
.saki-r i { animation-delay: -.7s; }
@keyframes flicker {
  0% { transform: scale(1, 1) rotate(-2deg); opacity: .95; }
  35% { transform: scale(.92, 1.08) rotate(2deg); opacity: 1; }
  70% { transform: scale(1.05, .94) rotate(-1deg); opacity: .9; }
  100% { transform: scale(.96, 1.06) rotate(1.5deg); opacity: 1; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.light { background: var(--pat); }
.section.light.alt { background: var(--pat-2); }
.section-title { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; margin: 0 0 .6rem; letter-spacing: .01em; }
.section-lede { max-width: 40rem; color: var(--muted); margin: 0 0 2.4rem; }
.night .section-lede, .song .section-lede { color: var(--on-dark); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.pull { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .98; margin: 0; color: var(--gamosa); text-wrap: balance; }
.prose p { margin: 0 0 1.2rem; max-width: 36rem; }
.prose p:last-child { margin: 0; }

/* asks */
.asks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(42,21,23,.18); }
.asks li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem 3rem; padding: 1.5rem 0 1.5rem 1.2rem; border-bottom: 1px solid rgba(42,21,23,.18); border-left: 6px solid var(--gamosa); }
.asks h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.05; }
.asks p { margin: 0; color: var(--muted); align-self: center; }

/* timeline */
.timeline { list-style: none; margin: 0 0 2.5rem; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 148px; top: 8px; bottom: 8px; width: 2px; background: var(--gamosa); opacity: .35; }
.timeline li { display: grid; grid-template-columns: 148px 1fr; gap: 0 1.8rem; padding: .7rem 0 1.1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 142px; top: 1.15rem; width: 14px; height: 14px; background: var(--pat); border: 3px solid var(--gamosa); transform: rotate(45deg); }
.timeline time { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--gamosa); text-align: right; padding-right: 1.1rem; line-height: 1.5; }
.timeline p { margin: 0; padding-left: 1.1rem; }
.timeline .today::before { background: var(--gamosa); }
.timeline .today p { font-weight: 600; }

.note { border: 1px solid rgba(42,21,23,.2); border-left: 6px solid var(--muga); padding: 1.2rem 1.4rem; background: #fff; font-size: 1rem; }
.note strong { font-family: var(--display); font-size: 1.25rem; letter-spacing: .02em; margin-right: .3rem; }
.sources { display: block; margin-top: .7rem; color: var(--muted); font-size: .95rem; }

/* ---------- Night: candles, form, wall ---------- */
.night { background: radial-gradient(90% 40% at 50% 0%, rgba(168,15,30,.35), transparent 70%), var(--ink); color: var(--pat); }
.candles { margin-bottom: 3.5rem; }
.candle-shelf {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 8px 10px;
  min-height: 92px; padding: 1.4rem 1rem .8rem; border-bottom: 6px solid var(--gamosa);
  background: linear-gradient(to top, rgba(224,169,63,.10), transparent 70%);
}
.candle { position: relative; width: 12px; background: linear-gradient(90deg, #d9d2c4, #fbf9f5 45%, #d9d2c4); border-radius: 2px 2px 0 0; }
.candle .flame { bottom: 100%; margin-bottom: -2px; width: 9px; height: 19px; margin-left: -4.5px; }
.candle.fresh { animation: place .8s cubic-bezier(.2,.8,.2,1); }
@keyframes place { from { transform: translateY(-40px) scale(1.4); opacity: 0; } to { transform: none; opacity: 1; } }
.candle-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; }
.candle-count { margin: 0; color: var(--on-dark); }
.candle-count strong { font-family: var(--display); font-size: 2.4rem; color: var(--muga); margin-right: .25rem; }
.candle-count span { display: block; font-size: .95rem; font-style: italic; }

.sign-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.total { margin: 0 0 1.2rem; color: var(--on-dark); }
.total strong { font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--pat); margin-right: .3rem; }
.demo-banner { border: 1px dashed var(--muga); color: var(--muga); padding: .7rem .9rem; font-size: .95rem; margin: 0 0 1.2rem; }
.demo-banner code { font-size: .9em; }

.field { margin-bottom: 1.3rem; position: relative; }
.field label { display: block; font-size: .98rem; margin-bottom: .3rem; color: var(--pat); }
.field label span { color: var(--on-dark); opacity: .8; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--pat); background: rgba(251,249,245,.06);
  border: 0; border-bottom: 2px solid rgba(251,249,245,.4); border-radius: 0; padding: .7rem .8rem;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--muga); background: rgba(251,249,245,.1); }
.field textarea { resize: vertical; min-height: 110px; }
.counter { position: absolute; right: 4px; bottom: -1.3rem; color: var(--on-dark); font-size: .8rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: .7rem; align-items: flex-start; margin: 2rem 0 1.4rem; font-size: 1rem; color: var(--on-dark); cursor: pointer; }
.check input { margin-top: .35rem; width: 18px; height: 18px; accent-color: var(--muga); flex: none; }
.form-status { min-height: 1.6em; margin: 1rem 0 0; font-size: 1rem; }
.form-status.ok { color: #9fe3a6; }
.form-status.err { color: #ffb0a8; }

.share { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid rgba(251,249,245,.15); }
.share p { margin: 0 0 .7rem; color: var(--on-dark); }
.share-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font: inherit; font-size: .95rem; text-decoration: none; cursor: pointer; color: var(--pat); background: transparent; border: 1px solid rgba(251,249,245,.4); padding: .35rem .9rem; border-radius: 999px; }
.chip:hover { border-color: var(--muga); color: var(--muga); }

.wall-title { font-family: var(--display); font-weight: 800; font-size: 1.9rem; margin: 0 0 1rem; }
.wall { list-style: none; margin: 0 0 1.5rem; padding: 0; max-height: 760px; overflow-y: auto; padding-right: .5rem; scrollbar-color: var(--gamosa) transparent; }
.entry { padding: 1rem 0 1rem 1.1rem; border-left: 3px solid var(--gamosa); margin-bottom: .3rem; border-bottom: 1px solid rgba(251,249,245,.08); }
.entry-head { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; }
.entry-head strong { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; }
.entry-head span { font-size: .92rem; color: var(--on-dark); }
.entry-head time { margin-left: auto; font-size: .85rem; color: var(--on-dark); opacity: .7; }
.entry-msg { margin: .35rem 0 0; font-style: italic; color: rgba(251,249,245,.9); overflow-wrap: anywhere; }
.wall-empty, .wall-error { color: var(--on-dark); font-style: italic; }

/* ---------- Song ---------- */
.song { background: linear-gradient(160deg, var(--gamosa-deep), #3b060c); color: var(--pat); }
.song-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.disc-wrap { display: grid; place-items: center; }
.disc {
  position: relative; width: min(360px, 78vw); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 34%, rgba(255,255,255,.07) 34.5% 35%, transparent 36%),
    repeating-radial-gradient(circle, #0e0e0e 0 2px, #1c1c1c 2px 4px);
  box-shadow: 0 30px 60px rgba(0,0,0,.5), inset 0 0 0 6px #050505;
}
.disc::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 20%, rgba(255,255,255,.12) 25%, transparent 30% 70%, rgba(255,255,255,.12) 75%, transparent 80%); }
.disc-label {
  position: absolute; inset: 30%; border-radius: 50%; overflow: hidden;
  background: var(--gamosa); border: 6px solid var(--muga);
}
.disc-label img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.disc-label::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--gamosa-deep); box-shadow: 0 0 0 2px var(--muga); }
.disc.spin { animation: spin 5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.song-text p { max-width: 32rem; color: var(--on-dark); }
.player { position: relative; margin: 1.5rem 0; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.player::before { content: "Loading the song…"; position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center; font-style: italic; color: var(--on-dark); }
.player.failed::before { content: "The player could not load here. Please use the Open in YouTube Music button below."; }
.player iframe { position: relative; z-index: 1; display: block; width: 100%; height: 100%; border: 0; }
.song-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding-bottom: calc(3rem + var(--safe-bottom)); font-size: 1rem; }
.site-footer .gamosa { margin-bottom: 2.5rem; }
.foot-mark { font-family: var(--display); font-weight: 800; font-size: 2.2rem; color: var(--pat); margin: 0 0 .8rem; }
.site-footer p { max-width: 42rem; }
.site-footer .assamese { color: var(--muga); font-size: 1.4rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--pat); color: var(--gamosa-deep); padding: .8rem 1.3rem; border-left: 6px solid var(--gamosa);
  box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .3s, opacity .3s; z-index: 200; max-width: calc(100% - 2rem);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Entry screen ---------- */
.gate {
  position: fixed; inset: 0; z-index: 300; display: flex; overflow-y: auto; text-align: center; color: var(--pat);
  padding: max(1.5rem, env(safe-area-inset-top, 0px)) max(1.5rem, env(safe-area-inset-right, 0px)) max(1.5rem, env(safe-area-inset-bottom, 0px)) max(1.5rem, env(safe-area-inset-left, 0px));
  background: radial-gradient(80% 50% at 50% 32%, rgba(168,15,30,.6), transparent 70%), var(--ink);
  transition: opacity .45s ease, visibility .45s;
}
.gate[hidden] { display: none; }
.gate.leave { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-inner { margin: auto; width: 100%; max-width: 26rem; }
.gate-lamp { position: relative; display: block; width: 46px; height: 40px; margin: 0 auto 1.6rem; }
.gate-as { margin: 0 0 .5rem; font-size: 1.6rem; color: var(--muga); }
.gate-title { margin: 0 0 1rem; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.6rem, 13vw, 4.2rem); line-height: .95; }
.gate-text { margin: 0 0 1.8rem; font-size: 1.05rem; color: var(--on-dark); }
.gate-actions { display: grid; gap: .8rem; }
.gate-actions .btn { width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; text-align: left; }
  .portrait { width: min(78%, 340px); justify-self: center; margin-left: 0; }
  .hero { min-height: 0; align-items: start; }
  .two-col, .sign-grid, .song-grid { grid-template-columns: 1fr; }
  .asks li { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--gamosa-deep); padding: .5rem 1.25rem 1rem; display: none; border-top: 1px solid rgba(255,255,255,.12);
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; font-size: 1.1rem; }
  .timeline::before { left: 8px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 2.2rem; }
  .timeline li::before { left: 2px; }
  .timeline time { text-align: left; padding: 0; }
  .timeline p { padding-left: 0; }
  .entry-head time { margin-left: 0; width: 100%; }
}

/* ---------- Small phones ---------- */
@media (max-width: 600px) {
  body { font-size: 1.0625rem; }
  .nav { padding-left: var(--gutter); padding-right: var(--gutter); }
  .nav a { min-height: 48px; display: flex; align-items: center; }

  .hero { padding-top: 2rem; padding-bottom: 2.75rem; gap: 2.2rem; }
  .h1-big { font-size: clamp(3.6rem, 22vw, 6.5rem); }
  .h1-small { font-size: clamp(1.9rem, 10vw, 3.2rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn, .candle-bar .btn, .song-actions .btn, #submitBtn, #moreBtn { width: 100%; }
  .portrait { width: min(72%, 300px); }

  .section-title { font-size: clamp(2.1rem, 9.5vw, 2.8rem); }
  .pull { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  .asks li { padding-left: 1rem; }

  .candle-shelf { gap: 6px 8px; padding-inline: .3rem; }
  .candle-bar { flex-direction: column; align-items: stretch; text-align: center; }

  .chip { min-height: 44px; display: inline-flex; align-items: center; padding: .4rem 1.15rem; }
  .share-row { gap: .6rem; }

  /* no scroll box inside a scrolling page: it traps the thumb */
  .wall { max-height: none; overflow: visible; padding-right: 0; }

  .disc { width: min(300px, 74vw); }
  .toast { width: calc(100% - 2rem); text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
