/* Ishwar & Pomila: "Sindoor on white".
   A one-colour letterpress invitation. Gallery-white paper, one ink (a deepened, quiet sindoor),
   and a blush wash as the only second colour. Every line, letter and engraving is the same red. */

:root {
  --paper: #fcfbf9;      /* gallery white, a breath of warmth */
  --wash: #faf1ee;       /* blush wash: panels, the inside of the arch */
  --wash-2: #f4e3de;     /* deeper blush: the countdown field, rangoli */
  --rule: #e9cdc5;       /* hairlines: the ink thinned on paper */
  --ink: #a63a2e;        /* sindoor, deepened and desaturated */
  --ink-2: #9c5248;      /* the same ink, thinned, for secondary text */
  --ink-deep: #8a2f25;   /* pressed harder: hover and active */

  --display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --body: "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;
  --hi: "Noto Serif Devanagari", "Mukta", serif;

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --step-head: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-weight: 400; font-size: var(--step-body); line-height: 1.65;
  background: var(--paper) url("assets/grain-sindoor.svg");
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; font-kerning: normal;
}
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: .06em; }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
[lang="hi"] { font-family: var(--hi); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 99; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { left: 8px; }
.center { text-align: center; }

/* every motif prints in the one ink, with blush where the cutouts had colour */
.b-m { --a: var(--ink); --b: var(--ink); --c: var(--wash-2); --c2: var(--ink); }

/* ---------- top bar ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--ink); transition: background-color .3s, box-shadow .3s; }
.bar.scrolled { background: rgba(252, 251, 249, .95); box-shadow: 0 1px 0 var(--rule); }
.bar-in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 12px var(--pad); }
.mark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-family: var(--display); font-size: 19px; letter-spacing: .04em; }
.mark-ic { width: 26px; height: 26px; }
.bar-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); font-size: 15px; letter-spacing: .02em; }
.bar-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.bar-links a:hover { color: var(--ink-deep); text-decoration: underline; }
.bar-rsvp { padding: 0 20px; border: 1px solid currentColor; border-radius: 999px; }
.bar-links a.bar-rsvp:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
@media (max-width: 560px) { .bar-links li:first-child { display: none; } .bar-links { gap: 16px; } }

/* ---------- hero: the invitation card, an ogee arch in a double engraved rule ---------- */
.hero { position: relative; min-height: 100svh; overflow: clip; display: grid; align-items: center; }
.hero-tex {
  position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background: url("assets/rosette-sindoor.svg") no-repeat 50% 44% / min(1180px, 140vh);
}
.hero-in { position: relative; z-index: 1; width: 100%; display: grid; justify-items: center; padding: 88px var(--pad) 72px; }

/* --w drives the whole card: the crown is drawn in a 600 x 464 box, the sides continue in CSS */
.arch { --aw: max(300px, min(520px, calc(100vw - 2 * var(--pad)), calc((100svh - 150px) * .66)));
  position: relative; width: var(--aw); padding-top: calc(var(--aw) * .40); text-align: center; }
.arch-crown { position: absolute; top: 0; left: 0; width: 100%; height: auto; overflow: visible; }
.arch::before, .arch::after { content: ""; position: absolute; bottom: 8px; pointer-events: none; }
.arch::before { top: calc(var(--aw) * .7733 - 1px); left: 0; right: 0; border-inline: 1.25px solid var(--ink); }
.arch::after { top: calc(var(--aw) * .7733 - 1px); left: calc(var(--aw) * 14 / 600 - .35px); right: calc(var(--aw) * 14 / 600 - .35px);
  border-inline: .7px solid var(--ink); background: var(--wash); z-index: 0; }
.arch-in { position: relative; z-index: 1; padding: 0 9% 0; }
.arch-base { position: relative; z-index: 1; margin: 0 calc(var(--aw) * -.035); height: 7px; border-top: 1.25px solid var(--ink); border-bottom: .7px solid var(--ink); }

.hero-label { font-size: 15px; letter-spacing: .04em; color: var(--ink); }
.names { margin-top: clamp(14px, 2.4vw, 26px); display: grid; justify-items: center; font-family: var(--display); font-weight: 400;
  font-size: calc(var(--aw) * .165); line-height: .98; letter-spacing: -.02em; font-variation-settings: "opsz" 36; }
.nm-amp { font-style: normal; font-size: .42em; line-height: 1.25; letter-spacing: 0; }
.hero-amp { margin-top: 18px; font-family: var(--display); font-style: normal; font-size: var(--step-lead); line-height: 1.3; font-variation-settings: "opsz" 36; }
.hero-line { margin-top: 12px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 12px; font-size: 16px; letter-spacing: .02em; color: var(--ink-2); }
.hero-line .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink); }
.hero-line a { text-decoration: underline; text-decoration-color: var(--rule); color: var(--ink); }
.hero-line a:hover { text-decoration-color: currentColor; }
.scene-wrap { margin: clamp(16px, 2.4vw, 28px) -4% 0; }
.scene { width: 100%; height: auto; }
.scroll { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; font-size: 13px; letter-spacing: .16em; color: var(--ink-2); text-decoration: none; }
.scroll::after { content: ""; width: 1px; height: 26px; background: var(--rule); }
@media (max-height: 760px) and (min-width: 821px) { .scroll { display: none; } }

.petals { position: absolute; inset: 0; pointer-events: none; }
.petals i { position: absolute; top: -4%; left: var(--x); width: 6px; height: 9px; border-radius: 60% 40% 60% 40%; background: var(--ink); opacity: 0; }
.petals i:nth-child(2n) { background: var(--rule); }
@media (prefers-reduced-motion: no-preference) {
  .petals i { animation: petal var(--w) linear var(--t) infinite; }
  @keyframes petal {
    0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(var(--s)); }
    12% { opacity: .35; }
    88% { opacity: .25; }
    100% { opacity: 0; transform: translate(50px, 104svh) rotate(300deg) scale(var(--s)); }
  }
}
@media (max-width: 820px) {
  .hero-in { padding: 80px var(--pad) 64px; }
  .hero-line { flex-direction: column; gap: 0; }
  .hero-line .dot { display: none; }
  .hero-tex { background-position: 50% 34%; background-size: 760px; }
}

/* ---------- sections ---------- */
.sec { padding-block: clamp(88px, 10vw, 136px); position: relative; }
.narrow { max-width: 760px; margin: 0 auto; padding-inline: var(--pad); position: relative; z-index: 1; }
.sec-head { text-align: center; margin-bottom: clamp(40px, 5vw, 60px); }
.flourish { width: 110px; height: 50px; margin: 0 auto 18px; color: var(--ink); }
.label { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.title { margin-top: 12px; font-family: var(--display); font-size: var(--step-head); line-height: 1.08; letter-spacing: -.015em; color: var(--ink); font-variation-settings: "opsz" 36; text-wrap: balance; }
.sec-sub { margin: 16px auto 0; max-width: 46ch; color: var(--ink-2); line-height: 1.6; text-wrap: pretty; }
.sec-sub [lang="hi"] { font-size: 1.15em; color: var(--ink); }

/* invitation + couple */
.lede { color: var(--ink-2); text-align: center; max-width: 54ch; margin: 0 auto; font-size: var(--step-body); line-height: 1.8; text-wrap: pretty; }
.lede-hi { margin-top: 20px; color: var(--ink-2); line-height: 1.95; }
.couple { margin-top: clamp(56px, 7vw, 84px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; text-align: center; }
.person-hi { font-size: 17px; }
.person-name { margin-top: 2px; font-family: var(--display); font-size: clamp(2.5rem, 1.9rem + 2vw, 3.5rem); line-height: 1.05; letter-spacing: -.015em; font-variation-settings: "opsz" 36; }
.person-par { margin-top: 10px; font-size: var(--step-small); line-height: 1.65; color: var(--ink-2); }
.couple-amp { font-family: var(--display); font-style: normal; font-size: 40px; }
.story { margin: clamp(48px, 6vw, 72px) auto 0; max-width: 50ch; text-align: center; line-height: 1.8; color: var(--ink-2); padding-top: 32px; border-top: 1px solid var(--rule); text-wrap: pretty; }
@media (max-width: 560px) { .couple { grid-template-columns: 1fr; gap: 10px; } }

/* countdown: the one blush field, with an engraved band at each edge */
.count { position: relative; overflow: clip; background: var(--wash-2); text-align: center; padding-block: clamp(76px, 9vw, 108px); }
.count-tex { position: absolute; inset: 0; opacity: .32; pointer-events: none;
  background: url("assets/band-sindoor.svg") repeat-x 0 12px / 1440px 40px, url("assets/band-sindoor.svg") repeat-x 0 calc(100% - 12px) / 1440px 40px; }
.label-light { color: var(--ink-2); }
.title-light { color: var(--ink); }
.countdown { margin-top: 30px; display: flex; justify-content: center; gap: clamp(20px, 5vw, 60px); }
.cd { display: grid; justify-items: center; min-width: 64px; }
.cd-n { font-family: var(--display); font-size: clamp(2.75rem, 1.8rem + 3.4vw, 4.5rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; font-variation-settings: "opsz" 36; }
.cd-unit, .cd-l { margin-top: 10px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }

/* ceremonies: an order of service, set like a printed programme, on the blush wash */
.ceremonies { background: var(--wash); }
.events { position: relative; display: grid; }
.events::before { content: ""; position: absolute; left: 31px; top: 40px; bottom: 40px; width: 1px; background: var(--rule); }
.ev { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 26px; align-items: start; padding-block: 26px; }
.ev + .ev .ev-body { border-top: 1px solid var(--rule); }
.ev-body { padding-top: 26px; margin-top: -26px; }
.ev:first-child .ev-body { padding-top: 0; margin-top: 0; }
.ev-node { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 6px var(--wash), inset 0 0 0 1px var(--rule); display: grid; place-items: center; }
.ev-icon { width: 36px; height: 36px; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.ev-meta > * + *::before { content: "·"; margin-right: 10px; }
.ev-name { margin-top: 4px; font-family: var(--display); font-size: clamp(1.75rem, 1.5rem + .8vw, 2.125rem); line-height: 1.2; letter-spacing: -.01em; font-variation-settings: "opsz" 36; }
.ev-name [lang="hi"] { margin-left: 10px; font-size: .55em; letter-spacing: 0; color: var(--ink-2); }
.ev-text { margin-top: 6px; max-width: 54ch; color: var(--ink-2); }
.ev-steps { margin-top: 12px; display: grid; gap: 2px; font-size: var(--step-small); }
.ev-steps li { display: grid; grid-template-columns: 58px 1fr; }
.ev-steps time { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ev-wear { margin-top: 10px; display: flex; align-items: baseline; gap: 10px; font-size: var(--step-small); color: var(--ink-2); }
.ev-wear::before { content: "Wear"; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.sw { display: none; }
.ev-main .ev-node { background: var(--ink); box-shadow: 0 0 0 6px var(--wash); }
.ev-main .ev-icon { --a: var(--paper); --b: var(--paper); --c: var(--ink-deep); --c2: var(--paper); }
.ev-main .ev-name { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); }
.events + .center { margin-top: 44px; }
@media (max-width: 560px) {
  .events::before { left: 23px; }
  .ev { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding-block: 22px; }
  .ev-body { padding-top: 22px; margin-top: -22px; }
  .ev-node { width: 48px; height: 48px; }
  .ev-icon { width: 28px; height: 28px; }
  .ev-name [lang="hi"] { display: block; margin-left: 0; font-size: .6em; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 30px; border-radius: 999px; text-decoration: none; font-size: 16px; letter-spacing: .03em; cursor: pointer; border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .15s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--ink-deep); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-wide { width: 100%; margin-top: 8px; }

/* venue */
.venue .center { margin-top: -12px; }
.facts { margin-top: clamp(48px, 6vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 32px; border-top: 1px solid var(--rule); }
.facts dt { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.facts dd { margin-top: 10px; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); }
.facts dd a { color: var(--ink); }
@media (max-width: 680px) { .facts { grid-template-columns: 1fr; gap: 24px; } }

/* rsvp: a reply card on the blush wash */
.rsvp { background: var(--wash); }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; outline: 1px solid var(--rule); outline-offset: 5px; }
.form { padding: 0 clamp(20px, 4vw, 44px) clamp(28px, 4vw, 40px); display: grid; gap: 26px; overflow: hidden; }
.micro { margin: 0 calc(-1 * clamp(20px, 4vw, 44px)); padding: 8px 0; border-bottom: 1px solid var(--rule); background: var(--paper); white-space: nowrap; overflow: hidden; font-size: 7.5px; letter-spacing: .16em; color: var(--ink); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 4px; }
.field > span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select {
  width: 100%; min-height: 46px; padding: 6px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  background: transparent; font-size: 17px; color: var(--ink); outline: 0; appearance: none; transition: border-color .2s;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1c2 2 3 3 5 5c2-2 3-3 5-5' fill='none' stroke='%23a63a2e' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 4px center / 12px; cursor: pointer; }
.field input:focus, .field select:focus { border-bottom-color: var(--ink); }
.field input::placeholder { color: #a2645b; font-style: normal; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1px solid var(--rule); border-radius: 999px; font-size: 15px; transition: background-color .15s, color .15s, border-color .15s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--wash-2); border-color: var(--ink); color: var(--ink); }
.chips input:checked + span::before { content: ""; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.summary { margin-top: -10px; text-align: center; font-size: var(--step-small); color: var(--ink-2); }
.err { margin-top: -18px; text-align: center; font-size: var(--step-small); color: var(--ink-deep); }
.err:empty { display: none; }
@media (max-width: 560px) { .f-row { grid-template-columns: 1fr; } }

/* footer: the back of the card, the arch again at half size */
.foot { position: relative; overflow: clip; text-align: center; padding-block: clamp(72px, 8vw, 104px) 36px; }
.foot-tex { position: absolute; inset: 0; opacity: .07; pointer-events: none; background: url("assets/rosette-sindoor.svg") no-repeat 50% 44% / 820px; }
.arch.arch-sm { --aw: min(400px, calc(100vw - 2 * var(--pad))); margin: 0 auto; }
.arch-sm .arch-in { padding: 0 10% clamp(40px, 6vw, 56px); }
.foot-diya { width: 52px; height: 52px; margin: -24px auto 16px; }
.foot .title { margin-top: 0; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
.foot-hi { margin-top: 14px; font-size: 19px; }
.foot-hosts { margin-top: 14px; font-size: var(--step-small); line-height: 1.7; color: var(--ink-2); }
.foot-small { margin-top: 40px; font-size: 13px; letter-spacing: .12em; color: var(--ink-2); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(14px); animation: rise 1s var(--ease) forwards; animation-delay: calc(.2s + var(--i, 0) * .12s); }
  @keyframes rise { to { opacity: 1; transform: none; } }
  .arch-crown .crown-ros { transform-box: fill-box; transform-origin: center; }
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}
.facts a[href^="tel"] { white-space: nowrap; }
.foot-small { text-wrap: balance; }

@media (max-width: 560px) {
  .arch { --aw: min(330px, calc(100vw - 2 * var(--pad) - 20px)); }
  .arch-base { margin-inline: 0; }
  .ev-name [lang="hi"] { margin-top: 4px; line-height: 1.5; }
}

.names { font-variation-settings: "opsz" 60; }
.title, .person-name { font-variation-settings: "opsz" 40; }
.cd-n { font-variation-settings: "opsz" 48; }
.ev-name { font-variation-settings: "opsz" 24; font-weight: 500; }

/* ---------- a little more colour: haldi, leaf, rose and peacock alongside the sindoor ---------- */
:root {
  --haldi: #c99232;      /* turmeric, toned down */
  --haldi-wash: #fbf3e2;
  --leaf: #4f6c41;       /* mehendi leaf */
  --leaf-wash: #f1f4ea;
  --rose: #df9f92;
  --peacock: #2f6b6e;
  --ochre: #e0b764; --sage: #8fa57d; --brass-2: #d8b27a;
}
.b-m { --a: var(--ink); --b: var(--haldi); --c: var(--wash-2); --c2: var(--leaf); }
.sw { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); align-self: center; }
.label, .ev-meta { color: var(--peacock); }
.hero-amp, .names .amp, .couple-amp { color: var(--haldi); }
.count { background: var(--haldi-wash); }
.count-tex { background: url("assets/band-haldi.svg") repeat-x 0 12px / 1440px 40px, url("assets/band-sindoor.svg") repeat-x 0 calc(100% - 12px) / 1440px 40px; }
.venue { background: var(--leaf-wash); }
.facts dt { color: var(--leaf); }
.chips input:checked + span::before { background: var(--haldi); }
.ev-wear::before { color: var(--leaf); }

/* ---------- the mandala turns: two engraved rosettes, sindoor and haldi, turning opposite ways ---------- */
.hero-tex { background: none; opacity: 1; }
.hero-tex::before, .hero-tex::after {
  content: ""; position: absolute; left: 50%; top: 44%; width: min(1180px, 140vh); aspect-ratio: 1;
  translate: -50% -50%; background: url("assets/rosette-sindoor.svg") center / contain no-repeat; opacity: .09;
}
.hero-tex::after { width: min(820px, 98vh); background-image: url("assets/rosette-haldi.svg"); opacity: .16; }
.foot-tex { background: none; opacity: 1; }
.foot-tex::before {
  content: ""; position: absolute; left: 50%; top: 44%; width: 820px; aspect-ratio: 1; translate: -50% -50%;
  background: url("assets/rosette-haldi.svg") center / contain no-repeat; opacity: .14;
}
@media (max-width: 820px) {
  .hero-tex::before { top: 34%; width: 760px; }
  .hero-tex::after { top: 34%; width: 520px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-tex::before { animation: turn 240s linear infinite; }
  .hero-tex::after { animation: turn 180s linear infinite reverse; }
  .foot-tex::before { animation: turn 200s linear infinite; }
  @keyframes turn { to { rotate: 360deg; } }
}

/* ---------- dark contrast fields: deep kumkum, with cream ink and haldi accents ---------- */
:root { --dark: #561914; --dark-2: #6a221b; --cream: #fbf0e6; }
.count, .foot, .ev-main .ev-body {
  --ink: var(--cream); --ink-2: #efd6ca; --ink-deep: #fff; --rule: rgba(251, 240, 230, .22);
  --wash: rgba(255, 255, 255, .05); --wash-2: rgba(255, 255, 255, .08); --paper: var(--dark);
  background: var(--dark); color: var(--ink);
}
.count .label, .foot .label { color: var(--haldi); }
.count .cd-unit, .count .cd-l { color: #e9c27a; }
.count-tex { opacity: .5; background: url("assets/band-haldi.svg") repeat-x 0 12px / 1440px 40px, url("assets/band-haldi.svg") repeat-x 0 calc(100% - 12px) / 1440px 40px; }
.foot-tex::before { opacity: .22; }
.foot .b-m { --a: var(--cream); --b: var(--haldi); --c: var(--dark-2); --c2: #a9c08f; }
.ev-main .ev-body { border-radius: 14px; padding: 22px 26px 24px; }
.ev-main .ev-meta, .ev-main .ev-wear::before { color: #e9c27a; }
.ev-main .ev-name [lang="hi"], .ev-main .ev-steps time { color: #efd6ca; }
.ev-main .ev-node { background: var(--dark); border-color: var(--dark); }
.bar-links a.bar-rsvp { background: var(--dark); color: var(--cream); border-color: var(--dark); }
.bar-links a.bar-rsvp:hover { background: var(--ink-deep); }
.btn-solid, .btn-wide, button[type="submit"] { background: var(--dark); border-color: var(--dark); }

/* dark hero: the paper card sits on a deep kumkum field */
.hero { background: radial-gradient(48% 56% at 50% 46%, #6e2219 0%, rgba(110, 34, 25, 0) 72%), var(--dark); }
.hero .arch { --wash: #fdf7f2; }
.hero-tex::before { background-image: url("assets/rosette-haldi.svg"); opacity: .16; }
.hero-tex::after { opacity: .22; }
.hero .scroll { color: #efd6ca; }
.hero .petals i { background: var(--haldi); }

/* legible bar and arch rules over the dark cover */
.bar:not(.scrolled) { background: transparent; box-shadow: none; }
.bar:not(.scrolled) .bar-links a, .bar:not(.scrolled) .mark { color: var(--cream); }
.bar:not(.scrolled) .bar-links a.bar-rsvp { background: transparent; border-color: rgba(251, 240, 230, .7); }
.bar:not(.scrolled) .bar-links a.bar-rsvp:hover { background: var(--cream); color: var(--dark); }
.hero .arch-crown { --ink: var(--haldi); }
.hero .arch::before { border-color: var(--haldi); }
.hero .arch-base { border-color: var(--haldi); }

/* names outside the arch: Ishwar | arch | Pomila on the dark cover */
.hero-out { justify-items: center; text-align: center; }
.names-out { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(24px, 4.5vw, 72px); width: 100%; max-width: 1240px;
  font-family: var(--display); font-weight: 400; font-size: clamp(3.4rem, 1.4rem + 4.8vw, 6.6rem); line-height: 1; letter-spacing: -.01em;
  font-variation-settings: "opsz" 60; color: var(--cream); }
.names-out .nm-l { justify-self: end; }
.names-out .nm-r { justify-self: start; }
.arch-scene { --aw: max(260px, min(400px, 30vw, calc((100svh - 300px) * .62))); display: block; }
.arch-scene .arch-in { display: block; padding: 0 8% 0; }
.arch-scene .hero-label { display: block; font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.arch-scene .scene-wrap { display: block; margin-top: 4px; }
.arch-scene .arch-base { display: block; }
.hero-out .hero-amp { margin-top: clamp(22px, 3vw, 34px); color: var(--haldi); }
.hero-out .hero-line { color: #efd6ca; }
.hero-out .hero-line a { color: var(--cream); text-decoration-color: var(--haldi); }
.hero-out .hero-line .dot { background: var(--haldi); }
@media (max-width: 820px) {
  .names-out { grid-template-columns: 1fr; gap: 4px; font-size: clamp(3rem, 15vw, 4.2rem); }
  .names-out .arch-scene { order: -1; --aw: min(300px, calc(100vw - 2 * var(--pad) - 40px)); margin: 0 auto 22px; }
  .names-out .nm-l, .names-out .nm-r { justify-self: center; }
  .names-out .nm-l::after { content: "&"; display: block; margin: 2px 0; font-size: .42em; font-style: normal; color: var(--haldi); }
}
.arch-scene .arch-in { min-height: calc(var(--aw) * .78); display: flex; flex-direction: column; justify-content: space-between; padding-top: 4px; }
.arch-scene .scene-wrap { margin-top: auto; }

/* ---------- deeper kumkum, with a gradient ---------- */
:root { --dark: #3d0f0c; --dark-2: #5a1913; }
.hero { background: radial-gradient(60% 65% at 50% 45%, #6b1d16 0%, #4a120e 45%, #2a0907 100%); }
.count, .foot, .ev-main .ev-body { background: linear-gradient(160deg, #5a1913 0%, #3d0f0c 55%, #2a0907 100%); }
.ev-main .ev-node, .bar-links a.bar-rsvp, .btn-solid, .btn-wide, button[type="submit"] { background: #4a120e; border-color: #4a120e; }
.bar:not(.scrolled) .bar-links a.bar-rsvp { background: transparent; }

/* ---------- one page at a time: each section snaps into place ---------- */
html { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
.hero, .sec, .count, .foot { scroll-snap-align: start; scroll-snap-stop: always; min-height: 100svh; }
.sec, .count, .foot { display: grid; align-content: center; }
.sec { padding-block: clamp(96px, 10vw, 136px) clamp(72px, 8vw, 112px); }
@media (prefers-reduced-motion: reduce) { html { scroll-snap-type: y proximity; } }

/* fill the window: toran swag + hanging strings, a larger scene, a shorter arch */
.arch-scene .arch-in { min-height: calc(var(--aw) * .5); padding: 0 4%; }
.arch-scene .arch-fill { display: block; width: 100%; height: auto; margin-top: 6px; }
.arch-scene .scene-wrap { margin: -18% -6% 0; position: relative; }
.arch-scene .scene-wrap::before { content: ""; position: absolute; left: 50%; top: 42%; width: 62%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 176, 74, .22) 0%, rgba(232, 176, 74, 0) 70%); }
.arch-scene .scene { position: relative; }

.story { font-family: var(--display); font-style: normal; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); line-height: 1.55; font-variation-settings: "opsz" 28; color: var(--ink); max-width: 34ch; }
.story-hi { display: block; margin-top: 14px; font-family: var(--hi); font-style: normal; font-size: 1.05rem; color: var(--haldi); }

/* Hindi names set in the Devanagari face */
.ev-name[lang="hi"] { font-family: var(--hi); font-weight: 500; font-size: clamp(1.6rem, 1.4rem + .7vw, 1.95rem); line-height: 1.35; }
.story[lang="hi"] { font-family: var(--hi); font-style: normal; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.9; max-width: none; }

/* event icons come alive: they pop in, then breathe and sway */
@media (prefers-reduced-motion: no-preference) {
  .js .ev .ev-node { transform: scale(.6) rotate(-20deg); opacity: 0; transition: transform .7s cubic-bezier(.34, 1.4, .64, 1), opacity .5s ease; }
  .js .ev.in .ev-node { transform: none; opacity: 1; }
  .ev-icon { animation: ev-bob 3.4s ease-in-out infinite alternate; transform-origin: 50% 80%; }
  .ev:nth-child(2) .ev-icon { animation-delay: -.7s; }
  .ev:nth-child(3) .ev-icon { animation-delay: -1.4s; }
  .ev:nth-child(4) .ev-icon { animation-delay: -2.1s; }
  .ev:nth-child(5) .ev-icon { animation-delay: -2.8s; }
  @keyframes ev-bob { from { transform: translateY(2px) rotate(-6deg); } to { transform: translateY(-3px) rotate(6deg); } }
  .ev:hover .ev-icon { animation-duration: 1s; }
}

/* sturdier Devanagari: Noto Serif Devanagari's 400 has hairline strokes at small sizes */
[lang="hi"] { font-weight: 500; }
.ev-name[lang="hi"] { font-weight: 600; }
.story[lang="hi"] { font-weight: 500; }
.hero-label[lang="hi"], .mantra { font-weight: 600; }

/* event icons: a clearer, continuous motion and a soft pulsing halo */
.ev-node { position: relative; overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  .ev-icon { animation: ev-bob 2.6s ease-in-out infinite alternate !important; }
  @keyframes ev-bob { 0% { transform: translateY(3px) rotate(-10deg) scale(.96); } 100% { transform: translateY(-4px) rotate(10deg) scale(1.06); } }
  .ev-node::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--haldi); opacity: 0; animation: ev-halo 2.8s ease-out infinite; pointer-events: none; }
  .ev:nth-child(2) .ev-node::after { animation-delay: .5s; }
  .ev:nth-child(3) .ev-node::after { animation-delay: 1s; }
  .ev:nth-child(4) .ev-node::after { animation-delay: 1.5s; }
  .ev:nth-child(5) .ev-node::after { animation-delay: 2s; }
  @keyframes ev-halo { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45); } }
}

/* with Reduce motion on: no travel, but the icons still glow softly so the page feels alive */
@media (prefers-reduced-motion: reduce) {
  .ev-icon { animation: ev-glow 2.4s ease-in-out infinite alternate; }
  @keyframes ev-glow { from { opacity: .55; } to { opacity: 1; } }
  .ev-node::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--haldi); animation: ev-glow 2.4s ease-in-out infinite alternate; pointer-events: none; }
}

/* ---------- dress code: horizontal looks ---------- */
.looks-sec { background: var(--wash); }
.looks-wrap { position: relative; max-width: 1240px; margin: 0 auto; }
.looks { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  padding: 8px var(--pad) 18px; scrollbar-width: none; overscroll-behavior-x: contain; }
.looks::-webkit-scrollbar { display: none; }
.look { flex: 0 0 min(320px, 80vw); scroll-snap-align: center; background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; padding: 18px 20px 22px; }
.look-frame { border-radius: 140px 140px 12px 12px; background: var(--wash-2); padding: 18px 10px 4px; }
.look-art { display: block; width: 100%; height: auto; }
.look-when { margin-top: 16px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--peacock); }
.look-events { margin-top: 4px; font-family: var(--display); font-size: 1.6rem; line-height: 1.15; color: var(--ink); font-variation-settings: "opsz" 28; }
.look-title { margin-top: 2px; font-style: normal; color: var(--haldi); }
.look-sw { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.look-sw li { display: flex; align-items: center; gap: 6px; }
.lk-sw { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.look-who { margin-top: 14px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.5; }
.look-who dt { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--leaf); }
.look-who dd { margin: 2px 0 0; color: var(--ink-2); }
.look-note { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-2); }
.looks-btn { position: absolute; top: 40%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: var(--paper);
  color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px -10px rgba(61, 15, 12, .5); }
.looks-prev { left: 8px; } .looks-next { right: 8px; }
.looks-btn:hover { background: var(--ink); color: var(--paper); }
@media (min-width: 1360px) { .looks { justify-content: center; } .looks-btn { display: none; } }
@media (max-width: 560px) { .looks-btn { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .lk-her, .lk-him { transform-box: fill-box; transform-origin: 50% 100%; animation: lk-sway 6s ease-in-out infinite alternate; }
  .lk-him { animation-delay: -3s; }
  @keyframes lk-sway { from { transform: rotate(-.8deg); } to { transform: rotate(.8deg); } }
}
.facts { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 680px) { .facts { grid-template-columns: 1fr; } }
.sec { grid-template-columns: minmax(0, 1fr); }
.looks-wrap { min-width: 0; width: 100%; }
.look-title { color: #8a5d17; }
.skip:focus, .skip:focus-visible { left: 8px; }
.looks { justify-content: flex-start; }
.looks > .look:first-child { margin-left: auto; }
.looks > .look:last-child { margin-right: auto; }

/* =====================================================================
   DESIGN SYSTEM — the rules every component follows (see DESIGN.md)
   ===================================================================== */
:root {
  --r-card: 16px;            /* every card */
  --r-pill: 999px;           /* buttons, chips */
  --shadow-card: 0 18px 40px -32px rgba(61, 15, 12, .35);
  --t-meta: 12.5px;          /* micro labels, dates */
  --haldi-text: #8a5d17;     /* haldi accent when used as text on light grounds (AA) */
}
/* 1. Type: one roman serif for display, one sans for reading, no italics anywhere */
* { font-style: normal; }
.title, .card-title, .ev-name, .person-name, .names-out, .cd-n { font-family: var(--display); font-weight: 400; }
.card-title, .ev-name:not([lang="hi"]) { font-size: clamp(1.5rem, 1.3rem + .6vw, 1.85rem); line-height: 1.2; letter-spacing: -.01em; font-variation-settings: "opsz" 24; font-weight: 500; color: var(--ink); }
.hero-amp { font-family: var(--display); font-size: var(--step-lead); letter-spacing: .02em; font-variation-settings: "opsz" 28; }
.nm-amp, .couple-amp, .names-out .nm-l::after { font-family: var(--display); font-variation-settings: "opsz" 28; }
/* 2. Micro labels (section labels, dates, field labels): one style, peacock */
.label, .meta, .ev-meta, .field > span, .chips legend, .facts dt, .look-who dt { font-family: var(--body); font-size: var(--t-meta); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--peacock); }
.ev-meta[lang="hi"] { letter-spacing: .04em; text-transform: none; font-size: 14px; }
.ev-main .ev-meta, .count .label, .foot .label { color: #e9c27a; }
/* 3. Accent sub-lines: sans, medium, haldi text colour */
.look-sub { margin-top: 4px; font-family: var(--body); font-weight: 500; font-size: 15px; letter-spacing: .02em; color: var(--haldi-text); }
/* 4. Cards: paper, hairline rule, one radius, one soft shadow */
.look { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 14px 14px 22px; }
.look-frame { border-radius: 0; background: var(--wash-2); padding: 22px 12px 2px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300' preserveAspectRatio='none'%3E%3Cpath d='M0 300V130C0 86 40 62 86 44C118 31 140 18 150 0C160 18 182 31 214 44C260 62 300 86 300 130V300Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300' preserveAspectRatio='none'%3E%3Cpath d='M0 300V130C0 86 40 62 86 44C118 31 140 18 150 0C160 18 182 31 214 44C260 62 300 86 300 130V300Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; padding-top: 44px; }
.look-body { padding: 16px 8px 0; }
.look .card-title { margin-top: 6px; }
.look-sw { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; font-size: 13.5px; color: var(--ink-2); }
.look-sw li { display: flex; align-items: center; gap: 7px; }
.look-sw .sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.look-who { margin-top: 16px; display: grid; gap: 10px; }
.look-who dd { margin: 3px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.look-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 14.5px; color: var(--ink-2); }
.looks-btn { border-radius: var(--r-pill); font-family: var(--display); }
/* 5. Figure motion: petals fall gently at haldi; nothing else moves */
@media (prefers-reduced-motion: no-preference) {
  .lk-petal { animation: lk-petal 3.6s ease-in infinite; animation-delay: calc(var(--i) * -.6s); }
  @keyframes lk-petal { 0% { transform: translateY(-4px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
}
@media (min-width: 1360px) { .look { flex-basis: 282px; } }

/* ---------- RSVP form: one consistent control language ---------- */
.rsvp-steps { display: grid; gap: 26px; }
.seg { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg legend { grid-column: 1 / -1; margin-bottom: 12px; padding: 0; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 16px; border: 1px solid var(--rule); border-radius: var(--r-pill);
  font-size: 15.5px; color: var(--ink); background: var(--paper); transition: background-color .2s, color .2s, border-color .2s; text-align: center; }
.seg input:checked + span { background: var(--dark); border-color: var(--dark); color: var(--cream); }
.seg input:focus-visible + span, .chips input:focus-visible + span { outline: 2px solid var(--haldi); outline-offset: 3px; }
.chips span { gap: 8px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: var(--r-pill); }
.chips span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--rule); flex: none; margin: 0 !important;
  background: none !important; transition: background-color .2s, border-color .2s; }
.chips input:checked + span { background: var(--wash-2); border-color: var(--ink); color: var(--ink); }
.chips input:checked + span::before { border-color: var(--ink); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fcfbf9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat !important; }
.if-yes { display: grid; gap: 26px; }
.if-yes[hidden] { display: none; }
.stepper { display: inline-grid; grid-template-columns: 44px 56px 44px; align-items: center; justify-items: center; margin-top: 6px;
  border: 1px solid var(--rule); border-radius: var(--r-pill); width: max-content; }
.step-btn { width: 44px; height: 44px; border: 0; background: none; color: var(--ink); font-size: 22px; cursor: pointer; border-radius: 50%; }
.step-btn:hover { background: var(--wash-2); }
.stepper output { font-family: var(--display); font-size: 22px; font-variation-settings: "opsz" 24; }
.field textarea { width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid var(--rule); background: transparent; font: inherit; color: var(--ink); resize: vertical; outline: 0; }
.field textarea:focus { border-bottom-color: var(--ink); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rsvp-done { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 28px 0 8px; outline: 0; }
.rsvp-done[hidden] { display: none; }
.done-text { color: var(--ink-2); max-width: 36ch; }
.rsvp-done .btn[hidden] { display: none; }
@media (max-width: 560px) { .seg { grid-template-columns: 1fr; } }

/* =====================================================================
   SHAPE RULE (one language): letterpress cards, square-ish corners.
   Radius 4px for every card, button, chip and control. Circles only for
   medallions (event icons, swatches, dots). Curves live only in the arches.
   ===================================================================== */
:root { --r-card: 4px; --r-pill: 4px; --r-ctl: 4px; }
.card, .look, .ev-main .ev-body {
  border-radius: var(--r-card); border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: 5px; box-shadow: none;
}
.look { margin: 6px; }
.ev-main .ev-body { border-color: rgba(233, 194, 122, .45); outline-color: rgba(233, 194, 122, .3); }
.btn, .bar-rsvp, .chips span, .seg span, .stepper, .looks-btn { border-radius: var(--r-ctl); }
.step-btn { border-radius: 2px; }
.looks-btn { box-shadow: none; }

/* the turning mandalas fit inside their fields (no cropping at the top) */
.hero-tex::before { top: 50%; width: min(94svh, 94vw, 1100px); }
.hero-tex::after { top: 50%; width: min(66svh, 66vw, 780px); }
.foot-tex::before { top: 50%; width: min(90svh, 90vw, 900px); }
@media (max-width: 820px) {
  .hero-tex::before { top: 50%; width: min(150vw, 94svh); }
  .hero-tex::after { top: 50%; width: min(105vw, 66svh); }
}

/* dress code: a 2 x 2 grid across the full width on tablet/desktop; swipe on phones */
@media (min-width: 761px) {
  .looks-wrap { max-width: 1240px; padding-inline: var(--pad); }
  .looks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; overflow: visible; padding: 8px 6px 6px; scroll-snap-type: none; }
  .look, .looks > .look:first-child, .looks > .look:last-child { margin: 0; flex: none; display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 22px; align-items: stretch; padding: 16px; }
  .look-frame { height: 100%; display: flex; align-items: flex-end; padding: 40px 8px 4px; }
  .look-art { width: 100%; }
  .look-body { padding: 4px 6px 4px 0; display: flex; flex-direction: column; }
  .look-note { margin-top: auto; }
  .looks-btn { display: none; }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .look { grid-template-columns: 1fr; }
  .look-frame { height: auto; }
}

/* aligned card anatomy: every look shares the same rows (subgrid), so dividers line up across cards */
@media (min-width: 761px) {
  .looks { row-gap: 0; align-items: stretch; }
  .look, .looks > .look:first-child, .looks > .look:last-child {
    display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; margin-bottom: 30px; align-items: start;
  }
  .look-body { display: contents; }
  .look-frame { grid-column: 1; grid-row: 1 / -1; align-self: stretch; }
  .look .meta, .look .card-title, .look-sub, .look-sw, .look-who, .look-note { grid-column: 2; margin-right: 6px; }
  .look .meta { grid-row: 1; margin-top: 4px; }
  .look .card-title { grid-row: 2; margin-top: 6px; }
  .look-sub { grid-row: 3; }
  .look-sw { grid-row: 4; align-self: start; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
  .look-who { grid-row: 5; align-self: start; padding-bottom: 14px; }
  .look-note { grid-row: 6; align-self: end; margin-top: 0; }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .look, .looks > .look:first-child, .looks > .look:last-child { grid-row: span 7; grid-template-columns: 1fr; }
  .look-frame { grid-row: 1; }
  .look .meta { grid-row: 2; margin-top: 14px; } .look .card-title { grid-row: 3; } .look-sub { grid-row: 4; }
  .look-sw { grid-row: 5; } .look-who { grid-row: 6; } .look-note { grid-row: 7; }
  .look .meta, .look .card-title, .look-sub, .look-sw, .look-who, .look-note { grid-column: 1; margin-inline: 6px; }
}

/* uniform mandala (exact rotational symmetry) everywhere it turns */
.hero-tex::before { background-image: url("assets/mandala-haldi.svg"); opacity: .2; }
.hero-tex::after { background-image: url("assets/mandala-haldi.svg"); opacity: .16; }
.foot-tex::before { background-image: url("assets/mandala-haldi.svg"); opacity: .2; top: 52%; }
@media (min-width: 1081px) {
  .look, .looks > .look:first-child, .looks > .look:last-child { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); }
  .look-frame { padding: 34px 4px 2px; align-items: flex-end; }
  .look-art { transform: scale(1.08); transform-origin: 50% 100%; }
}

/* footer: centre the mandala in the visible area (the fixed bar covers the top 72px) */
:root { --barh: 72px; }
.foot { padding-block: calc(var(--barh) + 44px) 44px; }
.foot-tex::before { top: calc(50% + var(--barh) / 2); width: min(calc(100svh - var(--barh) - 64px), 90vw, 900px); }

/* ---------- one artifact per section, faint and slow, never the same motion twice ---------- */
.sec { overflow: clip; }
.sec > .narrow, .sec > .looks-wrap { position: relative; z-index: 1; }
.invite::before, .invite::after, .ceremonies::before, .looks-sec::before, .venue::before, .rsvp::before {
  content: ""; position: absolute; pointer-events: none; z-index: 0; background: center / contain no-repeat;
}
/* invitation: marigold strings hang at both edges and sway */
.invite::before, .invite::after { top: 0; width: 34px; height: min(62svh, 440px); background-image: url("assets/deco-string.svg"); opacity: .55; transform-origin: 50% 0; }
.invite::before { left: clamp(16px, 6vw, 96px); }
.invite::after { right: clamp(16px, 6vw, 96px); height: min(48svh, 340px); }
/* ceremonies: a mehendi paisley on the right breathes */
.ceremonies::before { right: -40px; top: 18%; width: min(30vw, 340px); aspect-ratio: 260 / 330; background-image: url("assets/deco-paisley.svg"); opacity: .1; }
/* dress code: a rangoli in the lower-left corner turns slowly */
.looks-sec::before { left: -90px; bottom: -90px; width: min(36vw, 420px); aspect-ratio: 1; background-image: url("assets/deco-rangoli.svg"); opacity: .1; }
/* venue: a dotted journey path draws itself towards the pin */
.venue::before { right: clamp(8px, 4vw, 64px); bottom: 8%; width: min(28vw, 320px); aspect-ratio: 310 / 240; background-image: url("assets/deco-journey.svg"); opacity: .35; }
/* rsvp: a lotus opens behind the heading */
.rsvp::before { left: 50%; top: clamp(70px, 9vh, 120px); width: min(60vw, 520px); aspect-ratio: 240 / 160; translate: -50% 0; background-image: url("assets/deco-lotus.svg"); opacity: .08; }
@media (max-width: 760px) {
  .invite::before, .invite::after { width: 22px; opacity: .4; }
  .ceremonies::before, .venue::before { display: none; }
  .looks-sec::before { width: 260px; left: -80px; bottom: -80px; }
}
@media (prefers-reduced-motion: no-preference) {
  .invite::before { animation: dz-sway 7s ease-in-out infinite alternate; }
  .invite::after { animation: dz-sway 8.5s ease-in-out -3s infinite alternate; }
  @keyframes dz-sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
  .ceremonies::before { animation: dz-breathe 12s ease-in-out infinite alternate; }
  @keyframes dz-breathe { from { transform: scale(.96) rotate(-3deg); opacity: .07; } to { transform: scale(1.03) rotate(3deg); opacity: .12; } }
  .looks-sec::before { animation: turn 160s linear infinite; }
  .venue::before { animation: dz-travel 9s ease-in-out infinite; }
  @keyframes dz-travel { 0% { opacity: .1; transform: translate(-10px, 8px); } 50% { opacity: .4; transform: none; } 100% { opacity: .1; transform: translate(-10px, 8px); } }
  .rsvp::before { animation: dz-bloom 10s ease-in-out infinite alternate; }
  @keyframes dz-bloom { from { transform: scale(.94); opacity: .05; } to { transform: scale(1.04); opacity: .1; } }
}

/* equal-height looks: every card the same height; fixed blocks keep the dividers aligned */
@media (min-width: 761px) {
  .looks { grid-auto-rows: 1fr; row-gap: 30px; }
  .look, .looks > .look:first-child, .looks > .look:last-child { grid-row: auto; grid-template-rows: none; margin-bottom: 0; align-items: stretch; }
  .look-body { display: flex; flex-direction: column; }
  .look-frame { grid-row: auto; }
  .look .meta, .look .card-title, .look-sub, .look-sw, .look-who, .look-note { grid-column: auto; grid-row: auto; }
  .look .card-title { min-height: 2.45em; display: flex; align-items: flex-end; }
  .look-sw { min-height: 64px; align-content: flex-start; }
  .look-who { min-height: 150px; }
  .look-note { margin-top: auto; }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .look .meta, .look .card-title, .look-sub, .look-sw, .look-who, .look-note { grid-column: auto; grid-row: auto; }
  .look-who { min-height: 170px; }
}

/* =====================================================================
   FIT-TO-SCREEN: every section fits one viewport on desktop (≥ 900px tall)
   ===================================================================== */
@media (min-width: 900px) {
  .sec { padding-block: calc(var(--barh) + 28px) 36px; }
  .sec-head { margin-bottom: clamp(24px, 3.5vh, 40px); }
  .sec-head .flourish, .sec-head svg:first-child { width: 96px; margin-bottom: 10px; }
  .title { font-size: clamp(2.1rem, 1.5rem + 1.8vw, 3rem); }
  .sec-sub { margin-top: 10px; }

  /* ceremonies: Saturday | Sunday in two columns */
  .ceremonies .narrow { max-width: 1120px; }
  .events { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 56px; row-gap: 6px; }
  .events::before { display: none; }
  .events + .center { margin-top: 22px; }

  /* dress code: compact cards */
  .looks { gap: 22px; row-gap: 22px; }
  .look, .looks > .look:first-child, .looks > .look:last-child { padding: 12px; gap: 18px; grid-template-columns: minmax(0, 36%) minmax(0, 1fr); }
  .look-frame { padding: 26px 4px 0; }
  .look-art { transform: none; }
  .look .card-title { font-size: 1.4rem; min-height: 0; }
  .look-sub { font-size: 14px; }
  .look-sw { min-height: 0; margin-top: 10px; padding-bottom: 10px; font-size: 12.5px; gap: 4px 12px; }
  .look-who { min-height: 0; margin-top: 10px; gap: 6px; }
  .look-who dd { font-size: 14px; line-height: 1.4; }

  /* rsvp: two columns inside the card */
  .rsvp .narrow { max-width: 980px; }
  .rsvp-steps { grid-template-columns: 1fr 1fr; column-gap: 44px; row-gap: 18px; }
  .rs-col { display: grid; gap: 20px; align-content: start; }
  .rsvp-steps > .btn, .rsvp-steps > .summary, .rsvp-steps > .err { grid-column: 1 / -1; }
  .rsvp-steps .if-yes { gap: 20px; }
  .form { padding-bottom: 26px; }
  .field textarea { min-height: 0; }
}
@media (min-width: 900px) and (max-height: 820px) {
  .title { font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.5rem); }
  .sec-sub { display: none; }
}
/* phones: long sections may scroll; snapping becomes gentle so nothing is trapped */
@media (max-width: 899px) { html { scroll-snap-type: y proximity; } .hero, .sec, .count, .foot { scroll-snap-stop: normal; } }

/* =====================================================================
   MOTION, physically based and visible
   - hanging things: a damped pendulum (a gust, decaying swings, rest), pivoting at the top
   - falling petals: gravity with a side-to-side flutter
   ===================================================================== */
@keyframes swing {
  0%   { rotate: 0deg; }
  7%   { rotate: 6deg; }
  16%  { rotate: -4.4deg; }
  25%  { rotate: 3.1deg; }
  34%  { rotate: -2.1deg; }
  43%  { rotate: 1.3deg; }
  52%  { rotate: -.7deg; }
  60%  { rotate: .3deg; }
  66%, 100% { rotate: 0deg; }
}
@keyframes fall {
  0%   { transform: translate(0, -10vh) rotate(0deg); opacity: 0; }
  8%   { opacity: .9; }
  25%  { transform: translate(28px, 18vh) rotate(90deg); }
  50%  { transform: translate(-18px, 45vh) rotate(200deg); }
  75%  { transform: translate(22px, 75vh) rotate(290deg); }
  92%  { opacity: .7; }
  100% { transform: translate(-6px, 108vh) rotate(380deg); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  /* hero: marigold strings inside the arch, wind arrives from the left */
  .arch-fill .h-str { transform-box: fill-box; transform-origin: 50% 0; transform: none !important;
    animation: swing 9s ease-in-out infinite !important; }
  .arch-fill .h-str:nth-of-type(1) { animation-delay: .0s !important; }
  .arch-fill .h-str:nth-of-type(2) { animation-delay: .18s !important; }
  .arch-fill .h-str:nth-of-type(3) { animation-delay: .36s !important; }
  .arch-fill .h-str:nth-of-type(4) { animation-delay: .54s !important; }
  /* invitation: the long strings at the edges swing on the same gust */
  .invite::before, .invite::after { animation: swing 10s ease-in-out infinite !important; }
  .invite::after { animation-delay: .5s !important; }
  /* petals: real fall with flutter */
  .petals i { animation: fall var(--w) cubic-bezier(.45, .05, .55, .95) var(--t) infinite !important; opacity: 0; }
  /* section motifs: clearly visible, still slow */
  .ceremonies::before { opacity: .18; animation: dz-breathe2 9s ease-in-out infinite alternate !important; }
  @keyframes dz-breathe2 { from { transform: scale(.92) rotate(-6deg); } to { transform: scale(1.06) rotate(6deg); } }
  .looks-sec::before { opacity: .2; animation: turn 70s linear infinite !important; }
  .venue::before { animation: dz-travel 6s ease-in-out infinite !important; }
  .rsvp::before { opacity: .16; animation: dz-bloom2 7s ease-in-out infinite alternate !important; }
  @keyframes dz-bloom2 { from { transform: scale(.88); opacity: .08; } to { transform: scale(1.06); opacity: .2; } }
  .hero-tex::before { animation-duration: 120s !important; }
  .hero-tex::after { animation-duration: 90s !important; }
  .foot-tex::before { animation-duration: 100s !important; }
}

/* =====================================================================
   CEREMONIES: one geometry for every event; the highlight only adds colour
   ===================================================================== */
@media (min-width: 900px) {
  .events { grid-template-rows: repeat(6, minmax(0, 1fr)); grid-auto-flow: column; row-gap: 14px; align-items: stretch; }
  .events > .ev:nth-child(-n+3) { grid-row: span 2; }
  .events > .ev:nth-child(n+4) { grid-row: span 3; }
}
.ev { align-items: center; }
.ev + .ev .ev-body { border-top: 0; }
.ev .ev-body, .ev-main .ev-body {
  margin: 0; padding: 18px 24px; height: 100%; display: flex; flex-direction: column; justify-content: center;
  border: 1px solid var(--rule); outline: 1px solid transparent; outline-offset: 5px; border-radius: var(--r-card); background: var(--paper);
}
.ev-main .ev-body { background: linear-gradient(160deg, #5a1913 0%, #3d0f0c 55%, #2a0907 100%); border-color: rgba(233, 194, 122, .45); outline-color: rgba(233, 194, 122, .3); }

/* =====================================================================
   PAGE-BY-PAGE in both directions: on desktop every section is exactly one screen
   ===================================================================== */
@media (min-width: 900px) {
  .hero, .sec, .count, .foot { height: 100vh; height: 100svh; min-height: 0; box-sizing: border-box; overflow: clip; }
}

/* =====================================================================
   MOTION, the sweet spot: noticeable but calm
   ===================================================================== */
@keyframes swing {
  0% { rotate: 0deg; } 9% { rotate: 3.4deg; } 20% { rotate: -2.4deg; } 31% { rotate: 1.6deg; }
  42% { rotate: -1deg; } 53% { rotate: .55deg; } 62% { rotate: -.25deg; } 70%, 100% { rotate: 0deg; }
}
@keyframes fall {
  0% { transform: translate(0, -10vh) rotate(0deg); opacity: 0; }
  10% { opacity: .55; }
  33% { transform: translate(14px, 25vh) rotate(80deg); }
  66% { transform: translate(-10px, 62vh) rotate(170deg); }
  90% { opacity: .4; }
  100% { transform: translate(4px, 108vh) rotate(250deg); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .arch-fill .h-str, .invite::before, .invite::after { animation-duration: 12s !important; }
  .petals i:nth-child(n+6) { display: none; }
  .ceremonies::before { opacity: .12; animation: dz-breathe3 14s ease-in-out infinite alternate !important; }
  @keyframes dz-breathe3 { from { transform: scale(.97) rotate(-3deg); } to { transform: scale(1.03) rotate(3deg); } }
  .looks-sec::before { opacity: .14; animation: turn 110s linear infinite !important; }
  .venue::before { animation: dz-travel 9s ease-in-out infinite !important; }
  .rsvp::before { animation: dz-bloom3 10s ease-in-out infinite alternate !important; }
  @keyframes dz-bloom3 { from { transform: scale(.96); opacity: .07; } to { transform: scale(1.02); opacity: .12; } }
}
/* RSVP: the lotus moves out from behind the text, to the lower corners of the section */
.rsvp::before { left: auto; right: -60px; top: auto; bottom: -30px; translate: none; width: min(34vw, 420px); }
@media (max-width: 899px) { .rsvp::before { display: none; } }
@media (min-width: 900px) and (max-height: 820px) {
  .events { row-gap: 8px; }
  .ev .ev-body, .ev-main .ev-body { padding: 10px 18px; }
  .ev-node { width: 50px; height: 50px; }
  .ev-icon { width: 30px; height: 30px; }
  .ev-name, .ev-name[lang="hi"] { font-size: 1.35rem; }
  .ev-text { font-size: 15px; line-height: 1.5; }
}

/* venue: a brass deepstambh (lamp tower) welcomes guests; flames flicker */
.venue::before { display: none !important; }
.venue-deco { position: absolute; z-index: 0; right: clamp(16px, 6vw, 110px); bottom: 0; width: clamp(110px, 12vw, 170px); opacity: .5; pointer-events: none; }
.venue-deco svg { display: block; width: 100%; height: auto; }
.venue-deco::after { content: ""; position: absolute; inset: -10% -40% 30%; background: radial-gradient(closest-side, rgba(247, 210, 122, .35), rgba(247, 210, 122, 0)); z-index: -1; }
@media (max-width: 899px) { .venue-deco { display: none; } }
.venue-deco { width: clamp(140px, 14vw, 210px); opacity: .65; }

/* =====================================================================
   CEREMONIES v2: a day-by-day agenda. Same card height, icon inside, time-only meta
   ===================================================================== */
.agenda { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
.agenda-h { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--rule);
  font-family: var(--display); font-weight: 400; font-size: 1.25rem; line-height: 1.15; color: var(--ink); font-variation-settings: "opsz" 24; }
.agenda-h small { font-family: var(--body); font-size: var(--t-meta); letter-spacing: .18em; text-transform: uppercase; color: var(--peacock); }
.agenda-d { font-size: 2.6rem; line-height: 1; color: var(--haldi-text); }
.agenda .events { display: grid !important; grid-template-columns: 1fr !important; grid-template-rows: none !important; grid-auto-flow: row !important; gap: 12px !important; }
.agenda .events::before { display: none; }
.agenda .events > .ev { grid-row: auto !important; }
/* the card is the whole row: icon medallion + text, one fixed height */
.agenda .ev { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: center; min-height: 124px; padding: 16px 22px;
  background: var(--paper); border: 1px solid var(--rule); outline: 1px solid transparent; outline-offset: 5px; border-radius: var(--r-card); }
.agenda .ev .ev-body { all: unset; display: block; }
.agenda .ev-node { width: 56px; height: 56px; box-shadow: none; border: 1px solid var(--rule); background: var(--wash); }
.agenda .ev-icon { width: 32px; height: 32px; }
.agenda .ev-meta { font-size: var(--t-meta); margin: 0; }
.agenda .ev-meta[lang="hi"] { font-size: 14px; letter-spacing: .02em; }
.agenda .ev-name, .agenda .ev-name[lang="hi"] { margin: 2px 0 0; font-size: 1.5rem; line-height: 1.25; font-weight: 500; }
.agenda .ev-name[lang="hi"] { font-size: 1.4rem; font-weight: 500; }
.agenda .ev-text { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.agenda .ev-main { background: linear-gradient(160deg, #5a1913 0%, #3d0f0c 55%, #2a0907 100%); border-color: rgba(233, 194, 122, .45); outline-color: rgba(233, 194, 122, .3); }
.agenda .ev-main .ev-node { background: rgba(255, 255, 255, .06); border-color: rgba(233, 194, 122, .45); }
.agenda .ev-main .ev-name, .agenda .ev-main .ev-text { color: var(--cream); }
.agenda .ev-main .ev-meta { color: #e9c27a; }
@media (max-width: 899px) {
  .agenda { grid-template-columns: 1fr; gap: 28px; }
  .agenda .ev { grid-template-columns: 48px minmax(0, 1fr); padding: 14px 16px; min-height: 0; }
  .agenda .ev-node { width: 48px; height: 48px; }
}
@media (min-width: 900px) and (max-height: 820px) {
  .agenda .ev { min-height: 104px; padding: 12px 18px; }
  .agenda-h { padding-bottom: 8px; margin-bottom: 10px; }
}
@media (min-width: 900px) { .agenda .ev { min-height: 132px; } .agenda + .center { margin-top: 30px; } }
@media (min-width: 900px) and (max-height: 820px) { .agenda .ev { min-height: 116px; } .agenda .ev-text { font-size: 14px; } .agenda + .center { margin-top: 20px; } }

/* desktop: JS moves one page per gesture, so CSS snapping steps aside (they fought each other on the way up) */
@media (min-width: 900px) and (pointer: fine) { html { scroll-snap-type: none; scroll-behavior: auto; } }

/* every screen has motion: countdown waves drift; motifs also show (smaller) on phones */
@media (prefers-reduced-motion: no-preference) {
  .count-tex { animation: dz-waves 26s linear infinite; }
  @keyframes dz-waves { from { background-position: 0 12px, 0 calc(100% - 12px); } to { background-position: -1440px 12px, 1440px calc(100% - 12px); } }
  .cd-n { transition: opacity .3s; }
}
@media (max-width: 899px) {
  .ceremonies::before { display: block; width: 150px; right: -50px; top: 10px; opacity: .1; }
  .venue-deco { display: block; width: 90px; right: 6px; opacity: .4; }
  .rsvp::before { display: block; width: 200px; right: -50px; bottom: -20px; opacity: .1; }
}

/* =====================================================================
   REDUCED MOTION, not NO motion: calm, non-vestibular animation stays on
   (no swinging, falling or sliding; only slow turns, flicker and glow)
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-tex::before { animation: turn 200s linear infinite; }
  .hero-tex::after { animation: turn 160s linear infinite reverse; }
  .foot-tex::before { animation: turn 180s linear infinite; }
  .looks-sec::before { animation: turn 160s linear infinite; }
  .count-tex { animation: rm-glow 6s ease-in-out infinite alternate; }
  .ceremonies::before, .rsvp::before { animation: rm-glow 7s ease-in-out infinite alternate; }
  .ds-fl, .mw-flame, [class*="diya-f"] { transform-box: fill-box; transform-origin: 50% 100%; animation: rm-flicker 1.8s ease-in-out infinite alternate !important; }
  .ev-icon { animation: rm-icon 5s ease-in-out infinite alternate !important; }
  .ev:nth-child(2) .ev-icon { animation-delay: -1.2s !important; } .ev:nth-child(3) .ev-icon { animation-delay: -2.4s !important; }
  .arch-fill .h-str { animation: rm-glow 5s ease-in-out infinite alternate !important; }
  @keyframes rm-glow { from { opacity: .55; } to { opacity: 1; } }
  @keyframes rm-flicker { from { opacity: .7; transform: scale(.96, .98); } to { opacity: 1; transform: scale(1.02, 1.03); } }
  @keyframes rm-icon { from { opacity: .7; } to { opacity: 1; } }
}
@keyframes turn { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .agenda .ev .ev-icon, .events .ev .ev-icon { animation: rm-icon 5s ease-in-out infinite alternate !important; }
}

/* =====================================================================
   MOTION, visibility pass: each element tuned so it is clearly seen within a few seconds
   ===================================================================== */
@keyframes swing {
  0% { rotate: 0deg; } 8% { rotate: 5.5deg; } 18% { rotate: -4deg; } 28% { rotate: 2.8deg; }
  38% { rotate: -1.8deg; } 48% { rotate: 1deg; } 57% { rotate: -.45deg; } 64%, 100% { rotate: 0deg; }
}
@media (prefers-reduced-motion: no-preference) {
  .arch-fill .h-str, .invite::before, .invite::after { animation-duration: 8s !important; }
  .petals i:nth-child(n+6) { display: block; }
  .hero-tex::before { animation-duration: 70s !important; opacity: .26; }
  .hero-tex::after { animation-duration: 50s !important; opacity: .22; }
  .foot-tex::before { animation-duration: 60s !important; opacity: .26; }
  .count-tex { opacity: .24; animation-duration: 14s !important; }
  .ceremonies::before { opacity: .22; animation: dz-breathe4 8s ease-in-out infinite alternate !important; }
  @keyframes dz-breathe4 { from { transform: scale(.9) rotate(-8deg); } to { transform: scale(1.06) rotate(8deg); } }
  .looks-sec::before { opacity: .24; animation: turn 45s linear infinite !important; }
  .rsvp::before { animation: dz-bloom4 6s ease-in-out infinite alternate !important; }
  @keyframes dz-bloom4 { from { transform: scale(.86); opacity: .1; } to { transform: scale(1.06); opacity: .26; } }
  .venue-deco { opacity: .8; }
  .lk-her, .lk-him { animation: lk-sway2 4s ease-in-out infinite alternate !important; }
  .lk-him { animation-delay: -2s !important; }
  @keyframes lk-sway2 { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
  /* event icons: same accents, repeating sooner */
  .ia-hal-sheen { animation-duration: 4.5s !important; }
  .ia-ring-flash, .ia-ring-glint, .ia-ring-spark { animation-duration: 3.6s !important; }
  .ia-dho-beat, .ia-dho-r1, .ia-dho-l1, .ia-dho-r2, .ia-dho-l2, [class*="ia-dho-r"], [class*="ia-dho-l"] { animation-duration: 3s !important; }
  .ia-gar { animation-duration: 6s !important; }
  .ia-ban-top, .ia-ban-spark { animation-duration: 4s !important; }
}
@media (prefers-reduced-motion: no-preference) { .ia-dho-body { animation-duration: 3s !important; } }

/* =====================================================================
   MOBILE: touch, safe areas, legibility
   ===================================================================== */
html, body { overflow-x: clip; }
.bar-in { padding-top: max(12px, env(safe-area-inset-top)); padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }
.foot { padding-bottom: calc(44px + env(safe-area-inset-bottom)); }
.field input, .field select, .field textarea { font-size: 16px; }            /* no iOS zoom on focus */
.chips span, .seg span { min-height: 44px; }
button, a, label { touch-action: manipulation; }
/* hover colours only where a pointer can hover; touch gets press feedback instead */
@media (hover: none) {
  .btn-solid:hover { background: var(--dark); }
  .btn-line:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
  .chips label:hover span { border-color: var(--rule); }
  .step-btn:hover { background: none; }
  .looks-btn:hover { background: var(--paper); color: var(--ink); }
  .btn:active, .chips label:active span, .seg label:active span, .step-btn:active { transform: scale(.97); }
}
@media (max-width: 899px) {
  .bar-links { gap: 14px; font-size: 14px; }
  .bar-links a { min-height: 44px; }
  .invite::before, .invite::after { display: none; }                         /* edge strings overlapped the text */
  .lede { font-size: 16.5px; line-height: 1.75; }
  .sec { padding-block: calc(var(--barh) + 20px) 56px; }
  .sec-head { margin-bottom: 26px; }
  .count { min-height: 70svh; }
  .agenda-h { margin-bottom: 12px; }
  .agenda .ev { gap: 14px; }
  .agenda .ev-name, .agenda .ev-name[lang="hi"] { font-size: 1.3rem; }
  .look { flex-basis: min(320px, 84vw); }
  .looks-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
  .looks-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule); transition: background-color .2s, transform .2s; }
  .looks-dots i.on { background: var(--ink); transform: scale(1.25); }
  .facts { gap: 18px; padding-top: 22px; }
}
@media (min-width: 900px) { .looks-dots { display: none; } }

/* continuous scrolling everywhere (no snapping) */
html, html:root { scroll-snap-type: none !important; }
.hero, .sec, .count, .foot { scroll-snap-align: none; scroll-snap-stop: normal; }
/* calendar button: the same breathing room above it on every screen */
.agenda + .center { margin-top: 28px; }
@media (max-width: 899px) { .agenda + .center { margin-top: 24px; } }
/* microprint strip: centred, clipped evenly on both sides */
.micro { display: flex; justify-content: center; text-align: center; }

/* =====================================================================
   CONTINUOUS LAYOUT: sections take their natural height with one vertical rhythm
   (supersedes the one-screen sizing above)
   ===================================================================== */
:root { --sec-y: clamp(80px, 8vw, 128px); }
.hero { height: auto !important; min-height: 100svh !important; }
.sec, .count, .foot { height: auto !important; min-height: 0 !important; }
.sec { padding-block: var(--sec-y) !important; }
.count { padding-block: clamp(72px, 7vw, 104px) !important; }
.foot { min-height: min(100svh, 860px) !important; padding-block: calc(var(--barh) + 56px) calc(56px + env(safe-area-inset-bottom)) !important; }
.sec-head { margin-bottom: clamp(36px, 4vw, 56px) !important; }
.sec-head .flourish, .sec-head svg:first-child { width: 120px; margin-bottom: 16px; }
.title { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem) !important; }
.sec-sub { display: block !important; margin-top: 14px; }
@media (min-width: 900px) {
  .agenda { gap: 56px; }
  .agenda .ev { min-height: 140px !important; padding: 18px 24px !important; }
  .agenda .ev-text { font-size: 15.5px !important; }
  .agenda + .center { margin-top: 40px !important; }
  .looks { gap: 28px !important; row-gap: 28px !important; }
  .look, .looks > .look:first-child, .looks > .look:last-child { padding: 16px !important; gap: 24px !important; grid-template-columns: minmax(0, 42%) minmax(0, 1fr) !important; }
  .look-frame { padding: 40px 6px 0 !important; }
  .look .card-title { font-size: 1.65rem !important; }
  .look-sub { font-size: 15px !important; }
  .look-sw { margin-top: 14px !important; padding-bottom: 14px !important; font-size: 13.5px !important; gap: 6px 14px !important; }
  .look-who { margin-top: 14px !important; gap: 10px !important; }
  .look-who dd { font-size: 15px !important; line-height: 1.5 !important; }
  .rsvp-steps { row-gap: 24px !important; }
  .rs-col { gap: 24px !important; }
  .facts { margin-top: 56px; }
}
@media (max-width: 899px) {
  :root { --sec-y: 72px; }
  .foot { min-height: 80svh !important; }
}

/* "are getting married": legible over the mandala; a quiet connector, not a headline */
.hero-out .hero-amp, .hero-amp {
  color: #f3dfb0; font-family: var(--body); font-weight: 500; font-size: clamp(.82rem, .76rem + .25vw, .95rem);
  letter-spacing: .32em; text-transform: uppercase; font-variation-settings: normal;
  text-shadow: 0 0 18px rgba(42, 9, 7, .9), 0 0 4px rgba(42, 9, 7, .8);
}
.hero-out .hero-line { text-shadow: 0 0 14px rgba(42, 9, 7, .9); }

/* section rhythm: tighter spacing, and alternating grounds so each section reads as its own band */
:root { --sec-y: clamp(64px, 6vw, 96px); }
.invite { background: var(--paper) !important; }
.ceremonies { background: #f7ece7 !important; }
.looks-sec { background: var(--paper) !important; }
.venue { background: var(--leaf-wash) !important; }
.rsvp { background: #f7ece7 !important; }
@media (max-width: 899px) { :root { --sec-y: 56px; } }

/* footer: room for the whole mandala, and a solid arch interior so its text never sits on mandala lines */
.foot { --wash: #2c0a08; display: grid !important; place-items: center; min-height: min(100svh, 900px) !important;
  padding-block: calc(var(--barh) + 64px) calc(72px + env(safe-area-inset-bottom)) !important; }
.foot-tex::before { top: 50% !important; width: min(82svh, 88vw, 820px) !important; opacity: .18 !important; }
.foot .arch::after { background: #2c0a08; }
.foot .narrow { text-shadow: 0 0 16px rgba(30, 6, 5, .9); }
.foot .foot-hosts, .foot p { color: #f6e9dc; }
.foot .foot-small { color: #e9d3c3; letter-spacing: .14em; }
@media (max-width: 899px) { .foot { min-height: 88svh !important; } .foot-tex::before { width: min(120vw, 80svh) !important; } }

/* download the printable invitation card (card.html → assets/Ishwar-Pomila-Wedding-Invitation.pdf) */
.bar-links a.bar-pdf { gap: 6px; }
.bar-pdf svg { width: 15px; height: 15px; flex: none; }
.bar-pdf .pdf-short { display: none; }
@media (max-width: 760px) { .bar-pdf .pdf-long { display: none; } .bar-pdf .pdf-short { display: inline; } }
@media (max-width: 560px) { .bar-links li:nth-child(3) { display: none !important; } .bar-links { gap: 14px !important; } }
