/* ==========================================================================
   Sooraj & Sivakami — Wedding Invitation
   Minimal Kerala Traditional · mobile-first · no frameworks
   ========================================================================== */

:root {
  --ivory: #F8F5ED;
  --cream: #F2EBDD;
  --maroon: #702C3B;
  --maroon-deep: #571F2C;
  --gold: #B89A60;
  --gold-deep: #7A6030;      /* gold tone that passes contrast for small text */
  --gold-soft: #E6D6B0;
  --green: #667765;
  --charcoal: #34312E;
  --muted: #5F5952;
  --line: rgba(184, 154, 96, .45);
  --error: #9B1C1C;

  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Great Vibes", "Brush Script MT", cursive;

  --gutter: 16px;
  --max: 1080px;
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .25 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--ivory) var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.15; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--maroon); }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--maroon); color: var(--ivory); padding: .6rem 1rem; border-radius: var(--radius);
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.container--narrow { max-width: 620px; }
.section { padding: clamp(4rem, 12vw, 7rem) 0; position: relative; }
.section--cream { background: var(--cream) var(--paper); }

.eyebrow {
  font-family: var(--font-body); font-size: .75rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: .9rem;
}
.section-title {
  font-family: var(--font-head); font-weight: 500; color: var(--maroon);
  font-size: clamp(2rem, 7vw, 3.1rem); letter-spacing: .01em;
}
.section-title--caps { text-transform: uppercase; letter-spacing: .14em; font-size: clamp(1.6rem, 6.2vw, 2.6rem); }
.section-intro { max-width: 34rem; margin: 1rem auto 0; color: var(--muted); }

.divider { width: min(240px, 70%); height: 24px; margin: 1.4rem auto; color: var(--gold); }

.icon { width: 24px; height: 24px; flex: none; color: var(--gold-deep); }
.icon--sm { width: 18px; height: 18px; color: currentColor; }
.icon--lg { width: 36px; height: 36px; }

/* Kasavu band: ivory cloth with gold & thin maroon stripes */
.kasavu {
  height: 18px;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 2px / 100% 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 6px / 100% 5px no-repeat,
    linear-gradient(var(--maroon), var(--maroon)) 0 12.5px / 100% 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 15px / 100% 1px no-repeat,
    var(--ivory);
}

/* ---------- 1. Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 32px var(--gutter) 84px;
  position: relative; text-align: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(243, 213, 139, .22), transparent 60%),
    var(--ivory) var(--paper);
}
.hero__frame {
  position: relative; width: 100%; max-width: 640px;
  padding: clamp(2rem, 7vw, 3.5rem) clamp(1.2rem, 5vw, 3rem);
  border: 1px solid var(--gold);
  outline: 1px solid var(--line); outline-offset: 6px;
  margin: 6px;
}
.corner { position: absolute; width: 28px; height: 28px; border-color: var(--maroon); border-style: solid; border-width: 0; }
.corner--tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.corner--tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.corner--bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.corner--br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.vilakku { color: var(--gold); overflow: visible; }
.hero__vilakku { width: clamp(64px, 18vw, 92px); height: auto; aspect-ratio: 120 / 210; margin: 0 auto 1.4rem; }
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 2.6s ease-in-out infinite; }
.flame--2 { animation-duration: 3.1s; animation-delay: -.8s; }
.flame--3 { animation-duration: 2.3s; animation-delay: -1.4s; }
.vilakku__glow { animation: glow 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

.hero__eyebrow { animation: fadeUp 1s .2s var(--ease) both; }
.hero__names {
  font-family: var(--font-script); font-weight: 400; color: var(--maroon);
  font-size: clamp(3.3rem, 15vw, 6.4rem); line-height: 1.05;
  display: flex; flex-direction: column; align-items: center;
}
.hero__name { display: block; animation: nameReveal 1.3s var(--ease) both; }
.hero__name:last-child { animation-delay: .55s; }
.hero__amp { font-family: var(--font-head); font-style: italic; font-size: .42em; color: var(--gold-deep); line-height: 1; margin: .1em 0; animation: fadeIn 1s .4s both; }
.hero__lede { font-family: var(--font-head); font-style: italic; font-size: clamp(1.2rem, 4.6vw, 1.55rem); color: var(--charcoal); margin-top: 1.2rem; animation: fadeUp 1s .9s var(--ease) both; }
.hero__divider { animation: fadeIn 1.2s 1.1s both; }
.hero__date { font-size: .82rem; letter-spacing: .3em; text-transform: uppercase; color: var(--maroon); animation: fadeIn 1.2s 1.25s both; }

@media (min-width: 760px) {
  .hero__frame { max-width: 860px; }
  .hero__names { flex-direction: row; justify-content: center; gap: .3em; align-items: baseline; font-size: clamp(4rem, 7.4vw, 5.8rem); }
  .hero__amp { font-size: .5em; }
}

.scroll-cue {
  position: absolute; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  color: var(--gold-deep); text-decoration: none; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  min-width: 44px; padding: 4px; animation: fadeIn 1s 1.6s both;
}
.scroll-cue__line { width: 1px; height: 36px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--maroon); animation: scrollLine 2.2s ease-in-out infinite; }

/* ---------- 3. Date ---------- */
.calendar {
  width: 210px; margin: 2.2rem auto .5rem; position: relative;
  background: var(--ivory); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 14px 30px -18px rgba(87, 31, 44, .45);
}
.calendar__rings { position: absolute; top: -9px; left: 0; right: 0; display: flex; justify-content: space-around; padding: 0 44px; }
.calendar__rings span { width: 8px; height: 18px; border-radius: 4px; background: var(--ivory); border: 1.5px solid var(--gold); }
.calendar__head { background: var(--maroon); color: var(--ivory); font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; padding: .85rem .5rem .65rem; border-radius: 5px 5px 0 0; }
.calendar__body { display: flex; flex-direction: column; padding: 1rem .5rem 1.2rem; }
.calendar__day { font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); }
.calendar__num { font-family: var(--font-head); font-size: 5rem; line-height: 1; color: var(--maroon); font-weight: 500; }
.calendar__alt { font-family: var(--font-head); font-style: italic; color: var(--muted); font-size: 1.05rem; }

/* ---------- Chapter markers ---------- */
.chapter { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 3rem var(--gutter) 0; text-align: center; }
.chapter::before, .chapter::after { content: ""; width: 1px; height: 36px; background: linear-gradient(transparent, var(--gold)); }
.chapter::after { background: linear-gradient(var(--gold), transparent); }
.chapter__label { font-size: .7rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-deep); }
.chapter__title { font-family: var(--font-head); font-style: italic; font-size: 1.5rem; color: var(--maroon); }
.chapter--evening { background: var(--maroon-deep); padding-top: 3rem; }
.chapter--evening .chapter__label { color: var(--gold-soft); }
.chapter--evening .chapter__title { color: var(--ivory); }
.wedding { padding-top: 2.5rem; }

/* ---------- Event cards ---------- */
.event-card {
  position: relative; max-width: 520px; margin: 1rem auto 0;
  background: #FFFDF8; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.4rem clamp(1.2rem, 5vw, 2.4rem) 2rem;
  box-shadow: 0 24px 50px -32px rgba(87, 31, 44, .4);
  text-align: left;
}
.event-card__kasavu {
  position: absolute; left: 0; right: 0; top: 0; height: 10px; border-radius: var(--radius) var(--radius) 0 0;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 100% 4px no-repeat,
    linear-gradient(var(--maroon), var(--maroon)) 0 6px / 100% 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 8.5px / 100% 1px no-repeat;
}
.event-card__item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.event-card__item:first-of-type { padding-top: .2rem; }
.event-card__item .icon { margin-top: .2rem; }
.event-card__label { font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); }
.event-card__value { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.35; color: var(--charcoal); margin-top: .2rem; font-weight: 500; }
.event-card__value--lg { font-size: clamp(1.6rem, 6vw, 2rem); color: var(--maroon); }
.event-card__value .muted { font-size: 1.1rem; }
.event-card .btn { margin-top: 1.6rem; width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--maroon); color: var(--ivory); box-shadow: 0 10px 22px -14px rgba(112, 44, 59, .9); }
.btn--primary:hover { background: var(--maroon-deep); }
.btn--gold { background: var(--gold); color: #2B1A12; }
.btn--gold:hover { background: #C9AE78; }
.btn--block { width: 100%; }
.link-quiet { display: inline-block; margin-top: 1.2rem; padding: .6rem 0; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--maroon); text-decoration-color: var(--gold); text-underline-offset: 6px; }

/* ---------- 7. Countdown ---------- */
.countdown { margin-top: 2rem; }
.countdown__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.4rem, 2vw, 1rem); max-width: 520px; margin: 0 auto; }
.countdown__unit {
  display: flex; flex-direction: column; align-items: center; padding: 1rem .25rem .8rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 253, 248, .75);
}
.countdown__num { font-family: var(--font-head); font-size: clamp(2rem, 9vw, 3.2rem); line-height: 1; color: var(--maroon); font-variant-numeric: tabular-nums; font-weight: 500; }
.countdown__num.tick { animation: tick .5s var(--ease); }
.countdown__lbl { margin-top: .45rem; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.countdown__status { font-family: var(--font-head); font-style: italic; font-size: clamp(1.3rem, 5vw, 1.7rem); color: var(--maroon); max-width: 30rem; margin: 0 auto; }
.countdown__caption { text-align: center; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .8rem; }

/* ---------- 8. Transition ---------- */
.transition {
  background: linear-gradient(var(--ivory) 0%, var(--cream) 45%, #E8D8C4 75%, var(--maroon-deep) 100%);
  padding-bottom: 0;
}
.transition .container { padding-bottom: clamp(4rem, 12vw, 6rem); }
.garland { width: min(340px, 92%); height: auto; aspect-ratio: 320 / 60; margin: 0 auto 2rem; animation: sway 8s ease-in-out infinite; transform-origin: 50% 0; }
.transition__title { font-family: var(--font-script); font-weight: 400; color: var(--maroon); font-size: clamp(2.6rem, 11vw, 4.4rem); line-height: 1.2; }
.transition__text { font-family: var(--font-head); font-style: italic; font-size: clamp(1.2rem, 4.6vw, 1.5rem); margin-top: 1rem; color: var(--charcoal); }

/* ---------- 9. Reception (evening palette) ---------- */
.reception { background: var(--maroon-deep); color: var(--ivory); padding-top: 1.5rem; }
.reception .section-title { color: var(--ivory); }
.reception .divider { color: var(--gold); }
.event-card--evening { background: #FFFDF8; color: var(--charcoal); text-align: center; }
.event-card__trio { display: grid; gap: 1.4rem; }
.event-card__cell { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.event-card__cell + .event-card__cell { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.event-card__cell .event-card__value { font-size: 1.25rem; }
@media (min-width: 640px) {
  .event-card--evening { max-width: 760px; }
  .event-card__trio { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .event-card__cell { padding: 0 1rem; }
  .event-card__cell + .event-card__cell { padding-top: 0; border-top: 0; border-left: 1px solid var(--line); }
  .event-card--evening .btn { width: auto; min-width: 260px; }
}

/* ---------- 13. Closing ---------- */
.closing { background: radial-gradient(ellipse at 50% 85%, rgba(243, 213, 139, .25), transparent 60%), var(--ivory) var(--paper); }
.closing__text { font-family: var(--font-head); font-style: italic; font-size: clamp(1.3rem, 5vw, 1.7rem); max-width: 30rem; margin: 0 auto; }
.closing__names { font-family: var(--font-script); font-weight: 400; color: var(--maroon); font-size: clamp(3rem, 13vw, 5rem); margin: 1.2rem 0 .6rem; line-height: 1.2; }
.closing__names span { font-family: var(--font-head); font-style: italic; font-size: .5em; color: var(--gold-deep); }
.closing__note { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.closing__vilakku { width: 74px; height: auto; aspect-ratio: 120 / 210; margin: 2.6rem auto 0; }


/* ---------- Floating controls ---------- */
.fab {
  width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center;
  background: rgba(255, 253, 248, .95); border: 1px solid var(--gold); color: var(--maroon);
  box-shadow: 0 8px 20px -10px rgba(52, 49, 46, .45); cursor: pointer; text-decoration: none;
  transition: transform .3s var(--ease), background-color .3s, opacity .3s, visibility .3s;
}
.fab:hover { transform: translateY(-2px); }
.fab .icon { color: currentColor; width: 22px; height: 22px; }
.fab--sm { width: 44px; height: 44px; }
.back-to-top { position: fixed; right: var(--gutter); bottom: calc(var(--gutter) + env(safe-area-inset-bottom)); z-index: 40; opacity: 0; visibility: hidden; transform: translateY(10px); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes nameReveal { from { opacity: 0; transform: translateY(16px); filter: blur(6px); letter-spacing: .08em; } to { opacity: 1; transform: none; filter: blur(0); letter-spacing: 0; } }
@keyframes flicker { 0%, 100% { transform: scale(1, 1); opacity: 1; } 25% { transform: scale(.94, 1.06) skewX(-2deg); } 50% { transform: scale(1.03, .95); opacity: .9; } 75% { transform: scale(.97, 1.04) skewX(2deg); } }
@keyframes glow { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes scrollLine { 0% { top: -40%; } 100% { top: 100%; } }
@keyframes tick { 0% { opacity: .35; transform: translateY(-4px); } 100% { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .back-to-top, .scroll-cue { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Couple photo background + see-through sections
   (opening, wedding ceremony, closing). Other sections stay opaque
   and scroll over the fixed photo.
   ========================================================================== */
.photo-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #2A1A17; }
.photo-bg__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.photo-bg__blur {
  display: none; position: absolute; top: -60px; left: -60px;
  width: calc(100% + 120px); height: calc(100% + 120px); max-width: none;
  object-fit: cover; filter: blur(30px) brightness(.5) saturate(1.1);
}
.photo-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(24, 12, 12, .45) 0%, rgba(24, 12, 12, .1) 22%, rgba(24, 12, 12, .1) 50%,
    rgba(24, 12, 12, .55) 74%, rgba(24, 12, 12, .86) 100%);
}

.see-through { background: transparent !important; color: #FBF6EA; text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }
.see-through .eyebrow, .see-through .chapter__label { color: var(--gold-soft); }
.see-through .section-title, .see-through .chapter__title { color: #FFF8EC; }
.see-through .divider { color: var(--gold-soft); }
.chapter.see-through::before { background: linear-gradient(transparent, var(--gold-soft)); }
.chapter.see-through::after { background: linear-gradient(var(--gold-soft), transparent); }

/* Opening: lamp at the top, names and date at the bottom, faces left clear */
.hero.see-through { place-items: stretch center; padding: 16px var(--gutter); }
.see-through .hero__frame {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  min-height: calc(100vh - 32px); min-height: calc(100svh - 32px);
  margin: 0; padding-top: 1.6rem; padding-bottom: 92px;
  border-color: rgba(230, 214, 176, .75); outline-color: rgba(230, 214, 176, .3); outline-offset: 5px;
}
.see-through .corner { border-color: var(--gold-soft); }
.see-through .hero__vilakku { margin: 0 auto auto; width: clamp(52px, 13vw, 78px); color: var(--gold-soft); filter: drop-shadow(0 0 14px rgba(243, 213, 139, .45)); }
.see-through .hero__eyebrow { color: var(--gold-soft); margin-bottom: .7rem; }
.see-through .hero__names {
  color: #FFF8EC; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: baseline;
  gap: 0 .25em; font-size: clamp(2.5rem, 11vw, 5.4rem);
}
.see-through .hero__amp { color: var(--gold-soft); font-size: .5em; }
.see-through .hero__lede { color: #F4EBDD; font-size: clamp(1.05rem, 4vw, 1.4rem); margin-top: .5rem; }
.see-through .hero__divider { color: var(--gold-soft); margin: .9rem auto; }
.see-through .hero__date { color: var(--gold-soft); }
.hero.see-through .scroll-cue { color: var(--gold-soft); bottom: max(30px, env(safe-area-inset-bottom)); }
.hero.see-through .scroll-cue__line { background: linear-gradient(var(--gold-soft), transparent); }
.hero.see-through .scroll-cue__line::after { background: #FFF8EC; }

/* Wedding ceremony: frosted card over the photo */
.wedding.see-through { padding-top: 2rem; padding-bottom: clamp(5rem, 22vh, 10rem); }
.see-through .event-card {
  background: rgba(255, 253, 248, .86); text-shadow: none;
  -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
  border-color: rgba(230, 214, 176, .6);
}

/* Closing: dark glass panel */
.closing.see-through { padding: clamp(6rem, 32vh, 13rem) 0; }
.closing.see-through .container {
  width: calc(100% - 2 * var(--gutter)); max-width: 620px; padding: 2.4rem 1.4rem;
  background: rgba(36, 16, 20, .38); border: 1px solid rgba(230, 214, 176, .45); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.see-through .closing__text { color: #FBF6EA; }
.see-through .closing__names { color: #FFF8EC; }
.see-through .closing__names span { color: var(--gold-soft); }
.see-through .closing__note { color: #E9DFCB; }
.see-through .closing__vilakku { color: var(--gold-soft); width: 60px; margin-top: 2rem; }
.closing.see-through .divider { margin-bottom: 0; }
.countdown--closing { margin-top: 2.2rem; }
.see-through .countdown__caption { color: var(--gold-soft); }
.see-through .countdown__unit { background: rgba(255, 248, 236, .08); border-color: rgba(230, 214, 176, .45); }
.see-through .countdown__num, .see-through .countdown__status { color: #FFF8EC; }
.see-through .countdown__lbl { color: var(--gold-soft); }

/* Wide screens: full portrait photo on the right, content on the left */
@media (min-width: 900px) and (min-aspect-ratio: 4/3) {
  .photo-bg__blur { display: block; }
  .photo-bg__img {
    inset: 0 3vw 0 auto; width: auto; height: 100%; max-width: none; object-fit: cover;
    /* feather every edge so the photo melts into the blurred backdrop */
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, #000 20%, #000 76%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 14%, #000 84%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent 0%, #000 20%, #000 76%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 14%, #000 84%, transparent 100%);
    mask-composite: intersect;
  }
  .photo-bg__blur { filter: blur(40px) brightness(.45) saturate(1.15); }
  .photo-bg::after { background: linear-gradient(to right, rgba(24, 12, 12, .55) 0%, rgba(24, 12, 12, .3) 42%, rgba(24, 12, 12, 0) 62%); }

  .hero.see-through { place-items: center start; padding: 32px 0; }
  .see-through .hero__frame {
    min-height: 0; justify-content: center; margin-left: 6vw; max-width: min(44vw, 680px);
    padding: 3rem 2.4rem;
  }
  .see-through .hero__vilakku { margin: 0 auto 1.2rem; }
  .see-through .hero__names { font-size: clamp(3.4rem, 5vw, 5.4rem); }
  .hero.see-through .scroll-cue { left: calc(6vw + min(44vw, 680px) / 2); }

  .chapter.see-through { width: min(44vw, 680px); margin-left: 6vw; }
  .see-through > .container { margin-left: 6vw; margin-right: auto; max-width: min(44vw, 680px); }
  .closing.see-through .container { margin-left: 6vw; }
}
