/* ==========================================================
   भक्ति सागर — भक्ति भजन
   A room in 1999, lit by a CRT and one window.
   ========================================================== */

:root{
  --cream:      #faf1dd;
  --cream-dim:  #e6d6b4;
  --ink:        #2b2117;
  --wall:       #c6cead;
  --wood:       #5e3a1d;
  --maroon:     #7c3330;
  --saffron:    #e08a2b;
  --amber:      #f2c57c;
  --moss:       #4f5940;

  --panel:      rgba(38, 25, 16, 0.62);
  --panel-edge: rgba(246, 220, 168, 0.22);
  --brass:      #d8ab5f;

  --shell: clamp(18px, 4vw, 54px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  margin: 0;
  overflow: hidden;
  background: #241a10;
  color: var(--cream);
  font-family: "Mukta", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── scene ─────────────────────────────────────────────── */
.scene{ position: fixed; inset: 0; z-index: 0; }
.scene > svg{ width: 100%; height: 100%; display: block; }

.grain, .vignette, .warmth{ position: fixed; inset: 0; pointer-events: none; }
.grain{
  z-index: 2; opacity: .16; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23g)' opacity='0.5'/></svg>");
  background-size: 220px 220px;
}
.vignette{
  z-index: 3;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 42%, rgba(40,24,10,.30) 78%, rgba(28,16,6,.62) 100%);
}
.chill{
  z-index: 3; mix-blend-mode: soft-light; opacity: .55;
  background:
    linear-gradient(196deg, rgba(150,182,208,.42) 0 26%, transparent 52%),
    radial-gradient(120% 80% at 78% 88%, rgba(126,158,186,.34), transparent 60%);
}
.warmth{
  z-index: 3; mix-blend-mode: soft-light; opacity: .5;
  background: linear-gradient(158deg, rgba(255,224,164,.78), transparent 52%, rgba(112,52,16,.62));
}

/* ── ambient motion ────────────────────────────────────── */
.fan-blades{ transform-origin: 1150px 86px; animation: spin 3.4s linear infinite; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.curtain{ transform-origin: top center; animation: sway 9s ease-in-out infinite; }
#curtainR{ animation-duration: 11s; animation-delay: -3s; }
@keyframes sway{
  0%,100%{ transform: rotate(0deg) skewX(0deg); }
  50%    { transform: rotate(.5deg) skewX(1.1deg); }
}

/* the wall clock's hands are set from script.js, on the real second */

.sunbeam{ mix-blend-mode: screen; animation: beam 22s ease-in-out infinite; transform-origin: 120px 160px; }
@keyframes beam{
  0%,100%{ opacity: .82; transform: skewX(0deg); }
  50%    { opacity: 1;   transform: skewX(-.8deg); }
}

.smoke path{ animation: rise 7s linear infinite; }
.smoke .smoke-b{ animation-duration: 9.5s; animation-delay: -2.5s; }
@keyframes rise{
  0%  { opacity: 0;   transform: translateY(18px) scaleX(.9); }
  22% { opacity: .55; }
  100%{ opacity: 0;   transform: translateY(-84px) scaleX(1.3); }
}
.incense-tip{ animation: ember 3.4s ease-in-out infinite; }
@keyframes ember{ 0%,100%{ opacity:.55 } 50%{ opacity:1 } }

.dust circle{ animation: float 16s ease-in-out infinite; }
.dust .d2{ animation-duration: 21s; animation-delay: -4s; }
.dust .d3{ animation-duration: 26s; animation-delay: -9s; }
.dust .d4{ animation-duration: 19s; animation-delay: -13s; }
.dust .d5{ animation-duration: 30s; animation-delay: -6s; }
.dust .d6{ animation-duration: 23s; animation-delay: -17s; }
@keyframes float{
  0%   { transform: translate(0,0); }
  50%  { transform: translate(26px,-44px); }
  100% { transform: translate(-14px,-96px); opacity: 0; }
}

/* ── the cooker in the next room ────────────────────────
   Three quick bursts and then a long plume, once every half minute:
   the rhythm of a whistle going off, read with the eyes. */
.cooker path{ opacity: 0; }
.cooker .p1{ animation: puff 32s ease-out infinite; }
.cooker .p2{ animation: puff 32s ease-out infinite .55s; }
.cooker .p3{ animation: puff 32s ease-out infinite 1.1s; }
.cooker .p4{ animation: plume 32s ease-out infinite 1.9s; }
@keyframes puff{
  0%  { opacity: 0;   transform: translate(0,0) scale(.55); }
  1.5%{ opacity: .55; }
  9%  { opacity: 0;   transform: translate(150px,-104px) scale(1.7); }
  100%{ opacity: 0; }
}
@keyframes plume{
  0%  { opacity: 0;   transform: translate(0,0) scale(.7); }
  2%  { opacity: .42; }
  16% { opacity: 0;   transform: translate(230px,-140px) scale(2.1); }
  100%{ opacity: 0; }
}
.kitchen-spill{ mix-blend-mode: screen; animation: spill 7s ease-in-out infinite; }

.crt-spill{ mix-blend-mode: screen; animation: spill 5.5s ease-in-out infinite; }
@keyframes spill{ 0%,100%{ opacity:.42 } 45%{ opacity:.62 } 70%{ opacity:.5 } }

.heat-glow{ mix-blend-mode: screen; animation: heat 4.4s ease-in-out infinite; }
@keyframes heat{ 0%,100%{ opacity:.72 } 40%{ opacity:1 } 68%{ opacity:.84 } }
.coil{ animation: coil 5.2s ease-in-out infinite; }
@keyframes coil{ 0%,100%{ opacity:.85 } 45%{ opacity:1 } }

.tv-led{ animation: ember 4s ease-in-out infinite; }
.vcd-led{ animation: ember 2.2s steps(2) infinite; }

/* ── CRT screen ────────────────────────────────────────── */
.crt-layer{ opacity: 0; transition: opacity 1.5s var(--ease); }
.crt-layer.is-on{ opacity: 1; }

.crt-card{ opacity: 0; transition: opacity .9s var(--ease); }
.crt-card.is-on{ opacity: 1; }

.crt-roll{ animation: roll 8s linear infinite; }
@keyframes roll{
  0%  { transform: translateY(-30px); opacity: 0; }
  12% { opacity: .06; }
  100%{ transform: translateY(200px); opacity: 0; }
}
.crt-noise{ animation: noise .9s steps(3) infinite; }
@keyframes noise{ 0%{opacity:.07} 50%{opacity:.13} 100%{opacity:.09} }
.crt-flicker{ animation: flick 7s ease-in-out infinite; }
@keyframes flick{ 0%,92%,100%{opacity:0} 95%{opacity:.055} 97%{opacity:.02} }

/* channel-change: brief roll + wash when the visual switches */
#tv.is-switching #crtNoise{ opacity: .5; }
#tv.is-switching #crtFlick{ opacity: .12; animation: none; }

/* ── top line ──────────────────────────────────────────── */
.top{
  position: fixed; z-index: 6; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: calc(var(--shell) * .8) var(--shell) 0;
  font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(250,241,221,.74);
  text-shadow: 0 1px 6px rgba(30,16,6,.7);
}
.top__clock{
  font-family: "DM Mono", ui-monospace, monospace; font-weight: 300;
  letter-spacing: .16em;
}
.top__link{
  color: inherit; text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color .3s, border-color .3s;
}
.top__link:hover, .top__link:focus-visible{ color: var(--amber); border-color: rgba(242,197,124,.6); }

/* ── hero type ─────────────────────────────────────────── */
.hero{
  position: fixed; z-index: 5; left: 50%; top: 43%;
  transform: translate(-50%, -50%);
  width: min(92vw, 900px);
  text-align: center; pointer-events: none;
}
.hero__title{
  margin: 0;
  font-family: "Martel", "Nirmala UI", serif; font-weight: 900;
  font-size: clamp(3.4rem, 12vw, 9.5rem);
  line-height: .95; letter-spacing: -.01em;
  color: #fdf5e2;
  text-shadow:
    0 2px 0 rgba(120,62,22,.30),
    0 14px 40px rgba(40,20,6,.55),
    0 1px 2px rgba(60,30,10,.45);
}
.hero__sub{
  margin: .28em 0 0;
  font-family: "Martel", serif; font-weight: 700;
  font-size: clamp(1.15rem, 3.4vw, 2.1rem);
  color: #f6e6c4;
  text-shadow: 0 8px 24px rgba(40,20,6,.6);
}
.hero__note{
  margin: 1.1em 0 0;
  font-size: clamp(.78rem, 1.5vw, .95rem);
  font-weight: 300; letter-spacing: .04em;
  color: rgba(246,230,196,.68);
  text-shadow: 0 4px 16px rgba(40,20,6,.7);
}

/* ── playlist ──────────────────────────────────────────── */
.tracks{
  position: fixed; z-index: 7;
  left: 50%; bottom: calc(var(--shell) + 190px);
  transform: translateX(-50%);
  width: min(560px, calc(100vw - var(--shell) * 2));
  max-height: 40vh; overflow: hidden auto;
  background: var(--panel);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--panel-edge); border-radius: 16px;
  box-shadow: 0 20px 50px rgba(20,10,2,.5);
  scrollbar-width: thin;
}
.tracks__head{
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(30,19,10,.85);
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(250,241,221,.6);
}
.tracks__close{
  background: none; border: 0; color: inherit; cursor: pointer;
  font-size: .8rem; padding: 2px 6px; border-radius: 6px;
}
.tracks__close:hover{ color: var(--amber); }
.tracks__list{ margin: 0; padding: 4px 0 10px; list-style: none; }
.tracks__list li{
  display: flex; gap: 12px; align-items: baseline;
  padding: 9px 18px;
  font-size: .88rem; font-weight: 300; color: rgba(250,241,221,.72);
  cursor: pointer; transition: background .25s, color .25s;
}
.tracks__list li:hover{ background: rgba(224,138,43,.12); color: var(--cream); }
.tracks__list li .n{
  font-family: "DM Mono", monospace; font-size: .72rem;
  color: rgba(216,171,95,.7); min-width: 2ch;
}
.tracks__list li.is-current{ color: var(--amber); }
.tracks__list li.is-current .n{ color: var(--amber); }

/* ── player ────────────────────────────────────────────── */
.player{
  position: fixed; z-index: 8;
  left: 50%; bottom: calc(var(--shell) + 22px);
  transform: translateX(-50%);
  width: min(560px, calc(100vw - var(--shell) * 2));
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  padding: 16px 20px;
  background: var(--panel);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid var(--panel-edge);
  border-radius: 20px;
  box-shadow:
    0 24px 60px rgba(18,8,0,.55),
    inset 0 1px 0 rgba(255,232,190,.14);
}

.player__art{
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 34% 28%, #f6d79b, #d08b33 55%, #8c4d17);
  box-shadow: inset 0 0 0 1px rgba(255,235,190,.35), 0 6px 18px rgba(20,8,0,.5);
  animation: turn 26s linear infinite;
}
.player__art span{
  font-family: "Martel", serif; font-size: 1.9rem; font-weight: 700;
  color: #4a1f06; line-height: 1;
  animation: turn 26s linear infinite reverse;
}
@keyframes turn{ to{ transform: rotate(360deg); } }

.player__body{ min-width: 0; }
.player__title{
  margin: 2px 0 0;
  font-size: 1rem; font-weight: 600; color: var(--cream);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player__source{
  margin: 2px 0 10px;
  font-size: .7rem; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(216,171,95,.85);
}

.player__seek{ position: relative; height: 16px; cursor: pointer; }
.player__thread{
  position: absolute; top: 7px; left: 0; right: 0; height: 2px;
  background: rgba(250,241,221,.20); border-radius: 2px; overflow: hidden;
}
.player__fill{
  height: 100%; width: 0;
  background: linear-gradient(90deg, #c07a2a, var(--brass));
}
.player__bead{
  position: absolute; top: 50%; left: 0;
  width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 10px rgba(242,197,124,.8);
  transform: translateY(-50%);
}
.player__seek:focus-visible{ outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 4px; }

.player__row{
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 4px;
}
.player__time{
  font-family: "DM Mono", monospace; font-size: .72rem; font-weight: 300;
  color: rgba(250,241,221,.6); white-space: nowrap;
}
.player__ctrls{ display: flex; align-items: center; gap: 10px; }

.btn{
  background: none; border: 0; cursor: pointer;
  color: rgba(250,241,221,.78);
  font-size: .8rem; line-height: 1; padding: 8px;
  border-radius: 10px;
  transition: color .25s, transform .25s var(--ease);
}
.btn:hover{ color: var(--amber); transform: scale(1.08); }
.btn--play{
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1rem; color: #3a1b04;
  background: linear-gradient(150deg, #f4d296, var(--brass) 60%, #b3792c);
  box-shadow: 0 6px 18px rgba(20,8,0,.45), inset 0 1px 0 rgba(255,246,222,.6);
}
.btn--play:hover{ color: #2c1403; }
.btn:focus-visible, .chip:focus-visible, .tracks__close:focus-visible{
  outline: 2px solid var(--amber); outline-offset: 3px;
}

.player__utils{
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(250,241,221,.10);
}
.chip{
  background: none; border: 1px solid rgba(250,241,221,.18);
  color: rgba(250,241,221,.6); cursor: pointer;
  font-family: inherit; font-size: .68rem; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 999px;
  transition: all .25s;
}
.chip:hover{ color: var(--cream); border-color: rgba(242,197,124,.5); }
.chip[aria-pressed="true"], .chip[aria-expanded="true"]{
  color: #3a1b04; background: var(--brass); border-color: transparent;
}
.vol{ display: flex; align-items: center; gap: 6px; margin-left: auto; }
.vol__icon{ font-size: .8rem; opacity: .7; }
.vol__input{
  -webkit-appearance: none; appearance: none;
  width: 74px; height: 2px; border-radius: 2px;
  background: rgba(250,241,221,.22); cursor: pointer;
}
.vol__input::-webkit-slider-thumb{
  -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 8px rgba(242,197,124,.7);
}
.vol__input::-moz-range-thumb{
  width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--amber);
}
.vol__input:focus-visible{ outline: 2px solid var(--amber); outline-offset: 4px; }

.credit{
  position: fixed; z-index: 6; bottom: 8px; left: 50%;
  transform: translateX(-50%);
  margin: 0; font-size: .62rem; letter-spacing: .1em;
  color: rgba(250,241,221,.36); white-space: nowrap;
}
.credit a{ color: inherit; }

/* ── waiting for the first touch ────────────────────────── */
.player.is-idle .btn--play{ animation: invite 2.8s ease-in-out infinite; }
@keyframes invite{
  0%,100%{ box-shadow: 0 6px 18px rgba(20,8,0,.45), inset 0 1px 0 rgba(255,246,222,.6), 0 0 0 0 rgba(242,197,124,.55); }
  60%    { box-shadow: 0 6px 18px rgba(20,8,0,.45), inset 0 1px 0 rgba(255,246,222,.6), 0 0 0 14px rgba(242,197,124,0); }
}
.player.is-idle .player__time{ opacity: .45; }

/* keep the engine present but never shown */
.yt-host{
  position: fixed; width: 320px; height: 180px;
  left: -9999px; top: 0; opacity: 0; pointer-events: none;
}
/* ── portrait / small screens ──────────────────────────── */
@media (max-width: 820px){
  .top{ font-size: .62rem; letter-spacing: .1em; }
  .hero{ top: 56%; }
  .hero__title{ font-size: clamp(2.9rem, 17vw, 5rem); }
  .player{
    grid-template-columns: auto 1fr; gap: 14px;
    padding: 14px 16px; border-radius: 18px;
    bottom: calc(var(--shell) + 14px);
  }
  .player__art{ width: 50px; height: 50px; }
  .player__art span{ font-size: 1.5rem; }
  .player__title{ font-size: .92rem; }
  .tracks{ bottom: calc(var(--shell) + 186px); max-height: 34vh; }
  .credit{ display: none; }
}

@media (max-width: 480px){
  .player__utils{ flex-wrap: wrap; row-gap: 8px; }
  .vol{ margin-left: 0; }
  .vol__input{ width: 62px; }
  .hero__note{ display: none; }
}

@media (max-height: 520px){
  .hero{ top: 40%; }
  .hero__note{ display: none; }
}

/* ── reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce){
  .fan-blades, .curtain, .sunbeam, .smoke path, .dust circle,
  .crt-spill, .crt-roll, .crt-noise, .crt-flicker, .player__art, .heat-glow, .coil,
  .player__art span, .tv-led, .vcd-led, .incense-tip, .cooker path, .kitchen-spill{
    animation: none !important;
  }
  .crt-layer{ transition-duration: .01ms; }
  .player.is-idle .btn--play{
    animation: none !important;
    box-shadow: 0 6px 18px rgba(20,8,0,.45), inset 0 1px 0 rgba(255,246,222,.6), 0 0 0 5px rgba(242,197,124,.4);
  }
}

/* ── SVG text classes ──────────────────────────────────── */
.svg-cal{ font-family: "Martel", serif; font-size: 22px; font-weight: 700; }
.svg-om{ font-family: "Martel", serif; font-size: 30px; font-weight: 700; }
.svg-om-lg{ font-family: "Martel", serif; font-size: 46px; font-weight: 700; }
.svg-tiny{ font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .1em; }
.svg-card-1{ font-family: "Martel", serif; font-size: 30px; font-weight: 900; letter-spacing: .06em; }
.svg-card-2{ font-family: "Mukta", sans-serif; font-size: 14px; font-weight: 400; letter-spacing: .3em; }

/* ══════════════════════════════════════════════════════════
   THE FRONT DOOR — the landing page
   Ochre wall, teak double door, marigold toran. Opening it is
   the gesture the browser needs before it will allow sound.
   ══════════════════════════════════════════════════════════ */

.door{
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center;
  background:
    radial-gradient(140% 100% at 16% 8%, #f4dc9f 0%, #e6c37a 42%, #cda75c 78%, #b8934c 100%);
  cursor: pointer;
  transition: opacity 1.2s var(--ease), transform 1.5s var(--ease), visibility 1.5s;
}
.door.is-gone{ opacity: 0; visibility: hidden; transform: scale(1.2); }

.porch{ position: relative; width: min(1080px, 96vw); height: min(780px, 94vh); }

.floor{
  position: absolute; left: 0; right: 0; bottom: 0; height: 13%;
  background: linear-gradient(#dfcda6, #cbb88f);
}

/* barred window on the left wall */
.win{
  position: absolute; left: 3%; top: 20%; width: 15%; height: 27%;
  background:
    repeating-linear-gradient(90deg, transparent 0 22%, #6b4423 22% 27%, transparent 27% 100%),
    linear-gradient(#2a1f16, #1d1610);
  border: 11px solid #6b4423;
  box-shadow: 0 0 0 5px #e3d5b6, inset 0 0 18px rgba(0,0,0,.6);
}
/* the switchboard every Indian porch has */
.plug{
  position: absolute; right: 8%; top: 34%; width: 3.4%; height: 5%;
  background: #efe8d4; border-radius: 2px;
  box-shadow: 0 0 0 2px #d6c8a8, inset 0 0 0 4px #efe8d4, inset 0 0 0 5px #b9ab8c;
}
.plug::after{
  content: ''; position: absolute; left: 32%; top: 26%; width: 36%; height: 48%;
  background: #8d8878; border-radius: 1px;
}

/* granite steps */
.step{ position: absolute; border-radius: 2px; }
.step--far{
  left: 21%; width: 58%; bottom: 11%; height: 4.4%;
  background: linear-gradient(#a3a29e, #8e8d89);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.22);
}
.step--near{
  left: 16%; width: 68%; bottom: 4%; height: 5.2%;
  background: linear-gradient(#989793, #7f7e7a);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.18);
}

/* the doorframe */
.frame{
  position: absolute; left: 50%; bottom: 15%; transform: translateX(-50%);
  width: min(430px, 44%); height: 72%;
  padding: 17px 17px 0;
  background: linear-gradient(100deg, #f2ead6, #e4d8bc);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 0 4px #d8c9a8, 0 26px 54px rgba(96,54,12,.30);
  perspective: 1300px;
  z-index: 2;
}
.opening{
  position: relative; width: 100%; height: 100%;
  background: linear-gradient(#241606, #43290f);
  transform-style: preserve-3d;
  box-shadow: inset 0 0 22px rgba(0,0,0,.7);
}
.glow{
  position: absolute; inset: 0; opacity: .22;
  background: radial-gradient(72% 62% at 50% 46%, #f7dca4, #b87b32 52%, #3a2410 100%);
  transition: opacity 1.5s ease;
}
.door.is-open .glow{ opacity: 1; }

/* the two leaves */
.leaf{
  position: absolute; top: 0; height: 100%; width: 50%;
  background: linear-gradient(96deg, #8d5729 0%, #71411a 46%, #5c3317 100%);
  box-shadow: inset 0 0 0 1.5px rgba(38,18,4,.55);
  backface-visibility: hidden;
  transition: transform 1.3s cubic-bezier(.42,0,.22,1);
}
.leaf::after{
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(93deg, rgba(255,226,178,.055) 0 2px, transparent 2px 8px);
}
.leaf--l{ left: 0;  transform-origin: left center;  border-right: 1px solid #40240d; }
.leaf--r{ right: 0; transform-origin: right center; }
.door.is-open .leaf--l{ transform: rotateY(-80deg); }
.door.is-open .leaf--r{ transform: rotateY(80deg); }

.panel{
  position: absolute; left: 13%; width: 74%;
  background: linear-gradient(100deg, #96602e, #7a4823);
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 1.5px rgba(48,24,8,.6),
    inset 2px 3px 8px rgba(255,222,176,.14),
    0 1px 0 rgba(255,226,180,.14);
}
.panel--a{ top: 4%;  height: 25%; }
.panel--b{ top: 33%; height: 30%; }
.panel--c{ top: 67%; height: 27%; }

.handle{
  position: absolute; top: 46%; width: 10px; height: 78px; border-radius: 5px;
  background: linear-gradient(#f2dca6, #c69c50 48%, #8b6a2c);
  box-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.leaf--r .handle{ left: 7px; }
.latch{
  position: absolute; top: 40%; left: 6px; width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6e3b4, #b78f43 60%, #7d5f26);
}

/* marigold toran over the frame */
.garland{
  position: absolute; left: 50%; bottom: 84.5%; transform: translateX(-50%);
  width: min(486px, 50%); height: auto; z-index: 3;
  filter: drop-shadow(0 6px 10px rgba(96,54,12,.28));
}

/* pots either side */
.pot{ position: absolute; bottom: 7%; width: 9%; height: auto; z-index: 4; }
.pot--l{ left: 9%; }
.pot--r{ right: 9%; }

/* what the old landing page said, now on the door */
.plate{
  position: absolute; left: 50%; top: 39%; transform: translate(-50%,-50%);
  width: min(560px, 86%); text-align: center; z-index: 5;
  transition: opacity .45s ease, transform .8s var(--ease);
}
.door.is-open .plate{ opacity: 0; transform: translate(-50%,-58%); }
.plate__sun{
  font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1; color: #ffdc93;
  text-shadow: 0 0 34px rgba(255,213,132,.85);
  animation: turn 44s linear infinite;
}
.plate__title{
  margin: .42em 0 0;
  font-family: "Martel", serif; font-weight: 900;
  font-size: clamp(2.3rem, 6.6vw, 3.7rem); line-height: 1;
  color: #fdf3dd;
  text-shadow: 0 3px 0 rgba(60,28,6,.4), 0 14px 34px rgba(30,14,2,.6);
}
.plate__sub{
  margin: .3em 0 0;
  font-family: "Martel", serif; font-weight: 700;
  font-size: clamp(.95rem, 2.4vw, 1.28rem); color: #f0dcb2;
  text-shadow: 0 8px 22px rgba(30,14,2,.65);
}
.plate__btn{
  margin-top: 1.9em;
  font-family: "Martel", serif; font-weight: 700; font-size: 1.02rem;
  color: #3d1d05; cursor: pointer;
  padding: 13px 40px; border: 0; border-radius: 999px;
  background: linear-gradient(150deg, #f9e2ab, #d8ab5f 58%, #b3792c);
  box-shadow: 0 10px 26px rgba(24,10,0,.42), inset 0 1px 0 rgba(255,248,226,.75);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.plate__btn:hover{ transform: translateY(-2px); box-shadow: 0 16px 34px rgba(24,10,0,.46); }
.plate__btn:focus-visible{ outline: 2px solid #fff3d4; outline-offset: 4px; }
.plate__hint{
  margin: 1.2em 0 0; font-size: .66rem; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(253,243,221,.6);
}

@media (max-width: 820px){
  .porch{ height: 92vh; }
  .frame{ width: min(320px, 66%); height: 62%; bottom: 18%; }
  .garland{ width: min(360px, 74%); }
  .win{ left: 1%; width: 17%; height: 20%; top: 16%; }
  .pot{ width: 13%; bottom: 9%; }
  .pot--l{ left: 2%; } .pot--r{ right: 2%; }
  .plate{ top: 36%; }
  .plate__btn{ padding: 12px 34px; }
}

@media (prefers-reduced-motion: reduce){
  .leaf{ transition: none; }
  .door.is-open .leaf--l,
  .door.is-open .leaf--r{ transform: none; opacity: 0; transition: opacity .5s ease; }
  .plate__sun{ animation: none; }
  .door{ transition: opacity .6s ease, visibility .6s; }
  .door.is-gone{ transform: none; }
}

/* ── waiting for the next bhajan to arrive ──────────────
   The title and position repaint the instant a control is pressed;
   this is the only cue that the audio has not caught up yet. */
.player.is-loading .player__title{ animation: settle 1.1s ease-in-out infinite; }
.player.is-loading .player__time{ opacity: .38; }
@keyframes settle{ 0%,100%{ opacity: 1 } 50%{ opacity: .55 } }

@media (prefers-reduced-motion: reduce){
  .player.is-loading .player__title{ animation: none; opacity: .7; }
}
