/* =========================================================
   VARIABLES & TOKENS
========================================================= */
:root {
    --bg-color: #050505;
    --grid-color: #333333;
    --border-color: #333333;

    --text-main: #F2F2F2;
    --text-muted: #888888;
    --text-dim: #6E6E6E;

    --font-sans: 'Inter Tight', system-ui, sans-serif;
    --font-mono: 'Space Mono', monospace;

    --container-width: 1400px;
    --spacing-section: 16vh;
}

/* =========================================================
   RESET & BASE
========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    letter-spacing: -0.01em;
    font-weight: 400;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

/* =========================================================
   UTILITY CLASSES
========================================================= */
.font-mono { font-family: var(--font-mono); letter-spacing: -0.02em; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-white { color: #FFFFFF; }
.text-center { text-align: center; }

.section-marker {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.section-intro { max-width: 60ch; margin-bottom: 3rem; }

/* =========================================================
   ARCHITECTURAL BACKGROUND LAYERS
========================================================= */
.bg-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(51,51,51,0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(51,51,51,0.3) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.25;
}

.guide-line { position: fixed; z-index: 0; pointer-events: none; }
.guide-line.vertical-left {
    width: 0; height: 100%; left: 40px; top: 0;
    border-right: 1px dashed rgba(255,255,255,0.15);
}

.corner-bracket { position: fixed; width: 20px; height: 20px; border-color: rgba(255,255,255,0.3); border-style: solid; z-index: 10; pointer-events: none; }
.top-left { top: 30px; left: 30px; border-width: 2px 0 0 2px; }
.top-right { top: 30px; right: 30px; border-width: 2px 2px 0 0; }
.bottom-left { bottom: 30px; left: 30px; border-width: 0 0 2px 2px; }
.bottom-right { bottom: 30px; right: 30px; border-width: 0 2px 2px 0; }

.site-wrapper {
    max-width: var(--container-width);
    width: 100%; margin: 0 auto;
    padding: 0 60px 0 100px;
    position: relative; z-index: 1;
}

/* =========================================================
   HEADER
========================================================= */
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 40px 0; gap: 24px; }
.logo-link { display: flex; align-items: center; position: relative; z-index: 20; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; opacity: 0.8; }
.main-nav a:hover { color: var(--text-main); opacity: 1; }
.nav-cta-mobile { display: none; }

.hamburger-btn { display: none; }

/* =========================================================
   DUALITY LIVE-SCROLL HERO
========================================================= */
.duality-hero {
    height: 330vh; /* 3 slides */
    position: relative;
    width: 100%;
}

.duality-sticky {
    position: sticky;
    top: 5vh;
    height: 85vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
}

.scroll-progress-track {
    position: absolute;
    left: 0; top: 0;
    height: 100%; width: 1px;
    background: rgba(255,255,255,0.1);
    z-index: 15;
}

.scroll-progress-fill {
    position: absolute;
    top: 0; left: -1px; width: 3px;
    background: #FFF;
    height: 0%;
    transition: height 0.1s linear;
}

.duality-slide {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.8s cubic-bezier(0.2, 0, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.duality-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 2;
}

.duality-panel {
    position: relative;
    width: 50%; height: 100%;
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 4rem;
    overflow: hidden;
    background-color: var(--bg-color);
}
.duality-panel.border-left { border-left: 1px solid var(--border-color); }

.panel-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0.15; z-index: 0;
    filter: grayscale(1) contrast(1.2);
    transition: transform 3s ease, opacity 0.8s ease;
}
/* The visual-weight panel opposite the text */
.panel-bg.panel-bg-strong { opacity: 0.45; }

.panel-content { position: relative; z-index: 10; display: flex; flex-direction: column; }
.align-right { text-align: right; align-items: flex-end; }
.align-left { text-align: left; align-items: flex-start; }

.panel-label { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 2rem; letter-spacing: 0.05em; }

.duality-panel h2 {
    font-family: var(--font-sans); font-size: 2.2rem;
    font-weight: 500; line-height: 1.2;
    color: #FFF; margin-bottom: 2.5rem;
}

.microcopy {
    font-size: 0.85rem; color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem; max-width: 300px;
}

/* Desktop vs mobile carousel separation */
.hide-on-desktop { display: none !important; }

/* =========================================================
   THREE SLIDES: Make it matter / work / real
   Readable without motion; JS only adds a one-time reveal.
========================================================= */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.triad { margin: 2vh 0 4vh; }
.triad-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border-color);
    min-height: min(72vh, 680px);
}
.triad-panel {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; align-items: flex-end;
    min-height: 420px;
}
.triad-panel + .triad-panel { border-left: 1px solid var(--border-color); }
.triad-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
    filter: grayscale(0.7) contrast(1.1) brightness(0.42);
    transform: scale(1.02);
    transition: transform 2.4s cubic-bezier(0.16, 1, 0.3, 1), filter 2.4s ease;
}
.triad-panel::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgba(5,5,5,0.15) 0%, rgba(5,5,5,0.55) 45%, rgba(5,5,5,0.92) 100%);
}
.triad-body {
    padding: 40px 32px 44px;
    transition: opacity 1s ease, transform 1s ease;
}
.triad-label { font-size: 0.7rem; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 1.25rem; }
.triad-line {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    font-weight: 600; line-height: 1.02; letter-spacing: -0.035em;
    color: #FFF; margin-bottom: 1.25rem;
}
.triad-scope { font-size: 0.74rem; line-height: 1.7; color: #BDBDBD; margin-bottom: 1.5rem; max-width: 34ch; }
.triad-close { font-size: 1rem; color: var(--text-main); }
/* Equal block heights so the three headlines line up on desktop */
@media (min-width: 901px) { .triad-body { width: 100%; } .triad-scope, .triad-flow { min-height: 6.4rem; } .triad-close { min-height: 3em; } }
.triad-flow { list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: 0.74rem; color: #BDBDBD; }
.triad-flow li { padding: 0.45rem 0; border-top: 1px solid rgba(255,255,255,0.18); }
.triad-flow li:last-child { border-bottom: 1px solid rgba(255,255,255,0.18); color: #FFF; }
.triad-flow li + li::before { content: '→ '; color: var(--text-muted); }
/* The resolution panel reads a little brighter */
.triad-system .triad-img { filter: grayscale(0.35) contrast(1.05) brightness(0.5); }

@media (hover: hover) {
    .triad-panel:hover .triad-img { transform: scale(1.05); filter: grayscale(0.2) contrast(1.05) brightness(0.55); }
}

/* Reveal: panels settle in one after another */
.triad.is-pending .triad-img { transform: scale(1.1); filter: grayscale(1) contrast(1.15) brightness(0.3); }
.triad.is-pending .triad-body { opacity: 0; transform: translateY(20px); }
.triad-panel:nth-child(2) .triad-body, .triad-panel:nth-child(2) .triad-img { transition-delay: 0.25s; }
.triad-panel:nth-child(3) .triad-body, .triad-panel:nth-child(3) .triad-img { transition-delay: 0.5s; }

@media (max-width: 900px) {
    .triad-grid { grid-template-columns: 1fr; min-height: 0; }
    .triad-panel { min-height: 360px; }
    .triad-panel + .triad-panel { border-left: none; border-top: 1px solid var(--border-color); }
    .triad-panel:nth-child(n) .triad-body, .triad-panel:nth-child(n) .triad-img { transition-delay: 0s; }
}
@media (max-width: 599px) {
    .triad-panel { min-height: 320px; }
    .triad-body { padding: 32px 20px 36px; }
}
@media (prefers-reduced-motion: reduce) {
    .triad-img, .triad-body { transition: none; }
}


/* Hero secondary links */
.cta-links { display: inline-flex; gap: 24px; flex-wrap: wrap; }

/* =========================================================
   POST-HERO SPACING
========================================================= */
.post-hero-cta {
    display: flex;
    justify-content: flex-start;
    padding: 6vh 0 10vh 0;
    position: relative;
    z-index: 10;
}

/* =========================================================
   BUTTONS / CTAS
========================================================= */
.button-block {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #FFF;
    color: #000;
    padding: 24px 48px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    min-width: 280px;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), letter-spacing 0.2s ease;
    cursor: pointer;
}
.button-block:hover {
    background: #F2F2F2;
    transform: translateY(-2px);
    letter-spacing: 0.06em;
}

.mono-dash { font-family: var(--font-mono); color: #888; letter-spacing: -2px; }

.button-outline {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; font-size: 0.85rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    border: 1px solid var(--border-color); color: var(--text-main);
    background: transparent; cursor: pointer;
}
.button-outline:hover { border-color: var(--text-main); background: rgba(255,255,255,0.05); }

.button-solid {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; background: #FFF; color: #000; border: none;
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; cursor: pointer; transition: background 0.2s ease;
}
.button-solid.large { padding: 18px 42px; font-size: 1rem; }
.button-solid:hover { background: #D4D4D4; }

.text-link {
    font-size: 0.85rem;
    color: var(--text-main);
    text-transform: uppercase;
    border-bottom: 1px solid var(--text-muted);
    padding-bottom: 2px;
}
.text-link:hover { border-bottom-color: #FFF; }

/* =========================================================
   HERO: WHO IT'S FOR + HOW WE HELP
========================================================= */
.hero-section { padding: 12vh 0; }

.split-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.meta-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    margin-left: -2px;
}

.hero-section h1 {
    font-family: var(--font-sans);
    font-size: 4.6rem;
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    color: #FFF;
    max-width: 14ch;
}

.subtitle-elevated {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #CCCCCC;
    max-width: 55ch;
    margin-bottom: 2.5rem;
}

.qualifier-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.qualifier-bar { width: 2px; height: 36px; background-color: #FFF; flex-shrink: 0; }
.qualifier-text { font-size: 0.8rem; color: #AAAAAA; max-width: 46ch; line-height: 1.5; }

/* Hero proof strip */
.hero-proof {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}
.hero-proof li {
    padding: 1.1rem 1rem 1.1rem 0;
    display: flex; flex-direction: column; gap: 4px;
}
.hero-proof li + li { padding-left: 1rem; border-left: 1px solid var(--border-color); }
.hero-proof strong { font-family: var(--font-sans); font-size: 1.8rem; font-weight: 600; color: #FFF; letter-spacing: -0.03em; line-height: 1; }
.hero-proof span { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; line-height: 1.35; }

.cta-group { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }

.trust-line { margin-top: 1.25rem; font-size: 0.72rem; color: var(--text-dim); }

/* Hero reel: design intent → selected work */
.hero-reel {
    --reel-ease: cubic-bezier(0.77, 0, 0.18, 1);
    --reel-dur: 6s;
    position: relative;
    height: min(600px, 68vh);
    min-height: 420px;
    width: 100%;
    overflow: hidden;
    background: #070707;
    border: 1px solid var(--border-color);
    isolation: isolate;
}

.reel-frame {
    position: absolute; inset: 0;
    margin: 0;
    z-index: 1;
    clip-path: inset(0 0 0 100%);
    transition: clip-path 1.3s var(--reel-ease);
    will-change: clip-path;
}
.reel-frame.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.reel-frame.is-leaving { clip-path: inset(0 0 0 0); z-index: 1; transition: none; }

/* Project frames: monochrome on entry, settling into muted colour (intent → reality) */
.reel-frame > img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.14);
    filter: grayscale(1) contrast(1.15) brightness(0.75);
    transition: filter 2.4s ease 0.5s;
}
.reel-frame.is-active > img {
    filter: grayscale(0.45) contrast(1.05) brightness(0.9);
    animation: reel-drift calc(var(--reel-dur) + 1.6s) linear forwards;
}
.reel-frame.is-leaving > img { filter: grayscale(1) contrast(1.1) brightness(0.45); transform: scale(1.02); }
@keyframes reel-drift {
    from { transform: scale(1.14) translateX(1.5%); }
    to   { transform: scale(1.02) translateX(0); }
}

/* Frame 1: sketch | CAD split */
.reel-split { display: flex; }
.visual-half { width: 50%; height: 100%; position: relative; overflow: hidden; }
.visual-half img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reel-split.is-active .visual-half img { animation: reel-split-drift calc(var(--reel-dur) + 1.6s) ease-out forwards; }
@keyframes reel-split-drift { from { transform: scale(1.12); } to { transform: scale(1.04); } }
.cad-side img {
    object-position: 35% center;
    filter: brightness(1.3) contrast(1.1);
    opacity: 0.9;
}
.sketch-side img {
    object-position: 65% center;
    filter: invert(1) grayscale(1) brightness(0.8);
}
.split-line {
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.25);
    z-index: 5;
}

/* Readability gradient + registration marks */
.hero-reel::after {
    content: '';
    position: absolute; inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0) 38%),
        linear-gradient(to bottom, rgba(5,5,5,0.45) 0%, rgba(5,5,5,0) 18%);
}
.reel-marks { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.reel-marks .mark { position: absolute; width: 14px; height: 14px; border-color: rgba(255,255,255,0.5); border-style: solid; }
.reel-marks .tl { top: 16px; left: 16px; border-width: 1px 0 0 1px; }
.reel-marks .tr { top: 16px; right: 16px; border-width: 1px 1px 0 0; }
.reel-marks .bl { bottom: 16px; left: 16px; border-width: 0 0 1px 1px; }
.reel-marks .br { bottom: 16px; right: 16px; border-width: 0 1px 1px 0; }
.reel-marks .crosshair { position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; transform: translate(-50%, -50%); opacity: 0.35; }
.reel-marks .crosshair::before, .reel-marks .crosshair::after { content: ''; position: absolute; background: #FFF; }
.reel-marks .crosshair::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.reel-marks .crosshair::after { top: 50%; left: 0; right: 0; height: 1px; }

/* Scan line that leads each reveal */
.reel-scan {
    position: absolute; top: 0; bottom: 0; left: 100%;
    width: 1px;
    z-index: 4;
    background: #FFF;
    box-shadow: 0 0 18px 2px rgba(255,255,255,0.35);
    opacity: 0;
    pointer-events: none;
}
.hero-reel.is-revealing .reel-scan { animation: reel-scan 1.3s var(--reel-ease) forwards; }
@keyframes reel-scan {
    0% { left: 100%; opacity: 1; }
    92% { opacity: 1; }
    100% { left: 0%; opacity: 0; }
}

/* Caption + controls */
.reel-caption {
    position: absolute; left: 32px; bottom: 30px; right: 140px;
    z-index: 5;
    display: flex; flex-direction: column; gap: 6px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.reel-caption.is-swapping { opacity: 0; transform: translateY(6px); }
.reel-tag { font-size: 0.66rem; letter-spacing: 0.08em; color: var(--text-muted); text-transform: uppercase; }
.reel-title { font-family: var(--font-sans); font-size: 1.15rem; font-weight: 500; color: #FFF; letter-spacing: -0.01em; }
.reel-caption:hover .reel-title { text-decoration: underline; text-underline-offset: 4px; }

.reel-controls {
    position: absolute; right: 32px; bottom: 30px;
    z-index: 5;
    display: flex; align-items: center; gap: 14px;
    font-size: 0.7rem; color: var(--text-muted);
}
.reel-current { color: #FFF; }
.reel-toggle {
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 0.6rem; cursor: pointer;
}
.reel-toggle:hover, .reel-toggle:focus-visible { border-color: #FFF; }

.reel-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 5; background: rgba(255,255,255,0.12); }
.reel-progress span { display: block; height: 100%; width: 0; background: #FFF; }
.hero-reel.is-running .reel-progress span { animation: reel-progress var(--reel-dur) linear forwards; }
.hero-reel.is-paused .reel-progress span { animation-play-state: paused; }
@keyframes reel-progress { from { width: 0; } to { width: 100%; } }

/* =========================================================
   SECTIONS & TYPOGRAPHY
========================================================= */
section { padding: var(--spacing-section) 0; }
.content-narrow { max-width: 800px; }

h2 {
    font-family: var(--font-sans); font-size: 2.5rem; font-weight: 500;
    line-height: 1.1; letter-spacing: -0.03em; color: var(--text-muted); margin-bottom: 2rem;
}
h2 span.text-white { color: #FFF; }

.text-block p { margin-bottom: 1.5rem; font-size: 1.05rem; color: var(--text-muted); }
.text-block strong { color: var(--text-main); font-weight: 700; }
.text-block .lead-line { color: var(--text-main); font-size: 1.15rem; border-left: 2px solid #FFF; padding-left: 1rem; }

/* =========================================================
   ROLE GRID
========================================================= */
.section-header { margin-bottom: 4rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
.section-header h2 { font-size: 0.9rem; margin: 0 0 0.5rem 0; letter-spacing: 0.1em; text-transform: uppercase; }
.section-header h3 { font-size: 2rem; font-weight: 500; letter-spacing: -0.02em; color: var(--text-main); margin: 0; }

.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.role-column { padding: 0 30px; }
.role-column.border-left { border-left: 1px solid var(--border-color); }
.role-column:first-child { border-left: none; padding-left: 0; }
.role-column h4 { font-size: 0.85rem; text-transform: uppercase; color: var(--text-main); margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); }
.role-column ul li { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.8rem; padding-left: 1rem; position: relative; }
.role-column ul li::before { content: "+"; position: absolute; left: 0; color: var(--text-dim); font-size: 0.8rem; }

/* What leGrok does: short explanation under each column */
.role-column .role-note {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    line-height: 1.65;
    color: var(--text-dim);
    max-width: 38ch;
}

/* =========================================================
   02 // PROOF NUMBERS
========================================================= */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 1rem;
}
.numbers-grid li {
    padding: 2.5rem 1.5rem 2.5rem 0;
    display: flex; flex-direction: column; gap: 0.75rem;
}
.numbers-grid li + li { padding-left: 1.5rem; border-left: 1px solid var(--border-color); }
.numbers-grid strong {
    font-family: var(--font-sans); font-size: 3.4rem; font-weight: 600;
    color: #FFF; letter-spacing: -0.04em; line-height: 1;
}
.num-label { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.num-label-short { display: none; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }

.proof-facts {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 1rem;
}
.proof-facts li { padding: 2.5rem 1.5rem 2.5rem 0; display: flex; flex-direction: column; gap: 0.75rem; }
.proof-facts li + li { padding-left: 1.5rem; border-left: 1px solid var(--border-color); }
.proof-facts strong {
    font-family: var(--font-sans); font-size: 1.6rem; font-weight: 600;
    color: #FFF; letter-spacing: -0.03em; line-height: 1.15;
}
.proof-facts li:first-child strong { font-size: 2.6rem; line-height: 1; }
.fact-head { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.fact-text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; max-width: 40ch; }
@media (max-width: 900px) {
    .proof-facts { grid-template-columns: 1fr; }
    .proof-facts li, .proof-facts li + li { padding: 1.75rem 0; border-left: none; }
    .proof-facts li + li { border-top: 1px solid var(--border-color); }
    .proof-facts strong { font-size: 1.35rem; }
    .proof-facts li:first-child strong { font-size: 2.2rem; }
}

.experience-line {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 70ch;
}

/* =========================================================
   03 // SERVICES
========================================================= */
.service-index { max-width: 1200px; margin-left: auto; margin-right: auto; }
.service-index > .service-index-intro { max-width: 68ch; margin-bottom: 4rem; }
.service-index .role-column { min-height: 270px; display: flex; flex-direction: column; }
.service-index .role-column h3 {
    font-family: var(--font-sans); font-size: 1.65rem; font-weight: 500;
    line-height: 1.1; color: var(--text-main); letter-spacing: -0.03em;
    margin-bottom: 0.65rem;
}
.service-index .role-column h4 { margin-bottom: 1.25rem; line-height: 1.35; }
.service-index .role-column p { font-size: 0.82rem; line-height: 1.7; max-width: 42ch; margin-bottom: 1.5rem; }
.service-index .role-column:not(:first-child) { padding-left: 30px; }

/* =========================================================
   04 // PROCESS
========================================================= */
.system-stack { display: flex; flex-direction: column; border-top: 1px solid var(--border-color); }
.stack-tier { padding: 2rem 0; border-bottom: 1px solid var(--border-color); display: grid; grid-template-columns: 200px 1fr 1fr; align-items: baseline; transition: background 0.2s ease; }
.stack-tier:hover { background: rgba(255,255,255,0.03); }
.tier-header { display: flex; flex-direction: column; }
.tier-label { font-size: 0.75rem; color: var(--text-main); font-weight: 700; }
.tier-status { font-size: 0.75rem; color: var(--text-dim); margin-top: 4px; }
.stack-tier h3 { font-family: var(--font-sans); font-size: 1.5rem; font-weight: 500; color: var(--text-main); }
.system-footer { display: flex; justify-content: flex-start; align-items: center; margin-top: 2.5rem; }
.link-arrow { font-size: 0.85rem; color: var(--text-main); border-bottom: 1px solid var(--text-muted); padding-bottom: 2px; }
.link-arrow:hover { border-bottom-color: #FFF; }

/* =========================================================
   05 // WORK
========================================================= */
.proof-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.proof-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    background: #070707;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
}
.proof-card:hover { transform: translateY(-4px); border-color: #666; }

.proof-image-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background: #111;
}
.proof-image-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(0.25) contrast(1.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}
.proof-card:hover .proof-image-wrapper img { transform: scale(1.04); filter: grayscale(0) contrast(1.1); }

.proof-content {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.proof-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    display: block;
}
.proof-tag.tag-bright { color: #FFF; }

.proof-content h4 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 500;
    color: #FFF;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Problem / Decision / Result */
.case-lines {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 0.6rem 1rem;
    margin-bottom: 2rem;
    font-size: 0.82rem;
    line-height: 1.55;
}
.case-lines dt { color: var(--text-dim); text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.06em; padding-top: 2px; }
.case-lines dd { color: var(--text-muted); }

.proof-link {
    margin-top: auto;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #FFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid transparent;
    align-self: flex-start;
    padding-bottom: 2px;
}
.proof-link:hover { border-bottom-color: #FFF; }

.show-all-btn { display: none; }

.proof-footer {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
}

@media (min-width: 901px) {
    .proof-card.featured-concept { grid-column: 1 / -1; flex-direction: row; }
    .proof-card.featured-concept .proof-image-wrapper {
        width: 55%;
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        aspect-ratio: 16/9;
    }
    .proof-card.featured-concept .proof-content { width: 45%; justify-content: center; padding: 3rem 4rem; }
}

/* =========================================================
   06 // THE FOUNDER
========================================================= */
.founder-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.founder-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid var(--border-color);
    filter: grayscale(1) contrast(1.05);
    background: #111;
}

.founder-name { font-size: 2.8rem; margin-bottom: 0.5rem; }
.founder-title { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; margin-bottom: 2.5rem; }

.read-more-btn {
    display: none;
    background: none; border: none; color: var(--text-main);
    font-size: 0.8rem; text-transform: uppercase; cursor: pointer;
    border-bottom: 1px solid var(--text-muted); padding: 0 0 2px; margin-bottom: 2rem;
}

.credentials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}
.credentials li {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 1rem 1rem 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.founder-links { display: flex; gap: 2rem; margin-top: 2rem; }
.founder-links a { font-size: 0.8rem; text-transform: uppercase; border-bottom: 1px solid var(--text-muted); padding-bottom: 2px; }
.founder-links a:hover { border-bottom-color: #FFF; }

/* =========================================================
   CAPABILITY OVERVIEW
========================================================= */
.readiness-section .cta-box {
    background: var(--grid-color);
    padding: 4rem;
    border-left: 4px solid var(--text-main);
}
.h3-style { font-size: 1.8rem; margin-bottom: 1rem; color: #FFF; }
.readiness-section p { margin-bottom: 2rem; max-width: 60ch; }

/* =========================================================
   07 // ASSESSMENT FORM + TRUST BLOCK
========================================================= */
.final-cta-section h2 { font-size: 3rem; color: #FFF; margin-bottom: 1rem; }
.apply-intro { max-width: 55ch; margin-bottom: 3rem; }

.apply-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 48px;
    align-items: start;
}

.border-box { border: 1px solid var(--border-color); padding: 3rem; background: #050505; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group.full-width { grid-column: span 2; }
.form-group label { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea {
    background: rgba(255,255,255,0.03); border: 1px solid #333; color: #FFF;
    font-family: var(--font-sans); font-size: 1rem;
    padding: 12px 16px; min-height: 48px;
    border-radius: 0; width: 100%; transition: all 0.2s ease;
}
.form-group select option { background: #111; color: #FFF; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #FFF; background: rgba(255,255,255,0.08); }
.full-width-btn { width: 100%; justify-content: center; margin-top: 0.5rem; min-height: 56px; }

.trust-block { border-top: 1px solid var(--border-color); }
.trust-item { padding: 1.4rem 0; border-bottom: 1px solid var(--border-color); }
.trust-item h4 { font-size: 0.75rem; color: var(--text-main); text-transform: uppercase; margin-bottom: 0.4rem; letter-spacing: 0.04em; }
.trust-item p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }
.trust-item a { color: var(--text-main); border-bottom: 1px solid var(--text-dim); }
.trust-item a:hover { border-bottom-color: #FFF; }

/* =========================================================
   FOOTER
========================================================= */
.site-footer { padding: 40px 0; margin-top: 40px; border-top: 1px solid var(--border-color); }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 0.75rem; color: var(--text-dim); }
.footer-slogan { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; color: var(--text-main); letter-spacing: -0.02em; margin-bottom: 10px; }
.footer-tagline { max-width: 40ch; }
.footer-nav ul { display: flex; gap: 24px; }
.footer-nav a:hover { color: var(--text-main); }
.footer-copy { margin-top: 20px; font-size: 0.7rem; color: var(--text-dim); }

/* =========================================================
   FLOATING HOME BUTTON
========================================================= */
.floating-home-btn {
    position: fixed;
    bottom: 20px; right: 20px;
    width: 48px; height: 48px;
    background: #050505;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    overflow: hidden;
}
.floating-home-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.floating-home-btn:hover { background: #1a1a1a; border-color: #FFF; }
.floating-home-btn img { width: 26px; height: 26px; object-fit: contain; }

/* =========================================================
   MOBILE STICKY CTA BAR (shown ≤ 1024px only)
========================================================= */
.mobile-cta-bar { display: none; }

/* =========================================================
   TIGHT WINDOW + TABLET (≤ 1024px)
========================================================= */
@media (max-width: 1024px) {

    /* Background + wrapper */
    .bg-grid { background-size: 40px 40px; }
    .guide-line.vertical-left, .corner-bracket { display: none; }
    .site-wrapper { padding: 0 24px; }

    /* Header + slide-out nav */
    .site-header { padding: 24px 0; flex-wrap: nowrap; }
    .desktop-only { display: none !important; }
    .hamburger-btn {
        display: flex; flex-direction: column; justify-content: space-between;
        width: 30px; height: 18px;
        background: transparent; border: none;
        cursor: pointer; z-index: 10000; position: relative;
    }
    .hamburger-btn span { display: block; width: 100%; height: 2px; background: #FFF; transition: 0.3s; }
    .hamburger-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-btn.open span:nth-child(2) { opacity: 0; }
    .hamburger-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .main-nav {
        position: fixed; top: 0; right: -100%;
        width: 100%; max-width: 320px; height: 100vh;
        background: var(--bg-color);
        border-left: 1px solid var(--border-color);
        padding: 100px 40px 40px;
        transition: right 0.4s cubic-bezier(0.2, 0, 0.2, 1);
        z-index: 9990;
    }
    .main-nav.active { right: 0; }
    .main-nav ul { flex-direction: column; gap: 28px; }
    .main-nav a { font-size: 1.1rem; }
    .nav-cta-mobile { display: list-item; }

    /* Live scroll: desktop carousel off, 2 consolidated slides on */
    .hide-on-mobile { display: none !important; }
    .duality-hero { height: auto; padding-top: 0.5rem; }

    .hide-on-desktop {
        display: grid !important;
        grid-template-columns: 1fr 1fr; /* tight window: 2 side by side */
        border: 1px solid var(--border-color);
        width: 100%;
    }

    .mobile-duality .duality-panel {
        width: 100%; height: auto;
        min-height: 50vh;
        padding: 3rem 2rem;
        justify-content: flex-end;
        background-color: var(--bg-color);
    }
    .mobile-duality .brand-theme { border-left: 1px solid var(--border-color); }
    .mobile-duality .panel-content { align-items: flex-start; text-align: left; }
    .mobile-duality .panel-bg { opacity: 0.35; }
    .mobile-duality h2 { font-size: 1.9rem; margin-bottom: 1rem; }

    /* Hero */
    .hero-section { padding: 8vh 0; }
    .split-layout { grid-template-columns: 1fr; gap: 40px; }
    .hero-section h1 { font-size: 3.2rem; line-height: 1.06; }
    .subtitle-elevated { font-size: 1.1rem; }
    .hero-reel { height: 420px; min-height: 0; }

    /* Grids */
    .role-grid { grid-template-columns: 1fr; }
    .role-column, .role-column.border-left { padding: 20px 0; border-left: none; border-bottom: 1px solid var(--border-color); }
    .service-index .role-column { min-height: 0; }
    .service-index .role-column:not(:first-child) { padding-left: 0; }

    .numbers-grid { grid-template-columns: repeat(2, 1fr); }
    .numbers-grid li, .numbers-grid li + li { padding: 1.75rem 1rem; border-left: none; border-bottom: 1px solid var(--border-color); }
    .numbers-grid li:nth-child(even) { border-left: 1px solid var(--border-color); }
    .numbers-grid li.num-wide { grid-column: 1 / -1; border-left: none; border-bottom: none; }

    .stack-tier { grid-template-columns: 1fr; gap: 10px; }
    .tier-header { flex-direction: row; gap: 10px; margin-bottom: 5px; }

    .founder-grid { grid-template-columns: 1fr; gap: 40px; }
    .founder-media { max-width: 320px; }

    .apply-grid { grid-template-columns: 1fr; }

    .footer-content { flex-direction: column; align-items: flex-start; }

    /* Sticky CTA bar */
    .mobile-cta-bar {
        display: flex; align-items: center; justify-content: center; gap: 12px;
        position: fixed; left: 0; right: 0; bottom: 0;
        min-height: 56px;
        padding: 0 24px calc(env(safe-area-inset-bottom, 0px));
        background: #FFF; color: #000;
        font-weight: 700; font-size: 0.95rem;
        text-transform: uppercase; letter-spacing: 0.02em;
        z-index: 9980;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    }
    .mobile-cta-bar.visible { transform: translateY(0); }
    body.cta-bar-on .floating-home-btn { bottom: 76px; }
    body.cta-bar-on .site-footer { padding-bottom: 96px; }
}

/* =========================================================
   WORK GRID + FORM (≤ 900px)
========================================================= */
@media (max-width: 900px) {
    .proof-grid { grid-template-columns: 1fr; gap: 24px; }
    .proof-content { padding: 2rem 1.5rem; }

    /* Show top 3 cases; the rest behind "See all 6 projects" */
    .proof-grid .work-extra { display: none; }
    .proof-grid.show-all .work-extra { display: flex; }
    .show-all-btn { display: flex; width: 100%; margin-top: 24px; min-height: 48px; }

    .form-grid { grid-template-columns: 1fr; gap: 1rem; }
    .form-group.full-width { grid-column: span 1; }
    .border-box { padding: 1.5rem; }
    .readiness-section .cta-box { padding: 2rem; }
}

/* =========================================================
   MOBILE (< 600px)
========================================================= */
@media (max-width: 599px) {
    :root { --spacing-section: 10vh; }

    .hide-on-small { display: none; }

    /* Live scroll: stack the 2 slides */
    .hide-on-desktop { grid-template-columns: 1fr; }
    .mobile-duality .duality-panel { min-height: 60vh; padding: 2.5rem 1.5rem; }
    .mobile-duality .brand-theme { border-left: none; border-top: 1px solid var(--border-color); }
    .mobile-duality h2 { font-size: 1.7rem; }

    /* Hero */
    .hero-section h1 { font-size: 2.4rem; max-width: none; }
    .subtitle-elevated { font-size: 1.05rem; margin-bottom: 2rem; }
    .qualifier-container { margin-bottom: 2rem; }
    .hero-proof { grid-template-columns: 1fr 1fr; }
    .hero-proof li, .hero-proof li + li { padding: 1rem 0.75rem; border-left: none; }
    .hero-proof li:nth-child(even) { border-left: 1px solid var(--border-color); }
    .hero-proof li:nth-child(-n+2) { border-bottom: 1px solid var(--border-color); }
    .hero-proof li:nth-child(odd) { padding-left: 0; }
    .cta-group { flex-direction: column; align-items: stretch; gap: 20px; }
    .cta-group .button-block { width: 100%; min-width: 0; padding: 20px 24px; }
    .cta-group .text-link, .cta-group .cta-links { align-self: flex-start; }
    .hero-reel { height: 320px; }
    .reel-caption { left: 20px; bottom: 22px; right: 110px; }
    .reel-title { font-size: 0.95rem; }
    .reel-controls { right: 20px; bottom: 22px; gap: 10px; }

    /* Type */
    h2 { font-size: 1.9rem; }
    .text-block p { font-size: 1rem; }
    .section-header h3 { font-size: 1.5rem; }
    .final-cta-section h2 { font-size: 2.2rem; }

    /* Proof numbers: short labels */
    .numbers-grid strong { font-size: 2.4rem; }
    .num-label { display: none; }
    .num-label-short { display: block; }
    .experience-line { font-size: 0.75rem; }

    /* Case lines stack */
    .case-lines { grid-template-columns: 1fr; gap: 0.2rem; }
    .case-lines dd { margin-bottom: 0.6rem; }

    /* Founder */
    .founder-media { max-width: none; }
    .founder-photo { width: 120px; height: 120px; border-radius: 50%; }
    .founder-name { font-size: 2rem; }
    .founder-title { margin-bottom: 1.5rem; }
    .founder-more { display: none; }
    .founder-more.expanded { display: block; }
    .read-more-btn { display: inline-block; }
    .credentials { grid-template-columns: 1fr; }

    /* Form: trust block above the button feel — show it first */
    .apply-grid { display: flex; flex-direction: column-reverse; gap: 32px; }
}

/* =========================================================
   PHASE 1: HERO AS FIRST SCREEN + COOKIE NOTICE
========================================================= */
.hero-section {
    min-height: calc(100vh - 112px);
    padding: 1vh 0 10vh;
}
@media (min-width: 1025px) {
    .hero-section h1 {
        font-size: clamp(2.8rem, min(4.2vw, 6.4vh), 4.4rem);
        max-width: 17ch;
        margin-bottom: 1.5rem;
    }
    .hero-section .meta-label { margin-bottom: 1rem; }
    .hero-section .subtitle-elevated { font-size: 1.15rem; margin-bottom: 1.6rem; }
    .hero-section .qualifier-container { margin-bottom: 1.6rem; }
    .hero-section .hero-proof { margin-bottom: 1.6rem; }
    .hero-section .hero-proof li { padding-top: 0.85rem; padding-bottom: 0.85rem; }
}

.cookie-notice {
    position: fixed;
    left: 20px; bottom: 20px;
    max-width: 340px;
    padding: 18px 20px;
    background: #0B0B0B;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    z-index: 10000;
    font-size: 0.75rem;
    line-height: 1.55;
    color: var(--text-muted);
}
.cookie-notice[hidden] { display: none; }
.cookie-actions { display: flex; gap: 10px; margin-top: 14px; }
.cookie-btn {
    flex: 1;
    min-height: 40px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid var(--border-color);
}
.cookie-accept { background: #FFF; color: #000; border-color: #FFF; }
.cookie-decline { background: transparent; color: var(--text-main); }
.cookie-decline:hover { border-color: var(--text-main); }

@media (max-width: 599px) {
    .hero-section { padding-top: 2vh; }
    .hero-section .meta-label { margin-bottom: 1rem; }
    .hero-section h1 { margin-bottom: 1.25rem; }
    .hero-section .subtitle-elevated { margin-bottom: 1.5rem; }
    .hero-section .qualifier-container { display: none; }
    .hero-section .hero-proof { margin-bottom: 1.5rem; }
    .hero-section .hero-proof li, .hero-section .hero-proof li + li { padding-top: 0.75rem; padding-bottom: 0.75rem; }
}

@media (max-width: 1024px) {
    .hero-section { min-height: 0; padding-bottom: 8vh; }
    .cookie-notice { left: 12px; right: 12px; max-width: none; bottom: 72px; }
}

/* =========================================================
   DEVICE FIT: notches, home indicators, mobile browser bars
   (iPhone, Android, tablets; needs viewport-fit=cover)
========================================================= */
/* Small-viewport units keep sections from jumping when mobile browser bars show/hide */
@supports (height: 100svh) {
    @media (min-width: 1025px) {
        .hero-section { min-height: calc(100svh - 112px); }
        .hero-reel { height: min(600px, 68svh); }
    }
    @media (min-width: 600px) {
        .triad-grid { min-height: min(72svh, 680px); }
    }
}
@media (max-width: 1024px) {
    .site-wrapper {
        padding-left: max(24px, env(safe-area-inset-left));
        padding-right: max(24px, env(safe-area-inset-right));
    }
    .hero-section { min-height: 0; }
    .mobile-cta-bar { min-height: calc(56px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); }
    body.cta-bar-on .floating-home-btn { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
    .main-nav { padding-top: calc(100px + env(safe-area-inset-top, 0px)); }
}
.floating-home-btn { right: max(20px, env(safe-area-inset-right)); }
.cookie-notice { left: max(20px, env(safe-area-inset-left)); }
@media (max-width: 1024px) {
    .cookie-notice { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
/* Landscape phones: keep the reel and slides usable on short screens */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-reel { height: 320px; min-height: 0; }
    .triad-grid { min-height: 0; }
    .triad-panel { min-height: 300px; }
}
/* Stop iOS from enlarging text on rotation */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* =========================================================
   REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reel-frame, .reel-frame > img, .reel-caption,
    .duality-slide, .panel-bg, .visual-half img, .proof-card, .proof-image-wrapper img,
    .button-block, .mobile-cta-bar, .floating-home-btn { transition: none; }
    .proof-card:hover, .button-block:hover { transform: none; }
    .reel-frame.is-active > img, .reel-split.is-active .visual-half img { animation: none; }
    .reel-scan { display: none; }
}
