/* Kalyanakuri: styles for the public pages (landing, gallery, form, privacy, terms, 404).

   THE DESIGN SYSTEM: "Kasavu and kuri"
   The reference is a Kerala wedding morning, not another website (PLAN 4.5): the kasavu saree
   (unbleached cotton, gold zari bands), the printed kuri card, temple brass, jasmine strings,
   kumkum red and banana-leaf green. Every colour, size and motion below comes from these tokens. */

:root {
  /* ---- Colour ---- */
  --cloth: #f8f1e3;        /* kasavu cotton: the page */
  --cloth-deep: #f0e4ca;   /* a fold of the same cloth: quiet bands, hovers */
  --paper: #fffcf4;        /* the printed kuri card */
  --ink: #2b1511;          /* lamp-black brown: text */
  --ink-2: #5b4137;        /* secondary text (8:1 on cloth) */
  --ink-3: #7a5e52;        /* quiet text (4.9:1 on cloth) */
  --line: #e6d8bb;         /* hairlines */
  --line-2: #d4c097;       /* firmer lines, chip borders */
  --maroon: #5a0f1d;       /* wedding silk: dark bands, Luxury */
  --maroon-2: #7a1a2c;     /* links and small accents on light */
  --maroon-ink: #2a0910;   /* deepest band: footer */
  --kumkum: #c0322a;       /* kumkum red: tiny accents only (the live dot) */
  --leaf: #1e6a39;         /* banana leaf: every WhatsApp action (6.5:1 with white) */
  --leaf-deep: #144d29;
  --leaf-tint: #e4eedc;
  --rose-tint: #f6e4e0;
  --jasmine: #fffef8;
  --on-dark: #fbefd8;      /* text on maroon (11:1) */
  --on-dark-2: #e2c9a0;    /* quiet text on maroon (7:1) */
  --chat: #efe6d2;         /* the chat wallpaper: cloth, a shade warmer */
  --bubble-out: #dcefd2;   /* our family's messages: a pale banana leaf */

  /* Real gold is never one flat mustard: it is light moving across zari thread. */
  --gold-ink: #7a5512;     /* gold for small text on light (6:1) */
  --gold-1: #fbe9b5;
  --gold-2: #e5c06b;
  --gold-3: #c0913a;       /* lines and ornament only: 2.5:1 on cloth, never text or focus */
  --gold-4: #8c6418;       /* the darkest gold: 4.6:1 on cloth, safe for focus rings */
  --zari: linear-gradient(100deg, #8c6418 0%, #d9b054 16%, #fbe9b5 31%, #cf9f44 46%, #94681a 61%, #e7c574 79%, #a87a24 100%); /* on dark */
  --zari-ink: linear-gradient(100deg, #6b470c 0%, #a87a24 30%, #87601a 52%, #a87a24 74%, #5e3f0a 100%); /* on light: every stop above 3.4:1 */
  --zari-sheen: linear-gradient(100deg, #6b470c 0%, #a87a24 22%, #87601a 38%, #b08228 47%, #87601a 56%, #a87a24 72%, #5e3f0a 100%); /* the headline's passing glint: still above 3:1 */
  --zari-soft: linear-gradient(180deg, #f3d98e, #c99a3c);                                                          /* small badges */
  --zari-on-dark: linear-gradient(100deg, #e5c06b 0%, #fbe9b5 28%, #d9b054 52%, #f6e1a0 76%, #c99a3c 100%);          /* text on maroon: every stop above 5:1 */

  /* Focus: always visible, at least 3:1 against what is behind it */
  --focus: var(--gold-4);  /* on cloth and paper */
  --focus-dark: var(--gold-1); /* on maroon */

  /* ---- Type ---- */
  --f-display: "Noto Serif Malayalam", "Fraunces", Georgia, serif;  /* the printed kuri */
  --f-text: "Manjari", "Anek Malayalam", system-ui, sans-serif;     /* easy reading, round and warm */
  --f-latin: "Fraunces", Georgia, serif;                             /* prices, codes, numerals */
  --f-hand: "Chilanka", "Manjari", cursive;                          /* the tagline, as if written by hand */
  --lh-display: 1.34;
  --lh-text: 1.65;          /* Manjari's own line box is tall: 1.65 reads like 1.8 in other faces */
  --lh-small: 1.7;
  --t-hero: clamp(3rem, 10.5vw + .5rem, 6rem);
  --t-hero-b: clamp(1.45rem, 4.8vw + .3rem, 2.75rem);
  --t-1: clamp(1.8rem, 3vw + 1rem, 3rem);
  --t-2: clamp(1.3rem, .8vw + 1.05rem, 1.65rem);
  --t-3: 1.16rem;
  --t-body: 1.0625rem;
  --t-lede: clamp(1.08rem, .35vw + 1rem, 1.25rem);
  --t-small: .9375rem;
  --t-micro: .8125rem;
  --track: .02em;

  /* ---- Space: a 4-point scale ---- */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec-y: clamp(64px, 9vw, 128px);
  --wrap: 1180px;

  /* ---- Radii: deliberately different by material ---- */
  --r-card: 3px;                     /* printed card: crisp paper corners */
  --r-tag: 2px;                      /* printed labels and stamps */
  --r-ui: 14px;                      /* panels and inputs */
  --r-pill: 999px;                   /* buttons and filter chips only */
  --r-phone: 44px;                   /* a phone in the hand */
  --r-bubble: 10px;                  /* chat bubbles (one corner stays sharp, like WhatsApp) */
  --r-arch: 50% 50% 14px 14px / 80px 80px 14px 14px; /* a doorway: temple, church and mosque all have one */

  /* ---- Lines and the kasavu band: the brand device (a saree's gold border, thin-thick-thin) ---- */
  --hair: 1px solid var(--line);
  --kasavu-bg:
    linear-gradient(var(--gold-3), var(--gold-3)) top / 100% 1.5px no-repeat,
    var(--zari) center / 100% 5px no-repeat,
    linear-gradient(var(--gold-3), var(--gold-3)) bottom / 100% 1.5px no-repeat;

  /* ---- Shadows: warm, like lamplight, never grey ---- */
  --sh-1: 0 1px 2px rgb(74 38 14 / .07), 0 3px 10px rgb(74 38 14 / .06);
  --sh-2: 0 2px 4px rgb(74 38 14 / .06), 0 16px 32px -14px rgb(74 38 14 / .32);
  --sh-3: 0 34px 60px -26px rgb(64 22 10 / .5), 0 14px 26px -14px rgb(64 22 10 / .32);
  --sh-gold: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--gold-3), 0 18px 36px -16px rgb(120 84 18 / .5);
  --scrim: 43 21 17;       /* warm lamp-black, for scrims over pictures (rgb channels) */

  /* ---- Motion: springs that settle, never bounce for long ---- */
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);   /* overshoots a little, then settles */
  --ease-soft: cubic-bezier(.22, 1.25, .36, 1);     /* a gentler spring for big things */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --d-1: 140ms;   /* hovers */
  --d-2: 280ms;   /* small moves */
  --d-3: 560ms;   /* cards */
  --d-4: 900ms;   /* entrances */
  --d-draw: 1400ms; /* the kasavu band drawing in */
  --stagger: 80ms;
}

/* The English site: Fraunces for display, Hanken Grotesk for reading. Malayalam inside it keeps Malayalam fonts. */
:lang(en) {
  --f-display: "Fraunces", Georgia, serif;
  --f-text: "Hanken Grotesk", system-ui, sans-serif;
  --f-hand: "Fraunces", Georgia, serif;
  --lh-display: 1.08;
  --lh-text: 1.6;
  --lh-small: 1.55;
  --t-hero: clamp(2.7rem, 8.6vw + .6rem, 5.9rem);
  --t-hero-b: clamp(2rem, 6.4vw + .4rem, 4.4rem);
  --track: 0;
}
:lang(ml) {
  --f-display: "Noto Serif Malayalam", "Fraunces", Georgia, serif;
  --f-text: "Manjari", "Anek Malayalam", system-ui, sans-serif;
  --f-hand: "Chilanka", "Manjari", cursive;
  --lh-display: 1.34;
  --lh-text: 1.65;
  --lh-small: 1.7;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cloth); color: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
[lang] { font-family: var(--f-text); line-height: var(--lh-text); }
body { margin: 0; font-size: var(--t-body); overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
body::before { content: ""; display: block; height: 12px; background: var(--kasavu-bg); } /* the saree's edge across the top */
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: var(--lh-display); letter-spacing: -.005em; text-wrap: balance; }
:lang(en) h1, :lang(en) h2 { letter-spacing: -.02em; }
/* Fraunces is loaded in one roman weight (600) and one italic (400): the English site uses only those. */
:lang(en) :is(h1, h2, h3, .brand, .foot-brand, .know b, .form legend) { font-weight: 600; }
/* Malayalam is never slanted: no Malayalam face here has an italic, and a faked one breaks the letters. */
:lang(ml) :is(em, i, cite, blockquote) { font-style: normal; }
p, ul, ol, figure, blockquote { margin: 0; }
img, video, svg { max-width: 100%; }
a { color: var(--maroon-2); text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.skip { position: absolute; left: var(--s-3); top: -100px; z-index: 100; padding: 10px 16px; border-radius: var(--r-pill); background: var(--ink); color: var(--cloth); }
.skip:focus { top: var(--s-3); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Brand devices ---------- */
.kasavu { height: 14px; background: var(--kasavu-bg); transform-origin: 50% 50%; }
.zari-text { color: var(--gold-ink); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .zari-text { background: var(--zari-ink); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .final .zari-text, .tier-group-luxury .zari-text { background-image: var(--zari-on-dark); }
}
.hand { font-family: var(--f-hand); font-size: 1.35rem; line-height: 1.4; color: var(--maroon-2); }
:lang(en) .hand { font-style: italic; font-size: 1.15rem; font-weight: 400; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 var(--t-micro)/1.4 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
:lang(ml) .eyebrow { letter-spacing: .02em; font-size: var(--t-small); text-transform: none; }
.eyebrow::before { content: ""; width: 28px; height: 6px; background: var(--kasavu-bg); background-size: 100% 1px, 100% 2px, 100% 1px; }
.sec-head h2 { margin-top: var(--s-3); font-size: var(--t-1); }
.sec-text { margin-top: var(--s-4); max-width: 40ch; font-size: var(--t-lede); color: var(--ink-2); }
.sec-note { margin-top: var(--s-3); max-width: 42ch; font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-3); }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head.center .sec-text { margin-left: auto; margin-right: auto; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s-5); font-weight: 700; text-decoration: none; color: var(--maroon-2); border-bottom: 1.5px solid var(--gold-2); padding-bottom: 2px; }
.more .i { transition: transform var(--d-2) var(--ease-spring); }
.more:hover .i { transform: translateX(4px); }

/* Printed labels: which packs have a feature. Text with a small woven diamond, not another pill. */
.tag { display: inline-flex; align-items: center; gap: 7px; font: 700 var(--t-micro)/1.3 var(--f-text); letter-spacing: var(--track); color: var(--leaf-deep); white-space: nowrap; }
.tag::before { content: ""; width: 7px; height: 7px; flex: none; transform: rotate(45deg); background: currentColor; }
.tag-premium { color: var(--maroon-2); }
.tag-luxury { color: var(--gold-ink); }
.tag-luxury::before { background: var(--zari-soft); box-shadow: 0 0 0 1px var(--gold-4); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 1.5px solid transparent; border-radius: var(--r-pill); font: 700 var(--t-body)/1.2 var(--f-text); text-decoration: none; text-align: center; cursor: pointer; transition: transform var(--d-2) var(--ease-spring), background-color var(--d-1), box-shadow var(--d-2) var(--ease-out); }
.btn:active { transform: scale(.97); }
@media (min-width: 600px) { .btn { white-space: nowrap; } }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.06rem; }
.btn-wa, .btn.wa { background: var(--leaf); color: #fff; box-shadow: 0 10px 24px -12px rgb(20 77 41 / .7); }
.btn-wa:hover, .btn.wa:hover { background: var(--leaf-deep); transform: translateY(-2px); }
.btn-ghost, .btn.ghost { border-color: var(--line-2); background: var(--paper); color: var(--ink); }
.btn-ghost:hover, .btn.ghost:hover { border-color: var(--gold-3); transform: translateY(-2px); }
.btn-ghost-light { border-color: rgb(251 239 216 / .45); color: var(--on-dark); background: transparent; }
.btn-ghost-light:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.btn-gold { color: #2b1a05; background: var(--zari); background-size: 160% 100%; box-shadow: 0 12px 26px -12px rgb(229 192 107 / .8); transition: transform var(--d-2) var(--ease-spring), background-position var(--d-3) var(--ease-out); }
.btn-gold:hover { background-position: 100% 0; transform: translateY(-2px); }
.btn.wide { width: 100%; }

/* ---------- Navigation and footer ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); max-width: var(--wrap); margin: 0 auto; padding: var(--s-3) var(--gutter); position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 700 1.28rem/1.2 var(--f-display); white-space: nowrap; }
.brand img { width: 30px; height: 30px; transition: transform var(--d-4) var(--ease-spring); }
.brand:hover img { transform: rotate(72deg); }
.links { display: flex; align-items: center; gap: 2px; }
.links a { padding: 8px 10px; border-radius: var(--r-pill); color: var(--ink-2); font-size: var(--t-small); font-weight: 700; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.links a:hover, .links a[aria-current="page"] { background: var(--cloth-deep); color: var(--ink); }
.links a.lang { margin-left: 4px; border: 1px solid var(--line-2); }
@media (max-width: 440px) {
  .brand { font-size: 1.12rem; gap: 6px; }
  .brand img { width: 26px; height: 26px; }
  .links a { padding: 7px 8px; font-size: .875rem; }
  .links a[href*="#prices"] { display: none; } /* the packs are one tap away on the landing page itself */
}
@media (max-width: 360px) { .links a:not(.lang) { display: none; } } /* the smallest phones keep the brand and the language switch */

.foot { margin-top: 0; background: var(--maroon-ink); color: var(--on-dark-2); }
.foot::before { content: ""; display: block; height: 14px; background: var(--kasavu-bg); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: var(--s-7) var(--gutter) var(--s-8); display: grid; gap: var(--s-4); justify-items: center; text-align: center; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; color: var(--on-dark); font: 700 1.5rem/1.3 var(--f-display); }
.foot-brand em { font: 400 1.3rem/1.3 var(--f-hand); color: var(--gold-2); }
:lang(en) .foot-brand em { font-style: italic; font-size: 1.1rem; }
.foot-note { max-width: 46ch; font-size: var(--t-small); }
.foot-wa { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; font-size: var(--t-small); }
.foot-wa a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 4px; color: var(--on-dark); font: 600 1.06rem/1.2 var(--f-latin); letter-spacing: .02em; text-decoration: none; border-bottom: 1px solid rgb(229 192 107 / .5); }
.foot-wa .i { color: var(--gold-2); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 4px; font-size: var(--t-small); }
.foot-links a { padding: 6px 10px; color: var(--on-dark); text-decoration: none; border-radius: var(--r-pill); white-space: nowrap; }
.foot-links a:hover { background: rgb(251 239 216 / .1); }
.foot-links a.lang { border: 1px solid rgb(251 239 216 / .35); font-weight: 700; }
.foot-made { font-size: var(--t-micro); color: var(--on-dark-2); opacity: .9; }
.foot :focus-visible { outline-color: var(--focus-dark); }

/* ---------- Sections ---------- */
.sec { position: relative; padding: var(--sec-y) 0; }
.split { display: grid; gap: var(--s-7); }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: var(--s-8); }
  .sticky-head { position: sticky; top: 72px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; gap: var(--s-5); max-width: var(--wrap); margin: 0 auto; padding: var(--s-3) var(--gutter) var(--s-7); overflow-x: clip; }
.hero-copy { position: relative; z-index: 2; text-align: center; }
.hero-title { margin-top: var(--s-2); }
.ht-a, .ht-b { display: block; }
.ht-a { font-size: var(--t-hero); font-weight: 700; line-height: 1.22; padding-bottom: .04em; overflow-wrap: normal; }
.ht-b { margin-top: .12em; font-size: var(--t-hero-b); font-weight: 700; color: var(--ink); }
/* The brand word (brand.name in Malayalam) is about 7.3 em wide in this face: size it to the room it has, so it never breaks inside the word. */
:lang(ml) .ht-a { font-size: min(5.4rem, calc((100vw - 2 * var(--gutter)) / 7.5)); }
:lang(ml) .ht-b { font-size: min(2.5rem, calc((100vw - 2 * var(--gutter)) / 13.6)); }
:lang(en) .ht-a { font-weight: 600; line-height: 1.02; }
:lang(en) .ht-b { font-style: italic; font-weight: 400; line-height: 1.04; }
/* The gold headline catches the light once as the page opens (the sheen keyframes, under Motion). */
.hero .ht-a.zari-text { background-image: var(--zari-sheen); background-size: 240% 100%; background-position: 0 0; }
.lede { max-width: 34ch; margin: var(--s-4) auto 0; font-size: var(--t-lede); color: var(--ink-2); }
.hero .cta { display: flex; flex-direction: column; align-items: stretch; gap: var(--s-3); max-width: 360px; margin: var(--s-5) auto 0; }
.hero-note { margin-top: var(--s-3); font-size: var(--t-small); color: var(--ink-3); text-wrap: balance; }
@media (min-width: 600px) { .hero .cta { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: none; } }
/* Phones and tablets: the picture comes straight after the headline, so the designs are seen in the first second. */
@media (max-width: 959px) {
  .hero { display: flex; flex-direction: column; gap: 0; }
  .hero-copy { display: contents; }
  .hero .hand { order: 1; }
  .hero-title { order: 2; }
  .stage { order: 3; margin-top: var(--s-6); }
  .hero .lede { order: 4; margin-top: var(--s-7); }
  .hero .cta { order: 5; }
  .hero-note { order: 6; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: var(--s-6); min-height: min(780px, calc(100svh - 60px)); padding-top: 0; padding-bottom: var(--s-8); }
  .hero-copy { text-align: left; container-type: inline-size; }
  :lang(ml) .ht-a { font-size: min(5.6rem, 13.2cqi); }
  :lang(ml) .ht-b { font-size: min(2.6rem, 7.2cqi); }
  /* "Your wedding kuri," is about 9.1 em wide in Fraunces: sized to sit on one line beside the phone. */
  :lang(en) .ht-a { font-size: min(5.2rem, 10.8cqi); }
  :lang(en) .ht-b { font-size: min(3.2rem, 7.4cqi); }
  .hero-title { text-wrap: pretty; }
  .hero .lede { margin-left: 0; }
  .hero .cta { justify-content: flex-start; margin-left: 0; }
  .hero .btn-lg { padding: 0 22px; font-size: 1rem; }
}

/* The stage: a phone in 3D, standing in a doorway arch, with designs fanned behind it in real depth.
   Tilt comes from site.js (scroll, pointer, drag); --p (0 to 1, how far the hero has scrolled) fans the cards wider. */
.stage { --phone-w: min(52vw, 214px); --card-w: calc(var(--phone-w) * .74); position: relative; height: calc(var(--phone-w) * 19 / 9 + 64px); perspective: 1000px; perspective-origin: 50% 40%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.stage-inner { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
/* The doorway: a double gold line on a fold of cloth, far behind the phone. A shape, not a glow. */
.stage-arch { position: absolute; left: 50%; bottom: 4%; width: calc(var(--phone-w) * 1.72); height: 92%; transform: translate3d(-50%, 0, -240px) scale(1.24); border-radius: 999px 999px 0 0; background: linear-gradient(var(--cloth-deep), rgb(240 228 202 / .55) 70%, rgb(240 228 202 / 0)); box-shadow: inset 0 0 0 1.5px var(--gold-3), inset 0 0 0 9px var(--cloth), inset 0 0 0 10px var(--gold-2); -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); pointer-events: none; }
.stage-arch i { position: absolute; left: 50%; top: 22px; width: 42%; height: 6px; transform: translateX(-50%); background: var(--kasavu-bg); background-size: 100% 1px, 100% 2px, 100% 1px; opacity: .8; }
.strands { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.strand { position: absolute; top: -8%; width: 30px; height: auto; transform: translate3d(0, calc(var(--p, 0) * var(--py)), var(--sz)); opacity: var(--so); }
.s1 { left: 9%; --sz: -160px; --py: -60px; --so: .75; top: 4%; width: 26px; }
.s2 { right: 7%; --sz: -120px; --py: -40px; --so: .85; top: 6%; }
.s3 { left: 1%; --sz: 90px; --py: -140px; --so: 1; top: 0; width: 34px; }
.s4 { right: 18%; --sz: 40px; --py: -100px; --so: 1; top: 0; display: none; }
.fan-card { position: absolute; left: 50%; top: 47%; width: var(--card-w); transform: translate(-50%, -50%) translate3d(calc(var(--x) * (1 + var(--p, 0) * .4)), calc(var(--y) - var(--p, 0) * 30px), var(--z)) rotate(calc(var(--r) * (1 + var(--p, 0) * .5))); transform-style: preserve-3d; }
.fan-card .kuri { animation: float 7s var(--ease-in-out) infinite alternate; animation-delay: calc(var(--i) * -1.7s); }
.f1, .f4 { display: none; }
.f2 { --x: calc(var(--phone-w) * -.5); --y: -6%; --z: -130px; --r: -9deg; }
.f3 { --x: calc(var(--phone-w) * .5); --y: 5%; --z: -130px; --r: 9deg; }
.phone { position: absolute; left: 50%; top: 0; width: var(--phone-w); transform: translate3d(-50%, 0, 70px); transform-style: preserve-3d; }
.phone-status .phone-body { animation: float 8s var(--ease-in-out) infinite alternate; }
/* The caption: a printed tag on a thread, square-cornered, with a gold hairline. */
.phone-chip { position: absolute; left: 50%; bottom: -26px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 8px; border-radius: var(--r-tag); background: var(--maroon); color: var(--gold-1); font-size: var(--t-micro); font-weight: 700; line-height: 1.3; white-space: nowrap; box-shadow: inset 0 0 0 1px rgb(229 192 107 / .55), inset 0 0 0 3px var(--maroon), inset 0 0 0 4px rgb(229 192 107 / .3), var(--sh-2); transform: translate3d(-50%, 0, 60px); }
.phone-chip .i { color: var(--gold-2); }
@media (min-width: 600px) {
  .stage { --phone-w: 230px; }
  .f1 { display: block; --x: calc(var(--phone-w) * -.92); --y: -20%; --z: -260px; --r: -15deg; }
  .f4 { display: block; --x: calc(var(--phone-w) * .92); --y: 14%; --z: -260px; --r: 15deg; }
  .f2 { --x: calc(var(--phone-w) * -.55); }
  .f3 { --x: calc(var(--phone-w) * .55); }
  .s4 { display: block; }
}
@media (min-width: 960px) {
  .stage { --phone-w: 262px; height: 660px; }
  /* The strings hang from inside the stage, below the navigation, never behind it. */
  .strands { top: 40px; }
  .s1 { top: 0; }
  .s2 { top: 2%; }
  .s3 { top: 0; left: 0; }
  .s4 { top: 4%; }
  .phone { top: 50%; transform: translate3d(-50%, -54%, 70px); }
  .fan-card { top: 46%; }
  .f1 { --x: calc(var(--phone-w) * -.76); }
  .f4 { --x: calc(var(--phone-w) * .76); }
}

/* Phone frames (hero status phone and the features phone) */
.phone-body { position: relative; aspect-ratio: 9 / 19; padding: 9px; border-radius: var(--r-phone); background: linear-gradient(150deg, #4d3a2e, #1b120e 38%, #2b1e17 70%, #120b08); box-shadow: var(--sh-3), inset 0 0 0 1px rgb(255 255 255 / .14), inset 0 0 0 3px #0d0806; }
.phone-body::before { content: ""; position: absolute; z-index: 4; top: 17px; left: 50%; width: 30%; height: 16px; border-radius: var(--r-pill); background: #0a0605; transform: translateX(-50%); }
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--r-phone) - 9px); background: var(--screen, #111); container-type: inline-size; }
.phone-screen::after { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(118deg, rgb(255 255 255 / .16), rgb(255 255 255 / 0) 34%); pointer-events: none; }
.status-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; }
/* WhatsApp-style scrims: warm lamp-black, so white text reads over any design, even a cream one. */
.status-ui { position: absolute; inset: 0 0 auto; z-index: 2; padding: 40px 11px 34px; color: #fff; background: linear-gradient(rgb(var(--scrim) / .82), rgb(var(--scrim) / .6) 52%, rgb(var(--scrim) / 0)); font-size: 12.5px; line-height: 1.3; text-shadow: 0 1px 2px rgb(var(--scrim) / .5); }
.status-bars { display: block; height: 3px; overflow: hidden; border-radius: 3px; background: rgb(255 255 255 / .38); }
.status-bars i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; animation: status var(--status-dur, 9s) linear infinite; }
.status-who { display: flex; align-items: center; gap: 7px; margin-top: 9px; white-space: nowrap; }
.status-who img { flex: none; width: 26px; height: 26px; padding: 3px; border-radius: 50%; background: var(--maroon); box-shadow: 0 0 0 1.5px var(--gold-2); }
.status-who b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.status-who small { flex: none; font-size: 11px; opacity: .85; }
@container (max-width: 236px) { .status-who small { display: none; } .status-ui { font-size: 12px; } }
.status-reply { position: absolute; inset: auto 0 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 30px 12px 16px; background: linear-gradient(rgb(var(--scrim) / 0), rgb(var(--scrim) / .7)); color: #fff; font-size: 12px; }
.status-reply span { flex: 1; padding: 7px 14px 6px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6); }
.status-reply .i { width: 20px; height: 20px; }

/* ---------- Template pictures ("kuri" cards) ---------- */
.kuri { position: relative; display: block; border-radius: var(--r-card); }
.kuri img { display: block; width: 100%; height: auto; border-radius: var(--r-card); background: var(--paper); box-shadow: var(--sh-2); transition: transform var(--d-3) var(--ease-spring), box-shadow var(--d-3) var(--ease-out); }
a.kuri:hover img, a.kuri:focus-visible img { transform: translateY(-6px) rotate(-1.2deg); box-shadow: var(--sh-3); }
.kuri-lux img { box-shadow: var(--sh-gold); }
a.kuri-lux:hover img, a.kuri-lux:focus-visible img { box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--gold-3), var(--sh-3); }
.kuri-empty { aspect-ratio: 3 / 4; border: 1px dashed var(--line-2); }

/* ---------- The tier bar: three packs with their prices (matrix column heads, and the price bar above the packs) ---------- */
.tierbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.tb { display: grid; justify-items: center; padding: 6px 4px 7px; border-radius: var(--r-card); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); text-align: center; text-decoration: none; line-height: 1.25; transition: transform var(--d-2) var(--ease-spring), box-shadow var(--d-2); }
.tb b { font: 700 var(--t-small)/1.35 var(--f-display); }
.tb span { font: 600 1.05rem/1.2 var(--f-latin); color: var(--ink-2); }
.tb-premium { box-shadow: inset 0 0 0 1.5px var(--gold-3); }
.tb-luxury { background: var(--maroon); color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--gold-2), inset 0 0 0 3px var(--maroon), inset 0 0 0 4px rgb(229 192 107 / .45); }
.tb-luxury span { color: var(--gold-2); }
.tb:hover { transform: translateY(-2px); }
.tb[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.tb-luxury[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--gold-1); }
.tb:focus-visible { outline-offset: 2px; }

/* ---------- The designs: a 4 x 3 matrix (communities by packs) ---------- */
.matrix { display: grid; gap: var(--s-5); }
.mx-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); align-items: end; }
.mx-head { position: sticky; top: 0; z-index: 3; margin: 0 calc(var(--s-2) * -1); padding: var(--s-3) var(--s-2) var(--s-2); background: var(--cloth); }
.mx-label { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s-3); font-weight: 700; font-size: var(--t-small); color: var(--ink-2); }
.mx-label::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.mx-row .kuri-lux { margin: 0 2px; }
@media (min-width: 960px) {
  .mx-row { grid-template-columns: 96px repeat(3, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
  .mx-head .tb:first-child { grid-column-start: 2; }
  .mx-label { grid-column: auto; align-self: center; flex-direction: column; align-items: flex-start; gap: var(--s-2); font-size: var(--t-body); }
  .mx-label::after { flex: none; width: 36px; height: 6px; background: var(--kasavu-bg); background-size: 100% 1px, 100% 2px, 100% 1px; }
}

/* ---------- Features: three chapters of the wedding, beside a phone showing a sample page ---------- */
.sec-features { background: var(--cloth-deep); }
.sec-features > .kasavu { position: absolute; top: 0; left: 0; right: 0; }
.feat-grid { display: grid; gap: var(--s-6); }
@media (min-width: 960px) {
  .feat-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "head mock" "list mock"; column-gap: var(--s-8); row-gap: 0; }
  .feat-grid > .sec-head { grid-area: head; }
  .feat-grid > .mock-wrap { grid-area: mock; align-self: start; }
  .feat-grid > .feats { grid-area: list; }
}
.feats { display: grid; margin-top: var(--s-6); padding: 0; list-style: none; }
.feat-chapter { display: flex; align-items: center; gap: var(--s-3); margin: var(--s-7) 0 var(--s-2); font: 700 var(--t-2)/1.3 var(--f-display); color: var(--ink); }
.feat-chapter:first-child { margin-top: 0; }
.feat-chapter::after { content: ""; flex: 1; height: 6px; background: var(--kasavu-bg); background-size: 100% 1px, 100% 2px, 100% 1px; opacity: .7; }
.ch-n { font: italic 400 1.6rem/1 var(--f-latin); color: var(--gold-ink); }
.ch-after.feat-chapter { color: var(--maroon); }
.feat { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-4); align-items: baseline; padding: var(--s-4) 0 var(--s-4) var(--s-5); border-top: 1px dashed var(--line-2); transition: background-color var(--d-2); }
.feat::before { content: ""; position: absolute; left: 0; top: var(--s-4); bottom: var(--s-4); width: 3px; border-radius: 2px; background: var(--line-2); transition: background-color var(--d-2), transform var(--d-3) var(--ease-spring); transform-origin: 50% 0; }
.feat-ch { display: none; }
.feat h3 { display: flex; align-items: center; gap: 10px; font-size: var(--t-3); }
.feat-i { width: 22px; height: 22px; color: var(--maroon-2); }
.feat > p { grid-column: 1; margin-top: 2px; color: var(--ink-2); }
.feat .tag { grid-column: 2; grid-row: 1; }
.feat.is-on::before { background: var(--zari-ink); }
.feat.is-on h3 { color: var(--maroon); }
.ch-after.feat { margin-top: var(--s-2); padding: var(--s-5) var(--s-5); border: 0; border-radius: var(--r-card); background: var(--maroon); color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--gold-2), inset 0 0 0 4px var(--maroon), inset 0 0 0 5px rgb(229 192 107 / .4); }
.ch-after.feat::before { display: none; }
.ch-after.feat > p { color: var(--on-dark-2); }
.ch-after.feat .feat-i, .ch-after.feat .tag { color: var(--gold-2); }
.ch-after.feat.is-on h3 { color: var(--gold-1); }
@media (max-width: 959px) {
  .feats { grid-auto-flow: column; grid-auto-columns: min(80%, 320px); gap: var(--s-3); margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) var(--s-4); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .feats::-webkit-scrollbar { display: none; }
  .feat-chapter { display: none; }
  .feat { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; align-content: start; row-gap: var(--s-2); padding: var(--s-4); border: 0; border-radius: var(--r-card); background: var(--paper); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); scroll-snap-align: center; }
  .feat::before { left: var(--s-4); right: var(--s-4); top: 0; bottom: auto; width: auto; height: 3px; border-radius: 0 0 2px 2px; }
  .feat-ch { display: block; font-size: var(--t-micro); font-weight: 700; color: var(--gold-ink); }
  .feat .tag { grid-column: 1; grid-row: auto; align-self: end; margin-top: var(--s-1); padding-top: var(--s-3); border-top: 1px dashed var(--line-2); }
  .ch-after.feat .tag { border-top-color: rgb(229 192 107 / .3); }
  .feat.is-on { box-shadow: var(--sh-2), inset 0 0 0 1.5px var(--gold-3); }
  .ch-after.feat { margin-top: 0; }
  .ch-after .feat-ch { color: var(--gold-2); }
  .js .feats .feat[data-reveal] { opacity: 1; transform: none; }
}

.mock-wrap { display: grid; justify-items: center; gap: var(--s-5); }
.mock-more { margin-top: var(--s-3); font-size: var(--t-small); }
.phone-mock { position: relative; left: auto; top: auto; transform: none; --phone-w: min(68vw, 270px); width: var(--phone-w); }
@media (min-width: 960px) { .mock-wrap { position: sticky; top: 64px; padding-top: var(--s-5); } .phone-mock { --phone-w: 290px; } }
/* The sample page inside the phone, drawn like the real thing: the design's own colours, centred, ruled like a printed card. */
.mock { background: var(--m-bg); color: var(--m-ink); font-size: 12.5px; line-height: 1.55; text-align: center; }
.mock-scroll { padding: 0 0 30px; transition: transform 900ms var(--ease-out); }
.mock-cover img { display: block; width: 100%; height: auto; }
.mock [data-part]:not(.mock-cover) { position: relative; margin: 10px 10px 0; padding: 12px 12px 13px; border-radius: var(--r-card); background: var(--m-paper); box-shadow: inset 0 0 0 1px var(--m-line), inset 0 0 0 4px var(--m-paper), inset 0 0 0 5px var(--m-line); transition: box-shadow var(--d-3) var(--ease-out), transform var(--d-3) var(--ease-spring); }
.mock [data-part].is-on { box-shadow: inset 0 0 0 1px var(--m-line), 0 0 0 2.5px var(--gold-3), 0 12px 22px -8px rgb(40 20 0 / .4); transform: scale(1.04); }
.mock-cover.is-on img { outline: 3px solid var(--gold-3); outline-offset: -3px; }
.mock-h { font: 700 13.5px/1.35 var(--f-display); color: var(--m-ink); }
:lang(en) .mock-h { font-weight: 600; font-size: 14px; }
.mock-rule { display: block; width: 46px; height: 7px; margin: 0 auto 7px; background: linear-gradient(var(--m-accent), var(--m-accent)) center / 100% 1px no-repeat, linear-gradient(45deg, transparent 40%, var(--m-accent) 40% 60%, transparent 60%) center / 7px 7px no-repeat; opacity: .8; }
.mock-notice { display: flex; gap: 8px; align-items: flex-start; text-align: left; }
.mock-notice .i { width: 17px; height: 17px; margin-top: 1px; color: var(--m-accent); }
.mock-notice b { color: var(--m-ink); }
.mock-count div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 6px; color: var(--m-soft); font-size: 11.5px; line-height: 1.3; }
.mock-count span { display: grid; gap: 2px; }
.mock-count b { color: var(--m-ink); font: 600 21px/1.1 var(--f-latin); font-variant-numeric: tabular-nums; }
.mock-when { margin-top: 3px; font-weight: 700; }
.mock-where { color: var(--m-soft); }
.mock-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.mock .mock-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--m-ink); color: var(--m-paper); font-weight: 700; font-size: 12px; line-height: 1.2; }
.mock .mock-btn .i { width: 14px; height: 14px; }
.mock .mock-btn.ghost { background: var(--m-paper); color: var(--m-ink); box-shadow: inset 0 0 0 1.5px var(--m-accent); }
.mock-live { background: transparent !important; box-shadow: none !important; padding: 4px 0 0 !important; }
.mock .mock-btn.live { min-height: 36px; padding: 6px 16px; box-shadow: 0 0 0 3px var(--m-paper), 0 0 0 4px var(--m-accent); }
.mock-live.is-on .mock-btn { box-shadow: 0 0 0 2.5px var(--gold-3); }
.mock-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--kumkum); box-shadow: 0 0 0 2px rgb(255 255 255 / .85); animation: pulse 1.6s var(--ease-in-out) infinite; }
.mock-album div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 7px; }
.mock-album i { aspect-ratio: 1; border-radius: 2px; background: url("/assets/brand/album.svg") 0 0 / 300% 100% no-repeat; box-shadow: 0 2px 6px -2px rgb(0 0 0 / .35); }
.mock-album .art-garland { background-position: 50% 0; transform: rotate(2deg); }
.mock-album .art-arch { background-position: 100% 0; transform: rotate(-1.5deg); }
.mock-wish blockquote { margin-top: 7px; padding: 9px 10px; border-radius: var(--r-card); background: var(--m-panel); box-shadow: inset 3px 0 0 var(--m-accent); text-align: left; }
.mock-wish small { display: block; margin-top: 4px; color: var(--m-soft); font-size: 11.5px; font-weight: 700; }
:lang(en) .mock-wish blockquote p { font-family: var(--f-latin); font-style: italic; } /* Fraunces has a true italic; Malayalam stays upright */
.mock-cam { display: grid !important; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; }
.mock-qr { width: 52px; height: 52px; border-radius: 2px; background: #fff url("/assets/brand/qr.svg") center / 100% no-repeat; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--m-line); }
.mock-cam p { color: var(--m-soft); font-size: 12px; line-height: 1.45; }
.mock-cam b { display: block; color: var(--m-ink); font-size: 12.5px; }

/* ---------- How an order runs: a WhatsApp chat, in the product's own channel ---------- */
.how-grid { display: grid; gap: var(--s-6); }
@media (min-width: 960px) {
  .how-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; gap: var(--s-8); }
  .how-grid > .sec-head { position: sticky; top: 96px; padding-top: var(--s-6); }
}
.chat { max-width: 470px; width: 100%; justify-self: center; overflow: hidden; border-radius: var(--r-ui); background: var(--chat); box-shadow: var(--sh-3), inset 0 0 0 1px var(--line); }
.chat-top { display: flex; align-items: center; gap: var(--s-3); padding: 12px 16px; background: var(--maroon); color: var(--on-dark); }
.chat-top img { width: 36px; height: 36px; padding: 5px; border-radius: 50%; background: var(--maroon-ink); box-shadow: 0 0 0 1.5px var(--gold-2); }
.chat-top p { display: grid; line-height: 1.3; }
.chat-top b { font: 700 1.05rem/1.3 var(--f-display); }
.chat-top small { font-size: var(--t-micro); color: var(--on-dark-2); }
/* The wallpaper: a faint woven check, like the cotton of a mundu. */
.chat-body { display: grid; gap: 6px; padding: var(--s-4) var(--s-3) var(--s-5); background: repeating-linear-gradient(0deg, rgb(140 100 24 / .045) 0 1px, transparent 1px 14px), repeating-linear-gradient(90deg, rgb(140 100 24 / .045) 0 1px, transparent 1px 14px), var(--chat); }
.chat-step { justify-self: center; display: inline-flex; align-items: center; gap: 8px; margin: var(--s-3) 0 var(--s-1); padding: 4px 12px 3px 5px; border-radius: var(--r-card); background: var(--paper); box-shadow: var(--sh-1); font-size: var(--t-micro); font-weight: 700; color: var(--ink-2); line-height: 1.4; }
.chat-step b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--maroon); color: var(--gold-1); font: italic 400 .9rem/1 var(--f-latin); }
.chat-step:first-child { margin-top: 0; }
.msg { display: flex; }
.msg-out { justify-content: flex-end; }
.bubble { position: relative; max-width: 84%; padding: 8px 10px 6px 12px; border-radius: var(--r-bubble); background: var(--paper); box-shadow: 0 1px 1.5px rgb(74 38 14 / .14); font-size: var(--t-small); line-height: 1.55; }
.msg-in .bubble { border-top-left-radius: 2px; }
.msg-out .bubble { border-top-right-radius: 2px; background: var(--bubble-out); }
.msg-time { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 2px; font: 400 .7rem/1 var(--f-text); color: var(--ink-3); }
.chat-ticks { width: 16px; height: 16px; color: #2f7fb5; stroke-width: 1.8; }
.chat-link { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 7px 9px; border-radius: 6px; background: var(--cloth); color: var(--maroon-2); font-size: var(--t-micro); font-weight: 700; overflow-wrap: anywhere; }
.chat-link .i { width: 18px; height: 18px; }
.chat-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 6px; padding: 6px; border-radius: 6px; background: var(--cloth); color: var(--ink); }
.chat-card img { width: 64px; height: auto; border-radius: 2px; box-shadow: var(--sh-gold); }
.chat-card b { display: block; font: 700 1rem/1.35 var(--f-display); }
.chat-card small { color: var(--ink-3); font-size: var(--t-micro); }
.chat-paid { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 9px; border-radius: 6px; background: rgb(255 255 255 / .6); color: var(--leaf-deep); font-size: var(--t-micro); font-weight: 700; }
.chat-paid .i { width: 16px; height: 16px; stroke-width: 2.4; }
.chat-kit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.chat-kit span { display: grid; justify-items: center; gap: 4px; padding: 9px 4px 7px; border-radius: 6px; background: var(--cloth); color: var(--maroon-2); font-size: .74rem; font-weight: 700; line-height: 1.3; text-align: center; }
.chat-kit .i { width: 22px; height: 22px; }

/* ---------- Packs (also the design tiers) ---------- */
.sec-packs { background: linear-gradient(var(--cloth), var(--cloth-deep) 60%, var(--cloth)); }
.pack-bar { position: sticky; top: 0; z-index: 10; max-width: 560px; margin: var(--s-6) auto 0; padding: var(--s-2) 0; background: linear-gradient(var(--cloth-deep) 80%, rgb(240 228 202 / 0)); }
@media (min-width: 920px) { .pack-bar { display: none; } }
.packs { display: grid; gap: var(--s-6); max-width: 1120px; margin: var(--s-6) auto 0; }
@media (min-width: 920px) { .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); align-items: stretch; margin-top: var(--s-7); } }
.pack { position: relative; display: flex; flex-direction: column; padding: var(--s-7) var(--s-5) var(--s-5); border-radius: var(--r-arch); background: var(--paper); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); text-align: center; scroll-margin-top: 84px; }
.pack-head { display: grid; justify-items: center; }
.pack-name { font-size: var(--t-2); }
.pack-price { margin-top: var(--s-1); font: 600 clamp(2.6rem, 2vw + 2rem, 3.3rem)/1 var(--f-latin); font-variant-numeric: lining-nums; letter-spacing: -.02em; }
.pack-price span { margin-right: 2px; font-size: .5em; vertical-align: .62em; color: var(--ink-3); }
.pack-line { margin-top: var(--s-3); max-width: 28ch; color: var(--ink-2); }
.pack-fan { --spread: 1; position: relative; height: 140px; margin: var(--s-5) 0 var(--s-3); }
.pack-fan .kuri { position: absolute; left: 50%; bottom: 0; width: 84px; transform-origin: 50% 130%; transform: translateX(-50%) translateX(calc(var(--k) * 44px * var(--spread))) rotate(calc(var(--k) * 8deg * var(--spread))); transition: transform var(--d-3) var(--ease-spring); }
.pack-fan .kuri img { box-shadow: var(--sh-1), 0 8px 18px -8px rgb(74 38 14 / .4); }
.pack:hover .pack-fan .kuri, .pack:focus-within .pack-fan .kuri { transform: translateX(-50%) translateX(calc(var(--k) * 56px)) rotate(calc(var(--k) * 11deg)) translateY(-4px); }
.pack-fan .kuri:hover { z-index: 2; }
.pack-designs { font: 700 var(--t-small)/1.5 var(--f-text); color: var(--ink-2); }
.pack-designs span { display: block; font-weight: 400; color: var(--ink-3); }
.plus { margin-top: var(--s-5); font-weight: 700; font-size: var(--t-small); color: var(--maroon-2); }
.pack-list { display: grid; margin: var(--s-3) 0 var(--s-5); padding: 0; list-style: none; text-align: left; }
.pack-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 9px 0 7px; border-top: 1px dashed var(--line-2); line-height: 1.5; }
.pack-list b { font-weight: 700; }
.pack-list .i { width: 20px; height: 20px; margin-top: 1px; color: var(--gold-4); stroke-width: 2.2; }
.pack-list small { color: var(--ink-3); font-size: var(--t-micro); }
.pack-list em { display: block; margin-top: 1px; font-style: normal; font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-2); }
@media (max-width: 919px) { .pack-premium .pack-list em { display: none; } } /* phones: only Luxury spells out what each part gives, so the list stays short */
.pack .btn { margin-top: auto; width: 100%; }
.pack-premium { border: 1.5px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--zari-soft) border-box; box-shadow: var(--sh-2); }
.pack.best { padding-top: var(--s-8); border: 2px solid transparent; background: linear-gradient(170deg, #6b1426, var(--maroon) 45%, #3d0914) padding-box, var(--zari) border-box; color: var(--on-dark); box-shadow: 0 40px 70px -34px rgb(90 15 29 / .75), 0 0 0 6px rgb(229 192 107 / .14); }
.pack.best .pack-price { background: var(--zari-on-dark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pack.best .pack-price span { color: var(--gold-2); -webkit-text-fill-color: var(--gold-2); }
.pack.best .pack-line, .pack.best .pack-designs { color: var(--on-dark); }
.pack.best .pack-designs span, .pack.best .pack-list small, .pack.best .pack-list em { color: var(--on-dark-2); }
.pack.best .plus { color: var(--gold-2); }
.pack.best .pack-list li { border-top-color: rgb(229 192 107 / .3); }
.pack.best .pack-list .i { color: var(--gold-2); }
.pack.best .pack-list b { color: var(--gold-1); font-size: 1.06rem; }
.pack.best .pack-fan { height: 160px; }
.pack.best .pack-fan .kuri { width: 96px; }
.pack.best .pack-fan .kuri img { box-shadow: 0 0 0 2px var(--maroon), 0 0 0 3.5px var(--gold-2), 0 12px 24px -10px rgb(0 0 0 / .6); }
.pack.best :focus-visible, .pack-ribbon:focus-visible { outline-color: var(--focus-dark); }
/* The Luxury ribbon: a strip of zari with notched ends, pinned across the top of the arch. */
.pack-ribbon { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); padding: 6px 26px 5px; background: var(--zari); color: #2b1a05; font-size: var(--t-micro); font-weight: 700; line-height: 1.3; white-space: nowrap; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 10px 50%); }
@media (min-width: 920px) { .pack.best { margin: -28px 0 -12px; padding-bottom: var(--s-6); } }

/* ---------- Good to know: one printed card ---------- */
.note-card { position: relative; max-width: 980px; margin: 0 auto; padding: var(--s-7) var(--gutter); border-radius: var(--r-card); background: var(--paper); box-shadow: var(--sh-1); }
.note-card::before, .note-card::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; background: var(--kasavu-bg); }
.note-card::before { top: 10px; }
.note-card::after { bottom: 10px; }
.note-card h2 { font-size: var(--t-1); text-align: center; }
.know { display: grid; gap: 0 var(--s-7); margin-top: var(--s-5); padding: 0; list-style: none; }
.know li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4) 0; border-top: 1px dashed var(--line-2); }
.know .i { width: 22px; height: 22px; margin-top: 3px; color: var(--leaf); stroke-width: 2.2; }
.know b { display: block; font-family: var(--f-display); font-size: var(--t-3); line-height: var(--lh-display); }
.know p { color: var(--ink-2); }
.know p b { color: var(--ink); margin-bottom: 2px; }
@media (min-width: 760px) { .know { grid-template-columns: 1fr 1fr; } .note-card { padding: var(--s-8) var(--s-7); } }

/* ---------- Final call to action: maroon silk with a river of designs ---------- */
.final { overflow: hidden; padding-top: 0; background: radial-gradient(120% 70% at 50% 100%, #7a1a2c, var(--maroon) 55%, #3d0914); color: var(--on-dark); }
.final .kasavu { position: relative; z-index: 2; }
.final-copy { position: relative; z-index: 2; margin-top: var(--s-7); }
.final h2 { font-size: var(--t-1); }
.final p { max-width: 40ch; margin: var(--s-4) auto 0; color: var(--on-dark-2); font-size: var(--t-lede); }
.final .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-6); }
.final :focus-visible { outline-color: var(--focus-dark); }
.marquee { position: relative; padding: var(--s-7) 0 var(--s-2); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: river 70s linear infinite; }
.marquee-set { display: flex; gap: var(--s-5); padding-right: var(--s-5); }
.marquee .kuri { width: clamp(120px, 15vw, 170px); }
.marquee .kuri:nth-child(odd) { transform: rotate(-2.5deg) translateY(6px); }
.marquee .kuri:nth-child(even) { transform: rotate(2deg) translateY(-6px); }
.marquee .kuri img { box-shadow: 0 18px 30px -14px rgb(0 0 0 / .6); }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }

/* The phone-only WhatsApp dock (added by site.js while the hero's own buttons are out of sight), with the starting price */
.dock { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 60; display: flex; transform: translateY(150%); transition: transform var(--d-3) var(--ease-spring); }
.dock .btn { flex: 1; min-height: 54px; padding: 0 16px; gap: 9px; box-shadow: 0 14px 30px -10px rgb(20 50 30 / .6), 0 0 0 4px rgb(248 241 227 / .9); }
.dock .btn small { margin-left: 2px; padding-left: 10px; border-left: 1px solid rgb(255 255 255 / .4); font: 600 .9rem/1.2 var(--f-latin); white-space: nowrap; }
:lang(ml) .dock .btn small { font-family: var(--f-text); font-weight: 700; }
.dock.is-on { transform: none; }
@media (min-width: 760px) { .dock { display: none; } }

/* ---------- Page heads (gallery, form, documents) ---------- */
.page-head { max-width: 860px; margin: 0 auto; padding: var(--s-6) var(--gutter) var(--s-5); text-align: center; }
.page-head h1 { margin-top: var(--s-2); font-size: var(--t-1); }
.page-head .lede { max-width: 46ch; margin: var(--s-4) auto 0; }
.form .page-head { padding-left: 0; padding-right: 0; }

/* ---------- Gallery ---------- */
.filters { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); padding: var(--s-3) var(--gutter); background: var(--cloth); box-shadow: 0 1px 0 var(--line); }
.filter-row { display: flex; align-items: center; gap: var(--s-3); min-width: 0; max-width: var(--wrap); width: 100%; margin: 0 auto; }
.filter-label { flex: none; width: 3.6em; font-size: var(--t-micro); font-weight: 700; color: var(--ink-3); }
.chips { display: flex; min-width: 0; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; padding: 2px 24px 2px 2px; margin: -2px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; min-height: 40px; padding: 0 15px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--paper); color: var(--ink-2); font-weight: 700; font-size: var(--t-small); line-height: 1.2; cursor: pointer; transition: background-color var(--d-1), color var(--d-1), transform var(--d-2) var(--ease-spring); }
.chips button:hover { border-color: var(--gold-3); }
.chips button:active { transform: scale(.95); }
.chips button small { font: 600 .8rem/1 var(--f-latin); opacity: .8; }
.chips button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--cloth); }
.chips button[data-t="luxury"][aria-pressed="true"] { border-color: var(--maroon); background: var(--maroon); color: var(--gold-1); }
@media (min-width: 760px) { .filters { grid-template-columns: auto auto; justify-content: center; column-gap: var(--s-6); } .filter-row { width: auto; margin: 0; } .filter-label { width: auto; } }

.tier-group { padding: var(--s-7) 0 var(--s-6); }
.tier-group > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.tier-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s-4); margin-bottom: var(--s-5); }
.tier-head h2 { font-size: var(--t-2); }
.tier-price { font: 600 1.35rem/1 var(--f-latin); color: var(--ink-2); }
.tier-line { flex-basis: 100%; color: var(--ink-3); font-size: var(--t-small); }
.tier-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-3); }
@media (min-width: 760px) { .tier-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); } }
@media (min-width: 1040px) { .tier-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tpl { display: flex; flex-direction: column; min-width: 0; }
.tpl-pic { position: relative; display: block; border-radius: var(--r-card); }
.tpl-pic img, .tpl-pic video { display: block; width: 100%; height: auto; border-radius: var(--r-card); background: var(--paper); box-shadow: var(--sh-2); transition: transform var(--d-3) var(--ease-spring), box-shadow var(--d-3) var(--ease-out); }
.tpl-pic video { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--d-3) var(--ease-out), transform var(--d-3) var(--ease-spring); }
.tpl-pic video.is-playing { opacity: 1; }
.tpl-pic:hover img, .tpl-pic:focus-visible img, .tpl-pic:hover video { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--sh-3); }
.tpl-body { display: flex; flex: 1; flex-direction: column; padding-top: var(--s-3); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.meta .code { font: 600 1.3rem/1.1 var(--f-latin); }
.meta .name { color: var(--ink-3); font-size: var(--t-small); }
/* Tier badges: small printed stamps with square corners, not pills. */
.tier { margin-left: auto; padding: 3px 8px 2px; border-radius: var(--r-tag); font: 700 .75rem/1.35 var(--f-text); letter-spacing: var(--track); white-space: nowrap; }
.tier-basic { background: var(--leaf-tint); color: var(--leaf-deep); box-shadow: inset 0 0 0 1px rgb(20 77 41 / .25); }
.tier-premium { background: var(--rose-tint); color: var(--maroon-2); box-shadow: inset 0 0 0 1px rgb(122 26 44 / .25); }
.tier-luxury { background: var(--zari-soft); color: #2b1a05; box-shadow: inset 0 0 0 1px rgb(140 100 24 / .5); }
.tpl-desc { margin-top: var(--s-2); font-size: var(--t-small); line-height: var(--lh-small); color: var(--on-dark); }
.tpl-colours { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: var(--t-micro); color: var(--ink-3); }
.dots { display: flex; gap: 4px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14); }
.go { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 6px; margin-top: auto; padding-top: var(--s-3); }
.go .btn { min-height: 44px; padding: 0 8px; gap: 5px; font-size: var(--t-small); white-space: nowrap; }
.go .btn .i { width: 1.1em; height: 1.1em; }
@media (max-width: 359px) { .go { grid-template-columns: 1fr; } }

/* The luxury showpieces: a band of maroon silk, larger cards with a line about each design and its status video on hover. */
.tier-group-luxury { background: radial-gradient(90% 60% at 50% 0%, #7a1a2c, var(--maroon) 60%, #3d0914); color: var(--on-dark); }
.tier-group-luxury::before { content: ""; display: block; max-width: none; height: 14px; margin: calc(var(--s-7) * -1) 0 var(--s-7); padding: 0; background: var(--kasavu-bg); }
.tier-group-luxury .tier-price { color: var(--gold-2); }
.tier-group-luxury .tier-line, .tier-group-luxury .meta .name, .tier-group-luxury .tpl-colours { color: var(--on-dark-2); }
.tier-group-luxury .tpl-pic img, .tier-group-luxury .tpl-pic video { box-shadow: 0 0 0 3px var(--maroon), 0 0 0 4.5px var(--gold-2), 0 22px 40px -18px rgb(0 0 0 / .7); }
.tier-group-luxury .btn-ghost { background: transparent; color: var(--on-dark); border-color: rgb(251 239 216 / .4); }
.tier-group-luxury :focus-visible { outline-color: var(--focus-dark); }
.tier-group-luxury .tier-cards { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
/* Phones: a large picture with its name and buttons beside it, and the line about the design across the card below. */
.tpl-luxury { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "pic meta" "pic colours" "pic go" "desc desc"; grid-template-rows: auto auto 1fr auto; gap: 0 var(--s-4); align-items: start; }
.tpl-luxury .tpl-body { display: contents; }
.tpl-luxury .tpl-pic { grid-area: pic; }
.tpl-luxury .meta { grid-area: meta; flex-direction: column; align-items: flex-start; }
.tpl-luxury .tpl-colours { grid-area: colours; margin-top: var(--s-2); }
.tpl-luxury .go { grid-area: go; align-self: end; }
.tpl-luxury .tpl-desc { grid-area: desc; margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid rgb(229 192 107 / .3); }
.tpl-luxury .meta .code { font-size: 2rem; background: var(--zari-on-dark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tpl-luxury .meta .name { font: 700 var(--t-3)/1.3 var(--f-display); color: var(--on-dark); }
.tpl-luxury .tier { margin: var(--s-1) 0 0; }
.tpl-luxury .go { grid-template-columns: minmax(0, 1fr); }
.tpl-play { position: absolute; right: 10px; bottom: 10px; display: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgb(var(--scrim) / .7); color: var(--gold-1); box-shadow: 0 0 0 1px rgb(229 192 107 / .6); transition: opacity var(--d-2); }
.tpl-play .i { width: 14px; height: 14px; margin-left: 2px; }
@media (hover: hover) and (pointer: fine) { .tpl-play { display: grid; } .tpl-pic:hover .tpl-play { opacity: 0; } }
@media (min-width: 760px) {
  .tier-group-luxury .tier-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-6); }
  .tpl-luxury { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "pic meta" "pic desc" "pic colours" "pic go"; grid-template-rows: auto auto auto 1fr; }
  .tpl-luxury .tpl-desc { margin-top: var(--s-3); padding-top: 0; border: 0; }
  .tpl-luxury .go { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
}

/* ---------- Details form (its fields are drawn by form.js) ---------- */
.form { max-width: 680px; margin: 0 auto; padding: 0 var(--gutter) var(--s-8); counter-reset: step; }
.form fieldset { position: relative; min-width: 0; margin: var(--s-5) 0 0; padding: var(--s-5) var(--s-4) var(--s-4); border: 0; border-radius: var(--r-ui); background: var(--paper); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); counter-increment: step; scroll-margin-top: 16px; }
.form legend { float: left; width: 100%; display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-2); padding: 0; font: 700 var(--t-2)/1.35 var(--f-display); color: var(--ink); }
.form legend + * { clear: both; }
.form legend::before { content: counter(step); flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cloth); box-shadow: inset 0 0 0 1.5px var(--gold-3); font: italic 400 1.15rem/1 var(--f-latin); color: var(--gold-ink); }
.form label { display: block; margin: var(--s-4) 0 6px; font-size: var(--t-small); font-weight: 700; color: var(--ink-2); }
.form input[type="text"], .form input[type="tel"], .form input[type="url"], .form input[type="date"], .form input[type="time"], .form select, .form textarea { display: block; width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 1.0625rem; transition: border-color var(--d-1), box-shadow var(--d-1); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold-4); outline: none; box-shadow: 0 0 0 3px rgb(140 100 24 / .35); }
.form textarea { min-height: 96px; resize: vertical; }
.form .help { margin-top: 6px; font-size: var(--t-micro); line-height: var(--lh-small); color: var(--ink-3); }
.form > .help:first-child { margin-top: var(--s-2); padding: var(--s-3) var(--s-4); border-radius: var(--r-ui); background: var(--cloth-deep); color: var(--ink-2); font-size: var(--t-small); }
.form .warn { margin-top: 6px; font-size: var(--t-small); font-weight: 700; color: #a3221b; }
.form .pick { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 0; border-bottom: 1px dashed var(--line-2); font-size: 1.0625rem; font-weight: 400; color: var(--ink); cursor: pointer; }
.form .pick:last-of-type { border-bottom: 0; }
.form .pick input { flex: none; width: 24px; height: 24px; margin-top: 3px; accent-color: var(--maroon-2); }
.form .pick span small { display: block; margin-top: 2px; font-size: var(--t-micro); line-height: var(--lh-small); color: var(--ink-3); }
.form .pick b { margin-left: auto; font: 600 1.15rem/1.4 var(--f-latin); white-space: nowrap; }
.form .pick.off { color: var(--ink-3); cursor: default; }
.form .pick.off input { opacity: .5; }
.form .pick:has(input:checked) b { color: var(--maroon-2); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .sub { margin-top: var(--s-4); padding: var(--s-4); border: 1px dashed var(--line-2); border-radius: var(--r-ui); }
.form .sub h3 { font-size: var(--t-3); }
.form .linkbtn { margin-top: var(--s-2); padding: 8px 0; border: 0; background: none; color: var(--maroon-2); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.form-thumb { display: block; width: 110px; height: auto; margin: var(--s-4) 0 0; border-radius: var(--r-card); box-shadow: var(--sh-2); }
/* The total: a bar fixed to the foot of the screen on phones; a summary card beside the form on wide screens. */
.form .total { position: sticky; bottom: 10px; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 var(--s-3); margin-top: var(--s-5); padding: 10px 16px; border-radius: var(--r-ui); background: var(--maroon); color: var(--on-dark-2); box-shadow: 0 18px 36px -16px rgb(90 15 29 / .7), inset 0 0 0 1px rgb(229 192 107 / .35); font-size: var(--t-small); line-height: 1.45; }
.form .total .total-label { grid-column: 1; }
.form .total .total-pack { grid-column: 1; color: var(--on-dark); font-weight: 700; }
.form .total .total-step { grid-column: 1; font-size: var(--t-micro); color: var(--gold-2); }
.form .total b { grid-column: 2; grid-row: 1 / span 3; font: 600 1.9rem/1 var(--f-latin); background: var(--zari-on-dark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.form .total .total-thumb, .form .total .total-items { display: none; }
.form .errors { margin-top: var(--s-4); padding: 12px 14px 12px 32px; border-radius: 12px; background: #fdecea; color: #8c1d18; font-size: var(--t-small); }
.form .errors p { margin-left: -16px; font-weight: 700; }
.form pre { margin-top: var(--s-3); padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 13px/1.5 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 240px; overflow: auto; }
.form :focus-visible { outline-color: var(--focus); }
@media (min-width: 1000px) {
  .form { max-width: 1040px; }
  .form .page-head { max-width: 680px; margin-left: 0; text-align: left; }
  .form .page-head .lede { margin-left: 0; }
  #form { display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: var(--s-7); align-items: start; }
  #form > * { grid-column: 1; }
  #form > .total { grid-column: 2; grid-row: 1 / span 40; position: sticky; top: var(--s-5); bottom: auto; align-self: start; margin-top: var(--s-5); grid-template-columns: 1fr; gap: var(--s-1); padding: var(--s-5); border-radius: var(--r-card); text-align: left; }
  #form > .total .total-thumb { display: block; width: 100%; height: auto; margin-bottom: var(--s-3); border-radius: var(--r-card); box-shadow: 0 0 0 3px var(--maroon), 0 0 0 4.5px var(--gold-2); }
  #form > .total .total-pack { font: 700 var(--t-3)/1.35 var(--f-display); }
  #form > .total b { grid-column: 1; grid-row: auto; margin-top: var(--s-2); font-size: 2.4rem; }
  #form > .total .total-items { display: grid; gap: 4px; margin: var(--s-3) 0 0; padding: var(--s-3) 0 0; border-top: 1px dashed rgb(229 192 107 / .35); list-style: none; font-size: var(--t-micro); line-height: var(--lh-small); color: var(--on-dark-2); }
  #form > .total .total-items li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; transform: rotate(45deg); background: var(--gold-2); }
  #form > .total .total-step { display: none; }
}

/* ---------- Privacy and terms: comfortable reading ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: var(--s-5) var(--gutter) var(--s-9); font-size: 1.08rem; }
.doc h1 { font-size: var(--t-1); }
.doc h2 { display: flex; align-items: center; gap: var(--s-3); margin: var(--s-7) 0 var(--s-3); font-size: var(--t-2); }
.doc h2::before { content: ""; flex: none; width: 30px; height: 8px; background: var(--kasavu-bg); background-size: 100% 1px, 100% 3px, 100% 1px; }
.doc p, .doc li { margin: var(--s-3) 0; color: var(--ink-2); max-width: 66ch; }
.doc li b { color: var(--ink); }
.doc ul { padding-left: 1.3em; }
.doc li::marker { color: var(--gold-4); }
.doc .note { margin-top: var(--s-4); padding: var(--s-4) var(--s-5); border-left: 3px solid var(--gold-3); border-radius: 0 var(--r-ui) var(--r-ui) 0; background: var(--paper); font-size: var(--t-small); color: var(--ink-3); }
.doc-summary { margin: var(--s-5) 0 var(--s-2); padding: var(--s-5); border-radius: var(--r-card); background: var(--paper); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.doc-summary::before { content: ""; display: block; height: 8px; margin: calc(var(--s-5) * -1 + 8px) 0 var(--s-4); background: var(--kasavu-bg); background-size: 100% 1px, 100% 3px, 100% 1px; }
.doc .doc-summary p { margin: 0; color: var(--ink); font-size: 1.06rem; line-height: 1.75; }
.doc .doc-summary .eyebrow { margin-bottom: var(--s-2); }
.doc .doc-summary .eyebrow::before { display: none; }

/* ---------- 404 ---------- */
.lost { position: relative; display: grid; justify-items: center; gap: var(--s-4); max-width: 640px; margin: 0 auto; padding: var(--s-8) calc(var(--gutter) + 34px) var(--s-9); text-align: center; overflow: hidden; }
.lost-num { font: 600 clamp(5rem, 22vw, 9rem)/1 var(--f-latin); letter-spacing: -.04em; }
.lost h1 { font-size: var(--t-2); }
.lost p { color: var(--ink-2); max-width: 40ch; }
.lost .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-3); }
.lost > :not(.lost-strand) { position: relative; z-index: 1; }
.lost-strand { position: absolute; top: -170px; width: 22px; opacity: .85; }
.lost-strand.l { left: 6px; }
.lost-strand.r { right: 6px; top: -260px; }
@media (min-width: 700px) { .lost { padding-left: var(--gutter); padding-right: var(--gutter); } .lost-strand { width: 26px; top: -60px; } .lost-strand.l { left: 4%; } .lost-strand.r { right: 6%; top: -150px; } }

.kk-toast { position: fixed; left: 50%; bottom: 84px; z-index: 70; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--cloth); font-size: var(--t-small); text-align: center; box-shadow: var(--sh-3); }

/* ---------- Motion ---------- */
/* Hero entrances move, they never fade: the headline and buttons are readable from the first frame (and for LCP). */
@keyframes rise { from { transform: translateY(26px) scale(.985); } }
@keyframes fade-rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes fan-in { from { opacity: 0; transform: translate(-50%, -50%) translate3d(0, 4%, -40px) rotate(0deg) scale(.86); } }
@keyframes phone-in { from { transform: translate3d(-50%, 46px, 0) rotateX(20deg); } }
@keyframes arch-in { from { opacity: 0; transform: translate3d(-50%, 30px, -240px) scale(1.1); } }
@keyframes float { from { transform: translateY(-5px); } to { transform: translateY(6px); } }
@keyframes status { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes river { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes bubble-in { from { opacity: 0; transform: translateY(14px) scale(.94); } }
@keyframes view-rise { from { opacity: 0; transform: translateY(34px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@property --spread { syntax: "<number>"; inherits: true; initial-value: 1; }
@keyframes spread { from { --spread: 0; } to { --spread: 1; } }

@media (prefers-reduced-motion: no-preference) {
  /* The hero enters on its own, with no script needed. */
  [data-in] { animation: rise var(--d-4) var(--ease-soft) both; animation-delay: calc(var(--i, 0) * var(--stagger) + 60ms); }
  .hero .ht-a.zari-text { animation: rise var(--d-4) var(--ease-soft) both, sheen 1.8s var(--ease-in-out) 700ms both; animation-delay: calc(var(--i, 0) * var(--stagger) + 60ms), 700ms; }
  .fan-card { animation: fan-in 1.3s var(--ease-soft) both; animation-delay: calc(var(--i) * 110ms + 420ms); }
  .phone-status { animation: phone-in 1.1s var(--ease-soft) both; animation-delay: 160ms; }
  .stage-arch { animation: arch-in 1.4s var(--ease-out) both; animation-delay: 200ms; }
  @media (min-width: 960px) { @keyframes phone-in { from { transform: translate3d(-50%, -46%, 0) rotateX(20deg); } } }
  .strand { transition: transform 120ms linear; }

  /* Scroll reveals, armed only when the page's script is running (html.js), so nothing stays hidden without it. */
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity var(--d-4) var(--ease-out), transform var(--d-4) var(--ease-soft); transition-delay: calc(var(--i, 0) * var(--stagger)); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .kasavu[data-draw]:not(.is-in) { transform: scaleX(0); }
  .js .kasavu[data-draw] { transition: transform var(--d-draw) var(--ease-out); }
  .note-card::before, .note-card::after { transform-origin: 50% 50%; }
  .js .note-card[data-reveal]:not(.is-in)::before, .js .note-card[data-reveal]:not(.is-in)::after { transform: scaleX(0); }
  .js .note-card[data-reveal]::before, .js .note-card[data-reveal]::after { transition: transform var(--d-draw) var(--ease-out) 200ms; }
  body::before { animation: draw var(--d-draw) var(--ease-out) both; }

  /* The chat: the box arrives, then each message pops in after the one before, like a real conversation. */
  .js .chat[data-reveal] .msg, .js .chat[data-reveal] .chat-step { opacity: 0; }
  .js .chat[data-reveal].is-in .msg, .js .chat[data-reveal].is-in .chat-step { opacity: 1; animation: bubble-in 520ms var(--ease-spring) both; animation-delay: calc(var(--i, 0) * 420ms + 300ms); }
  .js .chat[data-reveal].is-in .chat-step { animation-name: fade-rise; animation-duration: 400ms; }
  .chat-step:nth-child(1) { --i: -.4; } .chat-step:nth-child(3) { --i: .6; } .chat-step:nth-child(6) { --i: 2.6; } .chat-step:nth-child(8) { --i: 3.6; }

  /* The pack fans close until their pack scrolls in, then open out on a spring. */
  .js .pack[data-reveal]:not(.is-in) .pack-fan { --spread: 0; }
  .js .pack[data-reveal] .pack-fan .kuri { transition-duration: 900ms; transition-delay: 250ms; }

  /* Where the browser can tie motion to scrolling itself, the designs and the pack fans follow the scroll exactly. */
  @supports (animation-timeline: view()) {
    .js .matrix [data-reveal] { opacity: 1; transform: none; transition: transform var(--d-3) var(--ease-spring), box-shadow var(--d-3); animation: view-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .js .pack[data-reveal] .pack-fan { --spread: 0; animation: spread linear both; animation-timeline: view(); animation-range: entry 30% cover 45%; }
    .js .pack[data-reveal] .pack-fan .kuri { transition: transform var(--d-3) var(--ease-spring); }
  }

  /* Off-screen loops rest, to save the battery on cheap phones. */
  .is-off .fan-card .kuri, .is-off .phone-body, .is-off .status-bars i, .is-off .marquee-track { animation-play-state: paused; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .marquee-track { animation: none; transform: none; }
  .marquee-set[aria-hidden] { display: none; }
  .status-bars i { animation: none; transform: scaleX(.4); }
  .mock-scroll { transition: none; }
}
