/* ==========================================================================
   Crown Entertainment — "Airmail From Home" public design system
   Films arrive like letters from home: posters are stamps, city + date
   are the postmark. Navy ground, cream paper, crown gold, airmail red.
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
    /* Navy ground */
    --am-navy-950: #060D1F;
    --am-navy-900: #0B1630;
    --am-navy-850: #0F1C3B;
    --am-navy-800: #13244A;
    --am-navy-700: #1C3263;
    --am-navy-600: #2A4580;
    --am-navy-line: rgba(247, 241, 227, 0.12);
    --am-navy-line-strong: rgba(247, 241, 227, 0.22);

    /* Paper */
    --am-cream: #F7F1E3;
    --am-cream-200: #EDE4CF;
    --am-cream-300: #DDD1B6;
    --am-cream-muted: rgba(247, 241, 227, 0.72);
    --am-cream-faint: rgba(247, 241, 227, 0.52);

    /* Crown gold (seal, postmarks, primary action) */
    --am-gold: #D4A437;
    --am-gold-300: #E8C771;
    --am-gold-700: #9E7A22;
    --am-gold-ink: #2A1E05;

    /* Airmail stripes — chevron rule + urgency only */
    --am-red: #C8372D;
    --am-red-300: #E8665C;
    --am-blue: #2A4580;
    /* Italian flag bands: the rule under the hero and above the footer */
    --am-it-green: #009246;
    --am-it-white: #F4F5F0;
    --am-it-red: #CE2B37; /* airmail stripe: the brand navy-600, not a new hue */

    /* Ink on paper */
    --am-ink: #0B1630;
    --am-ink-muted: #46506A;

    /* Type */
    --am-font-display: 'Anybody', 'Noto Serif Sinhala', system-ui, sans-serif;
    --am-font-body: 'Onest', 'Noto Serif Sinhala', system-ui, sans-serif;

    --am-step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
    --am-step-0: clamp(0.98rem, 0.95rem + 0.15vw, 1.06rem);
    --am-step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
    --am-step-2: clamp(1.45rem, 1.28rem + 0.8vw, 1.95rem);
    --am-step-3: clamp(1.9rem, 1.55rem + 1.7vw, 3rem);
    --am-step-4: clamp(2.6rem, 1.9rem + 3.6vw, 5.2rem);

    /* Space */
    --am-space-1: 0.25rem;
    --am-space-2: 0.5rem;
    --am-space-3: 0.75rem;
    --am-space-4: 1rem;
    --am-space-5: 1.5rem;
    --am-space-6: 2rem;
    --am-space-7: 3rem;
    --am-space-8: 4.5rem;
    --am-space-9: 6.5rem;
    /* page rhythm: hero to content, section to section, content to footer, band padding */
    --am-rhythm: var(--am-space-7);
    --am-gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
    --am-max: 76rem;

    /* Shape + depth */
    --am-radius-s: 6px;
    --am-radius-m: 12px;
    --am-radius-l: 20px;
    --am-shadow-stamp: 0 1px 2px rgba(3, 8, 20, 0.35), 0 14px 30px -10px rgba(3, 8, 20, 0.7);
    --am-shadow-lift: 0 2px 4px rgba(3, 8, 20, 0.3), 0 24px 48px -16px rgba(3, 8, 20, 0.8);

    /* Motion */
    --am-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --am-ease-step: cubic-bezier(0.34, 1.56, 0.64, 1);
    --am-dur-1: 160ms;
    --am-dur-2: 320ms;
    --am-dur-3: 560ms;

    /* Chrome */
    --am-topbar-h: 60px;
    --am-tabbar-h: 64px;

    color-scheme: dark;
}

/* ── App-like navigation: cross-document view transitions ───────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms var(--am-ease-out, ease-out) both am-vt-out; }
::view-transition-new(root) { animation: 320ms var(--am-ease-out, ease-out) both am-vt-in; }
.am-topbar { view-transition-name: am-topbar; }
.am-tabbar { view-transition-name: am-tabbar; }
@keyframes am-vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes am-vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--am-topbar-h) + 12px);
    background: var(--am-navy-900);
}

body.am-site {
    margin: 0;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: var(--am-navy-900);
    color: var(--am-cream);
    font-family: var(--am-font-body);
    font-size: var(--am-step-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
    font-variant-numeric: tabular-nums;
}

body.am-site[data-locale="si"] { line-height: 1.75; }

:where(.am-site) img { max-width: 100%; display: block; }
:where(.am-site) a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:where(.am-site) button { font: inherit; color: inherit; }
:where(.am-site) :where(h1, h2, h3, h4) { margin: 0; font-weight: inherit; }
:where(.am-site) p { margin: 0; }
:where(.am-site) ul { margin: 0; padding: 0; list-style: none; }

.am-site ::selection { background: var(--am-gold); color: var(--am-gold-ink); }
.am-site { caret-color: var(--am-gold); accent-color: var(--am-gold); }

.am-site :focus-visible {
    outline: 2px solid var(--am-gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Scrollbars */
.am-site { scrollbar-color: var(--am-navy-600) var(--am-navy-950); }
.am-site ::-webkit-scrollbar { width: 10px; height: 8px; }
.am-site ::-webkit-scrollbar-track { background: var(--am-navy-950); }
.am-site ::-webkit-scrollbar-thumb { background: var(--am-navy-600); border-radius: 8px; border: 2px solid var(--am-navy-950); }

.am-site [hidden] { display: none !important; }

.am-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.am-skip {
    position: fixed; top: 8px; left: 8px; z-index: 200;
    padding: 0.6rem 1rem;
    background: var(--am-gold); color: var(--am-gold-ink);
    font-weight: 600; border-radius: var(--am-radius-s);
    transform: translateY(-160%);
    transition: transform var(--am-dur-1) var(--am-ease-out);
}
.am-skip:focus { transform: none; }

.am-wrap {
    width: 100%;
    max-width: var(--am-max);
    margin-inline: auto;
    padding-inline: var(--am-gutter);
}

/* ── Airmail chevron rule (the one decorative rule) ─────────────────────── */
.am-airmail-rule {
    height: 8px;
    background: linear-gradient(90deg, var(--am-it-green) 0 33.334%, var(--am-it-white) 33.334% 66.667%, var(--am-it-red) 66.667% 100%);
}

/* ── Page rhythm ───────────────────────────────────────────────────────────
   One gap, --am-rhythm (48px on phones, 72px from 960px), for every vertical step of a page:
   hero to content, section to section, last section to the footer, and inside full-width bands.
   The content area owns it, so pages and their sections carry no outer padding of their own. */
@media (min-width: 960px) { :root { --am-rhythm: var(--am-space-8); } }

main.am-paper { padding-block: var(--am-rhythm); }
main.am-paper > div { margin-block: 0 !important; padding-block: 0 !important; }
main.am-paper > div > :first-child { margin-top: 0 !important; padding-top: 0 !important; }
main.am-paper > div > :last-child { margin-bottom: 0 !important; padding-bottom: 0 !important; }
main.am-paper > div > * + * { margin-top: var(--am-rhythm); }
/* bands: a field of colour across the page, padded inside by the same gap */
main.am-paper > div > :is(.am-purpose, .am-note-band, .am-legal-band, .am-pf-films) { padding-block: var(--am-rhythm) !important; }
main.am-paper:has(> div > :is(.am-purpose, .am-note-band, .am-legal-band, .am-pf-films):last-child) { padding-bottom: 0; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.am-btn {
    --_bg: var(--am-gold);
    --_fg: var(--am-gold-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 52px;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--_bg);
    color: var(--_fg);
    font-family: var(--am-font-body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.005em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 24px -10px rgba(212, 164, 55, 0.65);
    transition: transform var(--am-dur-1) var(--am-ease-out), background-color var(--am-dur-1), box-shadow var(--am-dur-2) var(--am-ease-out);
}
.am-btn:hover { background: var(--am-gold-300); transform: translateY(-1px); }
.am-btn:active { transform: translateY(1px) scale(0.985); }
.am-btn svg { width: 20px; height: 20px; flex: none; }

.am-btn--ghost {
    --_bg: transparent;
    --_fg: var(--am-cream);
    box-shadow: inset 0 0 0 1px var(--am-navy-line-strong);
}
.am-btn--ghost:hover { background: rgba(247, 241, 227, 0.08); }

.am-btn--small { min-height: 40px; padding: 0 1rem; font-size: 0.9rem; }

.am-btn[aria-disabled="true"], .am-btn:disabled {
    --_bg: var(--am-navy-700);
    --_fg: var(--am-cream-faint);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* ── Top bar ────────────────────────────────────────────────────────────── */
.am-topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    height: var(--am-topbar-h);
    background: rgba(11, 22, 48, 0.82);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--am-navy-line);
}
.am-topbar__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: var(--am-space-5);
}
.am-topbar__brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.am-topbar__brand img { height: 34px; width: auto; }
.am-topbar__brand .am-brand-mark { display: none; height: 30px; }

.am-topbar__nav { display: none; margin-left: auto; gap: 0.25rem; }
.am-topbar__nav a {
    padding: 0.45rem 0.8rem;
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--am-cream-muted);
    text-decoration: underline 2px transparent;
    text-underline-offset: 8px;
    transition: color var(--am-dur-1), text-decoration-color var(--am-dur-1);
}
.am-topbar__nav a:hover { color: var(--am-cream); }
.am-topbar__nav a[aria-current="page"] { color: var(--am-gold); text-decoration-color: currentColor; }

.am-topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.am-topbar__account {
    display: inline-flex; align-items: center; gap: 0.4rem;
    min-height: 40px; padding: 0 0.9rem;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--am-navy-line-strong);
    font-size: 0.9rem; font-weight: 600; text-decoration: none;
    transition: background-color var(--am-dur-1);
}
.am-topbar__account:hover { background: rgba(247, 241, 227, 0.08); }
.am-topbar__account svg { width: 18px; height: 18px; }
/* account area: a gold way back to booking, and log out as a plain button in the bar */
.am-topbar__book { background: var(--am-gold); color: var(--am-gold-ink) !important; box-shadow: none; }
.am-topbar__book:hover { background: var(--am-gold-300); }
.am-topbar__logout { margin: 0; }
.am-topbar__logout button { border: 0; background: transparent; font-family: inherit; color: var(--am-cream); cursor: pointer; }
@media (max-width: 959px) { .am-topbar__book { display: none; } }
@media (max-width: 520px) { .am-topbar__logout span { display: none; } .am-topbar__logout button { padding-inline: 0.7rem; } }

/* small phones keep the full wordmark: the controls beside it get smaller instead */
@media (max-width: 420px) {
    .am-topbar__inner { gap: var(--am-space-3); }
    .am-topbar__brand img { height: 28px; }
    .am-topbar__actions { gap: 0.35rem; }
    .am-topbar .am-lang { padding: 2px; }
    .am-topbar .am-lang a { min-width: 30px; min-height: 30px; padding: 0 0.3rem; font-size: 0.75rem; }
    .am-topbar__account { min-height: 36px; gap: 0.3rem; padding: 0 0.7rem; font-size: 0.84rem; }
    .am-topbar__account svg { width: 16px; height: 16px; }
}
/* the narrowest phones: the account button keeps its icon, its words stay for screen readers */
@media (max-width: 350px) {
    .am-topbar__account { padding-inline: 0.6rem; }
    .am-topbar__account span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (min-width: 960px) {
    .am-topbar__nav { display: flex; }
    .am-topbar__actions { margin-left: var(--am-space-3); }
}
/* seven links plus the language switch and account: tighter links until the bar has room */
@media (min-width: 960px) and (max-width: 1099px) {
    .am-topbar__nav a { padding-inline: 0.5rem; }
}

/* ── Bottom tab bar (phones) ────────────────────────────────────────────── */
.am-tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(6, 13, 31, 0.92);
    backdrop-filter: saturate(150%) blur(16px);
    -webkit-backdrop-filter: saturate(150%) blur(16px);
    border-top: 1px solid var(--am-navy-line);
}
.am-tabbar ul {
    display: grid;
    /* five tabs normally; fewer when the admin hides a section, without leaving a gap */
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    height: var(--am-tabbar-h);
}
.am-tabbar__menu { width: 100%; padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
.am-tabbar a, .am-tabbar__menu {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--am-cream-faint);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color var(--am-dur-1);
}
.am-tabbar a svg, .am-tabbar__menu svg { width: 23px; height: 23px; }
.am-tabbar a[aria-current="page"], .am-tabbar a:hover, .am-tabbar__menu:hover, .am-tabbar__menu.is-current, .am-tabbar__menu[aria-expanded="true"] { color: var(--am-cream); }
.am-tabbar a[aria-current="page"] svg, .am-tabbar__menu.is-current svg, .am-tabbar__menu[aria-expanded="true"] svg { color: var(--am-gold); }

/* ── Phone menu sheet: rises from the bottom, where the thumb already is ── */
.am-menu {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%; max-width: none; max-height: min(86svh, 640px);
    margin: 0;
    padding: var(--am-space-4) var(--am-gutter) calc(var(--am-space-5) + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    border: 0;
    border-radius: 22px 22px 0 0;
    color: var(--am-cream);
    background: var(--am-navy-900);
    box-shadow: 0 -18px 48px -12px rgba(3, 8, 20, 0.6);
}
.am-menu::backdrop { background: rgba(3, 8, 20, 0.6); }
.am-menu[open] { animation: am-menu-in 320ms var(--am-ease-out); }
.am-menu[open]::backdrop { animation: am-menu-fade 320ms var(--am-ease-out); }
@keyframes am-menu-in { from { transform: translateY(100%); } }
@keyframes am-menu-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .am-menu[open], .am-menu[open]::backdrop { animation: none; } }
.am-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--am-space-3); }
.am-menu__title { font-family: var(--am-font-display); font-weight: 800; font-stretch: 80%; font-size: 1.6rem; text-transform: uppercase; color: var(--am-cream); }
.am-menu__close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: var(--am-cream); background: rgba(247, 241, 227, 0.08); cursor: pointer; transition: background-color var(--am-dur-1); }
.am-menu__close:hover { background: rgba(247, 241, 227, 0.16); }
.am-menu__close svg { width: 22px; height: 22px; }
.am-menu__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.am-menu__list a {
    display: grid; grid-template-columns: 24px minmax(0, 1fr) 18px; align-items: center; gap: var(--am-space-3);
    min-height: 56px; padding: 0 var(--am-space-4);
    border-radius: 14px;
    font-size: 1.05rem; font-weight: 600; text-decoration: none;
    color: var(--am-cream);
    background: rgba(247, 241, 227, 0.05);
    transition: background-color var(--am-dur-1), transform var(--am-dur-1) var(--am-ease-out);
}
.am-menu__list a svg { width: 22px; height: 22px; color: var(--am-gold); }
.am-menu__list a svg:last-child { width: 18px; height: 18px; color: var(--am-cream-faint); }
.am-menu__list a:hover { background: rgba(247, 241, 227, 0.1); }
.am-menu__list a:active { transform: scale(0.98); }
.am-menu__list a[aria-current="page"] { background: rgba(212, 164, 55, 0.14); }
.am-menu__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--am-space-3); margin-top: var(--am-space-4); }
.am-menu__account {
    display: inline-flex; align-items: center; gap: 0.5rem;
    min-height: 48px; padding: 0 1.2rem;
    border-radius: 999px;
    font-weight: 700; text-decoration: none;
    color: var(--am-gold-ink); background: var(--am-gold);
    transition: background-color var(--am-dur-1);
}
.am-menu__account:hover { background: var(--am-gold-300); color: var(--am-gold-ink); }
.am-menu__account svg { width: 18px; height: 18px; }
.am-menu .am-lang a { min-width: 44px; min-height: 40px; }
@media (min-width: 960px) { .am-menu { display: none; } }

body.am-site { padding-bottom: calc(var(--am-tabbar-h) + env(safe-area-inset-bottom, 0px)); }

@media (min-width: 960px) {
    .am-tabbar { display: none; }
    body.am-site { padding-bottom: 0; }
}

/* ── Flash ──────────────────────────────────────────────────────────────── */
.am-flash {
    display: flex; align-items: flex-start; gap: 0.75rem;
    margin: var(--am-space-4) auto 0;
    padding: 0.85rem 1rem;
    border-radius: var(--am-radius-m);
    background: var(--am-cream);
    color: var(--am-ink);
    box-shadow: var(--am-shadow-stamp);
    font-weight: 500;
}
.am-flash svg { width: 20px; height: 20px; flex: none; color: var(--am-navy-700); margin-top: 2px; }

/* ── Section headings ───────────────────────────────────────────────────── */

.am-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--am-space-4);
    margin-bottom: var(--am-space-5);
}
.am-h2 {
    font-family: var(--am-font-display);
    font-size: var(--am-step-3);
    font-weight: 800;
    font-stretch: 78%;
    line-height: 1.02;
    letter-spacing: -0.015em;
    text-transform: uppercase;
    text-wrap: balance;
}
[data-locale="si"] .am-h2 { text-transform: none; line-height: 1.35; font-stretch: 100%; }
.am-lede { color: var(--am-cream-muted); max-width: 46ch; margin-top: var(--am-space-2); text-wrap: pretty; }

.am-link-arrow {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-weight: 600; font-size: 0.93rem;
    color: var(--am-gold-300);
    text-decoration: none;
    white-space: nowrap;
}
.am-link-arrow svg { width: 16px; height: 16px; transition: transform var(--am-dur-1) var(--am-ease-out); }
.am-link-arrow:hover svg { transform: translateX(3px); }

/* ── Stamp (perforated poster frame) ────────────────────────────────────── */
/* Perforations are cut with a radial mask so the navy ground shows through. */
/* Holes sit on the edge lines (half-bites); the content box stays solid.
   The mask clips filters too, so shadows live on .am-shadowed parents. */
.am-stamp {
    --s: 12px;            /* hole pitch */
    --r: 3.6px;           /* hole radius */
    --pad: 6px;           /* paper margin between holes and artwork */
    position: relative;
    display: block;
    padding: calc(var(--s) / 2);
    background: var(--am-cream);
    -webkit-mask:
        radial-gradient(circle var(--r), #0000 96%, #000) calc(var(--s) / -2) calc(var(--s) / -2) / var(--s) var(--s) round,
        linear-gradient(#000 0 0) content-box;
    mask:
        radial-gradient(circle var(--r), #0000 96%, #000) calc(var(--s) / -2) calc(var(--s) / -2) / var(--s) var(--s) round,
        linear-gradient(#000 0 0) content-box;
}
.am-shadowed { filter: drop-shadow(0 2px 2px rgba(3, 8, 20, 0.35)) drop-shadow(0 14px 18px rgba(3, 8, 20, 0.5)); }
.am-stamp__art {
    position: relative;
    display: block;
    margin: var(--pad);
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--am-navy-800);
}
.am-stamp__art img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
}
.am-stamp__denom {
    position: absolute;
    right: calc(var(--s) / 2 + var(--pad) + 6px);
    top: calc(var(--s) / 2 + var(--pad) + 6px);
    padding: 0.1rem 0.45rem;
    background: var(--am-cream);
    color: var(--am-ink);
    font-family: var(--am-font-display);
    font-weight: 800;
    font-stretch: 80%;
    font-size: 0.95rem;
    line-height: 1.3;
    border-radius: 2px;
}

/* Typographic poster fallback when no poster has been uploaded */
.am-poster-fallback {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 12% 10%;
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(212, 164, 55, 0.22), transparent 60%),
        linear-gradient(160deg, var(--am-navy-700), var(--am-navy-950));
    color: var(--am-cream);
    container-type: inline-size;
    overflow: hidden;
}
.am-poster-fallback img { width: 34%; height: auto; opacity: 0.9; }
/* Doubled class so list rules on the host page (".am-pf-more__grid strong" etc.) can't recolour the stamp's own text */
.am-poster-fallback.am-poster-fallback strong {
    font-family: var(--am-font-display);
    font-weight: 800;
    font-stretch: 72%;
    font-size: clamp(0.85rem, 15.5cqi, 2rem); /* sized to the stamp, not the window */
    line-height: 1;
    text-transform: uppercase;
    text-wrap: balance;
    overflow-wrap: anywhere;
    color: var(--am-cream);
}
.am-poster-fallback.am-poster-fallback span { font-size: clamp(0.55rem, 5.5cqi, 0.72rem); letter-spacing: 0.14em; text-transform: uppercase; color: var(--am-gold-300); }

/* ── Postmark ───────────────────────────────────────────────────────────── */
.am-postmark {
    --size: 88px;
    position: absolute;
    width: var(--size); height: var(--size);
    display: grid; place-items: center;
    color: var(--am-gold);
    pointer-events: none;
    transform: rotate(-12deg);
}
.am-postmark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.am-postmark__date {
    position: relative;
    display: grid;
    justify-items: center;
    font-family: var(--am-font-display);
    font-weight: 800;
    font-stretch: 72%;
    line-height: 0.95;
    text-transform: uppercase;
}
.am-postmark__date b { font-size: calc(var(--size) * 0.2); font-weight: 900; }
.am-postmark__date small { font-size: calc(var(--size) * 0.11); letter-spacing: 0.04em; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.am-hero {
    position: relative;
    isolation: isolate;
    min-height: calc(100svh - var(--am-topbar-h) - var(--am-tabbar-h));
    display: grid;
    overflow: hidden;
    background:
        radial-gradient(90% 60% at 70% 35%, rgba(42, 69, 128, 0.55), transparent 70%),
        radial-gradient(70% 50% at 10% 100%, rgba(212, 164, 55, 0.10), transparent 70%),
        linear-gradient(180deg, var(--am-navy-900) 0%, var(--am-navy-950) 100%);
}
@media (min-width: 960px) {
    .am-hero { min-height: min(calc(100svh - var(--am-topbar-h)), 860px); }
}

.am-hero__stage {
    position: absolute; inset: 0;
    z-index: 0;
}
.am-hero__canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 900ms var(--am-ease-out);
    touch-action: pan-y;
    cursor: grab;
}
.am-hero.is-3d .am-hero__canvas { opacity: 1; }
.am-hero.is-3d .am-hero__static { opacity: 0; visibility: hidden; }

/* Static fallback stage: also the no-JS / no-WebGL / reduced-data view */
.am-hero__static {
    position: absolute;
    left: 50%;
    top: 7%;
    width: min(58vw, 300px);
    transform: translateX(-50%) rotate(-3deg);
    transition: opacity 500ms var(--am-ease-out);
}
.am-hero__static .am-postmark { --size: 104px; right: -34px; bottom: 4%; }

.am-hero__copy {
    position: relative;
    z-index: 2;
    align-self: end;
    padding-top: 47svh;
    padding-bottom: var(--am-space-5);
    pointer-events: none;
}
.am-hero__copy > * { pointer-events: auto; }
.am-hero__copy::before {
    content: "";
    position: absolute;
    inset: 40% calc(var(--am-gutter) * -1) 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent, rgba(6, 13, 31, 0.86) 45%, var(--am-navy-950));
    pointer-events: none;
}

@media (min-width: 960px) {
    .am-hero__static { left: auto; right: 9%; top: 50%; width: 330px; transform: translateY(-50%) rotate(-3deg); }
    .am-hero__copy { align-self: center; padding-top: var(--am-space-7); padding-bottom: var(--am-space-7); }
    .am-hero__copy > * { max-width: 36rem; }
    .am-hero__copy::before { display: none; }
}

.am-hero__title-slot {
    position: relative;
    overflow: hidden;
    padding-bottom: 0.08em;
}
.am-hero__title {
    font-family: var(--am-font-display);
    font-size: var(--am-step-4);
    font-weight: 900;
    font-stretch: 68%;
    line-height: 0.92;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    text-wrap: balance;
    color: var(--am-cream);
}
[data-locale="si"] .am-hero__title { text-transform: none; font-stretch: 100%; line-height: 1.3; }
.am-hero__title.is-sinhala { text-transform: none; line-height: 1.3; font-weight: 700; }

.am-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.9rem;
    margin-top: var(--am-space-3);
    font-weight: 500;
    color: var(--am-cream-muted);
}
.am-hero__meta strong { color: var(--am-cream); font-weight: 600; }
.am-hero__meta .am-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--am-gold); }

.am-hero__actions {
    display: flex;
    gap: var(--am-space-3);
    margin-top: var(--am-space-5);
}
.am-hero__actions .am-btn { flex: 1 1 0; min-width: 0; white-space: nowrap; padding-inline: 1rem; }
@media (min-width: 560px) { .am-hero__actions .am-btn { flex: 0 0 auto; } }

/* Departure-board step for changing hero text */
.am-step-out { animation: am-step-out 220ms var(--am-ease-out) forwards; }
.am-step-in { animation: am-step-in 420ms var(--am-ease-step) both; }
@keyframes am-step-out { to { transform: translateY(-105%); opacity: 0; } }
@keyframes am-step-in { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Film picker under the hero copy */
.am-hero__picker {
    display: flex;
    gap: 0.6rem;
    margin-top: var(--am-space-5);
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 2px 6px;
    scroll-snap-type: x mandatory;
}
.am-hero__picker::-webkit-scrollbar { display: none; }
.am-pick {
    position: relative;
    flex: none;
    width: 52px;
    padding: 3px;
    border: 0;
    border-radius: 4px;
    background: rgba(247, 241, 227, 0.14);
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform var(--am-dur-2) var(--am-ease-out), background-color var(--am-dur-1);
}
.am-pick img, .am-pick .am-pick__blank {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 2px;
    background: var(--am-navy-700);
}
.am-pick__blank { display: grid; place-items: center; }
.am-pick__blank img { width: 70%; height: auto; aspect-ratio: auto; background: none; }
.am-pick[aria-pressed="true"] { background: var(--am-gold); transform: translateY(-4px); }
.am-pick:hover { background: rgba(247, 241, 227, 0.3); }
.am-pick[aria-pressed="true"]:hover { background: var(--am-gold-300); }
.am-pick__progress {
    position: absolute; left: 3px; right: 3px; bottom: -7px;
    height: 2px; border-radius: 2px;
    background: rgba(247, 241, 227, 0.15);
    overflow: hidden;
    opacity: 0;
}
.am-pick[aria-pressed="true"] .am-pick__progress { opacity: 1; }
.am-pick__progress i { display: block; height: 100%; width: 0; background: var(--am-gold); }
.am-hero.is-cycling .am-pick[aria-pressed="true"] .am-pick__progress i { animation: am-progress var(--am-cycle, 7s) linear forwards; }
@keyframes am-progress { to { width: 100%; } }

/* Flight-arc labels (drawn by DOM so they stay crisp) */

/* ── City filter chips ──────────────────────────────────────────────────── */
.am-chips {
    position: sticky;
    top: var(--am-topbar-h);
    z-index: 20;
    display: flex;
    gap: 0.5rem;
    margin-inline: calc(var(--am-gutter) * -1);
    padding: 0.75rem var(--am-gutter);
    overflow-x: auto;
    scrollbar-width: none;
    background: linear-gradient(180deg, var(--am-navy-900) 70%, rgba(11, 22, 48, 0));
}
.am-chips::-webkit-scrollbar { display: none; }
.am-chip {
    flex: none;
    display: inline-flex; align-items: center; gap: 0.4rem;
    min-height: 40px;
    padding: 0 1rem;
    border: 0;
    border-radius: 999px;
    background: rgba(247, 241, 227, 0.07);
    box-shadow: inset 0 0 0 1px var(--am-navy-line);
    color: var(--am-cream-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--am-dur-1), color var(--am-dur-1), box-shadow var(--am-dur-1);
}
.am-chip:hover { color: var(--am-cream); box-shadow: inset 0 0 0 1px var(--am-navy-line-strong); }
.am-chip[aria-pressed="true"] { background: var(--am-cream); color: var(--am-ink); box-shadow: none; }
.am-chip__count {
    min-width: 1.4rem; height: 1.4rem;
    padding: 0 0.35rem;
    display: inline-grid; place-items: center;
    border-radius: 999px;
    background: rgba(247, 241, 227, 0.12);
    font-size: 0.72rem;
}
.am-chip[aria-pressed="true"] .am-chip__count { background: var(--am-navy-900); color: var(--am-cream); }

/* ── Film letters (now showing) ─────────────────────────────────────────── */
.am-films {
    display: grid;
    gap: var(--am-space-6);
}
@media (min-width: 900px) {
    .am-films { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--am-space-7) var(--am-space-6); }
}

.am-film {
    display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    gap: var(--am-space-4) var(--am-space-5);
    align-items: start;
}
.am-film[hidden] { display: none; }
.am-film__stamp { position: relative; align-self: start; text-decoration: none; transition: transform var(--am-dur-2) var(--am-ease-out); }
.am-film__stamp:hover { transform: rotate(-1.5deg) translateY(-3px); }
.am-film__stamp .am-postmark { --size: 72px; right: 10px; bottom: 12px; transform: rotate(-14deg); }
.am-film__body { padding-top: var(--am-space-2); min-width: 0; }
.am-film__title {
    font-family: var(--am-font-display);
    font-size: var(--am-step-2);
    font-weight: 800;
    font-stretch: 74%;
    line-height: 1.02;
    text-transform: uppercase;
    text-wrap: balance;
}
.am-film__title a { text-decoration: none; }
.am-film__title a:hover { color: var(--am-gold-300); }
[data-locale="si"] .am-film__title, .am-film__title.is-sinhala { text-transform: none; line-height: 1.35; font-stretch: 100%; }
.am-film__facts {
    display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem;
    margin-top: var(--am-space-2);
    font-size: var(--am-step--1);
    color: var(--am-cream-faint);
}
.am-film__facts:empty { display: none; }
.am-film__facts span { white-space: nowrap; }
.am-film__facts span + span::before { content: '·'; margin-right: 0.5rem; font-weight: 700; }
.am-film__cities { margin: 0.25rem 0 0; font-size: var(--am-step--1); color: var(--am-cream-faint); }
.am-paper .am-film__cities { color: var(--am-ink-faint); }

.am-sessions {
    grid-column: 1 / -1;
    display: grid;
    gap: 2px;
    border-radius: var(--am-radius-m);
    overflow: hidden;
    background: var(--am-navy-line);
}
@media (min-width: 560px) {
    .am-film { grid-template-rows: auto 1fr; }
    .am-film__stamp { grid-row: span 2; }
    .am-sessions { grid-column: 2; align-self: start; }
}

.am-session {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--am-space-3);
    min-height: 64px;
    padding: 0.6rem 0.9rem;
    background: var(--am-navy-850);
    text-decoration: none;
    transition: background-color var(--am-dur-1);
}
a.am-session:hover { background: var(--am-navy-800); }
a.am-session:hover .am-session__go { background: var(--am-gold); color: var(--am-gold-ink); }
.am-session[hidden] { display: none; }
.am-session__date {
    width: 46px;
    text-align: center;
    font-family: var(--am-font-display);
    line-height: 1;
}
.am-session__date b { display: block; font-size: 1.45rem; font-weight: 800; font-stretch: 80%; }
.am-session__date small { display: block; margin-top: 3px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--am-gold); }
.am-session__where { min-width: 0; }
.am-session__where strong { display: block; font-weight: 600; line-height: 1.35; }
.am-session__where span { display: block; font-size: var(--am-step--1); color: var(--am-cream-faint); }
.am-session__venue { overflow-wrap: anywhere; }
.am-session__side { display: flex; align-items: center; gap: 0.6rem; }
.am-session__price { font-weight: 700; white-space: nowrap; }
.am-session__go {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(247, 241, 227, 0.09);
    transition: background-color var(--am-dur-1), color var(--am-dur-1);
}
.am-session__go svg { width: 18px; height: 18px; }

/* Seats meter — honest availability */
.am-meter { display: flex; align-items: center; gap: 0.45rem; margin-top: 4px; font-size: 0.72rem; font-weight: 600; color: var(--am-cream-faint); }
.am-meter__bar { position: relative; width: 52px; height: 4px; border-radius: 4px; background: rgba(247, 241, 227, 0.14); overflow: hidden; }
.am-meter__bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--am-cream-muted); }
.am-meter.is-low { color: var(--am-red-300); }
.am-meter.is-low .am-meter__bar i { background: var(--am-red); }

.am-session__flag {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.25rem 0.55rem; border-radius: 999px;
    background: rgba(247, 241, 227, 0.1); color: var(--am-cream-muted);
    white-space: nowrap;
}
.am-session__flag--soldout { background: rgba(200, 55, 45, 0.18); color: var(--am-red-300); }
.am-session__flag--cancelled { background: rgba(200, 55, 45, 0.18); color: var(--am-red-300); }
.am-session__flag--soon { background: rgba(212, 164, 55, 0.16); color: var(--am-gold-300); }
button.am-session { width: 100%; border: 0; text-align: left; cursor: pointer; color: inherit; }
button.am-session:hover { background: var(--am-navy-800); }
.am-session.is-cancelled .am-session__where strong { text-decoration: line-through; text-decoration-color: var(--am-red); }

.am-empty {
    display: grid; justify-items: center; gap: var(--am-space-3);
    padding: var(--am-space-7) var(--am-space-5);
    text-align: center;
    border-radius: var(--am-radius-l);
    background: var(--am-navy-850);
    box-shadow: inset 0 0 0 1px var(--am-navy-line);
}
.am-empty img { width: 72px; opacity: 0.8; }
.am-empty h3 { font-family: var(--am-font-display); font-weight: 800; font-stretch: 80%; font-size: var(--am-step-1); text-transform: uppercase; }
.am-empty p { color: var(--am-cream-muted); max-width: 36ch; }

/* ── Coming soon rail ───────────────────────────────────────────────────── */
.am-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 42%);
    gap: var(--am-space-5);
    margin-inline: calc(var(--am-gutter) * -1);
    padding: var(--am-space-2) var(--am-gutter) var(--am-space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--am-gutter);
    scrollbar-width: none;
}
.am-rail::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .am-rail { grid-auto-columns: 200px; } }
/* the rail has no visible scrollbar: these step through it a screenful at a time */
.am-rail-nav { display: flex; flex: none; gap: 0.5rem; }
.am-rail-nav[hidden] { display: none; }
.am-rail-nav__btn {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    padding: 0; border: 0; border-radius: 50%;
    color: var(--am-navy-900);
    background: var(--am-paper-3, #E1E6EF);
    cursor: pointer;
    transition: background-color var(--am-dur-1), color var(--am-dur-1), opacity var(--am-dur-1), transform var(--am-dur-1) var(--am-ease-out);
}
.am-rail-nav__btn svg { width: 20px; height: 20px; }
.am-rail-nav__btn.is-prev svg { transform: scaleX(-1); }
.am-rail-nav__btn:hover:not(:disabled) { color: var(--am-cream); background: var(--am-navy-900); }
.am-rail-nav__btn:active:not(:disabled) { transform: scale(0.92); }
.am-rail-nav__btn:focus-visible { outline: 2px solid var(--am-navy-600); outline-offset: 3px; }
.am-rail-nav__btn:disabled { opacity: 0.35; cursor: default; }
.am-rail > * { scroll-snap-align: start; }
.am-soon { position: relative; }
.am-soon .am-postmark { --size: 82px; left: 50%; top: 40%; margin-left: -41px; transform: rotate(-16deg); }
.am-soon .am-stamp__art img { filter: saturate(0.85) brightness(0.8); }
.am-soon__title { margin-top: var(--am-space-3); font-weight: 600; line-height: 1.35; }
.am-soon__facts { font-size: var(--am-step--1); color: var(--am-cream-faint); }

/* ── Bundles: envelopes ─────────────────────────────────────────────────── */
.am-envelopes { display: grid; gap: var(--am-space-5); }
@media (min-width: 700px) { .am-envelopes { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } }

.am-envelope {
    position: relative;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: var(--am-space-4);
    padding: var(--am-space-5);
    border-radius: var(--am-radius-m);
    background: var(--am-cream);
    color: var(--am-ink);
    text-decoration: none;
    box-shadow: var(--am-shadow-stamp);
    overflow: hidden;
    transition: transform var(--am-dur-2) var(--am-ease-out), box-shadow var(--am-dur-2) var(--am-ease-out);
}
.am-envelope:hover { transform: translateY(-4px); box-shadow: var(--am-shadow-lift); }
.am-envelope__stack { position: relative; height: 150px; }
.am-envelope__stack { filter: drop-shadow(0 6px 8px rgba(3, 8, 20, 0.3)); }
.am-envelope__stack .am-stamp { --s: 8px; --r: 2.4px; --pad: 3px; position: absolute; width: 82px; top: 0; }
.am-envelope__stack .am-stamp:nth-child(1) { left: 0; transform: rotate(-7deg); }
.am-envelope__stack .am-stamp:nth-child(2) { left: 16px; top: 8px; transform: rotate(3deg); }
.am-envelope__stack .am-stamp:nth-child(3) { left: 30px; top: 14px; transform: rotate(9deg); }
/* once airmail-bundles.js numbers the posters (data-pos 0 = front) they shuffle like the bundles page */
.am-envelope__stack .am-stamp[data-pos] { left: 0; top: 0; transition: transform 380ms var(--am-ease-out); }
.am-envelope__stack .am-stamp[data-pos="0"] { z-index: 3; transform: translate(30px, 14px) rotate(9deg); }
.am-envelope__stack .am-stamp[data-pos="1"] { z-index: 2; transform: translate(16px, 8px) rotate(3deg); }
.am-envelope__stack .am-stamp[data-pos="2"] { z-index: 1; transform: translate(0, 0) rotate(-7deg); }
/* the envelope clips its overflow, so the lift stays inside its top padding */
.am-envelope__stack .am-stamp.is-lift { z-index: 4; transform: translate(-10px, -20px) rotate(-14deg); }
.am-envelope h3 { font-family: var(--am-font-display); font-weight: 800; font-stretch: 78%; font-size: var(--am-step-1); line-height: 1.1; text-transform: uppercase; }
.am-envelope p { margin-top: var(--am-space-2); font-size: var(--am-step--1); color: var(--am-ink-muted); }
.am-envelope__films { margin-top: var(--am-space-3); display: grid; gap: 2px; font-size: 0.86rem; font-weight: 500; }
.am-envelope__films li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-envelope__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--am-space-3); margin-top: var(--am-space-4); }
.am-envelope__price { font-family: var(--am-font-display); font-weight: 900; font-stretch: 80%; font-size: var(--am-step-2); line-height: 1; }
.am-envelope__cta { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 700; font-size: 0.9rem; color: var(--am-navy-700); }
.am-envelope__cta svg { width: 16px; height: 16px; }

/* ── Cities: postmarks ──────────────────────────────────────────────────── */
.am-cities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: var(--am-space-6) var(--am-space-4);
}
.am-city {
    display: grid;
    justify-items: center;
    gap: var(--am-space-3);
    padding-block: var(--am-space-2);
    text-decoration: none;
    text-align: center;
    border-radius: var(--am-radius-m);
}
.am-city .am-city__mark { position: relative; --size: 124px; transition: transform var(--am-dur-3) var(--am-ease-out), color var(--am-dur-1); }
.am-city:nth-child(3n + 1) .am-city__mark { transform: rotate(-12deg); }
.am-city:nth-child(3n + 2) .am-city__mark { transform: rotate(7deg); }
.am-city:nth-child(3n) .am-city__mark { transform: rotate(-4deg); }
.am-city:hover .am-city__mark { transform: rotate(0deg) scale(1.05); color: var(--am-gold-300); }
.am-city .am-city__mark.is-idle { color: var(--am-cream-faint); }
.am-city__label { display: grid; justify-items: center; gap: 0.1rem; line-height: 1.3; }
.am-city__name { font-size: var(--am-step-0); font-weight: 700; letter-spacing: -0.01em; color: var(--am-cream); }
.am-city__count { font-size: var(--am-step--1); font-weight: 600; color: var(--am-cream-muted); }
.am-city:hover .am-city__count { color: var(--am-cream); }

.am-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--am-space-5); }

/* ── Sponsors ───────────────────────────────────────────────────────────── */
.am-sponsors {
    padding-block: var(--am-space-6);
    border-top: 1px solid var(--am-navy-line);
    overflow: hidden;
}
.am-sponsors__track { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: var(--am-space-5) clamp(1.5rem, 5vw, 4rem); }
.am-sponsors__item { display: grid; justify-items: center; gap: 0.5rem; text-decoration: none; }
.am-sponsors__logo { display: grid; place-items: center; height: 48px; }
.am-sponsors__logo img { max-height: 48px; max-width: 150px; width: auto; object-fit: contain; transition: transform var(--am-dur-2) var(--am-ease-out); }
a.am-sponsors__item:hover .am-sponsors__logo img { transform: translateY(-2px); }
.am-sponsors__name { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--am-ink-faint); text-align: center; }
a.am-sponsors__item:hover .am-sponsors__name { color: var(--am-ink); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.am-footer { margin-top: auto; background: var(--am-navy-950); }
.am-footer__grid {
    display: grid;
    gap: var(--am-space-6);
    padding-block: var(--am-space-7);
}
@media (min-width: 760px) { .am-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.am-footer__brand img { width: 150px; height: auto; }
.am-footer__brand p { margin-top: var(--am-space-4); max-width: 30ch; color: var(--am-cream-faint); font-size: var(--am-step--1); }
.am-footer h2 { margin-bottom: var(--am-space-3); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--am-gold); }
.am-footer li + li { margin-top: 0.45rem; }
.am-footer a { color: var(--am-cream-muted); text-decoration: underline 1px transparent; text-underline-offset: 3px; font-size: 0.94rem; transition: color var(--am-dur-2) var(--am-ease-out), text-decoration-color var(--am-dur-2) var(--am-ease-out); }
.am-footer a:hover { color: var(--am-cream); text-decoration-color: currentColor; }
.am-footer__contact a { display: inline-flex; align-items: center; gap: 0.5rem; }
.am-footer__contact svg { width: 17px; height: 17px; color: var(--am-gold); flex: none; }
.am-footer__legal { padding-block: var(--am-space-4); border-top: 1px solid var(--am-navy-line); font-size: 0.8rem; color: var(--am-cream-faint); }

/* ── Dialog (cancelled show) ────────────────────────────────────────────── */
.am-dialog {
    width: min(92vw, 30rem);
    padding: 0;
    border: 0;
    border-radius: var(--am-radius-l);
    background: var(--am-cream);
    color: var(--am-ink);
    box-shadow: var(--am-shadow-lift);
}
.am-dialog::backdrop { background: rgba(3, 8, 20, 0.7); backdrop-filter: blur(3px); }
.am-dialog[open] { animation: am-dialog-in var(--am-dur-2) var(--am-ease-out); }
@keyframes am-dialog-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.am-dialog__head { padding: var(--am-space-5) var(--am-space-5) 0; display: flex; justify-content: space-between; gap: var(--am-space-3); }
.am-dialog__head h2 { font-family: var(--am-font-display); font-weight: 800; font-stretch: 80%; font-size: var(--am-step-2); text-transform: uppercase; color: var(--am-red); line-height: 1.05; }
.am-dialog__close { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(11, 22, 48, 0.07); cursor: pointer; }
.am-dialog__close svg { width: 18px; height: 18px; }
.am-dialog__body { padding: var(--am-space-4) var(--am-space-5) var(--am-space-5); display: grid; gap: var(--am-space-3); font-size: 0.95rem; }
.am-dialog__body .am-muted { color: var(--am-ink-muted); font-size: 0.88rem; }
.am-dialog__note { padding: var(--am-space-3) var(--am-space-4); border-radius: var(--am-radius-m); background: rgba(200, 55, 45, 0.08); }

/* ── Reveal (one authored entrance, content visible by default) ─────────── */
@media (prefers-reduced-motion: no-preference) {
    .am-js .am-reveal .am-sessions li { opacity: 0; }
    .am-js .am-reveal.is-in .am-sessions li, .am-sessions.is-stepping li { animation: am-row-step 420ms var(--am-ease-step) both; animation-delay: calc(var(--i, 0) * 70ms); }
    @keyframes am-row-step { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .am-site *, .am-site *::before, .am-site *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ── Language switcher ──────────────────────────────────────────────────── */
.am-lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--am-navy-line-strong); }
.am-lang a { min-width: 34px; min-height: 34px; display: grid; place-items: center; padding: 0 0.4rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; text-decoration: none; color: var(--am-cream-muted); }
.am-lang a:hover { color: var(--am-cream); }
.am-lang a[aria-current="true"] { background: var(--am-cream); color: var(--am-ink); }

.am-nowrap { white-space: nowrap; }
.am-session__where strong .am-nowrap { display: inline; font-size: inherit; color: inherit; }


/* ==========================================================================
   Paper ground: content sections sit on white, framed by the navy hero,
   top bar, tab bar and footer. Postmarks turn to navy ink, like a real
   cancellation on a white envelope.
   ========================================================================== */
:root {
    --am-paper: #FFFFFF;
    /* paper-2 is the card tone on white; paper-3 stays one step darker for hovers on those cards */
    --am-paper-2: #ECEFF6;
    --am-paper-3: #E1E6EF;
    --am-paper-line: rgba(11, 22, 48, 0.1);
    --am-paper-line-strong: rgba(11, 22, 48, 0.2);
    --am-ink-faint: #5E6880;
    --am-gold-800: #7A5B12;
    --am-red-700: #A82A21;
}

.am-paper {
    background: var(--am-paper);
    color: var(--am-ink);
    color-scheme: light;
}
.am-paper :focus-visible { outline-color: var(--am-navy-700); }
.am-paper ::selection { background: var(--am-navy-900); color: var(--am-cream); }

.am-paper .am-h2 { color: var(--am-navy-900); }
.am-paper .am-lede { color: var(--am-ink-muted); }
.am-paper .am-link-arrow { color: var(--am-navy-700); }

/* chips */
.am-paper .am-chips { background: linear-gradient(180deg, var(--am-paper) 70%, rgba(255, 255, 255, 0)); }
.am-paper .am-chip { background: var(--am-paper-2); box-shadow: inset 0 0 0 1px var(--am-paper-line); color: var(--am-ink-muted); }
.am-paper .am-chip:hover { color: var(--am-ink); box-shadow: inset 0 0 0 1px var(--am-paper-line-strong); }
.am-paper .am-chip[aria-pressed="true"] { background: var(--am-navy-900); color: var(--am-cream); box-shadow: none; }
.am-paper .am-chip__count { background: rgba(11, 22, 48, 0.08); }
.am-paper .am-chip[aria-pressed="true"] .am-chip__count { background: rgba(247, 241, 227, 0.18); color: var(--am-cream); }

/* film letters */
.am-paper .am-film__title { color: var(--am-navy-900); }
.am-paper .am-film__title a:hover { color: var(--am-navy-600); }
.am-paper .am-film__facts { color: var(--am-ink-faint); }

.am-paper .am-sessions { background: var(--am-paper-line); }
.am-paper .am-session { background: var(--am-paper-2); color: var(--am-ink); }
.am-paper a.am-session:hover, .am-paper button.am-session:hover { background: var(--am-paper-3); }
.am-paper a.am-session:hover .am-session__go { background: var(--am-navy-900); color: var(--am-cream); }
.am-paper .am-session__date small { color: var(--am-gold-800); }
.am-paper .am-session__where span { color: var(--am-ink-faint); }
.am-paper .am-session__go { background: rgba(11, 22, 48, 0.07); }
.am-paper .am-meter { color: var(--am-ink-faint); }
.am-paper .am-meter__bar { background: rgba(11, 22, 48, 0.12); }
.am-paper .am-meter__bar i { background: var(--am-navy-600); }
.am-paper .am-meter.is-low { color: var(--am-red-700); }
.am-paper .am-meter.is-low .am-meter__bar i { background: var(--am-red); }
.am-paper .am-session__flag { background: rgba(11, 22, 48, 0.07); color: var(--am-ink-muted); }
.am-paper .am-session__flag--soldout, .am-paper .am-session__flag--cancelled { background: rgba(200, 55, 45, 0.1); color: var(--am-red-700); }
.am-paper .am-session__flag--soon { background: rgba(212, 164, 55, 0.18); color: var(--am-gold-800); }

.am-paper .am-empty { background: var(--am-paper-2); box-shadow: inset 0 0 0 1px var(--am-paper-line); }
.am-paper .am-empty p { color: var(--am-ink-muted); }

/* coming soon */
.am-paper .am-soon__facts { color: var(--am-ink-faint); }

/* envelopes: cream paper needs an edge on white */
.am-paper .am-envelope { box-shadow: 0 0 0 1px var(--am-paper-line), 0 12px 28px -14px rgba(11, 22, 48, 0.35); }
.am-paper .am-envelope:hover { box-shadow: 0 0 0 1px var(--am-paper-line-strong), 0 20px 40px -18px rgba(11, 22, 48, 0.45); }

/* stamps on white: a softer, cooler shadow */
.am-paper .am-shadowed { filter: drop-shadow(0 1px 1px rgba(11, 22, 48, 0.25)) drop-shadow(0 10px 14px rgba(11, 22, 48, 0.22)); }
.am-paper .am-stamp { background: var(--am-stamp-paper); }

/* cities: navy-ink cancellations on white */
.am-paper .am-city .am-city__mark { color: var(--am-navy-900); }
.am-paper .am-city:hover .am-city__mark { color: var(--am-gold-800); }
.am-paper .am-city .am-city__mark.is-idle { color: var(--am-ink-faint); opacity: 0.55; }
.am-paper .am-city__name { color: var(--am-navy-900); }
.am-paper .am-city__count { color: var(--am-ink-muted); }
.am-paper .am-city:hover .am-city__count { color: var(--am-ink); }

/* sponsors */
.am-sponsors.am-paper { border-top-color: var(--am-paper-line); }

/* the hero's lower edge carries the airmail stripe into the paper */
.am-hero + .am-airmail-rule { position: relative; z-index: 3; }

/* ── First-load splash: "lights down" ─────────────────────────────────────
   A line of projector light opens into a scope-ratio screen, the crown fades in on it,
   an LED line sweeps beneath while the site loads; on exit we move into the screen. */
.am-splash { display: none; }
.am-splash-on .am-splash {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    background: radial-gradient(80% 60% at 50% 45%, #0f1a3a 0%, #080d1c 70%);
    transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1);
}
.am-splash-on:not(.am-splash-out) body { overflow: hidden; }
.am-splash-out .am-splash { opacity: 0; pointer-events: none; }

.am-splash__inner { display: grid; justify-items: center; gap: var(--am-space-5); width: min(78vw, 560px); }

/* the screen: 2.39:1, lit from the projector, framed by black masking */
.am-splash__screen {
    position: relative;
    width: 100%;
    aspect-ratio: 2.39 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    background:
        radial-gradient(70% 90% at 50% 50%, rgba(255, 236, 196, 0.16), transparent 70%),
        linear-gradient(180deg, #16244d 0%, #0d1736 100%);
    box-shadow:
        0 0 0 1px rgba(201, 168, 101, 0.28),
        0 0 80px 10px rgba(212, 164, 55, 0.12),
        0 0 220px 40px rgba(60, 86, 170, 0.18);
    transform-origin: 50% 50%;
}
.am-splash__beam {
    position: absolute;
    inset: -40% -10%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(255, 240, 210, 0.22), transparent 70%);
    mix-blend-mode: screen;
}
.am-splash__crown { position: relative; width: 22%; height: auto; filter: drop-shadow(0 0 22px rgba(212, 164, 55, 0.45)); }

/* the LED reveal line under the screen doubles as the progress indicator */
.am-splash__led { position: relative; display: block; width: 104%; height: 2px; border-radius: 2px; background: rgba(255, 217, 163, 0.12); overflow: hidden; }
.am-splash__led i { position: absolute; inset: 0 auto 0 0; width: 30%; border-radius: inherit; background: linear-gradient(90deg, transparent, #ffd9a3, transparent); }

.am-splash__word { width: min(46%, 220px); height: auto; }

@media (prefers-reduced-motion: no-preference) {
    .am-splash-on .am-splash__screen { animation: am-splash-open 1050ms cubic-bezier(0.65, 0, 0.35, 1) both; }
    .am-splash-on .am-splash__beam { animation: am-splash-fade 900ms ease-out 500ms both; }
    .am-splash-on .am-splash__crown { animation: am-splash-crown 800ms cubic-bezier(0.16, 1, 0.3, 1) 650ms both; }
    .am-splash-on .am-splash__led { animation: am-splash-fade 500ms ease-out 700ms both; }
    .am-splash-on .am-splash__led i { animation: am-splash-sweep 1.4s cubic-bezier(0.45, 0, 0.55, 1) 800ms infinite; }
    .am-splash-on .am-splash__word { animation: am-splash-rise 700ms cubic-bezier(0.16, 1, 0.3, 1) 850ms both; }
    /* exit: we lean into the screen as the room fades */
    .am-splash-out .am-splash__screen { transform: scale(2.6); opacity: 0; transition: transform 800ms cubic-bezier(0.55, 0, 0.1, 1), opacity 700ms ease 100ms; }
    .am-splash-out .am-splash__led, .am-splash-out .am-splash__word { opacity: 0; transition: opacity 300ms ease; }
}
/* a 2px line of light widens, then opens to the full screen height */
@keyframes am-splash-open {
    0% { opacity: 0; transform: scale(0.04, 0.012); }
    18% { opacity: 1; transform: scale(0.04, 0.012); }
    55% { transform: scale(1, 0.012); }
    100% { opacity: 1; transform: scale(1, 1); }
}
@keyframes am-splash-crown { from { opacity: 0; transform: scale(0.9); filter: blur(8px) drop-shadow(0 0 22px rgba(212, 164, 55, 0.45)); } to { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 0 22px rgba(212, 164, 55, 0.45)); } }
@keyframes am-splash-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes am-splash-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes am-splash-sweep { 0% { transform: translateX(-110%); } 100% { transform: translateX(360%); } }

/* ── Footer credit ──────────────────────────────────────────────────────── */
.am-footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--am-space-3) var(--am-space-5); }
.am-footer .am-credit { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--am-cream-faint); text-decoration: none; transition: color var(--am-dur-2) var(--am-ease-out); }
.am-footer .am-credit img { height: 30px; width: auto; opacity: 0.9; transition: opacity var(--am-dur-2) var(--am-ease-out); }
.am-footer .am-credit:hover { color: var(--am-cream); text-decoration: none; }
.am-footer .am-credit:hover img { opacity: 1; }
/* phones: "Powered by" on its own line, the logo and company name together below it */
@media (max-width: 959px) {
    .am-footer .am-credit { display: inline-grid; grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 0.35rem 0.5rem; }
    .am-footer .am-credit > span:first-child { grid-column: 1 / -1; }
}

/* the hero text column never grows past the screen: the poster picker scrolls inside it */
.am-hero { grid-template-columns: minmax(0, 1fr); }
.am-hero__copy { min-width: 0; }

/* city chips wrap onto new lines instead of scrolling off the edge */
.am-chips { position: static; flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; background: none; }
.am-chip { flex: 0 1 auto; }

/* Base resets above have zero specificity so page-level CSS (Bootstrap on legacy pages) wins; the shell pins its own */
.am-topbar img, .am-footer img, .am-sponsors img, .am-splash img { display: block; }
.am-topbar__account, .am-topbar__account:hover { color: var(--am-cream); }

/* Turbo page-load progress bar */
.turbo-progress-bar { height: 3px; background: var(--am-gold); box-shadow: 0 0 10px rgba(212, 164, 55, 0.7); }


/* ==========================================================================
   Cinema hero ("Your private cinema"): a lit 3D auditorium behind calm,
   left-aligned booking content; one illuminated poster display on the right.
   ========================================================================== */
.am-cinema {
    --am-font-editorial: 'Anybody', 'Noto Serif Sinhala', system-ui, sans-serif;
    --am-font-editorial-si: 'Noto Serif Sinhala', 'Anybody', system-ui, sans-serif;
    grid-template-rows: 1fr auto;
    background:
        radial-gradient(60% 50% at 62% 38%, rgba(48, 66, 128, 0.35), transparent 70%),
        linear-gradient(180deg, #0B1530 0%, #080D1C 100%);
}
.am-cinema .am-hero__canvas { cursor: default; touch-action: pan-y; }

/* readable left zone: the room darkens behind the copy */
.am-cinema .am-hero__stage::after {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(8, 13, 28, 0.9) 0%, rgba(8, 13, 28, 0.62) 34%, rgba(8, 13, 28, 0) 62%),
        linear-gradient(0deg, rgba(8, 13, 28, 0.85) 0%, rgba(8, 13, 28, 0) 32%);
}
.am-cinema .am-hero__copy::before { display: none; }

.am-cinema .am-hero__copy { align-self: center; }
.am-hero__eyebrow {
    margin-bottom: var(--am-space-3);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--am-gold);
}
.am-cinema .am-hero__title {
    font-family: var(--am-font-editorial);
    font-size: clamp(2.4rem, 1.5rem + 3.4vw, 5rem);
    font-weight: 800;
    font-stretch: 115%;
    font-variation-settings: 'wdth' 115;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--am-cream);
    text-shadow: 0 2px 30px rgba(8, 13, 28, 0.6);
}
.am-cinema .am-hero__title.is-sinhala {
    font-family: var(--am-font-editorial-si);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
}
.am-hero__subtitle {
    margin-top: var(--am-space-2);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.34em;
    color: rgba(247, 241, 227, 0.78);
}
.am-cinema .am-hero__meta { gap: 0.25rem 0.6rem; margin-top: var(--am-space-4); font-size: 1.02rem; color: var(--am-cream-muted); }
.am-cinema .am-hero__meta [aria-hidden="true"] { color: rgba(212, 164, 55, 0.8); }
.am-cinema .am-hero__actions { margin-top: var(--am-space-6); }
.am-cinema .am-btn:not(.am-btn--ghost) {
    background: linear-gradient(180deg, #E4C06A 0%, #D4A437 55%, #C3962E 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 14px 30px -14px rgba(212, 164, 55, 0.75);
}
.am-cinema .am-btn:not(.am-btn--ghost):hover { background: linear-gradient(180deg, #EBCB7C 0%, #DDB04A 55%, #CB9E35 100%); }
.am-cinema .am-btn--ghost { box-shadow: inset 0 0 0 1px rgba(247, 241, 227, 0.32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* static poster display (no WebGL / Save-Data): dark metal frame, champagne reveal, warm backlight */
.am-lightbox {
    position: absolute;
    left: 50%;
    top: 5%;
    width: min(52vw, 250px);
    margin: 0;
    padding: 12px;
    transform: translateX(-50%);
    background: linear-gradient(160deg, #161c2e, #0b0f1c);
    border-radius: 6px;
    box-shadow:
        inset 0 0 0 1px rgba(201, 168, 101, 0.55),
        0 0 0 1px rgba(0, 0, 0, 0.6),
        0 0 90px 10px rgba(255, 214, 150, 0.16),
        0 30px 60px -20px rgba(0, 0, 0, 0.8);
    transition: opacity 600ms var(--am-ease-out);
}
.am-lightbox img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; }
.am-lightbox__blank { display: grid; place-items: center; align-content: center; gap: 1rem; aspect-ratio: 2 / 3; background: linear-gradient(160deg, #1c2a55, #080d1c); color: var(--am-cream); font-family: var(--am-font-editorial-si); font-size: 1.4rem; text-align: center; padding: 1rem; }
.am-lightbox__blank img { width: 40%; aspect-ratio: auto; }
.am-hero.is-3d .am-lightbox { opacity: 0; visibility: hidden; }
@media (min-width: 960px) {
    .am-lightbox { left: auto; right: 9%; top: 50%; width: min(26vw, 360px); transform: translateY(-54%) perspective(1200px) rotateY(-14deg); }
}

/* film carousel along the bottom of the hero */
.am-hero__reel { position: relative; z-index: 2; padding-bottom: var(--am-space-5); }
/* side padding keeps the selected card's gold ring clear of the reel's clipped edges, at rest and when snapped */
.am-cinema .am-hero__picker { margin-top: 0; gap: 0.75rem; padding: 6px 8px 12px; scroll-padding-inline: 8px; }
/* the reel scrolls sideways with no visible bar: touch, the mouse wheel or a drag move it (cinema-hero.js) */
.am-cinema .am-hero__picker { cursor: grab; }
.am-cinema .am-hero__picker.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.am-cinema .am-pick {
    width: 56px;
    padding: 0;
    border-radius: 8px;
    background: rgba(247, 241, 227, 0.06);
    box-shadow: inset 0 0 0 1px rgba(247, 241, 227, 0.14);
    overflow: visible;
}
.am-cinema .am-pick img, .am-cinema .am-pick .am-pick__blank { border-radius: 8px; opacity: 0.72; transition: opacity var(--am-dur-2) var(--am-ease-out); }
.am-cinema .am-pick:hover img { opacity: 1; }
.am-cinema .am-pick[aria-pressed="true"] { background: transparent; box-shadow: 0 0 0 2px var(--am-gold), 0 10px 24px -10px rgba(212, 164, 55, 0.6); transform: translateY(-3px); }
.am-cinema .am-pick[aria-pressed="true"] img { opacity: 1; }
.am-cinema .am-pick__progress { left: 8px; right: 8px; bottom: -9px; }
@media (min-width: 960px) {
    .am-cinema .am-pick { width: 66px; }
    .am-hero__reel { padding-bottom: var(--am-space-6); }
}

/* previous / next film: round buttons either side of the picker, or of the lit poster on portrait phones */
.am-hero__reel { display: flex; align-items: center; gap: var(--am-space-3); }
.am-hero__reel .am-hero__picker { min-width: 0; }
.am-hero__arrow {
    flex: none;
    display: grid; place-items: center;
    width: 44px; height: 44px;
    padding: 0; border: 0; border-radius: 50%;
    color: var(--am-cream);
    background: rgba(247, 241, 227, 0.1);
    cursor: pointer;
    transition: background-color var(--am-dur-1), color var(--am-dur-1), transform var(--am-dur-1) var(--am-ease-out);
}
.am-hero__arrow svg { width: 22px; height: 22px; }
.am-hero__arrow.is-prev svg { transform: scaleX(-1); }
.am-hero__arrow:hover { color: var(--am-navy-900); background: var(--am-gold); }
.am-hero__arrow:active { transform: scale(0.92); }
.am-hero__arrow:focus-visible { outline: 2px solid var(--am-gold); outline-offset: 3px; }
@media (max-width: 959px) and (orientation: portrait) {
    /* the 3D poster is centred about 29% down the hero (cinema-hero.js layout, portrait) */
    .am-hero__reel { position: static; }
    .am-hero__reel .am-hero__picker { position: relative; z-index: 2; }
    .am-hero__arrow { position: absolute; z-index: 3; top: 29%; width: 48px; height: 48px; margin-top: -24px; background: rgba(247, 241, 227, 0.16); }
    /* vertical page scroll stays native; a sideways swipe changes film (cinema-hero.js) */
    .am-cinema { touch-action: pan-y pinch-zoom; }
    .am-cinema .am-hero__picker { touch-action: pan-x pan-y pinch-zoom; }
    .am-hero__arrow.is-prev { left: max(var(--am-space-4), env(safe-area-inset-left)); }
    .am-hero__arrow.is-next { right: max(var(--am-space-4), env(safe-area-inset-right)); }
}

/* phones: lit display at the top, copy and carousel in the thumb zone */
@media (max-width: 959px) {
    .am-cinema .am-hero__stage::after {
        /* dense enough behind the whole copy block that the room's hard floor edge never slices the title */
        background: linear-gradient(0deg, rgba(8, 13, 28, 0.97) 0%, rgba(8, 13, 28, 0.92) 42%, rgba(8, 13, 28, 0.6) 52%, rgba(8, 13, 28, 0) 62%);
    }
    .am-cinema .am-hero__copy { align-self: end; padding-top: 52svh; padding-bottom: var(--am-space-3); }
    .am-cinema .am-hero__actions { margin-top: var(--am-space-5); }
}

/* cinema hero: film changes soften out and drift in (no overshoot) */
.am-cinema .am-step-out { animation: am-cine-out 260ms cubic-bezier(0.4, 0, 1, 1) forwards; }
.am-cinema .am-step-in { animation: am-cine-in 640ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes am-cine-out { to { opacity: 0; transform: translateY(-6px); filter: blur(6px); } }
@keyframes am-cine-in { from { opacity: 0; transform: translateY(10px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.am-cinema .am-hero__title-slot { overflow: visible; }


/* carousel card for a film with no poster: crown + title, so it reads as intentional, not as a failed image */
.am-cinema .am-pick__blank { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; aspect-ratio: 2 / 3; background: linear-gradient(160deg, #1c2a55, #0b1530); opacity: 0.85; }
.am-cinema .am-pick__blank img { width: 22px; height: auto; aspect-ratio: auto; opacity: 0.9; border-radius: 0; background: none; }
.am-cinema .am-pick__blank b { font-family: var(--am-font-editorial); font-size: 9.5px; font-weight: 800; text-transform: uppercase; line-height: 1.15; color: var(--am-cream); text-align: center; font-stretch: 62%; font-variation-settings: 'wdth' 62; overflow-wrap: break-word; hyphens: none; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.am-cinema .am-pick__blank b.is-sinhala { font-family: var(--am-font-editorial-si); line-height: 1.35; }
.am-cinema .am-pick[aria-pressed="true"] .am-pick__blank, .am-cinema .am-pick:hover .am-pick__blank { opacity: 1; }
@media (min-width: 960px) { .am-cinema .am-pick__blank b { font-size: 10.5px; } }


/* Performance: no live blur over the 3D canvas (it re-blurs every composited frame), and the
   carousel progress bar animates transform (compositor only) instead of width (repaint per frame). */
.am-topbar { background: rgba(11, 22, 48, 0.94); backdrop-filter: none; -webkit-backdrop-filter: none; }
.am-tabbar { background: rgba(6, 13, 31, 0.97); backdrop-filter: none; -webkit-backdrop-filter: none; }
.am-cinema .am-btn--ghost { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(8, 13, 28, 0.35); }
.am-pick__progress i { width: 100%; transform: scaleX(0); transform-origin: left center; will-change: transform; }
.am-hero.is-cycling .am-pick[aria-pressed="true"] .am-pick__progress i { animation: am-progress-x var(--am-cycle, 7s) linear forwards; }
@keyframes am-progress-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Stamp paper is a light cool silver: distinct from the white page and the cream tags, perforations still crisp */
/* a step darker than --am-paper-2, so a stamp's perforated edge still reads on the grey cards */
:root { --am-stamp-paper: #D2D9E6; }
.am-stamp { background: var(--am-stamp-paper); }
.am-paper .am-shadowed { filter: drop-shadow(0 1px 1px rgba(11, 22, 48, 0.3)) drop-shadow(0 12px 16px rgba(11, 22, 48, 0.28)); }
.am-stamp__denom { background: var(--am-cream); color: var(--am-ink); }

/* session rows: city bold in ink; below it the day in a quiet weight and the time in navy, tabular */
.am-paper .am-session__where strong { font-size: calc(var(--am-step-0) * 1.06); letter-spacing: -0.01em; }
.am-paper .am-session__where .am-session__when { display: block; margin-top: 0.1rem; font-size: var(--am-step--1); font-weight: 500; color: var(--am-ink-muted); line-height: 1.35; }
.am-paper .am-session__when b { margin-left: 0.15rem; font-weight: 700; color: var(--am-navy-600); font-variant-numeric: tabular-nums; }
/* Bundle envelopes: pale silver card in the stamp family, fine border, Italian band on top */
.am-envelope { background: linear-gradient(180deg, #F7F9FC 0%, #EEF2F8 100%); }
.am-paper .am-envelope { box-shadow: 0 0 0 1px rgba(11, 22, 48, 0.08), 0 14px 30px -18px rgba(11, 22, 48, 0.35); }
.am-paper .am-envelope:hover { box-shadow: 0 0 0 1px rgba(11, 22, 48, 0.14), 0 22px 40px -20px rgba(11, 22, 48, 0.45); }
.am-envelope__stack .am-stamp { background: #FFFFFF; }
.am-envelope__city { margin-left: 0.35rem; color: var(--am-ink-faint); font-weight: 500; }

/* ── Inner-page hero (cinema style, CSS only) ──────────────────────────── */
:root {
    --am-font-editorial: 'Anybody', 'Noto Serif Sinhala', system-ui, sans-serif;
    --am-font-editorial-si: 'Noto Serif Sinhala', 'Anybody', system-ui, sans-serif;
}
.am-page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--am-cream);
    background:
        radial-gradient(55% 80% at 78% 40%, rgba(255, 226, 170, 0.10), transparent 70%),        /* screen glow */
        radial-gradient(70% 70% at 20% 0%, rgba(48, 66, 128, 0.35), transparent 70%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 14px, rgba(0, 0, 0, 0.12) 14px 22px), /* fluted wall */
        linear-gradient(180deg, #0B1530 0%, #080D1C 100%);
}
.am-page-hero::before { /* warm LED cove along the top */
    content: "";
    position: absolute; left: 0; right: 0; top: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 217, 163, 0.85) 20%, rgba(255, 217, 163, 0.85) 80%, transparent);
    box-shadow: 0 0 24px 4px rgba(255, 210, 150, 0.35);
}
.am-page-hero::after { /* shade toward the copy so it always reads */
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(8, 13, 28, 0.75), rgba(8, 13, 28, 0) 60%);
}
.am-page-hero__inner {
    display: grid;
    align-items: center;
    gap: var(--am-space-6);
    min-height: 260px;
    padding-block: var(--am-space-7);
}
.am-page-hero__title {
    font-family: var(--am-font-editorial);
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3.6rem);
    font-weight: 800;
    font-stretch: 115%;
    font-variation-settings: 'wdth' 115;
    line-height: 1.02;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--am-cream);
    margin: 0;
    text-wrap: balance;
}
.am-page-hero__lede { margin-top: var(--am-space-3); max-width: 46ch; font-size: var(--am-step-1); line-height: 1.5; color: var(--am-cream-muted); }
.am-page-hero__facts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: var(--am-space-5) 0 0; padding: 0; list-style: none; }
.am-page-hero__facts li {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--am-cream);
    box-shadow: inset 0 0 0 1px rgba(247, 241, 227, 0.22);
    background: rgba(8, 13, 28, 0.35);
}
.am-page-hero__facts li:first-child { color: var(--am-gold-ink); background: var(--am-gold); box-shadow: none; }

/* posters fanned like stamps on a lit wall */
.am-page-hero__fan { position: relative; height: 230px; display: none; }
.am-page-hero__fan .am-stamp { position: absolute; width: 140px; top: 10px; --s: 10px; --r: 3px; --pad: 5px; }
.am-page-hero__fan .am-stamp:nth-child(1) { right: 150px; transform: rotate(-9deg); }
.am-page-hero__fan .am-stamp:nth-child(2) { right: 70px; top: 0; transform: rotate(2deg); z-index: 1; }
.am-page-hero__fan .am-stamp:nth-child(3) { right: 0; top: 18px; transform: rotate(10deg); }
/* a single poster has nothing to fan out from: it stands straight, and larger */
.am-page-hero__fan .am-stamp:only-child { transform: none; }
.am-page-hero__fan.is-single { height: 320px; }
.am-page-hero__fan.is-single .am-stamp { width: 204px; right: 40px; top: 0; --s: 12px; --r: 3.6px; --pad: 6px; }
/* phones, one film (show page, choosing seats): the poster leads the header as a large stamp, right
   under the back link, then the title, the place and the facts at full width, so long titles never
   get squeezed beside a picture */
@media (max-width: 759px) {
    .am-page-hero.has-one-poster .am-page-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "back" "poster" "title" "lede" "facts";
        row-gap: 0;
        align-items: start;
        padding-block: var(--am-space-5) var(--am-space-6);
    }
    .am-page-hero.has-one-poster .am-page-hero__copy { display: contents; }
    .am-page-hero.has-one-poster .am-page-hero__back { grid-area: back; justify-self: start; }
    .am-page-hero.has-one-poster .am-page-hero__title { grid-area: title; }
    .am-page-hero.has-one-poster .am-page-hero__lede { grid-area: lede; }
    .am-page-hero.has-one-poster .am-page-hero__facts { grid-area: facts; }
    .am-page-hero.has-one-poster .am-page-hero__fan { grid-area: poster; justify-self: center; display: block; height: auto; margin: var(--am-space-3) 0 var(--am-space-5); }
    .am-page-hero.has-one-poster .am-page-hero__fan .am-stamp { position: relative; right: auto; top: auto; width: clamp(150px, 50vw, 210px); --s: 11px; --r: 3.2px; --pad: 5px; transform: rotate(-2deg); }
}
@media (min-width: 760px) {
    .am-page-hero__inner { min-height: 320px; padding-block: var(--am-space-8); }
    .am-page-hero.has-posters .am-page-hero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
    .am-page-hero__fan { display: block; }
}

/* legacy pages: Bootstrap must not restyle the hero */
.am-legacy .am-page-hero h1 { margin: 0; }
.am-legacy .am-page-hero ul { margin-bottom: 0; }

/* inner-page hero titles use the site's regular sans */
.am-page-hero__title { font-family: var(--am-font-body); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
/* film titles can be Sinhala in any locale: no uppercase or widening, room for the stacked vowels */
.am-page-hero__title.is-sinhala { text-transform: none; font-stretch: 100%; font-variation-settings: normal; letter-spacing: 0; line-height: 1.35; }


/* ── Bundle cards (bundles page) ───────────────────────────────────────── */
.am-bundles__grid { display: grid; gap: var(--am-space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); align-items: start; }

.am-bundle {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #F7F9FC 0%, #EEF2F8 100%);
    box-shadow: 0 0 0 1px rgba(11, 22, 48, 0.08), 0 16px 34px -20px rgba(11, 22, 48, 0.4);
    color: var(--am-ink);
    transition: transform var(--am-dur-2) var(--am-ease-out), box-shadow var(--am-dur-2) var(--am-ease-out);
}
.am-bundle:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(11, 22, 48, 0.14), 0 24px 44px -22px rgba(11, 22, 48, 0.5); }

.am-bundle__head { display: flex; gap: var(--am-space-4); align-items: flex-start; padding: var(--am-space-5) var(--am-space-5) 0; }
.am-bundle__stack { position: relative; flex: none; width: 86px; height: 112px; filter: drop-shadow(0 6px 8px rgba(11, 22, 48, 0.25)); }
.am-bundle__stack .am-stamp { position: absolute; top: 0; width: 64px; --s: 8px; --r: 2.4px; --pad: 3px; background: #FFFFFF; }
.am-bundle__stack .am-stamp:nth-child(1) { left: 0; transform: rotate(-8deg); }
.am-bundle__stack .am-stamp:nth-child(2) { left: 12px; top: 6px; transform: rotate(2deg); }
.am-bundle__stack .am-stamp:nth-child(3) { left: 22px; top: 12px; transform: rotate(9deg); }
.am-bundle__title { min-width: 0; }
.am-bundle__title h2 { margin: 0; font-family: var(--am-font-body); font-size: 1.25rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.am-bundle__title h2 a { color: var(--am-navy-900); text-decoration: none; }
.am-bundle__title h2 a:hover { color: var(--am-navy-600); }
.am-bundle__title p { margin: 0.35rem 0 0; font-size: 0.92rem; line-height: 1.5; color: var(--am-ink-muted); }

.am-bundle__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; padding: var(--am-space-4) var(--am-space-5) 0; }
.am-bundle__price strong { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--am-navy-900); }
.am-bundle__price > span { font-size: 0.9rem; font-weight: 500; color: var(--am-ink-faint); }
.am-bundle__price .am-bundle__save { padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: var(--am-gold-800); background: rgba(212, 164, 55, 0.18); }

.am-bundle__shows { list-style: none; margin: var(--am-space-4) var(--am-space-5) 0; padding: 0; display: grid; gap: 2px; border-radius: 12px; overflow: hidden; background: rgba(11, 22, 48, 0.08); }
.am-bundle__shows li { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 0.75rem; padding: 0.6rem 0.8rem; background: #FFFFFF; }
.am-bundle__date { text-align: center; line-height: 1; font-family: var(--am-font-display); }
.am-bundle__date b { display: block; font-size: 1.3rem; font-weight: 800; font-stretch: 80%; color: var(--am-navy-900); }
.am-bundle__date small { display: block; margin-top: 3px; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--am-gold-800); }
.am-bundle__what strong { display: block; font-size: 0.95rem; font-weight: 600; color: var(--am-ink); line-height: 1.35; }
.am-bundle__what span { display: block; font-size: 0.84rem; color: var(--am-ink-faint); }
.am-bundle__shows .am-bundle__more { display: block; text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--am-ink-muted); }

.am-bundle__foot { display: grid; gap: var(--am-space-3); padding: var(--am-space-4) var(--am-space-5) var(--am-space-5); margin-top: auto; }
.am-bundle__notes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.am-bundle__notes li { padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--am-ink-muted); background: rgba(11, 22, 48, 0.06); }
.am-bundle__notes li.is-low { color: var(--am-red-700); background: rgba(200, 55, 45, 0.1); }
.am-bundle__foot .am-btn { width: 100%; }
.am-bundle.is-unavailable { opacity: 0.75; }
.am-bundle.is-unavailable:hover { transform: none; }

.am-bundles__empty { display: grid; justify-items: center; gap: var(--am-space-3); padding: var(--am-space-8) var(--am-space-5); text-align: center; border-radius: 16px; background: var(--am-paper-2); }
.am-bundles__empty img { width: 64px; opacity: 0.85; }
.am-bundles__empty h2 { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--am-navy-900); }
.am-bundles__empty p { margin: 0; max-width: 40ch; color: var(--am-ink-muted); }

/* Bundle poster stack: on hover the film at the back lifts out and comes to the front, one after another.
   data-pos 0 is the front card; airmail-bundles.js rotates the positions. */
.am-bundle__stack .am-stamp { left: 0 !important; top: 0 !important; transition: transform 380ms var(--am-ease-out); }
.am-bundle__stack .am-stamp[data-pos="0"] { z-index: 3; transform: translate(22px, 12px) rotate(9deg); }
.am-bundle__stack .am-stamp[data-pos="1"] { z-index: 2; transform: translate(12px, 6px) rotate(2deg); }
.am-bundle__stack .am-stamp[data-pos="2"] { z-index: 1; transform: translate(0, 0) rotate(-8deg); }
.am-bundle__stack .am-stamp.is-lift { z-index: 4; transform: translate(-8px, -26px) rotate(-14deg); }

/* ── Bundle detail page ────────────────────────────────────────────────── */
.am-page-hero__back { display: inline-flex; align-items: center; gap: 0.35rem; margin-bottom: var(--am-space-4); font-size: 0.92rem; font-weight: 600; color: var(--am-cream-muted); text-decoration: none; }
.am-page-hero__back svg { width: 16px; height: 16px; }
.am-page-hero__back:hover { color: var(--am-cream); }
.am-legacy .am-page-hero__back { color: var(--am-cream-muted); }
.am-page-hero__facts li + li + li { color: var(--am-gold-300); }

.am-bundle-page { display: grid; gap: var(--am-rhythm); align-items: start; }
@media (min-width: 980px) { .am-bundle-page { grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.9fr); gap: var(--am-space-7); } }

.am-bundle-page .am-section__head { margin-bottom: var(--am-space-4); }
.am-bundle-page .am-h2, .am-bundle-page .am-lede { margin-bottom: 0; }
.am-bundle-page__shows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--am-space-3); }
.am-bundle-page__shows li {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--am-space-4);
    padding: var(--am-space-3) var(--am-space-4);
    border-radius: 14px;
    background: var(--am-paper-2);
    box-shadow: inset 0 0 0 1px rgba(11, 22, 48, 0.06);
}
.am-bundle-page__poster .am-stamp { --s: 8px; --r: 2.4px; --pad: 3px; width: 64px; }
.am-bundle-page__poster .am-poster-fallback { padding: 0; display: grid; place-items: center; }
.am-bundle-page__what { min-width: 0; display: grid; gap: 2px; }
.am-bundle-page__what strong { font-size: 1.05rem; font-weight: 700; color: var(--am-ink); line-height: 1.35; }
.am-bundle-page__what span { font-size: 0.9rem; color: var(--am-ink-faint); }
.am-bundle-page__what .am-bundle-page__when { color: var(--am-ink-muted); font-weight: 500; }
.am-bundle-page__side { display: grid; justify-items: center; gap: 6px; }
.am-bundle-page__was { font-size: 0.82rem; color: var(--am-ink-faint); }

/* booking panel */
.am-checkout {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #F7F9FC 0%, #EEF2F8 100%);
    box-shadow: 0 0 0 1px rgba(11, 22, 48, 0.08), 0 22px 44px -26px rgba(11, 22, 48, 0.45);
    padding: var(--am-space-5);
}
@media (min-width: 980px) { .am-checkout { position: sticky; top: calc(var(--am-topbar-h) + var(--am-space-4)); } }
.am-checkout__title { margin: 0; font-family: var(--am-font-body); font-size: 1rem; font-weight: 600; color: var(--am-ink-muted); }
.am-checkout__amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.75rem; margin-top: 0.25rem; }
.am-checkout__amount strong { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--am-navy-900); }
.am-checkout__amount span { font-size: 0.9rem; color: var(--am-ink-faint); }
.am-checkout__amount b { margin-left: 0.3rem; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.8rem; color: var(--am-gold-800); background: rgba(212, 164, 55, 0.18); }
.am-checkout__perks { list-style: none; margin: var(--am-space-4) 0; padding: var(--am-space-4) 0 0; border-top: 1px solid rgba(11, 22, 48, 0.08); display: grid; gap: 0.55rem; }
.am-checkout__perks li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; color: var(--am-ink); }
.am-checkout__perks svg { width: 20px; height: 20px; flex: none; color: var(--am-gold-800); }
.am-checkout .am-bundle__notes { margin-bottom: var(--am-space-4); }
.am-checkout__form { padding-top: var(--am-space-4); border-top: 1px solid rgba(11, 22, 48, 0.08); }
.am-checkout__optional { font-weight: 400; color: var(--am-ink-faint); }

/* form controls in the design system */
.am-checkout .form-label { font-size: 0.9rem; font-weight: 600; color: var(--am-ink); margin-bottom: 0.4rem; }
.am-checkout .form-control, .am-checkout .form-select {
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(11, 22, 48, 0.14);
    background-color: #FFFFFF;
    font-size: 1rem;
    color: var(--am-ink);
    box-shadow: none;
}
.am-checkout .form-control:focus, .am-checkout .form-select:focus { border-color: var(--am-navy-600); box-shadow: 0 0 0 3px rgba(42, 69, 128, 0.18); }
.am-checkout .form-control.is-invalid, .am-checkout .form-select.is-invalid { border-color: var(--am-red); }
.am-checkout .form-text { font-size: 0.82rem; color: var(--am-ink-faint); }
.am-checkout .form-check-input:checked { background-color: var(--am-navy-900); border-color: var(--am-navy-900); }
.am-checkout .form-check-label a { color: var(--am-navy-700); }

/* Country code picker (enhances the phone input's native select) */
.am-checkout [data-whatsapp-input],
.am-recovery__form [data-whatsapp-input] { flex-wrap: nowrap; }
.am-cc { position: relative; flex: 0 0 auto; }
.am-cc__btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    height: 100%;
    min-height: 48px;
    padding: 0 0.75rem 0 0.9rem;
    border: 1px solid rgba(11, 22, 48, 0.14);
    border-right: 0;
    border-radius: 12px 0 0 12px;
    background: var(--am-paper-2, #ECEFF6);
    color: var(--am-ink);
    font: inherit;
    cursor: pointer;
    transition: background-color var(--am-dur-1);
}
.am-cc__btn:hover { background: var(--am-paper-3); }
.am-cc__btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(42, 69, 128, 0.18); position: relative; z-index: 3; }
.am-cc__btn .am-cc__code { font-weight: 700; font-variant-numeric: tabular-nums; }
.am-cc__btn .am-cc__name { color: var(--am-ink-muted); font-size: 0.9rem; }
.am-cc__btn svg { width: 16px; height: 16px; color: var(--am-ink-faint); transition: transform var(--am-dur-1); }
.am-cc__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.am-checkout [data-whatsapp-input] .am-cc + select + .form-control,
.am-checkout [data-whatsapp-input] .am-cc ~ .form-control,
.am-recovery__form [data-whatsapp-input] .am-cc ~ .form-control { border-top-left-radius: 0; border-bottom-left-radius: 0; }

.am-cc__list {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    min-width: 15rem;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 0 0 1px rgba(11, 22, 48, 0.08), 0 18px 40px -16px rgba(11, 22, 48, 0.35);
    outline: none;
    animation: am-cc-in 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.am-cc__list li {
    display: grid;
    grid-template-columns: 3rem 1fr 18px;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0 0.75rem;
    border-radius: 8px;
    color: var(--am-ink);
    cursor: pointer;
}
.am-cc__list li .am-cc__code { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--am-navy-700); }
.am-cc__list li svg { width: 18px; height: 18px; color: var(--am-navy-900); visibility: hidden; }
.am-cc__list li.is-active { background: var(--am-paper-2); }
.am-cc__list li[aria-selected="true"] { font-weight: 600; }
.am-cc__list li[aria-selected="true"] svg { visibility: visible; }
@keyframes am-cc-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .am-cc__list { animation: none; } }

.am-qty { display: flex; align-items: center; justify-content: space-between; gap: var(--am-space-3); }
/* the outline is a real border, not an inset shadow: an inset shadow paints under the buttons, so a hovered button hid it */
.am-qty__stepper { display: inline-grid; grid-template-columns: 44px 56px 44px; align-items: center; border: 1px solid rgba(11, 22, 48, 0.14); border-radius: 999px; background: #FFFFFF; overflow: hidden; }
.am-qty__stepper button { height: 44px; border: 0; background: transparent; font-size: 1.25rem; font-weight: 600; color: var(--am-navy-900); cursor: pointer; transition: background-color var(--am-dur-1); }
.am-qty__stepper button:hover:not(:disabled) { background: var(--am-paper-3); }
.am-qty__stepper button:active:not(:disabled) { background: rgba(11, 22, 48, 0.12); }
.am-qty__stepper button:disabled { color: rgba(11, 22, 48, 0.25); cursor: default; }
.am-qty__stepper input { width: 100%; height: 44px; border: 0; text-align: center; font-size: 1.05rem; font-weight: 700; color: var(--am-ink); background: transparent; -moz-appearance: textfield; }
.am-qty__stepper input::-webkit-outer-spin-button, .am-qty__stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.am-qty__total { font-size: 0.95rem; color: var(--am-ink-muted); }
.am-qty__total strong { margin-left: 0.25rem; font-size: 1.15rem; color: var(--am-navy-900); }

.am-checkout__privacy { margin-bottom: var(--am-space-3); padding: var(--am-space-3) var(--am-space-4); border-radius: 12px; background: rgba(11, 22, 48, 0.04); }
.am-checkout__privacy p { margin: 0; font-size: 0.8rem; line-height: 1.55; color: var(--am-ink-muted); }
.am-checkout__privacy .am-checkout__privacy-title { margin-bottom: 0.25rem; font-size: 0.85rem; font-weight: 700; color: var(--am-ink); }
.am-checkout__submit { width: 100%; min-height: 54px; font-size: 1.05rem; }
.am-checkout__submit:disabled { opacity: 0.85; cursor: progress; }
/* phones: the label and its arrow sit in one centred row; if the words still wrap on a narrow
   screen they stay close together, with even padding above and below */
@media (max-width: 959px) {
    .am-checkout__submit, .am-pay__btn { padding: 0.8rem 1.25rem; font-size: 1rem; line-height: 1.2; }
    /* the pay card packs its items to the start, so the form is stretched for a full-width button */
    .am-pay > form { justify-self: stretch; }
    .am-pay__btn { width: 100%; }
    .am-checkout__submit > span:not([hidden]), .am-pay__btn > span:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; text-align: center; }
}
.am-checkout__next { margin: var(--am-space-3) 0 0; text-align: center; font-size: 0.85rem; color: var(--am-ink-faint); }

/* ── Show page: screenings and film on the left, the booking panel on the right ── */
.am-show-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--am-rhythm); align-items: start; }
@media (min-width: 980px) { .am-show-page { grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.9fr); gap: var(--am-space-7); } }
/* sections follow the site rhythm: an .am-section__head (.am-h2 + .am-lede), 72px between sections */
.am-show-page__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--am-rhythm); min-width: 0; }
.am-show-page .am-section__head { margin-bottom: var(--am-space-4); }
.am-show-page .am-h2, .am-show-page .am-lede { margin-bottom: 0; }
/* sub-sections beside a booking form take the Title tier, not the full-width Headline */
.am-show-page .am-h2, .am-bundle-page .am-h2 { font-size: var(--am-step-2); font-weight: 700; letter-spacing: -0.005em; }
.am-show-page .am-sessions { grid-column: auto; margin: 0; padding: 0; list-style: none; }
.am-show-page__venue { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--am-space-4); align-items: start; padding: var(--am-space-5); border-radius: 18px; background: var(--am-paper-2); }
.am-show-page__venue > svg { width: 28px; height: 28px; margin-top: 2px; color: var(--am-gold-800); }
.am-show-page__venue strong { display: block; font-size: 1.15rem; font-weight: 700; color: var(--am-navy-900); }
.am-show-page__venue address { margin: 0.2rem 0 0; font-style: normal; color: var(--am-ink-muted); line-height: 1.55; }
.am-show-page__venue .am-btn { margin-top: var(--am-space-4); }
/* the screening being booked inverts to navy, as selected items do across the site */
.am-paper .am-session.is-current { min-height: 84px; padding-block: 0.9rem; background: var(--am-navy-900); color: var(--am-cream); box-shadow: inset 5px 0 0 var(--am-gold); }
.am-paper .am-session.is-current .am-session__date b { font-size: 2rem; color: var(--am-cream); }
.am-paper .am-session.is-current .am-session__date small { color: var(--am-gold); }
.am-paper .am-session.is-current .am-session__where strong { font-size: 1.25rem; font-weight: 700; color: var(--am-cream); }
.am-paper .am-session.is-current .am-session__where span { font-size: 0.95rem; color: var(--am-cream-muted); }
.am-paper .am-session.is-current .am-session__when b { color: var(--am-gold); }
.am-session__flag--current { display: inline-flex; align-items: center; gap: 0.3rem; }
.am-paper .am-session__flag--current { background: var(--am-gold); color: var(--am-gold-ink); }
.am-session__flag--current svg { width: 14px; height: 14px; }
.am-show-page__about p { margin: 0; max-width: 62ch; font-size: 1.05rem; line-height: 1.7; color: var(--am-ink); white-space: pre-line; }
.am-show-page__countdown { color: var(--am-navy-900) !important; background: rgba(212, 164, 55, 0.2) !important; }
.am-show-page__me { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; margin-bottom: var(--am-space-4); padding: 0.75rem 0.9rem; border-radius: 12px; background: #FFFFFF; }
.am-show-page__me svg { width: 22px; height: 22px; color: var(--am-gold-800); }
.am-show-page__me strong { display: block; font-weight: 700; color: var(--am-ink); }
.am-show-page__me small { display: block; color: var(--am-ink-faint); overflow-wrap: anywhere; }
.am-show-page__me em { padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-style: normal; font-weight: 600; color: var(--am-gold-800); background: rgba(212, 164, 55, 0.18); }
.am-show-page__points { margin-bottom: var(--am-space-4); padding: 0.9rem 1rem; border-radius: 12px; background: rgba(212, 164, 55, 0.12); }
.am-show-page__points p { margin: 0 0 0.35rem; font-size: 0.9rem; color: var(--am-ink-muted); }
.am-show-page__points p strong { color: var(--am-ink); }
.am-show-page__chosen { margin: 0 0 var(--am-space-3); padding: 0.55rem 0.8rem; border-radius: 10px; font-size: 0.9rem; font-weight: 600; color: var(--am-navy-900); background: #FFFFFF; }
.am-show-page__closed { display: grid; gap: var(--am-space-4); margin-top: var(--am-space-4); padding-top: var(--am-space-4); border-top: 1px solid rgba(11, 22, 48, 0.08); }
.am-show-page__closed p { margin: 0; color: var(--am-ink-muted); }

/* seat map, in the paper palette */
.am-seats { padding: var(--am-space-5); border-radius: 18px; background: var(--am-paper-2); }
.am-seats .am-section__head { flex-wrap: wrap; row-gap: var(--am-space-3); }
.am-seats__qty { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.am-seats__qty > span:first-child { font-weight: 600; color: var(--am-ink); }
.am-qty__stepper--small { grid-template-columns: 38px 40px 38px; }
.am-qty__stepper--small button { height: 38px; font-size: 1.1rem; }
.am-qty__stepper--small output { text-align: center; font-weight: 700; color: var(--am-ink); font-variant-numeric: tabular-nums; }
.am-seats__count { padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--am-navy-900); background: #FFFFFF; font-variant-numeric: tabular-nums; }
.am-seats__legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: var(--am-space-3) 0 var(--am-space-4); padding: 0; list-style: none; font-size: 0.88rem; color: var(--am-ink-muted); }
.am-seats__legend li { display: inline-flex; align-items: center; gap: 0.45rem; }
.am-seats__legend i { width: 16px; height: 16px; border-radius: 4px; }
.am-seats__legend .is-free { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--am-paper-line-strong); }
.am-seats__legend .is-mine { background: var(--am-navy-900); }
.am-seats__legend .is-taken { background: #C9D0DD; position: relative; overflow: hidden; }
.am-seats__legend .is-taken::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1.5px; background: rgba(11, 22, 48, 0.45); transform: rotate(45deg); }
/* the map fits the card: seats size themselves from the widest row (--cols, --aisles) and only
   scroll sideways once they reach their smallest comfortable size, on narrow phones */
.am-seats__scroll {
    container-type: inline-size;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--am-space-3);
    scrollbar-width: thin;
    scrollbar-color: var(--am-navy-600) var(--am-paper-3);
}
.am-seats__scroll::-webkit-scrollbar { height: 8px; }
.am-seats__scroll::-webkit-scrollbar-track { margin-inline: 4px; border-radius: 999px; background: var(--am-paper-3); }
.am-seats__scroll::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--am-navy-600); }
.am-seats__scroll::-webkit-scrollbar-thumb:hover { background: var(--am-navy-900); }
.am-seats__scroll::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.am-seats__map {
    --gap: 4px;
    --label: 26px;
    --aisle: 16px;
    --seat-min: 28px;
    --seat: clamp(var(--seat-min), calc((100cqi - 2 * var(--label) - (var(--cols) + var(--aisles) + 1) * var(--gap) - var(--aisles) * var(--aisle)) / var(--cols)), 40px);
    display: grid; gap: 6px; justify-content: center; width: max-content; min-width: 100%;
}
.am-seats__screen { margin-bottom: var(--am-space-3); padding: 0.4rem 0; border-radius: 0 0 999px 999px; text-align: center; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--am-cream); background: var(--am-navy-900); }
.am-seats__row { display: flex; align-items: center; gap: var(--gap); }
.am-seats__label { width: var(--label); flex: none; text-align: center; font-size: 0.75rem; font-weight: 700; color: var(--am-ink-faint); }
.am-seats__aisle { width: var(--aisle); flex: none; }
.am-seat { position: relative; width: var(--seat, 34px); height: var(--seat, 34px); flex: none; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 8px 8px 5px 5px; font-size: 0.72rem; font-weight: 600; font-variant-numeric: tabular-nums; }
button.am-seat { background: #FFFFFF; color: var(--am-ink); box-shadow: inset 0 0 0 1.5px var(--am-paper-line-strong); cursor: pointer; transition: background-color var(--am-dur-1), color var(--am-dur-1), transform var(--am-dur-1) var(--am-ease-out); }
button.am-seat:hover { background: var(--am-paper-3); }
button.am-seat:active { transform: scale(0.94); }
button.am-seat.is-mine { background: var(--am-navy-900); color: var(--am-cream); box-shadow: none; }
button.am-seat.is-mine:hover { background: var(--am-navy-700); }
/* taken: a darker fill with a slash, clearly apart from the card and from free seats */
.am-seat.is-taken { overflow: hidden; background: #C9D0DD; color: rgba(11, 22, 48, 0.42); cursor: not-allowed; }
.am-seat.is-taken::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1.5px; background: rgba(11, 22, 48, 0.28); transform: rotate(45deg); }
.am-seat.is-void { background: transparent; }
.am-seat.is-held { background: var(--am-gold); color: var(--am-gold-ink); font-weight: 700; }
.am-seats__legend .is-held { background: var(--am-gold); }
/* phones: the whole hall fits the card as small seats, so its shape and the free blocks read at a
   glance; numbers drop out once a seat is too small to hold one. The zoom button switches back to
   full-size seats that scroll sideways, for easier tapping. */
.am-seats__zoom { display: none; }
@media (max-width: 640px) {
    .am-seats { padding: var(--am-space-4); }
    .am-seats__zoom { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; margin: 0 0 var(--am-space-3); padding: 0 1rem 0 0.8rem; border: 0; border-radius: 999px; font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--am-cream); background: var(--am-navy-900); cursor: pointer; transition: background-color var(--am-dur-1), transform var(--am-dur-1) var(--am-ease-out); }
    .am-seats__zoom[hidden] { display: none; }
    .am-seats__zoom:hover { background: var(--am-navy-700); }
    .am-seats__zoom:active { transform: scale(0.96); }
    .am-seats__zoom svg { width: 18px; height: 18px; }
    .am-seats__zoom[aria-pressed="true"] .is-in, .am-seats__zoom[aria-pressed="false"] .is-out { display: none; }
    .am-seats__scroll:not(.is-zoomed) .am-seats__map { --gap: 2px; --label: 14px; --aisle: 6px; --seat-min: 8px; gap: 3px; }
    .am-seats__scroll:not(.is-zoomed) .am-seat { border-radius: 3px 3px 2px 2px; font-size: clamp(0px, calc((var(--seat) - 21px) * 100), 0.66rem); }
    .am-seats__scroll:not(.is-zoomed) .am-seats__label { font-size: 0.62rem; }
    .am-seats__scroll:not(.is-zoomed) .am-seats__screen { margin-bottom: var(--am-space-2); padding: 0.25rem 0; font-size: 0.62rem; }
}

/* ── Choose your seats (after paying): the map on the left, the confirm panel on the right ── */
.am-pick__need { margin-top: 0.35rem; font-size: var(--am-step-1); font-weight: 700; letter-spacing: -0.015em; color: var(--am-navy-900); }
.am-pick__film { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--am-space-4); align-items: center; margin: var(--am-space-4) 0; padding: var(--am-space-4) 0 0; border-top: 1px solid rgba(11, 22, 48, 0.08); }
.am-pick__film p { margin: 0; line-height: 1.45; color: var(--am-ink); }
.am-pick__film b { margin-left: 0.2rem; color: var(--am-navy-600); }
.am-pick__stamp { --s: 8px; --r: 2.4px; --pad: 3px; width: 64px; background: #FFFFFF; transform: rotate(-3deg); }
.am-pick__title { font-size: var(--am-step-1); font-weight: 700; color: var(--am-navy-900) !important; }
.am-pick__title.is-sinhala { line-height: 1.4; }
.am-pick__chosen { margin-bottom: var(--am-space-4); padding: var(--am-space-4); border-radius: 14px; background: #FFFFFF; }
.am-pick__label { margin: 0 0 0.5rem; font-weight: 600; color: var(--am-ink); }
.am-pick__none { margin: 0; font-size: 0.92rem; color: var(--am-ink-muted); }
.am-pick__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.am-pick__chips li { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.35rem 0.25rem 0.75rem; border-radius: 999px; background: var(--am-navy-900); color: var(--am-cream); font-weight: 700; font-variant-numeric: tabular-nums; animation: am-chip-in 220ms var(--am-ease-out); }
.am-pick__chips li.is-held { padding-right: 0.75rem; background: var(--am-gold); color: var(--am-gold-ink); animation: none; }
.am-pick__chips button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(247, 241, 227, 0.14); color: var(--am-cream); font-size: 1rem; line-height: 1; cursor: pointer; transition: background-color var(--am-dur-1); }
.am-pick__chips button:hover { background: var(--am-red); }
@keyframes am-chip-in { from { opacity: 0; transform: scale(0.85); } }
@media (prefers-reduced-motion: reduce) { .am-pick__chips li { animation: none; } }
.am-seats__alert { margin: var(--am-space-3) 0 0; padding: 0.55rem 0.8rem; border-radius: 10px; font-size: 0.9rem; font-weight: 600; color: var(--am-red-700); background: rgba(200, 55, 45, 0.1); }

/* ── Contact page ──────────────────────────────────────────────────────────
   The note composer writes the visitor's message for them, ready to send. */

.am-contact-hero__actions { display: flex; flex-wrap: wrap; gap: var(--am-space-3); margin-top: var(--am-space-6); }
.am-contact-hero .am-page-hero__title { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem); }
.am-contact-hero .am-page-hero__lede { color: var(--am-cream); }

/* Ways to reach us: heading on the left, the lines set large on the right */
.am-contact-lines { display: grid; gap: var(--am-space-6); }
.am-contact-lines__head { display: grid; gap: var(--am-space-4); align-content: start; justify-items: start; }
.am-contact-lines__head .am-lede { margin: 0; font-size: var(--am-step-1); line-height: 1.5; color: var(--am-ink); max-width: 34ch; }
.am-contact-lines__head .am-lede a { font-weight: 600; color: var(--am-navy-700); }
.am-contact-lines__hours { font-weight: 600; color: var(--am-navy-700); }
@media (min-width: 980px) {
    .am-contact-lines { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: var(--am-space-8); align-items: start; }
}

.am-lines { display: grid; gap: 4px; border-radius: 18px; overflow: hidden; }
.am-line {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 40px;
    align-items: center;
    gap: var(--am-space-4);
    padding: clamp(1rem, 0.7rem + 1vw, 1.6rem) clamp(1rem, 0.6rem + 1.4vw, 1.8rem);
    background: var(--am-paper-2);
    color: var(--am-ink);
    text-decoration: none;
    transition: background-color var(--am-dur-1);
}
.am-line:hover { background: var(--am-paper-3); }
.am-line:active .am-line__value { transform: translateY(1px); }
.am-line__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--am-navy-900); color: var(--am-gold); }
.am-line__icon svg { width: 24px; height: 24px; }
.am-line__body { display: grid; gap: 0.1rem; min-width: 0; }
.am-line__kind { font-size: 0.95rem; font-weight: 500; color: var(--am-ink-muted); }
.am-line__value { font-size: clamp(1.17rem, 0.81rem + 1.54vw, 2.025rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; color: var(--am-navy-900); white-space: nowrap; transition: transform var(--am-dur-1) var(--am-ease-out); }
.am-line__value--long { font-size: clamp(0.9rem, 0.513rem + 1.11vw, 1.5rem); white-space: normal; overflow-wrap: anywhere; }
.am-line__value--address { font-size: clamp(1rem, 0.81rem + 0.81vw, 1.4rem); white-space: pre-line; }
.am-line__go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--am-navy-900); transition: transform var(--am-dur-2) var(--am-ease-out), background-color var(--am-dur-1); }
.am-line__go svg { width: 22px; height: 22px; }
.am-line:hover .am-line__go { transform: translateX(4px); background: #FFFFFF; }
@media (max-width: 520px) {
    .am-line { grid-template-columns: 44px minmax(0, 1fr); }
    .am-line__icon { width: 44px; height: 44px; }
    .am-line__go { display: none; }
}

/* The note: a field of paper tone, form on the left, the letter on the right */
.am-note-band { background: var(--am-paper-2); }
.am-note { display: grid; gap: var(--am-space-7); align-items: start; }
@media (min-width: 980px) { .am-note { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--am-space-8); } }
.am-note__form { display: grid; gap: var(--am-space-5); }
.am-note__form .am-lede { margin: calc(var(--am-space-3) * -1) 0 0; font-size: var(--am-step-1); line-height: 1.5; color: var(--am-ink); max-width: 40ch; }
.am-note__topics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.am-note__topics legend { width: 100%; margin-bottom: 0.6rem; padding: 0; font-weight: 700; color: var(--am-navy-900); }
.am-topic { position: relative; cursor: pointer; }
.am-topic input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.am-topic span {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.05rem;
    border-radius: 999px; background: #FFFFFF; color: var(--am-ink);
    font-size: 0.95rem; font-weight: 600;
    transition: background-color var(--am-dur-1), color var(--am-dur-1), transform var(--am-dur-1) var(--am-ease-out);
}
.am-topic:hover span { background: var(--am-paper-3); }
.am-topic input:active + span { transform: scale(0.97); }
.am-topic input:checked + span { background: var(--am-navy-900); color: var(--am-cream); }
.am-topic input:focus-visible + span { outline: 2px solid var(--am-navy-700); outline-offset: 3px; }

.am-note__fields { display: grid; gap: var(--am-space-4); }
@media (min-width: 560px) { .am-note__fields { grid-template-columns: 1fr 1fr; } }
.am-field { display: grid; gap: 0.4rem; font-weight: 600; color: var(--am-navy-900); }
.am-field--wide { grid-column: 1 / -1; }
.am-field small { font-weight: 500; color: var(--am-ink-faint); font-size: 0.85rem; }
.am-field input, .am-field textarea {
    width: 100%; min-height: 50px; padding: 0.7rem 0.95rem;
    border: 0; border-radius: 12px; background: #FFFFFF; color: var(--am-ink);
    box-shadow: inset 0 0 0 1px var(--am-paper-line-strong);
    font: inherit; font-weight: 500;
    transition: box-shadow var(--am-dur-1);
}
.am-field textarea { resize: vertical; min-height: 96px; }
/* phone: country code and number joined into one control */
.am-phone { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.am-phone select {
    min-height: 50px; padding: 0 2.1rem 0 0.95rem;
    border: 0; border-radius: 12px 0 0 12px;
    background: var(--am-paper-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6880' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.7rem center / 16px;
    box-shadow: inset 0 0 0 1px var(--am-paper-line-strong);
    font: inherit; font-weight: 600; color: var(--am-ink);
    appearance: none; cursor: pointer;
}
.am-phone input { border-radius: 0 12px 12px 0; margin-left: -1px; }
.am-phone select:focus { outline: none; border-radius: 12px 0 0 12px; box-shadow: inset 0 0 0 2px var(--am-navy-700); position: relative; z-index: 1; }
.am-phone input:focus { border-radius: 0 12px 12px 0; }
.am-field__error { font-style: normal; font-size: 0.88rem; font-weight: 600; color: var(--am-red-700); }
.am-field__error[hidden] { display: none; }
.am-field.is-invalid input { box-shadow: inset 0 0 0 2px var(--am-red); }
/* keep the field's own radius: the site-wide :focus-visible rule would set 4px */
.am-field input:focus, .am-field textarea:focus { outline: none; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--am-navy-700); }
/* the joined country code + number: one ring around the whole control, each part keeps its own corners */
.am-phone { border-radius: 12px; transition: box-shadow var(--am-dur-1); }
.am-phone:focus-within { box-shadow: 0 0 0 2px var(--am-navy-700); }
.am-field .am-phone select:focus, .am-field .am-phone input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--am-paper-line-strong); }
.am-field .am-phone select:focus { border-radius: 12px 0 0 12px; }
.am-field .am-phone input:focus { border-radius: 0 12px 12px 0; }
/* the styled country list inside the joined control: no border of its own, the control's ring does the focus */
.am-phone .am-cc__btn { height: 100%; min-height: 50px; border: 0; border-radius: 12px 0 0 12px; box-shadow: inset 0 0 0 1px var(--am-paper-line-strong); background: var(--am-paper-3); }
.am-phone .am-cc__btn:focus-visible { box-shadow: inset 0 0 0 1px var(--am-paper-line-strong); }
.am-phone .am-cc__list { min-width: 13rem; }
/* the list takes focus to drive the keyboard; the highlighted row shows where you are, so no outline */
.am-paper .am-cc__list:focus, .am-paper .am-cc__list:focus-visible { outline: none; }
.am-phone .am-cc + select + input, .am-phone .am-cc ~ input { margin-left: -1px; }

.am-note__sheet { display: grid; gap: var(--am-space-4); }
@media (min-width: 980px) { .am-note__sheet { position: sticky; top: calc(var(--am-topbar-h) + var(--am-space-5)); } }
.am-note__tip { padding: 0.9rem 1.1rem; border-radius: 12px; background: rgba(212, 164, 55, 0.2); color: var(--am-gold-ink); font-weight: 500; }
.am-note__tip[hidden] { display: none; }
.am-note__tip a { font-weight: 700; color: var(--am-navy-900); }
.am-letter {
    position: relative;
    min-height: 300px;
    padding: clamp(1.4rem, 1rem + 1.6vw, 2.4rem);
    padding-right: clamp(6rem, 4rem + 5vw, 8.5rem);
    border-radius: 6px;
    background: #FFFFFF;
    color: var(--am-ink);
}
.am-letter.is-rewritten { animation: am-letter-in 420ms var(--am-ease-out); }
@keyframes am-letter-in { from { opacity: 0.35; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.am-letter__stamp { position: absolute; top: 18px; right: 18px; width: clamp(64px, 3rem + 3vw, 88px); transform: rotate(4deg); --s: 8px; --r: 2.4px; --pad: 3px; background: var(--am-stamp-paper); }
.am-letter__stamp-mark { display: grid; place-items: center; background: var(--am-navy-900); }
.am-letter__stamp-mark img { width: 58%; height: auto; object-fit: contain; }
.am-letter__subject { margin: 0 0 var(--am-space-4); font-size: var(--am-step-2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--am-navy-900); }
.am-letter__body { white-space: pre-line; font-size: 1.08rem; line-height: 1.6; color: var(--am-ink); overflow-wrap: anywhere; }
.am-note__send { display: flex; flex-wrap: wrap; gap: var(--am-space-3); }
.am-btn--paper { --_bg: #FFFFFF; --_fg: var(--am-navy-900); box-shadow: inset 0 0 0 1px var(--am-paper-line-strong); }
.am-btn--paper:hover { background: var(--am-paper-3); }
.am-btn[hidden] { display: none; }

/* Quick answers: heading and help links across the top, three answers side by side */
.am-answers__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--am-space-4); margin-bottom: var(--am-space-6); }
.am-answers__links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.am-answers__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; background: var(--am-paper-2); color: var(--am-navy-900); font-weight: 600; text-decoration: none; transition: background-color var(--am-dur-1); }
.am-answers__links a:hover { background: var(--am-paper-3); }
.am-answers__list { display: grid; gap: var(--am-space-6); margin: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.am-answers__list dt { font-size: var(--am-step-1); font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; color: var(--am-navy-900); }
.am-answers__list dd { margin: var(--am-space-2) 0 0; font-size: 1.02rem; line-height: 1.6; color: var(--am-ink); max-width: 44ch; }

/* Entrances: parts rise in as their section arrives (the script adds .is-waiting; without it all shows) */
@media (prefers-reduced-motion: no-preference) {
    .am-contact .am-in.is-waiting { opacity: 0; transform: translateY(24px); }
    .am-contact .am-in.is-waiting.is-in { opacity: 1; transform: none; transition: opacity 560ms var(--am-ease-out) var(--in-delay, 0ms), transform 640ms var(--am-ease-out) var(--in-delay, 0ms); }
    .am-contact-hero .am-page-hero__copy > * { animation: am-rise 640ms var(--am-ease-out) backwards; }
    .am-contact-hero .am-page-hero__copy > :nth-child(2) { animation-delay: 80ms; }
    .am-contact-hero .am-page-hero__copy > :nth-child(3) { animation-delay: 160ms; }
}
@keyframes am-rise { from { opacity: 0; transform: translateY(20px); } }

/* ── Resend my tickets ─────────────────────────────────────────────────────
   The lookup form in the checkout panel on the left, what happens next on the right. */
.am-recovery { display: grid; gap: var(--am-rhythm); align-items: start; }
@media (min-width: 980px) { .am-recovery { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--am-space-9); } }
/* The grid gap spaces the two columns; the page's stacking rhythm would push the side column down */
main.am-paper > .am-recovery > * + * { margin-top: 0; }
.am-recovery__main { display: grid; gap: var(--am-space-4); }
.am-recovery__card { padding-bottom: var(--am-space-6); background: var(--am-paper-2); box-shadow: none; }
.am-recovery__h2 { margin: 0; font-family: var(--am-font-body); font-size: var(--am-step-2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--am-navy-900); }
.am-recovery__intro { margin-top: var(--am-space-2); font-size: 1.02rem; line-height: 1.55; color: var(--am-ink); }
.am-recovery__form { display: grid; gap: var(--am-space-5); margin-top: var(--am-space-5); }
.am-recovery__field[hidden] { display: none; }
.am-recovery__field .form-text { margin: 0.4rem 0 0; }
.am-recovery__order { text-transform: uppercase; letter-spacing: 0.02em; }
.am-recovery__order::placeholder { text-transform: none; }
.am-recovery__error { margin: 0.4rem 0 0; font-size: 0.88rem; font-weight: 600; color: var(--am-red-700); }
.am-recovery__notice { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem 1.15rem; border-radius: 14px; font-weight: 500; line-height: 1.5; }
.am-recovery__notice svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.am-recovery__notice.is-done { background: rgba(0, 146, 70, 0.1); color: #0B4D2A; }
.am-recovery__notice.is-error { background: rgba(200, 55, 45, 0.1); color: var(--am-red-700); }

/* how they booked: two halves of one control, the chosen one filled navy */
.am-seg-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.am-seg-field legend { float: none; width: auto; margin: 0 0 0.4rem; padding: 0; font-size: 0.9rem; font-weight: 600; line-height: 1.5; color: var(--am-ink); }
.am-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--am-paper-3); }
.am-seg label { position: relative; margin: 0; cursor: pointer; }
.am-seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.am-seg input + span {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 48px; padding: 0 0.75rem; border-radius: 10px;
    font-size: 0.95rem; font-weight: 600; text-align: center; color: var(--am-ink-muted);
    transition: background-color var(--am-dur-1), color var(--am-dur-1), transform var(--am-dur-1) var(--am-ease-out);
}
.am-seg input + span svg { width: 18px; height: 18px; flex: none; }
/* hover darkens only the option that is not chosen; the chosen one keeps its cream text on navy */
.am-seg label:hover input:not(:checked) + span { color: var(--am-ink); }
.am-seg input:active + span { transform: scale(0.98); }
.am-seg input:checked + span { background: var(--am-navy-900); color: var(--am-cream); }
.am-seg input:focus-visible + span { outline: 2px solid var(--am-navy-700); outline-offset: 2px; }
/* each option stays on one line: the full label where there is room, the short one on phones */
.am-seg input + span { line-height: 1.2; white-space: nowrap; }
.am-seg__short { display: none; }
@media (max-width: 559px) { .am-seg__full { display: none; } .am-seg__short { display: inline; } }

/* what happens next */
.am-recovery__side { display: grid; gap: var(--am-space-6); }
.am-steps { display: grid; gap: var(--am-space-5); margin: 0; padding: 0; list-style: none; }
.am-steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: var(--am-space-4); align-items: start; }
.am-steps__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--am-navy-900); color: var(--am-gold); }
.am-steps__icon svg { width: 24px; height: 24px; }
.am-steps h3 { margin: 0.2rem 0 0; font-size: var(--am-step-1); font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; color: var(--am-navy-900); }
.am-steps p { margin-top: 0.3rem; font-size: 1.02rem; line-height: 1.6; color: var(--am-ink); max-width: 46ch; }
.am-recovery__help { display: grid; gap: var(--am-space-3); padding: var(--am-space-5) var(--am-space-6); border-radius: 18px; background: var(--am-paper-2); }
.am-recovery__help h3 { margin: 0; font-size: var(--am-step-1); font-weight: 700; color: var(--am-navy-900); }
.am-recovery__help p { margin: 0; line-height: 1.6; color: var(--am-ink); }
.am-recovery__help-actions { display: flex; flex-wrap: wrap; gap: var(--am-space-3); margin-top: var(--am-space-2); }
@media (max-width: 520px) { .am-steps li { grid-template-columns: 44px minmax(0, 1fr); } .am-steps__icon { width: 44px; height: 44px; } }

/* ── Home: lost tickets band ───────────────────────────────────────────────
   A short paper-tone band after the cities: ticket mark, one sentence, the way to the resend page. */
.am-resend__inner {
    display: grid;
    gap: var(--am-space-5);
    align-items: center;
    padding: clamp(1.5rem, 1rem + 2.4vw, 3rem);
    border-radius: 20px;
    background: var(--am-paper-2);
}
@media (min-width: 900px) { .am-resend__inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--am-space-7); } }
.am-resend__icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--am-navy-900); color: var(--am-gold); }
.am-resend__icon svg { width: 36px; height: 36px; }
.am-resend__copy p { margin-top: var(--am-space-2); max-width: 48ch; font-size: var(--am-step-1); line-height: 1.5; color: var(--am-ink); }
.am-resend__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--am-space-3) var(--am-space-5); }
.am-resend__actions .am-btn svg { transition: transform var(--am-dur-1) var(--am-ease-out); }
.am-resend__actions .am-btn:hover svg { transform: translateX(3px); }

/* ── About page ────────────────────────────────────────────────────────────
   Intro with the booking steps, mission and vision on a navy band, the city postmarks,
   FAQs that open in place, then privacy and terms side by side. */
.am-about-intro { display: grid; gap: var(--am-space-7); align-items: start; }
@media (min-width: 980px) { .am-about-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--am-space-9); } }
.am-about-intro__copy { display: grid; gap: var(--am-space-4); justify-items: start; }
.am-about-intro__copy p { max-width: 46ch; font-size: var(--am-step-1); line-height: 1.55; color: var(--am-ink); }
.am-about-intro__copy .am-btn { margin-top: var(--am-space-3); }
.am-about-intro__copy .am-btn svg { transition: transform var(--am-dur-1) var(--am-ease-out); }
.am-about-intro__copy .am-btn:hover svg { transform: translateX(3px); }
.am-about-steps { padding-top: var(--am-space-2); }

.am-purpose { background: var(--am-navy-900); color: var(--am-cream); }
.am-purpose__inner { display: grid; gap: var(--am-space-7); }
@media (min-width: 900px) { .am-purpose__inner { grid-template-columns: 1fr 1fr; gap: var(--am-space-9); } }
.am-purpose .am-h2 { color: var(--am-gold); }
.am-purpose__item p { margin-top: var(--am-space-4); max-width: 30ch; font-size: clamp(1.3rem, 1rem + 1.1vw, 1.95rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; color: var(--am-cream); text-wrap: pretty; }

.am-about-cities__head { margin-bottom: var(--am-space-6); }

.am-faq { display: grid; gap: var(--am-space-6); align-items: start; }
@media (min-width: 980px) { .am-faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: var(--am-space-8); } }
.am-faq__head { display: grid; gap: var(--am-space-3); justify-items: start; }
.am-faq__head .am-lede { margin: 0; font-size: var(--am-step-1); line-height: 1.5; color: var(--am-ink); max-width: 30ch; }
.am-faq__list { display: grid; gap: 4px; border-radius: 18px; overflow: hidden; }
.am-faq__item { background: var(--am-paper-2); }
.am-faq__item summary {
    display: flex; align-items: center; justify-content: space-between; gap: var(--am-space-4);
    padding: 1.15rem 1.4rem; list-style: none; cursor: pointer;
    font-size: var(--am-step-1); font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; color: var(--am-navy-900);
    transition: background-color var(--am-dur-1);
}
.am-faq__item summary::-webkit-details-marker { display: none; }
.am-faq__item summary:hover { background: var(--am-paper-3); }
.am-faq__item summary svg { width: 22px; height: 22px; flex: none; transition: transform var(--am-dur-2) var(--am-ease-out); }
.am-faq__item[open] summary svg { transform: rotate(45deg); }
.am-faq__item p { padding: 0 1.4rem 1.3rem; max-width: 62ch; font-size: 1.02rem; line-height: 1.6; color: var(--am-ink); }
.am-faq__item p a { font-weight: 600; color: var(--am-navy-700); }

.am-legal-band { background: var(--am-paper-2); }
.am-legal { display: grid; gap: var(--am-space-6); }
@media (min-width: 900px) { .am-legal { grid-template-columns: 1fr 1fr; gap: var(--am-space-8); } }
.am-legal article { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: var(--am-space-4); row-gap: var(--am-space-2); align-items: start; scroll-margin-top: calc(var(--am-topbar-h) + 24px); }
.am-legal__icon { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--am-navy-900); color: var(--am-gold); }
.am-legal__icon svg { width: 24px; height: 24px; }
.am-legal h2 { margin: 0.35rem 0 0; font-size: var(--am-step-2); font-weight: 700; letter-spacing: -0.02em; color: var(--am-navy-900); }
.am-legal p { max-width: 52ch; line-height: 1.6; color: var(--am-ink); }

/* ── Portfolio ─────────────────────────────────────────────────────────────
   The track record: three figures set large, tickets by city as plain bars (navy online,
   gold sold at the venue), featured films with their own bars, stamps, partners, gallery. */
.am-figures__list { display: grid; gap: var(--am-space-5); margin: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.am-figures__list div { display: flex; flex-direction: column-reverse; gap: 0.2rem; padding: var(--am-space-5) var(--am-space-6); border-radius: 18px; background: var(--am-paper-2); }
.am-figures__list dt { font-size: var(--am-step-1); font-weight: 600; color: var(--am-ink-muted); }
.am-figures__list dd { margin: 0; font-family: var(--am-font-display); font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); font-weight: 800; font-stretch: 80%; line-height: 1; letter-spacing: -0.02em; color: var(--am-navy-900); font-variant-numeric: tabular-nums; }

.am-bars { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.am-bars li { display: grid; grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr) 4.5rem; align-items: center; gap: var(--am-space-4); }
.am-bars__name { font-weight: 600; color: var(--am-ink); overflow-wrap: anywhere; }
.am-bars__track { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--am-paper-3); }
.am-bars__track i, .am-bars__track b { display: block; height: 100%; }
.am-bars__track i { background: var(--am-navy-700); }
.am-bars__track b { background: var(--am-gold); }
.am-bars__value { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--am-navy-900); }
.am-bars__key { display: flex; flex-wrap: wrap; gap: var(--am-space-4); margin-top: var(--am-space-3); font-size: 0.9rem; color: var(--am-ink-muted); }
.am-bars__key span { display: inline-flex; align-items: center; gap: 0.45rem; }
.am-bars__key span::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--am-navy-700); }
.am-bars__key .is-offline::before { background: var(--am-gold); }
@media (max-width: 520px) { .am-bars li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0.35rem; } .am-bars__track { grid-column: 1 / -1; grid-row: 2; } }

.am-pf-cities { display: grid; gap: var(--am-space-6); align-items: start; }
@media (min-width: 980px) { .am-pf-cities { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: var(--am-space-8); } }
.am-pf-cities__head .am-lede, .am-pf-partners__head .am-lede { font-size: var(--am-step-1); line-height: 1.5; color: var(--am-ink); max-width: 32ch; }

.am-pf-films { background: var(--am-paper-2); }
.am-pf-films__lede { font-size: var(--am-step-1); line-height: 1.5; color: var(--am-ink); max-width: 52ch; margin-bottom: var(--am-space-7); }
.am-pf-film { display: grid; gap: var(--am-space-6); align-items: start; }
.am-pf-film + .am-pf-film { margin-top: var(--am-rhythm); }
@media (min-width: 900px) {
    .am-pf-film { grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); gap: var(--am-space-8); align-items: center; }
    .am-pf-film.is-flipped { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr); }
    .am-pf-film.is-flipped .am-pf-film__art { order: 2; }
}
.am-pf-film__art { overflow: hidden; border-radius: 6px; aspect-ratio: 2 / 3; max-height: 560px; background: var(--am-navy-900); }
.am-pf-film__art img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.am-pf-film__mark { display: grid; place-items: center; height: 100%; }
.am-pf-film__mark img { width: 30%; height: auto; }
.am-pf-film__body { display: grid; gap: var(--am-space-4); align-content: start; }
.am-pf-film__title { margin: 0; font-size: var(--am-step-3); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; color: var(--am-navy-900); }
.am-pf-film__tagline { font-size: var(--am-step-1); line-height: 1.5; color: var(--am-ink); max-width: 46ch; }
.am-pf-film__total { display: flex; align-items: baseline; gap: 0.6rem; }
.am-pf-film__total strong { font-family: var(--am-font-display); font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); font-weight: 800; font-stretch: 80%; line-height: 1; color: var(--am-navy-900); font-variant-numeric: tabular-nums; }
.am-pf-film__total span { font-size: var(--am-step-1); font-weight: 600; color: var(--am-ink-muted); }
.am-pf-film__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin: var(--am-space-3) 0 0; padding: 0; list-style: none; }
.am-pf-film__gallery a { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; }
.am-pf-film__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--am-dur-3) var(--am-ease-out); }
.am-pf-film__gallery a:hover img { transform: scale(1.06); }

.am-pf-more__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--am-space-6) var(--am-space-5); margin: var(--am-space-6) 0 0; padding: 0; list-style: none; }
.am-pf-more__grid li { display: grid; gap: 0.2rem; align-content: start; }
.am-pf-more__stamp { --s: 10px; --r: 3px; --pad: 4px; margin-bottom: var(--am-space-2); background: var(--am-stamp-paper); transition: transform var(--am-dur-3) var(--am-ease-out); }
.am-pf-more__grid li:nth-child(odd) .am-pf-more__stamp { transform: rotate(-2deg); }
.am-pf-more__grid li:nth-child(even) .am-pf-more__stamp { transform: rotate(2deg); }
.am-pf-more__grid li:hover .am-pf-more__stamp { transform: rotate(0) translateY(-4px); }
.am-pf-more__grid strong { font-weight: 700; line-height: 1.3; color: var(--am-navy-900); }
.am-pf-more__grid span:not(.am-stamp):not(.am-stamp__art):not(.am-poster-fallback) { font-size: 0.92rem; color: var(--am-ink-muted); }

.am-pf-partners { display: grid; gap: var(--am-space-6); align-items: start; }
@media (min-width: 980px) { .am-pf-partners { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: var(--am-space-8); } }
.am-pf-partner { cursor: default; }
.am-pf-partner__name { font-size: var(--am-step-1); font-weight: 700; letter-spacing: -0.015em; color: var(--am-navy-900); }
.am-pf-partner__count { text-align: right; font-size: var(--am-step-1); font-weight: 700; white-space: nowrap; color: var(--am-navy-900); font-variant-numeric: tabular-nums; }
.am-pf-partner__count small { font-size: 0.85rem; font-weight: 500; color: var(--am-ink-muted); }
.am-pf-partner.am-line { grid-template-columns: 52px minmax(0, 1fr) auto; }

.am-pf-gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; margin: var(--am-space-6) 0 0; padding: 0; list-style: none; }
.am-pf-gallery__grid li { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--am-paper-2); }
.am-pf-gallery__grid img { width: 100%; height: 100%; object-fit: cover; }

/* rounded public figures: the plus sits a little smaller, in gold, after the number */
.am-plus { margin-left: 0.05em; font-weight: 700; color: var(--am-gold-700); }
:is(.am-figures__list dd, .am-numbers__list dd, .am-pf-film__total strong) .am-plus { font-size: 0.6em; vertical-align: 0.42em; }
/* the large figures use the text face, heavy, with equal-width digits so counting up does not jitter */
.am-site :is(.am-figures__list dd, .am-numbers__list dd, .am-pf-film__total strong) {
    font-family: var(--am-font-body);
    font-weight: 700;
    font-stretch: 100%;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums lining-nums;
}
.am-count { display: inline-block; min-width: 1ch; }
.am-numbers .am-plus { color: var(--am-gold); }

/* ── Order summary / receipt ───────────────────────────────────────────────
   Main column changes with the order (pay, expired, tickets); the order card sits beside it. */
/* stacked on phones, the cards keep the same 24px rhythm as the cards inside each column */
.am-order { display: grid; gap: var(--am-space-5); align-items: start; }
/* the grid gap spaces the two columns; the page's section rhythm margin would double it on phones
   and push the side column down on desktop */
main.am-paper .am-order > * + * { margin-top: 0; }
@media (min-width: 1040px) { .am-order { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr); gap: var(--am-space-8); } }
.am-order__main { display: grid; gap: var(--am-space-5); min-width: 0; }
.am-recovery__notice.is-wait { background: rgba(212, 164, 55, 0.18); color: var(--am-gold-ink); }

.am-pay { display: grid; gap: var(--am-space-4); justify-items: start; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: 20px; background: var(--am-navy-900); color: var(--am-cream); }
.am-pay__title { margin: 0; font-size: var(--am-step-2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--am-cream); }
.am-pay__head p, .am-pay > p { margin-top: 0.35rem; color: var(--am-cream-muted); }
.am-pay__total { display: flex; align-items: baseline; gap: 0.75rem; }
.am-pay__total span { font-size: var(--am-step-1); font-weight: 600; color: var(--am-cream-muted); }
.am-pay__total strong { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--am-cream); font-variant-numeric: tabular-nums; }
.am-pay__hold { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.9rem; border-radius: 999px; background: rgba(247, 241, 227, 0.08); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--am-cream); }
.am-pay__hold svg { width: 18px; height: 18px; color: var(--am-gold); }
.am-pay__hold.is-low { background: rgba(200, 55, 45, 0.22); }
.am-pay__hold.is-gone { background: rgba(200, 55, 45, 0.3); }
.am-pay__btn { min-width: min(100%, 260px); min-height: 56px; font-size: 1.08rem; }
.am-pay__btn:disabled { opacity: 0.85; cursor: progress; }
.am-pay__btn > span { display: inline-flex; align-items: center; gap: 0.55rem; }
.am-pay__btn > span[hidden] { display: none; }
.am-spinner { display: inline-block; flex: none; box-sizing: border-box; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: am-spin 700ms linear infinite; }
/* a button's label and its loading state swap in place: each lays out its icon and text in a row */
.am-btn > span { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; }
.am-btn > span[hidden] { display: none; }
/* submitting: disabled against a second press, but still the gold action, just working */
.am-btn[aria-busy="true"]:disabled { --_bg: var(--am-gold); --_fg: var(--am-gold-ink); opacity: 0.9; cursor: progress; }
@keyframes am-spin { to { transform: rotate(360deg); } }
.am-pay--expired { background: var(--am-paper-2); color: var(--am-ink); }
.am-pay--expired .am-pay__title { color: var(--am-navy-900); font-size: var(--am-step-1); }

.am-tickets { display: grid; gap: var(--am-space-5); }
.am-tickets__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--am-space-4); }
.am-tickets__note { display: flex; align-items: center; gap: 0.5rem; color: var(--am-ink); font-weight: 500; }
.am-tickets__note svg { width: 20px; height: 20px; color: var(--am-it-green); }
.am-tickets__list { display: grid; gap: var(--am-space-5); margin: 0; padding: 0; list-style: none; }

/* a ticket: the film on paper, a perforated tear line, the QR stub */
.am-ticket { position: relative; display: grid; border-radius: 18px; background: var(--am-paper-2); overflow: hidden; }
@media (min-width: 720px) { .am-ticket { grid-template-columns: minmax(0, 1fr) 236px; } }
.am-ticket__film { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--am-space-6); padding: var(--am-space-6); align-items: center; }
.am-ticket__stamp { --s: 11px; --r: 3px; --pad: 4px; width: 140px; background: #FFFFFF; transform: rotate(-3deg); transition: transform var(--am-dur-2) var(--am-ease-out); }
/* the stamp straightens and lifts, like the film stamps on the listings */
@media (hover: hover) { .am-ticket:hover .am-ticket__stamp { transform: rotate(0deg) translateY(-3px); } }
.am-ticket__what { display: grid; gap: 0.35rem; min-width: 0; }
.am-ticket__what h3 { margin: 0; font-size: var(--am-step-2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--am-navy-900); overflow-wrap: anywhere; }
/* weekday, date and time each on their own line */
.am-ticket__when { display: flex; flex-direction: column; gap: 0.1rem; font-size: var(--am-step-1); font-weight: 500; line-height: 1.3; color: var(--am-ink); }
.am-ticket__when b { font-weight: 700; color: var(--am-navy-600); font-variant-numeric: tabular-nums; }
/* the date and the time each stay whole: a narrow card moves the time to the next line, never splits it */
.am-ticket__when > span, .am-ticket__when b, .am-bundle-page__when { white-space: nowrap; }
/* the weekday reads as a quieter line above the date */
.am-ticket__when > span:first-child { font-size: 0.95rem; font-weight: 500; color: var(--am-ink-muted); }
.am-ticket__where { color: var(--am-ink); line-height: 1.45; }
.am-ticket__where span { display: block; font-size: 0.92rem; color: var(--am-ink-muted); }
.am-ticket__facts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: var(--am-space-2) 0 0; padding: 0; list-style: none; }
.am-ticket__facts li { padding: 0.3rem 0.7rem; border-radius: 999px; background: #FFFFFF; font-size: 0.85rem; font-weight: 600; color: var(--am-ink); }
.am-ticket__facts li.is-seat { background: var(--am-navy-900); color: var(--am-cream); }
.am-ticket__stub { position: relative; display: grid; justify-items: center; align-content: center; gap: 0.4rem; padding: var(--am-space-6) var(--am-space-5); background: var(--am-paper-3); text-align: center; }
@media (min-width: 720px) {
    /* the tear line: punched holes down the join, cut from the stub's edge */
    .am-ticket__stub { -webkit-mask: radial-gradient(circle 5px at 0 10px, #0000 98%, #000) 0 0 / 100% 20px; mask: radial-gradient(circle 5px at 0 10px, #0000 98%, #000) 0 0 / 100% 20px; }
}
.am-ticket__qr { width: 168px; height: 168px; padding: 10px; box-sizing: content-box; border-radius: 12px; background: #FFFFFF; image-rendering: pixelated; }
.am-ticket__number { font-size: 0.92rem; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; color: var(--am-navy-900); font-variant-numeric: tabular-nums; user-select: all; }
.am-ticket__scan { max-width: 22ch; font-size: 0.88rem; line-height: 1.4; color: var(--am-ink-muted); }
@media (max-width: 520px) { .am-ticket__film { grid-template-columns: 104px minmax(0, 1fr); padding: var(--am-space-5); gap: var(--am-space-4); align-items: start; } .am-ticket__stamp { --s: 9px; --r: 2.6px; --pad: 3px; width: 104px; } }

/* ── My tickets ─────────────────────────────────────────────────────────────
   Upcoming / past as a two-way switch, status chips beside it; each order is a ticket:
   the film on paper, the stub with its status, total and the way in. */
.am-orders { display: grid; gap: var(--am-space-6); }
.am-orders__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--am-space-4); }
.am-orders__tabs { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 999px; background: var(--am-paper-2); }
.am-orders__tabs a {
    display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 1.25rem;
    border-radius: 999px; font-weight: 700; color: var(--am-ink-muted); text-decoration: none;
    transition: background-color var(--am-dur-1), color var(--am-dur-1);
}
.am-orders__tabs a:hover { color: var(--am-navy-900); background: var(--am-paper-3); }
.am-orders__tabs a[aria-current="page"] { background: var(--am-navy-900); color: var(--am-cream); }
.am-orders__tabs span { min-width: 1.5rem; padding: 0 0.4rem; border-radius: 999px; background: rgba(11, 22, 48, 0.08); font-size: 0.78rem; line-height: 1.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.am-orders__tabs a[aria-current="page"] span { background: var(--am-gold); color: var(--am-gold-ink); }
.am-orders__filter { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.am-orders__filter .am-chip { text-decoration: none; }

.am-ticket__what h3 a { color: inherit; text-decoration: none; }
.am-ticket__what h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.am-ticket__what h3.is-sinhala { letter-spacing: 0; line-height: 1.4; }
.am-ticket--order .am-ticket__facts li { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; white-space: nowrap; }
@media (max-width: 520px) { .am-ticket--order .am-ticket__facts li { padding-inline: 0.55rem; font-size: 0.75rem; } }
@media (min-width: 720px) { .am-ticket--order { grid-template-columns: minmax(0, 1fr) 260px; } }
.am-orders__stub { gap: 0.25rem; }
.am-orders__status { margin-bottom: var(--am-space-2); padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; }
.am-orders__status.is-paid { background: rgba(0, 146, 70, 0.14); color: #0B4D2A; }
.am-orders__status.is-pending { background: var(--am-gold); color: var(--am-gold-ink); }
.am-orders__status.is-off { background: rgba(11, 22, 48, 0.08); color: var(--am-ink-muted); }
.am-orders__total { font-size: var(--am-step-2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--am-navy-900); font-variant-numeric: tabular-nums; }
.am-orders__qty { font-weight: 600; color: var(--am-ink); }
.am-orders__ref { display: grid; margin-bottom: var(--am-space-3); font-size: 0.88rem; line-height: 1.45; color: var(--am-ink-muted); font-variant-numeric: tabular-nums; }
.am-orders__ref b { font-weight: 700; letter-spacing: 0.02em; color: var(--am-navy-900); user-select: all; }
.am-orders__stub .am-btn svg { width: 16px; height: 16px; transition: transform var(--am-dur-1) var(--am-ease-out); }
.am-orders__stub .am-btn:hover svg { transform: translateX(3px); }
/* past screenings step back: the stamp in grey until it is pointed at */
.am-ticket--order.is-past .am-ticket__stamp img { filter: grayscale(1); opacity: 0.75; transition: filter var(--am-dur-2), opacity var(--am-dur-2); }
.am-ticket--order.is-past:hover .am-ticket__stamp img { filter: none; opacity: 1; }
@media (max-width: 719px) {
    .am-orders__stub { grid-template-columns: minmax(0, 1fr) auto; justify-items: start; text-align: left; column-gap: var(--am-space-4); }
    .am-orders__status { grid-column: 1 / -1; }
    .am-orders__total { grid-column: 2; grid-row: 2 / 4; align-self: center; }
    .am-orders__ref { grid-column: 1 / -1; margin-bottom: var(--am-space-2); }
    .am-orders__stub .am-btn { grid-column: 1 / -1; justify-self: stretch; }
}
@media (max-width: 520px) { .am-orders__bar { display: grid; } .am-orders__tabs { justify-self: stretch; } .am-orders__tabs a { justify-content: center; } }

.am-seatcall { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--am-space-4); align-items: center; padding: var(--am-space-5); border-radius: 16px; background: rgba(212, 164, 55, 0.16); }
@media (min-width: 640px) { .am-seatcall { grid-template-columns: auto minmax(0, 1fr) auto; } }
/* phones: the icon lines up with the heading, and the button gets its own row on the right */
@media (max-width: 639px) {
    .am-seatcall { align-items: start; }
    .am-seatcall > .am-btn { grid-column: 1 / -1; justify-self: end; }
}
.am-seatcall__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--am-navy-900); color: var(--am-gold); }
.am-seatcall__icon svg { width: 22px; height: 22px; }
.am-seatcall h3 { margin: 0; font-size: var(--am-step-1); font-weight: 700; color: var(--am-navy-900); }
.am-seatcall p { color: var(--am-ink); }

.am-order__side { display: grid; gap: var(--am-space-4); }
@media (min-width: 1040px) { .am-order__side { position: sticky; top: calc(var(--am-topbar-h) + var(--am-space-5)); } }
.am-order__status { padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.88rem; font-weight: 700; }
.am-order__status.is-paid { background: rgba(0, 146, 70, 0.12); color: #0B4D2A; }
.am-order__status.is-waiting { background: rgba(212, 164, 55, 0.22); color: var(--am-gold-ink); }
.am-order__status.is-expired { background: rgba(200, 55, 45, 0.12); color: var(--am-red-700); }
.am-order__show { display: grid; gap: 0.05rem; min-width: 0; }
.am-order__show strong { font-weight: 700; color: var(--am-navy-900); line-height: 1.3; }
.am-order__show > span { font-size: 0.9rem; color: var(--am-ink-muted); }

/* the order as a receipt: navy head with the order number, paper body */
.am-receipt {
    border-radius: 20px;
    background: var(--am-paper-2);
    overflow: hidden;
}
.am-receipt__head { display: grid; gap: var(--am-space-4); padding: var(--am-space-6); border-radius: 20px 20px 0 0; background: var(--am-navy-900); color: var(--am-cream); }
.am-receipt__top { display: grid; justify-items: start; gap: var(--am-space-3); }
.am-receipt__title { margin: 0; font-size: var(--am-step-2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--am-cream); }
.am-receipt__head .am-order__status { flex: none; }
.am-receipt__head .am-order__status.is-paid { background: rgba(0, 146, 70, 0.28); color: #B6F0CD; }
.am-receipt__head .am-order__status.is-waiting { background: var(--am-gold); color: var(--am-gold-ink); }
.am-receipt__head .am-order__status.is-expired { background: rgba(200, 55, 45, 0.3); color: #FFD3CF; }
.am-receipt__ref { display: grid; gap: 0.2rem; }
.am-receipt__ref-label { font-size: 0.9rem; color: var(--am-cream-muted); }
.am-receipt__ref-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.75rem; }
.am-receipt__ref-row strong { font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.2rem); font-weight: 700; letter-spacing: 0.02em; color: var(--am-cream); font-variant-numeric: tabular-nums; user-select: all; overflow-wrap: anywhere; }
.am-receipt__copy { min-height: 32px; padding: 0 0.8rem; border: 0; border-radius: 999px; background: rgba(247, 241, 227, 0.12); color: var(--am-cream); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background-color var(--am-dur-1); }
.am-receipt__copy:hover { background: rgba(247, 241, 227, 0.22); }
.am-receipt__copy.is-done { background: var(--am-gold); color: var(--am-gold-ink); }
.am-receipt__copy[hidden] { display: none; }

.am-receipt__body { display: grid; gap: var(--am-space-5); padding: var(--am-space-5) var(--am-space-6) var(--am-space-6); }
.am-receipt__shows { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; border-radius: 12px; overflow: hidden; }
.am-receipt__shows li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0.75rem; align-items: center; padding: 0.75rem 0.9rem; background: #FFFFFF; }
.am-order__show .am-session__when { font-size: 0.9rem; color: var(--am-ink-muted); }
.am-order__show .am-session__when b { margin-left: 0.15rem; font-weight: 700; color: var(--am-navy-600); }

.am-receipt__lines { display: grid; gap: 0.5rem; margin: 0; }
.am-receipt__lines div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--am-space-4); }
.am-receipt__lines dt { color: var(--am-ink); }
.am-receipt__lines dt small { margin-left: 0.2rem; font-size: 0.9rem; color: var(--am-ink-muted); }
.am-receipt__lines dd { margin: 0; font-weight: 600; color: var(--am-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.am-receipt__lines .is-saving dd { color: #0B4D2A; }
.am-receipt__code { margin-left: 0.3rem; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.78rem !important; font-weight: 700; background: rgba(11, 22, 48, 0.07); color: var(--am-ink) !important; }
.am-receipt__total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--am-space-2) var(--am-space-4); padding: var(--am-space-4) var(--am-space-5); margin: 0 calc(var(--am-space-2) * -1); border-radius: 14px; background: #FFFFFF; }
/* money never breaks across lines ("110,00 €" stays whole), nor do the short labels beside it; when
   both do not fit, the amount drops to its own line, right-aligned */
.am-receipt__total span, .am-pay__total span { white-space: nowrap; }
.am-receipt__total strong { margin-left: auto; }
.am-receipt__total strong, .am-pay__total strong, .am-checkout__amount strong, .am-qty__total strong { white-space: nowrap; }
.am-pay__total { flex-wrap: wrap; }
.am-receipt__total span { font-weight: 700; color: var(--am-navy-900); }
.am-receipt__total strong { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--am-navy-900); font-variant-numeric: tabular-nums; }

.am-receipt__buyer h3 { margin: 0 0 0.6rem; font-size: 1rem; font-weight: 700; color: var(--am-navy-900); }
.am-receipt__buyer ul { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.am-receipt__buyer li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0.65rem; align-items: center; color: var(--am-ink); overflow-wrap: anywhere; }
.am-receipt__buyer li svg { width: 20px; height: 20px; color: var(--am-navy-600); }
.am-receipt__buyer strong { font-weight: 700; color: var(--am-navy-900); }
.am-receipt__cf { display: grid; place-items: center; width: 22px; height: 18px; border-radius: 4px; background: var(--am-navy-600); color: #FFFFFF; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.02em; }

/* ── Home: in numbers ──────────────────────────────────────────────────────
   A navy block in the paper column: the heading and a way to the portfolio on the left,
   the three figures set large in cream on the right. */
.am-numbers__inner {
    display: grid;
    gap: var(--am-space-6);
    align-items: center;
    padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
    border-radius: 20px;
    background: var(--am-navy-900);
    color: var(--am-cream);
}
@media (min-width: 980px) { .am-numbers__inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: var(--am-space-8); } }
.am-numbers .am-h2 { color: var(--am-gold); }
.am-numbers__copy { display: grid; gap: var(--am-space-3); justify-items: start; }
.am-numbers__copy p { max-width: 30ch; font-size: var(--am-step-1); line-height: 1.5; color: var(--am-cream); }
.am-numbers .am-link-arrow { color: var(--am-gold-300); }
.am-numbers__list { display: grid; gap: var(--am-space-5); margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.am-numbers__list div { display: flex; flex-direction: column-reverse; gap: 0.3rem; }
.am-numbers__list dt { font-size: var(--am-step-0); font-weight: 600; color: var(--am-cream-muted); }
.am-numbers__list dd { margin: 0; font-family: var(--am-font-display); font-size: clamp(2.4rem, 1.4rem + 4.2vw, 5.2rem); font-weight: 800; font-stretch: 80%; line-height: 1; letter-spacing: -0.02em; color: var(--am-cream); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .am-numbers__list { grid-template-columns: 1fr 1fr; } .am-numbers__list div:first-child { grid-column: 1 / -1; } }
/* two figures side by side at every width (home: cities and films) */
.am-numbers__list--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .am-numbers__list--pair div:first-child { grid-column: auto; } }

.am-pf-empty .am-bundles__empty h2 { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--am-navy-900); }

/* ── Error pages ───────────────────────────────────────────────────────────
   Standalone (no database): a plain bar with the logo, the cinema wall filling the screen with
   the message on the left and the code in a large postmark on the right, a one-line footer. */
body.am-error-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding-bottom: 0; background: var(--am-navy-900); }
.am-error__bar { padding-block: var(--am-space-4); background: var(--am-navy-900); }
.am-error__brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.am-error__brand img:first-child { width: 40px; height: 40px; }
.am-error__brand img:last-child { width: 120px; height: auto; }
.am-error { flex: 1; display: grid; align-items: center; }
.am-error__inner { display: grid; gap: var(--am-space-7); align-items: center; padding-block: var(--am-rhythm); }
@media (min-width: 860px) { .am-error__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--am-space-8); } }
.am-error__copy { display: grid; gap: var(--am-space-4); justify-items: start; }
.am-error .am-page-hero__title { margin: 0; font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.6rem); }
.am-error .am-page-hero__lede { max-width: 44ch; margin: 0; font-size: var(--am-step-1); line-height: 1.55; color: var(--am-cream); }
.am-error__actions { display: flex; flex-wrap: wrap; gap: var(--am-space-3); margin-top: var(--am-space-3); }
.am-error__mark { display: grid; place-items: center; }
.am-error__postmark { --size: clamp(200px, 26vw, 340px); position: relative; transform: rotate(-12deg); animation: am-stamp-in 520ms var(--am-ease-out) both 120ms; }
.am-error__postmark svg path { display: none; } /* the wavy cancel lines would run off the screen edge */
.am-error__postmark .am-postmark__date b { font-size: calc(var(--size) * 0.24); letter-spacing: 0.01em; }
@keyframes am-stamp-in { from { opacity: 0; transform: rotate(-4deg) scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .am-error__postmark { animation: none; } }
@media (max-width: 859px) { .am-error__mark { order: -1; justify-items: start; } .am-error__postmark { --size: 150px; } }
.am-error__foot { padding-block: var(--am-space-5); background: var(--am-navy-900); color: var(--am-cream-muted); font-size: 0.9rem; }
.am-error__foot .am-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--am-space-3); }
.am-error__foot a { color: var(--am-cream); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; transition: color var(--am-dur-2), text-decoration-color var(--am-dur-2); }
.am-error__foot a:hover { color: var(--am-gold-300); text-decoration-color: currentColor; }
/* the credit, as in the site footer: one row between © and Contact us on wide screens; on phones its own
   line below them, "Powered by" over the logo and name */
.am-error__foot .am-wrap { align-items: center; }
.am-error__foot p { margin: 0; }
.am-error__foot .am-error__credit { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--am-cream-faint); text-decoration: none; }
.am-error__foot .am-error__credit:hover { color: var(--am-cream); }
.am-error__credit img { height: 30px; width: auto; opacity: 0.9; transition: opacity var(--am-dur-2) var(--am-ease-out); }
.am-error__credit:hover img { opacity: 1; }
@media (max-width: 959px) {
    .am-error__foot .am-error__credit { order: 3; flex-basis: 100%; display: inline-grid; grid-template-columns: auto auto; justify-content: start; gap: 0.35rem 0.5rem; padding-top: var(--am-space-3); }
    .am-error__credit > span:first-child { grid-column: 1 / -1; }
}

/* ── Account home (dashboard) ──────────────────────────────────────────────
   Next screening as a ticket, the points on the navy block, recent orders as screening rows. */
.am-dash-hero__inner { display: grid; gap: var(--am-space-5); align-items: center; padding-block: var(--am-space-6); }
@media (min-width: 900px) { .am-dash-hero__inner { grid-template-columns: minmax(0, 1fr) auto; gap: var(--am-space-7); padding-block: var(--am-space-7); } }
.am-dash-hero__hello { display: grid; gap: var(--am-space-3); }
.am-dash-hero .am-page-hero__title { margin: 0; font-size: calc(clamp(2rem, 1.4rem + 2.4vw, 3.6rem) * 0.8); }
.am-dash-hero .am-page-hero__lede { margin: 0; }
.am-dash-hero__links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.am-dash-hero__links a {
    display: inline-flex; align-items: center; gap: 0.55rem; min-height: 48px; padding: 0 1.2rem;
    border-radius: 999px; background: rgba(247, 241, 227, 0.08); box-shadow: inset 0 0 0 1px var(--am-navy-line-strong);
    color: var(--am-cream); font-weight: 600; text-decoration: none;
    transition: background-color var(--am-dur-1), color var(--am-dur-1), transform var(--am-dur-1) var(--am-ease-out);
}
.am-dash-hero__links a svg { width: 18px; height: 18px; color: var(--am-gold); transition: color var(--am-dur-1); }
.am-dash-hero__links a:hover { background: var(--am-gold); color: var(--am-gold-ink); transform: translateY(-1px); }
.am-dash-hero__links a:hover svg { color: var(--am-gold-ink); }
.am-dash-hero__links a:active { transform: translateY(1px); }
.am-dash__pdf { margin-top: var(--am-space-2); font-size: 0.92rem; }
.am-dash__orders .am-orders__status { margin: 0; }
.am-dash__ref { white-space: nowrap; font-variant-numeric: tabular-nums; }
.am-dash__orders .am-session__where strong.is-sinhala { line-height: 1.45; }
@media (max-width: 560px) { .am-dash__orders .am-orders__status { display: none; } }

/* ── Loyalty points ────────────────────────────────────────────────────────
   The balance on the navy block, the history as dated rows, the rules beside them. */
.am-loyalty { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--am-rhythm); align-items: start; }
@media (min-width: 980px) { .am-loyalty { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr); gap: var(--am-space-8); } }
.am-loyalty__balance .am-numbers__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .am-loyalty__balance .am-numbers__list div:first-child { grid-column: auto; } }
.am-loyalty__rules { display: grid; gap: var(--am-space-5); padding: var(--am-space-6); border-radius: 20px; background: var(--am-paper-2); }
@media (min-width: 980px) { .am-loyalty__rules { position: sticky; top: calc(var(--am-topbar-h) + var(--am-space-5)); } }
.am-loyalty__rules .am-steps h3 { font-size: 1.08rem; }
.am-loyalty__rules .am-steps p { font-size: 0.95rem; }
.am-ledger .am-session { grid-template-columns: auto minmax(0, 1fr) auto; }
.am-ledger__side { display: grid; justify-items: end; gap: 0.1rem; }
.am-ledger__delta { font-size: var(--am-step-1); font-weight: 700; font-variant-numeric: tabular-nums; }
.am-ledger__delta.is-earn { color: #0B6B37; }
.am-ledger__delta.is-spend { color: var(--am-red-700); }
.am-ledger__side small { font-size: 0.82rem; color: var(--am-ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.am-ledger__meta { display: flex; flex-wrap: wrap; column-gap: 0.75rem; }

/* ── Pagination (any list) ─────────────────────────────────────────────────
   "Showing 1–10 of 47" on the left, round page buttons on the right, the current page in navy. */
.am-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--am-space-3) var(--am-space-5); margin-top: var(--am-space-5); }
.am-pager__count { margin: 0; font-size: 0.92rem; color: var(--am-ink-muted); font-variant-numeric: tabular-nums; }
.am-pager__list { display: flex; align-items: center; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.am-pager__page, .am-pager__step {
    display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 0.6rem;
    border-radius: 999px; font-weight: 700; color: var(--am-navy-900); text-decoration: none; font-variant-numeric: tabular-nums;
    background: var(--am-paper-2);
    transition: background-color var(--am-dur-1), color var(--am-dur-1), transform var(--am-dur-1) var(--am-ease-out);
}
a.am-pager__page:hover, a.am-pager__step:hover { background: var(--am-paper-3); }
a.am-pager__page:active, a.am-pager__step:active { transform: scale(0.94); }
.am-pager__page.is-current { background: var(--am-navy-900); color: var(--am-cream); }
.am-pager__step svg { width: 18px; height: 18px; transform: rotate(180deg); }
.am-pager__step.is-next svg { transform: none; }
.am-pager__step.is-off { color: rgba(11, 22, 48, 0.25); background: transparent; }
.am-pager__gap { display: grid; place-items: center; width: 24px; color: var(--am-ink-muted); }
@media (max-width: 520px) { .am-pager { justify-content: center; } .am-pager__count { width: 100%; text-align: center; } }

/* ── Account settings ──────────────────────────────────────────────────────
   The forms as paper panels on the left, who is signed in on a navy card on the right. */
.am-settings { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--am-rhythm); align-items: start; }
@media (min-width: 980px) { .am-settings { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr); gap: var(--am-space-8); } }
.am-settings__forms { display: grid; gap: var(--am-space-5); }
.am-settings__panel { display: grid; gap: var(--am-space-5); padding: clamp(1.25rem, 0.9rem + 1.6vw, 2.25rem); border-radius: 20px; background: var(--am-paper-2); }
.am-settings__title { display: block; margin: 0; font-size: var(--am-step-2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--am-navy-900); }
.am-settings__lede { display: block; margin: 0.3rem 0 0; color: var(--am-ink-muted); }
.am-settings__form { display: grid; gap: var(--am-space-4); }
.am-settings__pair { display: grid; gap: var(--am-space-4); }
@media (min-width: 640px) { .am-settings__pair { grid-template-columns: 1fr 1fr; } }
.am-settings__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--am-space-4); margin-top: var(--am-space-2); }
/* phones: a form's button closes it on the right, where the thumb is; any note beside it goes underneath */
@media (max-width: 559px) {
    .am-settings__actions { justify-content: flex-end; }
    .am-settings__actions > :not(.am-btn) { flex-basis: 100%; text-align: right; }
}
.am-settings__saved { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; font-weight: 600; color: #0B6B37; }
.am-settings__saved svg { width: 18px; height: 18px; }
.am-settings__note { margin: 0; padding: 0.7rem 0.9rem; border-radius: 12px; background: rgba(212, 164, 55, 0.16); color: var(--am-ink); }
.am-settings__textbtn { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--am-navy-700); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
/* delete account: closed by default, opens in place */
.am-settings__danger { gap: 0; }
.am-settings__danger summary { display: flex; align-items: center; justify-content: space-between; gap: var(--am-space-4); list-style: none; cursor: pointer; }
.am-settings__danger summary::-webkit-details-marker { display: none; }
.am-settings__danger summary .am-settings__title { color: var(--am-red-700); }
.am-settings__danger summary svg { width: 22px; height: 22px; flex: none; color: var(--am-ink-muted); transform: rotate(90deg); transition: transform var(--am-dur-2) var(--am-ease-out); }
.am-settings__danger[open] summary svg { transform: rotate(-90deg); }
.am-settings__danger[open] .am-settings__form { margin-top: var(--am-space-5); }
.am-btn--danger { --_bg: var(--am-red-700); --_fg: #FFFFFF; box-shadow: none; }
.am-btn--danger:hover { background: var(--am-red); }
/* who is signed in */
.am-settings__card { display: grid; justify-items: start; gap: 0.2rem; padding: var(--am-space-6); border-radius: 20px; background: var(--am-navy-900); color: var(--am-cream); }
@media (min-width: 980px) { .am-settings__card { position: sticky; top: calc(var(--am-topbar-h) + var(--am-space-5)); } }
.am-settings__avatar { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--am-space-3); border-radius: 50%; background: var(--am-gold); color: var(--am-gold-ink); font-size: 1.6rem; font-weight: 700; }
.am-settings__name { margin: 0; font-size: var(--am-step-1); font-weight: 700; color: var(--am-cream); overflow-wrap: anywhere; }
.am-settings__email { margin: 0; color: var(--am-cream-muted); overflow-wrap: anywhere; }
.am-settings__facts { display: grid; gap: var(--am-space-3); width: 100%; margin: var(--am-space-5) 0 0; }
.am-settings__facts div { display: flex; justify-content: space-between; gap: var(--am-space-4); padding: 0.7rem 0.9rem; border-radius: 12px; background: rgba(247, 241, 227, 0.06); }
.am-settings__facts dt { font-weight: 500; color: var(--am-cream-muted); }
.am-settings__facts dd { margin: 0; font-weight: 700; color: var(--am-cream); text-align: right; }

/* ── Verify email / WhatsApp (account settings) ──────────────────────────── */
.am-verify__label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.am-verify__state { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: rgba(212, 164, 55, 0.2); color: var(--am-gold-800); }
.am-verify__state.is-ok { background: rgba(0, 146, 70, 0.14); color: #0B4D2A; }
.am-verify__state svg { width: 14px; height: 14px; }
.am-verify__row { display: flex; gap: 0.5rem; align-items: stretch; }
.am-verify__row > input, .am-verify__row > .am-phone { flex: 1; min-width: 0; }
.am-verify__btn { flex: none; min-height: 50px; }
/* phones: the field keeps the full width so the whole address or number shows; Verify goes underneath */
@media (max-width: 559px) {
    .am-verify__row { flex-wrap: wrap; }
    .am-verify__row > input, .am-verify__row > .am-phone { flex-basis: 100%; }
    .am-verify__btn { flex-basis: 100%; }
}

/* the code dialog */
.am-otp { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 22px; background: var(--am-paper); color: var(--am-ink); box-shadow: 0 30px 80px -20px rgba(6, 13, 31, 0.6); }
.am-otp::backdrop { background: rgba(6, 13, 31, 0.6); }
.am-otp[open] { animation: am-otp-in 260ms var(--am-ease-out); }
@keyframes am-otp-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .am-otp[open] { animation: none; } }
.am-otp__box { position: relative; display: grid; gap: var(--am-space-4); padding: var(--am-space-6); }
.am-otp__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--am-paper-2); color: var(--am-navy-900); cursor: pointer; }
.am-otp__close:hover { background: var(--am-paper-3); }
.am-otp__close svg { width: 18px; height: 18px; }
.am-otp__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--am-navy-900); color: var(--am-gold); }
.am-otp__icon svg { width: 26px; height: 26px; }
.am-otp__title { margin: 0; font-size: var(--am-step-2); font-weight: 700; letter-spacing: -0.02em; color: var(--am-navy-900); }
.am-otp__lede { margin: -0.4rem 0 0; line-height: 1.5; color: var(--am-ink); overflow-wrap: anywhere; }
/* six boxes, one per digit */
.am-otp__digits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; }
.am-otp .am-otp__digit {
    width: 100%; min-width: 0; height: 58px; padding: 0; border: 0; border-radius: 12px;
    background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--am-paper-line-strong);
    font: inherit; font-size: 1.6rem; font-weight: 700; text-align: center; color: var(--am-navy-900);
    font-variant-numeric: tabular-nums; caret-color: var(--am-gold);
    transition: box-shadow var(--am-dur-1), background-color var(--am-dur-1);
}
.am-otp .am-otp__digit.is-filled { background: var(--am-paper-2); box-shadow: inset 0 0 0 1px var(--am-navy-600); }
.am-otp .am-otp__digit:focus { outline: none; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--am-navy-700); }
.am-otp__digits.is-wrong { animation: am-otp-shake 360ms var(--am-ease-out); }
.am-otp__digits.is-wrong .am-otp__digit { box-shadow: inset 0 0 0 2px var(--am-red); }
@keyframes am-otp-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .am-otp__digits.is-wrong { animation: none; } }
@media (max-width: 380px) { .am-otp__digits { gap: 0.35rem; } .am-otp .am-otp__digit { height: 50px; font-size: 1.35rem; } }
/* "Send a new code in 0:59": greyed out until the time is up */
.am-otp__again:disabled { color: var(--am-ink-faint); text-decoration: none; cursor: default; }
.am-otp__timer { font-variant-numeric: tabular-nums; }
.am-otp__error { margin: 0; padding: 0.55rem 0.8rem; border-radius: 10px; font-size: 0.92rem; font-weight: 600; color: var(--am-red-700); background: rgba(200, 55, 45, 0.1); }
.am-otp__submit { width: 100%; }
.am-otp__resend { display: flex; justify-content: center; gap: 0.5rem; margin: 0; font-size: 0.92rem; color: var(--am-ink-muted); }
.am-otp__resend [hidden] { display: none; }

/* ── Save our WhatsApp number ──────────────────────────────────────────────
   A thin gold strip under the top bar on the account pages; a line under the WhatsApp field when booking. */
.am-savenum { background: var(--am-gold); color: var(--am-gold-ink); }
.am-savenum[hidden] { display: none; }
.am-savenum__inner { display: flex; align-items: center; gap: 0.75rem; min-height: 46px; padding-block: 0.45rem; font-size: 0.92rem; }
.am-savenum__inner > svg { width: 20px; height: 20px; flex: none; }
.am-savenum p { flex: 1; margin: 0; line-height: 1.4; }
.am-savenum b { white-space: nowrap; }
.am-savenum a { flex: none; font-weight: 700; color: var(--am-gold-ink); text-decoration: underline; text-underline-offset: 0.2em; }
.am-savenum button { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(11, 22, 48, 0.1); color: var(--am-gold-ink); cursor: pointer; transition: background-color var(--am-dur-1); }
.am-savenum button:hover { background: rgba(11, 22, 48, 0.2); }
.am-savenum button svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .am-savenum a { display: none; } }
.am-savenum-note { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.6rem 0 0; padding: 0.6rem 0.75rem; border-radius: 10px; background: rgba(212, 164, 55, 0.16); font-size: 0.88rem; line-height: 1.45; color: var(--am-ink); }
.am-checkout__form > .am-savenum-note { margin: 0 0 var(--am-space-3); }
.am-savenum-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--am-gold-800); }
.am-savenum-note b { white-space: nowrap; color: var(--am-navy-900); }


/* ── Set up your account (guest activation) ── uses the account settings panels and card */
.am-activate__email { margin: 0; padding: 0.8rem 0.95rem; border-radius: 12px; background: var(--am-paper-3); font-weight: 600; color: var(--am-ink); overflow-wrap: anywhere; }
.am-activate__login { margin: 0; color: var(--am-ink-muted); }
.am-activate__login a { font-weight: 700; color: var(--am-navy-700); }
.am-activate__perks { display: grid; gap: 0.6rem; width: 100%; margin: var(--am-space-5) 0 0; padding: 0; list-style: none; }
.am-activate__perks li { display: flex; align-items: center; gap: 0.6rem; color: var(--am-cream); }
.am-activate__perks svg { width: 18px; height: 18px; flex: none; color: var(--am-gold); }

/* ── Bundle cards on phones: hover moves play on scroll ────────────────────
   Phones (and narrow windows) have no hover to start them, so airmail-app.js marks a bundle card
   (home envelopes, bundles page) passing through the middle of the screen with .is-touch-hover:
   it lifts, and airmail-bundles.js shuffles its posters. */
@media (hover: none), (max-width: 959px) {
    .am-envelope.is-touch-hover { transform: translateY(-4px); box-shadow: var(--am-shadow-lift); }
    .am-paper .am-envelope.is-touch-hover { box-shadow: 0 0 0 1px rgba(11, 22, 48, 0.14), 0 22px 40px -20px rgba(11, 22, 48, 0.45); }
    .am-bundle.is-touch-hover:not(.is-unavailable) { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(11, 22, 48, 0.14), 0 24px 44px -22px rgba(11, 22, 48, 0.5); }
}

/* ── Image zoom (airmail-app.js): posters, gallery photos and the ticket QR open large ── */
.is-zoomable { cursor: zoom-in; }
.is-zoomable:focus-visible { outline: 3px solid var(--am-gold); outline-offset: 3px; }
.am-zoom {
    width: 100vw; height: 100dvh; max-width: none; max-height: none;
    margin: 0; padding: 0; border: 0;
    background: transparent;
    cursor: zoom-out;
}
.am-zoom[open] { display: grid; place-items: center; }
.am-zoom::backdrop { background: rgba(6, 13, 31, 0.92); }
.am-zoom img {
    display: block;
    max-width: min(92vw, 960px); max-height: 86dvh;
    width: auto; height: auto; object-fit: contain;
    border-radius: 6px;
    background: #FFFFFF;
}
.am-zoom__close {
    position: fixed; top: max(16px, env(safe-area-inset-top)); right: 16px;
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%;
    font-size: 1.8rem; line-height: 1; color: var(--am-cream); background: rgba(247, 241, 227, 0.14);
    cursor: pointer;
}
.am-zoom__close:hover { background: rgba(247, 241, 227, 0.26); }
.am-zoom[open] img { animation: am-zoom-in 220ms var(--am-ease-out); }
@keyframes am-zoom-in { from { opacity: 0; transform: scale(0.94); } }
@media (prefers-reduced-motion: reduce) { .am-zoom[open] img { animation: none; } }
