/* Naksha: a modern griha pravesh drawn like an architect's sheet, in blueprint blue, dusk and marigold.
   Gate (folded plan -> two folds open -> the tower inks itself -> dusk, windows light floor by floor -> the family's
   flat glows) -> spec sheet muhurat -> note -> the day as rooms -> residents -> the way up -> stamp your approval. */

:root {
  --blue: #1b4f8a;
  --blue-dk: #0f3566;
  --blue-ln: rgba(226, 238, 255, .9);
  --grid: rgba(226, 238, 255, .1);
  --paper: #eef2f6;
  --paper-2: #e2e8ef;
  --ink: #0f1d33;
  --ink-soft: #4a5a72;
  --marigold: #f39c12;
  --warm: #ffd27a;
  --dusk-1: #232552;
  --dusk-2: #6b4a78;
  --dusk-3: #e2836a;
  --stamp: #c0392b;
  --line: rgba(15, 29, 51, .14);

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --f-deva: "IBM Plex Sans Devanagari", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --fx-music-bg: var(--blue-dk);
  --fx-music-ring: var(--marigold);
  --fx-music-ink: var(--warm);
  --fx-bg: var(--paper);
}

html { scroll-behavior: smooth; }
html.shut { overflow: hidden; }
body {
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--paper);
  color: var(--ink); font: 400 18px/1.6 var(--f-body);
}
a { color: inherit; }
[lang="hi"] { font-family: var(--f-deva); }

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

.gate {
  --sw: min(86vw, 52svh * .77, 420px);
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: max(20px, env(safe-area-inset-top)) 16px 28px; text-align: center;
  background:
    radial-gradient(80% 50% at 50% 40%, rgba(255, 255, 255, .7), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--paper);
  transition: background-color 1.6s;
}
.gate[data-stage="5"] { background-color: #e9e4ee; }
.gate__kicker { font: 500 13px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.gate__kicker span[data-to] { display: block; letter-spacing: .04em; text-transform: none; font: 500 16px var(--f-body); color: var(--ink); }
.gate__home { margin: 4px 0 0; font: 800 clamp(40px, 12vw, 72px)/1 var(--f-display); letter-spacing: -.03em; color: var(--blue-dk); text-wrap: balance; }
.gate__hi { font-size: clamp(18px, 5vw, 24px); font-weight: 600; color: var(--marigold); }
html.js .gate:not(.is-done) :is(.gate__home, .gate__hi) { opacity: 0; translate: 0 10px; }
.gate__home, .gate__hi { transition: opacity 1s var(--ease), translate 1s var(--ease); }

/* the sheet and its two folds */
.sheet { position: relative; width: var(--sw); aspect-ratio: 300 / 390; perspective: 1400px; }
.sheet__base, .flap__front {
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / calc(var(--sw) / 15) calc(var(--sw) / 15),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / calc(var(--sw) / 15) calc(var(--sw) / 15),
    radial-gradient(90% 70% at 50% 40%, var(--blue), var(--blue-dk));
}
.sheet__base {
  position: absolute; inset: 0; overflow: hidden; border-radius: 3px;
  box-shadow: 0 30px 50px -24px rgba(15, 29, 51, .6), inset 0 0 0 6px rgba(226, 238, 255, .12);
  clip-path: inset(0 50% 50% 0);
  transition: background 2s ease;
}
.plan { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheet__north {
  position: absolute; right: 5%; top: 4%; width: 30px; height: 30px; display: grid; place-items: center;
  border: 1.5px solid var(--blue-ln); border-radius: 50%; font: 500 12px var(--f-mono); color: var(--blue-ln);
}
.sheet__north::before { content: ""; position: absolute; top: -9px; left: 50%; translate: -50% 0; border: 6px solid transparent; border-bottom: 10px solid var(--blue-ln); border-top: 0; }
.tb {
  position: absolute; right: 4%; bottom: 3.5%; width: 52%; padding: 6px 8px; text-align: left;
  border: 1.2px solid var(--blue-ln); color: var(--blue-ln); background: rgba(15, 53, 102, .55);
  display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; align-items: baseline;
}
.tb__k { font: 500 7.5px/1.6 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.tb__v { font: 500 9px/1.4 var(--f-mono); }
.tb__v--big { font: 600 12px/1.2 var(--f-display); }

.flap { position: absolute; transform-style: preserve-3d; }
.flap span { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 3px; }
.flap__back {
  transform: rotateY(180deg);
  background:
    repeating-linear-gradient(0deg, rgba(15, 53, 102, .04) 0 2px, transparent 2px 5px),
    linear-gradient(135deg, #f7f9fb, #dfe6ee);
  box-shadow: inset 0 0 0 1px rgba(15, 53, 102, .15);
}
.flap--h .flap__back { transform: rotateX(180deg); }
.flap--v { left: 50%; top: 0; width: 50%; height: 100%; transform-origin: 0 50%; transform: rotateY(-180deg); clip-path: inset(0 0 50% 0); transition: transform 1.1s cubic-bezier(.5, .05, .25, 1); }
.flap--h { left: 0; top: 50%; width: 50%; height: 50%; transform-origin: 50% 0; transform: rotateX(180deg); transition: transform .9s cubic-bezier(.5, .05, .25, 1); }
.flap--h .flap__front { background: linear-gradient(135deg, #f7f9fb, #dfe6ee); box-shadow: inset 0 0 0 1px rgba(15, 53, 102, .15); }
.cover {
  position: absolute; inset: 14% 10%; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  border: 1.5px dashed rgba(15, 53, 102, .35); border-radius: 4px; color: var(--blue-dk); text-align: center;
}
.cover b { font: 800 clamp(22px, 7vw, 32px)/1 var(--f-display); letter-spacing: -.02em; }
.cover small { font: 500 10px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.sheet__grab {
  position: absolute; left: 0; top: 0; width: 50%; height: 50%; z-index: 4; padding: 0; border: 0; background: none;
  cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; border-radius: 4px;
}
.sheet__grab:focus-visible { outline: 3px solid var(--marigold); outline-offset: 4px; }
.gate[data-stage="0"] .sheet__grab { animation: ask 2.4s ease-in-out infinite; }
@keyframes ask { 50% { box-shadow: 0 0 0 10px rgba(243, 156, 18, .25); } }
/* the folded packet sits centred until it opens */
.gate[data-stage="0"] .sheet { translate: calc(var(--sw) / 4) calc(var(--sw) * 1.3 / 4); }
.sheet { transition: translate .9s var(--ease); }

/* stage 1: the bottom fold comes down */
.gate[data-stage="1"] .flap--h, .gate.h-open .flap--h { transform: rotateX(0deg); }
.gate:not([data-stage="0"]) .sheet__base { clip-path: inset(0 50% 0 0); }
.gate:not([data-stage="0"]) .flap--v { clip-path: none; }
/* stage 2: the side fold swings across */
.gate[data-stage="2"] .flap--h, .gate.past-2 .flap--h { display: none; }
.gate[data-stage="2"] .flap--v, .gate.past-2 .flap--v { transform: rotateY(0deg); }
.gate.past-2 .sheet__base { clip-path: inset(0 0 0 0); }
.gate.past-3 .flap { display: none; }
.gate.past-3 .sheet__grab { display: none; }
.sheet__base { transition: clip-path 0s; }

/* stage 3+: the drawing inks itself */
.plan .ln { fill: none; stroke: var(--blue-ln); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.plan .ln--thin { stroke-width: .6; opacity: .75; }
.plan .txt { font: 500 7px var(--f-mono); fill: var(--blue-ln); opacity: 0; transition: opacity .8s ease 1.4s; }
.plan .win { fill: transparent; transition: fill .5s ease, opacity .5s; }
.plan .bld { fill: transparent; transition: fill 1.8s ease; }
.plan .tree { fill: transparent; transition: fill 1.6s ease; }
.gate.past-3 .plan .ln, .ogcard .plan .ln { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.6, .1, .3, 1) calc(var(--d, 0) * 1s); }
.gate.past-3 .plan .txt, .ogcard .plan .txt { opacity: .85; }
/* dusk: the blueprint becomes the evening sky, the building a silhouette */
.gate.dusk .sheet__base, .ogcard .og__sheet {
  background: linear-gradient(180deg, var(--dusk-1) 0%, #3b2f66 35%, var(--dusk-2) 62%, var(--dusk-3) 86%, #f2b36a 100%);
}
.gate.dusk .plan .ln, .ogcard .plan .ln { stroke: rgba(255, 255, 255, .25); }
.gate.dusk .plan .bld, .ogcard .plan .bld { fill: #1d1a3a; }
.gate.dusk .plan .bld--far, .ogcard .plan .bld--far { fill: #2b2550; }
.gate.dusk .plan .tree, .ogcard .plan .tree { fill: #152a22; }
.gate.dusk .plan .win, .ogcard .plan .win { fill: #2e2a55; }
.gate.dusk .plan .txt, .ogcard .plan .txt { opacity: 0; }
.gate.dusk .tb, .gate.dusk .sheet__north { opacity: 0; transition: opacity .8s; }
.plan .win.on { fill: var(--warm) !important; }
.plan .win.on.cool { fill: #cfe3ff !important; }
.plan .win.home { fill: var(--marigold) !important; }
.plan .halo { fill: none; stroke: var(--marigold); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.plan .halo.on { opacity: 1; animation: halo 2.2s ease-out infinite; }
@keyframes halo { 0% { scale: 1; opacity: .9; } 100% { scale: 3.2; opacity: 0; } }
.plan .callout { opacity: 0; transition: opacity .8s ease .4s; }
.plan .callout.on { opacity: 1; }
.plan .callout text { font: 600 10px var(--f-body); fill: #fff; }
.plan .callout rect { fill: var(--marigold); }
.plan .callout line { stroke: var(--marigold); stroke-width: 1.2; }
.plan .stars circle { fill: #fff; opacity: 0; transition: opacity 2s ease 1s; }
.gate.dusk .plan .stars circle, .ogcard .plan .stars circle { opacity: .7; }

/* hint, info, skip */
.gate__foot { position: relative; width: 100%; min-height: 150px; display: grid; justify-items: center; }
.gate__hint { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; transition: opacity .5s; }
.gate__hint b { font: 800 clamp(24px, 7vw, 32px)/1.1 var(--f-display); letter-spacing: -.02em; color: var(--blue-dk); }
.gate__hint small { font: 500 13px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.gate:not([data-stage="0"]) .gate__hint { opacity: 0; pointer-events: none; }
.gate__info { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
html.js .gate:not(.is-done) .gate__info { opacity: 0; translate: 0 10px; pointer-events: none; }
.gate__info { transition: opacity 1s var(--ease) .2s, translate 1s var(--ease) .2s; }
.gate__line { font: 500 14px var(--f-mono); letter-spacing: .06em; color: var(--ink-soft); }
.gate__date { font-weight: 600; font-size: 17px; }
.gate__muhurat {
  display: flex; align-items: baseline; gap: 10px; padding: 8px 18px; border-radius: 8px;
  background: var(--blue-dk); color: var(--warm); font: 800 clamp(24px, 7vw, 30px)/1.1 var(--f-display);
}
.gate__muhurat span { font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #cfe0f5; }
.gate__down { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 500 13px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--blue); }
.gate__down::after { content: "↓"; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 4px; } }
.gate__skip {
  position: absolute; right: 12px; top: max(12px, env(safe-area-inset-top)); z-index: 8;
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 500 13px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-dk); background: rgba(238, 242, 246, .8); border: 1px solid rgba(15, 53, 102, .35);
}
.gate:not([data-stage="0"]) .gate__skip { opacity: 0; pointer-events: none; transition: opacity .3s; }
html:not(.js) .flap, html:not(.js) .sheet__grab, html:not(.js) .gate__hint, html:not(.js) .gate__skip { display: none; }
html:not(.js) .sheet__base { clip-path: none; }

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

.sec { position: relative; max-width: 660px; margin: 0 auto; padding: 80px 16px; }
.label { display: flex; align-items: center; gap: 10px; font: 500 13px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.label::after { content: ""; flex: 1; height: 1px; background: var(--blue); opacity: .35; }
.label [lang="hi"] { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--marigold); }

/* ---------- spec sheet ---------- */
.spec__time { margin-top: 18px; font: 800 clamp(72px, 22vw, 128px)/.9 var(--f-display); letter-spacing: -.05em; color: var(--blue-dk); }
.spec { margin: 22px 0 0; border-top: 2px solid var(--ink); }
.spec div { display: grid; grid-template-columns: 7.2em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 500 13px/1.7 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.spec dd { margin: 0; font-size: 18px; font-weight: 500; }
.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 28px; }
.count span { display: flex; flex-direction: column; padding: 12px 10px; border-radius: 6px; background: var(--blue-dk); color: #cfe0f5; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.count b { margin-bottom: 8px; font: 800 clamp(28px, 8vw, 40px)/1 var(--f-display); letter-spacing: -.02em; color: var(--warm); }
.count__done { margin-top: 20px; font: 800 26px var(--f-display); color: var(--blue-dk); }

/* ---------- note ---------- */
.note__msg { margin-top: 22px; font: 600 clamp(26px, 7.4vw, 38px)/1.2 var(--f-display); letter-spacing: -.02em; color: var(--blue-dk); text-wrap: balance; }
.note__body { margin-top: 18px; max-width: 30em; color: var(--ink-soft); }

/* ---------- the day as rooms ---------- */
.rooms {
  position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 24px;
  border: 4px solid var(--ink); background: #fff;
}
.room {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 120px; padding: 12px;
  border: 1.5px solid var(--ink); text-decoration: none; color: var(--ink);
  background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(27, 79, 138, .04) 8px 9px);
  transition: background .3s;
}
.room:first-child { grid-column: 1 / -1; min-height: 150px; background: rgba(243, 156, 18, .12); }
.room:last-child:nth-child(even) { grid-column: 1 / -1; }
.room:hover, .room:focus-visible { background: rgba(243, 156, 18, .22); outline: none; }
.room__time { font: 800 clamp(22px, 6vw, 30px)/1 var(--f-display); letter-spacing: -.02em; color: var(--blue-dk); }
.room__name { margin-top: 4px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.room__dim { position: absolute; left: 12px; top: 10px; font: 500 11px var(--f-mono); color: var(--ink-soft); }
.rooms__door { position: absolute; right: 22px; bottom: -4px; width: 34px; height: 4px; background: #fff; }
.rooms__door::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 34px; height: 34px; border-top: 1.5px solid var(--ink); border-left: 1.5px dashed var(--ink); border-radius: 34px 0 0 0; opacity: .5; }
.rooms__hint { margin-top: 10px; font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.evs { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.ev { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 18px 16px; background: #fff; border-left: 4px solid var(--marigold); box-shadow: 0 0 0 1px var(--line); scroll-margin-top: 20px; }
.ev:target { box-shadow: 0 0 0 2px var(--marigold); }
.ev__no { font: 500 13px/1.7 var(--f-mono); color: var(--blue); }
.ev__hi { font-size: 18px; font-weight: 600; color: var(--marigold); }
.ev__name { margin: 2px 0 0; font: 700 22px/1.2 var(--f-display); letter-spacing: -.01em; }
.ev__when, .ev__where { margin-top: 4px; font-size: 16px; color: var(--ink-soft); }
.ev__note { margin-top: 8px; font-size: 16px; font-weight: 500; color: var(--blue-dk); }
.ev__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 12px;
  border: 1.5px solid var(--blue-dk); border-radius: 6px; background: transparent; color: var(--blue-dk); text-decoration: none;
  font: 500 13px/1 var(--f-mono); letter-spacing: .02em; transition: background .2s, transform .2s;
}
.btn:hover { background: rgba(15, 53, 102, .07); }
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--blue-dk); color: #fff; }
.btn--solid:hover { background: var(--ink); }
.btn--wide { min-height: 52px; padding: 0 24px; font-size: 15px; margin-top: 20px; }

/* ---------- residents ---------- */
.res { list-style: none; margin: 20px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.res__row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.res__name { font: 700 20px/1.3 var(--f-display); }
.res__rel { flex: none; font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.res__row--hosts .res__name { font-size: clamp(24px, 6.6vw, 30px); color: var(--blue-dk); }
.res__row--elders .res__name { font: 500 17px/1.4 var(--f-body); }
.res__row--elders .res__rel { max-width: 7em; text-align: right; }

/* ---------- the way up ---------- */
.way { margin-top: 20px; padding: 26px 20px; background: var(--blue-dk); color: #e2eeff; border-radius: 8px; }
.way__flat { font: 800 clamp(30px, 8.6vw, 44px)/1.05 var(--f-display); letter-spacing: -.02em; color: var(--warm); }
.way__site { margin-top: 10px; font-weight: 600; font-size: 19px; }
.way__addr { color: #b8cbe6; }
.way .btn--solid { background: var(--marigold); border-color: var(--marigold); color: var(--ink); }

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

/* ---------- stamp your approval ---------- */
.sec--stamp { text-align: center; }
.approval { position: relative; margin: 24px auto 0; width: min(100%, 360px); height: 160px; }
.tb--paper { position: absolute; inset: 0; width: auto; padding: 18px 16px; background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.tb--paper .tb__k { font-size: 11px; }
.tb--paper .tb__v { font-size: 14px; }
.tb--paper .tb__v--big { font-size: 22px; }
.approval__ink {
  position: absolute; right: 8px; top: 18px; display: flex; flex-direction: column; align-items: center; padding: 8px 14px;
  border: 3px solid var(--stamp); border-radius: 6px; color: var(--stamp); rotate: -12deg;
  opacity: 0; scale: 1.6; transition: opacity .15s, scale .25s cubic-bezier(.3, 1.5, .5, 1);
  mix-blend-mode: multiply; -webkit-mask: radial-gradient(circle at 30% 40%, #000 60%, rgba(0, 0, 0, .6) 61%) ; mask: radial-gradient(circle at 30% 40%, #000 60%, rgba(0, 0, 0, .6) 61%);
}
.approval__ink b { font: 800 26px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; }
.approval__ink small { font: 500 11px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.sec--stamp.stamped .approval__ink { opacity: .92; scale: 1; }
.stamp {
  display: flex; flex-direction: column; align-items: center; margin: 26px auto 0; padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform .2s;
}
.stamp__handle { width: 34px; height: 46px; border-radius: 16px 16px 6px 6px; background: linear-gradient(90deg, #5a2a1a, #9a4a2a 40%, #5a2a1a); }
.stamp__base { min-width: 120px; padding: 10px 14px; border-radius: 6px; background: var(--ink); color: #fff; font: 500 13px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 4px 0 var(--stamp); }
.stamp:active, .stamp.down { transform: translateY(8px) scale(.97); }
.stamp:focus-visible { outline: 3px solid var(--marigold); outline-offset: 6px; border-radius: 8px; }
.sec--stamp:not(.stamped) .stamp { animation: wobble 2.6s ease-in-out infinite; }
@keyframes wobble { 0%, 80%, 100% { rotate: 0deg; } 85% { rotate: -4deg; } 90% { rotate: 4deg; } 95% { rotate: -2deg; } }
.sec--stamp .reply { display: flex; width: fit-content; margin: 24px auto 0; }
.sec--stamp:not(.stamped) .reply { opacity: .55; }
.stamp__tag { margin-top: 14px; font: 700 20px var(--f-display); color: var(--blue); }

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

.foot { padding: 56px 16px calc(44px + env(safe-area-inset-bottom)); text-align: center; background: var(--blue-dk); color: #cfe0f5; }
.foot__home { font: 800 clamp(30px, 8.6vw, 44px)/1.05 var(--f-display); letter-spacing: -.03em; color: #fff; }
.foot__date { margin-top: 8px; font: 500 14px var(--f-mono); letter-spacing: .16em; color: var(--warm); }
.foot__cal { margin-top: 16px; }
.foot__music { margin-top: 18px; font-size: 14px; font-style: italic; color: rgba(207, 224, 245, .7); }
.foot__credit { margin-top: 8px; font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(207, 224, 245, .7); }
.foot a { color: inherit; text-underline-offset: 3px; }
.foot__up { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font: 500 12px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; }

@media (min-width: 900px) {
  .gate { --sw: min(40vw, 54svh * .77, 420px); }
  .sec { padding: 110px 16px; }
}

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

html.og .ogcard {
  align-items: center; gap: 56px; padding: 40px 64px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 30px 30px,
    var(--paper);
}
.og__sheet { position: relative; flex: 0 0 420px; height: 546px; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 50px -24px rgba(15, 29, 51, .6); }
.plan--og .ln { stroke-dashoffset: 0 !important; }
.og__text { flex: 1; }
.og__kicker { font: 500 22px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.og__home { margin-top: 10px; font: 800 104px/.95 var(--f-display); letter-spacing: -.04em; color: var(--blue-dk); }
.og__line { margin-top: 18px; font: 500 26px var(--f-mono); color: var(--ink-soft); }
.og__date { margin-top: 14px; font-size: 32px; font-weight: 600; }
.og__muhurat { margin-top: 18px; display: inline-block; padding: 12px 24px; border-radius: 10px; background: var(--blue-dk); color: var(--warm); font: 800 38px/1.1 var(--f-display); }

@media (prefers-reduced-motion: reduce) {
  .gate .gate__home, .gate .gate__hi, .gate .gate__info { opacity: 1 !important; translate: none !important; }
}
.plan .win { stroke: var(--blue-ln); stroke-width: .5; stroke-opacity: 0; transition: fill .5s ease, stroke-opacity 1s ease 1s; }
.gate.past-3 .plan .win { stroke-opacity: .7; }
.gate.dusk .plan .win, .ogcard .plan .win { stroke-opacity: 0; transition-delay: 0s; }
