@import url("./fonts.css?v=202609081607");

* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }

:root {
    --navy: #050b16;
    --teal: #00d4aa;
    --blue: #4a9eff;
    --cyan: #7fdcff;
    --text: #f2f7ff;
    --soft: #c3cad8;
    --muted: #8d97ab;
    --line: rgba(255, 255, 255, 0.12);
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--navy);
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    cursor: none;
}

* { cursor: none !important; }

::-webkit-scrollbar { display: none; width: 0; }

#webgl {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    outline: none;
}

/* ---- Reticle cursor: dot, slow-spinning ticks, HUD readout, blend for contrast ---- */
.cursor-inner {
    position: fixed; top: 0; left: 0;
    width: 4px; height: 4px; background: #ffffff; border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; z-index: 9999; mix-blend-mode: difference;
    transition: width 0.25s, height 0.25s, border-radius 0.25s, opacity 0.3s;
}
.cursor-outer {
    position: fixed; top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; z-index: 9998; mix-blend-mode: difference;
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1), height 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.35s, opacity 0.3s;
}
.cursor-ticks { position: absolute; inset: -7px; animation: cursor-spin 16s linear infinite; }
.cursor-ticks span { position: absolute; background: #ffffff; }
.cursor-ticks span:nth-child(1) { left: 50%; top: 0; width: 1px; height: 6px; margin-left: -0.5px; }
.cursor-ticks span:nth-child(2) { left: 50%; bottom: 0; width: 1px; height: 6px; margin-left: -0.5px; }
.cursor-ticks span:nth-child(3) { top: 50%; left: 0; width: 6px; height: 1px; margin-top: -0.5px; }
.cursor-ticks span:nth-child(4) { top: 50%; right: 0; width: 6px; height: 1px; margin-top: -0.5px; }
@keyframes cursor-spin { to { transform: rotate(360deg); } }
.cursor-label {
    position: fixed; top: 0; left: 0; transform: translate(26px, 14px);
    font: 500 9px/1 'Space Grotesk', sans-serif; letter-spacing: 2px; white-space: nowrap;
    color: rgba(255, 255, 255, 0.55);
    pointer-events: none; z-index: 9997; mix-blend-mode: difference; transition: opacity 0.3s;
}
body.cursor-hover .cursor-outer { width: 58px; height: 58px; border-color: #ffffff; }
body.cursor-hover .cursor-ticks { animation-duration: 3s; }
body.cursor-hover .cursor-inner { width: 6px; height: 6px; }
body.cursor-text .cursor-inner { width: 1px; height: 18px; border-radius: 0; }
body.cursor-text .cursor-outer { opacity: 0.35; }
body.cursor-hidden .cursor-inner, body.cursor-hidden .cursor-outer, body.cursor-hidden .cursor-label { opacity: 0; }
@media (hover: none), (pointer: coarse) {
    .cursor-inner, .cursor-outer, .cursor-label { display: none; }
    * { cursor: auto !important; }
}

.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 {
    position: relative;
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; height: 70px; z-index: 20;
    pointer-events: auto;
}
/* Past the 3D stage the copy scrolls under the header: give it a smoked glass bar. */
.main-header::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: -60px; right: -60px; z-index: -1;
    background: rgba(5, 11, 22, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0; transition: opacity 0.5s;
}
body.is-reading .main-header::before { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #ffffff; text-decoration: none; }
.brand-mark { display: block; width: 26px; height: 26px; flex: 0 0 26px; color: var(--cyan); }
.brand-mark svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 6px rgba(127, 220, 255, 0.45)); }
.brand-text { font-size: 15px; font-weight: 500; letter-spacing: 0.02em; }
.brand-k { color: var(--teal); }
.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); }
.contact-btn { border-color: rgba(0, 212, 170, 0.55); }

/* Mobile menu: two-bar button, panel under the header */
.menu-btn {
    display: none; position: relative; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22); background: transparent;
}
.menu-btn span {
    position: absolute; left: 12px; right: 12px; height: 1px; background: #ffffff;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-nav {
    position: absolute; top: 70px; left: 0; right: 0; z-index: 19;
    display: flex; flex-direction: column; padding: 8px 24px 18px;
    background: rgba(5, 11, 22, 0.94);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
    transition: opacity 0.3s, transform 0.3s, visibility 0s linear 0.3s;
}
.mobile-nav.is-open {
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    transition: opacity 0.3s, transform 0.3s;
}
.mobile-nav a {
    padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--soft); text-decoration: none; font-size: 15px;
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a.is-accent { color: var(--teal); font-weight: 500; }
.header-progress { position: fixed; top: 70px; 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-1 .slide-eyebrow, #slide-1 .slide-actions, #slide-1 .trust-row { margin-left: 60px; }
.slide-eyebrow {
    display: flex; align-items: center; gap: 12px; margin-bottom: 26px;
    font: 500 11px/1.4 'Space Grotesk', sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: #cfd6e6;
}
.slide-eyebrow, .slide-actions, .trust-row {
    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);
}
.slide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; transition-delay: 0.42s; }
.trust-row {
    list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px;
    font-size: 12px; letter-spacing: 0.03em; color: #aeb6c4; transition-delay: 0.55s;
}
.trust-row li::before {
    content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 9px; border-radius: 50%;
    background: var(--teal); vertical-align: middle; box-shadow: 0 0 8px rgba(0, 212, 170, 0.6);
}
.slide.active .slide-eyebrow, .slide.active .slide-actions, .slide.active .trust-row { opacity: 1; transform: none; }

#slide-2 { left: calc(50vw + 20px); right: 60px; width: auto; bottom: 12%; }
#slide-2 .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 4: key figures */
.figures { display: flex; gap: clamp(28px, 4vw, 64px); margin: 28px 0 0; }
.figure {
    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);
}
.figure:nth-child(1) { transition-delay: 0.45s; }
.figure:nth-child(2) { transition-delay: 0.53s; }
.figure:nth-child(3) { transition-delay: 0.61s; }
.slide.active .figure { opacity: 1; transform: none; }
.figure dt { font-size: clamp(36px, 3.4vw, 52px); font-weight: 400; line-height: 1; letter-spacing: -0.03em; color: #f2f7ff; font-variant-numeric: tabular-nums; }
.figure dd { margin: 10px 0 0; font-size: 12px; line-height: 1.5; font-weight: 400; color: #aeb6c4; }

#slide-3 { left: 60px; width: min(620px, 46vw); bottom: 10%; }

#slide-4 { left: 60px; max-width: 640px; }
#slide-4 .slide-desc { max-width: 44ch; }

.slide-title {
    font-family: 'Space Grotesk', 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: 70px; left: 0; right: 0;
    width: 100%; height: 1px;
    background: rgba(255, 255, 255, 0.065);
    z-index: 5; pointer-events: none;
}

/* ---- Reading part: real sections that rise over the fixed 3D stage ---- */
.scroll-stage { height: 900vh; pointer-events: none; }
.grid-horizontal-line { transition: opacity 0.6s; }
body.is-reading .story-progress, body.is-reading .grid-horizontal-line { opacity: 0; }
.content, .contact, .site-footer, .modal, .slide { user-select: text; -webkit-user-select: text; }

.contact {
    position: relative; z-index: 8;
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 150px 60px 110px;
}
.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 'Space Grotesk', 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. */
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%);
}
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 'Space Grotesk', 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 'Space Grotesk', sans-serif; letter-spacing: 0.04em; color: #dfe6f3; }
.field-label em { font-style: normal; color: var(--teal); }
.field-label small { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: #8d97ab; margin-left: 8px; }
.field input, .field textarea, .field select {
    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 'Space Grotesk', sans-serif; transition: border-color 0.3s;
    user-select: text; -webkit-user-select: text;
}
.field textarea { min-height: 84px; resize: vertical; }
.field select {
    padding-right: 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23c3cad8' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 4px center;
}
.field select option { background: #0b1626; color: #ffffff; }
.field input::placeholder, .field textarea::placeholder { color: #8b94a6; }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--teal); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: 13px; color: #ffb4b4; min-height: 0; }
.form-status:empty { display: none; }
.form-success { display: none; padding: 30px 0 10px; outline: none; }
.form-success-title { font-size: 28px; font-weight: 400; letter-spacing: -0.02em; color: var(--teal); margin-bottom: 10px; }
.form-success p:last-child { color: var(--soft); font-weight: 300; }
.contact-card.is-sent .form-body { display: none; }
.contact-card.is-sent .form-success { display: block; }
.contact-card.is-sending .pill-btn { opacity: 0.6; }
.card-note a { color: inherit; }
.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 'Space Grotesk', 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); }
a.pill-btn { text-decoration: none; }
.pill-btn { white-space: nowrap; flex-shrink: 0; }
.pill-btn.is-primary { background: var(--teal); border-color: var(--teal); color: #03130f; }
.pill-btn.is-primary:hover { background: #ffffff; border-color: #ffffff; box-shadow: 0 10px 34px rgba(0, 212, 170, 0.35); }
.contact-sites { margin-top: 34px; font-size: 14px; color: var(--soft); font-weight: 300; }
.contact-sites a { color: inherit; }
.contact-legal {
    margin-top: 22px; max-width: 52ch; padding: 12px 16px; border-left: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px; line-height: 1.6; color: var(--muted);
}
@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; }
}

/* ============================================================================
   Content sections below the stage: editorial titles, liquid-glass cards.
   ============================================================================ */
.content { position: relative; z-index: 8; }
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
.cards > .reveal:nth-child(3n + 2), .pricing > .reveal:nth-child(2), .steps > .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards > .reveal:nth-child(3n), .pricing > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { transition-delay: 0.16s; }
.pricing > .reveal:nth-child(4), .steps > .reveal:nth-child(4) { transition-delay: 0.24s; }

.audience {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 36px;
    padding: 60px 60px 0;
}
.audience-label {
    font: 500 11px/1 'Space Grotesk', sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.audience-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; }
.audience-list li { font-size: 15px; font-weight: 300; color: var(--soft); }
.audience-list li + li::before { content: '·'; margin-right: 30px; color: rgba(255, 255, 255, 0.3); }

.section { position: relative; padding: 130px 60px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-head {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px 80px;
    align-items: end; margin-bottom: 64px;
}
.eyebrow {
    display: flex; align-items: center; gap: 14px; margin-bottom: 30px;
    font: 500 11px/1.4 'Space Grotesk', sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: #cfd6e6;
}
.eyebrow-dot { flex: 0 0 6px; }
.section-title {
    font-size: clamp(36px, 4.4vw, 68px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 400; color: var(--text);
}
.section-title .line { display: block; overflow: hidden; padding: 0.06em 0 0.14em; margin: -0.06em 0 -0.14em; }
.section-title .line.muted { color: #b9c1d1; }
.section-title .line-inner { transition-delay: 0.05s; }
.section-title .line.muted .line-inner { transition-delay: 0.14s; }
.reveal.is-in .line-inner { transform: none; opacity: 1; filter: blur(0); }
.section-lead { font-size: 16px; line-height: 1.7; font-weight: 300; color: var(--soft); }
.section-title + .section-lead { margin-top: 26px; max-width: 46ch; }

/* Liquid glass, CSS edition: a frosted slab with a specular top edge */
.glass {
    position: relative; border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018) 60%);
    -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 24px 60px rgba(0, 0, 0, 0.32);
}
.cards { display: grid; gap: 18px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 30px 28px 28px; }
.card:hover, .use:hover, .feat:hover { border-color: rgba(127, 220, 255, 0.35); }
.card-icon, .feat-icon {
    display: grid; place-items: center; flex: 0 0 auto;
    width: 42px; height: 42px; border-radius: 12px; margin-bottom: 22px;
    border: 1px solid rgba(127, 220, 255, 0.35); color: var(--cyan);
    background: radial-gradient(circle at 30% 20%, rgba(127, 220, 255, 0.18), rgba(127, 220, 255, 0.02));
}
.card-icon svg, .feat-icon svg {
    width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6;
    stroke-linecap: round; stroke-linejoin: round;
}
.card h3, .use h3, .feat h3, .steps h3 { font-size: 19px; line-height: 1.3; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.card p, .use p, .feat p, .steps p { font-size: 14.5px; line-height: 1.65; font-weight: 300; color: var(--soft); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tags li {
    padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 11px; letter-spacing: 0.04em; color: #aeb8c9;
}

.use { display: flex; gap: 20px; padding: 26px 26px 24px; }
.use .card-icon { margin-bottom: 0; }
.feat { padding: 26px 26px 24px; }
.feat h3 { display: flex; align-items: center; gap: 14px; }
.feat-icon { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 0; }
.feat-icon svg { width: 17px; height: 17px; }

/* Application: a glass phone and four steps */
.app-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; align-items: center; }
.phone { width: min(300px, 100%); margin: 0 auto; padding: 12px; border-radius: 44px; }
.phone-screen {
    display: flex; flex-direction: column; gap: 10px; min-height: 540px; padding: 0 16px 20px;
    border-radius: 34px; background: rgba(4, 9, 18, 0.82); border: 1px solid rgba(255, 255, 255, 0.08);
}
.phone-notch { width: 90px; height: 22px; margin: 0 auto 6px; border-radius: 0 0 14px 14px; background: rgba(255, 255, 255, 0.07); }
.phone-top { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 11px; color: var(--muted); }
.bubble { max-width: 86%; padding: 10px 12px; border-radius: 14px; font-size: 12px; line-height: 1.45; }
.bubble.bot { background: rgba(74, 158, 255, 0.14); color: var(--soft); border-bottom-left-radius: 4px; }
.bubble.user { margin-left: auto; max-width: 76%; background: rgba(0, 212, 170, 0.16); color: var(--text); border-bottom-right-radius: 4px; }
.bubble strong { font-weight: 500; color: var(--text); }
.steps { list-style: none; display: grid; gap: 26px; margin-top: 46px; }
.steps li { display: flex; gap: 22px; align-items: flex-start; }
.step-n {
    flex: 0 0 auto; padding-top: 3px; min-width: 30px;
    font-size: 12px; letter-spacing: 0.12em; color: var(--teal); font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: 6px; font-size: 18px; }

/* Pricing */
.period-toggle {
    display: flex; width: max-content; gap: 4px; margin: 0 0 34px; padding: 4px;
    border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
}
.period-toggle button {
    padding: 10px 20px; border: 0; border-radius: 999px; background: transparent; color: var(--soft);
    font: 500 13px/1 'Space Grotesk', sans-serif; letter-spacing: 0.02em; transition: background 0.3s, color 0.3s;
}
.period-toggle button.is-on { background: #ffffff; color: #04080f; }
.period-toggle .accent { color: var(--teal); margin-left: 4px; }
.period-toggle button.is-on .accent { color: #00876c; }
.pricing { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px 26px 26px; }
.plan.is-featured {
    border-color: rgba(0, 212, 170, 0.55);
    background: linear-gradient(170deg, rgba(0, 212, 170, 0.14), rgba(255, 255, 255, 0.02) 55%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(0, 212, 170, 0.18), 0 30px 70px rgba(0, 0, 0, 0.4);
}
.plan-badge {
    position: absolute; top: -12px; left: 26px; padding: 5px 12px; border-radius: 999px;
    background: var(--teal); color: #03130f; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.plan-name { font-size: 11px; letter-spacing: 0.22em; color: var(--teal); font-weight: 500; margin-bottom: 14px; }
.plan h3 { font-size: 21px; font-weight: 500; line-height: 1.25; color: var(--text); margin-bottom: 8px; min-height: 2.5em; }
.plan-desc { font-size: 13.5px; line-height: 1.55; color: var(--soft); font-weight: 300; min-height: 42px; margin-bottom: 22px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; }
.price-value { font-size: 46px; line-height: 1; font-weight: 400; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.price-unit { font-size: 13px; color: var(--muted); margin-left: 4px; }
.price-period { min-height: 18px; margin: 10px 0 4px; font-size: 12.5px; color: var(--teal); }
.plan-install { font-size: 12.5px; color: var(--cyan); margin-bottom: 20px; }
.plan-list { list-style: none; display: grid; gap: 10px; flex-grow: 1; margin-bottom: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.plan-list li { position: relative; padding-left: 22px; font-size: 13.5px; line-height: 1.45; color: var(--soft); font-weight: 300; }
.plan-list li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 600; }
.plan .pill-btn { justify-content: center; width: 100%; padding: 14px 18px; }
.pricing-note { margin-top: 30px; font-size: 13px; line-height: 1.65; color: var(--muted); text-align: center; }

/* Testimonials */
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 26px; padding: 32px 28px 28px; }
.quote blockquote { position: relative; font-size: 16px; line-height: 1.65; font-weight: 300; color: var(--text); }
.quote blockquote::before {
    content: '“'; display: block; height: 34px; font-size: 54px; line-height: 1; color: var(--cyan); opacity: 0.7;
}
.quote figcaption strong { display: block; font-size: 14px; font-weight: 500; color: var(--text); }
.quote figcaption span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: 20px; }
.faq-item summary {
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    padding: 22px 24px; list-style: none; font-size: 16px; font-weight: 400; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: 0 0 14px; width: 14px; height: 14px; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--cyan); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 22px; font-size: 14.5px; line-height: 1.7; color: var(--soft); font-weight: 300; }

/* Footer */
.site-footer {
    position: relative; z-index: 8; padding: 80px 60px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(3, 7, 14, 0.2), rgba(3, 7, 14, 0.85));
}
.footer-top {
    max-width: 1280px; margin: 0 auto 56px;
    display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.8fr)); gap: 40px;
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { max-width: 40ch; font-size: 13.5px; line-height: 1.65; font-weight: 300; color: var(--soft); }
.footer-brand .footer-owner { margin-top: 12px; font-size: 12px; color: var(--muted); }
.footer-col h3 {
    margin-bottom: 18px; font: 500 11px/1 'Space Grotesk', sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: #cfd6e6;
}
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a, .footer-up { font-size: 13.5px; color: var(--soft); text-decoration: none; font-weight: 300; transition: color 0.3s; }
.footer-col a:hover, .footer-up:hover { color: #ffffff; }
.footer-bottom {
    max-width: 1280px; margin: 0 auto; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
    font-size: 12px; color: var(--muted);
}

/* Legal notices */
.modal {
    position: fixed; inset: 0; z-index: 9000; display: none; place-items: center; padding: 20px;
    background: rgba(3, 7, 14, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.modal.is-open, .modal:target { display: grid; }
.modal-box {
    width: 100%; max-width: 640px; max-height: 80vh; overflow-y: auto; padding: 38px 36px 30px;
    background: linear-gradient(160deg, rgba(20, 32, 52, 0.96), rgba(8, 14, 26, 0.96));
}
.modal-box h3 { font-size: 26px; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 18px; }
.modal-box p { font-size: 14.5px; line-height: 1.7; color: var(--soft); font-weight: 300; margin-bottom: 12px; }
.modal-box strong { color: var(--text); font-weight: 500; }
.modal-close {
    position: absolute; top: 14px; right: 18px; font-size: 28px; line-height: 1; color: var(--muted); text-decoration: none;
}
.modal-close:hover { color: #ffffff; }
body.modal-open { overflow: hidden; }

@media (max-width: 1100px) {
    .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
    .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .section { padding: 96px 24px; }
    .audience { padding: 48px 24px 0; }
    .section-head { grid-template-columns: 1fr; gap: 22px; margin-bottom: 44px; }
    .cards-3, .cards-2, .pricing { grid-template-columns: 1fr; }
    .plan h3 { min-height: 0; }
    .plan.is-featured { order: -1; }
    .app-grid, .faq-grid { grid-template-columns: 1fr; gap: 56px; }
    .app-grid .phone { order: 2; }
    .site-footer { padding: 64px 24px 28px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .audience-list li + li::before { margin-right: 14px; }
    .audience-list { gap: 8px 14px; }
    .use { flex-direction: column; gap: 16px; }
    .card, .use, .feat, .plan, .quote { padding-left: 22px; padding-right: 22px; }
    .modal-box { padding: 32px 22px 22px; }
}

/* ============================================================================
   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 { left: 24px; right: 24px; width: auto; max-width: none; bottom: auto; }
    #slide-1, #slide-3 { top: 98px; bottom: auto; }
    #slide-2, #slide-4 { bottom: 6%; top: 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 .slide-eyebrow, #slide-1 .trust-row { display: none; }
    #slide-1 .slide-actions { margin-left: 0; margin-top: 20px; gap: 10px; }
    #slide-1 .pill-btn { padding: 13px 18px; font-size: 12.5px; gap: 12px; }
    #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; }
    .figures { gap: 18px; margin-top: 20px; }
    .figure dt { font-size: clamp(26px, 8vw, 34px); white-space: nowrap; }
    .figure dd { font-size: 11px; }
    #slide-3, #slide-4 { 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 */
@media (max-width: 960px) {
    .header-nav { display: none; }
    .brand-text { white-space: nowrap; }
    .contact-btn { padding: 8px 14px; font-size: 11px; }
    .menu-btn { display: block; }
    .header-actions { gap: 12px; }
}
@media (max-width: 480px) { .contact-btn { display: none; } }
@media (min-width: 961px) { .mobile-nav { display: none; } }

/* ---- No WebGL 2: one screen of hero, then the page as plain HTML ---- */
body.no-webgl { background: radial-gradient(ellipse 70% 55% at 75% 25%, rgba(74, 158, 255, 0.16), transparent),
                            radial-gradient(ellipse 50% 40% at 20% 80%, rgba(0, 212, 170, 0.12), transparent), var(--navy); }
body.no-webgl #webgl, body.no-webgl .story-progress,
body.no-webgl .cursor-inner, body.no-webgl .cursor-outer, body.no-webgl .cursor-label { display: none; }
body.no-webgl, body.no-webgl * { cursor: auto !important; }
body.no-webgl .scroll-stage { height: 100vh; }
body.no-webgl #slide-1 .slide-desc, body.no-webgl #slide-1 .slide-eyebrow,
body.no-webgl #slide-1 .slide-actions, body.no-webgl #slide-1 .trust-row { opacity: 1; transform: none; }
body.no-webgl #slide-1 { pointer-events: auto; transition: opacity 0.5s; }
body.no-webgl.is-reading .slide { opacity: 0; visibility: hidden; }

/* ---- Preloader ---- */
.loader {
    position: fixed; inset: 0; z-index: 9990; background: var(--navy);
    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; }
