@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;
}

/* ---- Drone cursor: a quadcopter that trails the pointer and banks into its moves,
   precise dot on the pointer, altitude 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: 46px; height: 46px;
    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),
                opacity 0.3s;
}
.cursor-drone { display: block; width: 100%; height: 100%; transition: transform 0.12s linear; }
.cursor-drone svg { display: block; width: 100%; height: 100%; overflow: visible; }
.drone-prop { transform-box: fill-box; transform-origin: center; animation: drone-spin 0.45s linear infinite; }
.drone-prop.ccw { animation-direction: reverse; }
@keyframes drone-spin { to { transform: rotate(360deg); } }
.cursor-label {
    position: fixed; top: 0; left: 0; transform: translate(32px, 18px);
    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; }
body.cursor-hover .drone-prop { animation-duration: 0.2s; }
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: the process, as a timeline whose rail draws itself as the steps rise */
.timeline { list-style: none; margin: 26px 0 0; padding: 0; position: relative; display: grid; gap: 14px; }
.timeline::before, .timeline::after {
    content: ''; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 1px;
}
.timeline::before { background: rgba(255, 255, 255, 0.14); }
.timeline::after {
    background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.25));
    transform: scaleY(0); transform-origin: top;
    transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}
.slide.active .timeline::after { transform: scaleY(1); }
.step {
    position: relative; display: flex; gap: 18px; align-items: flex-start;
    opacity: 0; transform: translateY(12px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.step:nth-child(1) { transition-delay: 0.45s; }
.step:nth-child(2) { transition-delay: 0.57s; }
.step:nth-child(3) { transition-delay: 0.69s; }
.step:nth-child(4) { transition-delay: 0.81s; }
.step:nth-child(5) { transition-delay: 0.93s; }
.slide.active .step { opacity: 1; transform: none; }
.step-index {
    position: relative; z-index: 1; flex: 0 0 31px; width: 31px; height: 31px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(5, 7, 11, 0.85);
    display: grid; place-items: center;
    font: 500 10px/1 'Space Grotesk', sans-serif; letter-spacing: 0.06em; color: #ffffff;
}
.step:last-child .step-index { background: #ffffff; color: #05070b; border-color: #ffffff; }
.step-title { margin: 0; padding-top: 3px; font-size: 15px; line-height: 1.3; font-weight: 500; color: #f2f7ff; }
.step-text { margin: 3px 0 0; font-size: 13px; line-height: 1.5; font-weight: 300; 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;
}

/* ---- Viewfinder: corner marks and camera readouts framing the stage ---- */
.viewfinder {
    position: fixed; inset: 0; z-index: 5; pointer-events: none; transition: opacity 0.6s;
    font: 500 10px/1 'Space Grotesk', sans-serif; letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}
body.contact-open .viewfinder { opacity: 0; }
.vf-corner { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(255, 255, 255, 0.32); }
.vf-tl { top: 92px; left: 28px; border-top-width: 1px; border-left-width: 1px; }
.vf-tr { top: 92px; right: 28px; border-top-width: 1px; border-right-width: 1px; }
.vf-bl { bottom: 24px; left: 28px; border-bottom-width: 1px; border-left-width: 1px; }
.vf-br { bottom: 24px; right: 28px; border-bottom-width: 1px; border-right-width: 1px; }
.vf-readout { position: absolute; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.vf-rec { top: 98px; left: 60px; }
.vf-format { top: 98px; right: 60px; }
.vf-exposure { bottom: 30px; left: 60px; }
.vf-wb { bottom: 30px; right: 60px; }
.vf-dot { width: 6px; height: 6px; border-radius: 50%; background: #f57778; animation: vf-blink 1.2s steps(1) infinite; }
#vf-timecode { color: rgba(255, 255, 255, 0.7); font-variant-numeric: tabular-nums; }
@keyframes vf-blink { 50% { opacity: 0.15; } }
@media (max-width: 900px), (max-aspect-ratio: 4/5) {
    .vf-readout { display: none; }
    .vf-corner { width: 14px; height: 14px; }
    .vf-tl, .vf-tr { top: 80px; }
    .vf-tl, .vf-bl { left: 10px; }
    .vf-tr, .vf-br { right: 10px; }
    .vf-bl, .vf-br { bottom: 10px; }
}

/* ---- 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; }
/* Once the contact chapter scrolls under the header, the header gets a frosted backing. */
.main-header { position: relative; }
.cinematic-container::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 70px; pointer-events: none;
    background: rgba(5, 7, 11, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06); opacity: 0; transition: opacity 0.4s;
}
body.contact-open .cinematic-container::before { opacity: 1; }

.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-social {
    display: flex; align-items: center; gap: 18px; margin-top: 44px;
    opacity: 0; transform: translateY(34px);
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.4s, transform 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.4s;
}
.contact.is-visible .contact-social { opacity: 1; transform: none; }
.contact-social-label {
    font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: #cfd6e6;
}
.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: #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); }
.footer-left { display: inline-flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-legal { color: rgba(255, 255, 255, 0.55) !important; border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding-bottom: 2px; }

/* ---- Social links: header (wide screens), contact chapter, footers ---- */
.social { display: inline-flex; align-items: center; gap: 10px; }
.social a {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24); color: #ffffff;
    transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.social a:hover { background: #ffffff; color: #05070b; border-color: #ffffff; transform: translateY(-2px); }
.social svg { display: block; width: 16px; height: 16px; }
.social-header { gap: 8px; }
.social-header a { width: 32px; height: 32px; border-color: rgba(255, 255, 255, 0.2); }
.social-header svg { width: 14px; height: 14px; }
.social-footer { gap: 8px; }
.social-footer a { width: 28px; height: 28px; border-color: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.6); }
.social-footer svg { width: 12px; height: 12px; }
.footer-right { display: inline-flex; align-items: center; gap: 24px; }
@media (max-width: 1200px) { .social-header { display: none; } }

/* ---- Header link to the Réalisations page: in the nav on desktop, a pill on phones ---- */
.works-btn, .works-home-btn { display: none; }
@media (max-width: 820px) {
    .works-btn, .works-home-btn { display: inline-flex; }
    .header-actions { gap: 10px; }
}
@media (max-width: 480px) {
    .main-header .brand-text { display: none; }
    .brand-mark { width: 22px; height: 22px; flex-basis: 22px; }
}

/* ---- Réalisations page ---- */
.works-page { background: #05070b; }
.works-page .main-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 0 60px;
    background: linear-gradient(180deg, rgba(5, 7, 11, 0.85), rgba(5, 7, 11, 0));
    border-bottom: 1px solid transparent;
    transition: background 0.4s, border-color 0.4s;
}
.works-page.is-scrolled .main-header {
    background: rgba(5, 7, 11, 0.78); border-bottom-color: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.works-hero {
    position: relative; min-height: 78vh; display: flex; align-items: flex-end;
    padding: 160px 60px 90px; overflow: hidden;
}
.works-hero-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.works-hero-shade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5, 7, 11, 0.55) 0%, rgba(5, 7, 11, 0.35) 45%, #05070b 100%),
                linear-gradient(90deg, rgba(5, 7, 11, 0.6) 0%, rgba(5, 7, 11, 0) 70%);
}
.works-hero .vf-corner { z-index: 1; }
.works-hero .vf-tl, .works-hero .vf-tr { top: 92px; }
.works-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.works-hero .contact-eyebrow { margin-bottom: 32px; gap: 10px; }
.works-hero #vf-timecode { color: rgba(255, 255, 255, 0.75); font-variant-numeric: tabular-nums; }
.works-title {
    display: flex; flex-direction: column; margin-bottom: 28px;
    font-size: clamp(48px, 7vw, 112px); line-height: 1; letter-spacing: -0.04em; font-weight: 400; color: #f2f7ff;
}
.works-title .muted { color: #b9c1d1; }
.works-lead { max-width: 52ch; font-size: 17px; line-height: 1.7; font-weight: 300; color: #d1d5db; }
.works-gallery { padding: 40px 60px 140px; }
.works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; max-width: 1400px; margin: 0 auto; }
.works-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); max-width: 1180px; }
/* The lead film runs across the full width (and the closing one when it would stand alone). */
.work--wide { grid-column: 1 / -1; }
.work {
    display: block; width: 100%; padding: 0; border: 0; background: none;
    color: inherit; font: inherit; text-align: left;
}
.work-media {
    position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
    border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.1); background: #0b0e14;
}
.work-poster, .work-preview {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: opacity 0.5s, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-preview { opacity: 0; }
.work.is-previewing .work-preview { opacity: 1; }
.work:hover .work-poster, .work:hover .work-preview { transform: scale(1.03); }
.work-placeholder { position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 60%); }
.work-play {
    position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px;
    display: grid; place-items: center; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6); background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s, opacity 0.4s;
}
.work-play svg { width: 18px; height: 18px; margin-left: 3px; fill: #ffffff; }
.work:hover .work-play { transform: scale(1.1); background: rgba(255, 255, 255, 0.16); }
.work.is-previewing .work-play { opacity: 0.6; }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 4px 0; }
.work-title { font-size: 21px; font-weight: 400; letter-spacing: -0.01em; color: #f2f7ff; }
.work-category { flex: none; font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.works-cta {
    max-width: 1400px; margin: 120px auto 0; padding-top: 56px; border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
}
.works-cta p { font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.03em; color: #f2f7ff; }
.works-cta .contact-mail { opacity: 1; transform: none; }   /* no reveal here: it is not the contact chapter */
.works-footer { position: static; opacity: 1; margin: 0 60px; }

/* Full-screen player */
html.lightbox-open { overflow: hidden; }
.lightbox {
    position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 80px 60px 50px;
    background: rgba(2, 3, 6, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    opacity: 0; transition: opacity 0.35s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox-close { position: absolute; top: 16px; right: 24px; }
.lightbox-body { width: min(100%, calc((100vh - 190px) * 16 / 9)); }
.lightbox-frame { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #000000; }
.lightbox-frame video, .lightbox-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.lightbox-caption { margin-top: 18px; text-align: center; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }

@media (max-width: 820px) {
    .works-page .main-header { padding: 0 20px; }
    .works-hero { min-height: 70vh; padding: 130px 24px 64px; }
    .works-hero .vf-tl, .works-hero .vf-tr { top: 80px; }
    .works-gallery { padding: 24px 24px 100px; }
    .works-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .work-meta { flex-direction: column; gap: 6px; }
    .works-cta { margin-top: 80px; }
    .works-footer { margin: 0 24px; }
    .lightbox { padding: 70px 12px 30px; }
    .lightbox-body { width: 100%; }
}

/* ---- Legal notice & terms: a page that opens over the site (#mentions-legales) ---- */
html.legal-open { overflow: hidden; }
.legal {
    position: fixed; inset: 0; z-index: 9000; overflow-y: auto; overscroll-behavior: contain;
    background: rgba(4, 6, 10, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    opacity: 0; transition: opacity 0.45s ease; outline: none;
}
.legal[hidden] { display: none; }
.legal.is-open { opacity: 1; }
.legal-bar {
    position: sticky; top: 0; z-index: 1;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    height: 70px; padding: 0 60px;
    background: rgba(4, 6, 10, 0.9); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font: 500 11px/1 'Space Grotesk', sans-serif; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}
.legal-close {
    display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px;
    color: #ffffff; text-decoration: none; transition: background 0.3s, color 0.3s;
}
.legal-close span { font-size: 15px; line-height: 0; }
.legal-close:hover { background: #ffffff; color: #000000; }
.legal-close:focus { outline: none; }
.legal-close:focus-visible, .work:focus-visible .work-media { outline: 2px solid #ffffff; outline-offset: 3px; }
.legal-doc {
    max-width: 760px; margin: 0 auto; padding: 72px 24px 120px;
    font-size: 15px; line-height: 1.7; font-weight: 300; color: #d1d5db;
}
.legal-doc a { color: #ffffff; }
.legal-eyebrow {
    margin: 0 0 18px; font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}
.legal-doc h1, .legal-doc .legal-part {
    margin: 0 0 28px; font-size: clamp(40px, 6vw, 72px); line-height: 1; font-weight: 400;
    letter-spacing: -0.035em; color: #f2f7ff; text-transform: none;
}
.legal-toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; }
.legal-toc button {
    padding: 10px 16px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px;
    background: transparent; color: #e5e7eb; font: 400 13px/1 'Space Grotesk', sans-serif;
    transition: background 0.3s, color 0.3s;
}
.legal-toc button:hover { background: #ffffff; color: #000000; }
.legal-section { scroll-margin-top: 96px; }
.legal-doc h2 {
    margin: 44px 0 12px; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
    color: #ffffff;
}
.legal-doc h3 { margin: 34px 0 8px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: #f2f7ff; }
.legal-doc p { margin: 0 0 12px; }
.legal-facts { display: grid; gap: 10px; margin: 0; }
.legal-facts div { display: grid; grid-template-columns: 150px 1fr; gap: 24px; }
.legal-facts dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); padding-top: 3px; }
.legal-facts dd { margin: 0; color: #e5e7eb; }
.legal-todo { color: #f57778; border-bottom: 1px dashed currentColor; }
.legal-cgv { margin-top: 96px; padding-top: 72px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.legal-meta { color: rgba(255, 255, 255, 0.55); font-size: 13px; line-height: 1.7; }
@media (max-width: 700px) {
    .legal-bar { padding: 0 20px; }
    .legal-doc { padding: 48px 20px 96px; }
    .legal-facts div { grid-template-columns: 1fr; gap: 2px; }
}
@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; }
    #slide-4 .slide-desc { display: none; }   /* the steps say it: room for the object above */
    .timeline { margin-top: 6px; gap: 9px; }
    .timeline::before, .timeline::after { left: 13px; }
    .step { gap: 14px; }
    .step-index { flex-basis: 27px; width: 27px; height: 27px; font-size: 9px; }
    .step-title { padding-top: 2px; font-size: 14px; }
    .step-text { margin-top: 1px; font-size: 12px; line-height: 1.4; }
    #slide-3, #slide-4 { left: 24px; width: auto; max-width: none; }
    .slide-desc { font-size: 15px; line-height: 1.6; max-width: 36ch; }
    #slide-1 .slide-desc { font-size: 14px; line-height: 1.55; max-width: 40ch; }   /* the hero lead is a long paragraph */
    .contact { padding: 110px 24px 190px; }   /* room for the stacked footer */
    .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; }
