/* ==========================================================================
   PezeA — Public design system
   Direction: "Midnight Atelier" — deep ink, a single warm key light,
   imperial gold and restrained violet, editorial serif headlines.
   ========================================================================== */

:root {
    /* Ink & paper */
    --ink:        #050409;
    --ink-2:      #0a0712;
    --ink-3:      #110c1b;
    --ivory:      #f5f0e7;
    --mauve:      #b3a9c9;
    --muted:      #8d859f;

    /* Accents */
    --gold:       #e3bd6a;
    --gold-hi:    #f6d894;
    --gold-dim:   #b8944a;
    --violet:     #7b4dd8;
    --violet-deep:#3a1c6e;
    --ok:         #6fd6a0;
    --warn:       #e0a95c;
    --danger:     #e2685f;

    /* Lines & surfaces */
    --line:       rgba(227, 189, 106, 0.16);
    --line-soft:  rgba(245, 240, 231, 0.08);
    --panel-bg:   linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    --field-bg:   #0b0812;

    /* Shape & depth */
    --r-sm: 10px;
    --r:    16px;
    --r-lg: 24px;
    --shadow:    0 30px 80px rgba(0, 0, 0, 0.55);
    --shadow-sm: 0 14px 40px rgba(0, 0, 0, 0.35);

    /* Type */
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
    --sans:  "Inter", "Segoe UI", ui-sans-serif, system-ui, -apple-system, Arial, sans-serif;

    /* Layout */
    --container: 1180px;
    --narrow: 780px;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --focus: 0 0 0 3px rgba(227, 189, 106, 0.35);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    background: var(--ink);
    color: var(--ivory);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0 0 0.5em;
    overflow-wrap: break-word;
}
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ul, ol { padding-left: 1.2em; }
li { margin: 0.4em 0; }
button { font: inherit; }
strong { color: var(--ivory); font-weight: 600; }
::selection { background: rgba(227, 189, 106, 0.28); color: var(--ivory); }

.muted { color: var(--muted); }
.small { font-size: 0.84rem; }
.center { text-align: center; }
.grad {
    background: linear-gradient(100deg, #ffe9b0, var(--gold-hi) 38%, var(--gold) 74%, var(--gold-dim));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.req { color: var(--gold); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.optional { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }
.icon { flex: 0 0 auto; vertical-align: middle; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--gold); color: #1b1406; padding: 0.6rem 1rem;
    border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: none;
    box-shadow: var(--focus);
    border-radius: 6px;
}

/* ==========================================================================
   Atmosphere — one warm key light, cool fill, grain, vignette.
   No grid, no rain.
   ========================================================================== */
.atmos {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    overflow: hidden; background: var(--ink);
}
.atmos__key {
    position: absolute; inset: -35% -25% auto -25%; height: 100vh;
    background:
        radial-gradient(46% 42% at 16% 6%, rgba(227, 189, 106, 0.20), transparent 62%),
        radial-gradient(52% 48% at 34% -6%, rgba(123, 77, 216, 0.22), transparent 70%);
    filter: blur(10px);
}
.atmos__fill {
    position: absolute; inset: auto -25% -40% -25%; height: 90vh;
    background: radial-gradient(46% 50% at 82% 92%, rgba(123, 77, 216, 0.14), transparent 70%);
    filter: blur(12px);
}
.atmos__grain {
    position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
    background-size: 140px 140px;
}
.atmos__vignette {
    position: absolute; inset: 0;
    background:
        radial-gradient(130% 90% at 50% 0%, transparent 42%, rgba(0, 0, 0, 0.55) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.15), transparent 22%, transparent 80%, rgba(0, 0, 0, 0.35));
}

.site { position: relative; }
main { position: relative; z-index: 1; }

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    width: 100%; max-width: var(--container);
    margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem);
    min-width: 0;
}
.container--narrow { max-width: var(--narrow); }

.section {
    position: relative;
    padding: clamp(3.2rem, 7vw, 6rem) 0;
}
/* Hairline chapter divider instead of a grid */
.section + .section::before {
    content: "";
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: min(760px, 82%); height: 1px;
    background: linear-gradient(90deg, transparent, rgba(227, 189, 106, 0.30), transparent);
}

.section__head { max-width: 720px; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.section__eyebrow {
    display: inline-flex; align-items: center; gap: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.24em;
    font-size: 0.7rem; font-weight: 600; color: var(--gold);
    margin: 0 0 0.9rem;
}
.section__eyebrow::before {
    content: ""; width: 26px; height: 1px; flex: 0 0 auto;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.section__title { margin-bottom: 0.55rem; }
.section__lede {
    color: var(--mauve); font-size: clamp(1rem, 1.6vw, 1.08rem);
    max-width: 62ch; line-height: 1.7;
}

.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar {
    position: sticky; top: 0; z-index: 40;
    background: rgba(5, 4, 9, 0.72);
    backdrop-filter: blur(18px) saturate(120%);
    border-bottom: 1px solid var(--line-soft);
}
.topbar__inner { display: flex; align-items: center; gap: 1rem; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ivory); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark {
    display: grid; place-items: center; width: 34px; height: 34px;
    border-radius: 10px; color: var(--gold-hi);
    background:
        radial-gradient(circle at 30% 20%, rgba(227, 189, 106, 0.28), transparent 60%),
        linear-gradient(150deg, rgba(123, 77, 216, 0.55), rgba(58, 28, 110, 0.75));
    border: 1px solid rgba(227, 189, 106, 0.28);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.brand__name { font-family: var(--serif); font-size: 1.22rem; letter-spacing: 0.01em; }
.brand__name::after { content: "."; color: var(--gold); }

.topnav { display: none; gap: 1.4rem; margin-left: auto; }
.topnav a {
    color: var(--mauve); font-size: 0.86rem; letter-spacing: 0.01em;
    position: relative; padding: 0.2rem 0;
}
.topnav a:hover { color: var(--ivory); text-decoration: none; }
.topnav a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
    background: var(--gold); transition: right 0.25s var(--ease);
}
.topnav a:hover::after { right: 0; }
@media (min-width: 980px) { .topnav { display: flex; } }
.topbar .btn { margin-left: auto; }
@media (min-width: 980px) { .topbar .btn { margin-left: 0; } }
@media (max-width: 979px) {
    .topbar .festive-toggle { margin-left: auto; }
    .topbar .btn { margin-left: 0.5rem; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.72rem 1.2rem; border-radius: var(--r-sm);
    border: 1px solid var(--line-soft); background: transparent; color: var(--ivory);
    font-weight: 600; font-size: 0.92rem; letter-spacing: 0.01em;
    cursor: pointer; text-decoration: none;
    transition: transform 0.18s var(--ease), box-shadow 0.22s var(--ease),
                background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btn--sm { padding: 0.5rem 0.85rem; font-size: 0.83rem; }
.btn--lg { padding: 0.9rem 1.5rem; font-size: 0.98rem; }
.btn--gold {
    background: linear-gradient(180deg, var(--gold-hi), var(--gold));
    color: #1b1406; border-color: transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 28px rgba(227, 189, 106, 0.20);
}
.btn--gold:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 16px 38px rgba(227, 189, 106, 0.30);
}
.btn--ghost {
    border-color: rgba(245, 240, 231, 0.18); color: var(--ivory);
}
.btn--ghost:hover { background: rgba(245, 240, 231, 0.05); border-color: rgba(245, 240, 231, 0.32); }
.btn--danger { background: rgba(226, 104, 95, 0.12); border-color: rgba(226, 104, 95, 0.45); color: #ffc9c5; }
.btn--block { width: 100%; }
.linklike {
    background: none; border: 0; padding: 0; color: var(--gold);
    cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px;
}
.linklike[disabled] { color: var(--muted); cursor: not-allowed; text-decoration: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative; overflow: hidden;
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
    min-height: clamp(560px, 78vh, 820px);
    display: flex; align-items: center;
}
.hero__inner { position: relative; z-index: 1; }
.hero__title--alt { max-width: none; }

.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 0.6rem;
    text-transform: uppercase; letter-spacing: 0.26em;
    font-size: 0.68rem; font-weight: 600; color: var(--gold);
    margin: 0 0 1.2rem;
}
.hero__eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold); box-shadow: 0 0 12px var(--gold);
    animation: pulse 2.6s ease-in-out infinite;
}

.hero__title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin-bottom: 1.1rem;
}
.hero__title--alt {
    display: block;
    font-style: italic;
    font-weight: 400;
    color: var(--mauve);
    margin-top: 0.12em;
}
.hero__title--alt .grad { font-style: italic; }

.hero__sub {
    font-size: clamp(1.02rem, 2.2vw, 1.22rem);
    color: var(--mauve);
    max-width: 66ch;
    line-height: 1.7;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.9rem 0 1.6rem; }

.hero__date {
    display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
    margin-bottom: 1.2rem;
}
.hero__date-item { display: flex; flex-direction: column; gap: 0.1rem; }
.hero__date-label {
    text-transform: uppercase; letter-spacing: 0.18em;
    font-size: 0.64rem; color: var(--muted);
}
.hero__date-value { font-family: var(--serif); font-size: 1.12rem; color: var(--ivory); }
.hero__date-sep { width: 1px; height: 34px; background: var(--line); }

.tagline {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem;
    font-family: var(--sans); font-size: clamp(0.72rem, 1.8vw, 0.82rem);
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--mauve); margin: 0;
}
.tagline span { padding: 0; border: 0; background: none; }
.tagline span + span::before {
    content: "·"; color: var(--gold); margin-right: 0.55rem;
}
.tagline .grad {
    background: none;
    -webkit-text-fill-color: var(--gold);
    color: var(--gold);
}

.scrollcue {
    display: inline-flex; margin-top: clamp(1.6rem, 4vw, 2.6rem);
    color: var(--mauve); animation: bounce 2.6s ease-in-out infinite;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); animation: reveal 0.9s var(--ease) forwards; }
.reveal[data-reveal="1"] { animation-delay: 0.05s; }
.reveal[data-reveal="2"] { animation-delay: 0.14s; }
.reveal[data-reveal="3"] { animation-delay: 0.28s; }
.reveal[data-reveal="4"] { animation-delay: 0.42s; }
.reveal[data-reveal="5"] { animation-delay: 0.56s; }
.reveal[data-reveal="6"] { animation-delay: 0.68s; }
.reveal[data-reveal="7"] { animation-delay: 0.80s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* Fail-safe: visible by default; hidden only when JS is running. */
.reveal-on-scroll {
    opacity: 1; transform: none;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal-on-scroll { opacity: 0; transform: translateY(12px); }
.js .reveal-on-scroll.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Countdown
   ========================================================================== */
.countdown-section { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.countdown {
    display: grid; grid-template-columns: repeat(4, 1fr);
    max-width: 780px;
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    background: var(--line-soft);
    gap: 1px;
    overflow: hidden;
}
.countdown__unit {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    padding: clamp(1rem, 3vw, 1.6rem) 0.5rem;
    text-align: center;
}
.countdown__value {
    display: block; font-family: var(--serif); font-weight: 600;
    font-size: clamp(1.7rem, 6.5vw, 3rem); line-height: 1.05;
    color: var(--ivory); font-variant-numeric: tabular-nums;
}
.countdown__label {
    text-transform: uppercase; letter-spacing: 0.2em;
    font-size: 0.62rem; color: var(--gold);
}
.countdown__note { margin-top: 1.1rem; }
.launch-live {
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: linear-gradient(150deg, rgba(227, 189, 106, 0.10), rgba(123, 77, 216, 0.08));
    padding: 1.6rem;
}
.launch-live__title { color: var(--gold-hi); margin-bottom: 0.35rem; }

/* ==========================================================================
   Panels, cards, notices
   ========================================================================== */
.panel {
    position: relative;
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    background: var(--panel-bg);
    padding: clamp(1.15rem, 3vw, 2rem);
    box-shadow: var(--shadow-sm);
}
.panel--glass { background: var(--panel-bg); }
.panel::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(246, 216, 148, 0.42), transparent);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    pointer-events: none;
}
.panel--gold {
    border-color: rgba(227, 189, 106, 0.30);
    background:
        radial-gradient(80% 60% at 0% 0%, rgba(227, 189, 106, 0.10), transparent 60%),
        linear-gradient(160deg, rgba(58, 28, 110, 0.28), rgba(10, 7, 18, 0.5));
}

.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
    position: relative;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
    padding: 1.5rem;
    transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.card:hover {
    transform: translateY(-3px);
    border-color: rgba(227, 189, 106, 0.28);
    box-shadow: var(--shadow-sm);
}
.card__icon {
    display: grid; place-items: center; width: 46px; height: 46px;
    border-radius: 13px; margin-bottom: 1rem;
    color: var(--gold-hi);
    background:
        radial-gradient(circle at 30% 20%, rgba(227, 189, 106, 0.22), transparent 62%),
        rgba(123, 77, 216, 0.14);
    border: 1px solid rgba(227, 189, 106, 0.22);
}
.card h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.card p:last-child { margin-bottom: 0; }

.notice {
    display: flex; gap: 0.7rem; align-items: flex-start;
    border: 1px solid var(--line-soft);
    border-left: 2px solid var(--gold);
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.025);
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    color: var(--mauve);
}
.notice .icon { margin-top: 0.2rem; color: var(--gold); }
.notice a { color: var(--gold); }
.notice--warn { border-left-color: var(--warn); background: rgba(224, 169, 92, 0.07); color: #eddcc0; }
.notice--warn .icon { color: var(--warn); }
.notice--privacy { border-left-color: var(--violet); background: rgba(123, 77, 216, 0.08); }
.notice--gift { border-left-color: var(--gold); background: rgba(227, 189, 106, 0.07); margin: 1rem 0; }
.notice--danger { border-left-color: var(--danger); background: rgba(226, 104, 95, 0.08); color: #ffc9c5; }
.notice--danger .icon { color: var(--danger); }

.badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.18rem 0.55rem; border-radius: 999px;
    font-size: 0.76rem; border: 1px solid var(--line-soft); color: var(--mauve);
}
.badge--ok { color: var(--ok); border-color: rgba(111, 214, 160, 0.35); background: rgba(111, 214, 160, 0.08); }
.badge--warn { color: var(--warn); border-color: rgba(224, 169, 92, 0.35); background: rgba(224, 169, 92, 0.08); }
.badge--muted { color: var(--muted); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form { display: grid; gap: 1.1rem; }
/* Keep form controls at a comfortable reading width inside wide panels. */
.panel > form.form { max-width: 860px; margin-left: auto; margin-right: auto; }
.field { display: grid; gap: 0.4rem; }
.field > label { font-weight: 600; font-size: 0.88rem; letter-spacing: 0.01em; }
.field__help { color: var(--muted); font-size: 0.82rem; margin: 0; }
.field__error { color: #ff9d95; font-size: 0.84rem; margin: 0; }

input[type="text"], input[type="tel"], input[type="email"], input[type="url"],
input[type="password"], input[type="number"], input[type="datetime-local"],
input[type="search"], textarea, select {
    width: 100%; padding: 0.72rem 0.85rem;
    border-radius: var(--r-sm);
    background: var(--field-bg);
    color: var(--ivory);
    border: 1px solid rgba(245, 240, 231, 0.12);
    font: inherit;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
textarea { resize: vertical; min-height: 90px; }
input::placeholder, textarea::placeholder { color: #6c6580; }
input:hover, textarea:hover, select:hover { border-color: rgba(245, 240, 231, 0.2); }
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: rgba(227, 189, 106, 0.7);
    box-shadow: 0 0 0 3px rgba(227, 189, 106, 0.14);
    background: #0d0a16;
}
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
    border-color: rgba(226, 104, 95, 0.7);
}
select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--mauve) 50%),
        linear-gradient(135deg, var(--mauve) 50%, transparent 50%);
    background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2.2rem;
}
select option { background: var(--ink-2); color: var(--ivory); }

.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.form-actions--center { justify-content: center; }
.form-global-error { color: #ff9d95; font-size: 0.9rem; margin: 0; }
.form-native-note { margin: 0; }
.form-success {
    border: 1px solid rgba(111, 214, 160, 0.35);
    background: rgba(111, 214, 160, 0.07);
    border-radius: var(--r);
    padding: 1.4rem;
    text-align: center;
    margin-top: 0.5rem;
}
.success-mark { color: var(--ok); display: flex; justify-content: center; margin-bottom: 0.6rem; }

/* Chips */
.chips { border: 1px solid var(--line-soft); border-radius: var(--r); padding: 1rem; }
.chips legend { padding: 0 0.4rem; font-weight: 600; font-size: 0.88rem; }
.chips__grid { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip {
    display: inline-flex; align-items: center; gap: 0.45rem;
    border: 1px solid rgba(245, 240, 231, 0.12);
    border-radius: var(--r-sm);
    padding: 0.52rem 0.85rem; cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.18s var(--ease), background 0.18s var(--ease),
                color 0.18s var(--ease), transform 0.18s var(--ease);
    font-size: 0.88rem; color: var(--mauve);
}
.chip:hover { border-color: rgba(227, 189, 106, 0.5); color: var(--ivory); transform: translateY(-1px); }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip:has(input:checked) {
    border-color: rgba(227, 189, 106, 0.75);
    background: rgba(227, 189, 106, 0.10);
    color: var(--ivory);
}
.chip:has(input:focus-visible) { box-shadow: var(--focus); }
.chip__icon { display: inline-flex; color: var(--gold); }
.chip--sm { padding: 0.38rem 0.68rem; font-size: 0.82rem; }

/* Consent */
.consent {
    border: 1px solid var(--line-soft); border-radius: var(--r);
    padding: 1rem; display: grid; gap: 0.9rem;
}
.consent__legend { font-weight: 600; padding: 0 0.4rem; font-size: 0.9rem; }
.consent__hint { margin: 0; }
.consent__item { border-top: 1px solid var(--line-soft); padding-top: 0.9rem; }
.consent__item:first-of-type { border-top: 0; padding-top: 0; }
.consent__head { display: flex; flex-direction: column; gap: 0.15rem; margin-bottom: 0.55rem; }
.consent__title { font-weight: 600; font-size: 0.92rem; }
.consent__purpose { margin: 0; }
.consent__channels { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.check { display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer; font-size: 0.86rem; color: var(--mauve); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
    width: 18px; height: 18px; border-radius: 5px;
    border: 1px solid rgba(245, 240, 231, 0.22);
    background: var(--field-bg); position: relative; flex: 0 0 auto;
    transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.check input:checked + .check__box { background: var(--gold); border-color: var(--gold); }
.check input:checked + .check__box::after {
    content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px;
    border: solid #1b1406; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.check input:focus-visible + .check__box { box-shadow: var(--focus); }

/* Stepper */
.stepper {
    display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 0.5rem;
    flex-wrap: wrap;
}
.stepper__item {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.8rem; color: var(--muted);
    padding: 0.35rem 0.7rem; border-radius: 999px;
    border: 1px solid var(--line-soft);
}
.stepper__item span {
    display: grid; place-items: center; width: 20px; height: 20px;
    border-radius: 50%; background: rgba(255, 255, 255, 0.05); font-size: 0.7rem;
}
.stepper__item.is-active {
    color: var(--ivory); border-color: rgba(227, 189, 106, 0.55);
    background: rgba(227, 189, 106, 0.08);
}
.stepper__item.is-active span { background: var(--gold); color: #1b1406; }
.stepper__item.is-done { color: var(--ok); border-color: rgba(111, 214, 160, 0.35); }
.form-step { display: grid; gap: 1.1rem; }
.form-step__title { font-size: 1.2rem; margin: 0; }
.form-step[hidden] { display: none; }

/* OTP */
.otp {
    display: grid; gap: 1rem;
    border: 1px dashed rgba(245, 240, 231, 0.16);
    border-radius: var(--r); padding: 1rem;
}
.otp__row { display: flex; gap: 0.5rem; }
.otp__row input { flex: 1 1 auto; min-width: 0; }
.otp__row .btn { flex: 0 0 auto; }
.otp__code[hidden], .otp__verified[hidden] { display: none; }
.otp__verified { margin: 0; }
.otp-policy { margin: 0; }

/* ==========================================================================
   Gift, share, FAQ
   ========================================================================== */
.section--gift { padding-top: clamp(2rem, 5vw, 3rem); }
.gift-card { overflow: hidden; }
.gift-card__glow {
    position: absolute; inset: -40% -10% auto auto; width: 60%; height: 160%;
    background: radial-gradient(50% 50% at 60% 40%, rgba(227, 189, 106, 0.22), transparent 70%);
    filter: blur(34px); pointer-events: none;
}
.gift-card__body { position: relative; max-width: 760px; }
.gift-card__ornament {
    position: absolute; right: -20px; bottom: -30px;
    color: var(--gold); opacity: 0.06; pointer-events: none;
    transform: rotate(-10deg);
}
@media (max-width: 900px) { .gift-card__ornament { display: none; } }
.gift-card__facts { list-style: none; padding: 0; margin: 1.1rem 0; display: grid; gap: 0.45rem; }
.gift-card__facts li { display: flex; gap: 0.6rem; font-size: 0.92rem; }

.share { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 0.8rem; }

.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 0.5rem; }
.faq__item {
    border: 1px solid var(--line-soft);
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.faq__item:hover { border-color: rgba(227, 189, 106, 0.22); }
.faq__item summary {
    cursor: pointer; padding: 1rem 1.1rem; font-weight: 600; font-size: 0.95rem;
    list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--gold); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__body { padding: 0 1.1rem 1rem; color: var(--mauve); font-size: 0.95rem; }

/* ==========================================================================
   Document pages
   ========================================================================== */
.doc { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.doc__head { margin-bottom: 1.6rem; }
.doc__head h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.doc__notice { margin-bottom: 1.6rem; }
.doc__toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.doc__toc a {
    font-size: 0.82rem; color: var(--mauve);
    border: 1px solid var(--line-soft); border-radius: 999px; padding: 0.3rem 0.72rem;
    transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.doc__toc a:hover { color: var(--ivory); border-color: rgba(227, 189, 106, 0.4); text-decoration: none; }
.doc section { margin-bottom: 2rem; }
.doc h2 { font-size: 1.3rem; margin-top: 1.6rem; }
.doc p, .doc li { color: #d7d0e2; }
.doc__table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
.doc__table th, .doc__table td {
    text-align: left; padding: 0.65rem; vertical-align: top;
    border-bottom: 1px solid var(--line-soft);
    overflow-wrap: anywhere;
}
.doc__table th { color: var(--gold); font-weight: 600; }

/* ==========================================================================
   Error page
   ========================================================================== */
.error-page { padding: clamp(3rem, 9vw, 6rem) 0; }
.error-page__code {
    font-family: var(--serif); font-size: clamp(3.5rem, 16vw, 7rem);
    margin: 0; line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(227, 189, 106, 0.45);
}
.error-page__debug {
    text-align: left; background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--line-soft); border-radius: var(--r-sm);
    padding: 1rem; overflow: auto; font-size: 0.8rem; color: #ffbdb8; margin-top: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    position: relative; z-index: 1;
    border-top: 1px solid var(--line-soft);
    margin-top: clamp(2rem, 6vw, 4rem);
    padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}
.footer__grid { display: grid; gap: 1.9rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1.2fr; } }
.footer__col { display: flex; flex-direction: column; gap: 0.4rem; }
.footer__col h2 {
    font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.2em;
    color: var(--muted); margin-bottom: 0.5rem;
}
.footer__col a { color: var(--mauve); font-size: 0.9rem; }
.footer__col a:hover { color: var(--ivory); }
.footer__col p { margin: 0; }
.footer__contact { font-size: 0.88rem; overflow-wrap: anywhere; }
.footer__brand .brand { margin-bottom: 0.6rem; }
.footer__base {
    display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
    margin-top: 2.4rem; padding-top: 1.3rem;
    border-top: 1px solid var(--line-soft);
}

/* ==========================================================================
   Keyboard / motion / responsive
   ========================================================================== */
@media (max-width: 600px) {
    .hero__cta { flex-direction: column; align-items: stretch; }
    .hero__cta .btn { width: 100%; }
    .form-actions { flex-direction: column; align-items: stretch; }
    .form-actions .btn { width: 100%; }
    .doc { padding-left: 0.2rem; padding-right: 0.2rem; }
    .doc__table { font-size: 0.82rem; }
    .footer__base { flex-direction: column; gap: 0.4rem; }
    .hero__date { gap: 0.9rem; }
    .hero__date-sep { display: none; }
}
@media (max-width: 380px) {
    .countdown__value { font-size: 1.5rem; }
    .countdown__label { letter-spacing: 0.08em; font-size: 0.55rem; }
    .brand__name { font-size: 1.05rem; }
    .festive-toggle { font-size: 0.72rem; padding: 0.36rem 0.5rem; }
}
@media (max-width: 480px) {
    .hero { padding-top: 2.2rem; min-height: auto; }
    .panel { padding: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal, .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 768px) {
    .topbar { backdrop-filter: blur(10px); }
}

/* ==========================================================================
   Festive (Diwali) lighting — part of the chrome and content, not a section
   ========================================================================== */
:root {
    --festive-gold: #ffcf6f;
    --festive-amber: #ff9d3c;
    --festive-ember: #ff6a2b;
    --festive-leaf: #3f8f4a;
}

.festive-ambient {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    overflow: hidden; display: none;
}
html[data-festive="on"] .festive-ambient { display: block; }
.festive-ambient__glow {
    position: absolute; inset: 0;
    background:
        radial-gradient(50% 38% at 6% -4%, rgba(255, 157, 60, 0.16), transparent 70%),
        radial-gradient(42% 34% at 96% 104%, rgba(255, 207, 111, 0.12), transparent 70%),
        radial-gradient(30% 24% at 50% 0%, rgba(255, 106, 43, 0.09), transparent 70%);
}
.festive-ambient__rangoli {
    position: absolute; top: -150px; right: -140px; width: 460px; height: 460px;
    color: var(--festive-gold); opacity: 0.10;
    filter: drop-shadow(0 0 12px rgba(255, 180, 80, 0.25));
    animation: festive-spin 120s linear infinite;
}
.festive-ambient__sparks span {
    position: absolute; bottom: -12px; width: 3px; height: 3px; border-radius: 50%;
    background: var(--festive-gold);
    box-shadow: 0 0 10px 2px rgba(255, 180, 80, 0.55);
    opacity: 0;
    animation: festive-rise var(--dur, 16s) linear infinite;
    animation-delay: var(--delay, 0s);
}

html[data-festive="on"] .topbar { padding-bottom: 44px; }
.lights {
    display: none; position: absolute; left: 0; right: 0; bottom: 0;
    height: 44px; pointer-events: none; z-index: 2;
}
html[data-festive="on"] .lights { display: block; }
.lights__wire { position: absolute; inset: 0; width: 100%; height: 44px; overflow: visible; }
.lights__item {
    position: absolute; width: 9px; height: 9px; margin-left: -4.5px;
    border-radius: 50%; transform: translateY(-50%);
    animation: festive-twinkle 3.4s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}
.lights__item--bulb {
    background: radial-gradient(circle at 35% 30%, #fff7da, #ffb347 55%, #c2571a 100%);
    box-shadow: 0 0 8px 3px rgba(255, 157, 60, 0.55), 0 0 22px 7px rgba(255, 110, 40, 0.22);
}
.lights__item--flower {
    background: radial-gradient(circle at 40% 35%, #ffd98f, #ff9d3c 58%, #d9641a 100%);
    box-shadow: 0 0 8px 2px rgba(255, 140, 50, 0.4);
}
.lights__item--flower::after {
    content: ""; position: absolute; left: 50%; top: 74%; width: 8px; height: 5px;
    background: var(--festive-leaf); border-radius: 0 100% 0 100%;
    transform: translateX(-50%) rotate(24deg); opacity: 0.75;
}

.swag { position: absolute; top: 0; left: 18px; right: 18px; height: 0; pointer-events: none; z-index: 3; }
.swag__bulb {
    position: absolute; width: 8px; height: 8px; margin-left: -4px;
    border-radius: 50%; transform: translateY(-50%);
    background: radial-gradient(circle at 35% 30%, #fff7da, #ffb347 55%, #c2571a 100%);
    box-shadow: 0 0 7px 2px rgba(255, 157, 60, 0.5), 0 0 16px 5px rgba(255, 110, 40, 0.2);
    animation: festive-twinkle 3.8s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.lanterns { position: absolute; inset: 0 0 auto 0; height: 150px; pointer-events: none; z-index: 2; }
.lantern {
    position: absolute; top: 0; width: 26px; height: 96px;
    transform-origin: 50% 0;
    animation: festive-sway 7s ease-in-out infinite;
}
.lantern--left { left: 4%; }
.lantern--right { right: 4%; animation-delay: -3s; }
.lantern::before {
    content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 58px;
    background: linear-gradient(rgba(255, 207, 111, 0), rgba(255, 207, 111, 0.7));
    transform: translateX(-50%);
}
.lantern::after {
    content: ""; position: absolute; left: 50%; top: 56px; width: 24px; height: 32px;
    transform: translateX(-50%);
    border-radius: 46% 46% 42% 42% / 34% 34% 66% 66%;
    background: radial-gradient(circle at 40% 32%, #ffe6a6, #ff9d3c 52%, #c2571a 100%);
    border: 1px solid rgba(255, 207, 111, 0.35);
    border-top: 3px solid rgba(227, 189, 106, 0.7);
    box-shadow: 0 0 22px 8px rgba(255, 140, 50, 0.32), inset 0 -7px 10px rgba(120, 40, 0, 0.4);
    animation: festive-flicker 3.2s ease-in-out infinite;
}

.hero__inner { position: relative; z-index: 1; }

.diyas {
    display: none; position: absolute; left: 0; right: 0;
    justify-content: center; gap: clamp(1rem, 3.5vw, 2.4rem);
    pointer-events: none; z-index: 2;
}
html[data-festive="on"] .diyas { display: flex; }
.diyas--footer { top: -9px; }
.diya {
    position: relative; width: 28px; height: 14px;
    border-radius: 0 0 15px 15px;
    background: linear-gradient(180deg, #8a5228, #3a2110);
    box-shadow: inset 0 2px 0 rgba(255, 207, 111, 0.5), 0 6px 14px rgba(0, 0, 0, 0.35);
}
.diya::before {
    content: ""; position: absolute; left: 50%; top: -17px; width: 10px; height: 17px;
    transform: translateX(-50%);
    border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%;
    background: radial-gradient(circle at 50% 72%, #fff6d0, #ffb347 48%, #ff6a2b 78%, transparent 80%);
    box-shadow: 0 0 16px 5px rgba(255, 140, 50, 0.45);
    animation: festive-flicker 2.6s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}
.diya::after {
    content: ""; position: absolute; left: 50%; bottom: -6px; width: 36px; height: 10px;
    transform: translateX(-50%); border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 150, 60, 0.35), transparent 70%);
}

.festive-toggle {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.42rem 0.7rem; border-radius: 999px;
    border: 1px solid rgba(245, 240, 231, 0.18); background: transparent;
    color: var(--mauve); cursor: pointer; font-size: 0.8rem; font-weight: 600;
    transition: background 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.festive-toggle:hover { color: var(--ivory); background: rgba(255, 255, 255, 0.05); }
.festive-toggle[aria-pressed="true"] {
    color: var(--gold);
    background: rgba(227, 189, 106, 0.08);
    border-color: rgba(227, 189, 106, 0.45);
    box-shadow: none;
}
.festive-toggle__lamp { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

.festive-burst { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.festive-burst span {
    position: absolute; left: 50%; top: 42%; width: 6px; height: 6px; border-radius: 50%;
    background: var(--festive-gold);
    box-shadow: 0 0 12px 3px rgba(255, 170, 70, 0.7);
    animation: festive-burst 0.9s ease-out forwards;
    animation-delay: var(--d, 0s);
}

@keyframes festive-twinkle {
    0%, 100% { opacity: 1; filter: brightness(1); }
    45% { opacity: 0.55; filter: brightness(0.8); }
    70% { opacity: 0.9; filter: brightness(1.25); }
}
@keyframes festive-flicker {
    0%, 100% { transform: translateX(-50%) scale(1) rotate(-1deg); opacity: 1; }
    30% { transform: translateX(-50%) scale(0.92, 1.08) rotate(1.5deg); opacity: 0.88; }
    65% { transform: translateX(-50%) scale(1.05, 0.95) rotate(-2deg); opacity: 0.98; }
}
@keyframes festive-sway { 0%, 100% { transform: rotate(-2.4deg); } 50% { transform: rotate(2.4deg); } }
@keyframes festive-spin { to { transform: rotate(360deg); } }
@keyframes festive-rise {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    8% { opacity: 0.85; }
    60% { opacity: 0.5; }
    100% { transform: translateY(-92vh) scale(1.15); opacity: 0; }
}
@keyframes festive-burst {
    0% { transform: translate(0, 0) scale(0.6); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(0.15); opacity: 0; }
}

@media (max-width: 900px) {
    .lanterns { display: none; }
}
@media (max-width: 600px) {
    .lights__item:nth-of-type(n + 20) { display: none; }
    .festive-ambient__rangoli { width: 280px; height: 280px; opacity: 0.07; }
    .diyas { gap: 1rem; }
    .diya { width: 24px; height: 12px; }
    .festive-toggle { padding: 0.42rem 0.6rem; }
}
@media (max-width: 480px) {
    .topbar .btn--gold { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .festive-ambient__sparks, .festive-burst { display: none !important; }
    .lights__item, .swag__bulb, .diya::before, .lantern, .lantern::after,
    .festive-ambient__rangoli { animation: none !important; }
}

/* --------------------------------------------------------------------------
   Small shared utilities & animations
   -------------------------------------------------------------------------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

.demand-results { border: 1px solid var(--line-soft); border-radius: var(--r); padding: 1rem; margin-top: 1rem; }
.demand-results h3 { font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); }
.demand-results__list { list-style: none; padding: 0; margin: 0.6rem 0; display: grid; gap: 0.4rem; }
.demand-results__list li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; border-bottom: 1px solid var(--line-soft); padding-bottom: 0.35rem; }
