/* ==========================================================================
   ARI GOLD DIGITAL — "Loud and flat" street-poster direction
   Display: Unbounded (wide, heavy, Cyrillic) · Text: Onest
   Fields: black · gold · ivory · bronze — hard cuts, no gradients, no rules
   ========================================================================== */
:root {
    --black: #0c0c0b;
    --deep: #211a0d;
    --bronze: #7a5b26;
    --umber: #2b2210;
    --gold: #d4b06a;
    --gold-hover: #e6c886;
    --ivory: #e7e6e2;
    --soft: #bdb7a8;
    --soft-dark: #4a4337;

    --display: 'Unbounded', 'Arial Black', sans-serif;
    --text: 'Onest', system-ui, sans-serif;

    --step-hero: clamp(1.9rem, 0.35rem + 7.9vw, 8.4rem);
    --step-head: clamp(2.1rem, 1.2rem + 3.6vw, 5rem);
    --step-title: clamp(1.375rem, 1rem + 1.6vw, 2.75rem);
    --step-lead: clamp(1.25rem, 1rem + 1vw, 2rem);
    --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
    --step-small: 0.875rem;

    --m: clamp(16px, 3vw, 44px);
    --header: 72px;
    --band: 72px;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header); }
body { margin: 0; background: var(--black); color: var(--ivory); font: 400 var(--step-body)/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
figure { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold); color: var(--black); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 0.95; text-transform: uppercase; }
h2 { font-size: var(--step-head); text-wrap: balance; }
.gold, .outline { color: inherit; }
.shell { padding-inline: var(--m); }
.meta { font-size: var(--step-small); font-weight: 500; color: var(--soft); }
.meta > span:not(.status-dot) { display: block; margin-top: 4px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 10px; vertical-align: 0.05em; }

/* ---------- Header: plain bar, ink follows the chapter beneath ---------- */
.site-header { --ink: var(--ivory); position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header); display: flex; align-items: center; gap: 32px; padding-inline: var(--m); color: var(--ink); transition: color 300ms ease; }
.site-header[data-ink="dark"] { --ink: var(--black); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; object-fit: cover; }
.brand-word { font: 800 18px/0.9 var(--display); letter-spacing: -0.02em; }
.brand-word span { display: block; font: 600 10px var(--text); letter-spacing: 0.08em; margin-top: 5px; }
.desktop-nav { display: none; gap: 32px; margin-left: auto; font-size: var(--step-small); font-weight: 500; }
.desktop-nav a, .footer-links a, .sheet-link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; text-decoration-thickness: 2px; transition: text-decoration-color 180ms ease; }
.desktop-nav a.active { text-decoration-color: currentColor; }
.header-cta { margin-left: auto; padding: 11px 16px; border: 2px solid currentColor; font-size: 14px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; transition: background-color 180ms ease, color 180ms ease; }
.menu-toggle { border: 0; background: none; width: 44px; height: 44px; display: grid; align-content: center; justify-items: center; gap: 7px; padding: 0; }
.menu-toggle span { width: 24px; height: 2px; background: currentColor; transition: transform 240ms var(--ease-out); }
.menu-toggle[aria-expanded=true] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
#mobile-menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--black); color: var(--ivory); padding: 24px var(--m) 40px; box-shadow: 0 24px 40px #0009; } /* taste-skill-ignore: open menu overlay */
#mobile-menu:not([hidden]) { display: grid; gap: 18px; animation: menu-in 240ms var(--ease-out); }
#mobile-menu a { font: 800 30px/1.1 var(--display); text-transform: uppercase; letter-spacing: -0.03em; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 56px; padding: 0 24px; border: 0; font-size: var(--step-small); font-weight: 700; transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease; }
.button span { font-size: 22px; transition: transform 320ms var(--ease-out); }
.button:active { transform: scale(0.97); }
.button--gold { background: var(--gold); color: var(--black); }
.button--dark { background: var(--black); color: var(--ivory); }

@media (hover: hover) and (pointer: fine) {
    .desktop-nav a:hover, .footer-links a:hover, .sheet-link:hover { text-decoration-color: currentColor; }
    .header-cta:hover { background: var(--ink); color: var(--black); }
    .site-header[data-ink="dark"] .header-cta:hover { color: var(--ivory); }
    .button--gold:hover { background: var(--gold-hover); }
    .button--dark:hover { background: var(--umber); }
    .button:hover span, .header-cta:hover span, .sheet-link:hover span { transform: translate(3px, -3px); }
}

/* ==========================================================================
   Hero — black field, three-line poster statement, a photograph that opens
   ========================================================================== */
.hero { position: relative; background: var(--black); }
.hero-stage { position: relative; min-height: 100svh; display: flex; flex-direction: column; }
.hero-copy { position: relative; z-index: 1; padding: calc(var(--header) + 9svh) var(--m) 0; }
.hero-intro { font-size: var(--step-small); font-weight: 600; color: var(--soft); margin-bottom: 28px; }
.hero h1 { font-size: var(--step-hero); font-weight: 900; line-height: 0.9; letter-spacing: -0.035em; }
.hero-line { display: block; white-space: nowrap; }
.hero-line--gold { color: var(--gold); }
.hero-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 40px; max-width: 560px; }
.hero-bottom p { font-size: var(--step-body); }
.hero-bottom strong { font-weight: 700; color: var(--gold); }
.hero-photo { position: relative; margin: 48px var(--m) 0; height: 70svh; overflow: clip; background: #3b2a1a; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 30%; }
.hero-caption { position: absolute; left: var(--m); right: var(--m); bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px 32px; font: 800 var(--step-title)/1 var(--display); letter-spacing: -0.03em; color: var(--ivory); }
.hero-caption::before { content: ''; position: absolute; inset: -40vh calc(-1 * var(--m)) -32px; background: linear-gradient(transparent 55%, #0c0c0b99); z-index: -1; } /* taste-skill-ignore: neutral scrim under text on photo */
.scroll-cue, .frame-label { font-size: var(--step-small); font-weight: 600; color: var(--soft); }
.scroll-cue { display: inline-flex; gap: 14px; align-items: center; padding: 24px var(--m) 32px; min-height: 44px; }
.scroll-cue span:last-child { color: var(--gold); font-size: 20px; }
.frame-label { display: none; }

/* Scene: the photograph waits as a tilted card, then opens to the whole screen. */
.motion .hero { height: 240svh; }
.motion .hero-stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.motion .hero-photo { position: absolute; inset: 0; margin: 0; height: auto; clip-path: inset(66% 4% 3% 4%); transform: rotate(-3deg); transform-origin: 50% 82%; }

.motion .hero-caption { opacity: 0; }
.motion .scroll-cue { position: absolute; left: 0; bottom: 34%; }

/* ---------- Ticker: the one marquee ---------- */
.ticker { position: relative; z-index: 2; overflow: clip; background: var(--gold); color: var(--black); padding: 22px 0; }
.ticker-track { display: flex; align-items: center; gap: 32px; width: max-content; padding-right: 32px; font: 800 var(--step-title)/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }

/* ==========================================================================
   Services — stacking colour sheets
   ========================================================================== */
.services { background: var(--black); padding: 160px 0 120px; }
.services-intro { display: grid; gap: 32px; margin-bottom: 64px; }
.services-aside { display: grid; gap: 16px; max-width: 460px; }
.sheets { position: relative; }
.sheet { position: sticky; top: calc(var(--header) + var(--i) * var(--band)); min-height: calc(100svh - var(--header) - var(--i) * var(--band)); display: flex; flex-direction: column; transform-origin: 50% 0; }
.sheet--gold { background: var(--gold); color: var(--black); }
.sheet--ivory { background: var(--ivory); color: var(--black); }
.sheet--bronze { background: var(--bronze); color: var(--ivory); }
.sheet-band { height: var(--band); flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: var(--m); }
.sheet-band h3 { font-size: var(--step-title); display: flex; align-items: center; gap: 16px; }
.sheet-icon { font-size: var(--step-title); line-height: 1; margin-left: auto; }
.sheet-num { font-size: var(--step-small); font-weight: 600; }
.sheet-body { flex: 1; display: grid; gap: 24px; padding: 0 var(--m) var(--m); }
.sheet-text { display: flex; flex-direction: column; gap: 16px; max-width: 40ch; align-self: end; }
.sheet-sub { font: 700 var(--step-lead)/1.2 var(--text); }
.sheet-tags { font-size: var(--step-small); font-weight: 600; }
.sheet-link { align-self: flex-start; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; text-decoration-color: currentColor; }
.sheet-link span { display: inline-block; transition: transform 320ms var(--ease-out); }
.sheet-media { order: -1; overflow: clip; aspect-ratio: 4 / 3; background: var(--umber); }
.sheet-media img, .sheet-media video { width: 100%; height: 100%; object-fit: cover; }
.sheet--gold .sheet-media img { object-position: 50% 30%; }
.sheet--bronze .sheet-media { display: grid; place-items: center; padding: clamp(24px, 5vw, 64px); }
.sheet--bronze .sheet-media img { width: 92%; height: auto; max-height: 100%; object-fit: contain; border-radius: 10px; rotate: -5deg; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.08); animation: card-float 7s ease-in-out infinite; }
@keyframes card-float { 50% { translate: 0 -14px; rotate: -3deg; } }

/* ==========================================================================
   Approach — ivory field, accordion of tinted panels (dark → light)
   ========================================================================== */
.approach { background: var(--ivory); color: var(--black); }
.approach .meta { color: var(--soft-dark); }
.approach-pin { padding-block: 140px; }
.approach-intro { display: grid; gap: 32px; margin-bottom: 64px; }
.approach-intro > div { display: grid; gap: 16px; max-width: 46ch; align-content: start; }
.director-note { font-weight: 700; }
.acc { display: flex; flex-direction: column; }
.acc-panel { --bg: var(--umber); --fg: var(--ivory); background: var(--bg); color: var(--fg); }
.acc-panel:nth-child(2) { --bg: var(--bronze); }
.acc-panel:nth-child(3) { --bg: var(--gold); --fg: var(--black); }
.acc-panel h3 { font-size: var(--step-body); letter-spacing: -0.02em; }
.acc-trigger { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 0 20px; cursor: pointer; }
.acc-trigger:focus-visible { outline: 3px solid currentColor; outline-offset: -6px; }
.acc-num { font-family: var(--text); font-weight: 700; font-size: var(--step-small); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-out); }
.acc-body > * { overflow: hidden; }
.acc-body p { padding: 0 20px; max-width: 36ch; }
.acc-arrow { display: none; }
.acc-panel.is-open .acc-body { grid-template-rows: 1fr; padding-bottom: 24px; }

/* ==========================================================================
   Manifesto — inset deep panel, a deck of posters under the statement
   ========================================================================== */
.manifesto { background: var(--black); padding: 120px 10px; }
.manifesto-panel { background: var(--deep); overflow: clip; display: grid; gap: 48px; padding: 48px 24px 0; }
.manifesto h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); }
.manifesto-left { display: flex; flex-direction: column; gap: 48px; }
.poster { width: min(86vw, 420px); align-self: center; transform: rotate(-4deg); }
/* A fanned stack of posters; JS deals the top one to the back. Without JS the fan just sits. */
.poster-deck { display: grid; isolation: isolate; }
.poster-card { grid-area: 1 / 1; padding: 12px; background: var(--ivory); box-shadow: 0 24px 50px -24px rgb(0 0 0 / 0.8); transform-origin: 50% 100%; }
.poster-card:nth-child(1) { z-index: 4; }
.poster-card:nth-child(2) { z-index: 3; transform: translate(14px, -10px) rotate(4deg); }
.poster-card:nth-child(3) { z-index: 2; transform: translate(28px, -20px) rotate(8deg); }
.poster-card:nth-child(4) { z-index: 1; transform: translate(42px, -30px) rotate(12deg); }
.poster img { width: 100%; height: auto; aspect-ratio: 5 / 7; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 600ms ease; }
.poster-card.is-front img, .poster-card:nth-child(1):not(.is-dealt) img { filter: none; }
.poster-deck[role="button"] { cursor: pointer; }
.poster-deck:focus-visible { outline: 2px solid var(--gold); outline-offset: 8px; }
.poster-label { display: block; color: var(--black); font-size: var(--step-small); font-weight: 600; text-align: center; padding: 12px 0 4px; }
.manifesto-copy { display: grid; gap: 24px; align-content: start; }
.manifesto-lead { font: 600 var(--step-lead)/1.25 var(--text); --fill: var(--ivory); color: var(--fill); }
.signature { font: 800 var(--step-lead)/1.2 var(--display); letter-spacing: -0.02em; color: var(--gold); }
.signature span { display: block; font: 600 var(--step-small) var(--text); color: var(--soft); margin-top: 10px; }

/* ---------- Contact — the idea again, on gold ---------- */
.contact { position: relative; overflow: clip; isolation: isolate; background: var(--gold); color: var(--black); }
/* A Rorschach blot of Ari soaked into the gold, behind the statement */
.contact-ink { position: absolute; z-index: -1; left: 50%; top: 56%; width: min(120vw, 1250px); translate: -50% -50%; pointer-events: none; }
.contact-ink img { width: 100%; height: auto; opacity: 0.16; mix-blend-mode: multiply; animation: ink-breathe 9s ease-in-out infinite; }
@keyframes ink-breathe { 50% { scale: 1.035 0.985; } }
@media (min-width: 900px) { .contact-ink { left: 62%; } }
.contact .meta { color: var(--black); }
.contact .status-dot { background: var(--black); }
.contact-inner { min-height: 90svh; display: flex; flex-direction: column; justify-content: space-between; gap: 64px; padding-block: 120px 48px; }
.contact h2 { font-size: clamp(2.2rem, 0.6rem + 5.6vw, 6.6rem); font-weight: 900; }
.contact-bottom { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
.contact-bottom p { font-size: var(--step-lead); font-weight: 600; line-height: 1.3; }

/* ---------- Footer — photograph half, menu half ---------- */
.footer { display: grid; background: var(--black); }
.footer-photo { height: 50svh; overflow: clip; }
.footer-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 18%; transform: scale(1.5); transform-origin: 55% 25%; }
.footer-menu { display: flex; flex-direction: column; gap: 40px; padding: 48px var(--m); }
.footer-links { display: grid; gap: 20px; }
.footer-links a { font: 800 var(--step-title)/1.05 var(--display); letter-spacing: -0.03em; text-transform: uppercase; transition: transform 320ms var(--ease-out), opacity 180ms ease, text-decoration-color 180ms ease; }
.footer-info { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-weight: 600; }
.back-top { display: grid; place-items: center; width: 52px; height: 52px; background: var(--gold); color: var(--black); font-size: 22px; transition: transform 140ms var(--ease-out); }
.back-top:active { transform: scale(0.94); }
.footer-legal { font-size: var(--step-small); color: var(--soft); }
.footer-legal a { text-decoration: underline; text-underline-offset: 0.2em; }
@media (hover: hover) and (pointer: fine) {
    .footer-links:hover a:not(:hover) { opacity: 0.45; }
    .footer-links a:hover { transform: translateX(12px); }
}

/* ---------- A11y + dialog ---------- */
.skip-link { position: fixed; top: -100px; left: 8px; z-index: 100; background: var(--gold); color: var(--black); padding: 14px 18px; font-weight: 700; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.contact :focus-visible, .sheet--gold :focus-visible, .sheet--ivory :focus-visible, .approach :focus-visible { outline-color: var(--black); }

dialog { background: var(--black); color: var(--ivory); border: 0; padding: 40px 24px; width: calc(100% - 24px); max-width: 560px; max-height: 92svh; overflow: auto; box-shadow: 0 40px 100px #000; } /* taste-skill-ignore: dialog overlay */
dialog[open] { animation: dialog-in 360ms var(--ease-out); }
dialog::backdrop { background: #000c; }
@keyframes dialog-in { from { opacity: 0; transform: scale(0.97) translateY(8px); } }
dialog h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin: 16px 0 28px; }
dialog h2 .gold { color: var(--gold); }
dialog label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
dialog input, dialog textarea { display: block; width: 100%; padding: 14px; background: #1c1b18; border: 2px solid #3a372f; border-radius: 0; margin-bottom: 20px; font-size: 16px; transition: border-color 180ms ease; }
dialog input:focus, dialog textarea:focus { outline: none; border-color: var(--gold); }
dialog .button { width: 100%; }
.dialog-close { position: absolute; right: 12px; top: 10px; background: none; border: 0; font-size: 30px; width: 44px; height: 44px; }
.form-note { font-size: var(--step-small); color: var(--soft); margin-top: 14px; }

/* ==========================================================================
   Wide screens
   ========================================================================== */
@media (min-width: 900px) {
    :root { --header: 80px; }
    .desktop-nav { display: flex; }
    .header-cta { margin-left: 0; }
    .menu-toggle, #mobile-menu { display: none !important; }

    .hero-copy { padding-top: calc(var(--header) + 7svh); }
    .hero-bottom { margin-top: 44px; max-width: none; flex-direction: row; align-items: center; gap: 48px; }
    .motion .hero-photo { clip-path: inset(60% 3% 6% 60%); transform-origin: 78% 75%; }
    .motion .scroll-cue { bottom: 0; }
    .frame-label { display: block; position: absolute; left: calc(var(--m) + 300px); bottom: 32px; }
    .motion .frame-label { bottom: 32px; }

    .services-intro { grid-template-columns: 1fr; gap: 40px; }
    .services-aside { justify-self: end; }
    .sheet-body { grid-template-columns: repeat(12, 1fr); gap: 0 32px; padding: 0 0 0 var(--m); }
    .sheet-text { grid-column: 1 / 6; padding-bottom: var(--m); }
    .sheet-media { order: 0; grid-column: 7 / 13; aspect-ratio: auto; height: 100%; }

    .approach-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 120px 80px; }
    .approach-intro { grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; }
    .approach-intro > div { justify-self: end; }
    .acc { flex-direction: row; height: min(440px, 46svh); }
    .acc-panel { position: relative; flex: 1 1 0; min-width: 0; overflow: clip; transition: flex-grow 450ms var(--ease-in-out); }
    .acc-panel.is-open { flex-grow: 4.2; }
    .acc-panel h3 { position: absolute; inset: 0; }
    .acc-trigger { position: absolute; inset: 0; align-items: flex-end; padding: 24px; }
    .acc-panel:not(.is-open) .acc-trigger { writing-mode: vertical-rl; transform: rotate(180deg); justify-content: flex-end; align-items: flex-end; font-size: var(--step-body); }
    .acc-panel.is-open .acc-trigger { align-items: flex-start; font-size: var(--step-title); }
    .acc-body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 32px; opacity: 0; transition: opacity 240ms ease; pointer-events: none; }
    .acc-panel.is-open .acc-body { opacity: 1; transition-delay: 220ms; padding-bottom: 32px; }
    .acc-body > * { overflow: visible; }
    .acc-body p { padding: 0; font-size: var(--step-body); }
    .acc-arrow { display: block; font-size: 40px; line-height: 1; }

    .manifesto { padding: 160px 20px; }
    .manifesto-panel { grid-template-columns: 1fr 1fr; gap: 0; padding: 56px; }
    .manifesto-left { gap: 48px; }
    /* Sized by the viewport height too, so the whole deck is in view as the section arrives. */
    .poster { width: min(30vw, 420px, calc((100svh - 300px) / 1.5)); align-self: flex-start; margin: 0 0 0 6%; }
    .manifesto-copy { padding: 0 0 56px 26%; gap: 28px; }

    .contact-inner { padding-block: 160px 48px; }
    .contact-bottom { flex-direction: row; justify-content: space-between; align-items: flex-end; }

    .footer { grid-template-columns: 1fr 1fr; min-height: 100svh; }
    .footer-photo { height: auto; }
    .footer-menu { padding: 80px var(--m) 32px calc(var(--m) * 2); gap: 56px; }
    .footer-links { gap: 28px; }
    .footer-links a { justify-self: start; }
    .footer-legal { margin-top: auto; }
}

/* ==========================================================================
   Motion (hidden states only under .motion, which the script sets when allowed)
   ========================================================================== */
[data-lines] .line-mask { padding-bottom: 0.1em; margin-bottom: -0.1em; }
.motion [data-rise] { opacity: 0; transform: translateY(24px); }
.motion .hero-copy .hero-intro, .motion .hero-bottom { opacity: 0; transform: translateY(16px); }

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .is-filling > span { display: inline-block; color: color-mix(in oklab, var(--fill) 45%, transparent); animation: ink-fill linear both; animation-timeline: view(); animation-range: cover 20% cover 45%; }
    }
}
@keyframes ink-fill { to { color: var(--fill); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
}

/* ---------- Additions: star mark, measure ---------- */
.star { width: 0.8em; height: 0.8em; flex: none; display: inline-block; vertical-align: -0.05em; }
.sheet-icon .star { width: 0.9em; height: 0.9em; }
.manifesto-copy p, .contact-bottom p, .services-aside p, .approach-intro p { max-width: 52ch; }
.brand-word, .header-cta { white-space: nowrap; }
@media (max-width: 899px) {
    .site-header { gap: 12px; }
    .header-cta { padding: 8px 12px; }
    /* Phone: statement, the poster deck right under it, then the text. */
    .manifesto-panel { display: flex; flex-direction: column; padding-bottom: 48px; }
    .manifesto-left { display: contents; }
    .poster { width: min(68vw, 340px); margin: 0 auto 24px; translate: -14px 0; }
}
@media (max-width: 380px) { .brand-word { display: none; } }
.button { white-space: nowrap; flex: none; }

/* ==========================================================================
   Hero at rest: aurora light and shadow (asked for by the client; fades out as the scroll begins)
   taste-skill-ignore: gradients, glows and shadows here are a deliberate client request
   ========================================================================== */
.hero-aurora { position: absolute; inset: 0; z-index: 0; overflow: clip; pointer-events: none; }
.hero-aurora i { position: absolute; border-radius: 50%; will-change: transform; mix-blend-mode: screen; }
/* Gold key light, top right, behind the headline's end */
.hero-aurora i:nth-child(1) { width: 70vmax; height: 55vmax; right: -18vmax; top: -22vmax; background: radial-gradient(closest-side, #d4b06a59, #d4b06a1f 45%, transparent 72%); animation: aurora-a 19s ease-in-out infinite alternate; } /* taste-skill-ignore */
/* Bronze wash, low left under the supporting line */
.hero-aurora i:nth-child(2) { width: 80vmax; height: 50vmax; left: -30vmax; bottom: -20vmax; background: radial-gradient(closest-side, #7a5b2680, #7a5b2626 50%, transparent 75%); animation: aurora-b 24s ease-in-out infinite alternate; } /* taste-skill-ignore */
/* Cathedral-dome verdigris, a cool note behind the card */
.hero-aurora i:nth-child(3) { width: 48vmax; height: 40vmax; right: 2vmax; bottom: -10vmax; background: radial-gradient(closest-side, #3f7a6b40, #3f7a6b14 50%, transparent 75%); animation: aurora-c 27s ease-in-out infinite alternate; } /* taste-skill-ignore */
/* A thin amber ribbon sweeping across the headline */
.hero-aurora i:nth-child(4) { width: 120vmax; height: 18vmax; left: -10vmax; top: 34%; border-radius: 50%; background: radial-gradient(closest-side, #f0c27a33, transparent 70%); animation: aurora-d 16s ease-in-out infinite alternate; } /* taste-skill-ignore */
@keyframes aurora-a { 0% { transform: translate(0, 0) scale(1) rotate(0deg); } 50% { transform: translate(-12vw, 8vh) scale(1.15) rotate(18deg); } 100% { transform: translate(-4vw, 16vh) scale(0.95) rotate(-10deg); } }
@keyframes aurora-b { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(18vw, -10vh) scale(1.2); } 100% { transform: translate(8vw, -4vh) scale(0.9); } }
@keyframes aurora-c { 0% { transform: translate(0, 0) scale(0.9); } 100% { transform: translate(-16vw, -14vh) scale(1.25); } }
@keyframes aurora-d { 0% { transform: translate(-8vw, 0) rotate(-6deg) scaleX(0.8); opacity: 0.4; } 100% { transform: translate(14vw, -6vh) rotate(5deg) scaleX(1.1); opacity: 1; } }

/* Headline sits in the light: soft depth shadow, warm glow on the gold line */
/* filter, not text-shadow: the letter masks of the load animation would clip a text-shadow into boxes */
.hero h1 { filter: drop-shadow(0 20px 40px #000b); } /* taste-skill-ignore */
.hero-line--gold { filter: drop-shadow(0 0 28px #d4b06a59); } /* taste-skill-ignore */

/* Card shadow: the figure is clipped, so the shadow is its own layer under the card window */
.hero-card-shadow { display: none; }
.motion .hero-card-shadow { display: block; position: absolute; z-index: 0; pointer-events: none; top: 66%; right: 4%; bottom: 3%; left: 4%; transform: rotate(-3deg); box-shadow: 0 40px 80px -10px #000, 0 0 90px 10px #d4b06a33; } /* taste-skill-ignore */
.hero-copy { z-index: 1; }
.hero-photo { z-index: 2; }
@media (min-width: 900px) {
    .motion .hero-card-shadow { top: 60%; right: 3%; bottom: 6%; left: 60%; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-aurora i { animation: none; }
}
/* Mid-size screens: keep the card clear of the hero button */
@media (min-width: 900px) and (max-width: 1279px) {
    .motion .hero-photo { clip-path: inset(62% 3% 6% 66%); }
    .motion .hero-card-shadow { top: 62%; left: 66%; }
}

/* ---------- The card window levitates while the page rests ----------
   Uses the individual translate/rotate properties, so it adds to GSAP's transform instead of fighting it.
   --lift / --tilt are the amplitude; the scroll scene tweens them to 0 so the float settles, never jumps. */
.motion .hero-photo, .motion .hero-card-shadow { --lift: 16px; --tilt: 0.7deg; animation: levitate 5.5s ease-in-out infinite alternate; }
.motion .hero-card-shadow { animation: levitate 5.5s ease-in-out infinite alternate, card-glow 5.5s ease-in-out infinite alternate; }
@keyframes levitate {
    from { translate: 0 0; rotate: 0deg; }
    to { translate: 0 calc(var(--lift) * -1); rotate: var(--tilt); }
}
/* As the card rises its shadow falls away and softens, and the gold aura swells. */
@keyframes card-glow {
    from { box-shadow: 0 24px 50px -12px #000e, 0 0 40px 2px #d4b06a40, 0 0 0 1px #f6e1aa26; }
    to { box-shadow: 0 70px 100px -24px #000b, 0 0 120px 24px #d4b06a80, 0 0 0 1px #f6e1aa59; }
} /* taste-skill-ignore: client-requested glow */

/* ---------- Legal pages ---------- */
.legal-header { background: var(--black); }
.legal-header .header-cta { display: inline-flex; margin-left: auto; }
.legal { max-width: 76ch; padding-block: calc(var(--header) + 48px) 64px; }
.legal h1 { font-size: var(--step-head); margin: 16px 0 40px; text-wrap: balance; }
.legal h2 { font-size: var(--step-title); margin: 48px 0 16px; }
.legal p, .legal li { color: var(--soft); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 10px; }
.legal strong { color: var(--ivory); }
.legal a { color: var(--gold); text-decoration: underline; text-underline-offset: 0.2em; }
.legal-footer { padding-block: 32px; border-top: 1px solid var(--soft-dark); }

/* ---------- Contact buttons (big tap targets) ---------- */
.button--contact { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 72px; padding: 12px 24px; font-size: 18px; text-align: left; }
.button--contact .contact-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; }
.button--ghost { background: transparent; color: var(--black); box-shadow: inset 0 0 0 2px var(--black); min-height: 72px; }
.button--outline { background: transparent; color: var(--ivory); box-shadow: inset 0 0 0 2px var(--soft-dark); }
.contact-actions { display: grid; gap: 12px; }
.contact-actions .button, .footer-contacts .button, #mobile-menu .button--contact, dialog .button--contact { width: 100%; }
#mobile-menu .button--contact { font: 700 18px/1.2 var(--text); text-transform: none; letter-spacing: 0; }
.footer-contacts { display: grid; gap: 12px; }
dialog .button--contact { margin-top: 20px; }
.legal-contacts { font-weight: 600; margin-bottom: 12px; }
.legal-contacts a { text-decoration: underline; text-underline-offset: 0.2em; }
@media (hover: hover) and (pointer: fine) {
    .button--ghost:hover { background: var(--black); color: var(--ivory); }
    .button--outline:hover { box-shadow: inset 0 0 0 2px var(--gold); }
    .button--contact:hover .contact-label { transform: none; }
}
@media (min-width: 900px) {
    .contact-actions { grid-template-columns: repeat(3, auto); align-items: stretch; }
    .footer-contacts { grid-template-columns: 1fr 1fr; max-width: 640px; }
}
