/* =========================================================================
   Ahmad Quyoom — one invitation card per event, built on the supplied visuals
   Every scene is one 941×1672 artwork ("plate"). Live text is placed on the
   plate in artwork pixels (--x, --y, --w, --fs) × --u (screen px per artwork px).
   ========================================================================= */

:root {
  --ease: cubic-bezier(.22, .75, .2, 1);

  /* type — matched to the lettering in the visuals */
  --f-serif: 'EB Garamond', Garamond, 'Times New Roman', serif;
  --f-script: 'Great Vibes', 'Snell Roundhand', cursive;
  --f-arabic: 'Amiri', 'Scheherazade New', 'Traditional Arabic', serif;

  /* palette sampled from the visuals */
  --ivory: #FBF4E6;
  --paper: #F3E6CF;
  --gold: #C9A55E;
  --gold-deep: #8E6A2E;
  --burgundy: #5A0A14;
  --mehndi: #3B4021;
  --slate: #445153;
  --ink: #3A2A1D;

  --col: 520px;
  --u: calc(min(100vw, 520px) / 941);   /* refined by JS */
  --page-bg: #EADBC0;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; background: var(--page-bg); }
body {
  margin: 0; font-family: var(--f-serif); color: var(--ink);
  background: var(--page-bg); transition: background-color .9s var(--ease);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; -webkit-tap-highlight-color: transparent;
}
body[data-theme="ivory"]  { --page-bg: #EADBC0; }
body[data-theme="mehndi"] { --page-bg: #E9C88A; }
body[data-theme="barat"]  { --page-bg: #3A0E18; }
body[data-theme="walima"] { --page-bg: #E3EAEE; }
html.is-locked, html.is-locked body { overflow: hidden; }
p, h1, h2 { margin: 0; font: inherit; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #B8893A; outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: fixed; z-index: 300; left: 50%; top: 8px; transform: translate(-50%, -160%);
  padding: 10px 18px; border-radius: 999px; background: #2B1D12; color: #FBF5EA; text-decoration: none;
  font-weight: 600; transition: transform .3s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

.app { position: relative; max-width: var(--col); margin: 0 auto; box-shadow: 0 0 90px rgba(40, 20, 10, .22); }

/* ---------- Scenes & plates ---------- */
.scene { position: relative; overflow: hidden; background: var(--paper); }
.plate { position: relative; width: 100%; aspect-ratio: 941 / 1672; }
.plate > picture, .plate > picture img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.plate > picture img { object-fit: cover; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }

/* live text placed in artwork pixels */
.ov {
  position: absolute; margin: 0;
  left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  translate: -50% -50%;
  font-size: calc(var(--fs, 30) * var(--u)); line-height: 1.2;
  text-align: center; color: var(--ink); text-wrap: balance;
}
.ov-serif { font-family: var(--f-serif); font-weight: 500; letter-spacing: .01em; }
.ov-ital  { font-family: var(--f-serif); font-style: italic; font-weight: 500; letter-spacing: .015em; }
.ov-serif, .ov-ital, .ov-block > p { text-shadow: 0 0 calc(9 * var(--u)) rgba(252, 244, 228, .95), 0 0 calc(3 * var(--u)) rgba(252, 244, 228, .9); }
.ov-strong { font-weight: 600; letter-spacing: .02em; }
.ov .dot { color: var(--gold); padding: 0 .1em; }
.ov-block { display: flex; flex-direction: column; align-items: center; gap: calc(5 * var(--u)); }
.ov-block > p { font-size: calc(var(--fs) * var(--u)); line-height: 1.2; color: var(--ink); }
.ov-contact { font-weight: 500; }

/* script names: Great Vibes, weighted and embossed like the printed lettering */
.couple-names { margin: 0; font: inherit; }
.ov-name {
  font-family: var(--f-script); font-weight: 400; line-height: 1.15; white-space: nowrap;
  color: var(--k-name, #5E0B16);
  -webkit-text-stroke: calc(.9 * var(--u)) var(--k-name, #5E0B16);
  text-shadow: 0 calc(1.6 * var(--u)) 0 rgba(255, 246, 230, .85), 0 calc(-.8 * var(--u)) calc(1.2 * var(--u)) rgba(55, 0, 8, .28);
  padding: .1em .2em .25em;
}

.ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* plaques (Add to Calendar, Call, WhatsApp) — ivory with a double gold edge */
.plaque {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: calc(10 * var(--u));
  min-height: max(44px, calc(80 * var(--u))); padding: 0 calc(16 * var(--u));
  border: calc(2.2 * var(--u)) solid #C9A55E; border-radius: calc(18 * var(--u));
  background: linear-gradient(180deg, #FFFCF4, #F3E5CB);
  box-shadow: inset 0 0 0 calc(5 * var(--u)) #FFFBF0, inset 0 0 0 calc(6.5 * var(--u)) rgba(201, 165, 94, .7), 0 calc(5 * var(--u)) calc(16 * var(--u)) rgba(90, 50, 10, .22);
  font-family: var(--f-serif); font-weight: 500; font-size: calc(27 * var(--u)); color: var(--k-name, #5E0B16);
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.plaque .ico { width: calc(32 * var(--u)); height: calc(32 * var(--u)); color: var(--k-name, #7A1424); }
.plaque:active { transform: scale(.98); }
.no-js .plaque[data-ics] { display: none; }

/* reveals (JS only; stacked/reduced modes show everything at once) */
.js .scene .r { opacity: 0; transform: translate3d(0, calc(14 * var(--u)), 0); clip-path: inset(100% -20% -20% -20%);
  transition: opacity .8s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms), clip-path 1s var(--ease) var(--d, 0ms); }
.js .scene.is-in .r { opacity: 1; transform: none; clip-path: inset(-20% -20% -20% -20%); }

/* =========================================================================
   Motion mode: one sticky stage, scenes stacked and driven by scroll
   ========================================================================= */
.motion .track { height: var(--track-h, 1000vh); }
.motion .stage { position: -webkit-sticky; position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--paper); }
.motion .scene { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: transparent; contain: layout paint; }
.motion .scene.on { pointer-events: auto; will-change: opacity; }
.motion .scene.far .plate > picture { display: none; }
.motion .plate, .js .opening .plate {
  position: absolute; left: var(--ox); top: var(--oy); width: var(--pw); height: var(--ph); aspect-ratio: auto;
  transform-origin: 0 0; will-change: transform;
}

.tx-thread { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 20; pointer-events: none; opacity: 0; }
.tx-thread path { fill: none; stroke: #E2C68A; stroke-width: 2.2; stroke-dasharray: 0 1; filter: drop-shadow(0 0 3px rgba(255, 226, 160, .8)); }
.tx-petal { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 21; pointer-events: none; transform-origin: 0 0; opacity: 0; }
.tx-petal > div { position: absolute; }
.tx-drift { position: absolute; left: 0; top: 0; width: 26px; height: 30px; z-index: 22; pointer-events: none; opacity: 0; }
.stage.drift .tx-drift { animation: drift 6.5s cubic-bezier(.45, .05, .55, .95) .4s 1 both; }
@keyframes drift {
  0% { opacity: 0; transform: translate3d(var(--x0), var(--y0), 0) rotate(-30deg); }
  12% { opacity: .9; }
  50% { transform: translate3d(calc((var(--x0) + var(--x1)) / 2 + 26px), calc((var(--y0) + var(--y1)) / 2), 0) rotate(40deg); }
  88% { opacity: .85; }
  100% { opacity: 0; transform: translate3d(var(--x1), var(--y1), 0) rotate(110deg); }
}
.no-js .tx-thread, .no-js .tx-petal, .no-js .tx-drift, .no-js .hint, .reduce .hint { display: none; }

.hint {
  position: absolute; z-index: 25; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 16px 10px; border-radius: 999px; background: rgba(255, 250, 240, .78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-style: italic; font-size: 15px; color: #6B4B22; pointer-events: none;
  opacity: 0; transition: opacity .6s var(--ease);
}
.hint.show { opacity: 1; }
.hint i { width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: rotate(45deg) translate(0, 0); } 50% { transform: rotate(45deg) translate(3px, 3px); } }

/* =========================================================================
   Opening
   ========================================================================= */
.opening { display: none; }
.js .opening { display: block; position: fixed; inset: 0; z-index: 200; background: #2A1A10; }
.opening.is-gone { display: none !important; }
.op-stage { position: absolute; top: 0; bottom: 0; left: 50%; width: min(100%, var(--col)); transform: translateX(-50%); overflow: hidden; background: var(--paper); }
.op-stage .plate { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -2px; } }
.reduce .op-stage .plate { animation: none; }
.k-tap::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; animation: invite 3.2s ease-in-out 1.2s infinite; }
@keyframes invite { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 236, 196, 0); } 50% { box-shadow: 0 0 calc(30 * var(--u)) calc(4 * var(--u)) rgba(255, 236, 196, .55); } }
.reduce .k-tap::after { animation: none; }
.seal-glint {
  position: absolute; left: calc(var(--sx) * var(--u)); top: calc(var(--sy) * var(--u)); width: calc(var(--sd) * var(--u)); height: calc(var(--sd) * var(--u));
  translate: -50% -50%; border-radius: 50%; overflow: hidden; pointer-events: none;
}
.seal-glint::after { content: ''; position: absolute; inset: -30%; background: linear-gradient(105deg, transparent 38%, rgba(255, 238, 205, .75) 50%, transparent 62%); transform: translateX(-130%); }
.seal-glint.go::after { animation: glint .42s cubic-bezier(.22, .75, .2, 1) forwards; }
@keyframes glint { to { transform: translateX(130%); } }
.op-bloom {
  position: absolute; width: 240px; height: 240px; margin: -120px 0 0 -120px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 252, 242, 1) 0%, rgba(255, 244, 222, .96) 45%, rgba(250, 230, 190, .7) 70%, rgba(250, 230, 190, 0) 100%);
}
.op-skip {
  position: absolute; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  padding: 12px 16px; border-radius: 999px; background: transparent;
  font-style: italic; font-size: 14px; color: var(--k-text); text-underline-offset: 3px; white-space: nowrap;
  text-shadow: 0 0 8px rgba(255, 250, 240, .95), 0 0 3px rgba(255, 250, 240, .9);
}
body[data-card="barat"] .op-skip { color: #F1DDAE; text-shadow: 0 0 8px rgba(40, 0, 8, .9), 0 0 3px rgba(40, 0, 8, .8); }

/* =========================================================================
   Card screens — each card's own minimalist artwork (opening, RSVP, closing), every word set live.
   Positions are artwork px (as everywhere); colours and any per-card nudges below.
   ========================================================================= */
body { --k-name: #5E0B16; --k-accent: #A47A33; --k-text: #4A3A28; }
body[data-card="mehndi"] { --k-name: #2F5320; --k-accent: #B07A1E; --k-text: #5A4520; }
body[data-card="barat"]  { --k-name: #6A0F1C; --k-accent: #A47A33; --k-text: #4A2A1A; }
body[data-card="walima"] { --k-name: #3E5672; --k-accent: #B08D4E; --k-text: #4F5B68; }

/* the wax seal each envelope is sealed with (centre and diameter, artwork px) */
#opPlate { --sx: 470; --sy: 836; --sd: 170; }
body[data-card="mehndi"] #opPlate { --sx: 470; --sy: 851; --sd: 166; }
body[data-card="barat"]  #opPlate { --sx: 472; --sy: 783; --sd: 200; }
body[data-card="walima"] #opPlate { --sx: 472; --sy: 802; --sd: 170; }

.k-text { color: var(--k-text); }
.k-cap  { letter-spacing: .26em; text-transform: uppercase; font-weight: 500; }
.k-ar {
  font-family: var(--f-arabic); font-weight: 700; line-height: 1.6; color: var(--k-accent);
  text-shadow: 0 calc(1.4 * var(--u)) 0 rgba(255, 246, 230, .8), 0 calc(-.6 * var(--u)) calc(1 * var(--u)) rgba(60, 30, 0, .25);
}
.k-amp, .k-script { font-family: var(--f-script); line-height: 1.1; color: var(--k-accent); }
.k-script { color: var(--k-name); white-space: nowrap; text-shadow: 0 0 calc(10 * var(--u)) rgba(252, 244, 228, .9); }
/* Barat captions that sit straight on the velvet (rings, closing): light gold ink, dark halo */
body[data-card="barat"] .k-r-cap, body[data-card="barat"] .k-cl-2 { color: #F1DDAE; text-shadow: 0 0 calc(12 * var(--u)) rgba(40, 0, 8, .85), 0 calc(1 * var(--u)) calc(2 * var(--u)) rgba(40, 0, 8, .6); }
.k-rule { height: calc(14 * var(--u)); }
.k-rule::before, .k-rule::after { content: ''; position: absolute; top: 50%; height: 1px; background: var(--k-accent); opacity: .75; }
.k-rule::before { left: 0; right: 0; }
.k-rule::after { left: 50%; width: calc(10 * var(--u)); height: calc(10 * var(--u)); margin: calc(-5 * var(--u)) 0 0 calc(-5 * var(--u)); transform: rotate(45deg); opacity: 1; }

/* Tap to Open — a quiet pill on the plain space below the envelope */
.k-tap {
  --x: 470; --y: 1500; --w: 380; --fs: 27;
  display: flex; align-items: center; justify-content: center; min-height: max(48px, calc(84 * var(--u)));
  padding: 0; border: calc(2 * var(--u)) solid var(--k-accent); border-radius: 999px; cursor: pointer;
  background: rgba(255, 251, 242, .82); box-shadow: inset 0 0 0 calc(5 * var(--u)) rgba(255, 251, 242, .9), inset 0 0 0 calc(6.5 * var(--u)) rgba(176, 130, 60, .45), 0 calc(6 * var(--u)) calc(18 * var(--u)) rgba(40, 20, 0, .18);
  font-family: var(--f-serif); font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--k-name);
}
.k-tap span { padding-left: .3em; }
.k-tap:focus-visible { outline: 2px solid var(--k-accent); outline-offset: 4px; }

/* Bismillah */
.k-bis-ar  { --x: 470; --y: 775;  --w: 660; --fs: 76; --d: 150ms; }
.k-bis-en  { --x: 470; --y: 910;  --w: 520; --fs: 30; --d: 380ms; }
.k-bis-rule { --x: 470; --y: 1000; --w: 200; --d: 520ms; }
.k-bis-inv { --x: 470; --y: 1080; --w: 470; --fs: 31; --d: 640ms; }

/* the couple */
.k-c-fam   { --x: 470; --y: 515;  --w: 640; --fs: 25; --d: 100ms; }
.k-c-groom { --x: 470; --y: 645;  --w: 660; --fs: 92; --d: 250ms; }
.k-c-amp   { --x: 470; --y: 762;  --w: 120; --fs: 64; --d: 420ms; }
.k-c-bride { --x: 470; --y: 872;  --w: 660; --fs: 66; --d: 560ms; }
.k-c-rule  { --x: 470; --y: 985;  --w: 200; --d: 700ms; }
.k-c-req   { --x: 470; --y: 1078; --w: 620; --fs: 32; --d: 820ms; line-height: 1.55; font-weight: 400; }

body[data-card="walima"] .k-c-fam { --y: 548; }      /* clear of the wisteria at the card's corner */

/* A Celebration of Love */
.k-r-cap   { --x: 470; --y: 1250; --w: 720; --fs: 72; --d: 250ms; }

/* Kindly RSVP */
.k-rs-title { --x: 470; --y: 660; --w: 640; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.k-kindly { font-family: var(--f-script); font-size: calc(104 * var(--u)); color: var(--k-accent); line-height: 1.05; }
.k-rsvp { font-family: var(--f-serif); font-weight: 600; font-size: calc(96 * var(--u)); letter-spacing: .12em; padding-left: .12em; color: var(--k-name); margin-top: calc(-8 * var(--u)); }
.k-kindly, .k-rsvp { text-shadow: 0 calc(1.4 * var(--u)) 0 rgba(255, 246, 230, .85), 0 calc(-.6 * var(--u)) calc(1 * var(--u)) rgba(50, 20, 0, .22); }
.k-rs-rule  { --x: 470; --y: 805;  --w: 220; --d: 200ms; }
.k-rs-name  { --x: 470; --y: 930;  --w: 640; --fs: 46; --d: 300ms; color: var(--k-name); }
.k-rs-note  { --x: 470; --y: 995;  --w: 500; --fs: 38; --d: 420ms; }
.k-rs-cal   { --x: 470; --y: 1160; --w: 420; --d: 560ms; }
.k-rs-num   { --x: 470; --y: 1060; --w: 500; --fs: 34; --d: 480ms; }
.k-rs-contact { --x: 470; --y: 1170; --w: 560; --d: 540ms; display: flex; gap: calc(18 * var(--u)); }
.k-rs-contact .plaque { flex: 1 1 0; }
.has-phone .k-rs-cal { --y: 1295; }

/* closing */
.k-cl-1    { --x: 470; --y: 520;  --w: 640; --fs: 40; --d: 150ms; font-weight: 400; }
.k-cl-2    { --x: 470; --y: 612;  --w: 760; --fs: 84; --d: 320ms; }
.k-cl-rule { --x: 470; --y: 712;  --w: 220; --d: 480ms; }
.k-cl-3    { --x: 470; --y: 778;  --w: 520; --fs: 32; --d: 600ms; }
/* the Barat closing sits on velvet: light ink, dark halo */
body[data-card="barat"] #closing .k-text { color: #F1DDAE; text-shadow: 0 0 calc(12 * var(--u)) rgba(40, 0, 8, .85), 0 calc(1 * var(--u)) calc(2 * var(--u)) rgba(40, 0, 8, .6); }

/* location page: venue, Open Location, a live map card and a QR card */
.k-lo-venue { --x: 470; --y: 125; --w: 820; --fs: 62; --d: 100ms; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--k-name); line-height: 1.1; }
.k-lo-rule  { --x: 470; --y: 205; --w: 260; --d: 200ms; }
.k-lo-addr  { --x: 470; --y: 262; --w: 700; --fs: 32; --d: 280ms; }
.k-lo-open {
  --x: 470; --y: 1080; --w: 430; --fs: 26; --d: 300ms;
  display: flex; align-items: center; justify-content: center; gap: calc(14 * var(--u)); min-height: max(48px, calc(92 * var(--u)));
  border-radius: 999px; text-decoration: none; color: #FBF4E6; background: var(--k-name);
  background: linear-gradient(180deg, var(--k-name), color-mix(in srgb, var(--k-name) 78%, #000));   /* older browsers keep the flat colour */
  box-shadow: inset 0 0 0 calc(3 * var(--u)) rgba(255, 255, 255, .14), 0 0 0 calc(2 * var(--u)) var(--k-accent), 0 calc(8 * var(--u)) calc(20 * var(--u)) rgba(30, 20, 10, .28);
  font-family: var(--f-serif); font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
}
.k-lo-open .ico { width: calc(30 * var(--u)); height: calc(30 * var(--u)); fill: currentColor; stroke: none; }
.k-lo-map, .k-lo-qr {
  display: flex; flex-direction: column; margin: 0; text-decoration: none; overflow: hidden;
  border-radius: calc(22 * var(--u)); background: #FFFDF8;
  box-shadow: inset 0 0 0 calc(2 * var(--u)) rgba(176, 141, 78, .7), inset 0 0 0 calc(8 * var(--u)) #FFFDF8, inset 0 0 0 calc(9.5 * var(--u)) rgba(176, 141, 78, .35), 0 calc(8 * var(--u)) calc(22 * var(--u)) rgba(40, 30, 10, .16);
}
.k-lo-map { --x: 304; --y: 1352; --w: 360; height: calc(350 * var(--u)); padding: calc(16 * var(--u)); --d: 420ms; }
.k-map { position: relative; flex: 1; border-radius: calc(12 * var(--u)); overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #FFFFFF 0 18%, transparent 19%), linear-gradient(135deg, #EEF2F3, #E3E9EC);
}
.k-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.k-map-pin { position: absolute; left: 50%; top: 45%; translate: -50% -60%; color: var(--k-name); }
.k-map-pin .ico { width: calc(64 * var(--u)); height: calc(64 * var(--u)); fill: rgba(255, 255, 255, .7); }
.k-map-cap { padding: calc(14 * var(--u)) calc(4 * var(--u)) calc(4 * var(--u)); font-family: var(--f-serif); font-weight: 500; font-size: calc(17 * var(--u)); letter-spacing: .12em; text-transform: uppercase; color: var(--k-text); text-align: center; white-space: nowrap; }
.k-lo-qr { --x: 664; --y: 1352; --w: 290; height: calc(350 * var(--u)); padding: calc(24 * var(--u)) calc(30 * var(--u)) calc(12 * var(--u)); align-items: center; --d: 520ms; }
.k-lo-qr img { width: 100%; height: auto; aspect-ratio: 1; display: block; }
.k-lo-qr figcaption { margin-top: calc(8 * var(--u)); font-family: var(--f-script); font-size: calc(36 * var(--u)); line-height: 1.1; color: var(--k-name); white-space: nowrap; }

/* countdown page */
.k-cd-title { --x: 470; --y: 620; --w: 760; --fs: 80; --d: 100ms; }
.k-cd { --x: 470; --y: 800; --w: 650; --d: 250ms; display: flex; justify-content: center; gap: calc(14 * var(--u)); }
.k-cd-cell {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(6 * var(--u));
  height: calc(170 * var(--u)); border-radius: calc(20 * var(--u)); background: rgba(255, 253, 248, .9);
  box-shadow: inset 0 0 0 calc(2 * var(--u)) rgba(176, 141, 78, .75), inset 0 0 0 calc(7 * var(--u)) rgba(255, 253, 248, .95), inset 0 0 0 calc(8.5 * var(--u)) rgba(176, 141, 78, .35), 0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(40, 30, 10, .14);
}
.k-cd-cell b { font-family: var(--f-serif); font-weight: 600; font-size: calc(70 * var(--u)); line-height: 1; color: var(--k-name); font-variant-numeric: tabular-nums lining-nums; }
.k-cd-cell i { font-family: var(--f-serif); font-style: normal; font-weight: 500; font-size: calc(17 * var(--u)); letter-spacing: .2em; text-transform: uppercase; color: var(--k-text); padding-left: .2em; }
.k-cd-done { --x: 470; --y: 800; --w: 640; --fs: 40; --d: 250ms; }
.k-cd-rule { --x: 470; --y: 965; --w: 220; --d: 380ms; }
.k-cd-cal  { --x: 470; --y: 1070; --w: 420; --d: 460ms; }
.no-js #countdown { display: none; }

/* =========================================================================
   Reduced motion: stacked scenes, everything visible, no scrubbing
   ========================================================================= */
.reduce .scene .r { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }

@media (min-width: 560px) {
  .app { border-left: 1px solid rgba(201, 165, 94, .3); border-right: 1px solid rgba(201, 165, 94, .3); }
}
