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

* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #000000;
    -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 {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; height: 70px; z-index: 20;
    pointer-events: auto;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: #ffffff; text-decoration: none; }
.brand-mark { display: block; width: 18px; height: 18px; flex: 0 0 18px; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-text { font-size: 13px; font-weight: 500; letter-spacing: 0.06em; }
.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: 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-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;
}

/* ---- Contact chapter: a real section that rises over the fixed 3D stage ---- */
.scroll-stage { height: 900vh; pointer-events: none; }
.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 '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%);
}

/* Supplemental 3D glassmorphism: a pointer-reactive prism sheen and a subtle
   perspective tilt keep the contact card feeling optically alive without
   competing with the main WebGL monogram. */
.contact-card {
    --mx: 18%; --my: 0%; --rx: 0deg; --ry: 0deg;
    overflow: hidden; isolation: isolate; transform-style: preserve-3d;
}
.contact.is-visible .contact-card {
    transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
}
.contact-card::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    padding: 1px; border-radius: inherit;
    background: radial-gradient(70% 55% at var(--mx) var(--my), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 64%),
                linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.05) 32%, rgba(185, 133, 25, 0.32) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0.9; transition: opacity 0.35s ease;
}
.contact-card::after {
    content: ''; position: absolute; inset: 1px; z-index: 0; pointer-events: none; border-radius: inherit;
    background: radial-gradient(110% 90% at var(--mx) var(--my), rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0) 48%),
                linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.012) 55%, rgba(185, 133, 25, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -20px 50px rgba(4, 8, 20, 0.2);
}
body.has-glass-card .contact-card {
    border-color: rgba(255, 255, 255, 0.24);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025) 54%, rgba(185, 133, 25, 0.06));
    -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52), 0 0 70px rgba(185, 133, 25, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
body.has-glass-card .contact-card::before {
    padding: 1px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; background: radial-gradient(70% 55% at var(--mx) var(--my), rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0) 64%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.07) 32%, rgba(185, 133, 25, 0.44) 100%);
}
body.has-glass-card .contact-card::after {
    inset: 1px; background: radial-gradient(110% 90% at var(--mx) var(--my), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.012) 55%, rgba(185, 133, 25, 0.10));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -20px 50px rgba(4, 8, 20, 0.22);
}
.contact-card > * { position: relative; z-index: 1; transform: translateZ(18px); }
.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: #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 'Space Grotesk', 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 '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); }
@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 'Space Grotesk', 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 { 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 .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: 22px; margin-top: 20px; }
    .figure dt { font-size: 34px; }
    .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: 820px) {
    .header-nav { display: none; }
    .brand-text { white-space: nowrap; }
    .contact-btn { padding: 8px 14px; font-size: 11px; }
}
@media (max-width: 420px) { .header-counter { display: none; } }

/* ---- 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; }

@media (prefers-reduced-motion: reduce) {
    .contact.is-visible .contact-card { transform: none; }
    .contact-card { transition: opacity 0.2s ease; }
}


/* ============================================================================
   JNEHO / AKER FUSION
   Editorial gallery language over the existing Premium 3D Glass engine.
   The 3D monogram remains the hero image; Aker contributes the paper/charcoal
   rhythm, monumental light type, hairlines and one terracotta accent.
   ============================================================================ */
:root {
    --paper: #ffffff;
    --ink: #080808;
    --char: #1c1c1c;
    --midnight: #070707;
    --mist: #e5e4e4;
    --smoke: #8d8d8d;
    --pewter: #666666;
    --ember: #b75928;
}

body { background: var(--paper); color: var(--paper); }
#webgl { transition: opacity 0.8s ease, filter 0.8s ease; }
body.contact-open #webgl { opacity: 0.24; filter: grayscale(1) contrast(0.82); }
.cinematic-container { padding: 0 52px 36px; }
.main-header { height: 76px; }
.brand { gap: 10px; }
.brand-text { font-weight: 400; letter-spacing: 0.16em; font-size: 12px; }
.brand-mark { width: 22px; height: 22px; }
.header-nav { gap: 24px; }
.nav-link { font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: rgba(255,255,255,0.50); }
.nav-link.is-active { color: #fff; }
.header-actions { gap: 18px; }
.header-counter { font-size: 10px; letter-spacing: 0.16em; }
.contact-btn { background: var(--char); border-color: var(--char); border-radius: 80px; padding: 10px 17px; font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; }
.contact-btn:hover { background: var(--ember); border-color: var(--ember); }
.header-progress { top: 76px; }
.header-progress span { background: var(--ember); }
.grid-horizontal-line { top: 76px; background: rgba(255,255,255,0.11); }

.gallery-wordmark {
    position: absolute; left: 48px; bottom: 2.5vh; z-index: 0;
    color: rgba(255,255,255,0.10); font-size: clamp(90px, 18vw, 280px);
    font-weight: 300; line-height: 0.75; letter-spacing: -0.075em; pointer-events: none;
    white-space: nowrap;
}
.gallery-index {
    position: fixed; left: 52px; top: 50%; z-index: 12; transform: translateY(-50%);
    display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,0.46);
    font-size: 9px; letter-spacing: 0.16em; writing-mode: vertical-rl;
}
.gallery-index span:first-child { color: var(--ember); }
.gallery-index i { width: 1px; height: 48px; background: rgba(255,255,255,0.28); display: block; }

.slide { z-index: 2; }
.slide::before {
    content: ''; position: absolute; left: 0; top: -25px; width: 34px; height: 1px;
    background: var(--ember); opacity: .9;
}
.slide-kicker {
    margin-bottom: 19px; color: rgba(255,255,255,0.55); font-size: 10px;
    line-height: 1; letter-spacing: .18em; text-transform: uppercase;
}
#slide-1 { left: 7.5vw; bottom: 9%; width: min(72vw, 1040px); }
#slide-1 .slide-title { margin-left: 0; }
#slide-1 .col-1 { margin-left: 0; width: min(390px, 38vw); max-width: 390px; }
#slide-2 { left: 53vw; right: 7.5vw; bottom: 10%; }
#slide-3 { left: 7.5vw; width: min(560px, 45vw); bottom: 11%; }
#slide-4 { left: 7.5vw; bottom: 11%; }
.slide-title {
    font-size: clamp(58px, 8.8vw, 148px); line-height: .82; font-weight: 300;
    letter-spacing: -.065em; margin-bottom: 30px;
}
.slide-title .line.muted { color: rgba(255,255,255,0.48); }
.slide-desc { font-size: 15px; line-height: 1.55; letter-spacing: .01em; color: rgba(255,255,255,0.78); }
#slide-1 .slide-desc { font-family: Georgia, 'Times New Roman', serif; font-size: 16px; line-height: 1.55; letter-spacing: .01em; }
.benefits { gap: 20px 34px; margin-top: 16px; }
.benefit { gap: 12px; }
.benefit-icon { border-color: rgba(183,89,40,.74); color: var(--ember); border-radius: 3px; }
.benefit p { font-size: 13px; color: rgba(255,255,255,.70); }
.figures { gap: clamp(32px, 5vw, 80px); margin-top: 34px; }
.figure dt { font-weight: 300; }
.figure dd { color: rgba(255,255,255,.58); }
.story-progress { right: 34px; }
.story-dash-fill { background: var(--ember); }

/* Contact is the Aker paper room: the glass slab is the only dark elevated object. */
.contact {
    min-height: 100vh; padding: 150px 7.5vw 92px; color: var(--ink);
    background: rgba(255,255,255,.91); border-top: 1px solid rgba(0,0,0,.12);
}
.contact::before {
    content: 'JNEHO / CONTACT'; position: absolute; top: 42px; left: 7.5vw;
    color: rgba(0,0,0,.17); font-size: 10px; letter-spacing: .18em;
}
.contact-index { position: absolute; top: 42px; right: 7.5vw; margin: 0; color: var(--ember); font-size: 10px; letter-spacing: .16em; }
.contact-inner { max-width: 1200px; grid-template-columns: minmax(280px, 1fr) minmax(420px, 600px); gap: clamp(55px, 8vw, 140px); }
.contact-eyebrow { color: var(--pewter); margin-bottom: 34px; letter-spacing: .18em; }
.eyebrow-dot { width: 5px; height: 5px; background: var(--ember); box-shadow: none; }
.contact-title { color: var(--ink); font-weight: 300; font-size: clamp(58px, 7vw, 110px); line-height: .84; letter-spacing: -.065em; margin-bottom: 34px; }
.contact-title .line.muted { color: var(--smoke); }
.contact-lead { color: var(--pewter); font-family: Georgia, 'Times New Roman', serif; font-size: 17px; line-height: 1.45; margin-bottom: 42px; }
.contact-mail { color: var(--ink); border-color: rgba(0,0,0,.30); font-size: 16px; gap: 22px; }
.contact-mail:hover { color: var(--ember); border-color: var(--ember); }
.contact-card { border-radius: 8px; }
body.has-glass-card .contact-card { border-color: rgba(255,255,255,.32); background: rgba(28,28,28,.80); box-shadow: none; }
.card-head { color: rgba(255,255,255,.76); }
.field-label { color: rgba(255,255,255,.78); }
.field input, .field textarea { border-color: rgba(255,255,255,.24); }
.card-note { color: rgba(255,255,255,.50); }
.pill-btn { background: var(--ember); border-color: var(--ember); border-radius: 80px; }
.pill-btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.contact-footer { left: 7.5vw; right: 7.5vw; color: rgba(0,0,0,.46); border-color: rgba(0,0,0,.14); }
.contact-footer a:hover { color: var(--ember); }
.footer-spec { color: rgba(0,0,0,.30); }

.loader { background: var(--paper); }
.loader-value { color: var(--ink); font-weight: 300; }
.loader-unit, .loader-hint { color: var(--smoke); }
.loader-bar { background: var(--mist); }
.loader-bar span { background: var(--ember); }

@media (max-width: 1000px) {
    .contact { padding-left: 24px; padding-right: 24px; }
    .contact::before { left: 24px; }
    .contact-index { right: 24px; }
    .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 900px), (max-aspect-ratio: 4/5) {
    .cinematic-container { padding: 0 24px 24px; }
    .gallery-wordmark { left: 24px; bottom: 4%; font-size: clamp(70px, 22vw, 150px); }
    .gallery-index { left: 12px; }
    .slide-kicker { margin-bottom: 14px; font-size: 9px; }
    .slide::before { top: -17px; }
    #slide-1 { left: 24px; width: auto; }
    #slide-1 .col-1 { width: min(82vw, 350px); max-width: 350px; }
    .slide-title { font-size: clamp(48px, 13.6vw, 88px); margin-bottom: 20px; }
    #slide-2, #slide-3, #slide-4 { left: 24px; right: 24px; }
    .contact-title { font-size: clamp(52px, 14vw, 88px); }
    .contact { padding-top: 120px; }
}
@media (max-width: 820px) {
    .gallery-index { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    #webgl { transition: none; }
}

/* The paper room may remain optically translucent to the WebGL object, but its
   floating chapter copy must leave the exhibition wall when Contact opens. */
body.contact-open .cinematic-container .slide,
body.contact-open .cinematic-container .gallery-wordmark,
body.contact-open .cinematic-container .gallery-index {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
}
.contact { background: rgba(255,255,255,.96); }

/* One exhibition label at a time: children still animate in, while the parent
   keeps inactive chapters from contaminating the composition. */
.cinematic-container .slide {
    opacity: 0; visibility: hidden;
    transition: opacity .75s ease, visibility 0s linear .75s;
}
.cinematic-container .slide.active {
    opacity: 1; visibility: visible;
    transition: opacity .75s ease, visibility 0s linear 0s;
}


/* JNEHO signature palette: midnight blue as the stage, gold as the value signal. */
:root {
    --navy: #071a35;
    --navy-deep: #041025;
    --navy-mid: #0d3761;
    --gold: #d7a83d;
    --gold-bright: #f0c85d;
    --ember: var(--gold);
    --midnight: var(--navy-deep);
    --char: #0b2342;
    --iron: #12385d;
}
html, body { background-color: var(--navy); }
body { background: var(--navy); }
#webgl { background: var(--navy); }
.contact-btn { background: var(--navy-mid); border-color: rgba(215,168,61,.65); color: #fff; }
.contact-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.header-progress span, .story-dash-fill { background: var(--gold); }
.grid-horizontal-line { background: rgba(215,168,61,.20); }
.gallery-index span:first-child, .contact-index { color: var(--gold-bright); }
.slide::before { background: var(--gold); }
.benefit-icon { border-color: rgba(215,168,61,.78); color: var(--gold-bright); }
.contact { border-top-color: rgba(215,168,61,.30); }
.eyebrow-dot { background: var(--gold); }
.pill-btn { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.pill-btn:hover { background: #fff; color: var(--navy-deep); border-color: #fff; }
body.has-glass-card .contact-card {
    background: rgba(7,26,53,.86);
    border-color: rgba(240,200,93,.46);
    box-shadow: 0 0 70px rgba(13,55,97,.24), inset 0 1px 0 rgba(255,255,255,.18);
}
body.has-glass-card .contact-card::before {
    background: radial-gradient(70% 55% at var(--mx) var(--my), rgba(240,200,93,.30), rgba(255,255,255,0) 64%),
    linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,.08) 32%, rgba(215,168,61,.55) 100%);
}
body.has-glass-card .contact-card::after {
    background: radial-gradient(110% 90% at var(--mx) var(--my), rgba(240,200,93,.15), rgba(255,255,255,0) 48%),
    linear-gradient(145deg, rgba(13,55,97,.38), rgba(4,16,37,.16) 55%, rgba(215,168,61,.12));
}
.loader { background: var(--navy-deep); }
.loader-bar span { background: var(--gold); }

/* ============================================================================
   QUOTE ESTIMATOR / CRM / WHATSAPP
   Commercial layer: same gallery language, with navy glass and JNEHO gold.
   ============================================================================ */
.quote-panel {
    position: relative; z-index: 3; width: min(1200px, 100%); margin: 96px auto 110px;
    display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(40px, 8vw, 120px);
    padding-top: 38px; border-top: 1px solid rgba(215,168,61,.34);
}
.quote-intro { max-width: 380px; }
.quote-kicker, .crm-kicker { margin: 0 0 22px; color: var(--gold-bright); font: 500 10px/1 'Space Grotesk',sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.quote-kicker { display: flex; align-items: center; gap: 10px; }
.quote-intro h3 { margin: 0 0 22px; color: var(--ink); font-size: clamp(52px, 6vw, 88px); font-weight: 300; line-height: .84; letter-spacing: -.065em; }
.quote-intro h3 span { color: #8c8c8c; }
.quote-intro p:not(.quote-kicker) { margin: 0; color: var(--pewter); font: 16px/1.55 Georgia,serif; }
.quote-trust { display: flex; align-items: center; gap: 12px; margin-top: 28px; color: rgba(0,0,0,.48); font: 10px/1 'Space Grotesk',sans-serif; letter-spacing: .10em; text-transform: uppercase; }
.quote-trust i { width: 24px; height: 1px; background: var(--gold); }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; align-content: start; padding: 28px; border: 1px solid rgba(215,168,61,.34); border-radius: 12px; background: linear-gradient(145deg, rgba(7,26,53,.96), rgba(13,55,97,.90)); box-shadow: 0 24px 60px rgba(7,26,53,.16); }
.quote-field { display: flex; flex-direction: column; gap: 9px; }
.quote-field-wide { grid-column: 1 / -1; }
.quote-field label, .quote-options legend { color: rgba(255,255,255,.72); font: 500 11px/1 'Space Grotesk',sans-serif; letter-spacing: .10em; text-transform: uppercase; }
.quote-field select, .quote-capture input { width: 100%; border: 1px solid rgba(255,255,255,.22); border-radius: 4px; padding: 13px 14px; color: #fff; background: rgba(255,255,255,.07); font: 400 14px/1.2 'Space Grotesk',sans-serif; outline: none; }
.quote-field select:focus, .quote-capture input:focus { border-color: var(--gold-bright); }
.quote-field select option { color: #0b2342; }
.quote-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; border: 0; padding: 0; margin: 2px 0 0; }
.quote-options legend { grid-column: 1 / -1; margin-bottom: 2px; }
.quote-options label { display: flex; align-items: center; gap: 9px; padding: 10px 0; color: rgba(255,255,255,.80); font: 13px/1.2 'Space Grotesk',sans-serif; cursor: pointer; }
.quote-options input { accent-color: var(--gold); }
.quote-options strong { margin-left: auto; color: var(--gold-bright); font-size: 11px; font-weight: 500; }
.quote-capture { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 18px; padding: 20px 0 8px; border-top: 1px solid rgba(255,255,255,.18); }
.quote-total span { color: rgba(255,255,255,.58); font: 11px/1 'Space Grotesk',sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.quote-total strong { color: var(--gold-bright); font: 300 clamp(28px, 4vw, 46px)/1 'Space Grotesk',sans-serif; letter-spacing: -.04em; }
.quote-total small { flex-basis: 100%; color: rgba(255,255,255,.46); font: 11px/1.4 'Space Grotesk',sans-serif; }
.quote-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.quote-actions .pill-btn { padding: 14px 20px; }
.quote-whatsapp { color: var(--gold-bright); font: 12px/1.4 'Space Grotesk',sans-serif; text-decoration: none; border-bottom: 1px solid rgba(240,200,93,.45); }
.quote-whatsapp:hover { color: #fff; border-color: #fff; }
.quote-feedback { grid-column: 1 / -1; min-height: 18px; margin: 0; color: var(--gold-bright); font: 12px/1.4 'Space Grotesk',sans-serif; }
.crm-launcher { border: 0; padding: 0; color: inherit; background: transparent; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.crm-launcher:hover { color: var(--gold); }
.whatsapp-bubble { position: fixed; right: 26px; bottom: 26px; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid rgba(240,200,93,.65); border-radius: 999px; color: #fff; background: rgba(7,26,53,.92); box-shadow: 0 12px 35px rgba(0,0,0,.26), 0 0 24px rgba(215,168,61,.14); backdrop-filter: blur(16px); text-decoration: none; transition: transform .3s, background .3s, border-color .3s; }
.whatsapp-bubble:hover { transform: translateY(-4px); color: var(--navy-deep); background: var(--gold); border-color: var(--gold); }
.whatsapp-glyph { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid currentColor; border-radius: 50%; font-size: 17px; line-height: 1; }
.whatsapp-label { font: 500 11px/1 'Space Grotesk',sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.crm-scrim { position: fixed; inset: 0; z-index: 79; background: rgba(2,8,18,.48); backdrop-filter: blur(5px); }
.crm-drawer { position: fixed; top: 18px; right: 18px; bottom: 18px; z-index: 80; width: min(520px, calc(100vw - 36px)); overflow: auto; padding: 30px; color: #fff; border: 1px solid rgba(240,200,93,.42); border-radius: 16px; background: linear-gradient(145deg, rgba(7,26,53,.98), rgba(13,55,97,.97)); box-shadow: 0 30px 100px rgba(0,0,0,.44); }
.crm-drawer[hidden], .crm-scrim[hidden] { display: none; }
.crm-head { display: flex; justify-content: space-between; align-items: start; border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 22px; }
.crm-head h2 { margin: 0; font-size: clamp(42px, 6vw, 72px); font-weight: 300; line-height: .82; letter-spacing: -.06em; }
.crm-close { color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; width: 34px; height: 34px; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; }
.crm-close:hover { color: var(--navy-deep); background: var(--gold); border-color: var(--gold); }
.crm-warning { margin: 18px 0; padding: 12px; color: rgba(255,255,255,.64); border-left: 2px solid var(--gold); background: rgba(255,255,255,.05); font: 12px/1.5 'Space Grotesk',sans-serif; }
.crm-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; color: var(--gold-bright); font: 11px/1 'Space Grotesk',sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.crm-toolbar select { padding: 8px 10px; color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 4px; background: rgba(255,255,255,.07); }
.crm-toolbar option { color: #0b2342; }
.crm-list { display: grid; gap: 10px; }
.crm-empty { padding: 35px 15px; color: rgba(255,255,255,.54); text-align: center; font: 14px/1.5 Georgia,serif; border: 1px dashed rgba(255,255,255,.18); }
.crm-lead { padding: 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.055); }
.crm-lead-top, .crm-lead-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.crm-lead-name { margin: 0; font: 500 15px/1.2 'Space Grotesk',sans-serif; }
.crm-lead-email { margin: 6px 0 0; color: rgba(255,255,255,.56); font: 11px/1.2 'Space Grotesk',sans-serif; }
.crm-lead-meta { margin-top: 14px; color: rgba(255,255,255,.52); font: 10px/1.3 'Space Grotesk',sans-serif; }
.crm-lead-meta strong { color: var(--gold-bright); font-size: 13px; font-weight: 500; }
.crm-lead select, .crm-lead input[type=date] { max-width: 140px; padding: 7px; color: #fff; border: 1px solid rgba(255,255,255,.20); border-radius: 4px; background: rgba(255,255,255,.08); font: 11px 'Space Grotesk',sans-serif; }
.crm-lead select option { color: #0b2342; }
.crm-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.42); font: 10px 'Space Grotesk',sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.crm-export { padding: 9px 12px; color: var(--navy-deep); border: 1px solid var(--gold); border-radius: 999px; background: var(--gold); font: 500 10px 'Space Grotesk',sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.crm-export:hover { background: #fff; border-color: #fff; }
@media (max-width: 900px) {
    .quote-panel { grid-template-columns: 1fr; margin-top: 70px; gap: 38px; }
    .quote-intro { max-width: 520px; }
}
@media (max-width: 560px) {
    .quote-form { grid-template-columns: 1fr; padding: 20px; }
    .quote-field-wide { grid-column: auto; }
    .quote-options { grid-template-columns: 1fr; }
    .quote-capture { grid-template-columns: 1fr; }
    .quote-actions { align-items: flex-start; flex-direction: column; }
    .whatsapp-bubble { right: 16px; bottom: 16px; padding: 12px; }
    .whatsapp-label { display: none; }
    .crm-drawer { top: 10px; right: 10px; bottom: 10px; width: calc(100vw - 20px); padding: 22px; }
}
