/* Srestha & Ranil — a letterpress wedding card: oxblood board, gold foil, engraved ornament */

:root {
  --board: #5e0d14;
  --board-hi: #6c121b;
  --board-lo: #43080e;
  --gold: #dbb871;
  --gold-hi: #ecd29b;
  --gold-lo: #a9853f;
  --ivory: #f6ead0;
  --ivory-dim: #e2cba3;
  --ink: #3c060b;

  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --caps: 'Cinzel', 'Trajan Pro', serif;
  --text: 'EB Garamond', Garamond, 'Times New Roman', serif;
  --bangla: 'Tiro Bangla', 'Noto Serif Bengali', serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --measure: 34rem;
  --gutter: clamp(18px, 5vw, 40px);
  --c: 52px; /* corner ornament size */

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; scrollbar-color: var(--gold-lo) var(--board-lo); }
body {
  margin: 0;
  background: var(--board) var(--grain);
  color: var(--ivory);
  font-family: var(--text);
  font-size: 1.1875rem;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  caret-color: var(--gold);
  -webkit-font-smoothing: antialiased;
}
.js:not(.is-opened) body { overflow: hidden; }
::selection { background: var(--gold); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.bn { font-family: var(--bangla); font-weight: 400; }
.amp { font-family: var(--caps); }

/* ---------- Engraved frame with corner flourishes ---------- */
.engraved { position: absolute; inset: 0; pointer-events: none; color: var(--gold); }
.engraved::before,
.engraved::after { content: ""; position: absolute; border: 1px solid currentColor; }
.engraved::before { inset: calc(var(--c) * 3 / 64); border-radius: calc(var(--c) * 13 / 64); }
.engraved::after { inset: calc(var(--c) * 9 / 64); border-radius: calc(var(--c) * 11 / 64); opacity: 0.7; }
.corner {
  position: absolute; width: var(--c); height: var(--c);
  fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke;
  overflow: visible;
}
.corner path, .corner circle { vector-effect: non-scaling-stroke; }
.corner .fill, .fish .fill { fill: currentColor; stroke: none; }
.corner--tl { top: 0; left: 0; }
.corner--tr { top: 0; right: 0; transform: scaleX(-1); }
.corner--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.corner--br { bottom: 0; right: 0; transform: scale(-1); }
.engraved--cover { inset: 14px; --frame-bg: transparent; --c: 76px; }
.cover .band { position: absolute; left: 104px; right: 104px; }
.cover .band--top { top: 34px; }
.cover .band--bottom { bottom: 34px; transform: scaleY(-1); }
.engraved--cover .corner { background: none; }

/* The corner symbol paints its own L of the double rule; the rectangle lines
   underneath are hidden by the corner's ground so the two meet cleanly. */
.engraved--cover::before, .engraved--cover::after { border-radius: calc(var(--c) * 13 / 64); }

.fish {
  display: block; width: 132px; height: 27px; margin: 0 auto;
  fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round;
  color: var(--gold);
}

/* ---------- Engraved border band (scalloped lotus chain) ---------- */
.band {
  display: block; height: 22px; margin: 0 auto; max-width: 720px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' fill='none' stroke='%23dbb871' stroke-width='1.1'%3E%3Cpath d='M0 18Q11 2 22 18Q33 2 44 18'/%3E%3Cpath d='M0 21h44M0 1h44' stroke-opacity='.7'/%3E%3Cpath d='M22 18c-3-3-3-7 0-10 3 3 3 7 0 10Z'/%3E%3Ccircle cx='11' cy='13' r='1.5' fill='%23dbb871' stroke='none'/%3E%3Ccircle cx='33' cy='13' r='1.5' fill='%23dbb871' stroke='none'/%3E%3C/svg%3E") center / 44px 22px repeat-x;
}
.card .band { position: absolute; left: calc(var(--c) + 6px); right: calc(var(--c) + 6px); }
.card .band--top { top: calc(var(--c) * 3 / 64 + 6px); }
.card .band--bottom { bottom: calc(var(--c) * 3 / 64 + 6px); transform: scaleY(-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px;
  border: 1px solid var(--gold); border-radius: 2px;
  font-family: var(--caps); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 17px; height: 17px; }
.btn--foil {
  min-height: 54px; padding-inline: 30px;
  background: var(--board-lo); color: var(--gold-hi); border-color: var(--gold);
  box-shadow: inset 0 0 0 3px var(--board-lo), inset 0 0 0 4px var(--gold), 0 10px 24px -14px rgba(0, 0, 0, 0.8);
}
.btn--foil:hover { background: var(--gold); color: var(--ink); box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 4px var(--ink), 0 10px 24px -14px rgba(0, 0, 0, 0.8); }
.btn--line { background: transparent; color: var(--gold); }
.btn--line:hover { background: rgba(219, 184, 113, 0.14); color: var(--gold-hi); }
.btn--small { min-height: 44px; padding: 8px 18px; font-size: 0.75rem; }
.btn--small .icon { width: 16px; height: 16px; }

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Alpona ---------- */
.alpona { display: block; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.alpona .dot { fill: var(--gold); stroke: none; }
.alpona--draw path,
.alpona--draw circle:not(.dot) {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: alpona-draw 1.6s var(--ease) forwards;
  animation-delay: calc(var(--ring, 0) * 0.38s + 0.2s);
}
.alpona--draw .dot { opacity: 0; animation: fade-in 0.6s ease forwards; animation-delay: calc(var(--ring, 0) * 0.38s + 0.9s); }
@keyframes alpona-draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

/* ---------- Cover: a gatefold that opens ---------- */
.cover { position: fixed; inset: 0; z-index: 100; perspective: 1800px; overflow: hidden; }
.skip-cover .cover { display: none; }
.cover__leaf {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background: var(--board) var(--grain);
  transition: transform 1s var(--ease) 0.25s, filter 1s var(--ease) 0.25s;
  backface-visibility: hidden;
}
.cover__leaf--l { left: 0; transform-origin: left center; box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.35); }
.cover__leaf--r { right: 0; transform-origin: right center; box-shadow: inset 1px 0 0 rgba(255, 220, 160, 0.08); }
.cover__card {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 40px 28px;
  transition: opacity 0.35s ease;
}
.cover__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cover__alpona { width: min(30vh, 52vw, 240px); height: auto; margin-bottom: 22px; }
.cover__bengali { font-size: clamp(1.75rem, 7vw, 2.25rem); color: var(--gold); line-height: 1.2; }
.cover__names {
  font-family: var(--script); font-weight: 400; color: var(--gold);
  font-size: clamp(3.5rem, 17vw, 5.75rem); line-height: 1.05; margin: 6px 0 4px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.cover__names span { display: block; }
.cover__names .amp { font-size: 0.32em; line-height: 1.6; color: var(--ivory-dim); letter-spacing: 0.1em; }
.cover__date { font-family: var(--caps); font-size: 0.9375rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory); }
.cover__open { margin-top: 30px; }

.is-opened .cover { pointer-events: none; }
.is-opened .cover__card { opacity: 0; }
.is-opened .cover__leaf--l { transform: rotateY(105deg); filter: brightness(0.55); }
.is-opened .cover__leaf--r { transform: rotateY(-105deg); filter: brightness(0.55); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 0 0 var(--gutter);
  background: rgba(58, 7, 12, 0.9);
  -webkit-backdrop-filter: saturate(1.3) blur(10px); backdrop-filter: saturate(1.3) blur(10px);
  box-shadow: 0 1px 0 rgba(219, 184, 113, 0.55), 0 4px 0 -2px rgba(219, 184, 113, 0.22), 0 14px 30px -18px rgba(0, 0, 0, 0.8);
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
.js:not(.is-opened) .nav { transform: translateY(-110%); opacity: 0; }
.is-opened:not(.skip-cover) .nav { transition-delay: 0.9s; }
.nav.is-hidden { transform: translateY(-110%); transition-delay: 0s; }
.nav__mark {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-left: -6px;
  font-family: var(--script); font-size: 1.125rem; line-height: 1; white-space: nowrap; color: var(--gold); text-decoration: none;
  border: 1px solid rgba(219, 184, 113, 0.5); border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(58, 7, 12, 1), inset 0 0 0 4px rgba(219, 184, 113, 0.35);
  transition: border-color 0.3s var(--ease);
}
.nav__mark:hover { border-color: var(--gold); }
.nav__mark .amp { font-size: 0.5em; margin: 0 1px; vertical-align: 0.3em; }
.nav__links {
  position: relative; flex: 1; min-width: 0; display: flex; gap: 2px; align-self: stretch; align-items: center;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  padding-right: var(--gutter);
  --fade-l: 0px; --fade-r: 36px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
}
.nav__links.is-scrolled { --fade-l: 28px; }
.nav__links.is-end { --fade-r: 0px; }
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a {
  position: relative; z-index: 1; flex: none; padding: 12px 11px;
  font-family: var(--caps); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ivory-dim); text-decoration: none;
  transition: color 0.3s var(--ease);
}
.nav__links a:hover { color: var(--gold-hi); }
.nav__links a.is-active { color: var(--gold); }
.nav__indicator {
  position: absolute; left: 0; bottom: 9px; width: 0; height: 7px; pointer-events: none;
  opacity: 0; transform: translateX(0);
  transition: transform 0.55s var(--ease), width 0.55s var(--ease), opacity 0.3s;
  background:
    linear-gradient(var(--gold), var(--gold)) center 3px / 100% 1px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Cpath d='M3.5 0 7 3.5 3.5 7 0 3.5Z' fill='%23dbb871'/%3E%3C/svg%3E") center / 7px 7px no-repeat;
}
.nav__indicator.is-on { opacity: 1; }
.nav__date { display: none; }
.nav__progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--gold-hi); transform-origin: left; transform: scaleX(var(--progress, 0));
}

/* ---------- Page rhythm ---------- */
.page > section, .hero { padding: 0 var(--gutter); }
.page > section { padding-top: clamp(80px, 14vw, 128px); }
.section-head { max-width: var(--measure); margin: 0 auto 48px; text-align: center; }
.section-head .fish { margin-bottom: 22px; }
.section-title {
  font-family: var(--caps); font-weight: 500; color: var(--gold);
  font-size: clamp(1.625rem, 6.4vw, 2.5rem); line-height: 1.15; letter-spacing: 0.06em; text-transform: uppercase;
  text-wrap: balance;
}
.section-intro { margin-top: 16px; color: var(--ivory-dim); text-wrap: pretty; }

/* ---------- Hero: the card itself ---------- */
.hero { padding-top: 86px; }
.card {
  position: relative; max-width: 640px; margin: 0 auto;
  padding: calc(var(--c) + 22px) 30px calc(var(--c) + 18px);
  text-align: center;
  background: var(--board-hi) var(--grain);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.hero__blessing { font-family: var(--caps); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory-dim); max-width: 18rem; margin: 0 auto; line-height: 1.7; }
.hero__bengali { margin-top: 26px; font-size: clamp(2rem, 9vw, 2.75rem); color: var(--gold); line-height: 1.2; }
.hero__names {
  margin: 4px 0 18px; font-family: var(--script); font-weight: 400; color: var(--gold);
  font-size: clamp(3.75rem, 19vw, 6rem); line-height: 1.02;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.hero__names:focus { outline: none; }
.hero__name { display: block; }
.hero__amp { display: block; font-family: var(--caps); font-size: 0.3em; line-height: 1.5; color: var(--ivory-dim); }
.hero__date { margin-top: 22px; display: flex; flex-direction: column; gap: 4px; font-family: var(--caps); font-size: clamp(0.8125rem, 3.6vw, 0.9375rem); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ivory); }
.hero__date span + span { color: var(--ivory-dim); font-size: 0.8125rem; }

.mount {
  max-width: 900px; margin: clamp(48px, 9vw, 80px) auto 0;
  padding: 10px; background: var(--board-lo);
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold-lo); outline-offset: 5px;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.75);
}

/* ---------- Invitation ---------- */
.invite { text-align: center; }
.invite > .band { margin-bottom: clamp(56px, 10vw, 88px); }
.invite__lead { max-width: var(--measure); margin: 0 auto; font-size: clamp(1.25rem, 4.6vw, 1.5rem); line-height: 1.5; text-wrap: balance; }
.invite__couple { display: grid; gap: 28px; justify-items: center; margin: 56px auto; max-width: 820px; }
.invite__person { display: grid; gap: 8px; justify-items: center; }
.invite__fullname { display: grid; line-height: 1; font-size: 1.75rem; }
.invite__fullname .script { font-family: var(--script); font-weight: 400; font-size: clamp(3rem, 13vw, 4.25rem); color: var(--gold); }
.invite__fullname .caps { font-family: var(--caps); font-weight: 500; font-size: 1.0625rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory); margin-top: 6px; }
.invite__role { font-family: var(--caps); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ivory-dim); margin-top: 10px; }
.invite__parents { color: var(--ivory-dim); max-width: 18rem; }
.invite__and { font-family: var(--caps); font-size: 1.75rem; color: var(--gold); line-height: 1; }
.invite__close { max-width: var(--measure); margin: 0 auto; font-size: 1.25rem; color: var(--ivory); text-wrap: balance; }

.countdown {
  max-width: 560px; margin: 64px auto 0; padding: 30px 12px 26px;
  border-block: 3px double var(--gold);
}
.countdown__clock { display: grid; grid-template-columns: repeat(4, 1fr); }
.countdown__unit { display: grid; gap: 4px; justify-items: center; padding-inline: 8px; }
.countdown__unit + .countdown__unit { border-left: 1px solid rgba(219, 184, 113, 0.4); }
.countdown__num { font-family: var(--caps); font-weight: 500; font-size: clamp(2rem, 9vw, 2.875rem); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.countdown__label { font-family: var(--caps); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-dim); }
.countdown__eyebrow { margin-top: 22px; font-family: var(--caps); font-size: 0.875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory); }
.countdown__note { margin-top: 6px; color: var(--ivory-dim); font-size: 1.0625rem; }
.countdown__note .icon { display: inline-block; width: 16px; height: 16px; vertical-align: -2px; margin-right: 8px; color: var(--gold); }

/* ---------- Celebrations ---------- */
.days { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; display: grid; gap: 56px; }
.day__label {
  display: flex; align-items: center; gap: 14px; margin-bottom: 8px;
  font-family: var(--caps); font-weight: 500; font-size: 1.0625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.day__label::before, .day__label::after { content: ""; flex: 1; height: 1px; background: rgba(219, 184, 113, 0.5); }
.day__date { color: var(--ivory-dim); }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
/* each ceremony is its own card in the set, pressed into the board */
.event {
  position: relative; padding: 32px 22px 30px; text-align: center;
  background: rgba(40, 4, 8, 0.3);
  border: 1px solid rgba(219, 184, 113, 0.55);
  box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 220, 160, 0.06);
}
.event:not(.event--main)::before {
  content: ""; position: absolute; inset: 5px; pointer-events: none;
  border: 1px solid rgba(219, 184, 113, 0.22);
}
.event__bn { font-size: 2rem; color: var(--gold); line-height: 1.3; }
.event__name { margin-top: 2px; font-family: var(--caps); font-weight: 600; font-size: 1.5rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ivory); }
.event__meta { margin: 10px auto 0; max-width: 24rem; color: var(--ivory); font-size: 1.0625rem; text-wrap: balance; }
.event__meta .icon { display: inline-block; vertical-align: -3px; margin-right: 8px; color: var(--gold); }
.event__note { margin: 6px auto 18px; max-width: 26rem; color: var(--ivory-dim); }

/* the wedding: the principal card of the set, larger, debossed, double gold frame */
.event--main {
  border: 0;
  padding: calc(var(--c) + 14px) 26px calc(var(--c) + 10px);
  background: var(--board-lo) var(--grain);
  box-shadow: inset 0 4px 14px rgba(0, 0, 0, 0.6), inset 0 -1px 0 rgba(255, 220, 160, 0.08), 0 1px 0 rgba(255, 220, 160, 0.08);
}
.event--main .event__bn { font-size: clamp(2.5rem, 11vw, 3.25rem); }
.event--main .event__name { font-family: var(--script); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: clamp(2.75rem, 12vw, 3.5rem); color: var(--gold); line-height: 1.1; }
.event--main .event__meta { font-size: 1.125rem; }
.event--main .band { position: absolute; left: calc(var(--c) + 6px); right: calc(var(--c) + 6px); }
.event--main .band--top { top: calc(var(--c) * 3 / 64 + 6px); }
.event--main .band--bottom { bottom: calc(var(--c) * 3 / 64 + 6px); transform: scaleY(-1); }

.cal { position: relative; display: inline-block; }
.cal summary { list-style: none; }
.cal summary::-webkit-details-marker { display: none; }
.cal__menu {
  position: absolute; z-index: 5; left: 50%; top: calc(100% + 8px); transform: translateX(-50%);
  display: grid; min-width: 240px; padding: 6px;
  background: var(--board-lo); border: 1px solid var(--gold);
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.7);
}
.cal__menu a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--ivory); text-decoration: none; font-size: 1.0625rem; text-align: left; }
.cal__menu a .icon { color: var(--gold); }
.cal__menu a:hover, .cal__menu a:focus-visible { background: rgba(219, 184, 113, 0.16); color: var(--gold-hi); }
.celebrations__all { margin-top: 48px; text-align: center; }
.celebrations__all .btn { letter-spacing: 0.08em; padding-inline: 22px; }

/* ---------- Venues ---------- */
.venues__list { display: grid; max-width: 900px; margin: 0 auto; }
.venue + .venue { border-top: 0; }
.venue { padding: 34px 20px 36px; text-align: center; border-block: 3px double var(--gold); display: grid; justify-items: center; gap: 10px; }
.venue__when { font-family: var(--caps); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-dim); }
.venue__name { font-family: var(--caps); font-weight: 600; font-size: clamp(1.375rem, 5.6vw, 1.75rem); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); line-height: 1.3; text-wrap: balance; }
.venue__when { margin-top: -2px; }
.venue__address { color: var(--ivory); margin-bottom: 12px; }

/* ---------- Moments ---------- */
.chapter { max-width: 960px; margin: 0 auto; }
.chapter + .chapter { margin-top: 64px; }
.chapter__title { text-align: center; font-family: var(--caps); font-weight: 500; font-size: 1.125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.chapter__note { text-align: center; color: var(--ivory-dim); margin: 6px auto 24px; max-width: 28rem; }
.row { display: grid; gap: 18px; }
.shot {
  display: block; width: 100%; padding: 7px; margin: 0; cursor: zoom-in;
  background: var(--board-lo); border: 1px solid var(--gold-lo);
  transition: border-color 0.3s var(--ease);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot:hover { border-color: var(--gold); }
.shot--wide img { aspect-ratio: 3 / 2; }
.shot--tall img { aspect-ratio: 2 / 3; }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px;
  margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  scrollbar-color: var(--gold-lo) transparent;
}
.strip .shot { scroll-snap-align: start; }
.strip .shot img { aspect-ratio: 2 / 3; }

/* ---------- Blessings ---------- */
.blessings__bn { font-size: 2.5rem; color: var(--gold); line-height: 1.2; margin-bottom: 8px; }
.wish { max-width: 32rem; margin: 0 auto; display: grid; gap: 26px; }
.field { display: grid; gap: 6px; }
.field__label { font-family: var(--caps); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.field__input {
  width: 100%; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--gold-lo); border-radius: 0;
  background: transparent; color: var(--ivory); font: inherit; font-size: 1.1875rem;
  transition: border-color 0.2s;
}
textarea.field__input { resize: vertical; min-height: 120px; line-height: 1.5; border: 1px solid var(--gold-lo); padding: 12px 14px; }
.field__input:focus { outline: none; border-color: var(--gold-hi); box-shadow: 0 1px 0 var(--gold-hi); }
textarea.field__input:focus { box-shadow: inset 0 0 0 1px var(--gold-hi); }
.wish__error { color: var(--gold-hi); font-style: italic; }
.wish__error::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; background: var(--gold-hi); transform: rotate(45deg) translateY(-2px); }
.wish__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wish__actions .btn { flex: 1 1 200px; }

.share { max-width: 32rem; margin: 72px auto 0; padding-top: 40px; text-align: center; border-top: 1px solid rgba(219, 184, 113, 0.35); }
.share__title { font-family: var(--caps); font-weight: 500; font-size: 1.125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.share__text { margin: 8px 0 20px; color: var(--ivory-dim); }
.share__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(96px, 16vw, 140px); padding: 64px var(--gutter) calc(48px + env(safe-area-inset-bottom)); text-align: center; background: var(--board-lo) var(--grain); border-top: 3px double var(--gold); }
.footer > .band { margin: -40px auto 40px; }
.footer__alpona { width: 110px; height: auto; margin: 0 auto 24px; }
.footer__names { font-family: var(--script); font-size: 3rem; color: var(--gold); line-height: 1.1; }
.footer__names .amp { font-size: 0.4em; vertical-align: 0.35em; color: var(--ivory-dim); }
.footer__line { margin-top: 10px; font-family: var(--caps); font-size: 0.875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory); }
.footer__from { margin-top: 8px; color: var(--ivory-dim); }
.footer__top { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 10px; font-family: var(--caps); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; }

.credit {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px;
  margin: 44px calc(var(--gutter) * -1) 0; padding: 22px var(--gutter) 0;
  border-top: 1px solid rgba(219, 184, 113, 0.22);
  font-family: var(--caps); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory-dim);
}
.credit__link {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 4px; min-height: 44px;
  color: var(--gold); text-decoration: none; transition: color 0.25s var(--ease);
}
.credit__link:hover { color: var(--gold-hi); }
.credit__logo { width: auto; height: 24px; display: block; }
.credit__domain { font-family: var(--text); text-transform: none; letter-spacing: 0.02em; font-size: 1rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--ivory);
}
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox::backdrop { background: rgba(30, 3, 6, 0.94); }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 60px 0 28px; max-height: 100dvh; }
.lightbox__img { max-height: calc(100dvh - 140px); width: auto; border: 1px solid var(--gold-lo); padding: 6px; background: var(--board-lo); }
.lightbox__caption { font-family: var(--caps); font-size: 0.875rem; letter-spacing: 0.12em; color: var(--ivory-dim); text-align: center; padding: 0 16px; }
.lightbox button {
  display: grid; place-items: center; width: 48px; height: 48px; margin: 6px;
  background: rgba(67, 8, 14, 0.8); color: var(--gold); border: 1px solid var(--gold-lo); cursor: pointer;
}
.lightbox button:hover { border-color: var(--gold); color: var(--gold-hi); }
.lightbox button .icon { width: 22px; height: 22px; }
.lightbox__close { position: absolute; top: 8px; right: 8px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 22px; background: var(--board-lo); border: 1px solid var(--gold); color: var(--ivory);
  font-family: var(--caps); font-size: 0.8125rem; letter-spacing: 0.12em;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Smooth scroll (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Reveals ----------
   Content is visible by default; only a .js page with motion allowed hides it
   until it is near the viewport. Each kind of element has its own entrance. */
.motion [data-reveal] { --d: 0s; }
.motion [data-reveal]:not([data-reveal="head"]):not([data-reveal="stagger"]):not([data-reveal="mount"]):not([data-reveal="band"]) {
  opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity 1.1s var(--ease) var(--d), transform 1.3s var(--ease) var(--d), filter 1.1s var(--ease) var(--d);
}
.motion [data-reveal].is-visible:not([data-reveal="head"]):not([data-reveal="stagger"]):not([data-reveal="mount"]):not([data-reveal="band"]) {
  opacity: 1; transform: none; filter: none;
}

/* Section heads: the fish ornament engraves itself, then the title settles its tracking */
.motion [data-reveal="head"] .fish { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) 0.1s; }
.motion [data-reveal="head"] .fish .fill, .motion [data-reveal="head"] .fish { color: transparent; }
.motion [data-reveal="head"].is-visible .fish { stroke-dashoffset: 0; color: var(--gold); transition: stroke-dashoffset 1.6s var(--ease) 0.1s, color 0.6s ease 1s; }
.motion [data-reveal="head"] > :not(.fish) {
  opacity: 0; transform: translateY(14px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease), letter-spacing 1.6s var(--ease);
}
.motion [data-reveal="head"] > :nth-child(2) { transition-delay: 0.25s; }
.motion [data-reveal="head"] > :nth-child(3) { transition-delay: 0.45s; }
.motion [data-reveal="head"] .section-title { letter-spacing: 0.24em; }
.motion [data-reveal="head"].is-visible > :not(.fish) { opacity: 1; transform: none; }
.motion [data-reveal="head"].is-visible .section-title { letter-spacing: 0.06em; }

/* Stagger: children rise in sequence */
.motion [data-reveal="stagger"] > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.12s);
}
.motion [data-reveal="stagger"].is-visible > * { opacity: 1; transform: none; }
.motion .day .events > .event { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(0.15s + var(--i, 0) * 0.16s); }
.motion .day.is-visible .events > .event { opacity: 1; transform: none; }

/* Photo mounts: the frame is drawn back like a card insert sliding out of its sleeve */
.motion [data-reveal="mount"], .motion .chapter .shot {
  clip-path: inset(10% 6% 10% 6%); opacity: 0;
  transition: clip-path 1.4s var(--ease) var(--d), opacity 0.8s ease var(--d);
}
.motion [data-reveal="mount"] img, .motion .chapter .shot img { transform: scale(1.12); transition: transform 1.8s var(--ease) var(--d); }
.motion [data-reveal="mount"].is-visible, .motion .chapter.is-visible .shot { clip-path: inset(-12px -12px -12px -12px); opacity: 1; }
.motion [data-reveal="mount"].is-visible img, .motion .chapter.is-visible .shot img { transform: none; }
.motion .chapter .shot { --d: calc(0.2s + var(--i, 0) * 0.12s); }

/* Ornamental band unrolls from the centre */
.motion [data-reveal="band"] { clip-path: inset(0 50% 0 50%); transition: clip-path 1.6s var(--ease); }
.motion [data-reveal="band"].is-visible { clip-path: inset(0 0 0 0); }

/* Double-ruled blocks: the rules open outward as the content rises */
.motion [data-reveal="rule"] { border-color: transparent; transition: opacity 1s var(--ease), transform 1.2s var(--ease), filter 1s var(--ease), border-color 1.2s ease 0.3s; }
.motion [data-reveal="rule"].is-visible { border-color: var(--gold); }

/* The wedding panel: a single sweep of light across the foil */
.event--main { overflow: hidden; }
.event--main::after {
  content: ""; position: absolute; inset: -20% auto -20% 0; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 246, 220, 0.55) 50%, transparent);
  mix-blend-mode: soft-light; transform: translateX(-120%) skewX(-12deg); opacity: 0;
}
.motion .event--main.is-visible::after { animation: foil-sweep 1.8s var(--ease) 0.5s 1 both; }
@keyframes foil-sweep { 0% { opacity: 1; transform: translateX(-120%) skewX(-12deg); } 100% { opacity: 1; transform: translateX(330%) skewX(-12deg); } }

/* Hero card: after the gatefold opens, the card's lines are set in one by one */
.motion .hero .rise { opacity: 0; transform: translateY(16px); filter: blur(8px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease), filter 1.2s var(--ease); }
.motion .hero .hero__names.rise { letter-spacing: 0.08em; transition: opacity 1.4s var(--ease), transform 1.6s var(--ease), filter 1.4s var(--ease), letter-spacing 2s var(--ease); }
.motion .hero .fish.rise { filter: none; transform: none; stroke-dasharray: 1; stroke-dashoffset: 1; color: transparent; transition: stroke-dashoffset 1.6s var(--ease), opacity 0.4s, color 0.6s ease; }
.motion .hero .card .corner { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease) 0.2s; }
.motion.hero-in .hero .rise { opacity: 1; transform: none; filter: none; }
.motion.hero-in .hero .hero__names.rise { letter-spacing: 0; }
.motion.hero-in .hero .fish.rise { stroke-dashoffset: 0; color: var(--gold); transition-delay: 0.7s; }
.motion.hero-in .hero .card .corner { stroke-dashoffset: 0; }
.motion.hero-in .hero .hero__bengali { transition-delay: 0.15s; }
.motion.hero-in .hero .hero__names { transition-delay: 0.3s; }
.motion.hero-in .hero .hero__date { transition-delay: 0.9s; }

/* ---------- Wider screens ---------- */
@media (min-width: 720px) {
  :root { --c: 64px; }
  .nav { padding-right: var(--gutter); }
  .nav__links { justify-content: center; padding-right: 0; -webkit-mask-image: none; mask-image: none; }
  .nav__date { display: block; flex: none; font-family: var(--caps); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory-dim); }
  .invite__couple { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .row { grid-template-columns: 1.85fr 1fr; align-items: start; }
  .strip { grid-auto-columns: calc((100% - 56px) / 5); grid-auto-flow: column; overflow: visible; margin: 0; padding-inline: 0; }
  .venues__list { grid-template-columns: 1fr 1fr; gap: 40px; }
  .venue + .venue { border-top: 3px double var(--gold); }
  .days { max-width: 900px; }
  .events { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); align-items: stretch; }
  .events:has(.event--main) { grid-template-columns: 1fr 1.7fr; align-items: center; }
  .cover__names span { display: inline; }
  .cover__names .amp { margin: 0 0.3em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .alpona--draw path, .alpona--draw circle:not(.dot) { animation: none; stroke-dashoffset: 0; }
  .alpona--draw .dot { animation: none; opacity: 1; }
  .cover__leaf, .cover__card { transition: none; }
  .is-opened .cover { display: none; }
}
