/* ============ v18: the illustrated documentary (cinematic, no comic devices) ============ */
:root { --step-hero: clamp(3rem, 1.4rem + 5vw, 5.8rem); --film: #0E0408; }
/* Film opening: black bars part as the page loads (pure CSS, so it can never get stuck) */
.letterbox { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.letterbox i { position: absolute; left: 0; right: 0; height: 12vh; background: var(--film); transform-origin: 50% 0; animation: lbOpen 1.5s .15s cubic-bezier(.65, 0, .35, 1) forwards; }
.letterbox i:first-child { top: 0; }
.letterbox i:last-child { bottom: 0; transform-origin: 50% 100%; }
@keyframes lbOpen { to { transform: scaleY(0); visibility: hidden; } }
/* Title card: "Visanam presents" between two hairlines */
.title-card { display: inline-flex; align-items: center; gap: 1rem; }
.title-card::before, .title-card::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .55; }
/* Reel numbers on every section label */
.reel { display: inline-block; font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.15em; letter-spacing: 0; margin-right: .95em; padding-right: .95em; border-right: 1px solid currentColor; line-height: 1; }
/* Fine film grain on the dark sections (a still texture, nothing moves) */
.hero::before, .process::before, .weddings::before, .final::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.weddings, .process { position: relative; }
.proc-pin, .wed-pin { position: relative; }
/* Hero: the painting washes over the sketch with a soft edge (no halftone dots) */
.comic-layer { -webkit-mask-image: linear-gradient(112deg, #000 var(--p), transparent calc(var(--p) + 24%)); mask-image: linear-gradient(112deg, #000 var(--p), transparent calc(var(--p) + 24%));
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.hero-title .ht:last-child { font-style: normal; }
.arch-caption { letter-spacing: .02em; }
/* Process: a framed page, sketch then painting then chapter title */
.panel-frame { background: #1A0611; }
.pf { position: absolute; inset: 0; overflow: hidden; }
.pf img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.pf-sk { background: #FBF9F4; }
.pf-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 26% 8% 8%; text-align: center; display: grid; gap: .35rem; background: linear-gradient(to top, rgba(14,4,8,.88), rgba(14,4,8,0)); }
.pf-title small { font-family: var(--f-body); font-size: .62rem; font-weight: 500; letter-spacing: .38em; text-transform: uppercase; color: var(--gold-lt); }
.pf-title b { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.1; color: var(--ivory); }
.stage-tag { letter-spacing: .02em; }
/* Section headings read like documentary title cards: larger, quieter */
.sec-head h2, .wed-head h2, .proc-copy h2, .plan-left h2, .exp-scene h2, .nf-inner h2, .story-line { letter-spacing: -.012em; }
.eyebrow { display: inline-flex; align-items: center; }
.cover-pre { letter-spacing: .26em; font-size: .56rem; }
.final > :not(.jaali) { position: relative; }
/* "as a documentary." stays on one line, a step smaller, so the title reads in three clean lines */
.hero-title .ht:last-child { white-space: nowrap; font-size: .8em; margin-top: .12em; }
.reel { font-family: var(--f-body); font-style: normal; font-size: 1em; letter-spacing: .2em; font-variant-numeric: lining-nums; }
/* Phones with "Remove animations" switched on (common in Android battery saver) still get the site's
   motion: the older rule in style.css turned every animation and transition off for them. */
@media (prefers-reduced-motion: reduce) {
  .letterbox i { animation: lbOpen 1.5s .15s cubic-bezier(.65, 0, .35, 1) forwards !important; }
  .ribbon.is-css .ribbon-track { animation: ribbonMove 40s linear infinite paused !important; }
  .ribbon.is-css.is-on .ribbon-track { animation: ribbonMove 40s linear infinite running !important; }
  .arch-caption span { transition: opacity .6s, transform .6s var(--ease) !important; }
  .proc-steps li { transition: opacity .5s !important; }
  .btn::after, .nav-links a::after, .faq summary::after { transition: transform .5s var(--ease) !important; }
  .pg-arch .arch-line { animation: pgDraw 1.8s .3s cubic-bezier(.22, 1, .36, 1) both !important; }
  .pg-arch .arch-line-out { animation: pgDraw 1.8s .55s cubic-bezier(.22, 1, .36, 1) both !important; }
  .pg-arch .arch-clip { animation: pgRise 1.4s .4s cubic-bezier(.22, 1, .36, 1) both !important; }
  .pg-arch .hero-img { animation: pgZoom 5s .4s cubic-bezier(.22, 1, .36, 1) both !important; }
  .pg-arch .pg-colour { animation: pgZoom 5s .4s cubic-bezier(.22, 1, .36, 1) both, pgWipe 2.2s 1.3s cubic-bezier(.65, 0, .35, 1) both !important; }
  .js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.22, 1, .36, 1) var(--d, 0s), transform .9s cubic-bezier(.22, 1, .36, 1) var(--d, 0s) !important; }
  .js .rv.in { opacity: 1; transform: none; }
}
/* Phones: the Process panel and the chapters hold still (CSS sticky) while scrolling moves them on */
.proc-sticky .proc-pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; padding-top: 74px; padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); gap: 10px; align-content: center; }
.proc-sticky .proc-copy h2 { margin: .3rem 0 .5rem; font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.1rem); }
.proc-sticky .proc-steps li { padding: .55rem 0; }
.proc-sticky .proc-steps li b { font-size: 1.2rem; }
.proc-sticky .proc-steps li span { font-size: .84rem; line-height: 1.45; margin-top: .15rem; }
.proc-sticky .panel-frame { width: min(200px, 50vw, calc(33svh * 5 / 7)); outline-offset: 7px; }
.proc-sticky .stage-tag { margin-top: .2rem; }
.strip-sticky .wed-pin { position: sticky; top: 0; overflow: hidden; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.strip-sticky .wed-head p:last-child { display: block; }
.strip-sticky .hint-scroll { display: inline; }
.strip-sticky .hint-swipe { display: none; }
/* ============ v19: quieter and richer. Antique gold, deep aubergine, ivory paper; typeset pages instead of pictures ============ */
:root { --emerald: #1F0F15; --emerald-2: #2A141C; --emerald-3: #3E1C27; --oxblood: #26111A; --wine: #5E1F31;
  --gold: #B08A4E; --gold-lt: #D9C39C; --ivory: #F8F3EA; --ivory-2: #F1E8DA; --mist: #C9BBAE; --ink: #1E1015; --ink-soft: #6A5A5C;
  --hair: 1px solid rgba(176, 138, 78, .4); --foil: linear-gradient(180deg, #F4E6C4 0%, #D7B97F 46%, #A07C45 100%); }
body { background: var(--ivory); }
.btn-gold { color: var(--ink); }
.btn-gold::after { background: var(--ink); }
.btn-gold:hover { color: var(--ivory); }
.jaali { background-image: radial-gradient(circle at 50% 50%, transparent 0 9px, rgba(217,195,156,.11) 9.5px 10.5px, transparent 11px), radial-gradient(circle at 0 0, transparent 0 9px, rgba(217,195,156,.11) 9.5px 10.5px, transparent 11px); }
.door { background-image: radial-gradient(circle at 50% 50%, transparent 0 7px, rgba(217,195,156,.35) 7.5px 8.5px, transparent 9px), radial-gradient(circle at 0 0, transparent 0 7px, rgba(217,195,156,.35) 7.5px 8.5px, transparent 9px); }
.proc-steps { border-top-color: rgba(217,195,156,.2); }
.proc-steps li { border-bottom-color: rgba(217,195,156,.2); }
.logo-tile { box-shadow: 0 0 0 1px rgba(176,138,78,.55), 0 0 0 9px rgba(248,243,234,.05), 0 30px 60px -30px rgba(0,0,0,.6); }
.hero::before, .process::before, .weddings::before, .final::before { opacity: .06; }
/* Ornament: a hairline with a small diamond, used on every typeset page */
.tp-orn, .cp-orn { position: relative; display: block; width: 26%; height: 1px; margin: 5cqw auto; background: linear-gradient(90deg, transparent, currentColor 30%, currentColor 70%, transparent); }
.tp-orn::after, .cp-orn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1.6cqw; height: 1.6cqw; min-width: 5px; min-height: 5px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
/* Hero: the book's title page, first as a pencil layout, then as the finished cloth-and-foil cover */
.arch { container-type: inline-size; }
.hero-stage .arch-clip { background: #2A141C; }
.tp { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30cqw 10cqw 9cqw; }
.tp > span { display: block; }
.tp-pre { font-family: var(--f-body); font-weight: 500; font-size: max(.56rem, 2.9cqw); letter-spacing: .34em; text-transform: uppercase; margin-right: -.34em; }
.tp-kind { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 8.4cqw; line-height: 1.1; margin-top: 3cqw; }
.tp-of { font-family: var(--f-display); font-style: italic; font-size: 4.4cqw; margin-top: 1.6cqw; }
.tp-names { font-family: var(--f-display); font-weight: 500; font-size: 12.5cqw; line-height: 1.02; margin-top: 2cqw; overflow-wrap: anywhere; }
.tp-names i { font-weight: 400; }
.tp-date { font-family: var(--f-display); font-style: italic; font-size: 4.6cqw; }
.tp-mark { margin-top: auto; font-family: var(--f-body); font-weight: 500; font-size: max(.52rem, 2.6cqw); letter-spacing: .55em; text-transform: uppercase; margin-right: -.55em; }
.tp-final { color: #D9C39C; background: radial-gradient(110% 70% at 50% 18%, #4A2130 0%, #2E131C 55%, #1D0C12 100%); }
.tp-final .tp-kind, .tp-final .tp-names { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tp-final .tp-orn { color: #B08A4E; }
.tp-sketch { color: #8D847A; background-color: #F3EDE2;
  background-image: linear-gradient(90deg, transparent calc(50% - .5px), rgba(141,132,122,.28) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)), repeating-linear-gradient(0deg, transparent 0 calc(6cqw - 1px), rgba(141,132,122,.13) calc(6cqw - 1px) 6cqw); }
.tp-sketch .tp-kind, .tp-sketch .tp-names { color: transparent; -webkit-text-stroke: .7px #7E766C; }
.tp-sketch::after { content: ""; position: absolute; inset: 24cqw 7cqw 6cqw; border: 1px dashed rgba(141,132,122,.4); pointer-events: none; }
/* Process: a chapter page, pencil layout first, then the finished page, then its title */
.panel-frame { container-type: inline-size; background: #F7F1E6; }
.pf-sk, .pf-paint { position: absolute; inset: 0; }
.cp { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10cqw 11cqw 34cqw; }
.cp > span { display: block; }
.cp-num { font-family: var(--f-body); font-weight: 500; font-size: max(.56rem, 3.3cqw); letter-spacing: .36em; text-transform: uppercase; margin-right: -.36em; }
.cp-deva { font-family: var(--f-deva); font-size: 14cqw; line-height: 1.3; margin-top: 4cqw; }
.cp-text { font-family: var(--f-display); font-style: italic; font-size: 5.6cqw; line-height: 1.35; max-width: 22ch; }
.cp-final { color: #B08A4E; background: #F7F1E6; box-shadow: inset 0 0 0 5cqw #F7F1E6, inset 0 0 0 calc(5cqw + 1px) rgba(176,138,78,.55); }
.cp-final .cp-deva { color: #5E1F31; }
.cp-final .cp-text { color: #6A5A5C; }
.cp-sketch { color: #8D847A; background-color: #FBF8F2;
  background-image: repeating-linear-gradient(0deg, transparent 0 calc(6cqw - 1px), rgba(141,132,122,.13) calc(6cqw - 1px) 6cqw); }
.cp-sketch .cp-deva { color: transparent; -webkit-text-stroke: .7px #7E766C; }
.cp-sketch::after { content: ""; position: absolute; inset: 5cqw; border: 1px dashed rgba(141,132,122,.45); pointer-events: none; }
.pf-title { background: none; padding: 0 10cqw 11cqw; gap: 1.2cqw; }
.pf-title small { color: #B08A4E; font-size: max(.56rem, 3cqw); }
.pf-title b { color: #1E1015; font-size: 9cqw; }
/* Chapters: nine cream pages with the ceremony name set in Devanagari */
.weddings .chap-deva { color: #5E1F31; }
.weddings .chap-num { color: #B08A4E; }
.weddings .chap-art .arch-line path { stroke: #B08A4E; opacity: .9; }
.chap-art .arch-clip { box-shadow: inset 0 0 0 9px var(--c), inset 0 0 0 10px rgba(176,138,78,.45); }
.chap-art .arch-clip::after { background: #1F0F15; }
.strip-sticky .chap { --f: 1; }
/* Atelier and cover planner: the occasion's name in gold foil inside the arch */
.svc-art { container-type: inline-size; }
.svc-art .arch-clip { display: grid; place-items: center; background: radial-gradient(110% 70% at 50% 25%, #4A2130 0%, #2E131C 60%, #1D0C12 100%); }
.svc-deva, .cover-deva { font-family: var(--f-deva); line-height: 1.3; text-align: center; padding-top: 12%; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.svc-deva { font-size: 21cqw; }
.cover-art { container-type: inline-size; }
.cover-art .arch-clip { display: grid; place-items: center; background: radial-gradient(110% 70% at 50% 25%, #3E1C27 0%, #2A141C 70%); }
.cover-deva { font-size: 24cqw; }
.cover-names { background: var(--foil); -webkit-background-clip: text; background-clip: text; }
/* Service pages: the same typeset pages */
.pg-gallery .chap-art .arch-clip { display: grid; place-items: center; background: #F3ECDF; box-shadow: inset 0 0 0 9px #F3ECDF, inset 0 0 0 10px rgba(176,138,78,.45); }
.pg-gallery .chap-deva { color: #5E1F31; font-size: clamp(1.6rem, 3.4vw, 2.8rem); }
.pg-gallery .arch-line path { stroke: #B08A4E; }
.pg-other-art { display: grid; place-items: center; aspect-ratio: 4 / 3; background: radial-gradient(110% 80% at 50% 30%, #4A2130 0%, #2E131C 60%, #1D0C12 100%); }
.pg-other-art b { font-family: var(--f-deva); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; padding-top: .2em; }
@media (max-width: 560px) { .pg-other-art { aspect-ratio: auto; height: 100%; } .pg-other-art b { font-size: 1.5rem; } }
/* ============ v20: watercolour paintings, presented like framed art on cream paper ============ */
.slot-img, .hero-stage .arch-clip, .chap-art .arch-clip.has-img, .pg-gallery .chap-art .arch-clip, .pg-other img { background: #F0E3CF; }
.svc-art .arch-clip:has(.slot-img), .cover-art .arch-clip:has(.slot-img) { background: #F0E3CF; }
.svc-art .arch-clip:has(.slot-img) .svc-deva, .cover-art .arch-clip:has(.slot-img) .cover-deva { display: none; }
.chap-art .slot-img { object-position: 50% 18%; }
.svc-art .slot-img { object-position: 50% 22%; }
.hero-img { object-position: 50% 26%; }
.pf-title { background: linear-gradient(to top, #F3E8D6 0%, #F3E8D6 46%, rgba(243,232,214,0) 100%); padding: 22cqw 10cqw 9cqw; }
.pf img { object-position: 50% 20%; }
/* A fine gold hairline inside every painted arch, like a mount around a print */
.hero-stage .arch-clip::after, .chap-art .arch-clip.has-img::before, .svc-art .arch-clip:has(.slot-img)::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  box-shadow: inset 0 0 0 8px rgba(240,227,207,.55), inset 0 0 0 9px rgba(176,138,78,.55); }
.hero-stage .arch-clip { box-shadow: 0 40px 80px -40px rgba(0,0,0,.55); }
/* Chapter names sit on the cream paper of the painting, in wine, instead of over a dark band */
.chap-art .arch-clip.has-img .chap-deva, .weddings .chap-art .arch-clip.has-img .chap-deva { color: #5E1F31; background: linear-gradient(to top, rgba(243,232,214,.97) 0%, rgba(243,232,214,.9) 45%, rgba(243,232,214,0) 100%); text-shadow: none; }
.chap-art .arch-clip.has-img ~ .chap-num, .weddings .chap-art .arch-clip.has-img ~ .chap-num { color: #B08A4E; }
/* ============ v21: hinged palace doors, and lit chapters ============ */
/* The doors sit above the painting's cream mount (no pale rim around them) and swing on hinges. */
.hero-stage .door { z-index: 6; top: -1px; bottom: -1px; width: 50.4%; border: 0; transform: perspective(1100px) rotateY(96deg);
  -webkit-backface-visibility: hidden; backface-visibility: hidden; will-change: transform; --sh: .75;
  background-color: #241018;
  background-image:
    radial-gradient(circle at 50% 50%, transparent 0 7px, rgba(217,195,156,.34) 7.5px 8.5px, transparent 9px),
    radial-gradient(circle at 0 0, transparent 0 7px, rgba(217,195,156,.34) 7.5px 8.5px, transparent 9px),
    radial-gradient(120% 70% at 50% 40%, #3A1824 0%, #241018 70%);
  background-size: 22px 22px, 22px 22px, 100% 100%;
  box-shadow: inset 0 0 0 10px #241018, inset 0 0 0 11px rgba(217,195,156,.6), inset 0 0 0 17px #241018, inset 0 0 0 18px rgba(217,195,156,.22); }
.hero-stage .door-l { left: 0; transform-origin: 0 50%; }
.hero-stage .door-r { right: 0; transform-origin: 100% 50%; transform: perspective(1100px) rotateY(-96deg); }
/* the meeting edge: a fine gold line and a little depth */
.hero-stage .door-l { background-image:
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(217,195,156,.75) calc(100% - 1px)),
    linear-gradient(90deg, rgba(0,0,0,0) 70%, rgba(0,0,0,.28) 100%),
    radial-gradient(circle at 50% 50%, transparent 0 7px, rgba(217,195,156,.34) 7.5px 8.5px, transparent 9px),
    radial-gradient(circle at 0 0, transparent 0 7px, rgba(217,195,156,.34) 7.5px 8.5px, transparent 9px),
    radial-gradient(120% 70% at 50% 40%, #3A1824 0%, #241018 70%);
  background-size: 100% 100%, 100% 100%, 22px 22px, 22px 22px, 100% 100%; }
.hero-stage .door-r { background-image:
    linear-gradient(270deg, transparent calc(100% - 1px), rgba(217,195,156,.75) calc(100% - 1px)),
    linear-gradient(270deg, rgba(0,0,0,0) 70%, rgba(0,0,0,.28) 100%),
    radial-gradient(circle at 50% 50%, transparent 0 7px, rgba(217,195,156,.34) 7.5px 8.5px, transparent 9px),
    radial-gradient(circle at 0 0, transparent 0 7px, rgba(217,195,156,.34) 7.5px 8.5px, transparent 9px),
    radial-gradient(120% 70% at 50% 40%, #3A1824 0%, #241018 70%);
  background-size: 100% 100%, 100% 100%, 22px 22px, 22px 22px, 100% 100%; }
/* brass handles beside the seam */
.hero-stage .door::before { content: ""; position: absolute; top: 52%; width: 5px; height: 12%; border-radius: 3px;
  background: linear-gradient(180deg, #F4E6C4 0%, #D7B97F 46%, #8A6838 100%); box-shadow: 0 2px 6px rgba(0,0,0,.45); }
.hero-stage .door-l::before { right: 13px; }
.hero-stage .door-r::before { left: 13px; }
/* shade that deepens as a door turns away from the light */
.hero-stage .door::after { content: ""; position: absolute; inset: 0; background: #0D0508; opacity: var(--sh); pointer-events: none; }

/* Chapters: the one in the centre is lit, with a warm glow behind it; the rest rest back in shadow */
.weddings .chap { --f: 0; }
.weddings .chap-art { transform: scale(calc(.86 + .14 * var(--f))) translateZ(0); transform-origin: 50% 100%; }
.weddings .chap-art::before { content: ""; position: absolute; inset: -14% -22% -8%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(217,195,156,.38), rgba(217,195,156,.12) 55%, rgba(217,195,156,0) 100%);
  opacity: var(--f); }
.weddings .chap-art .arch-clip::after { background: #12070B; opacity: calc(.62 * (1 - var(--f))); }
.weddings .chap-art .arch-line path { opacity: calc(.35 + .65 * var(--f)); }
.weddings .chap h3, .weddings .chap p { opacity: calc(.4 + .6 * var(--f)); }
.weddings .chap h3 { color: #F8F3EA; }
.strip-sticky .chap { --f: 0; }
.no-motion .weddings .chap { --f: 1; }
