    font-style: normal;
    font-display: swap;
}

.portfolio-view-container { position: relative; }
.portfolio-matrix-grid { min-height: 0; }
.portfolio-matrix-empty { grid-column: 1 / -1; margin: 0; padding: 48px 24px; background: var(--white); color: #6b7280; text-align: center; }
.portfolio-page-status { position: absolute; right: 0; bottom: -34px; margin: 0; color: rgba(10,10,10,.52); font: 500 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.portfolio-side-arrow[hidden] { display: none; }

.team-grid--people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 82px); margin-top: clamp(44px, 7vw, 90px); }
.team-profile { min-width: 0; }
.team-profile__portrait { overflow: hidden; aspect-ratio: 4 / 5; background: #e8e7e3; }
.team-profile__portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 480ms var(--ease-smooth-out); }
.team-profile:hover .team-profile__portrait img { transform: scale(1.025); }
.team-profile__meta { display: grid; gap: 5px; padding-top: 18px; }
.team-profile__meta h3 { margin: 0; color: var(--ink); font-size: clamp(22px, 2vw, 30px); letter-spacing: -.035em; }
.team-profile__meta p { margin: 0; color: rgba(10,10,10,.62); font-size: 14px; }
.team-profile__meta a { width: fit-content; margin-top: 10px; color: var(--ink); font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }

.pitch__email-copy { max-width: 30ch; margin-top: 28px; color: rgba(255,255,255,.78); font-size: clamp(19px, 2vw, 28px); line-height: 1.35; }
.pitch__email-copy a { color: var(--yellow); text-decoration: none; border-bottom: 1px solid currentColor; }

#curriculum .army-curriculum-journey { position: relative; min-height: clamp(455px, 37vw, 590px); margin-top: clamp(52px, 7vw, 94px); isolation: isolate; }
#curriculum .army-curriculum-journey__graph { position: absolute; z-index: 0; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
#curriculum .army-curriculum-journey__path-base, #curriculum .army-curriculum-journey__path-progress { fill: none; stroke-linecap: round; }
#curriculum .army-curriculum-journey__path-base { stroke: rgba(255, 231, 105, .22); stroke-width: 1px; }
#curriculum .army-curriculum-journey__path-progress { stroke: url(#curriculumLineGradient); stroke-width: 2px; }
#curriculum .army-curriculum-journey__node { fill: var(--yellow); stroke: var(--ink); stroke-width: 4px; transform-box: fill-box; transform-origin: center; }
#curriculum .army-curriculum-journey__traveler { fill: #fff8bd; stroke: var(--ink); stroke-width: 3px; filter: drop-shadow(0 0 5px rgba(255, 241, 131, .52)); }
#curriculum .army-curr-phase { position: absolute; z-index: 1; width: min(23%, 290px); }
#curriculum .army-curr-phase--1 { left: 0; top: 63%; }
#curriculum .army-curr-phase--2 { left: 25.2%; top: 47%; }
#curriculum .army-curr-phase--3 { left: 53.1%; top: 31%; }
#curriculum .army-curr-phase--4 { right: 0; top: 14%; }
#curriculum .army-curr-phase__mobile-node { display: none; }
#curriculum .army-curr-month { position: absolute; z-index: 2; display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px 0 12px; color: var(--yellow); border-left: 2px solid var(--yellow); background: var(--ink); box-shadow: 0 0 0 6px var(--ink); font-family: var(--font-mono); font-size: clamp(12px, 1vw, 15px); font-weight: 600; line-height: 1; letter-spacing: .11em; white-space: nowrap; }
#curriculum .army-curr-phase--1 .army-curr-month, #curriculum .army-curr-phase--3 .army-curr-month { bottom: calc(100% + 22px); }
#curriculum .army-curr-phase--2 .army-curr-month, #curriculum .army-curr-phase--4 .army-curr-month { top: 24px; }
#curriculum .army-curr-phase--2 .army-curr-content h3, #curriculum .army-curr-phase--4 .army-curr-content h3 { margin-top: 72px; }
#curriculum .army-curr-content h3 { max-width: 11ch; margin: 18px 0 14px; font-size: clamp(24px, 2.25vw, 35px); line-height: 1.02; letter-spacing: -.035em; }
#curriculum .army-curr-content p { max-width: 29ch; margin: 0; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.55; }

/* Desktop curriculum: keep the upward movement but remove the unused field
   between the heading and its first milestone. Phone layouts use a dedicated
   vertical timeline below, so this only refines the wide-screen composition. */
@media (min-width: 681px) {
    #curriculum .army-curriculum-journey {
        min-height: clamp(400px, 29vw, 480px);
        margin-top: clamp(34px, 4vw, 60px);
    }
    #curriculum .army-curr-phase--1 { top: 52%; }
    #curriculum .army-curr-phase--2 { top: 38%; }
    #curriculum .army-curr-phase--3 { top: 24%; }
    #curriculum .army-curr-phase--4 { top: 9%; }
}

.motion-ready #curriculum .army-curriculum-journey__path-base { opacity: 0; }
.motion-ready #curriculum .army-curriculum-journey__path-progress { will-change: stroke-dashoffset; }
.motion-ready #curriculum .army-curriculum-journey__traveler { opacity: 0; transition: opacity var(--duration-quick) var(--ease-smooth-out); }
.motion-ready #curriculum .army-curriculum-journey__node { opacity: 0; transform: scale(.55); transition: opacity var(--duration-quick) var(--ease-smooth-out), transform var(--duration-quick) var(--ease-smooth-out); }
.motion-ready #curriculum .army-curr-phase { opacity: 0; transform: translateY(var(--distance-medium)); filter: blur(var(--blur-medium)); transition: opacity var(--duration-very-slow) var(--ease-in-out), transform var(--duration-very-slow) var(--ease-in-out), filter var(--duration-very-slow) var(--ease-in-out); }
.motion-ready #curriculum .army-curriculum-journey.is-journey-active .army-curriculum-journey__traveler { opacity: 1; }
.motion-ready #curriculum .army-curriculum-journey.is-journey-complete .army-curriculum-journey__traveler { opacity: 0; }
.motion-ready #curriculum .army-curriculum-journey__node.is-reached { opacity: 1; transform: scale(1); }
.motion-ready #curriculum .army-curr-phase.is-reached { opacity: 1; transform: translateY(0); filter: blur(0); }
.army-apply-section .form-group label { font-size: clamp(14px, 1vw, 16px); letter-spacing: .08em; }

@media (max-width: 1024px) {
    .portfolio-matrix-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 681px) and (max-width: 860px) {
    #curriculum .army-curriculum-journey { display: grid; min-height: 0; gap: 46px; padding: 8px 0 4px 42px; }
    #curriculum .army-curriculum-journey__graph { display: none; }
    #curriculum .army-curriculum-journey::before { position: absolute; top: 15px; bottom: 15px; left: 9px; width: 2px; background: var(--yellow); content: ''; transform-origin: top; }
    #curriculum .army-curr-phase { position: relative; inset: auto; width: auto; min-height: 118px; }
    #curriculum .army-curr-month { position: static; width: fit-content; }
    #curriculum .army-curr-phase--2 .army-curr-content h3, #curriculum .army-curr-phase--4 .army-curr-content h3 { margin-top: 16px; }
    #curriculum .army-curr-phase__mobile-node { position: absolute; top: 3px; left: -39px; display: block; width: 14px; height: 14px; border: 4px solid var(--ink); border-radius: 50%; background: var(--yellow); }
    #curriculum .army-curr-content h3 { max-width: 13ch; margin-top: 16px; font-size: clamp(27px, 5vw, 35px); }
    #curriculum .army-curr-content p { max-width: 43ch; }
    .motion-ready #curriculum .army-curriculum-journey::before { transform: scaleY(var(--journey-progress, 0)); will-change: transform; }
    .motion-ready #curriculum .army-curr-phase__mobile-node { opacity: 0; transform: scale(.55); transition: opacity var(--duration-quick) var(--ease-smooth-out), transform var(--duration-quick) var(--ease-smooth-out); }
    .motion-ready #curriculum .army-curr-phase.is-reached .army-curr-phase__mobile-node { opacity: 1; transform: scale(1); }
}
@media (max-width: 680px) {
    .portfolio-view-container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; row-gap: 18px; }
    .portfolio-matrix-grid { grid-column: 1 / -1; grid-row: 1; grid-template-columns: repeat(3, 1fr); }
    .portfolio-side-arrow { position: static; transform: none; width: 44px; height: 44px; margin: 0; }
    .portfolio-side-arrow--prev { grid-column: 1; grid-row: 2; justify-self: start; }
    .portfolio-side-arrow--next { grid-column: 3; grid-row: 2; justify-self: end; }
    .portfolio-page-status { position: static; grid-column: 2; grid-row: 2; white-space: nowrap; text-align: center; }
    .team-grid--people { grid-template-columns: 1fr; }
    #curriculum .army-curriculum-journey { display: grid; min-height: 0; gap: 46px; padding: 8px 0 4px 42px; }
    #curriculum .army-curriculum-journey__graph { display: none; }
    #curriculum .army-curriculum-journey::before { position: absolute; top: 15px; bottom: 15px; left: 9px; width: 2px; background: var(--yellow); content: ''; transform-origin: top; }
    #curriculum .army-curr-phase { position: relative; inset: auto; width: auto; min-height: 118px; }
    #curriculum .army-curr-month { position: static; width: fit-content; }
    #curriculum .army-curr-phase--2 .army-curr-content h3, #curriculum .army-curr-phase--4 .army-curr-content h3 { margin-top: 16px; }
    #curriculum .army-curr-phase__mobile-node { position: absolute; top: 3px; left: -39px; display: block; width: 14px; height: 14px; border: 4px solid var(--ink); border-radius: 50%; background: var(--yellow); }
    #curriculum .army-curr-content h3 { max-width: 13ch; margin-top: 16px; font-size: clamp(27px, 9vw, 35px); }
    #curriculum .army-curr-content p { max-width: 33ch; }
    .motion-ready #curriculum .army-curriculum-journey::before { transform: scaleY(var(--journey-progress, 0)); will-change: transform; }
    .motion-ready #curriculum .army-curr-phase__mobile-node { opacity: 0; transform: scale(.55); transition: opacity var(--duration-quick) var(--ease-smooth-out), transform var(--duration-quick) var(--ease-smooth-out); }
    .motion-ready #curriculum .army-curr-phase.is-reached .army-curr-phase__mobile-node { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    #curriculum .army-curriculum-journey__path-progress { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; transition: none !important; }
    #curriculum .army-curriculum-journey__node, #curriculum .army-curr-phase, #curriculum .army-curr-phase__mobile-node { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
    #curriculum .army-curriculum-journey__traveler { opacity: 0 !important; transition: none !important; }
    #curriculum .army-curriculum-journey::before { transform: none !important; transition: none !important; }
}
@media (max-width: 440px) {
    .portfolio-matrix-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-page-status { font-size: 9px; }
}
@font-face {
    font-family: 'Clash Display';
    src: url('fonts/ClashDisplay-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Clash Display';
    src: url('fonts/ClashDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #0a0a0a;
    --paper: #f6f6f5;
    --line: rgba(10, 10, 10, .14);
    --muted: #646462;
    --white: #fff;
    --yellow: #FFF183;
    --yellow-tint: rgba(255, 241, 131, 0.14);
    --yellow-glow: rgba(255, 241, 131, 0.35);
    --font-hero: 'Lora', 'Newsreader', 'Petrona', 'Georgia', serif;
    --font-display: 'Helvetica Neue', Helvetica, Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Helvetica Neue', Helvetica, Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: 'Helvetica Neue', Helvetica, Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fragment Mono', 'SF Mono', monospace;
    --ease-spector: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --duration-stagger: 45ms;
    --duration-micro: 80ms;
    --duration-quick: 150ms;
    --duration-fast: 250ms;
    --duration-medium: 350ms;
    --duration-slow: 450ms;
    --duration-very-slow: 600ms;
    --distance-medium: 12px;
    --blur-medium: 3px;
    --ease-smooth-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Lenis Smooth Scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body, button, a { cursor: default; }
a, button { color: inherit; }
a { cursor: pointer; }
button { font: inherit; }
img { max-width: 100%; }
.page-shell { width: min(100% - 80px, 1320px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 300; top: 12px; left: 12px; transform: translateY(-150%); padding: 12px 16px; background: var(--white); color: var(--ink); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.chamfer-sm { clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px)); }
.chamfer-md { clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px)); }
.chamfer-xl { clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px)); }

/* Safe Scroll Margins to eliminate anchor collision with header */
section, .section, [id] { scroll-margin-top: 90px; }

/* Site Header (Sleek Glassmorphic Floating Header with Zero Interference) */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 500; display: flex; align-items: center; justify-content: space-between; padding: clamp(24px, 2.6vw, 36px) clamp(24px, 3vw, 44px); pointer-events: none; transition: background-color 300ms ease, backdrop-filter 300ms ease, -webkit-backdrop-filter 300ms ease, border-color 300ms ease, box-shadow 300ms ease, transform 350ms cubic-bezier(0.16, 1, 0.3, 1); will-change: transform, background-color; }

/* When menu is open, ensure header is clear and stays on top */
body.menu-open .site-header { transform: none !important; background: transparent !important; border-bottom: none !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; z-index: 560; }
body.menu-open .site-logo { opacity: 0 !important; pointer-events: none !important; }
body.menu-open .burger-btn { opacity: 1 !important; pointer-events: auto !important; transform: translateY(0) !important; z-index: 560; color: var(--white); border-color: rgba(255, 255, 255, 0.35); background: rgba(10, 10, 10, 0.75); }
body.menu-open .burger-btn:hover { background: rgba(10, 10, 10, 0.92) !important; border-color: var(--yellow) !important; color: var(--yellow) !important; box-shadow: 0 0 18px var(--yellow-glow) !important; transform: translateY(0) scale(1.04) !important; }

/* Glassmorphic backdrop on scroll */
.site-header.is-scrolled { padding: 12px clamp(20px, 2.4vw, 36px); background: rgba(10, 10, 10, 0.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 4px 16px -12px rgba(0, 0, 0, 0.4); }
.site-header.is-scrolled .site-logo { height: 48px; }
.site-header.is-scrolled[data-header-tone="dark"] { background: rgba(246, 246, 245, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(10, 10, 10, 0.08); box-shadow: 0 4px 16px -12px rgba(0, 0, 0, 0.05); }

/* Auto-hide header when scrolling down on long reading sections */
.site-header.is-hidden { transform: translateY(-100%); }

/* The home control must remain reachable above the portfolio detail overlay. */
body.portfolio-modal-open .site-header { z-index: 10000; }

/* Logo container inside header - Exact Match with hero2.html */
.site-logo { position: relative; top: auto; left: auto; display: inline-flex; align-items: center; justify-content: center; height: clamp(50px, 4vw, 60px); width: auto; aspect-ratio: 244 / 230; pointer-events: none; opacity: 0; transform: translateY(-10px); transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1), opacity 450ms ease; will-change: transform, opacity; }
.site-logo.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.site-logo .logo-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity 250ms var(--ease-out); }
.site-logo[data-logo-tone="light"] .logo-img--white { opacity: 1; }
.site-logo[data-logo-tone="light"] .logo-img--black { opacity: 0; }
.site-logo[data-logo-tone="dark"] .logo-img--white { opacity: 0; }
.site-logo[data-logo-tone="dark"] .logo-img--black { opacity: 1; }

.site-nav { display: none !important; }

/* Burger Toggle Button - smoothly morphs to X in-place */
.burger-btn { position: relative; top: auto; right: auto; z-index: 520; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 0; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); background: rgba(10, 10, 10, 0.65); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--white); cursor: pointer; pointer-events: none; opacity: 0; transform: translateY(-10px); transition: background-color 250ms ease, border-color 250ms ease, color 250ms ease, transform 450ms cubic-bezier(0.22, 1, 0.36, 1), opacity 450ms ease, box-shadow 250ms ease; will-change: transform, opacity; }
.burger-btn.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.burger-btn[data-nav-tone="dark"] { background: rgba(246, 246, 245, 0.85); color: var(--ink); border-color: rgba(10, 10, 10, 0.2); }
.burger-btn:hover { background: rgba(10, 10, 10, 0.92) !important; border-color: var(--yellow) !important; color: var(--yellow) !important; box-shadow: 0 0 18px var(--yellow-glow) !important; transform: translateY(0) scale(1.04) !important; }
.burger-btn[data-nav-tone="dark"]:not(.is-active):hover { background: var(--white) !important; border-color: var(--ink) !important; color: var(--ink) !important; box-shadow: 0 0 18px rgba(0, 0, 0, 0.12) !important; }

.burger-btn__icon { position: relative; width: 20px; height: 12px; display: flex; flex-direction: column; justify-content: space-between; }
.burger-bar { display: block; width: 100%; height: 2px; background: currentColor; transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease; transform-origin: center; }
.burger-btn.is-active .burger-bar--1 { transform: translateY(5px) rotate(45deg); }
.burger-btn.is-active .burger-bar--2 { transform: translateY(-5px) rotate(-45deg); }

/* Full-Page Cinematic Menu Overlay */
.full-menu { position: fixed; inset: 0; z-index: 450; display: flex; align-items: center; justify-content: center; height: 100dvh; min-height: 100%; overflow: hidden; overscroll-behavior: none; isolation: isolate; background: #0a0a0a; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1), visibility 400ms ease; }
.full-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.full-menu__backdrop { position: fixed; inset: 0; background: rgba(10, 10, 10, 0.94); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); }
.full-menu__ambient { position: absolute; top: 20%; right: 15%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(255, 241, 131, 0.12) 0%, transparent 65%); filter: blur(60px); pointer-events: none; }

/* Legacy close button hidden - burger-btn morphs in place */
.full-menu__close-btn { display: none !important; }

.full-menu__shell { position: relative; z-index: 2; width: min(100% - 80px, 1200px); margin-inline: auto; padding: 60px 0; }
.full-menu__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(40px, 8vw, 100px); align-items: center; }

.full-menu__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(10px, 2.2vh, 22px); }
.full-menu__item { transform: translateY(24px); opacity: 0; filter: blur(10px); transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), opacity 600ms ease, filter 600ms ease; transition-delay: calc(var(--item-index) * 45ms + 40ms); }
.full-menu.is-open .full-menu__item { transform: translateY(0); opacity: 1; filter: blur(0); }

.full-menu__link { display: inline-flex; align-items: baseline; gap: clamp(16px, 2.5vw, 32px); text-decoration: none; color: var(--white); font-family: var(--font-display); font-size: clamp(34px, 5.2vw, 68px); font-weight: 400; letter-spacing: -0.03em; text-transform: uppercase; line-height: 1; transition: color 250ms ease, transform 250ms ease; }
.full-menu__num { font-family: var(--font-body); font-size: clamp(13px, 1.2vw, 16px); font-weight: 600; color: rgba(255, 255, 255, 0.4); letter-spacing: 0.05em; transform: translateY(-4px); }
.full-menu__badge { font-family: var(--font-body); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); color: var(--yellow); letter-spacing: 0.05em; align-self: center; }
.full-menu__arrow { font-size: clamp(20px, 2.5vw, 32px); color: var(--yellow); opacity: 0; transform: translate(-10px, 10px); transition: transform 250ms ease, opacity 250ms ease; }
.full-menu__link:hover { color: var(--yellow); transform: translateX(12px); }
.full-menu__link:hover .full-menu__num { color: var(--yellow); }
.full-menu__link:hover .full-menu__arrow { opacity: 1; transform: translate(0, 0); }

.full-menu__aside { display: flex; flex-direction: column; gap: clamp(28px, 4vh, 44px); border-left: 1px solid rgba(255, 255, 255, 0.12); padding-left: clamp(30px, 4vw, 60px); }
.full-menu__aside-block { transform: translateY(20px); opacity: 0; filter: blur(8px); transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), opacity 600ms ease, filter 600ms ease; transition-delay: calc(var(--item-index) * 45ms + 40ms); }
.full-menu.is-open .full-menu__aside-block { transform: translateY(0); opacity: 1; filter: blur(0); }
.full-menu__aside-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--yellow); text-transform: uppercase; margin-bottom: 12px; }
.full-menu__contact-link { display: inline-block; color: var(--white); font-size: clamp(16px, 1.4vw, 20px); font-weight: 600; text-decoration: none; transition: color 200ms ease; }
.full-menu__contact-link:hover { color: var(--yellow); }
.full-menu__meta-text { display: block; font-size: 14px; color: #fff; margin-top: 6px; }
.full-menu__socials { display: flex; gap: 20px; }
.full-menu__social-link { color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 200ms ease; }
.full-menu__social-link:hover { color: var(--yellow); }
.full-menu__cta { background: var(--yellow) !important; color: var(--ink) !important; font-weight: 700; border-color: var(--yellow) !important; box-shadow: 0 4px 20px rgba(255, 241, 131, 0.35); text-decoration: none !important; }
.full-menu__cta:hover { background: var(--white) !important; color: var(--ink) !important; border-color: var(--white) !important; box-shadow: 0 4px 25px rgba(255, 255, 255, 0.4); transform: translateY(-2px); }

/* Buttons & Interactive Elements */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 30px; font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; border-radius: 0; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); transition: background-color 250ms var(--ease-out), color 250ms var(--ease-out), border-color 250ms var(--ease-out), transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out); border: 1px solid transparent; }
.button:hover { transform: translateY(-2px); }
.button--dark { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.button--dark:hover { background: var(--white); color: var(--ink); border-color: var(--white); box-shadow: 0 4px 25px rgba(255, 241, 131, .45); }
.button--light { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.button--light:hover { background: var(--white); color: var(--ink); border-color: var(--white); box-shadow: 0 4px 25px rgba(255, 241, 131, .45); }
.button--outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.button--outline:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); box-shadow: 0 4px 25px rgba(255, 241, 131, .35); }

/* Hero Section */
.hero { position: relative; isolation: isolate; min-height: 100svh; overflow: hidden; color: var(--white); background: var(--ink); --parallax-x: 0px; --parallax-y: 0px; --hero-image-scale: 1.035; }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: var(--home-hero-image, url('assets/hero-home-main.webp?v=1')) center center / cover no-repeat; opacity: 1; transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0) scale(var(--hero-image-scale)); filter: none; transition: opacity 800ms var(--ease-out), transform 1200ms var(--ease-smooth-out); will-change: transform; }
.hero::after { content: ''; position: absolute; z-index: 0; inset: 0; pointer-events: none; background: radial-gradient(ellipse 72% 46% at 50% 63%, rgba(4, 6, 8, .78) 0%, rgba(4, 6, 8, .58) 48%, rgba(4, 6, 8, .26) 100%); opacity: 1; transition: opacity var(--duration-very-slow) var(--ease-smooth-out); }
.hero.is-resting::before { opacity: 1; }
body.is-intro-complete .hero::after { opacity: 0; }
body.is-intro-complete .hero { --hero-image-scale: 1; }
.hero__veil { display: none; }
.hero__grain { position: absolute; z-index: 1; inset: 0; pointer-events: none; opacity: .018; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.hero__foreground { display: none; }
.hero__ambient-glow { display: none !important; }

.hero__content { position: relative; z-index: 2; min-height: 100svh; width: 100%; max-width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding-left: clamp(28px, 4vw, 60px); padding-right: clamp(28px, 5.5vw, 80px); padding-top: 100px; padding-bottom: clamp(40px, 6vh, 72px); gap: 0; }

/* Centered hero opening: whole phrases resolve from blur before the permanent statement appears. */
.hero-intro {
    --hero-intro-offset-y: clamp(76px, 13svh, 160px);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(72px, 10vw, 140px) clamp(24px, 6vw, 96px);
    color: var(--white);
    font-family: var(--font-hero);
    font-size: clamp(38px, 6.2vw, 96px);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.04;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(calc(var(--hero-intro-offset-y) + 12px)) scale(.985);
    filter: blur(12px);
    transition: opacity var(--duration-very-slow) var(--ease-smooth-out), transform var(--duration-very-slow) var(--ease-smooth-out), filter var(--duration-very-slow) var(--ease-smooth-out);
    will-change: opacity, transform, filter;
}
.hero-intro.is-active { opacity: 1; transform: translateY(var(--hero-intro-offset-y)) scale(1); filter: blur(0); }
.hero-intro.is-hiding { opacity: 0; transform: translateY(calc(var(--hero-intro-offset-y) - 4px)) scale(1.008); filter: blur(10px); transition-duration: var(--duration-quick); }
.hero-intro__text { min-height: 1.1em; }
.hero-intro__accent { color: var(--yellow); }

.hero__title { margin: 0 0 0 max(0px, calc(5.5vw - clamp(28px, 4vw, 60px))); font-family: var(--font-hero); font-weight: 400; text-transform: none; display: flex; flex-direction: column; align-items: flex-start; gap: 0; color: #FFFFFF; max-width: min(1240px, 96vw); }
.hero__title-line-wrap { display: flex; flex-wrap: nowrap; gap: 0; font-size: clamp(56px, 7.2vw, 148px); font-weight: 400; letter-spacing: -0.04em; line-height: .98; color: #FFFFFF; text-shadow: none; }
.hero__title-line-wrap--accent { color: var(--yellow); }
.hero__title-mask { display: inline-block; overflow: visible; padding-bottom: 0; margin-bottom: 0; vertical-align: top; }
.hero__title-word { display: inline-block; font-weight: 400; transform: translateY(106%); opacity: 0; filter: blur(6px); color: #FFFFFF; transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 900ms cubic-bezier(0.16, 1, 0.3, 1); will-change: transform, opacity, filter; }
.hero__title-word--accent { color: var(--yellow); }

.hero__scroll-cue {
    display: block;
    margin-top: clamp(22px, 5vh, 64px);
    color: rgba(255, 255, 255, .7);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .3em;
    text-transform: uppercase;
}

body.is-intro-complete .hero__title-word {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
    transition-delay: calc(var(--w-i) * 80ms);
}

/* Sections & Typography */
.section { position: relative; padding: clamp(60px, 8vh, 110px) 0; }
.section--statement { background: var(--paper); color: var(--ink); overflow: visible; }
.section--statement h2, .section--statement h3 { color: var(--ink); }
.section--statement .section-heading h2 { color: var(--ink); }
.section--statement .section-label { color: var(--ink); }
.section--statement .section-heading--split p:not(.section-label) { color: var(--muted); }
.section--dark { background: var(--ink); color: var(--white); }
.section-label { margin: 0 0 14px; font-family: var(--font-mono); color: currentColor; font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-family: var(--font-hero); font-size: clamp(34px, 4.8vw, 62px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; text-transform: uppercase; color: var(--ink); }
.section-heading--split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: end; }
.section-heading--split p:not(.section-label) { margin: 0; font-size: clamp(15px, 1.1vw, 18px); line-height: 1.6; color: var(--muted); }
.section-heading--light h2 { color: var(--white); }
.section-heading--light p { color: rgba(255, 255, 255, 0.7); }

/* Section 2: Statement & Sticky ScrollStack */
.statement-stack-container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.statement-sticky-col { position: sticky; top: clamp(100px, 14vh, 140px); z-index: 10; padding-bottom: 30px; }
.statement-copy .section-label { margin-bottom: clamp(28px, 3vw, 42px); color: #626260; font-family: var(--font-hero); font-size: clamp(15px, 1.15vw, 18px); letter-spacing: -0.01em; text-transform: none; }
.statement-copy h2 { max-width: 15ch; font-family: var(--font-hero); font-size: clamp(34px, 3.8vw, 58px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.08; text-transform: none; text-wrap: balance; margin: 0 0 28px; }
.statement-copy p { max-width: 57ch; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.65; color: #565654; text-wrap: pretty; margin: 0 0 28px; }
.statement-copy .button { margin-top: 2px; }
.statement-story-progress { display: flex; gap: 18px; margin-top: clamp(62px, 9vh, 110px); }
.statement-story-progress__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(10, 10, 10, 0.16); transition: background-color 260ms var(--ease-smooth-out), transform 260ms var(--ease-smooth-out); }
.statement-story-progress__dot.is-active { background: var(--ink); transform: scale(1.08); }

.scroll-stack-wrapper { display: block; padding-bottom: clamp(50vh, 65vh, 80vh); }
.scroll-stack-card { position: sticky; top: calc(clamp(100px, 12vh, 130px) + var(--stack-offset, 0px)); z-index: var(--card-z, 1); margin-bottom: 40px; transform-origin: center 20%; transition: transform 350ms var(--ease-out), filter 350ms var(--ease-out), box-shadow 350ms var(--ease-out); will-change: transform; }
.scroll-stack-card:last-child { margin-bottom: 0; }
.scroll-stack-card[data-card-index="0"] { --stack-offset: 0px; --card-z: 1; }
.scroll-stack-card[data-card-index="1"] { --stack-offset: 22px; --card-z: 2; }
.scroll-stack-card[data-card-index="2"] { --stack-offset: 44px; --card-z: 3; }
.scroll-stack-card[data-card-index="3"] { --stack-offset: 66px; --card-z: 4; }

.scroll-stack-card__inner { overflow: hidden; background: #141414; border: 0; border-radius: 0; box-shadow: none; color: var(--white); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); transition: transform var(--duration-fast) var(--ease-smooth-out); }
.scroll-stack-card__media { position: relative; margin: 0; width: 100%; aspect-ratio: 4 / 2.7; overflow: hidden; background: #0a0a0a; }
.scroll-stack-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.scroll-stack-card:hover .scroll-stack-card__media img { transform: scale(1.02); }
.scroll-stack-card__tag { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 6px 12px; background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(8px); color: var(--yellow); font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 0; clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px)); border: 1px solid rgba(255, 241, 131, 0.25); }
.scroll-stack-card__content { padding: clamp(22px, 2.2vw, 30px); background: #141414; }
.scroll-stack-card__content h3 { margin: 0 0 8px; font-family: var(--font-hero); font-size: clamp(21px, 1.8vw, 28px); font-weight: 400; letter-spacing: -0.025em; text-transform: none; color: var(--white); }
.scroll-stack-card__content p { max-width: 62ch; margin: 0; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.72); text-wrap: pretty; }

/* Metrics Bar */
.metrics { padding: clamp(36px, 4.5vh, 48px) 0; background: #101010; color: var(--white); border-top: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.2fr; gap: 24px; align-items: center; }
.metric-num { display: flex; align-items: baseline; font-family: var(--font-display); font-size: clamp(42px, 5.5vw, 76px); font-weight: 400; letter-spacing: -0.03em; line-height: 1; color: var(--white); }
.metric-num strong {
    display: inline-flex;
    align-items: baseline;
    min-width: 2.65ch;
    font: inherit;
    line-height: 1;
}
.metric-num strong[data-counter="2021"] { min-width: 4.35ch; }
.metric-digit {
    position: relative;
    display: inline-block;
    width: .72ch;
    height: 1em;
    overflow: hidden;
}
.metric-digit__track {
    display: block;
    transform: translateY(0);
    will-change: transform;
}
.metric-digit__track span {
    display: block;
    height: 1em;
    line-height: 1;
}
.metric.is-revealed .metric-digit__track {
    animation: metric-digit-roll 950ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(80ms + var(--digit-index, 0) * 90ms);
}
.metric.is-revealed .metric-suffix,
.metric.is-revealed .metric-label {
    animation: metric-copy-in 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.metric.is-revealed .metric-suffix { animation-delay: 520ms; }
.metric.is-revealed .metric-label { animation-delay: 640ms; }
.metric-suffix { font-size: clamp(26px, 3.5vw, 48px); margin-left: 2px; }
.metric-label { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin-top: 6px; }
.metric--note span { font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.75); display: block; border-left: 2px solid var(--yellow); padding-left: 16px; }
@keyframes metric-digit-roll {
    from { transform: translateY(0); }
    to { transform: translateY(calc(var(--digit-stop, 0) * -1em)); }
}
@keyframes metric-copy-in {
    from { opacity: 0; transform: translateY(8px); filter: blur(3px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Section 3: Difference (How We're Different) */
#difference .section-heading h2 { text-transform: none; }
.edge-list { margin-top: 50px; display: grid; gap: 1px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.12); }
.edge-item { display: grid; grid-template-columns: 80px 1fr; gap: 36px; padding: clamp(24px, 3.5vw, 42px); background: var(--ink); transition: background-color 300ms ease; }
.edge-item:hover { background: #121212; }
.edge-item > span { font-family: var(--font-mono); font-size: clamp(18px, 1.8vw, 26px); font-weight: 400; color: rgba(255, 255, 255, 0.48); letter-spacing: 0.05em; }
.edge-item h3 { margin: 0 0 10px; font-family: var(--font-hero); font-size: clamp(22px, 2.5vw, 34px); font-weight: 400; letter-spacing: -0.03em; text-transform: uppercase; color: var(--white); transition: color 250ms ease, transform 250ms ease; }
.edge-item:hover h3 { color: var(--white); transform: translateX(4px); }
.edge-item p { margin: 0; font-size: clamp(14.5px, 1.05vw, 16.5px); line-height: 1.65; color: rgba(255, 255, 255, 0.72); max-width: 780px; }

/* ==========================================================================
   Portfolio Section: Clean Monochromatic Matrix & Filter System
   ========================================================================== */
.section--portfolio {
    min-height: auto;
    padding: clamp(75px, 9vh, 120px) 0 clamp(70px, 8vh, 100px);
    background: #FFFFFF !important;
    color: #111827;
}

/* Header: Split layout with Left Title and Right Description */
.portfolio-top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 40px;
}

.portfolio-top-header__left {
    max-width: 760px;
}

.portfolio-eyebrow {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #111827;
    margin-bottom: 12px;
    display: block;
}

.portfolio-heading {
    font-family: var(--font-hero);
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #111827;
    margin: 0;
    text-transform: none;
}

.portfolio-heading--accent {
    color: var(--yellow);
}

.portfolio-heading--accent .framer-scroll-char {
    color: var(--yellow);
}

.portfolio-heading--accent .framer-scroll-char.is-illuminated {
    color: var(--yellow) !important;
}

.portfolio-top-header__right {
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 6px;
}

.portfolio-lead-desc {
    font-family: var(--font-sans);
    font-size: 14.5px;
    line-height: 1.55;
    color: #6B7280;
    margin: 0 0 16px 0;
    font-weight: 400;
}

.portfolio-thesis-cta {
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.18s ease, transform 0.18s ease;
}

.portfolio-thesis-cta:hover {
    color: #000000;
    transform: translateX(2px);
}

.portfolio-cta-arrow {
    font-size: 14px;
    transition: transform 0.18s ease;
}

.portfolio-thesis-cta:hover .portfolio-cta-arrow {
    transform: translate(2px, -2px);
}

/* Nav & Filter Bar */
.portfolio-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #E5E7EB;
    padding: 22px 0 26px;
    flex-wrap: wrap;
}

.portfolio-category-tabs {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.portfolio-tab-item {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #9CA3AF;
    background: transparent;
    border: none;
    padding: 6px 2px;
    cursor: pointer;
    transition: color 0.18s ease;
    position: relative;
    white-space: nowrap;
}

.portfolio-tab-item:hover {
    color: #111827;
}

.portfolio-tab-item.is-active {
    color: #111827;
    font-weight: 700;
    background: transparent;
    border-color: transparent;
    clip-path: none;
    filter: none;
    box-shadow: none;
}

.portfolio-tab-item.is-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #111827;
    border-radius: 1px;
}

/* Portfolio View Container */
.portfolio-view-container {
    width: 100%;
    margin-top: 10px;
}

.portfolio-matrix-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 116px;
    min-height: 464px;
    background: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    border-left: 1px solid #E5E7EB;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: opacity 140ms ease;
}

.portfolio-matrix-grid.is-fading {
    opacity: 0;
}

.portfolio-matrix-cell {
    background: #FFFFFF;
    height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 22px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    border-right: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    outline: none;
    color: inherit;
    text-decoration: none;
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
                background-color 180ms ease,
                box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.portfolio-matrix-cell:hover,
.portfolio-matrix-cell:focus-visible {
    background: #F9FAFB;
    transform: translateY(-3px);
    z-index: 2;
    box-shadow: 0 10px 22px -6px rgba(0, 0, 0, 0.08);
}

.portfolio-matrix-cell:active {
    transform: translateY(-1px);
    transition-duration: 90ms;
}

/* Crisp & Smooth Logo Presentation */
.portfolio-matrix-cell__logo,
svg.portfolio-matrix-cell__logo {
    max-width: 124px;
    max-height: 34px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.88;
    transform: scale(1);
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease;
    user-select: none;
    pointer-events: none;
    display: block;
}

/* The approved gallery includes square badge marks as well as horizontal wordmarks. */
.portfolio-matrix-cell__logo--gallery {
    width: 62px;
    height: 62px;
    max-width: 62px;
    max-height: 62px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* Keep the supplied white Qwikskills wordmark legible on the white grid. */
.portfolio-matrix-cell__logo--dark-background {
    background: #171717;
    padding: 6px 8px;
    box-sizing: content-box;
}

/* The supplied SuperScholar logo has generous white padding. */
.portfolio-matrix-cell .portfolio-matrix-cell__logo--padded {
    width: 100px;
    height: 100px;
    max-width: 100px;
    max-height: 100px;
}

@media (max-width: 680px) {
    .portfolio-matrix-cell__logo--gallery {
        width: 52px;
        height: 52px;
        max-width: 52px;
        max-height: 52px;
    }
}

.portfolio-matrix-cell:hover .portfolio-matrix-cell__logo,
.portfolio-matrix-cell:hover svg.portfolio-matrix-cell__logo,
.portfolio-matrix-cell:focus-visible .portfolio-matrix-cell__logo,
.portfolio-matrix-cell:focus-visible svg.portfolio-matrix-cell__logo {
    transform: scale(1.06);
    opacity: 1;
}

/* Empty Filler Cells to Maintain Consistent 4x6 Matrix */
.portfolio-matrix-cell.is-empty {
    cursor: default;
    pointer-events: none;
    background: #FFFFFF;
    border-right: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

.portfolio-matrix-cell.is-empty:hover,
.portfolio-matrix-cell.is-empty:focus-visible {
    background: #FFFFFF;
    transform: none;
    box-shadow: none;
}

/* Crisp & Smooth Fallback Wordmark */
.portfolio-matrix-cell__textmark {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #111827;
    text-align: center;
    opacity: 0.9;
    transform: scale(1);
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease;
}

.portfolio-matrix-cell:hover .portfolio-matrix-cell__textmark {
    transform: scale(1.06);
    opacity: 1;
}

/* Portfolio Side Navigation Arrows (Vertically Centered on Left and Right) */
.portfolio-side-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.18s ease,
                color 0.18s ease,
                border-color 0.18s ease,
                box-shadow 0.22s ease,
                opacity 0.22s ease;
    outline: none;
}

.portfolio-side-arrow--prev {
    left: -24px;
}

.portfolio-side-arrow--next {
    right: -24px;
}

.portfolio-side-arrow:hover:not(:disabled) {
    background: #111827;
    color: var(--yellow);
    border-color: #111827;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.portfolio-side-arrow:active:not(:disabled) {
    transform: translateY(-50%) scale(0.96);
}

.portfolio-side-arrow:disabled {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

@media (max-width: 1024px) {
    .portfolio-side-arrow--prev {
        left: -16px;
    }
    .portfolio-side-arrow--next {
        right: -16px;
    }
}

@media (max-width: 680px) {
    .portfolio-side-arrow {
        width: 38px;
        height: 38px;
    }
    .portfolio-side-arrow--prev {
        left: -10px;
    }
    .portfolio-side-arrow--next {
        right: -10px;
    }
}

/* ========================================================================
   Approved motion pass — staged editorial reveals, no layout changes
   ======================================================================== */
:root {
    --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --motion-ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
    --motion-reveal: 720ms;
}

/* Keep content available without JavaScript; enhance only when JS is ready. */
.motion-ready .reveal-on-scroll {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(4px);
    transition: opacity var(--motion-reveal) var(--motion-ease),
                transform var(--motion-reveal) var(--motion-ease),
                filter var(--motion-reveal) var(--motion-ease);
    will-change: opacity, transform, filter;
}
.motion-ready .reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}
.motion-ready .portfolio-top-header.is-revealed { transition-delay: 40ms; }
.motion-ready .portfolio-nav-bar.is-revealed { transition-delay: 120ms; }
.motion-ready .portfolio-view-container.is-revealed { transition-delay: 180ms; }
.motion-ready .team-grid .team-card:nth-child(2) { transition-delay: 100ms; }
.motion-ready .team-grid .team-card:nth-child(3) { transition-delay: 180ms; }
.motion-ready .testimonials-block.is-revealed { transition-delay: 220ms; }

/* Hero: image settles first, then the live copy resolves in a deliberate order. */
.hero::before {
    transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0) scale(var(--hero-image-scale));
    opacity: 1;
    filter: none;
    transition: transform 1200ms var(--ease-smooth-out), opacity 800ms var(--ease-out), filter 800ms var(--ease-out);
}
.hero.is-resting::before {
    transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0) scale(var(--hero-image-scale));
    opacity: 1;
    filter: blur(0);
}
.motion-ready .hero__scroll-cue {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(4px);
    transition: opacity 650ms var(--motion-ease), transform 650ms var(--motion-ease), filter 650ms var(--motion-ease);
}
.motion-ready .hero__title-word {
    transition-duration: 950ms;
    transition-timing-function: var(--motion-ease-soft);
}
.motion-ready .hero__scroll-cue { transition-delay: 760ms; }
body.is-intro-complete .hero__scroll-cue {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Image-led sections: the wrapper clips the entrance; the image settles inside it. */
.motion-ready .scroll-stack-card__media,
.motion-ready .section-media,
.motion-ready .signal-lead__media,
.motion-ready .team-card__portrait {
    overflow: hidden;
}
.motion-ready .scroll-stack-card__media,
.motion-ready .team-card__portrait,
.motion-ready .signal-lead__media {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 900ms var(--motion-ease-soft);
}
.motion-ready .scroll-stack-card.is-revealed .scroll-stack-card__media,
.motion-ready .team-card.is-revealed .team-card__portrait,
.motion-ready .signal-wall.is-revealed .signal-lead__media {
    clip-path: inset(0 0 0 0);
}
.motion-ready .signal-lead__media {
    clip-path: inset(0 100% 0 0);
    transition-duration: 1050ms;
}
.motion-ready .team-card:not(.is-revealed) .team-card__img,
.motion-ready .signal-wall:not(.is-revealed) .signal-lead__media img {
    transform: scale(1.08);
    opacity: .72;
}
.team-card__img,
.signal-lead__media img {
    transition: transform 1100ms var(--motion-ease), opacity 900ms ease;
}
.team-card.is-revealed .team-card__img,
.signal-wall.is-revealed .signal-lead__media img { transform: scale(1); opacity: 1; }

/* Portfolio matrix: quiet row-by-row arrival after the section header. */
.portfolio-matrix-cell:not(.is-empty) {
    opacity: 0;
    transform: translateY(14px) scale(.985);
}
.portfolio-view-container.is-revealed .portfolio-matrix-cell:not(.is-empty) {
    animation: portfolio-cell-in 650ms var(--motion-ease) forwards;
    animation-delay: calc(var(--cell-delay, 0) * 1ms);
}
@keyframes portfolio-cell-in {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.portfolio-matrix-cell:hover .portfolio-matrix-cell__logo,
.portfolio-matrix-cell:focus-visible .portfolio-matrix-cell__logo,
.portfolio-matrix-cell:hover .portfolio-matrix-cell__textmark,
.portfolio-matrix-cell:focus-visible .portfolio-matrix-cell__textmark {
    transform: scale(1.08);
}

/* Signal rows use a measured line glide rather than a full card lift. */
.motion-ready .signal-compact-list .update-row {
    opacity: 0;
    transform: translateX(-18px);
    transition: opacity 650ms var(--motion-ease), transform 650ms var(--motion-ease), background-color 220ms ease;
}
.motion-ready .signal-wall.is-revealed .signal-compact-list .update-row {
    opacity: 1;
    transform: translateX(0);
}
.motion-ready .signal-wall.is-revealed .signal-compact-list .update-row:nth-child(2) { transition-delay: 80ms; }
.motion-ready .signal-wall.is-revealed .signal-compact-list .update-row:nth-child(3) { transition-delay: 160ms; }
.motion-ready .signal-wall.is-revealed .signal-compact-list .update-row:nth-child(4) { transition-delay: 240ms; }

/* Section handoffs remain quiet, but make the next chapter feel intentionally present. */
.section--statement.is-story-active { box-shadow: 0 -18px 42px rgba(10, 10, 10, .15); }
.section--portfolio.is-story-active { box-shadow: 0 -18px 42px rgba(10, 10, 10, .08); }
.motion-ready .pitch--terminal-rise::before {
    opacity: 0;
    transform: translate(-50%, 34px) scale(.92);
}
.pitch--terminal-rise.is-story-active::before { animation: pitch-ambient-rise 900ms var(--motion-ease-soft) both; }
@keyframes pitch-ambient-rise {
    from { opacity: 0; transform: translate(-50%, 34px) scale(.92); }
    to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .motion-ready .reveal-on-scroll,
    .motion-ready .hero__scroll-cue,
    .motion-ready .team-card__img,
    .motion-ready .signal-lead__media img,
    .motion-ready .signal-compact-list .update-row {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
    .motion-ready .scroll-stack-card__media,
    .motion-ready .team-card__portrait,
    .motion-ready .signal-lead__media { clip-path: none !important; }
    .motion-ready .pitch--terminal-rise::before { opacity: 1 !important; transform: translateX(-50%) !important; animation: none !important; }
    .portfolio-matrix-cell:not(.is-empty) { opacity: 1; transform: none; animation: none !important; }
    .hero-intro { display: none; }
}

/* Leadership: founders stay legible together before the wider team appears. */
@media (min-width: 993px) {
    .section--team { padding-top: clamp(72px, 8vh, 96px); }
    .section--team .section-heading--split { max-width: 920px; }
    .section--team .section-heading--split h2 { font-size: clamp(40px, 4.4vw, 62px); }
    .section--team .section-heading--split > p:not(.section-label) { margin-top: 14px; }
    .team-grid { margin-top: clamp(32px, 4vh, 48px); gap: 24px; }
    .team-card--lead {
        grid-column: auto;
        display: grid;
        grid-template-columns: minmax(172px, .56fr) minmax(0, 1fr);
        min-height: 330px;
    }
    .team-card--lead .team-card__portrait {
        min-height: 100%;
        aspect-ratio: auto;
        border-right: 1px solid var(--yellow);
        border-bottom: 0;
    }
    .team-card--lead .team-card__body { padding: 24px 24px 22px; }
    .team-card--lead .team-role { margin-bottom: 13px; }
    .team-card--lead .team-bio { margin-bottom: 14px; font-size: 13px; line-height: 1.48; }
    .team-card--lead .team-quote { font-size: 12.5px; line-height: 1.45; }
    .team-card--support { grid-column: 3 / span 8; margin-top: 4px; }
}

/* Mobile: remove desktop stacking, reserve image space, and keep interactions thumb-safe. */
@media (max-width: 720px) {
    .site-header { padding: 18px; }
    .site-logo { height: 40px; }
    .site-header.is-scrolled .site-logo { height: 40px; }
    .hero, .hero__content { min-height: 100dvh; }
    .hero__content { padding: 94px 20px 42px; gap: 14px; }
    .hero__title-line-wrap { font-size: clamp(40px, 11vw, 56px); line-height: 1.06; }
    .section { padding: 64px 0; }
    .section-heading h2, .statement-copy h2 { font-size: clamp(32px, 9.5vw, 48px); }
    .scroll-stack-card { position: relative; top: auto; margin-bottom: 18px; }
    .scroll-stack-card__media { aspect-ratio: 4 / 3; }
    .scroll-stack-card__content { padding: 18px; }
    .metrics-grid { gap: 14px; }
    .metric-num { font-size: clamp(46px, 15vw, 64px); }
    .portfolio-top-header { gap: 16px; }
    .portfolio-top-header__left h2 { font-size: clamp(38px, 11vw, 56px); }
    .portfolio-matrix-grid { gap: 0; }
    .portfolio-matrix-cell { min-height: 92px; height: auto; padding: 12px; }
    .portfolio-matrix-cell__logo--gallery { width: 48px; height: 48px; }
    .portfolio-side-arrow { display: none; }
    .portfolio-modal { padding: 12px; }
    .portfolio-modal__body { grid-template-columns: 1fr; }
    .portfolio-dialog__visual, .portfolio-dialog__visual > img { min-height: 220px; }
    .portfolio-dialog__details { padding: 28px 20px; }
    .team-grid { margin-top: 36px; gap: 18px; }
    .team-card--lead, .team-card--support { display: block; margin-top: 0; }
    .team-card__portrait, .team-card--support .team-card__portrait { min-height: 0; aspect-ratio: 4 / 3; border-right: 0; border-bottom: 1px solid var(--yellow); }
    .team-card__body { padding: 20px; }
    .team-bio { font-size: 14px; line-height: 1.55; }
    .team-quote { font-size: 12.5px; line-height: 1.5; }
    .testimonials-block { margin-top: 52px; padding-top: 38px; }
    .testimonial-card { padding: 22px; }
    .signal-lead__link { gap: 16px; }
    .signal-lead__media { max-width: none; aspect-ratio: 16 / 10; }
    .signal-lead h3 { font-size: clamp(24px, 7vw, 32px); }
    .pitch { padding: 84px 0; }
    .pitch h2 { font-size: clamp(42px, 12vw, 64px); }
    .pitch-form__grid { grid-template-columns: 1fr; gap: 14px; }
    .form-group input, .form-group textarea { font-size: 16px; }
}

@media (max-width: 420px) {
    .page-shell { width: min(100% - 28px, 520px); }
    .hero__content { padding-inline: 16px; }
    .section { padding: 54px 0; }
    .portfolio-matrix-cell { min-height: 82px; }
    .portfolio-matrix-cell__logo { max-width: 84px; max-height: 26px; }
    .portfolio-dialog__logo { right: 14px; bottom: 14px; left: 14px; min-height: 74px; padding: 14px; }
    .modal-info-grid { grid-template-columns: 1fr; }
}

/* Google Sheets intake forms */
.pitch-form { margin-top: 34px; max-width: 900px; }
.pitch-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pitch-form .form-group { gap: 8px; }
.pitch-form label { color: rgba(255,255,255,.72); }
.pitch-form input, .pitch-form select, .pitch-form textarea {
    width: 100%; padding: 14px 16px; background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.18); color: var(--white);
    font: inherit; outline: none; border-radius: 0; transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}
.pitch-form select { appearance: none; }
.pitch-form select option { color: var(--ink); background: var(--white); }
.pitch-form input::placeholder, .pitch-form textarea::placeholder { color: rgba(255,255,255,.42); }
.pitch-form input:focus, .pitch-form select:focus, .pitch-form textarea:focus { border-color: var(--yellow); background: rgba(255,255,255,.1); box-shadow: 0 0 0 3px rgba(255,241,131,.12); }
.pitch-form textarea { resize: vertical; min-height: 130px; }
.pitch-form__actions, .army-form-submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { min-height: 20px; color: rgba(255,255,255,.7); font-size: 13px; }
.form-status.is-success { color: var(--yellow); }
.form-status.is-error { color: #ffb4a8; }
.form-trap { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; padding: 0 !important; }
.pitch-form button:disabled, .army-form button:disabled { opacity: .55; cursor: wait; }
.army-form-submit .form-status { color: rgba(255,255,255,.72); }
.army-form-submit .form-status.is-success { color: var(--yellow); }
.army-form-submit .form-status.is-error { color: #ffb4a8; }
@media (max-width: 680px) {
    .pitch-form__grid { grid-template-columns: 1fr; }
    .pitch-form__actions, .army-form-submit { align-items: flex-start; flex-direction: column; }
}

/* Responsive Breakpoints */
@media (max-width: 1180px) {
    .portfolio-matrix-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .portfolio-top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .portfolio-category-tabs {
        gap: 14px;
    }
}

@media (max-width: 680px) {
    .portfolio-matrix-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-matrix-cell {
        height: 98px;
        padding: 16px;
    }
    
    .portfolio-matrix-cell__logo,
    svg.portfolio-matrix-cell__logo {
        max-width: 105px;
        max-height: 28px;
    }
    
    .portfolio-category-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .portfolio-category-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .portfolio-nav-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Full Page Portfolio Details Dialog Modal (Luxury Light Theme)
   ========================================================================== */
.portfolio-modal { position: fixed; inset: 0; z-index: 9999; display: flex; justify-content: flex-end; opacity: 0; pointer-events: none; transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1); }
.portfolio-modal.is-open { opacity: 1; pointer-events: auto; }

.portfolio-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

.portfolio-modal__content { position: relative; z-index: 2; width: min(600px, 100%); height: 100%; overflow-y: auto; background: #FFFFFF; border-left: 1px solid rgba(0, 0, 0, 0.12); box-shadow: -18px 0 45px rgba(0, 0, 0, 0.12); transform: translateX(100%); transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1); color: #0A0A0A; scrollbar-width: thin; }
.portfolio-modal.is-open .portfolio-modal__content { transform: translateX(0); }

.portfolio-modal__close { position: absolute; top: 16px; right: 16px; z-index: 10; width: 38px; height: 38px; border-radius: 50%; background: #FFFFFF; border: 1px solid rgba(0, 0, 0, 0.1); color: #18181B; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 200ms ease; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.portfolio-modal__close:hover { background: var(--yellow); color: #000; border-color: var(--yellow); transform: rotate(90deg); }

.modal-hero-cover { position: relative; width: 100%; height: 180px; min-height: 180px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fffdf0; border-bottom: 1px solid rgba(0, 0, 0, 0.07); }
.modal-logo-badge { background: #FFFFFF; border: 1px solid rgba(0, 0, 0, 0.1); padding: 16px 34px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
.modal-logo-badge img { max-width: 175px; max-height: 52px; object-fit: contain; }

.modal-inner-body { padding: 22px 32px 28px; position: relative; }
.modal-brand-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.modal-stage-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #F4F4F5; border: 1px solid #E4E4E7; font-family: var(--font-mono); font-size: 11px; font-weight: 600; text-transform: uppercase; color: #18181B; }
.modal-category-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #71717A; }

.modal-company-title { margin: 0 0 4px; font-family: var(--font-hero); font-size: 28px; font-weight: 400; letter-spacing: -0.03em; color: #0A0A0A; text-transform: uppercase; }
.modal-tagline { font-size: 14.5px; line-height: 1.55; color: #52525B; margin: 0 0 18px; }

.modal-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.modal-info-card { background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 12px; padding: 12px 16px; }
.modal-info-label { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #6B7280; margin-bottom: 4px; font-weight: 600; }
.modal-info-val { font-family: var(--font-display); font-size: 14.5px; font-weight: 400; color: #111827; text-transform: uppercase; }

.modal-thesis-box { background: #FEFCE8; border: 1px solid #FEF08A; border-left: 4px solid #EAB308; padding: 16px 20px; border-radius: 0 12px 12px 0; margin-bottom: 18px; }
.modal-thesis-title { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #854D0E; margin: 0 0 6px; }
.modal-thesis-text { font-size: 13.5px; line-height: 1.6; color: #1C1917; margin: 0; }

.modal-section-title { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6B7280; margin: 0 0 8px; }
.modal-chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.modal-investor-chip { font-family: var(--font-mono); font-size: 11px; font-weight: 500; padding: 5px 12px; background: #F3F4F6; border: 1px solid #E5E7EB; border-radius: 8px; color: #1F2937; }

.modal-footer-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #E5E7EB; padding-top: 18px; flex-wrap: wrap; }
.modal-visit-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 26px; background: var(--yellow); color: var(--ink); font-family: var(--font-body); font-size: 12.5px; font-weight: 700; text-transform: uppercase; text-decoration: none; border-radius: 999px; border: 1px solid rgba(0, 0, 0, 0.12); box-shadow: 0 4px 14px rgba(255, 241, 131, 0.45); transition: all 250ms ease; }
.modal-visit-btn:hover { background: #ffe838; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 241, 131, 0.65); }
.modal-close-pill-btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px; background: #F3F4F6; color: #4B5563; border: 1px solid #E5E7EB; font-family: var(--font-body); font-size: 12px; font-weight: 600; border-radius: 999px; cursor: pointer; transition: all 200ms ease; }
.modal-close-pill-btn:hover { background: #E5E7EB; color: #111827; }
.portfolio-modal__browse { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid #E5E7EB; padding-top: 18px; margin-top: 18px; }
.portfolio-modal__browse-btn { border: 0; background: transparent; color: var(--ink); cursor: pointer; padding: 6px 0; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.portfolio-modal__browse-btn:hover:not(:disabled) { color: #9a7a00; }
.portfolio-modal__browse-btn:disabled { opacity: .28; cursor: not-allowed; }
.portfolio-modal__browse-count { color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; }

@media (max-width: 640px) {
    .portfolio-modal__content { width: 100%; }
    .modal-inner-body { padding: 22px 20px 28px; }
    .modal-info-grid { grid-template-columns: 1fr; }
}

/* Section 5: Team Section & Founder Bios */
.team-grid { margin-top: 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.team-card { background: var(--white); border: 1px solid rgba(10, 10, 10, 0.1); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); overflow: hidden; transition: transform 300ms ease, box-shadow 300ms ease; }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12); }
.team-card__portrait { position: relative; aspect-ratio: 1.15 / 1; background: #0f172a; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 2px solid var(--yellow); }
.team-card__img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1), filter 450ms ease; }
.team-card:hover .team-card__img { transform: scale(1.06); }

.team-card__body { padding: 24px; }
.team-card h3 { margin: 0 0 4px; font-family: var(--font-hero); font-size: 20px; font-weight: 400; text-transform: uppercase; color: var(--ink); letter-spacing: -0.03em; }
.team-role { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.team-bio { font-size: 14px; line-height: 1.6; color: rgba(10, 10, 10, 0.75); margin: 0 0 18px; }
.team-quote { font-size: 13px; line-height: 1.55; color: #222; font-style: italic; border-left: 2px solid var(--yellow); padding-left: 12px; background: rgba(255, 241, 131, 0.08); padding: 10px 12px; }

/* Testimonials Block */
.testimonials-block { margin-top: 90px; border-top: 1px solid rgba(10, 10, 10, 0.12); padding-top: 60px; }
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.testimonial-card { margin: 0; padding: 30px; background: var(--white); border: 1px solid rgba(10, 10, 10, 0.1); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); transition: transform var(--duration-fast) var(--ease-smooth-out), border-color var(--duration-fast) var(--ease-smooth-out); }
.testimonial-card p { font-size: 16px; line-height: 1.65; color: var(--ink); margin: 0 0 20px; font-style: italic; }
.testimonial-card footer strong { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 400; text-transform: uppercase; letter-spacing: -0.03em; }
.testimonial-card footer span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* Updates List */
.updates-list { margin-top: 60px; display: grid; gap: 1px; background: rgba(10, 10, 10, 0.1); border: 1px solid rgba(10, 10, 10, 0.1); }
.update-row { display: grid; grid-template-columns: 180px 1fr 40px; gap: 30px; align-items: center; padding: 28px 32px; background: var(--white); text-decoration: none; transition: all 250ms ease; }
.update-row:hover { background: #fdfce8; transform: translateX(6px); }
.update-row > span:first-child { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.update-row h3 { margin: 0; font-family: var(--font-hero); font-size: clamp(18px, 1.8vw, 24px); font-weight: 400; text-transform: uppercase; color: var(--ink); letter-spacing: -0.03em; }
.update-row > span[aria-hidden="true"] { font-size: 20px; font-weight: 700; color: var(--ink); transition: transform 250ms ease, color 250ms ease; }
.update-row:hover span[aria-hidden="true"] { transform: translate(4px, -4px); color: #c4a700; }

/* Pitch Section */
.pitch { padding: clamp(100px, 15vw, 210px) 0; color: var(--white); background: var(--ink); }
.pitch__inner { display: flex; flex-direction: column; align-items: flex-start; }
.pitch .section-label { color: var(--yellow); }
.pitch h2 { max-width: 950px; margin: 0; font-family: var(--font-hero); font-size: clamp(48px, 8.5vw, 110px); font-weight: 400; letter-spacing: -0.03em; line-height: 0.94; text-transform: uppercase; }
.pitch p:not(.section-label) { max-width: 480px; margin: 36px 0 30px; color: rgba(255, 255, 255, .75); font-size: 17px; line-height: 1.6; }

/* Site Footer */
.site-footer { padding: 24px 0; color: var(--white); background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .15); }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; }
.site-footer img { width: 88px; height: auto; }
.site-footer span { font-family: var(--font-mono); color: rgba(255, 255, 255, .55); font-size: 11px; }

/* ==========================================================================
   2am VC Army Page Styles
   ========================================================================== */
.army-page { background: var(--ink); color: var(--white); }
.army-hero { position: relative; isolation: isolate; min-height: 85svh; display: flex; align-items: center; padding: 140px 0 80px; background: #06080b; overflow: hidden; }
.army-hero::after { content: ''; position: absolute; z-index: 0; inset: 0; background: var(--army-hero-image, url('assets/army-hero-gemini-partners.jpeg')) center center / cover no-repeat; transform: scale(1.045); transition: transform 1200ms var(--ease-smooth-out); will-change: transform; }
.army-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; /* Let both founders remain present in the photograph; copy contrast comes from its own soft shadow. */ background: linear-gradient(90deg, rgba(4, 6, 9, .70) 0%, rgba(4, 6, 9, .48) 36%, rgba(4, 6, 9, .20) 72%, rgba(4, 6, 9, .14) 100%); pointer-events: none; }
.army-hero__ambient { display: none; }
.army-hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; max-width: none; }
.army-badge-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; background: rgba(255, 241, 131, 0.12); border: 1px solid rgba(255, 241, 131, 0.3); color: var(--yellow); font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 24px; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 10px var(--yellow); animation: dot-pulse 1.5s infinite; }
@keyframes dot-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }

.army-hero__title { max-width: 760px; font-family: var(--font-hero); font-size: clamp(48px, 7.2vw, 104px); font-weight: 400; line-height: 0.96; letter-spacing: -0.035em; text-transform: uppercase; color: var(--white); margin: 0 0 28px; text-wrap: balance; }
.army-hero__title, .army-hero__lead { text-shadow: 0 3px 18px rgba(0, 0, 0, .48); }
.js .army-hero__title { opacity: 0; transform: translateY(12px) scale(.985); filter: blur(12px); transition: opacity var(--duration-very-slow) var(--ease-smooth-out), transform var(--duration-very-slow) var(--ease-smooth-out), filter var(--duration-very-slow) var(--ease-smooth-out); }
.army-page.is-army-hero-ready .army-hero::after { transform: scale(1); }
.army-page.is-army-hero-ready .army-hero__title { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.army-hero__title .text-accent { color: inherit; }
.army-hero .framer-scroll-char { color: var(--white) !important; }
.army-hero__lead { font-size: clamp(17px, 1.4vw, 22px); line-height: 1.65; color: rgba(255, 255, 255, 0.9); margin: 0 0 36px; max-width: 720px; }
.army-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.army-page .section-heading h2,
.army-page .pitch h2,
.army-page .army-pillar-card h3,
.army-page .army-curr-content h3 { text-transform: none; }
.army-hero .button--outline { color: var(--white); border-color: rgba(255, 255, 255, 0.35); }
.army-hero .button--outline:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); box-shadow: 0 4px 25px rgba(255, 241, 131, 0.4); }

.army-pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; }
.army-pillar-card { background: var(--white); border: 1px solid rgba(10, 10, 10, 0.1); padding: 36px 30px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); transition: transform var(--duration-fast) var(--ease-smooth-out), border-color var(--duration-fast) var(--ease-smooth-out); }
.army-pillar-num { font-family: var(--font-mono); font-size: 28px; font-weight: 400; color: var(--ink); margin-bottom: 12px; letter-spacing: 0.05em; }
.army-pillar-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.12em; color: #b89c00; text-transform: uppercase; margin-bottom: 8px; }
.army-pillar-card h3 { font-family: var(--font-hero); font-size: 22px; font-weight: 400; text-transform: uppercase; margin: 0 0 12px; color: var(--ink); letter-spacing: -0.03em; }
.army-pillar-card p { font-size: 15px; line-height: 1.6; color: rgba(10, 10, 10, 0.75); margin: 0; }

.army-curriculum-list { display: grid; gap: 20px; margin-top: 60px; }
.army-curr-row { display: grid; grid-template-columns: 160px 1fr; gap: 40px; background: #141414; border: 1px solid rgba(255, 255, 255, 0.1); padding: 36px 40px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); transition: transform var(--duration-fast) var(--ease-smooth-out), border-color var(--duration-fast) var(--ease-smooth-out); }
.army-curr-month { font-family: var(--font-mono); font-size: 18px; font-weight: 400; color: var(--yellow); letter-spacing: 0.08em; }
.army-curr-content h3 { font-family: var(--font-hero); font-size: 24px; font-weight: 400; text-transform: uppercase; color: var(--white); margin: 0 0 12px; letter-spacing: -0.03em; }
.army-curr-content p { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.75); margin: 0 0 18px; }
.army-curr-bullets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.army-curr-bullets li { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.05); padding: 8px 12px; border-left: 2px solid var(--yellow); }

@media (hover: hover) and (pointer: fine) {
    .scroll-stack-card:hover .scroll-stack-card__inner { transform: translateY(-4px); }
    .testimonial-card:hover { transform: translateY(-4px); border-color: rgba(10, 10, 10, .24); }
    .army-pillar-card:hover { transform: translateY(-4px); border-color: rgba(10, 10, 10, .24); }
    .army-curr-row:hover { transform: translateY(-3px); border-color: rgba(255, 241, 131, 0.4); }
}

@media (prefers-reduced-motion: reduce) {
    .team-card,
    .scroll-stack-card__inner,
    .testimonial-card,
    .army-pillar-card,
    .army-curr-row { transition: none; }

    .team-card:hover,
    .scroll-stack-card:hover .scroll-stack-card__inner,
    .testimonial-card:hover,
    .army-pillar-card:hover,
    .army-curr-row:hover { transform: none; }
}

.army-apply-section { background: #0c0c0c; }
.army-form { width: 100%; max-width: 800px; margin-top: 40px; }
.army-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group--full { grid-column: 1 / -1; }
.form-group label { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.form-group input, .form-group textarea { width: 100%; padding: 14px 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); color: var(--white); font-family: var(--font-body); font-size: 14px; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); outline: none; transition: border-color 200ms ease, box-shadow 200ms ease; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--yellow); box-shadow: 0 0 15px rgba(255, 241, 131, 0.2); }
.army-form-submit { margin-top: 28px; }

/* ==========================================================================
   Spector Motion Architecture & Transitions
   ========================================================================== */
.reveal-on-scroll { opacity: 1; transform: none; filter: none; }

/* Stagger delays */
.portfolio-grid .reveal-on-scroll:nth-child(1), .team-grid .reveal-on-scroll:nth-child(1), .edge-list .reveal-on-scroll:nth-child(1), .army-pillars-grid .reveal-on-scroll:nth-child(1) { transition-delay: 60ms; }
.portfolio-grid .reveal-on-scroll:nth-child(2), .team-grid .reveal-on-scroll:nth-child(2), .edge-list .reveal-on-scroll:nth-child(2), .army-pillars-grid .reveal-on-scroll:nth-child(2) { transition-delay: 140ms; }
.portfolio-grid .reveal-on-scroll:nth-child(3), .team-grid .reveal-on-scroll:nth-child(3), .edge-list .reveal-on-scroll:nth-child(3), .army-pillars-grid .reveal-on-scroll:nth-child(3) { transition-delay: 220ms; }
.portfolio-grid .reveal-on-scroll:nth-child(4), .edge-list .reveal-on-scroll:nth-child(4) { transition-delay: 300ms; }

/* The Army program is opt-in from Site settings, so hidden links never flash on load. */
html:not(.army-page-enabled) [data-army-link] { display: none !important; }
html.army-page-pending .army-page > :not(#pageLoader) { visibility: hidden !important; }

/* ==========================================================================
   Framer / Elian Kent Scroll-Driven Character Illumination Engine
   ========================================================================== */
.framer-scroll-text {
    display: block;
    line-height: inherit;
}

.framer-scroll-word {
    display: inline-block;
    white-space: nowrap;
    vertical-align: baseline;
}

.framer-scroll-char {
    display: inline-block;
    color: rgba(17, 24, 39, 0.22);
    transition: color 160ms cubic-bezier(0.16, 1, 0.3, 1), opacity 160ms ease;
    will-change: color;
}

@media (pointer: coarse) {
    .framer-scroll-char {
        transition: color 350ms ease-in-out, opacity 350ms ease-in-out;
        will-change: auto;
    }
}

/* Dark Section Inactive Color */
.section--dark .framer-scroll-char,
.pitch .framer-scroll-char,
.hero .framer-scroll-char,
.scroll-stack-card__content .framer-scroll-char {
    color: rgba(244, 240, 234, 0.25);
}

/* Active Illuminated Color */
.framer-scroll-char.is-illuminated {
    color: #111827 !important;
}

.section--dark .framer-scroll-char.is-illuminated,
.pitch .framer-scroll-char.is-illuminated,
.hero .framer-scroll-char.is-illuminated,
.scroll-stack-card__content .framer-scroll-char.is-illuminated {
    color: #F4F0EA !important;
}

/* Spector Photo Scale-Blur Reveal Engine */
.image-reveal, .section-media, .scroll-stack-card__media { position: relative; overflow: hidden; background: #111; border-radius: 12px; }
.image-reveal img, .section-media img, .scroll-stack-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.14) translateY(20px); opacity: 0; filter: blur(10px); transition: transform 1200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 1000ms ease, filter 900ms ease; will-change: transform, opacity, filter; }
.image-reveal.is-revealed img, .section-media.is-revealed img, .scroll-stack-card.is-revealed .scroll-stack-card__media img, .scroll-stack-card__media.is-revealed img { transform: scale(1) translateY(0); opacity: 1; filter: blur(0); }
.section-media:hover img, .scroll-stack-card__media:hover img { transform: scale(1.035); transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1); }

.section-media { position: relative; margin: 48px 0 0; border: 1px solid rgba(10, 10, 10, 0.08); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.12); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }
.section-media--portfolio { aspect-ratio: 16 / 6.5; }
.section-media--team { aspect-ratio: 16 / 7; }
.section-media--updates { aspect-ratio: 16 / 5.5; }

/* ==========================================================================
   Comprehensive Responsive System (Mobile, Tablet, Laptop, Mac, Desktop)
   ========================================================================== */
@media (max-width: 1024px) {
    .page-shell { width: min(100% - 48px, 1120px); }
    .portfolio-matrix-grid { grid-template-columns: repeat(4, 1fr); }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 992px) {
    .page-shell { width: min(100% - 40px, 860px); }
    .full-menu__grid { grid-template-columns: 1fr; gap: 40px; }
    .full-menu__aside { border-left: none; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 30px; }
    .statement-stack-container { grid-template-columns: 1fr; gap: 40px; }
    .statement-sticky-col { position: static; }
    .section-heading--split { grid-template-columns: 1fr; gap: 20px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .army-pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .army-curr-row { grid-template-columns: 1fr; gap: 16px; }
    .army-form-grid { grid-template-columns: 1fr; }
    .portfolio-top-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .portfolio-top-header__right { max-width: 100%; }
    .portfolio-matrix-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
    .page-shell { width: min(100% - 32px, 520px); }
    .hero__content { padding-top: 110px; padding-bottom: 18vh; padding-left: 24px; padding-right: 24px; }
    .hero__title-line-wrap { font-size: clamp(34px, 10vw, 56px); }
    .hero-intro { font-size: clamp(34px, 10vw, 54px); }
    .section-heading--split { display: block; }
    .section-heading--split p { margin-top: 16px; }
    .portfolio-matrix-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-matrix-cell { height: 96px; padding: 14px; }
    .portfolio-matrix-cell__logo { max-width: 95px; max-height: 28px; }
    .portfolio-nav-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
    .portfolio-category-tabs { overflow-x: auto; white-space: nowrap; width: 100%; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .portfolio-category-tabs::-webkit-scrollbar { display: none; }
    .edge-item { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
    .team-grid, .army-pillars-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: 1fr; }
    .arc-card { width: 195px; height: 195px; }
    .arc-carousel-stage { height: 230px; }
    .update-row { grid-template-columns: 1fr 20px; gap: 12px; }
    .update-row > span:first-child { grid-column: 1 / -1; }
    .site-footer__inner { align-items: flex-start; flex-direction: column; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .hero::before { opacity: 1; transform: none; }
    .hero__veil, .hero__content { opacity: 1; transform: none; }
    .reveal-on-scroll, .image-reveal, .hero__title-word, .hero__details, .split-line-inner { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; transition: none !important; }
    .section-media img, .scroll-stack-card__media img { transform: none !important; filter: none !important; opacity: 1 !important; }
    .portfolio-matrix-cell { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
    .hero-intro { display: none; }
}



.portfolio-modal { 
    position: fixed; 
    inset: 0; 
    z-index: 9999; 
    display: grid; 
    place-items: center; 
    padding: 30px; 
    opacity: 0; 
    pointer-events: none; 
    perspective: 1400px;
    -webkit-perspective: 1400px;
    transition: opacity 350ms cubic-bezier(0.16, 1, 0.3, 1); 
}
.portfolio-modal.is-open { 
    opacity: 1; 
    pointer-events: auto; 
}
.portfolio-modal__backdrop { 
    position: absolute; 
    inset: 0; 
    background: rgba(10, 10, 10, .78); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
}
.portfolio-modal__content { 
    position: relative;
    z-index: 2;
    width: min(1080px, 100%); 
    height: auto; 
    max-height: min(760px, calc(100vh - 60px)); 
    overflow: auto; 
    background: #f7f6f2; 
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); 
    border: 0; 
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08); 
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transform: rotateY(-80deg) rotateX(6deg) scale(0.88);
    opacity: 0;
    filter: blur(8px);
    transition: transform 620ms cubic-bezier(0.16, 1, 0.3, 1), opacity 450ms ease, filter 450ms ease;
    will-change: transform, opacity, filter;
}
.portfolio-modal.is-open .portfolio-modal__content { 
    transform: rotateY(0deg) rotateX(0deg) scale(1); 
    opacity: 1;
    filter: blur(0px);
}
.portfolio-modal__content.is-switching-next .portfolio-modal__body {
    animation: modal-content-swap-next var(--duration-medium) var(--ease-smooth-out) both;
}
.portfolio-modal__content.is-switching-prev .portfolio-modal__body {
    animation: modal-content-swap-prev var(--duration-medium) var(--ease-smooth-out) both;
}

@keyframes modal-content-swap-next {
    0% { transform: translate3d(0, 0, 0); opacity: 1; filter: blur(0); }
    45% { transform: translate3d(-18px, 0, 0); opacity: 0; filter: blur(2px); }
    50% { transform: translate3d(-18px, 0, 0); opacity: 0; filter: blur(2px); }
    51% { transform: translate3d(18px, 0, 0); opacity: 0; filter: blur(2px); }
    55% { transform: translate3d(18px, 0, 0); opacity: 0; filter: blur(2px); }
    100% { transform: translate3d(0, 0, 0); opacity: 1; filter: blur(0); }
}

@keyframes modal-content-swap-prev {
    0% { transform: translate3d(0, 0, 0); opacity: 1; filter: blur(0); }
    45% { transform: translate3d(18px, 0, 0); opacity: 0; filter: blur(2px); }
    50% { transform: translate3d(18px, 0, 0); opacity: 0; filter: blur(2px); }
    51% { transform: translate3d(-18px, 0, 0); opacity: 0; filter: blur(2px); }
    55% { transform: translate3d(-18px, 0, 0); opacity: 0; filter: blur(2px); }
    100% { transform: translate3d(0, 0, 0); opacity: 1; filter: blur(0); }
}
.portfolio-modal__body { display: grid; grid-template-columns: minmax(310px, .92fr) minmax(420px, 1.08fr); min-height: 610px; }

/* Keep the portfolio sheet clear of the persistent site header on larger screens. */
@media (min-width: 721px) {
    .portfolio-modal {
        padding-top: clamp(112px, 12vh, 144px);
    }

    .portfolio-modal__content {
        max-height: min(760px, calc(100dvh - clamp(142px, 16vh, 192px)));
    }
}

.portfolio-modal__close { border-radius: 0; background: var(--yellow); color: var(--ink); border: 1px solid var(--yellow); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); box-shadow: none; }
.portfolio-modal__close:hover { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.portfolio-dialog__identity { position: relative; display: grid; place-items: center; min-height: 100%; padding: 54px 38px; border-right: 1px solid rgba(10,10,10,.18); background: transparent; }
.portfolio-dialog__logo { display: grid; place-items: center; width: min(100%, 270px); min-height: 132px; padding: 28px; border: 1px solid rgba(10,10,10,.18); background: #fff; clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px)); }
.portfolio-dialog__logo img,
.portfolio-dialog__logo svg { max-width: 100%; max-height: 82px; width: auto; height: auto; object-fit: contain; display: block; }
.portfolio-dialog__index { position: absolute; top: 24px; left: 24px; color: #8c7000; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; }
.portfolio-dialog__details { padding: clamp(34px, 5vw, 64px); display: flex; flex-direction: column; }
.modal-category-label, .modal-section-title, .modal-info-label, .modal-thesis-title { color: #77746e; font-size: 10px; letter-spacing: .11em; }
.modal-company-title { margin: 14px 0 10px; font-size: clamp(36px, 4vw, 58px); line-height: .95; }
.modal-tagline { margin: 0 0 30px; font-size: 16px; line-height: 1.6; }
.modal-thesis-box { margin-bottom: 30px; padding: 20px 0; background: transparent; border: 0; border-top: 1px solid rgba(10,10,10,.2); border-bottom: 1px solid rgba(10,10,10,.2); border-radius: 0; }
.modal-thesis-title { margin: 0 0 9px; color: #8c7000; }
.modal-thesis-text { font-size: 15px; line-height: 1.62; }
.modal-info-grid { margin-bottom: 24px; }
.modal-info-card { padding: 0; background: transparent; border: 0; border-radius: 0; }
.modal-info-val { font-size: 15px; line-height: 1.12; }
.modal-partners { margin-top: auto; }
.modal-chips-row { margin-top: 10px; margin-bottom: 0; }
.modal-investor-chip { padding: 6px 9px; border-radius: 0; background: transparent; border: 1px solid rgba(10,10,10,.16); font-size: 9px; }
.modal-footer-actions { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(10,10,10,.2); }
.modal-visit-btn { padding: 13px 18px; border-radius: 0; border: 1px solid var(--ink); box-shadow: none; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.modal-visit-btn:hover { background: var(--ink); color: var(--yellow); box-shadow: none; }
.portfolio-modal__browse { padding: 0; margin: 0; border: 0; gap: 6px; }
.portfolio-modal__browse-btn { width: 32px; height: 32px; padding: 0; border: 1px solid var(--ink); color: var(--ink); font-size: 16px; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
.portfolio-modal__browse-btn:hover:not(:disabled) { background: var(--ink); color: var(--yellow); }

/* Portfolio details use one centered sheet and a left-aligned editorial
   reading column. The company information, rather than a decorative panel,
   stays the focus. */
.portfolio-modal {
    justify-content: center;
    align-content: center;
}
.portfolio-modal__content { width: min(820px, 100%); overflow-x: hidden; }
.portfolio-modal__body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.portfolio-dialog__details {
    width: min(100%, 680px);
    min-height: 0;
    margin-inline: auto;
    align-items: stretch;
    text-align: left;
}
.modal-tagline,
.modal-thesis-box,
.modal-info-grid,
.modal-partners,
.modal-footer-actions { width: 100%; }
.modal-tagline {
    max-width: 43ch;
    margin-bottom: 24px;
}
.modal-thesis-box { max-width: none; }
.modal-thesis-box {
    margin-bottom: 24px;
    padding-block: 16px;
}
.modal-info-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .72fr) minmax(0, 1.3fr);
    gap: 0;
    margin-bottom: 22px;
}
.modal-info-card { text-align: left; }
.modal-info-card + .modal-info-card {
    min-height: 48px;
    padding-left: clamp(18px, 3vw, 28px);
    border-left: 1px solid rgba(10, 10, 10, .18);
}
.modal-partners { margin-top: 0; }
.modal-chips-row { justify-content: flex-start; }
.modal-footer-actions {
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 18px;
}
.portfolio-modal__browse { justify-content: flex-end; }
@media (max-width: 1024px) { .uncork-portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .uncork-portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .portfolio-modal { padding: 16px; } .portfolio-modal__body { grid-template-columns: 1fr; } .portfolio-dialog__identity { min-height: 168px; padding: 42px 24px 24px; border-right: 0; border-bottom: 1px solid rgba(10,10,10,.18); } .portfolio-dialog__logo { width: min(100%, 230px); min-height: 92px; padding: 18px; } .portfolio-dialog__logo img, .portfolio-dialog__logo svg { max-height: 54px; } .portfolio-dialog__details { padding: 34px 24px; } .modal-info-grid { grid-template-columns: 1fr 1fr; } .modal-info-card + .modal-info-card { padding-left: 0; border-left: 0; } .modal-chips-row, .modal-footer-actions, .portfolio-modal__browse { justify-content: flex-start; } }

/* On phones the detail modal owns the viewport; keep its close control above the header. */
@media (max-width: 720px) {
    body.portfolio-modal-open .site-header {
        z-index: 500;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* Motion refinement: art-directed image settling, not a directional wipe. */
.motion-ready .media-reveal::after,
.motion-ready .scroll-stack-card__media::after {
    opacity: 0;
    transform: none;
    transition: none;
}
.motion-ready .scroll-stack-card__media,
.motion-ready .team-card__portrait,
.motion-ready .signal-lead__media {
    clip-path: inset(0);
}
.motion-ready .image-reveal > img,
.motion-ready .media-reveal > img,
.motion-ready .section-media img,
.motion-ready .scroll-stack-card__media > img,
.motion-ready .team-card__portrait img,
.motion-ready .signal-lead__media img {
    opacity: .68;
    transform: scale(1.1) translate3d(0, 2%, 0);
    filter: blur(7px) saturate(.82);
    clip-path: inset(7% 5% 7% 5% round 1px);
    transition: opacity 820ms var(--motion-ease-soft),
                transform 1100ms var(--motion-ease-soft),
                filter 900ms var(--motion-ease-soft),
                clip-path 1050ms var(--motion-ease-soft);
}
.motion-ready .image-reveal.is-revealed > img,
.motion-ready .media-reveal.is-revealed > img,
.motion-ready .section-media.is-revealed img,
.motion-ready .scroll-stack-card.is-revealed .scroll-stack-card__media > img,
.motion-ready .scroll-stack-card__media.is-revealed > img,
.motion-ready .team-card.is-revealed .team-card__portrait img,
.motion-ready .signal-wall.is-revealed .signal-lead__media img {
    opacity: 1;
    transform: scale(1) translate3d(0, 0, 0);
    filter: blur(0) saturate(1);
    clip-path: inset(0 round 0);
}
.motion-ready .team-card:nth-child(2) .team-card__portrait img { transition-delay: 90ms; }
.motion-ready .team-card:nth-child(3) .team-card__portrait img { transition-delay: 180ms; }
.motion-ready .scroll-stack-card:nth-child(2) .scroll-stack-card__media > img { transition-delay: 80ms; }
.motion-ready .scroll-stack-card:nth-child(3) .scroll-stack-card__media > img { transition-delay: 160ms; }

/* Stable numeric readout: the value itself changes, never a clipped stack of glyphs. */
.metric-num strong {
    white-space: nowrap;
    transform-origin: left center;
}
.metric-num strong.is-counting { opacity: .86; }
.metric.is-revealed .metric-num strong {
    animation: metric-number-in 520ms var(--motion-ease) both;
}
@keyframes metric-number-in {
    from { opacity: 0; transform: translateY(7px); filter: blur(3px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
    .motion-ready .image-reveal > img,
    .motion-ready .media-reveal > img,
    .motion-ready .section-media img,
    .motion-ready .scroll-stack-card__media > img,
    .motion-ready .team-card__portrait img,
    .motion-ready .signal-lead__media img {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        clip-path: none !important;
        transition: none !important;
    }
    .metric-num strong { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ==========================================================================
   Distinct Section Scroll Effects (Viper Multi-Effect Choreography)
   ========================================================================== */

/* 1. Sticky Depth Card Peel & Parallax Layer Lift (About -> Difference) */
.section--depth-peel {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    box-shadow: 0 -35px 80px rgba(0, 0, 0, 0.55);
}
.section--depth-peel .edge-item {
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), border-color 250ms ease;
    padding-top: clamp(18px, 2.4vw, 28px);
    padding-bottom: clamp(18px, 2.4vw, 28px);
}
.section--depth-peel .edge-item:hover {
    transform: translateY(-4px);
}

/* 2. Parallax Card Elevation & Image Zoom Reveal (Portfolio -> Team) */
.section--parallax-team .section-media--team {
    overflow: hidden;
    position: relative;
}
.section--parallax-team .section-media--team img {
    transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(var(--team-zoom, 1.05));
}
.section--parallax-team.is-in-view .section-media--team img {
    --team-zoom: 1;
}

/* 3. Swiss Architectural Line Expansion & Row Glide (Team -> Updates) */
.section--line-reveal .update-row {
    position: relative;
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), background-color 200ms ease;
}
.section--line-reveal .update-row:hover {
    transform: translateX(8px);
    background: #FDFCE8;
}

/* 4. Deep Charcoal Inverted Terminal Rise (Updates -> Pitch) */
.pitch--terminal-rise {
    position: relative;
    box-shadow: 0 -24px 52px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.pitch--terminal-rise::before {
    content: '';
    position: absolute;
    top: -54px;
    left: 76%;
    transform: translateX(-50%);
    width: 440px;
    height: 210px;
    background: radial-gradient(ellipse, rgba(255, 241, 131, 0.08) 0%, rgba(255, 241, 131, 0.035) 34%, transparent 70%);
    pointer-events: none;
}

/* Recovery alignment: the original visual system with the approved page refinements. */
.section--team { padding-bottom: clamp(76px, 10vh, 120px); }
.team-grid { gap: clamp(20px, 2.5vw, 32px); }
.team-card__portrait { aspect-ratio: 1 / .9; }

.section--updates { padding: clamp(72px, 9vh, 104px) 0; background: var(--white); }
#updates .section-heading h2 { text-transform: none; }
.signal-wall { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr); gap: clamp(28px, 4vw, 52px); margin-top: clamp(30px, 4vh, 48px); align-items: start; }
.signal-lead__link { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 1.15fr); gap: 22px; color: inherit; text-decoration: none; }
.signal-lead__media { position: relative; max-height: 220px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.signal-lead__media img { width: 100%; height: 100%; object-fit: cover; }
.signal-lead__badge, .signal-lead__tag, .update-row__category { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.signal-lead__badge { position: absolute; top: 12px; left: 12px; padding: 5px 7px; background: var(--yellow); color: var(--ink); }
.signal-lead__tag { color: var(--muted); }
.signal-lead h3 { margin: 10px 0; font-family: var(--font-hero); font-size: clamp(24px, 2.8vw, 38px); font-weight: 400; line-height: 1.04; letter-spacing: -.03em; text-transform: none; }
.signal-lead p { margin: 0; color: var(--muted); line-height: 1.55; }
.signal-read-more { display: inline-block; margin-top: 16px; color: var(--ink); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.signal-compact-list { border-top: 1px solid var(--line); }
.update-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 24px; gap: 18px; padding: 20px 0; color: var(--ink); background: transparent; border-bottom: 1px solid var(--line); text-decoration: none; }
.update-row h3 { margin: 0; font-size: clamp(16px, 1.45vw, 21px); text-transform: none; }

@media (max-width: 900px) {
    .signal-wall, .signal-lead__link { grid-template-columns: 1fr; }
    .signal-lead__media { max-width: 620px; }
}

@media (max-width: 680px) {
    .update-row { grid-template-columns: 1fr 20px; gap: 10px; }
    .update-row__category { grid-column: 1 / -1; }
}

/* Team: lead with the founders, then introduce the wider operating team. */
.section--team .section-heading--split {
    display: block;
    max-width: 760px;
}

.section--team .section-heading--split h2 {
    max-width: 12ch;
    font-size: clamp(42px, 5.4vw, 72px);
    line-height: 1.02;
    text-transform: none;
}

.section--team .section-heading--split > p:not(.section-label) {
    max-width: 46ch;
    margin-top: 24px;
    font-size: clamp(16px, 1.2vw, 18px);
}

.team-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 40px);
    margin-top: clamp(64px, 8vw, 108px);
}

/* Army uses a compact, equal-weight mentor roster rather than the homepage team composition. */
#mentors .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 2.4vw, 32px);
    margin-top: clamp(44px, 6vw, 72px);
}
#mentors .team-card { grid-column: auto; padding-bottom: 26px; }
#mentors .team-card__portrait { aspect-ratio: 4 / 3; background: #d9d9d9; }
#mentors .team-card h3 { margin: 22px 22px 6px; font-size: clamp(22px, 2vw, 28px); }
#mentors .team-role,
#mentors .team-bio-snippet { margin-right: 22px; margin-left: 22px; }
#mentors .team-role { margin-bottom: 14px; }
#mentors .team-bio-snippet { margin-bottom: 0; line-height: 1.55; }

.team-card {
    border-color: rgba(10, 10, 10, .14);
    box-shadow: none;
    position: relative;
    will-change: transform;
    transition: transform var(--duration-fast) var(--ease-smooth-out), border-color var(--duration-fast) var(--ease-smooth-out);
}

.team-card:hover { transform: translateY(-7px); box-shadow: none; border-color: rgba(10, 10, 10, .32); }

.team-card--lead { grid-column: span 6; }
.team-card--support {
    grid-column: 3 / span 8;
    display: grid;
    grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
    margin-top: clamp(12px, 2vw, 28px);
}

.team-card__portrait {
    aspect-ratio: 4 / 5;
    border-bottom-width: 1px;
}

.team-card--support .team-card__portrait {
    height: 100%;
    min-height: 290px;
    aspect-ratio: auto;
    border-right: 1px solid var(--yellow);
    border-bottom: 0;
}

.team-card__img {
    transition: transform 400ms var(--ease-smooth-out);
}

.team-card:hover .team-card__img { transform: scale(1.025); }

/* The intentional interaction layer: cards rise as a single, quiet system. */
@media (hover: hover) and (pointer: fine) {
    .motion-ready .team-card,
    .testimonial-card,
    .army-pillar-card,
    .army-curr-row,
    .scroll-stack-card__inner,
    .edge-item { transition: transform 260ms var(--ease-smooth-out), border-color 260ms var(--ease-smooth-out); }

    .motion-ready .team-card:hover { transform: translateY(-7px); }
    .testimonial-card:hover,
    .army-pillar-card:hover { transform: translateY(-6px); }
    .army-curr-row:hover,
    .scroll-stack-card:hover .scroll-stack-card__inner,
    .edge-item:hover { transform: translateY(-4px); }
}
.team-card__body { padding: clamp(24px, 2.4vw, 34px); }
.team-card h3 { font-size: clamp(22px, 2vw, 29px); text-transform: none; }
.team-card--support h3 { font-size: clamp(20px, 1.75vw, 26px); }
.team-role { margin-bottom: 20px; }
.team-bio { max-width: 56ch; margin-bottom: 20px; font-size: 14.5px; }
.team-quote {
    max-width: 58ch;
    padding: 0 0 0 13px;
    background: transparent;
    color: rgba(10, 10, 10, .68);
}

@media (max-width: 992px) {
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-card--lead { grid-column: auto; }
    .team-card--support { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .section--team .section-heading--split h2 { font-size: clamp(38px, 12vw, 54px); }
    .team-grid { grid-template-columns: 1fr; margin-top: 52px; }
    .team-card--support { grid-column: auto; display: block; margin-top: 0; }
    .team-card--support .team-card__portrait {
        min-height: 0;
        aspect-ratio: 16 / 10;
        border-right: 0;
        border-bottom: 1px solid var(--yellow);
    }
}

/* Vatsal's source portrait is square; preserve the full portrait in the
   wider mobile support card instead of cropping it into an unintended close-up. */
@media (max-width: 720px) {
    .section--team .team-card--support .team-card__portrait {
        background: #d9d9d9;
        align-items: flex-end;
        justify-content: center;
    }

    .section--team .team-card--support .team-card__img {
        width: min(100%, 320px);
        height: auto;
        aspect-ratio: 1;
        object-fit: contain;
        object-position: center bottom;
    }
}

/* CTA refinement: preserve the chamfer, make yellow the response. */
main .button {
    min-height: 48px;
    padding: 14px 24px;
    border-width: 1px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .065em;
    transition:
        background-color 180ms var(--ease-smooth-out),
        color 180ms var(--ease-smooth-out),
        border-color 180ms var(--ease-smooth-out),
        transform 180ms var(--ease-smooth-out);
}

main .button:hover { transform: translateY(-1px); box-shadow: none; }
main .button:active { transform: translateY(1px) scale(.985); }
main .button > [aria-hidden="true"] {
    display: inline-block;
    transition: transform 180ms var(--ease-smooth-out);
}
main .button:hover > [aria-hidden="true"] { transform: translate(3px, -1px); }

/* Light surfaces use an ink CTA. Yellow is reserved for affirmative hover feedback. */
main .button--dark {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}
main .button--dark:hover {
    background: var(--yellow);
    color: var(--ink);
    border-color: var(--yellow);
}

/* Dark surfaces begin in white for clarity, then carry the same yellow response. */
main .button--light {
    background: var(--white);
    color: var(--ink);
    border-color: var(--white);
}
main .button--light:hover {
    background: var(--yellow);
    color: var(--ink);
    border-color: var(--yellow);
}

main .button--outline {
    border-color: currentColor;
    background: transparent;
}
main .button--outline:hover {
    background: var(--yellow);
    color: var(--ink);
    border-color: var(--yellow);
}

/* Dark Army surfaces need the same contrast treatment as the pitch form. */
.army-hero .button--dark,
.army-apply-section .button--dark {
    background: var(--white);
    color: var(--ink);
    border-color: var(--white);
}
.army-hero .button--dark:hover,
.army-apply-section .button--dark:hover {
    background: var(--yellow);
    color: var(--ink);
    border-color: var(--yellow);
}

/* Portfolio modal stays in the same sharp shape but follows the CTA language. */
.modal-visit-btn {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
    transition: background-color 180ms var(--ease-smooth-out), color 180ms var(--ease-smooth-out), border-color 180ms var(--ease-smooth-out), transform 180ms var(--ease-smooth-out);
}
.modal-visit-btn:hover {
    background: var(--yellow);
    color: var(--ink);
    border-color: var(--yellow);
    transform: translateY(-1px);
}
.modal-visit-btn:active { transform: translateY(1px) scale(.985); }

/* Editorial image entry: a quiet surface wipe followed by a settled crop.
   It is deliberately limited to photography-led moments, not every card. */
.media-reveal,
.scroll-stack-card__media,
.portfolio-dialog__visual {
    isolation: isolate;
}

.media-reveal::after,
.scroll-stack-card__media::after,
.portfolio-dialog__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background: inherit;
    pointer-events: none;
    transform: scaleX(1);
    transform-origin: right center;
    transition: transform var(--duration-very-slow) var(--ease-smooth-out);
}

.media-reveal > img {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: scale(1.075);
    transition:
        opacity var(--duration-slow) var(--ease-in-out),
        transform var(--duration-very-slow) var(--ease-smooth-out);
    will-change: opacity, transform;
}

.media-reveal.is-revealed::after,
.scroll-stack-card.is-revealed .scroll-stack-card__media::after,
.portfolio-modal.is-open .portfolio-dialog__visual::after {
    transform: scaleX(0);
}

.media-reveal.is-revealed > img {
    opacity: 1;
    transform: scale(1);
}

.team-card:nth-child(2) .media-reveal::after,
.team-card:nth-child(2) .media-reveal > img { transition-delay: 70ms; }
.team-card:nth-child(3) .media-reveal::after,
.team-card:nth-child(3) .media-reveal > img { transition-delay: 120ms; }

.media-reveal.is-revealed:hover > img { transform: scale(1.025); }

/* The portfolio visual opens after the dialog itself, so it gets its own short reveal. */
.portfolio-dialog__visual > img {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: scale(1.06);
    transition:
        opacity var(--duration-medium) var(--ease-in-out) 80ms,
        transform var(--duration-very-slow) var(--ease-smooth-out) 80ms;
    will-change: opacity, transform;
}
.portfolio-modal.is-open .portfolio-dialog__visual > img {
    opacity: .82;
    transform: scale(1);
}
.portfolio-dialog__visual-overlay,
.portfolio-dialog__logo,
.portfolio-dialog__index { z-index: 4; }

/* Display titles share the same Lora voice; utility labels and body copy retain their systems. */
.section-heading h2,
.edge-item h3,
.scroll-stack-card__content h3,
.portfolio-heading,
.modal-company-title,
.team-card h3,
.update-row h3,
.signal-lead h3,
.pitch h2,
.army-hero__title,
.army-pillar-card h3,
.army-curr-content h3 {
    font-family: var(--font-hero);
    font-weight: 400;
    text-transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .media-reveal::after,
    .scroll-stack-card__media::after,
    .portfolio-dialog__visual::after {
        display: none;
    }
    .media-reveal > img,
    .portfolio-dialog__visual > img {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Framer-style mask reveal: the photo rises out of a bottom clip while its crop settles.
   This is intentionally limited to editorial photography, not logos or UI artwork. */
.image-mask-reveal {
    isolation: isolate;
    overflow: hidden;
    background: transparent;
}

/* These two components previously had their own container wipes. The reference
   reveal owns the crop, so leaving those wipes active makes it feel stepped. */
.motion-ready .team-card__portrait.image-mask-reveal,
.motion-ready .signal-lead__media.image-mask-reveal {
    clip-path: inset(0);
    transition: none;
}

.motion-ready .image-mask-reveal > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: none;
    clip-path: inset(0 0 100% 0);
    -webkit-clip-path: inset(0 0 100% 0);
    transform: scale(1.2);
    transform-origin: center center;
    will-change: clip-path, transform;
}

.motion-ready .image-mask-reveal.is-revealed > img,
.motion-ready .team-card.is-revealed .image-mask-reveal > img,
.motion-ready .signal-wall.is-revealed .image-mask-reveal > img {
    animation: none;
}

/* The founder cards are one reveal moment, not a scroll-by-scroll sequence. */
.motion-ready .section--team .team-grid .team-card,
.motion-ready .section--team .team-grid .team-card .team-card__portrait img {
    transition-delay: 0ms;
}

@media (prefers-reduced-motion: reduce) {
    .image-mask-reveal > img {
        clip-path: none !important;
        -webkit-clip-path: none !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
        will-change: auto;
    }
}

/* ========================================================================
   Responsive finishing pass
   Shared by the homepage and 2am Army page. This layer intentionally lives
   last so the older art-direction rules above keep their desktop character
   while narrow viewports get predictable, touch-friendly geometry.
   ======================================================================== */

html {
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

/* The stacked interaction stays active through laptop and desktop widths.
   The touch-specific treatment is limited to phone-sized layouts for now. */
@media (max-width: 767px) {
    .page-shell { width: min(calc(100% - 64px), 960px); }

    .statement-stack-container {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .statement-sticky-col { position: static; }
    .statement-copy h2 { max-width: 18ch; }

    .scroll-stack-wrapper {
        padding-bottom: 0;
    }

    .scroll-stack-card { position: relative; top: auto !important; margin-bottom: 28px; }
    .scroll-stack-card:last-child { margin-bottom: 0; }
    .scroll-stack-card__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .78fr); }
    .scroll-stack-card__media { aspect-ratio: auto; min-height: 260px; }
    .scroll-stack-card__content { display: flex; flex-direction: column; justify-content: center; }

    .portfolio-modal__body { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}

@media (max-width: 900px) {
    .site-header {
        padding-top: max(18px, env(safe-area-inset-top));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-left: max(20px, env(safe-area-inset-left));
    }

    .full-menu { overflow-y: auto; align-items: flex-start; -webkit-overflow-scrolling: touch; }
    .full-menu__shell {
        width: min(calc(100% - 48px), 640px);
        min-height: 100dvh;
        padding-top: max(104px, calc(env(safe-area-inset-top) + 88px));
        padding-bottom: max(48px, env(safe-area-inset-bottom));
    }
    .full-menu__link { font-size: clamp(30px, 7vw, 54px); }

    .portfolio-modal { padding: 16px; }
    .portfolio-modal__content { width: min(720px, 100%); max-height: calc(100dvh - 32px); }
    .portfolio-modal__body { grid-template-columns: 1fr; min-height: 0; }
    .portfolio-dialog__visual,
    .portfolio-dialog__visual > img { min-height: clamp(210px, 34vw, 300px); max-height: 300px; }
    .portfolio-dialog__details { padding: 32px clamp(22px, 5vw, 48px); }

    .signal-wall { gap: 36px; }
    .signal-lead__link { grid-template-columns: minmax(180px, .82fr) minmax(0, 1.18fr); }
}

@media (max-width: 768px) {
    .page-shell { width: min(calc(100% - 40px), 620px); }
    .section { padding-top: clamp(56px, 9vw, 76px); padding-bottom: clamp(56px, 9vw, 76px); }

    .section--depth-peel { min-height: auto; }

    .hero,
    .hero__content { min-height: 100dvh; }
    .hero::before { background-position: 58% center; }
    .hero__content {
        padding: max(96px, calc(env(safe-area-inset-top) + 72px)) 20px max(42px, calc(env(safe-area-inset-bottom) + 28px));
    }
    .hero__title { max-width: 100%; }
    .hero__title-line-wrap {
        max-width: 100%;
        font-size: clamp(38px, 9.8vw, 64px);
        line-height: 1.04;
        white-space: normal;
    }
    .hero-intro { padding-inline: 20px; font-size: clamp(34px, 9vw, 58px); }

    .statement-copy h2 { max-width: 17ch; font-size: clamp(34px, 7.5vw, 52px); }
    .statement-copy p { font-size: 15px; }
    .scroll-stack-card__inner { display: block; }
    .scroll-stack-card__media { min-height: 0; aspect-ratio: 4 / 3; }

    .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
    .metric--note { grid-column: 1 / -1; }
    .metric-num { font-size: clamp(38px, 9vw, 60px); }

    .edge-item { grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 22px 18px; }
    .edge-item p { font-size: 14px; }

    .portfolio-top-header { margin-bottom: 28px; }
    .portfolio-heading { font-size: clamp(36px, 8vw, 56px); }
    .portfolio-category-tabs { gap: 18px; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-inline: contain; }
    .portfolio-tab-item { min-height: 44px; padding-block: 13px; }
    .portfolio-matrix-grid { grid-auto-rows: minmax(92px, 1fr); min-height: 0; }
    .portfolio-matrix-cell { height: auto; min-height: 92px; padding: 14px 10px; }

    .team-grid { gap: 20px; }
    .team-card__body { padding: 22px 20px; }
    .testimonials-block { margin-top: 58px; }

    .signal-lead__link { grid-template-columns: 1fr; gap: 18px; }
    .signal-lead__media { max-width: none; }
    .update-row { padding-block: 18px; }

    .pitch { padding-block: clamp(76px, 14vw, 110px); }
    .pitch h2 { font-size: clamp(40px, 10.5vw, 64px); line-height: 1; }
    .pitch-form { margin-top: 30px; }
    .pitch-form__grid { gap: 16px; }
    .pitch-form__actions .button,
    .army-form-submit .button { width: 100%; }

    .army-hero {
        min-height: min(82dvh, 760px);
        padding-top: max(108px, calc(env(safe-area-inset-top) + 86px));
        padding-bottom: 64px;
    }
    .army-hero::after { background-position: 68% center; clip-path: none; }
    .army-hero::before { background: linear-gradient(90deg, rgba(4, 6, 9, .97) 0%, rgba(4, 6, 9, .86) 58%, rgba(4, 6, 9, .52) 100%); clip-path: none; }
    .army-hero__inner { max-width: none; margin-inline: auto; }
    .army-hero__title { max-width: 13ch; font-size: clamp(42px, 10vw, 68px); line-height: 1; }
    .army-hero__lead { max-width: 38ch; font-size: 16px; line-height: 1.55; }
    .army-pillar-card { padding: 26px 22px; }
    .army-curr-row { padding: 26px 22px; }
}

@media (max-width: 520px) {
    .page-shell { width: min(calc(100% - 32px), 480px); }
    .site-header { padding-right: 16px; padding-left: 16px; }
    .site-logo { height: 42px; }
    .site-header.is-scrolled .site-logo { height: 42px; }
    .burger-btn { width: 46px; height: 46px; }

    .full-menu__shell { width: min(calc(100% - 32px), 480px); }
    .full-menu__list { gap: 14px; }
    .full-menu__link { gap: 12px; font-size: clamp(27px, 9vw, 42px); }
    .full-menu__num { font-size: 11px; }
    .full-menu__badge { font-size: 9px; padding: 4px 7px; }
    .full-menu__aside { gap: 26px; }
    .full-menu__socials { flex-wrap: wrap; gap: 14px 20px; }

    .hero__content { padding-right: 16px; padding-left: 16px; }
    .hero__title-line-wrap { font-size: clamp(36px, 11vw, 52px); }
    .hero__scroll-cue { margin-top: 28px; letter-spacing: .2em; }
    .section-heading h2 { font-size: clamp(32px, 9vw, 46px); }
    .statement-copy h2 { font-size: clamp(32px, 9.5vw, 48px); }

    .metrics-grid { grid-template-columns: 1fr 1fr; }
    .metric-num { font-size: clamp(34px, 11vw, 48px); }
    .metric-label { font-size: 9px; letter-spacing: .07em; }
    .metric--note span { font-size: 13px; padding-left: 12px; }

    .portfolio-matrix-cell { min-height: 82px; padding-inline: 8px; }
    .portfolio-matrix-cell__logo,
    svg.portfolio-matrix-cell__logo { max-width: 92px; max-height: 26px; }
    .portfolio-matrix-cell__logo--gallery { width: 48px; height: 48px; }
    .portfolio-modal { padding: 8px; }
    .portfolio-modal__content { max-height: calc(100dvh - 16px); }
    .portfolio-dialog__visual,
    .portfolio-dialog__visual > img { min-height: 180px; max-height: 220px; }
    .portfolio-dialog__details { padding: 26px 18px; }
    .modal-info-grid { grid-template-columns: 1fr; }
    .modal-footer-actions { align-items: stretch; flex-direction: column; }
    .modal-visit-btn, .modal-close-pill-btn { width: 100%; }

    .update-row { grid-template-columns: minmax(0, 1fr) 20px; }
    .pitch-form__actions, .army-form-submit { align-items: stretch; }

    .army-hero { min-height: 100dvh; padding-bottom: 52px; }
    .army-hero__title { max-width: 11ch; font-size: clamp(38px, 11vw, 56px); }
    .army-badge-pill { max-width: 100%; font-size: 9px; letter-spacing: .07em; }
    .army-hero__actions { width: 100%; }
    .army-hero__actions .button { width: 100%; }
}

@media (max-width: 360px) {
    .page-shell { width: calc(100% - 24px); }
    .hero__title-line-wrap { font-size: 34px; }
    .full-menu__shell { width: calc(100% - 24px); }
    .full-menu__link { font-size: 26px; }
    .edge-item { grid-template-columns: 1fr; gap: 8px; }
}

@media (orientation: landscape) and (max-height: 560px) {
    .hero__content { padding-top: 80px; padding-bottom: 26px; }
    .hero__title-line-wrap { font-size: clamp(34px, 7vw, 58px); }
    .full-menu__shell { padding-top: 78px; padding-bottom: 28px; }
    .full-menu__list { gap: 8px; }
    .full-menu__link { font-size: clamp(24px, 5vw, 40px); }
}

/* The About cards have their own scroll-stack physics. Keep generic photo
   reveals, crops, wipes, and stagger delays out of this one sequence. */
.motion-ready .scroll-stack-card__media {
    clip-path: none;
    transition: none;
}

.motion-ready .scroll-stack-card__media::after {
    display: none;
}

.motion-ready .scroll-stack-card__media > img,
.motion-ready .scroll-stack-card.is-revealed .scroll-stack-card__media > img {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
    transition: none;
    will-change: auto;
}

.motion-ready .scroll-stack-card:hover .scroll-stack-card__media > img {
    transform: scale(1.02);
    transition: transform 700ms var(--ease-out);
}

/* Keep the About cascade active from compact laptop width upward. Tablet
   behavior will be tailored separately once its direction is decided. */
@media (min-width: 768px) {
    .statement-stack-container {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        gap: clamp(40px, 5vw, 80px);
    }

    .statement-sticky-col {
        position: sticky;
        top: clamp(100px, 14vh, 140px);
        align-self: start;
    }

    .statement-sticky-col .statement-copy {
        position: static;
        z-index: 10;
        will-change: auto;
    }

    .scroll-stack-wrapper {
        display: block;
        padding-bottom: clamp(50vh, 65vh, 80vh);
        overflow: visible;
    }

    .scroll-stack-card {
        position: sticky;
        inset-inline: auto;
        top: clamp(100px, 12vh, 130px);
        margin-bottom: clamp(50px, 8vh, 85px);
        transition: none;
        will-change: auto;
    }

    .scroll-stack-card__inner { display: block; }
    .scroll-stack-card__media { min-height: 0; aspect-ratio: 4 / 2.7; }
    .scroll-stack-card__content { display: block; }
}

/* Homepage, portfolio, team, and Army refinements — kept last to override legacy layouts. */
.portfolio-view-container { position: relative; }
.portfolio-matrix-grid { min-height: 0; }
.portfolio-page-status { position: absolute; right: 0; bottom: -34px; margin: 0; color: rgba(10,10,10,.52); font: 500 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.portfolio-side-arrow[hidden] { display: none; }
.team-grid--people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 82px); margin-top: clamp(44px, 7vw, 90px); }
.team-profile__portrait { overflow: hidden; aspect-ratio: 4 / 5; background: #e8e7e3; }
.team-profile__portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-profile__meta { display: grid; gap: 5px; padding-top: 18px; }
.team-profile__meta h3 { margin: 0; color: var(--ink); font-size: clamp(22px, 2vw, 30px); letter-spacing: -.035em; }
.team-profile__meta p { margin: 0; color: rgba(10,10,10,.62); font-size: 14px; }
.team-profile__meta a { width: fit-content; margin-top: 10px; color: var(--ink); font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.pitch__email-copy { max-width: 30ch; margin-top: 28px; color: rgba(255,255,255,.78); font-size: clamp(19px, 2vw, 28px); line-height: 1.35; }
.pitch__email-copy a { color: var(--yellow); text-decoration: none; border-bottom: 1px solid currentColor; }
#curriculum .army-curriculum-list--timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(44px, 7vw, 86px); border-top: 1px solid rgba(255,255,255,.28); }
#curriculum .army-curriculum-list--timeline .army-curr-row { display: grid; grid-template-columns: 1fr; gap: 24px; min-height: 300px; padding: 26px clamp(18px, 2vw, 32px) 28px; border-right: 1px solid rgba(255,255,255,.22); }
#curriculum .army-curriculum-list--timeline .army-curr-row:first-child { padding-left: 0; }
#curriculum .army-curriculum-list--timeline .army-curr-row:last-child { border-right: 0; }
#curriculum .army-curriculum-list--timeline .army-curr-month { color: var(--yellow); font-size: 10px; letter-spacing: .13em; }
#curriculum .army-curriculum-list--timeline .army-curr-content h3 { max-width: 11ch; margin: 0 0 14px; font-size: clamp(24px, 2.25vw, 34px); line-height: 1.02; letter-spacing: -.035em; }
#curriculum .army-curriculum-list--timeline .army-curr-content p { max-width: 29ch; margin: 0; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.55; }
.army-apply-section .form-group label { font-size: clamp(14px, 1vw, 16px); letter-spacing: .08em; }
@media (max-width: 1024px) { .portfolio-matrix-grid { grid-template-columns: repeat(4, 1fr); } #curriculum .army-curriculum-list--timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } #curriculum .army-curriculum-list--timeline .army-curr-row:nth-child(2) { border-right: 0; } #curriculum .army-curriculum-list--timeline .army-curr-row:nth-child(-n + 2) { border-bottom: 1px solid rgba(255,255,255,.22); } #curriculum .army-curriculum-list--timeline .army-curr-row:nth-child(3) { padding-left: 0; } }
@media (max-width: 768px) { .portfolio-view-container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; row-gap: 18px; } .portfolio-matrix-grid { grid-column: 1 / -1; grid-row: 1; grid-template-columns: repeat(3, 1fr); } .portfolio-side-arrow { display: flex; position: static; transform: none; width: 44px; height: 44px; margin: 0; } .portfolio-side-arrow--prev { grid-column: 1; grid-row: 2; justify-self: start; } .portfolio-side-arrow--next { grid-column: 3; grid-row: 2; justify-self: end; } .portfolio-page-status { position: static; grid-column: 2; grid-row: 2; white-space: nowrap; text-align: center; } .team-grid--people { grid-template-columns: 1fr; } #curriculum .army-curriculum-list--timeline { grid-template-columns: 1fr; } #curriculum .army-curriculum-list--timeline .army-curr-row, #curriculum .army-curriculum-list--timeline .army-curr-row:nth-child(2) { min-height: 0; padding: 24px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); } #curriculum .army-curriculum-list--timeline .army-curr-row:last-child { border-bottom: 0; } }
@media (max-width: 440px) { .portfolio-matrix-grid { grid-template-columns: repeat(2, 1fr); } .portfolio-page-status { font-size: 9px; } }
.portfolio-side-arrow:disabled { visibility: visible; opacity: .32; }

.logo-source--white { mix-blend-mode: normal; }
.logo-source--black { filter: invert(1); mix-blend-mode: normal; }

/* The supplied raster mark carries generous built-in padding; compensate only at
   the small site-logo scale while retaining the exact artwork and proportions. */
.site-logo .logo-source { transform: scale(1.55); }
/* Feedback corrections: preserve the reference hero composition and strengthen key destinations. */
.hero__copy {
    position: absolute;
    left: 50%;
    top: 63svh;
    bottom: auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    max-width: calc(100% - 40px);
    text-align: center;
    transform: translateX(-50%);
    isolation: isolate;
}
@media (min-width: 769px) {
    .hero__copy::before {
        content: '';
        position: absolute;
        z-index: -1;
        left: 50%;
        top: 50%;
        width: min(112vw, 1700px);
        height: 330px;
        pointer-events: none;
        background: radial-gradient(ellipse at center, rgba(2, 4, 7, .62) 0%, rgba(2, 4, 7, .4) 42%, rgba(2, 4, 7, .14) 64%, rgba(2, 4, 7, 0) 79%);
        opacity: 0;
        transform: translate(-50%, -45%);
        transition: opacity var(--duration-slow) var(--ease-smooth-out);
    }
    body.is-intro-complete .hero__copy::before { opacity: 1; }
}
.hero__title { max-width: none; margin: 0; align-items: center; }
.hero__title-line-wrap { font-size: clamp(66px, min(5.5vw, 10.5svh), 108px); line-height: .9; letter-spacing: -.035em; white-space: nowrap; }
.hero__title-line-wrap--accent { font-size: calc(clamp(88px, min(7.5vw, 14.5svh), 190px) + 1.333px); }
.hero__title-word {
    text-shadow: 0 2px 12px rgba(0, 0, 0, .46), 0 14px 34px rgba(0, 0, 0, .34);
}
.hero__details {
    position: absolute;
    top: calc(100% + clamp(48px, 5vh, 64px));
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.2vw, 18px);
    width: max-content;
    max-width: calc(100vw - 40px);
    font-family: var(--font-mono);
    font-size: clamp(11px, .9vw, 14px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
    text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
    transform: translate3d(-50%, 10px, 0);
    opacity: 0;
    transition: opacity 560ms var(--ease-smooth-out) 580ms, transform 560ms var(--ease-smooth-out) 580ms;
}
.hero__detail { display: inline-flex; align-items: baseline; gap: .55em; white-space: nowrap; }
.hero__detail-label { color: rgba(255, 255, 255, .72); }
.hero__detail strong { color: var(--white); font-weight: 700; letter-spacing: .1em; }
body.is-intro-complete .hero__details { opacity: 1; transform: translate3d(-50%, 0, 0); }
.pitch { padding: clamp(72px, 9vw, 128px) 0; }
.pitch__inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr); align-items: stretch; gap: clamp(42px, 7vw, 110px); }
.pitch__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: clamp(30px, 5vw, 72px); }
.pitch__visual { position: relative; min-height: 520px; margin: 0; overflow: hidden; background: #151515; clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px)); }
.pitch__visual::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5,5,5,.04), rgba(5,5,5,.48)); }
.pitch__visual img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.06); transition: transform 700ms var(--ease-smooth-out); }
.pitch__inner:hover .pitch__visual img { transform: scale(1.025); }
.pitch__email-copy { margin-bottom: 0 !important; }

#curriculum .army-curriculum-list--timeline .army-curr-row,
#curriculum .army-curriculum-list--timeline .army-curr-row:first-child { padding: 30px clamp(24px, 2.4vw, 38px) 32px; }

@media (max-width: 1024px) {
    #curriculum .army-curriculum-list--timeline .army-curr-row:nth-child(3) { padding-left: clamp(24px, 2.4vw, 38px); }
}

@media (max-width: 768px) {
    .hero__content { padding-bottom: max(42px, calc(env(safe-area-inset-bottom) + 28px)); }
    /* Mobile art direction: extend the room behind the copy, then use a compact
       lower fade so the headline remains readable without a large black field. */
    .hero { --hero-image-scale: 1; background: #05080d; }
    .hero::before {
        inset: 0;
        background-image: var(--home-mobile-hero-image, url('assets/hero-home-mobile.webp?v=1'));
        background-position: center top;
        background-size: cover;
        background-repeat: no-repeat;
    }
    .hero::after {
        background: linear-gradient(180deg, rgba(5, 8, 13, 0) 58%, rgba(5, 8, 13, .06) 70%, rgba(5, 8, 13, .42) 86%, rgba(5, 8, 13, .84) 95%, #05080d 100%);
        opacity: 1;
    }
    body.is-intro-complete .hero::after { opacity: 1; }
    /* Keep the final mobile copy on an ordinary layout layer. Safari and Opera
       can crop descenders when text is inside a transformed compositing layer. */
    .hero__copy { left: 22px; right: 22px; top: auto; bottom: max(72px, calc(env(safe-area-inset-bottom) + 52px)); width: auto; transform: none; align-items: center; text-align: center; }
    .hero__title { margin-left: 0; align-items: center; }
    .hero__title-line-wrap { width: 100%; justify-content: center; font-size: clamp(38px, 10.6vw, 46px); line-height: 1.08; white-space: normal; }
    .hero__title-line-wrap--accent { font-size: calc(clamp(34px, 9.3vw, 44px) + 1.333px); line-height: 1.14; letter-spacing: -.05em; }
    .hero__title-mask { display: block; width: 100%; max-width: 100%; overflow: visible; padding: 0 0 .18em; margin: 0; }
    .hero__title-word { display: block; max-width: 100%; white-space: normal; transform: none !important; filter: none !important; will-change: auto; opacity: 1 !important; transition: none; }
    .motion-ready .hero__title-line-wrap { opacity: 0; transform: translateY(8px); transition: opacity var(--duration-very-slow) var(--ease-in-out), transform var(--duration-very-slow) var(--ease-in-out); }
    body.is-intro-complete .hero__title-line-wrap { opacity: 1; transform: none; }
    body.is-intro-complete .hero__title-line-wrap--accent { transition-delay: var(--duration-micro); }
    .hero__details { top: calc(100% + 17px); left: 0; right: 0; width: auto; justify-content: center; gap: 8px; max-width: none; font-size: clamp(9px, 2.45vw, 11px); letter-spacing: .095em; transform: translateY(10px); }
    body.is-intro-complete .hero__details { transform: none; }
    .hero__detail { gap: .4em; }
    .pitch__inner { grid-template-columns: 1fr; gap: 36px; }
    .pitch__copy { padding-block: 0; }
    .pitch__visual { min-height: 0; aspect-ratio: 4 / 3; }
    #curriculum .army-curriculum-list--timeline .army-curr-row,
    #curriculum .army-curriculum-list--timeline .army-curr-row:nth-child(2),
    #curriculum .army-curriculum-list--timeline .army-curr-row:nth-child(3) { padding: 26px 22px; }
}

@media (max-width: 360px) {
    .hero__title-line-wrap { font-size: clamp(35px, 10.4vw, 38px); }
    .hero__title-line-wrap--accent { font-size: calc(clamp(31px, 9.2vw, 35px) + 1.333px); }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .motion-ready .hero__title-line-wrap { opacity: 1; transform: none; transition: none; }
}

/* Phone-only thesis treatment: the statement stands on its own. */
@media (max-width: 767px) {
    .section--statement .statement-story-progress { display: none; }
    .section--statement .scroll-stack-wrapper { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .pitch__visual img { transition: none; }
}

/* Final layout polish: keep the founders and application form comfortably inside the viewport. */
.section--team { scroll-margin-top: 132px; }
.section--team .team-grid--people { margin-top: clamp(38px, 4vw, 64px); }
.team-grid--people .team-profile__portrait {
    aspect-ratio: 4 / 3;
    max-height: min(52svh, 560px);
    background: #d9d9d9;
}
.team-grid--people .team-profile__portrait img {
    object-fit: contain;
    object-position: center bottom;
}
.team-grid--people .team-profile__portrait .team-profile__img--photo {
    object-fit: cover;
    object-position: center 34%;
}
.team-grid--people .team-profile__portrait .team-profile__img--hershel {
    object-position: center 53%;
}
.team-grid--people .team-profile__portrait .team-profile__img--placeholder-one {
    object-position: center 45%;
}
.team-grid--people .team-profile__portrait .team-profile__img--thirupathi {
    object-position: center 46%;
}
.team-grid--people .team-profile__meta { padding-top: 16px; }

/* Keep the Army partner roster in the same quiet portrait system as the
   homepage team rather than reverting to the older bordered card treatment. */
#mentors .army-mentor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 5vw, 82px);
    margin-top: clamp(44px, 6vw, 76px);
}
#mentors .army-mentor-grid .team-profile__portrait {
    aspect-ratio: 4 / 3;
    max-height: min(52svh, 560px);
}
#mentors .army-mentor-grid .team-profile__meta { padding-top: 16px; }

.army-apply-section { padding: 0; background: #06080b; overflow: hidden; }
.army-apply__header {
    position: relative;
    isolation: isolate;
    min-height: clamp(520px, 48vw, 680px);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.army-apply__header::after {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 0;
    background: var(--army-application-image, url('assets/real-army-community.webp')) 56% center / cover no-repeat;
    transform: scale(1.035);
}
.army-apply__header::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 6, 9, .88) 0%, rgba(4, 6, 9, .74) 42%, rgba(4, 6, 9, .32) 70%, rgba(4, 6, 9, .12) 100%);
    pointer-events: none;
}
.army-apply__header-inner {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 80px), 1320px);
    max-width: 1320px;
    margin-inline: auto;
}
.army-apply__intro {
    max-width: 47rem;
    padding: 0;
}
.army-apply__intro::before { display: none; }
.army-apply__intro h2 {
    max-width: 14ch;
    font-size: clamp(50px, 4.8vw, 76px);
    line-height: .96;
    text-transform: none;
}
.army-apply__intro h2 .text-accent { color: inherit; }
/* This editorial banner needs a stable, high-contrast message rather than the
   section-wide scroll illumination treatment used elsewhere on the page. */
.army-apply__intro .framer-scroll-char,
.army-apply__intro .framer-scroll-char.is-illuminated { color: #F4F0EA !important; }
.army-apply__intro > p:not(.section-label) {
    max-width: 31ch;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.55;
}
.army-apply__form-surface {
    position: relative;
    padding-block: clamp(72px, 8vw, 112px);
    background: #0c0c0c;
}
.army-apply__form-surface::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: clamp(36px, 4vw, 64px);
    transform: translateY(-100%);
    background: linear-gradient(180deg, transparent, #0c0c0c);
    pointer-events: none;
}
.army-apply__form-surface .army-form {
    width: 100%;
    max-width: 800px;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.army-apply__form-surface .army-form-grid { gap: 22px; }
.army-apply__form-surface .form-group input,
.army-apply__form-surface .form-group textarea { background: rgba(255, 255, 255, .045); }

@media (min-width: 769px) {
    .army-apply__intro {
        margin: 0;
        max-width: 48rem;
    }
    .army-apply__intro::before { display: none; }
    .army-apply__intro { transform: translateY(-82px); }
    .army-apply__intro h2 { transform: translateY(-10px); }
    .army-apply__intro > p:not(.section-label) { margin-top: 58px; transform: translateY(170px); }
    .army-apply__form-surface .army-form {
        width: 100%;
        justify-self: stretch;
    }
}

@media (min-width: 1025px) {
    /* Keep Brendan's face clear; the copy uses the open lower area instead. */
    .army-hero__inner { transform: translateY(clamp(26px, 3vw, 52px)); }
}

@media (max-width: 768px) {
    .section--team { scroll-margin-top: 104px; }
    .team-grid--people .team-profile__portrait {
        aspect-ratio: 5 / 4;
        max-height: none;
    }
    #mentors .army-mentor-grid {
        grid-template-columns: 1fr;
        gap: 42px;
        margin-top: 38px;
    }
    #mentors .army-mentor-grid .team-profile__portrait {
        aspect-ratio: 5 / 4;
        max-height: none;
    }
    .army-apply__header { min-height: 0; display: flex; flex-direction: column; padding-top: 0; }
    .army-apply__header::after {
        position: relative;
        inset: auto;
        z-index: auto;
        display: block;
        width: 100%;
        height: min(72vw, 350px);
        order: -1;
        flex: none;
        background-position: 55% center;
        transform: none;
    }
    .army-apply__header::before { display: none; }
    .army-apply__header-inner {
        width: auto;
        max-width: none;
        margin: 0;
        padding: 38px max(20px, env(safe-area-inset-left)) 42px;
        background: #0c0c0c;
    }
    .army-apply__intro {
        max-width: 34rem;
        padding: 0;
    }
    .army-apply__intro::before { display: none; }
    .army-apply__intro h2 { font-size: clamp(42px, 11.5vw, 62px); }
    .army-apply__intro > p:not(.section-label) { margin-top: 22px; }
    .army-apply__form-surface { padding: 0 0 72px; }
    .army-apply__form-surface::before { display: none; }
    .army-apply__form-surface .army-form { margin-top: 0; padding-top: 0; }
}

@media (max-width: 440px) {
    .army-apply__header-inner { padding-top: 34px; padding-bottom: 36px; }
    .army-apply__form-surface { padding-bottom: 64px; }
    .army-apply__intro h2 { font-size: clamp(40px, 12vw, 52px); }
}

/* Army page — phone composition.  These rules deliberately live at the end of
   the stylesheet so the desktop art direction remains completely untouched. */
@media (max-width: 768px) {
    .army-page {
        overflow-x: clip;
    }

    .army-hero {
        min-height: max(640px, 100dvh);
        align-items: flex-end;
        padding-top: max(104px, calc(env(safe-area-inset-top) + 76px));
        padding-bottom: max(42px, calc(env(safe-area-inset-bottom) + 24px));
    }
    .army-hero__inner {
        width: min(calc(100% - 40px), 620px);
    }
    .army-hero__title {
        max-width: 12ch;
        margin-bottom: 20px;
        overflow-wrap: anywhere;
    }
    .army-hero__lead {
        margin-bottom: 28px;
        max-width: 35ch;
    }
    .army-hero__actions {
        width: 100%;
        gap: 10px;
    }
    .army-hero__actions .button {
        min-height: 50px;
        justify-content: center;
    }

    #curriculum {
        scroll-margin-top: 84px;
    }
    #curriculum .army-curriculum-journey {
        gap: 38px;
        padding-bottom: 8px;
    }
    #curriculum .army-curr-phase {
        min-height: 0;
    }
    #curriculum .army-curr-content h3 {
        overflow-wrap: anywhere;
    }

    #mentors .army-mentor-grid {
        gap: 36px;
    }

    .army-apply__header::after {
        height: auto;
        aspect-ratio: 4 / 3;
        max-height: 350px;
        background-position: 55% center;
    }
    .army-apply__header-inner {
        padding-right: max(20px, env(safe-area-inset-right));
        padding-left: max(20px, env(safe-area-inset-left));
    }
    .army-apply__intro h2 {
        max-width: 12ch;
        line-height: 1;
        overflow-wrap: anywhere;
    }
    .army-apply__form-surface {
        padding-bottom: max(64px, calc(env(safe-area-inset-bottom) + 36px));
    }
    .army-apply__form-surface .page-shell {
        width: min(calc(100% - 40px), 620px);
    }
    .army-apply__form-surface .army-form-grid {
        gap: 18px;
    }
    .army-apply-section .form-group input,
    .army-apply-section .form-group textarea {
        font-size: 16px;
    }
}

@media (max-width: 520px) {
    .army-hero__inner,
    .army-apply__form-surface .page-shell {
        width: min(calc(100% - 32px), 480px);
    }
    .army-hero {
        min-height: max(620px, 100dvh);
    }
    .army-hero__title {
        max-width: 11ch;
        font-size: clamp(38px, 10.6vw, 52px);
    }
    .army-hero__lead {
        font-size: 15px;
        line-height: 1.52;
    }
    .army-apply__header::after {
        aspect-ratio: 5 / 4;
    }
}


/* First-view loader: only critical media delays the page, then the existing
   hero choreography takes over. */
.page-loader {
    isolation: isolate;
    opacity: 1;
    transition: opacity 400ms var(--ease-smooth-out), visibility 0s linear 400ms;
}
.page-loader::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(255, 241, 131, .075), transparent 52%);
}
.page-loader__inner { position: relative; z-index: 1; }
.page-loader img { animation: page-loader-logo 1300ms var(--ease-smooth-out) both; }
.page-loader__line { animation: page-loader-line 1150ms var(--ease-linear) infinite; }
.page-loader.is-exiting { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes page-loader-logo {
    from { opacity: 0; transform: translateY(10px) scale(.94); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes page-loader-line {
    0%, 100% { transform: scaleX(.2); opacity: .42; }
    50% { transform: scaleX(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .page-loader img, .page-loader__line { animation: none; }
    .page-loader { transition-duration: 150ms; }
}

/* Phone-only intro contrast: this lives over the lamp's highlight, without
   changing the desktop composition or turning the lower hero into a dark bar. */
@media (max-width: 768px) {
    .hero-intro {
        --hero-intro-offset-y: clamp(104px, 17svh, 148px);
        isolation: isolate;
        text-shadow: 0 2px 8px rgba(0, 0, 0, .78), 0 10px 24px rgba(0, 0, 0, .55);
    }
    .hero-intro::before {
        content: '';
        position: absolute;
        z-index: -1;
        left: 50%;
        top: 50%;
        width: min(132vw, 540px);
        height: 180px;
        pointer-events: none;
        background: radial-gradient(ellipse at center, rgba(3, 6, 10, .7) 0%, rgba(3, 6, 10, .44) 46%, rgba(3, 6, 10, 0) 78%);
        transform: translate(-50%, -50%);
    }
}

/* Sanity can replace the partner cards after scroll observers initialize.
   Keep dynamically rendered cards visible on every viewport. */
.motion-ready #mentors .army-mentor-grid .team-profile {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
}

@media (max-width: 768px) {

    #mentors .army-mentor-grid {
        margin-top: 30px;
    }

    #mentors .army-mentor-grid .team-profile__portrait {
        aspect-ratio: 4 / 3;
    }

    .army-hero {
        /* Leave room for iOS and in-app browser controls.  A full small
           viewport made the next section start behind the browser chrome even
           though the hero content itself already fits comfortably. */
        min-height: clamp(720px, 88svh, 900px);
    }

    .army-hero::after {
        /* Portrait art direction for phones: this is a dedicated version of
           the founders' image, not a heavily cropped landscape fallback. */
        background-image: var(--army-mobile-hero-image, url('assets/army-hero-mobile-partners.png'));
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
    }

    .army-hero::before {
        /* Keep both founders unobscured. Contrast is needed only behind the
           lower copy, not across the top portrait. */
        background: linear-gradient(180deg,
            rgba(4, 6, 9, .03) 0%,
            rgba(4, 6, 9, .03) 35%,
            rgba(4, 6, 9, .18) 53%,
            rgba(4, 6, 9, .72) 73%,
            rgba(4, 6, 9, .96) 100%);
        -webkit-mask-image: none;
        mask-image: none;
    }

    /* A phone may open directly onto a later section or restore a saved scroll
       position. Do not make essential Army content depend on an intersection
       callback in those cases: the mobile composition is intentionally static
       and immediately readable. */
    .motion-ready .army-page .reveal-on-scroll,
    .motion-ready #curriculum .army-curr-phase,
    .motion-ready #curriculum .army-curr-phase__mobile-node {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
    .motion-ready #curriculum .army-curriculum-journey::before {
        transform: none;
        transition: none;
    }
}

/* CMS headings can wrap differently from the original copy. Leave enough
   leading for descenders and capitals on adjacent lines at every viewport. */
.section-heading h2,
.statement-copy h2,
.portfolio-heading,
.pitch h2,
.section--team .section-heading--split h2,
.army-hero__title,
.army-apply__intro h2,
#curriculum .army-curriculum-list--timeline .army-curr-content h3,
.signal-lead h3 {
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.framer-scroll-word {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}
