/* Chaabi: a contemporary griha pravesh in walnut, sage and polished brass.
   Gate (turn the key -> latch -> the door swings inward on a lit home -> walk in) -> hero inside -> muhurat on key tags
   -> the family's note on the doormat -> the key board -> the day -> the lobby directory -> ring the doorbell. */

:root {
  --ink: #1f2a27;
  --ink-soft: #52605b;
  --sage: #8fa596;
  --sage-deep: #3d5148;
  --walnut: #5a3420;
  --walnut-2: #7a4a2e;
  --brass: #c8a24a;
  --brass-hi: #f3dc98;
  --brass-dk: #8a6420;
  --cream: #f6f0e4;
  --cream-2: #ece2cf;
  --marigold: #e07b2a;
  --sindoor: #b3201c;
  --glow: #ffd88f;
  --line: rgba(61, 81, 72, .22);

  --f-display: "Young Serif", Georgia, serif;
  --f-body: "Figtree", system-ui, sans-serif;
  --f-deva: "Noto Serif Devanagari", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --fx-music-bg: var(--sage-deep);
  --fx-music-ring: var(--brass);
  --fx-music-ink: var(--brass-hi);
  --fx-bg: var(--cream);
}

html { scroll-behavior: smooth; }
html.shut { overflow: hidden; }
body { background: var(--cream); color: var(--ink); font: 400 18px/1.6 var(--f-body); }
a { color: inherit; }
.defs { position: absolute; }
[lang="hi"] { font-family: var(--f-deva); }

/* =================================================================== GATE */

.gate { position: relative; min-height: 100svh; overflow: hidden; background: #2a2018; }
.scene {
  --dw: min(62vw, 34svh, 320px);
  position: absolute; inset: 0; z-index: 3; overflow: hidden;
  transition: transform 1.6s cubic-bezier(.6, 0, .3, 1), opacity 1.1s ease .35s;
}
.wall {
  position: absolute; inset: 0 0 18svh;
  background:
    radial-gradient(40% 30% at 18% 30%, rgba(255, 226, 160, .35), transparent 70%),
    radial-gradient(40% 30% at 82% 30%, rgba(255, 226, 160, .35), transparent 70%),
    repeating-radial-gradient(circle at 30% 40%, rgba(255, 255, 255, .03) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #a9bcae, #8fa596 60%, #7d9384);
}
.wall__lamp {           /* brass wall sconces either side of the door */
  position: absolute; top: 24%; width: 18px; height: 34px; border-radius: 9px 9px 4px 4px;
  background: linear-gradient(180deg, #fff6d8, var(--glow)); box-shadow: 0 0 30px 12px rgba(255, 216, 143, .55), 0 0 0 3px var(--brass);
}
.wall__lamp--l { left: calc(50% - var(--dw) / 2 - 52px); }
.wall__lamp--r { right: calc(50% - var(--dw) / 2 - 52px); }
.scene::after {         /* the floor: pale marble, a strip of light under the door once it opens */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18svh;
  background:
    radial-gradient(30% 60% at 50% 0%, rgba(255, 216, 143, var(--spill, 0)), transparent 80%),
    linear-gradient(180deg, #d9d0c1, #c7bba7 60%, #b3a58d);
  box-shadow: inset 0 6px 8px -4px rgba(40, 30, 20, .35);
  transition: --spill 1s;
}
.gate[data-phase="open"] .scene { --spill: .8; }

.frame {
  position: absolute; left: 50%; bottom: 18svh; z-index: 2; translate: -50% 0;
  width: var(--dw); height: calc(var(--dw) * 2.02);
  perspective: 1500px; perspective-origin: 20% 50%; container-type: inline-size;
  box-shadow: 0 0 0 10px #ede4d2, 0 0 0 12px #c9bca3, 0 18px 40px 6px rgba(30, 30, 20, .35);
}
.frame__toran { position: absolute; left: -34px; right: -34px; bottom: 100%; margin-bottom: -40px; z-index: 5; filter: drop-shadow(0 4px 3px rgba(20, 30, 10, .35)); }
.ltoran { display: block; width: 100%; height: auto; overflow: visible; }
.ltoran__bell { animation: tinkle 3s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 0; }
@keyframes tinkle { from { rotate: -6deg; } to { rotate: 6deg; } }

/* the lit home behind the door */
.home {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(70% 40% at 50% 12%, rgba(255, 240, 200, .95), transparent 70%),
    linear-gradient(180deg, #f7e2b5, #f0c987 55%, #d9a35e 56%, #c48a48);
}
.home__pendant { position: absolute; left: 50%; top: 0; width: 2px; height: 16%; background: #3a2a1a; }
.home__pendant::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 46px; height: 24px; translate: -50% 0;
  border-radius: 46px 46px 6px 6px; background: linear-gradient(180deg, #c8a24a, #8a6420);
  box-shadow: 0 18px 40px 14px rgba(255, 220, 140, .8);
}
.home__console { position: absolute; left: 14%; right: 14%; top: 50%; height: 7%; background: #6a3f24; border-radius: 3px; box-shadow: 0 10px 0 -4px #4a2a17; }
.home__console i {      /* a brass diya on the console */
  position: absolute; left: 50%; bottom: 100%; width: 10px; height: 16px; translate: -50% 0;
  border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
  background: radial-gradient(ellipse at 50% 75%, #fff 0, #ffd65a 40%, #ff8a1c 80%, transparent);
  box-shadow: 0 0 20px 8px rgba(255, 200, 100, .7);
  animation: flicker 1.5s ease-in-out infinite alternate;
}
@keyframes flicker { 40% { transform: scale(.92, 1.08); } 100% { transform: scale(1.04, .95); } }
.home__urli {           /* an urli of floating marigolds on the floor */
  position: absolute; left: 50%; bottom: 14%; width: 44%; height: 9%; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle at 30% 50%, #f8b81c 0 8%, transparent 9%), radial-gradient(circle at 55% 40%, #f07c12 0 8%, transparent 9%),
    radial-gradient(circle at 72% 58%, #f8b81c 0 7%, transparent 8%), radial-gradient(ellipse, #6fa3a0 0 55%, #8a6420 57% 100%);
}
.home__runner { position: absolute; left: 34%; right: 34%; bottom: 0; height: 12%; background: repeating-linear-gradient(90deg, #8c2a1c 0 6px, #b8452a 6px 12px); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); opacity: .8; }

/* the door: hinged on the left, swings inward */
.door {
  position: absolute; inset: 0; transform-origin: 0 50%; transform-style: preserve-3d;
  transition: transform 2.3s cubic-bezier(.5, .05, .2, 1);
}
.gate[data-phase="open"] .door { transform: rotateY(78deg); }
.gate.instant .door { transition: none; }
.door__face {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .18), transparent 8%, transparent 92%, rgba(0, 0, 0, .2)),
    repeating-linear-gradient(90deg, transparent 0 calc(var(--dw) / 6 - 2px), rgba(30, 14, 6, .45) calc(var(--dw) / 6 - 2px) calc(var(--dw) / 6)),
    repeating-linear-gradient(92deg, rgba(255, 220, 180, .05) 0 3px, transparent 3px 11px),
    linear-gradient(180deg, var(--walnut-2), var(--walnut) 70%, #4a2a17);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3);
  transition: filter 2.3s;
}
.gate[data-phase="open"] .door__face { filter: brightness(.55); }
.door__edge { position: absolute; top: 0; bottom: 0; right: 0; width: 22px; background: #3e2416; transform-origin: 100% 50%; transform: rotateY(90deg); }

.plate {
  position: absolute; left: 47%; top: 19%; translate: -50% 0; width: 74%;
  display: flex; flex-direction: column; align-items: center; padding: 12px 10px 10px;
  border-radius: 4px; text-align: center;
  background: linear-gradient(135deg, #fff2c4, #e2be66 30%, #b8892e 62%, #f0d68a);
  box-shadow: 0 4px 10px rgba(20, 10, 2, .5), inset 0 0 0 1px rgba(255, 250, 220, .6), inset 0 0 0 4px rgba(138, 100, 32, .45);
  color: #5a3c0e;
}
.plate__screw { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6d6, #8a6420); }
.plate__screw:nth-child(1) { left: 6px; top: 6px; } .plate__screw:nth-child(2) { right: 6px; top: 6px; }
.plate__screw:nth-child(3) { left: 6px; bottom: 6px; } .plate__screw:nth-child(4) { right: 6px; bottom: 6px; }
.plate__hi { font-size: clamp(12px, 6.4cqw, 19px); font-weight: 600; line-height: 1.3; text-shadow: 0 1px 0 rgba(255, 245, 210, .7); }
.plate__name { font: 400 clamp(14px, 7.4cqw, 26px)/1.1 var(--f-display); letter-spacing: .02em; text-wrap: balance; text-shadow: 0 1px 0 rgba(255, 245, 210, .8), 0 -1px 0 rgba(80, 50, 10, .35); }
.plate__fam { margin-top: 4px; font-size: clamp(9px, 4cqw, 12px); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.door__swastik { position: absolute; left: 50%; top: 9%; width: 13%; translate: -50% 0; opacity: .9; }
.door__swastik svg { display: block; width: 100%; height: auto; }
.door__pull {
  position: absolute; right: 10%; top: 42%; width: 9px; height: 26%;
  border-radius: 6px; background: linear-gradient(90deg, #8a6420, #f3dc98 40%, #c8a24a 70%, #8a6420);
  box-shadow: 4px 6px 8px rgba(20, 10, 2, .5);
}

/* the lock + key: a real button */
.lock {
  position: absolute; z-index: 4; left: 64%; top: 58%; width: clamp(72px, 22vw, 96px); aspect-ratio: 1; translate: -50% -50%;
  padding: 0; border: 0; border-radius: 50%; background: none; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent;
  transition: opacity .5s ease .2s;
}
.lock:focus-visible { outline: 3px solid var(--brass-hi); outline-offset: 6px; }
.key__svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 5px rgba(20, 10, 2, .55)); }
.key__bow { rotate: var(--turn, 0deg); transform-box: view-box; transform-origin: 0 0; transition: rotate .4s cubic-bezier(.3, 1.4, .5, 1); }
.lock.dragging .key__bow, .lock.turning .key__bow { transition: none; }
.lock__ring { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255, 236, 180, .85); animation: ring 2.2s ease-out infinite; pointer-events: none; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(243, 220, 152, .6); } 100% { box-shadow: 0 0 0 24px rgba(243, 220, 152, 0); } }
.gate:not([data-phase="idle"]) .lock__ring { display: none; }
.gate[data-phase="open"] .lock { opacity: 0; pointer-events: none; transition-delay: 0s; transition-duration: .3s; }

.mat {
  position: absolute; left: 50%; bottom: 4svh; z-index: 2; translate: -50% 0;
  width: calc(var(--dw) * .9); height: 9svh; display: grid; place-items: center;
  transform: perspective(300px) rotateX(48deg); transform-origin: 50% 100%;
  background:
    repeating-linear-gradient(90deg, rgba(90, 50, 20, .25) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(0deg, rgba(90, 50, 20, .2) 0 2px, transparent 2px 4px),
    linear-gradient(180deg, #c99a5a, #a87a3e);
  border-radius: 6px; box-shadow: 0 0 0 4px #6a4520, 0 10px 14px rgba(30, 20, 10, .4);
}
.mat span { font-size: clamp(18px, 5.4vw, 26px); font-weight: 600; color: #5a2e10; }

/* hint and skip */
.gate__hint {
  position: absolute; left: 50%; top: calc(env(safe-area-inset-top) + 7svh); translate: -50% 0; z-index: 7;
  display: flex; flex-direction: column; align-items: center; width: min(90%, 26em); text-align: center; pointer-events: none;
  color: #fffdf6; text-shadow: 0 1px 8px rgba(20, 30, 25, .7); transition: opacity .5s;
}
.gate__to { font-size: 16px; font-weight: 500; }
.gate__line { font: 400 clamp(28px, 8vw, 38px)/1.15 var(--f-display); }
.gate__sub { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.gate:not([data-phase="idle"]) .gate__hint { opacity: 0; }
.gate__skip {
  position: absolute; right: 12px; top: max(12px, env(safe-area-inset-top)); z-index: 8;
  min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #fffdf6; background: rgba(31, 42, 39, .45); border: 1px solid rgba(255, 253, 246, .45);
}
.gate:not([data-phase="idle"]) .gate__skip { opacity: 0; pointer-events: none; transition: opacity .3s; }

.gate.is-through .scene { transform: scale(3); opacity: 0; pointer-events: none; }
.gate.is-done .scene, .gate.is-done .gate__hint, .gate.is-done .gate__skip { display: none; }
html:not(.js) :is(.scene, .gate__hint, .gate__skip) { display: none; }

/* inside: lamplight and the names */
.inside {
  position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center;
  padding: 90px 16px 56px;
  background:
    radial-gradient(60% 34% at 50% 0%, rgba(255, 226, 160, .9), transparent 70%),
    radial-gradient(90% 60% at 50% 55%, #fff8ea, var(--cream) 70%),
    var(--cream);
}
.inside::before {       /* the pendant lamp, now overhead */
  content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 46px; background: #3a2a1a;
}
.inside::after {
  content: ""; position: absolute; left: 50%; top: 46px; width: 76px; height: 36px; translate: -50% 0;
  border-radius: 76px 76px 8px 8px; background: linear-gradient(180deg, var(--brass), var(--brass-dk));
  box-shadow: 0 26px 60px 22px rgba(255, 216, 143, .7);
}
.hero { position: relative; z-index: 1; width: min(100%, 540px); text-align: center; }
html.js .gate:not(.is-done) .hero > * { opacity: 0; translate: 0 16px; }
.hero > * { transition: opacity 1s var(--ease), translate 1s var(--ease); }
.gate.is-done .hero > :nth-child(2) { transition-delay: .12s; }
.gate.is-done .hero > :nth-child(3) { transition-delay: .24s; }
.gate.is-done .hero > :nth-child(n+4) { transition-delay: .4s; }
.hero__kicker { font-size: 18px; color: var(--sindoor); }
.hero__lead { margin: 12px auto 0; max-width: 24em; font-size: 18px; color: var(--ink-soft); text-wrap: balance; }
.hero__lead span { display: block; font-weight: 600; color: var(--ink); }
.hero__home { margin: 12px 0 0; font: 400 clamp(50px, 14vw, 88px)/1.02 var(--f-display); color: var(--walnut); text-wrap: balance; letter-spacing: -.01em; }
.hero__hi { margin-top: 6px; font-size: clamp(22px, 6vw, 28px); font-weight: 600; color: var(--brass-dk); }
.hero__line { margin-top: 6px; font-size: 17px; color: var(--ink-soft); }
.hero__when { margin: 28px auto 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero__date { font-weight: 600; font-size: 17px; letter-spacing: .12em; text-transform: uppercase; }
.hero__muhurat {
  display: flex; flex-direction: column; align-items: center; padding: 12px 30px 14px; border-radius: 14px;
  background: var(--sage-deep); color: var(--brass-hi);
  font: 400 clamp(32px, 9vw, 42px)/1 var(--f-display);
  box-shadow: 0 14px 30px -14px rgba(31, 42, 39, .8), inset 0 0 0 1px rgba(243, 220, 152, .4);
}
.hero__muhurat small { margin-bottom: 6px; font: 600 12px/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase; color: #dfe7df; }
.hero__more {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 28px;
  font-weight: 600; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--sage-deep);
}
.hero__more::after { content: "→"; rotate: 90deg; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 4px 0; } }

/* =================================================================== SECTIONS */

.sec { position: relative; max-width: 640px; margin: 0 auto; padding: 86px 16px; text-align: center; }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-deep); }
.kicker [lang="hi"] { letter-spacing: 0; text-transform: none; font-size: 17px; color: var(--sindoor); }
.sec__title { margin: 10px 0 24px; font: 400 clamp(32px, 9vw, 46px)/1.12 var(--f-display); color: var(--ink); text-wrap: balance; }
.sec__title em { font-style: normal; color: var(--walnut-2); }

/* ---------- muhurat: key tags ---------- */
.muhurat__when { font-weight: 600; color: var(--ink-soft); }
.muhurat__when span { display: block; font-weight: 500; }
.muhurat__note { margin-top: 8px; color: var(--sindoor); font-weight: 500; }
.muhurat__ask { margin: 30px auto 0; max-width: 26em; font-size: 16px; color: var(--ink-soft); }
.count { display: flex; justify-content: center; gap: clamp(8px, 3vw, 18px); margin-top: 34px; padding-top: 22px; border-top: 3px solid var(--brass-dk); }
.count span {
  position: relative; display: flex; flex-direction: column; align-items: center; width: 70px; padding: 26px 0 12px;
  border-radius: 10px 10px 30px 30px;
  background: linear-gradient(160deg, #fff2c4, var(--brass) 45%, var(--brass-dk));
  box-shadow: 0 10px 18px -8px rgba(60, 40, 10, .6), inset 0 0 0 1px rgba(255, 250, 220, .5);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #4a3008;
  transform-origin: 50% -22px; animation: tagSway 3.4s ease-in-out infinite alternate;
}
.count span:nth-child(2) { animation-delay: -.8s; } .count span:nth-child(3) { animation-delay: -1.7s; } .count span:nth-child(4) { animation-delay: -2.4s; }
.count span::before { content: ""; position: absolute; top: 8px; left: 50%; width: 10px; height: 10px; translate: -50% 0; border-radius: 50%; background: var(--cream); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
.count span::after { content: ""; position: absolute; top: -22px; left: 50%; width: 2px; height: 32px; translate: -50% 0; background: var(--brass-dk); z-index: -1; }
@keyframes tagSway { from { rotate: -3deg; } to { rotate: 3deg; } }
.count b { font: 400 28px/1.1 var(--f-display); color: #2c1c04; }
.count__done { margin-top: 20px; font: 400 24px var(--f-display); color: var(--walnut); }

/* ---------- the doormat note ---------- */
.doormat {
  position: relative; padding: 40px clamp(20px, 6vw, 44px) 34px; border-radius: 10px;
  background:
    repeating-linear-gradient(90deg, rgba(90, 50, 20, .14) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(0deg, rgba(90, 50, 20, .12) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #d8ad6c, #c4955a);
  box-shadow: 0 0 0 6px #6a4520, 0 0 0 8px #3a2410, 0 30px 40px -24px rgba(40, 20, 5, .7);
  color: #3a1e08;
}
.doormat__hi { font-size: clamp(34px, 10vw, 46px); font-weight: 600; line-height: 1.2; color: #6a1e10; }
.doormat__msg { margin-top: 14px; font: 400 clamp(21px, 5.6vw, 25px)/1.4 var(--f-display); }
.doormat__body { margin-top: 16px; font-size: 18px; }
.doormat__sign { margin-top: 18px; font-weight: 600; letter-spacing: .04em; }

/* ---------- the key board ---------- */
.family__elders { margin: -6px auto 26px; max-width: 26em; font-weight: 600; font-size: 19px; }
.family__elders small { display: block; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.keyboard {
  position: relative; padding: 26px 12px 24px; border-radius: 12px;
  background: repeating-linear-gradient(92deg, rgba(255, 220, 180, .05) 0 3px, transparent 3px 12px), linear-gradient(180deg, var(--walnut-2), var(--walnut));
  box-shadow: 0 24px 40px -24px rgba(40, 20, 5, .8), inset 0 1px 0 rgba(255, 220, 180, .3);
}
.keyboard__rail { display: none; }
.keys li { position: relative; padding-top: 8px; }
.keys li::before { content: ""; position: absolute; left: 50%; top: 0; width: 14px; height: 14px; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--brass-hi), var(--brass-dk)); box-shadow: 0 2px 3px rgba(0, 0, 0, .5); z-index: 1; }
.keys { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 10px; }
.hook {
  display: flex; flex-direction: column; align-items: center; width: 132px; padding: 0 0 4px; border: 0; background: none; cursor: pointer;
  transform-origin: 50% 0; -webkit-tap-highlight-color: transparent;
}
.hook:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 4px; border-radius: 8px; }
.hook.swing { animation: swing 1.6s cubic-bezier(.3, 1.4, .4, 1); }
@keyframes swing { 10% { rotate: 14deg; } 30% { rotate: -10deg; } 50% { rotate: 6deg; } 70% { rotate: -3deg; } 100% { rotate: 0; } }
.hook__key { position: relative; width: 26px; height: 56px; }
.hook__key::before {    /* the key's ring */
  content: ""; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 5px solid var(--brass); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4), 0 2px 3px rgba(0, 0, 0, .4);
}
.hook__key::after {     /* the blade with its teeth */
  content: ""; position: absolute; left: 10px; top: 24px; width: 6px; height: 32px;
  background: linear-gradient(90deg, var(--brass-hi), var(--brass-dk));
  border-radius: 0 0 2px 2px;
  clip-path: polygon(0 0, 100% 0, 100% 60%, 160% 64%, 160% 74%, 100% 78%, 100% 84%, 160% 88%, 160% 96%, 100% 100%, 0 100%);
}
.hook__tag {
  display: flex; flex-direction: column; margin-top: 2px; padding: 8px 10px; width: 100%; border-radius: 4px 4px 12px 12px;
  background: var(--cream); color: var(--ink); box-shadow: 0 6px 10px -4px rgba(0, 0, 0, .5);
}
.hook__tag b { font-weight: 600; font-size: 16px; line-height: 1.25; }
.hook__tag small { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.hook--guest .hook__key::before { border-color: var(--sage); }
.hook--guest .hook__tag { background: var(--sage-deep); color: var(--cream); }
.hook--guest .hook__tag small { color: var(--brass-hi); }
.family__hint { margin-top: 14px; font-size: 15px; color: var(--ink-soft); }

/* ---------- the day ---------- */
.day { list-style: none; margin: 0; padding: 0 0 0 30px; text-align: left; position: relative; }
.day::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--brass), var(--sage)); }
.day__ev { padding: 12px 0; }
.day__time { position: relative; margin-bottom: 8px; font: 400 26px/1.15 var(--f-display); color: var(--walnut-2); }
.day__time::after { content: ""; position: absolute; left: -28px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px var(--cream); }
.day__time small { margin-left: 10px; font: 500 15px/1.3 var(--f-body); color: var(--ink-soft); }
.day__card { padding: 16px 16px 18px; border-radius: 12px; background: #fffaf0; box-shadow: 0 0 0 1px var(--line), 0 16px 30px -22px rgba(31, 42, 39, .6); }
.day__hi { font-size: 20px; font-weight: 600; color: var(--sindoor); line-height: 1.35; }
.day__name { margin: 2px 0 0; font: 400 22px/1.2 var(--f-display); }
.day__when, .day__where { margin-top: 6px; font-size: 16px; color: var(--ink-soft); }
.day__note { margin-top: 8px; font-size: 16px; font-weight: 600; color: var(--sage-deep); }
.day__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 11px;
  border: 1.5px solid var(--sage-deep); border-radius: 999px; background: transparent; color: var(--sage-deep);
  font: 600 13.5px/1 var(--f-body); letter-spacing: .02em; text-decoration: none; transition: background .2s, transform .2s;
}
.btn:hover { background: rgba(61, 81, 72, .08); }
.btn:active { transform: scale(.96); }
.btn--solid { background: var(--sage-deep); color: var(--cream); }
.btn--solid:hover { background: var(--ink); }
.btn--wide { min-height: 52px; padding: 0 28px; font-size: 16px; margin-top: 22px; }

/* ---------- the lobby directory ---------- */
.lobby {
  position: relative; margin-top: 18px; padding: 24px 22px 22px; border-radius: 8px; text-align: left;
  background: repeating-linear-gradient(0deg, #1b1b1b 0 3px, #222 3px 6px); color: #f2f2ee;
  box-shadow: 0 0 0 8px #3a3a36, 0 0 0 10px #8a8a80, 0 26px 40px -20px rgba(0, 0, 0, .7);
  font-family: var(--f-body); text-transform: uppercase; letter-spacing: .12em;
}
.lobby__head { padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px dashed rgba(242, 242, 238, .35); font-weight: 600; font-size: 17px; }
.lobby__rows div { display: grid; grid-template-columns: 6.4em 1fr; gap: 10px; padding: 8px 0; }
.lobby__rows dt { font-size: 13px; color: var(--brass-hi); }
.lobby__rows dd { margin: 0; font-size: 15px; line-height: 1.45; }
.lobby__blink { position: absolute; right: 14px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: #7dff9a; box-shadow: 0 0 10px #7dff9a; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.gallery { columns: 2 160px; column-gap: 10px; }
.gallery img { display: block; width: 100%; margin-bottom: 10px; border-radius: 8px; break-inside: avoid; }

/* ---------- ring the doorbell ---------- */
.bellplate {
  display: inline-flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 8px; padding: 26px 34px 18px; border-radius: 12px;
  background: linear-gradient(135deg, #fff2c4, var(--brass) 40%, var(--brass-dk) 80%, #e8c878);
  box-shadow: 0 18px 30px -16px rgba(60, 40, 10, .7), inset 0 0 0 1px rgba(255, 250, 220, .6);
}
.bell {
  position: relative; width: 84px; height: 84px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 6px solid #8a6420; background: radial-gradient(circle at 40% 35%, #fffef8, #efe6d2 70%, #cbbd9f);
  box-shadow: 0 6px 0 #5a3c0e, 0 10px 18px rgba(0, 0, 0, .35);
  transition: transform .12s, box-shadow .12s; -webkit-tap-highlight-color: transparent;
}
.bell span { position: absolute; inset: 22px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 216, 143, .0), transparent); transition: background .3s; }
.bell:active, .bell.pressed { transform: translateY(5px); box-shadow: 0 1px 0 #5a3c0e, 0 4px 8px rgba(0, 0, 0, .35); }
.bell.rung span { background: radial-gradient(circle, rgba(255, 200, 90, .9), rgba(255, 200, 90, 0)); }
.bell:focus-visible { outline: 3px solid var(--sage-deep); outline-offset: 6px; }
.bell:not(.rung) { animation: press 2.4s ease-in-out infinite; }
@keyframes press { 50% { box-shadow: 0 6px 0 #5a3c0e, 0 0 0 10px rgba(255, 216, 143, .45); } }
.bellplate__label { font: 400 15px var(--f-display); color: #3a2606; text-shadow: 0 1px 0 rgba(255, 245, 210, .7); }
.bell__reply { animation: rise .8s var(--ease); }
@keyframes rise { from { opacity: 0; translate: 0 12px; } }
.bell__said { margin-top: 24px; font: 400 clamp(24px, 6.6vw, 30px)/1.2 var(--f-display); color: var(--walnut); }
.bell__alt { margin-top: 22px; font-size: 16px; color: var(--ink-soft); }
.bell__tag { margin-top: 16px; font: 400 22px var(--f-display); color: var(--sage-deep); }

/* =================================================================== FOOTER */

.foot { padding: 60px 16px calc(44px + env(safe-area-inset-bottom)); text-align: center; background: var(--ink); color: #dfe7df; }
.foot__plate { display: inline-block; padding: 12px 26px; border-radius: 4px; background: linear-gradient(135deg, #fff2c4, var(--brass) 40%, var(--brass-dk) 80%, #e8c878); color: #3a2606; font: 400 clamp(24px, 7vw, 32px)/1.1 var(--f-display); box-shadow: 0 8px 18px rgba(0, 0, 0, .5); }
.foot__date { margin-top: 16px; letter-spacing: .2em; color: var(--brass-hi); }
.foot__cal { margin-top: 14px; }
.foot__music { margin-top: 18px; font-size: 14px; font-style: italic; color: rgba(223, 231, 223, .65); }
.foot__credit { margin-top: 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(223, 231, 223, .65); }
.foot a { color: inherit; text-underline-offset: 3px; }
.foot__up { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }

@media (min-width: 900px) {
  .scene { --dw: min(24vw, 30svh, 280px); }
  .gate__hint { top: 3.5svh; }
  .sec { padding: 110px 16px; }
}

/* =================================================================== OG CARD */

html.og .ogcard { align-items: stretch; background: var(--cream); }
.og__door { position: relative; flex: 0 0 470px; background: linear-gradient(180deg, #a9bcae, #8fa596); display: flex; justify-content: center; align-items: flex-end; }
.og__toran { position: absolute; left: 20px; right: 20px; top: 0; z-index: 2; }
.og__leaf {
  position: relative; width: 290px; height: 560px;
  background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(30, 14, 6, .45) 46px 48px), linear-gradient(180deg, var(--walnut-2), var(--walnut));
  box-shadow: 0 0 0 12px #ede4d2, 0 0 0 14px #c9bca3;
}
.og__leaf .plate { top: 120px; }
.plate--og .plate__hi { font-size: 22px; }
.plate--og .plate__name { font-size: 34px; white-space: normal; }
.og__key { position: absolute; left: 64%; top: 330px; width: 92px; height: 92px; translate: -50% -50%; }
.og__key .key__bow { rotate: 0deg; }
.og__text { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 56px; }
.og__kicker { font-size: 24px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--sage-deep); }
.og__home { margin-top: 10px; font: 400 104px/1 var(--f-display); color: var(--walnut); }
.og__hosts { margin-top: 18px; font-size: 32px; font-weight: 500; color: var(--ink); }
.og__date { margin-top: 22px; font-size: 30px; font-weight: 600; letter-spacing: .06em; color: var(--ink-soft); }
.og__muhurat { margin-top: 18px; align-self: flex-start; padding: 12px 26px; border-radius: 12px; background: var(--sage-deep); color: var(--brass-hi); font: 400 36px/1.1 var(--f-display); }

@media (prefers-reduced-motion: reduce) {
  .gate .hero > * { opacity: 1 !important; translate: none !important; }
}
