/* BadhAI, the site. Direction: the split stage (design-taste-frontend, sheet in .taste-skill/direction.json).
   The idea: the host that stays beside each guest for three days becomes the half of the screen that never moves.
   The guest's own sheet rises over the wedding's painted world there, and changes as the weekend scrolls past.
   One ground, one ink, one accent (rani); one radius; round buttons; five type sizes; nothing fades across anything.
   Three rules from Ranabir's first reading (29 Nov 2026): nothing on the page is cut off (every piece of the app is a
   whole card or a whole phone), the type grows with the screen (no small sub lines on a large display), and a section
   that is one thought fits one screen. */
:root {
  --ground: #f7f0e3; --paper: #fffcf5; --tone: #efe5d3; --ink: #2b1420; --muted: #6b5560; --accent: #c2185b; --on: #fffcf5;
  --teal: #0f5a63; --mari: #f29a1f; --mari-ink: #3d2603;
  --r: 20px; --m: 12px; --pad: clamp(24px, 4.4vw, 76px); --bar: 56px;
  --xl: clamp(56px, min(9vw, 14svh), 150px); --h: clamp(44px, 4.8vw, 96px); --md: clamp(28px, 2.9vw, 54px); --t: clamp(19px, 1.45vw, 27px); --s: clamp(16px, 1.1vw, 20px);
  --measure: calc(25 * var(--t));
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif; --font-text: var(--font-display);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* { box-sizing: border-box; }
html { background: var(--ground); color-scheme: light; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 600 var(--t)/1.5 var(--font-text); font-variant-numeric: lining-nums; }
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: var(--h); } h2, h3 { font-size: var(--md); }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { color: var(--accent); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mari); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: var(--m); top: -80px; z-index: 20; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.skip:focus { top: var(--m); }

/* the one button */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 32px 12px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on); font-weight: 700; cursor: pointer; transition: transform 0.2s var(--ease); }
.btn:hover { transform: translateY(-2px); } .btn:active { transform: scale(0.97); }

/* a whole phone: the app's own first screen inside its frame. The frame is the device, so its corner is the device's. */
.phone { display: block; box-sizing: content-box; aspect-ratio: 390 / 844; border: 8px solid var(--ink); border-radius: 11.4% / 5.4%; overflow: hidden; background: var(--ink); } /* taste-skill-ignore: a phone's own corner, in proportion to the phone */
.phone > img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- the split stage ---------- */
.split { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--m); padding: var(--m); }
.col { min-width: 0; border-radius: var(--r); background: var(--paper); }
.stage { position: sticky; top: var(--m); align-self: start; height: calc(100svh - 2 * var(--m)); border-radius: var(--r); overflow: hidden; background: var(--teal); }
.worlds, .world { position: absolute; inset: 0; width: 100%; height: 100%; }
.world { object-fit: cover; clip-path: circle(0% at 50% 50%); }
.world.is-on { clip-path: circle(75% at 50% 50%); }
.world.is-in { z-index: 2; transition: clip-path 0.9s cubic-bezier(0.65, 0, 0.35, 1); }
/* the guest's own sheet, rising over the painting as it does in the app. Every sheet is whole: it is fitted inside this
   box by its width or by its height, whichever is the tighter, and is never cut by the bar or the edge. */
.frag { position: absolute; left: 50%; bottom: calc(var(--bar) + 26px); width: min(clamp(300px, 27vw, 470px), 74%); height: calc(100% - var(--bar) - 26px - 5%); transform: translateX(-50%); overflow: hidden; z-index: 3; }
.frag img { position: absolute; left: 50%; bottom: 0; width: auto; height: auto; max-width: 100%; max-height: 100%; transform: translate(-50%, 112%); transition: transform 0.7s var(--ease); }
.frag img.is-on { transform: translate(-50%, 0); }
.bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--bar); padding: 0 24px 3px; background: var(--paper); font-size: var(--s); }
/* a garland of marigolds hangs down the whole seam between the two halves, and runs slowly as the page is read.
   It is a run longer than the seam at both ends, so it is whole at every point of the scroll. */
.garland { position: absolute; top: calc(var(--m) + 8px); bottom: calc(var(--m) + 8px); left: 50%; width: 30px; margin-left: -15px; z-index: 5; overflow: hidden; pointer-events: none; }
.garland i { position: absolute; left: 0; right: 0; top: -340px; bottom: -340px; background: url("../assets/mark.svg") center top / 26px 34px repeat-y; transform: translateY(var(--gy, 0px)); }

/* the first screen: a sheet set like a menu card */
.hero { display: flex; flex-direction: column; min-height: calc(100svh - 2 * var(--m)); padding: 22px var(--pad) 0; overflow: hidden; text-align: center; }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.nav > a:first-child { justify-self: start; } .nav > a:last-child { justify-self: end; }
.nav a { text-decoration: none; padding: 6px 0; } .nav a:hover { text-decoration: underline; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: var(--md); line-height: 1; }
.wordmark img { width: 0.82em; height: 0.82em; } .wordmark i { font-style: italic; } .wordmark span { padding-bottom: 0.1em; }
.lead { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 28px 0 8px; }
.lead h1 { max-width: 17ch; margin: 0 auto; color: var(--accent); }
/* the peacock walks along the foot of the first screen, towards the door */
.hero-art { width: calc(100% + 2 * var(--pad)); max-width: none; margin: 0 calc(-1 * var(--pad)); translate: calc(var(--drift, 0) * 1px) 0; }
.lead p { max-width: 41ch; margin: 22px auto 0; }
.lead p + p { margin-top: 26px; }

/* the reading column after it: one centred measure, so the page is set like a book and neither side stands empty */
.intro, .how { padding: 0 var(--pad); }
.intro > *, .how > * { max-width: var(--measure); margin-inline: auto; }
.intro { padding-top: 9svh; padding-bottom: 16svh; }
.intro h2, .how h2 { color: var(--accent); }
.intro p { margin-top: 1.1em; }
.asks { list-style: none; margin-top: 1.3em; margin-bottom: 1.4em; font-size: var(--md); line-height: 1.16; letter-spacing: -0.01em; }
.asks li + li { margin-top: 0.12em; }
.step { display: flex; flex-direction: column; justify-content: center; min-height: 74svh; }
.step h3 { line-height: 1.08; }
.step p { margin-top: 20px; } .step p + p { margin-top: 12px; }
.step-pic { display: none; }
html.io .step { color: var(--muted); transition: color 0.4s; } html.io .step.is-active { color: var(--ink); }
.more { padding-top: 6svh; padding-bottom: 12svh; }

/* ---------- the ride: its finished composition first (what reduced motion and no script see) ---------- */
.ride .scene-stage { padding: 110px calc(var(--m) + var(--pad)) 120px; }
.ride-worlds, .ride-lines { display: none; }
.ride-head h2 { font-size: var(--h); }
.looks { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--m); margin-top: 44px; }
.looks li { position: relative; }
.looks .plate { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); }
.looks .phone { position: absolute; left: 50%; top: 0; width: 46%; margin-top: 12%; transform: translateX(-50%); }
.looks p { margin-top: 16px; font-size: var(--md); line-height: 1.12; max-width: 15ch; }
/* live: the worlds fill the screen behind; the heading and the line that changes share one sheet at the top; under it
   stands one whole phone, as tall as the rest of the screen allows */
.ride.is-live .scene-stage { display: flex; flex-direction: column; align-items: center; gap: 2.6svh; padding: 3svh var(--m) 3.4svh; background: var(--teal); }
.ride.is-live .ride-worlds { display: block; position: absolute; inset: 0; }
.ride-worlds > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ride-world { clip-path: circle(0% at 50% 50%); }
.ride-ring { left: 50%; top: 50%; inset: auto; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; border-radius: 50%; border: 10px solid var(--paper); transform: scale(0); } /* taste-skill-ignore: not an entrance, the ring is the edge of the world that opens out of a point */
.ride.is-live .ride-head { position: relative; z-index: 4; flex: none; max-width: 100%; padding: 14px 48px 20px; border-radius: var(--r); background: var(--paper); text-align: center; }
.ride.is-live .ride-lines { display: block; position: relative; height: 1.3em; margin-top: 4px; color: var(--accent); font-size: var(--md); line-height: 1.3; letter-spacing: -0.01em; }
.ride.is-live .ride-lines p { position: absolute; inset: 0; white-space: nowrap; }
.ride.is-live .looks { display: block; position: relative; z-index: 3; flex: 1; min-height: 0; width: 100%; margin: 0; }
.ride.is-live .looks li { position: absolute; inset: 0; display: grid; place-items: center; }
.ride.is-live .looks .plate, .ride.is-live .looks p { display: none; }
.ride.is-live .looks .phone { position: static; width: auto; height: calc(100% - 16px); margin: 0; transform: none; }

/* ---------- your design, your name: one screen ---------- */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100svh - 2 * var(--m)); margin: var(--m); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.show-pic { --pw: calc(min(74svh, 90vw) * 390 / 844); position: relative; display: grid; place-items: center; padding: 4svh 0 calc(var(--bar) + 4svh); overflow: hidden; background: var(--tone); }
.show-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.show-pic .phone { position: relative; width: var(--pw); }
/* the planner's name, where the app itself puts it: every measure follows the phone's width */
.chip { position: absolute; left: calc(var(--pw) * 0.036); top: calc(var(--pw) * 0.031); display: inline-flex; align-items: center; gap: calc(var(--pw) * 0.02); max-width: 86%; padding: calc(var(--pw) * 0.013) calc(var(--pw) * 0.04) calc(var(--pw) * 0.013) calc(var(--pw) * 0.013); border-radius: 999px; background: #fbf4fa; color: #2e1a3d; font-size: calc(var(--pw) * 0.052); line-height: 1.1; }
.chip b { flex: none; display: grid; place-items: center; width: calc(var(--pw) * 0.087); height: calc(var(--pw) * 0.087); padding-bottom: 0.1em; border-radius: 50%; background: #9c2a7c; color: #fffcf5; font-size: calc(var(--pw) * 0.04); font-weight: 700; letter-spacing: 0.02em; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-bottom: 0.1em; }
.show-pic figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 8px; height: var(--bar); padding-bottom: 3px; background: var(--paper); color: var(--ink); font-size: var(--s); }
.show-pic figcaption img { width: 1.1em; height: 1.1em; } .show-pic figcaption i { font-style: italic; }
.show-text { display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3.6svh, 44px); padding: 5svh var(--pad); }
.show-text h2 { font-size: var(--h); }
.show-text p { max-width: 36ch; }
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--m); max-width: 680px; }
.tabs button { display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; background: none; color: var(--muted); font-size: var(--s); line-height: 1.2; text-align: left; cursor: pointer; }
.tabs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); transition: transform 0.3s var(--ease); }
.tabs button:hover { color: var(--ink); } .tabs button:hover img { transform: translateY(-3px); }
.tabs button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.tabs button[aria-pressed="true"] img { outline: 4px solid var(--mari); outline-offset: 3px; }
.cells { display: grid; grid-template-columns: 1fr 1fr; gap: var(--m); max-width: 680px; }
.cell { display: flex; flex-direction: column; justify-content: center; min-height: 76px; padding: 8px 32px 12px; border: 0; border-radius: 999px; }
.cell.field { background: var(--tone); font-size: var(--s); color: var(--muted); line-height: 1.2; cursor: text; }
.cell.field input { width: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: var(--t); font-weight: 700; }
.cell.field:focus-within { outline: 3px solid var(--mari); outline-offset: 3px; }
.cell.go { align-items: center; background: var(--ink); color: var(--paper); font-weight: 700; text-align: center; cursor: pointer; transition: transform 0.2s var(--ease); }
.cell.go:hover { transform: translateY(-2px); } .cell.go:active { scale: 0.98; }

/* ---------- a wedding, counted: a wall of tiles that is exactly one screen ---------- */
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 8px; height: max(100svh, 560px); padding: 8px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 0; padding: 10px; border: 0; border-radius: var(--r); overflow: hidden; text-align: center; }
.tile b { font-size: var(--xl); font-weight: 600; line-height: 0.95; letter-spacing: -0.03em; }
.tile span { font-size: var(--md); line-height: 1.1; letter-spacing: -0.01em; }
.tile h2 { font-size: var(--h); }
@media (max-width: 1100px) { .tile h2 { font-size: var(--md); } }      /* a narrow tile: the heading stays on two lines */
.t-ink { background: var(--ink); color: var(--paper); } .t-rani { background: #c2185b; color: #fffcf5; } .t-teal { background: #0f5a63; color: #fffcf5; }
.t-mari { background: #f29a1f; color: #2b1420; } .t-tone { background: var(--tone); color: var(--ink); }
.tile.film { cursor: pointer; background: var(--ink); }
.tile.film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.tile.film:hover img { transform: scale(1.04); }
/* the play button: a paper disc with an ink triangle */
.tile.film i { position: relative; display: grid; place-items: center; width: clamp(60px, 6vw, 104px); aspect-ratio: 1; margin-bottom: 9%; border-radius: 50%; background: #fffcf5; transition: transform 0.3s var(--ease); }
.tile.film i::before { content: ""; width: 34%; height: 40%; margin-left: 9%; background: #2b1420; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.tile.film:hover i { transform: scale(1.08); }
.tile.film span { position: absolute; left: 50%; bottom: 14px; width: max-content; max-width: calc(100% - 20px); transform: translateX(-50%); padding: 6px 24px 10px; border-radius: 999px; background: #fffcf5; color: #2b1420; font-size: var(--t); font-weight: 700; letter-spacing: 0; }

/* ---------- the close ---------- */
.lotus .scene-stage { padding: 110px calc(var(--m) + var(--pad)) 60px; }
.lotus-film { display: none; }
.lotus-last { width: 100%; height: auto; border-radius: var(--r); }
.lotus-words { margin-top: 30px; }
.lotus-words h2 { font-size: var(--h); }
.lotus-words p { margin-top: 10px; font-size: var(--md); line-height: 1.12; }
.lotus.is-live .scene-stage { padding: 0; background: var(--teal); }
.lotus.is-live .lotus-film, .lotus.is-live .lotus-last { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.lotus.is-live .lotus-words { position: absolute; inset: 0; margin: 0; }
.lotus.is-live .lotus-words > * { position: absolute; left: 50%; bottom: 6svh; width: max-content; max-width: calc(100vw - 2 * var(--m)); margin: 0; padding: 12px 48px 22px; border-radius: var(--r); background: var(--paper); color: var(--ink); font-size: var(--h); font-weight: 600; letter-spacing: -0.015em; line-height: 1.06; text-align: center; text-wrap: balance; transform: translateX(-50%); }

/* the last sheet: the same menu card as the first, and the peacock walks back out */
.cta { display: flex; flex-direction: column; align-items: center; margin: var(--m); padding: 13svh var(--pad) 0; border-radius: var(--r); background: var(--paper); overflow: hidden; text-align: center; }
.cta h2 { max-width: 19ch; color: var(--accent); font-size: var(--h); }
.cta p { margin-top: 20px; }
.cta .acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 30px; margin-top: 30px; }
.cta-art { width: min(1180px, 100%); margin-top: 5svh; transform: scaleX(-1); }
.foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 16px; padding: 22px calc(var(--m) + var(--pad)) 34px; font-size: var(--s); }
.foot p:first-child, .foot .end { color: var(--muted); } .foot .end { justify-self: end; }
.foot .links { display: flex; gap: 28px; }

/* the films open here */
#player { max-width: min(94vw, 1180px); padding: 0; border: 0; border-radius: var(--r); background: #150a10; color: #fffcf5; overflow: hidden; }
#player::backdrop { background: rgba(21, 10, 16, 0.86); }
#player video { width: 100%; max-height: 80svh; background: #000; }
#player form { display: flex; justify-content: center; padding: 12px; }

/* entrances: each part of a section rises into place once, in turn. Nothing is ever invisible while it waits (a part that
   has not risen yet is only a little low), so a jump down the page, a slow phone or a missing script lose nothing. */
html.io .rise { transform: translateY(30px); transition: transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
html.io .rise.in { transform: none; }

/* ---------- a phone: the painted panel comes first and stays, the paper sheet slides up over it; after that each step
   of the weekend carries its own picture, with its sheet whole inside it ---------- */
@media (max-width: 767px) {
  :root { --t: 19px; --s: 16px; --md: 25px; --h: 9.6vw; --xl: 22vw; --pad: 22px; --bar: 44px; }
  .split { display: flex; flex-direction: column; gap: var(--m); }
  .stage { order: -1; z-index: 0; width: 100%; height: 56svh; }
  .col { position: relative; z-index: 1; }
  .frag { bottom: calc(var(--bar) + 12px); width: 74%; height: calc(100% - var(--bar) - 12px - 5%); }
  .bar { justify-content: center; } .bar span + span { display: none; }
  .garland { display: none; }
  .hero { min-height: 0; padding-top: 16px; }
  .nav { gap: 6px; font-size: var(--s); } .nav a { white-space: nowrap; } .wordmark { gap: 8px; }
  .lead { padding: 40px 0 20px; } .lead p { margin-top: 16px; } .lead .btn { width: 100%; }
  .intro { padding-top: 32px; padding-bottom: 64px; }
  .step { min-height: 0; padding: 30px 0 40px; }
  .step-pic { display: block; position: relative; width: 100%; max-width: 440px; margin-bottom: 24px; padding: min(30%, 132px) 9% 9%; border-radius: var(--r); overflow: hidden; background: var(--teal); }
  .step-pic img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .step-pic img + img { position: relative; width: 100%; }
  html.io .step { color: var(--ink); }
  .more { padding-top: 24px; padding-bottom: 72px; }
  .ride .scene-stage, .lotus .scene-stage { padding: 72px calc(var(--m) + var(--pad)) 80px; }
  .looks { grid-template-columns: 1fr; gap: 40px; }
  .ride.is-live .scene-stage { gap: 14px; padding: 12px var(--m) 14px; }
  .ride.is-live .ride-head { padding: 10px 16px 14px; }
  .ride.is-live .ride-lines { height: 2.5em; line-height: 1.2; }
  .ride.is-live .ride-lines p { display: grid; place-items: center; white-space: normal; }
  .ride.is-live .ride-world[data-look="jungle"] { object-position: 80% 50%; } .ride.is-live .ride-world[data-look="gulabi"] { object-position: 27% 50%; }
  .lotus.is-live .lotus-words > * { width: calc(100vw - 2 * var(--m)); padding: 10px 16px 16px; }
  .showcase { grid-template-columns: 1fr; min-height: 0; }
  .show-pic { --pw: min(62vw, calc(72svh * 390 / 844)); padding: 26px 0 calc(var(--bar) + 26px); }
  .show-text { padding: 32px var(--pad) 36px; gap: 24px; }
  .tabs { gap: 8px; } .tabs button { gap: 6px; }
  .cells { grid-template-columns: 1fr; } .cell { min-height: 64px; }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; height: auto; gap: 6px; padding: 6px; }
  .tile { aspect-ratio: 1; } .tile h2 { font-size: var(--h); } .tile span { font-size: var(--t); } .tile.film span { bottom: 10px; padding: 5px 14px 8px; border-radius: var(--r); font-size: var(--s); }
  .cta { padding: 9svh var(--pad) 0; } .cta-art { margin-top: 36px; }
  .foot { display: block; padding: 18px 22px 26px; } .foot p + p { margin-top: 8px; } .foot .links { flex-wrap: wrap; gap: 6px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .world.is-in, .frag img, .btn, .cell.go, .tile.film img, .tile.film i, .tabs img { transition: none; }
  html.io .rise { transform: none; transition: none; }
  .garland i { transform: none; } .hero-art { translate: none; }
}
