@import url("./fonts.css?v=202609081607");

* { margin: 0; padding: 0; box-sizing: border-box; }
.btn-arrow, .story-progress { user-select: none; }

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #000000;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
}

::-webkit-scrollbar { display: none; width: 0; }

#webgl {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    outline: none;
}

.cinematic-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    pointer-events: none;          /* clicks pass through to canvas */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 60px 40px 60px;
    box-sizing: border-box;
}

/* ---- Header: quiet, editorial, one typeface ---- */
.main-header {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; height: 84px; z-index: 20;
    pointer-events: auto;
}
.brand { display: inline-flex; align-items: center; gap: 14px; color: #ffffff; text-decoration: none; }
.brand-mark { display: block; width: 38px; height: 38px; flex: 0 0 38px; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-text { font-size: 24px; font-weight: 600; letter-spacing: 0; }
.header-nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
    position: relative; padding: 6px 0;
    font-size: 12px; font-weight: 400; letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55); text-decoration: none; transition: color 0.4s;
}
.nav-link::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
    background: #ffffff; transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover, .nav-link.is-active { color: #ffffff; }
.nav-link.is-active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 26px; }
.header-counter {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 400; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.45);
}
.header-counter #brand-chapter { color: #ffffff; }
.counter-sep { width: 14px; height: 1px; background: rgba(255, 255, 255, 0.3); }
.contact-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 16px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px;
    color: #ffffff; text-decoration: none; background: transparent;
    font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
    transition: border-color 0.4s, background 0.4s;
}
.btn-arrow { font-size: 13px; line-height: 1; transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.contact-btn:hover { border-color: rgba(255, 255, 255, 0.75); background: rgba(255, 255, 255, 0.06); }
.contact-btn:hover .btn-arrow { transform: translate(2px, -2px); }
.header-progress { position: fixed; top: 84px; left: 0; right: 0; height: 1px; z-index: 6; pointer-events: none; }
.header-progress span {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.15));
}

.slide { position: absolute; bottom: 12%; pointer-events: none; }

#slide-1 { left: 0; width: 100%; bottom: 15%; }
#slide-1 .slide-title { margin-left: 60px; }
#slide-1 .desc-row { position: relative; display: flex; width: 100%; }
#slide-1 .col-1 {
    margin-left: 60px;
    width: calc(40vw - 60px);
    max-width: calc(40vw - 60px);
}
#slide-1 .col-2 { display: none; }

#slide-2, #slide-3, #slide-4 { left: calc(50vw + 20px); right: 60px; width: auto; bottom: 12%; }
#slide-2 .slide-desc, #slide-3 .slide-desc, #slide-4 .slide-desc { max-width: min(60ch, 100%); }   /* the paragraph runs almost as wide as its title */

/* Slide 2: four benefits, icon first */
.benefits { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 26px 40px; margin-top: 10px; }
.benefit {
    display: flex; align-items: flex-start; gap: 14px;
    opacity: 0; transform: translateY(14px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.benefit:nth-child(1) { transition-delay: 0.28s; }
.benefit:nth-child(2) { transition-delay: 0.36s; }
.benefit:nth-child(3) { transition-delay: 0.44s; }
.benefit:nth-child(4) { transition-delay: 0.52s; }
.slide.active .benefit { opacity: 1; transform: none; }
.benefit-icon {
    flex: 0 0 30px; width: 30px; height: 30px; border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.35); color: #ffffff;
    display: grid; place-items: center;
}
.benefit-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.benefit p { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 300; color: #d1d5db; }

#slide-5 { left: 60px; width: min(620px, 46vw); bottom: 10%; }


.slide-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(44px, 5.4vw, 80px);
    line-height: 1.0;
    font-weight: 400;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
    color: #f2f7ff;
}
.slide-desc {
    font-size: 16px; line-height: 1.7; font-weight: 300;
    color: #d1d5db; letter-spacing: 0.3px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.3s;
}
.slide.active .slide-desc { opacity: 1; transform: translateY(0); }

/* Title reveal: each line rises out of its own mask with a long exponential ease.
   Transform and opacity only, so it stays on the compositor and silky. */
.slide-title .line, .contact-title .line {
    display: block; overflow: hidden; white-space: nowrap;   /* two lines, never three: see fitTitles() */
    padding: 0.06em 0 0.16em; margin: -0.06em 0 -0.16em;
}
.line-inner {
    display: block; transform: translateY(112%); opacity: 0; filter: blur(12px);
    transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease-out,
                filter 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}
.line.muted .line-inner { transition-delay: 0.09s; }
.slide.active .slide-title .line-inner, .contact.is-visible .contact-title .line-inner {
    transform: none; opacity: 1; filter: blur(0);
}
.slide-title .line.muted, .contact-title .line.muted { color: #b9c1d1; }
.slide.active { pointer-events: auto; }

.story-progress {
    position: fixed; top: 50%; right: 40px; transform: translateY(-50%);
    z-index: 5; pointer-events: none; transition: opacity 0.6s;
}
.story-dashes { display: flex; flex-direction: column; gap: 12px; }
.story-dash { width: 2px; height: 40px; background: rgba(255, 255, 255, 0.15); border-radius: 2px; }
.story-dash-fill { width: 100%; height: 0%; background: #ffffff; border-radius: 2px; }

.grid-horizontal-line {
    position: fixed; top: 84px; left: 0; right: 0;
    width: 100%; height: 1px;
    background: rgba(255, 255, 255, 0.065);
    z-index: 5; pointer-events: none;
}

/* ---- Contact chapter: a real section that rises over the fixed 3D stage ---- */
.scroll-stage { height: 1945vh; pointer-events: none; }   /* 100vh + 600vh x STORY_STRETCH (app.js) */
.grid-horizontal-line { transition: opacity 0.6s; }
body.contact-open .story-progress, body.contact-open .grid-horizontal-line { opacity: 0; }

.contact {
    position: relative; z-index: 8;
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 150px 60px 90px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.22) 20%, rgba(0, 0, 0, 0.30) 100%);
}
.contact-inner {
    width: 100%; max-width: 1760px; margin: 0 auto;
    display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 600px);
    justify-content: space-between; gap: clamp(40px, 6vw, 130px); align-items: center;
}
.contact-eyebrow {
    display: flex; align-items: center; gap: 14px; margin-bottom: 48px;
    font: 500 11px/1 'Inter', sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: #cfd6e6;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, 0.6); }
.contact-title {
    font-size: clamp(48px, 5.8vw, 92px); line-height: 1.0; letter-spacing: -0.035em; font-weight: 400;
    color: #f2f7ff; margin-bottom: 40px;
}

.contact-lead { font-size: 17px; line-height: 1.7; font-weight: 300; color: #d1d5db; margin-bottom: 60px; }
.contact-mail {
    display: inline-flex; align-items: center; gap: 30px; padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff; text-decoration: none; font-size: 18px; font-weight: 400; transition: gap 0.35s, border-color 0.35s;
}
.contact-mail:hover { gap: 44px; border-color: #ffffff; }
.arrow { font-size: 1.15em; line-height: 1; }
.contact-lead, .contact-mail, .contact-card {
    opacity: 0; transform: translateY(34px);
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.2s, transform 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
}
.contact-mail { transition-delay: 0.3s; }
.contact-card { transition-delay: 0.35s; }
.contact.is-visible .contact-lead, .contact.is-visible .contact-mail, .contact.is-visible .contact-card {
    opacity: 1; transform: none;
}

/* The card. By default a CSS glass; when the 3D slab is active (body.has-glass-card)
   the CSS body turns transparent and the WebGL glass shows through behind the fields. */
.contact-card {
    position: relative; width: 100%; max-width: 600px; justify-self: end;
    border-radius: 30px; padding: 40px 44px 38px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
body.has-glass-card .contact-card {
    border-color: transparent; background: transparent;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: none;
}
/* Specular rim on top of the 3D glass: a bright hairline that fades along the edge. The glass look only (js/looks/glass.js):
   the other looks draw the card's edge themselves. */
[data-look="glass"] body.has-glass-card .contact-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    padding: 1px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.08) 28%,
                                rgba(255, 255, 255, 0.04) 60%, rgba(255, 255, 255, 0.35) 100%);
}
[data-look="glass"] body.has-glass-card .contact-card::after {
    content: ''; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none;
    background: radial-gradient(120% 80% at 18% 0%, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 55%);
}
.contact-card > * { position: relative; z-index: 1; }
.card-head {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px;
    font: 500 11px/1 'Inter', sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: #d7deea;
}
.card-head .arrow { font-size: 20px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field-wide { grid-column: 1 / -1; }
.field-label { font: 500 12px/1 'Inter', sans-serif; letter-spacing: 0.04em; color: #dfe6f3; }
.field-label em { font-style: normal; color: #ff9ab8; }
.field-label small { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: #8d97ab; margin-left: 8px; }
.field input, .field textarea {
    width: 100%; background: transparent; border: 0; border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.20);
    padding: 6px 0 12px; color: #ffffff; outline: none; -webkit-appearance: none; appearance: none;
    font: 300 16px/1.4 'Inter', sans-serif; transition: border-color 0.3s;
    user-select: text; -webkit-user-select: text;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8b94a6; }
.field input:focus, .field textarea:focus { border-bottom-color: #ffffff; }
.field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #0b0b10 inset; -webkit-text-fill-color: #ffffff; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 34px; }
.card-note { font-size: 10.5px; line-height: 1.7; color: #b3bccb; letter-spacing: 0.3px; }
.pill-btn {
    display: inline-flex; align-items: center; gap: 18px; padding: 16px 26px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.04); color: #ffffff;
    font: 500 13px/1 'Inter', sans-serif; letter-spacing: 0.2px;
    transition: background 0.3s, color 0.3s, transform 0.3s, border-color 0.3s;
}
.pill-btn .arrow { font-size: 16px; }
.pill-btn:hover { background: #ffffff; color: #000000; border-color: #ffffff; transform: translateY(-2px); }
@media (max-width: 1000px) {
    .contact { padding: 120px 24px 60px; }
    .contact-inner { grid-template-columns: 1fr; gap: 56px; }
    .contact-card { justify-self: stretch; max-width: none; padding: 32px 26px; }
    .contact-title { letter-spacing: -3px; }
    .field-grid { grid-template-columns: 1fr; gap: 24px; }
    .card-foot { flex-direction: column; align-items: flex-start; }
}

/* ---- Mini footer: hairline, quiet, technical ---- */
.contact-footer {
    position: absolute; left: 60px; right: 60px; bottom: 0;
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    padding: 18px 0 20px; border-top: 1px solid rgba(255, 255, 255, 0.06);
    font: 400 10px/1 'Inter', sans-serif; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.32);
    opacity: 0; transition: opacity 1s ease 0.6s;
}
.contact.is-visible .contact-footer { opacity: 1; }
.contact-footer a { color: inherit; text-decoration: none; transition: color 0.3s; }
.contact-footer a:hover { color: rgba(255, 255, 255, 0.8); }
.footer-spec { color: rgba(255, 255, 255, 0.22); }
@media (max-width: 1000px) {
    .contact-footer { left: 24px; right: 24px; flex-wrap: wrap; gap: 10px 24px; }
    .footer-spec { display: none; }
}

/* ============================================================================
   Portrait / narrow screens: stacked composition. Text on top with the 3D
   object below on slides 1 and 3; object on top, text below on slides 2 and 4
   (the camera framing in cameraFrame() follows the same alternation).
   ============================================================================ */
@media (max-width: 900px), (max-aspect-ratio: 4/5) {
    .cinematic-container { padding: 0 24px 24px; }
    .story-progress { right: 12px; }
    .slide, #slide-1, #slide-2, #slide-3, #slide-4, #slide-5 { left: 24px; right: 24px; width: auto; max-width: none; bottom: auto; }
    #slide-1, #slide-2, #slide-3, #slide-4, #slide-5 { top: 112px; bottom: auto; }
    #slide-1 .slide-title, #slide-2 .slide-title, .slide-title {
        margin-left: 0; margin-bottom: 14px;
        font-size: clamp(34px, 10vw, 64px); letter-spacing: -0.035em; line-height: 1.0;
    }
    #slide-1 .desc-row { flex-direction: column; }
    #slide-1 .col-1, #slide-1 .col-2 { position: static; margin-left: 0; width: 100%; max-width: 36ch; }
    #slide-1 .col-2 { display: none; }
    .benefits { grid-template-columns: 1fr 1fr; gap: 16px 14px; }
    .benefit { gap: 10px; }
    .benefit-icon { flex-basis: 26px; width: 26px; height: 26px; border-radius: 6px; }
    .benefit-icon svg { width: 14px; height: 14px; }
    .benefit p { font-size: 13px; line-height: 1.45; }
    #slide-5 { left: 24px; width: auto; max-width: none; }
    .slide-desc { font-size: 15px; line-height: 1.6; max-width: 36ch; }
    .contact { padding: 110px 24px 100px; }
    .contact-title { font-size: clamp(40px, 10.5vw, 120px); letter-spacing: -0.035em; }
    .contact-lead { margin-bottom: 40px; }
}
/* Header compaction: five chapters and the contact button need the room */
@media (max-width: 1180px) {
    .header-nav { gap: 22px; }
    .header-counter { display: none; }
}
@media (max-width: 960px) {
    .header-nav { display: none; }
}
/* Header compaction */
@media (max-width: 820px) {
    .header-nav { display: none; }
    .brand-text { white-space: nowrap; font-size: 20px; }
    .brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
    .contact-btn { padding: 8px 14px; font-size: 11px; }
}
@media (max-width: 420px) {
    .header-counter { display: none; }
    .brand { gap: 10px; }
    .brand-text { font-size: 18px; }
    .brand-mark { width: 28px; height: 28px; flex-basis: 28px; }
    .contact-btn .btn-arrow { display: none; }
    .lang-switch { padding: 8px 11px; }
}

/* ---- Preloader ---- */
.loader {
    position: fixed; inset: 0; z-index: 9990; background: #000000;
    display: grid; place-items: center;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.7s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: grid; justify-items: center; text-align: center; gap: 20px; width: min(320px, 70vw); }
.loader-value {
    font-size: clamp(56px, 8vw, 96px); font-weight: 400; line-height: 1; letter-spacing: -0.04em;
    color: #ffffff; font-variant-numeric: tabular-nums;
}
.loader-unit { font-size: 0.35em; letter-spacing: 0; margin-left: 0.1em; color: rgba(255, 255, 255, 0.5); }
.loader-bar { width: 100%; height: 1px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.loader-bar span { display: block; width: 100%; height: 100%; background: #ffffff; transform: scaleX(0); transform-origin: left center; }
.loader-hint { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.35); }
body.is-loading { overflow: hidden; }


/* ---- SkyGames adaptation ---- */
.header-actions { gap: 14px; }
.lang-switch {
    font: 600 11px/1 'Inter', sans-serif; letter-spacing: 0.12em; color: #ffffff; text-decoration: none;
    padding: 9px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.28);
    transition: background 0.3s, border-color 0.3s;
}
.lang-switch:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }
.dl-group { margin-top: 26px; }
.dl-label { font: 500 11px/1 'Inter', sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: #cfd6e6; margin-bottom: 14px; }
.dl-row { display: flex; flex-direction: column; gap: 12px; }
.dl-btn {
    display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 17px 26px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.04); color: #ffffff; text-decoration: none;
    font: 500 14px/1 'Inter', sans-serif; transition: background 0.3s, color 0.3s, transform 0.3s, border-color 0.3s;
}
.dl-btn .arrow { font-size: 16px; }
.dl-btn:hover { background: #ffffff; color: #000000; border-color: #ffffff; transform: translateY(-2px); }
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }

/* ============================================================================
   Atmospheric Velocity (design-system.json, dark theme). Tokens first, then the
   overrides of the generic glass template: M3 colour roles, M3 shapes, M3 motion,
   Lexend for headings and Inter for text, letter-spacing 0 as in the design system.
   ============================================================================ */
:root {
    --bg: #0E0E0E; --on-bg: #FFFFFF; --on-surface-variant: #ADAAAA;
    --outline: #767575; --outline-variant: #3A3939;
    --primary: #FFAC54; --on-primary: #583100; --primary-container: #FF9800; --on-primary-container: #452600;
    --secondary: #FFD709; --tertiary: #5FBFFF; --error: #FF7351;
    --surface-low: #131313; --surface: #1A1A1A; --surface-high: #20201F; --surface-highest: #262626;
    --shape-sm: 12px; --shape-md: 16px; --shape-lg: 24px; --shape-xl: 28px;
    --emphasized: cubic-bezier(0.2, 0, 0, 1);
    --emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
    --standard: cubic-bezier(0.2, 0, 0, 1);
}
html, body { background-color: var(--bg); }
.loader { background: var(--bg); }
.loader-bar span { background: var(--primary); }

/* Type: Lexend for headings, Inter for text, tracking 0 (design-system.json, typography) */
.slide-title, .contact-title, .brand-text, .loader-value { font-family: 'Lexend', 'Inter', sans-serif; letter-spacing: 0; }
.slide-title, .contact-title { color: var(--on-bg); font-weight: 400; }
.slide-title .line.muted, .contact-title .line.muted { color: var(--on-surface-variant); }
.slide-desc, .contact-lead, .benefit p { font-weight: 400; color: var(--on-surface-variant); letter-spacing: 0; }
.slide-desc, .contact-lead { color: #D4D1D1; }
.brand-text { font-weight: 500; letter-spacing: 0.02em; }
.nav-link { color: var(--on-surface-variant); letter-spacing: 0.02em; font-weight: 500; }
.nav-link::after { background: var(--primary); height: 2px; border-radius: 2px; }
.nav-link:hover, .nav-link.is-active { color: var(--on-bg); }
.header-counter { color: var(--on-surface-variant); }
.header-counter #brand-chapter { color: var(--primary); }
.counter-sep { background: var(--outline-variant); }
.header-progress span { background: linear-gradient(90deg, var(--primary), rgba(255, 172, 84, 0.25)); }
.story-dash { background: var(--outline-variant); }
.story-dash-fill { background: var(--primary); }
.grid-horizontal-line { background: rgba(255, 255, 255, 0.06); }
.benefit-icon { border: 1px solid var(--outline-variant); color: var(--primary); border-radius: var(--shape-sm); background: rgba(26, 26, 26, 0.6); }
.eyebrow-dot { background: var(--primary); box-shadow: 0 0 12px rgba(255, 172, 84, 0.7); }
.contact-eyebrow, .card-head, .dl-label { color: var(--on-surface-variant); letter-spacing: 0.16em; }

/* Buttons (M3): filled for the one primary action, outlined for the language, tonal in the card */
.contact-btn {
    background: var(--primary); color: var(--on-primary); border: 0; border-radius: 999px;
    padding: 10px 18px; font-weight: 600; letter-spacing: 0.02em;
    transition: background-color 200ms var(--standard), transform 160ms var(--standard);
}
.contact-btn:hover { background: color-mix(in srgb, var(--primary) 90%, var(--on-primary)); }
.contact-btn:active { transform: scale(0.97); }
.lang-switch {
    color: var(--primary); border: 1px solid var(--outline); letter-spacing: 0.08em; padding: 9px 14px;
    transition: background-color 200ms var(--standard), border-color 200ms var(--standard), transform 160ms var(--standard);
}
.lang-switch:hover { background: rgba(255, 172, 84, 0.10); border-color: var(--primary); }
.lang-switch:active { transform: scale(0.97); }
.contact-mail { border-bottom-color: var(--outline); color: var(--on-bg); }
.contact-mail:hover { border-color: var(--primary); }
.contact-mail .arrow, .dl-btn .arrow, .card-head .arrow { color: var(--primary); }
.contact-card { border-radius: var(--shape-xl); border-color: rgba(255, 255, 255, 0.14); }
.dl-btn {
    background: rgba(38, 38, 38, 0.72); border: 1px solid var(--outline-variant); color: var(--on-bg);
    font-weight: 500; border-radius: 999px;
    transition: background-color 200ms var(--standard), color 200ms var(--standard), border-color 200ms var(--standard), transform 160ms var(--standard);
}
.dl-btn:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary); transform: none; }
.dl-btn:hover .arrow { color: var(--on-primary); }
.dl-btn:active { transform: scale(0.98); }
.dl-btn:focus-visible, .contact-btn:focus-visible, .lang-switch:focus-visible, .contact-mail:focus-visible, .nav-link:focus-visible {
    outline: 2px solid var(--tertiary); outline-offset: 3px;
}
.contact-footer { color: rgba(173, 170, 170, 0.7); border-top-color: rgba(255, 255, 255, 0.08); }
.contact-footer a:hover { color: var(--on-bg); }

/* Motion (M3 tokens): emphasized-decelerate for entrances, no blur, no ease-in */
.line-inner {
    filter: none;
    transition: transform 600ms var(--emphasized-decelerate), opacity 400ms var(--emphasized-decelerate);
}
.line.muted .line-inner { transition-delay: 60ms; }
.slide-desc, .benefit {
    transition: opacity 500ms var(--emphasized-decelerate), transform 500ms var(--emphasized-decelerate);
}
.contact-lead, .contact-mail, .contact-card {
    transition: opacity 500ms var(--emphasized-decelerate) 150ms, transform 500ms var(--emphasized-decelerate) 150ms;
}
.contact-mail { transition-delay: 220ms; }
.contact-card { transition-delay: 290ms; }
.slide-desc { transition-delay: 200ms; }
.benefit:nth-child(1) { transition-delay: 200ms; } .benefit:nth-child(2) { transition-delay: 250ms; }
.benefit:nth-child(3) { transition-delay: 300ms; } .benefit:nth-child(4) { transition-delay: 350ms; }

/* ============================================================================
   Brand lockup = the page title. Large above the subtitle in the hero, it slides up
   into the header as the visitor scrolls (updateBrandDock in app.js). It is one
   element, so what docks in the corner is exactly what was big: never two copies.
   ============================================================================ */
.brand-heading { margin: 0; font: inherit; }
.brand { transform-origin: 0 0; }
/* The room under the lockup lifts it above the subtitle, which stays where it is (slide 1 is anchored to the bottom). */
.brand-slot { width: calc(46vw - 60px); height: clamp(84px, 9.5vw, 150px); margin: 0 0 clamp(72px, 11vh, 116px) 60px; }
#slide-1 .slide-title { font-size: clamp(30px, 3.4vw, 52px); margin-bottom: 20px; }
/* Arrival: mark first, then the name, once the loader lets go. */
.brand-mark, .brand-text {
    transition: opacity 600ms var(--emphasized-decelerate) 200ms, transform 600ms var(--emphasized-decelerate) 200ms;
}
.brand-text { transition-delay: 290ms; }
body.is-loading .brand-mark, body.is-loading .brand-text { opacity: 0; transform: translateY(18px); }
@media (max-width: 900px), (max-aspect-ratio: 4/5) {
    .brand-slot { width: 100%; height: 96px; margin: 0 0 16px; }
    #slide-1 .slide-title { font-size: clamp(28px, 8.4vw, 44px); margin-bottom: 14px; }
}

/* ============================================================================
   Setups pager, left half of chapter 2. The picture of each setup is a glass object drawn by
   the scene (same glass as the logo, see createSetupGlass in app.js); the DOM holds the empty
   frame the object is centred in, the words, and one button per setup. The scroll drives it:
   app.js sets opacity and transform here every frame.
   ============================================================================ */
.pager {
    position: absolute; left: 60px; width: calc(46vw - 60px); top: 128px; bottom: 12%;
    display: flex; flex-direction: column; pointer-events: none; opacity: 0; visibility: hidden;
}
/* The picture is drawn by the scene (createSetupFigure in app.js): this is only the empty frame it stands in. */
.pager-stage { flex: 1 1 auto; min-height: 0; }
.pager-text { position: relative; flex: 0 0 auto; height: 156px; }
.pager-page { position: absolute; inset: 0 auto auto 0; width: 100%; max-width: 44ch; opacity: 0; }
.pager-eyebrow {
    display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
    font: 500 11px/1 'Inter', sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-surface-variant);
}
.pager-badge {
    padding: 5px 10px; border-radius: 999px; letter-spacing: 0.04em; text-transform: none;
    font: 600 12px/1 'Inter', sans-serif; color: var(--primary); background: rgba(255, 172, 84, 0.16);
}
.pager--env .pager-text { height: 196px; }
.pager-title {
    font: 500 clamp(28px, 2.7vw, 42px)/1.1 'Lexend', 'Inter', sans-serif; letter-spacing: 0;
    color: var(--on-bg); margin-bottom: 12px;
}
.pager-desc { font-size: 16px; line-height: 1.6; font-weight: 400; color: #D4D1D1; letter-spacing: 0; }
.pager-tabs { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pager-tab {
    font: 600 13px/1 'Inter', sans-serif; letter-spacing: 0.02em; color: var(--on-surface-variant);
    padding: 11px 16px; min-height: 40px; border-radius: 999px; cursor: pointer; pointer-events: none;
    background: transparent; border: 1px solid var(--outline-variant);
    transition: background-color 200ms var(--standard), color 200ms var(--standard), border-color 200ms var(--standard), transform 160ms var(--standard);
}
.pager.is-open .pager-tab { pointer-events: auto; }
.pager-tab[aria-current="true"] { background: rgba(255, 172, 84, 0.16); color: var(--primary); border-color: transparent; }
@media (hover: hover) and (pointer: fine) {
    .pager-tab[aria-current="false"]:hover { background: rgba(255, 255, 255, 0.08); color: var(--on-bg); }
}
.pager-tab:active { transform: scale(0.97); }
.pager-tab:focus-visible { outline: 2px solid var(--tertiary); outline-offset: 3px; }
@media (max-width: 900px), (max-aspect-ratio: 4/5) {
    .pager { left: 24px; right: 24px; width: auto; top: 300px; bottom: 24px; }
    .pager-text { height: 132px; }
    .pager--env .pager-text { height: 168px; }
    .pager-eyebrow { margin-bottom: 10px; }
    .pager-title { font-size: clamp(24px, 6.4vw, 32px); margin-bottom: 8px; }
    .pager-desc { font-size: 15px; line-height: 1.5; }
    .pager-tabs { margin-top: 14px; gap: 6px; }
    .pager-tab { padding: 10px 13px; font-size: 12.5px; }
}
@media (max-width: 400px) {
    .pager-tabs { gap: 5px; }
    .pager-tab { padding: 9px 10px; font-size: 12px; }
}

/* ============================================================================
   Reduced motion: the words still arrive, they just stop travelling.
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
    .brand-mark, .brand-text { transform: none !important; transition: opacity 0.3s ease-out; }
    .line-inner { transform: none; filter: none; transition: opacity 0.3s ease-out; }
    .benefit, .slide-desc { transform: none; transition: opacity 0.3s ease-out; }
}

/* ============================================================================
   No WebGL: the same words on a flat page, nothing hidden, nothing pinned.
   ============================================================================ */
.no-webgl body { overflow-y: auto; }
.no-webgl #webgl, .no-webgl .scroll-stage, .no-webgl .story-progress, .no-webgl .grid-horizontal-line, .no-webgl #loader { display: none; }
.no-webgl .cinematic-container { position: static; height: auto; padding: 0 24px; display: block; }
.no-webgl .main-header { position: sticky; top: 0; background: #000; }
.no-webgl .slide, .no-webgl #slide-1, .no-webgl #slide-2, .no-webgl #slide-3, .no-webgl #slide-4, .no-webgl #slide-5 {
    position: static; width: auto; max-width: 720px; margin: 72px auto; pointer-events: auto;
}
.no-webgl .line-inner, .no-webgl .benefit, .no-webgl .slide-desc {
    transform: none; opacity: 1; filter: none; transition: none;
}
.no-webgl .slide-title, .no-webgl #slide-1 .slide-title { margin-left: 0 !important; font-size: clamp(34px, 8vw, 64px); }
.no-webgl .brand-slot { display: none; }
.no-webgl .pager { position: static; width: auto; max-width: 720px; margin: 0 auto 72px; opacity: 1; visibility: visible; pointer-events: auto; }
.no-webgl .pager-stage, .no-webgl .pager-tabs { display: none; }
.no-webgl .pager-text { height: auto; display: grid; gap: 28px; }
.no-webgl .pager-page { position: static; opacity: 1; }
.no-webgl .slide .col-1 { margin-left: 0 !important; width: auto; max-width: none; }
.no-webgl .contact { padding: 72px 24px; }
.no-webgl .contact-inner { grid-template-columns: 1fr; }
