/* ============================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
============================================================ */
:root {
    /* Colors */
    --dark:          #131313;
    --white:         #ececec;
    --grey:          #272727;
    --muted-white:   #d0d0d0;
    --purple:        #563CFF;
    --accent-pink:   #563CFF;
    --blue:          #FF8C89;

    /* Radii & spacing */
    --br-large:   3px;
    --br-small:   3px;
    --br-padding: 9px;

    /* Utility tokens */
    --border:         rgba(255, 255, 255, 0.07);
    --border-hover:   rgba(255, 255, 255, 0.16);
    --text-muted:     rgba(255, 255, 255, 0.35);
    --text-secondary: rgba(255, 255, 255, 0.55);
    --surface:        rgb(33, 33, 33);
    --surface-hover:  rgba(255, 255, 255, 0.04);

    /* Typography */
    --font:     'DM Sans', sans-serif;
    --bodyFont: 'Kode Mono', sans-serif;

    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:   cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-smooth:   cubic-bezier(0.4, 0, 0.2, 1);
}

::selection {
    background-color: var(--accent-pink);
    color: #ffffff;
}

/* ============================================================
   PAGE TRANSITIONS (View Transitions API)
============================================================ */
@view-transition {
    navigation: auto;
}

/* Prevent cross-fade blending — keep pages stacked perfectly */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

/* Apply the vertical mask + upward wipe animation */
::view-transition-new(root) {
    animation: 1s var(--ease-smooth) both vertical-heavy-wipe;
    mask-image: linear-gradient(
        to top,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) var(--wipe-vertical-progress),
        rgba(0, 0, 0, 0) calc(var(--wipe-vertical-progress) + 35%),
        rgba(0, 0, 0, 0) 100%
    );
    mask-size: 100% 140%;
}

/* Custom property to drive the wipe animation */
@property --wipe-vertical-progress {
    syntax: '<percentage>';
    inherits: false;
    initial-value: -35%;
}

@keyframes vertical-heavy-wipe {
    from { --wipe-vertical-progress: -35%; }
    to   { --wipe-vertical-progress: 100%; }
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    background: var(--dark);
    color: var(--white);
    font-family: var(--font);
    cursor: none; /* Hidden — replaced by custom cursor */
    -webkit-font-smoothing: antialiased;
}

a      { text-decoration: none; color: inherit; cursor: none; }
button { cursor: none; }
img    { display: block; max-width: 100%; }

/* ============================================================
   LAYOUT HELPERS (shared across sections)
============================================================ */
section { position: relative; z-index: 1; }

.section-eyebrow {
    font-family: var(--bodyFont);
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.section-title {
    display: inline-flex;
    align-items: baseline;
    gap: 14px;
    font-size: clamp(3.2rem, 15vw, 6rem);
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1;
    color: var(--muted-white);
}

/* Reveal-on-scroll base state */
.reveal {
    width: 100%;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .75s var(--ease-out-expo),
                transform .75s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.delay-4 { transition-delay: .45s; }

/* Buttons (shared: hero, case study "back" link, etc.) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 28px;
    border-radius: var(--br-large);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: .75px solid transparent;
    transition: transform .35s var(--ease-spring),
                background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px) scale(1.04); }

.btn-solid,
.btn-ghost {
    width: fit-content;
    padding: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--br-large);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: border-color .3s, color .3s, background .3s,
                transform .35s var(--ease-spring);
}

.btn-solid {
    background: var(--white);
    color: var(--dark);
}
.btn-solid:hover {
    background: var(--purple);
    color: var(--white);
}

.btn-ghost {
    background: var(--surface);
    color: var(--white);
}
.btn-ghost:hover {
    background: var(--grey);
    border-color: var(--border-hover);
    color: var(--white);
}
.btn-ghost svg {
    transform: rotate(0deg);
    transition: .3s var(--ease-out-expo);
}
.btn-ghost:hover svg {
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .btn, .btn-solid, .btn-ghost { padding: 24px; }
    .btn-span{display: none; } /* Hide text on smaller screens, show only icon */
}
@media (max-width: 480px) {
    .btn, .btn-solid, .btn-ghost { padding: 20px; }
    .btn-span{display: none; } /* Hide text on smaller screens, show only icon */
}

/* ============================================================
   SECTION 2 — INTERACTIVE GRID BACKGROUND
============================================================ */
#grid-canvas {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   CUSTOM CURSOR
============================================================ */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    pointer-events: none;
    z-index: 10004;
    transform: translate(-50%, -50%);
    transition: width .2s var(--ease-smooth),
                height .2s var(--ease-smooth),
                opacity .3s;
    will-change: left, top;
    mix-blend-mode: difference;
}
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 45px;
    height: 45px;
    border: 1px dashed var(--white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10004;
    transform: translate(-20%, -20%);
    transition: width .3s var(--ease-smooth),
                height .3s var(--ease-smooth),
                border-color .3s,
                opacity .3s;
    will-change: left, top;
    mix-blend-mode: difference;
}

/* Cursor states */
.cursor-dot.hovered  { width: 22px; height: 22px; }
.cursor-ring.hovered { width: 58px; height: 58px; border-color: var(--white); opacity: .75; }
.cursor-dot.clicked  { transform: translate(-50%, -50%) scale(.7); }
.cursor-ring.clicked { width: 30px; height: 30px; }

@media (max-width: 768px) {
    /* No cursor device on touch — disable custom cursor entirely */
    body          { cursor: auto; }
    .cursor-dot,
    .cursor-ring  { display: none; }
}

/* ============================================================
   MINIMAL VIDEO PLAYER — PLAY/PAUSE ONLY, NO NATIVE CONTROLS
============================================================ */

.video-wrap {
    position: relative;
    margin: 0 auto;
    border-radius: var(--br-small);
    overflow: hidden;
    background: #0a0a0a;
    cursor: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease;
}

.modern-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: var(--br-small);
    outline: none;
    pointer-events: none; /* prevents any native browser click/tap behavior on the video itself */
}

/* ------------------------------------------------------------
   Button visibility logic:
   - Paused: always visible (so users can find the play button)
   - Playing: hidden by default, shown only when hovering the wrap
     or when explicitly marked "recently interacted" via JS class
------------------------------------------------------------ */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 76px;
    height: 76px;
    border-radius: var(--br-small);
    background: #21212180;
    backdrop-filter: blur(29px);
    -webkit-backdrop-filter: blur(29px);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    padding: 0;
    opacity: 1;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.25s ease,
                opacity 0.3s ease;
}

.video-play-overlay svg {
    width: 28px;
    height: 28px;
    color: var(--white);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
}

.video-play-overlay .icon-play {
    margin-left: 2px;
}

.video-play-overlay .icon-pause {
    opacity: 0;
}

.video-wrap.is-playing .video-play-overlay .icon-play {
    opacity: 0;
}

.video-wrap.is-playing .video-play-overlay .icon-pause {
    opacity: 1;
}

.video-play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: #21212180;
}

/* Default state while playing: button HIDDEN */
.video-wrap.is-playing .video-play-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Show it again when hovering the card, OR when JS marks
   the wrap as "controls-visible" (recent interaction / touch tap) */
.video-wrap.is-playing:hover .video-play-overlay,
.video-wrap.is-playing.controls-visible .video-play-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* ------------------------------------------------------------
   Loading pulse while buffering
------------------------------------------------------------ */
.video-wrap.is-loading::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    animation: video-pulse 1.4s ease-in-out infinite;
    z-index: 4;
    pointer-events: none;
}

@keyframes video-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}
@media (max-width: 600px) {
    .video-wrap {
        max-width: 100%;
    }
    .video-play-overlay {
        width: 56px;
        height: 56px;
    }
    .video-play-overlay svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================================
   NAVBAR
============================================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    padding: 20px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0);
}

.nav-logo-svg  { fill: var(--white); 
    mix-blend-mode: difference;}
.nav-logo-path { mix-blend-mode: difference; }

.nav-logo {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    position: relative;
    z-index: 1001;
}
.nav-logo span { color: var(--purple); }

.nav-left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 1001;
}

/* Availability badge */
.nav-avail {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .72rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.avail-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, .6);
    animation: blink 2.2s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* Hamburger */
.hamburger {
    background: none;
    border: none;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--white);
    transform-origin: center;
    transition: transform .45s var(--ease-out-expo), opacity .3s, width .3s;

}

/* Animated X state */
.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1200px) {
    #navbar { padding: 22px 36px; }
}
@media (max-width: 768px) {
    #navbar    { padding: 20px 24px; }
    .nav-avail { display: none; }
}
@media (max-width: 480px) {
    #navbar { padding: 20px 24px; }
}

/* ============================================================
   FULLSCREEN MENU
============================================================ */
.fs-menu {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Closed state */
    clip-path: inset(0 0 100% 0);
    transition: clip-path .65s var(--ease-out-expo);
}
.fs-menu.is-open { clip-path: inset(0 0 0% 0); }

.fs-menu-inner {
    position: relative;
    z-index: 1000; /* Stays above the ascii-media video */
    width: 100%;
    max-width: 1000px;
    padding: 0 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 40px;
}

/* Video preview shown when hovering a nav link */
.ascii-media {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 10001;
    pointer-events: none;
}
.ascii-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateX(10%);
    opacity: 0;
    transition: transform .5s cubic-bezier(0.1, 1, 0.3, 1),
                opacity .4s cubic-bezier(0.1, 1, 0.3, 1);
}
.ascii-media video.slide-in {
    transform: translateX(0);
    opacity: 1;
}

.fs-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fs-nav-item { overflow: hidden; }

.fs-nav-link {
    display: inline-flex;
    align-items: baseline;
    gap: 14px;
    font-size: clamp(3.2rem, 8vw, 6rem);
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1;
    color: var(--muted-white);
    transform: translateY(105%); /* Slide-up driven by parent .is-open */
    transition: transform .65s var(--ease-out-expo), color .2s, font-weight .2s;
}
.fs-menu.is-open .fs-nav-link { transform: translateY(0); }

/* Staggered reveal delays per link */
.fs-nav-item:nth-child(1) .fs-nav-link { transition-delay: .06s; }
.fs-nav-item:nth-child(2) .fs-nav-link { transition-delay: .12s; }
.fs-nav-item:nth-child(3) .fs-nav-link { transition-delay: .18s; }
.fs-nav-item:nth-child(4) .fs-nav-link { transition-delay: .24s; }
.fs-nav-item:nth-child(5) .fs-nav-link { transition-delay: .30s; }

.fs-nav-link:hover,
.fs-nav-link:hover .fs-nav-num {
    background-color: var(--accent-pink);
    color: var(--white);
    font-weight: 600;
    transition: transform .2s, color .2s, font-weight .2s;
}

.fs-nav-num {
    font-family: var(--bodyFont);
    font-size: .85rem;
    font-weight: 400;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .22);
    vertical-align: super;
}

/* Footer row inside menu */
.fs-menu-footer {
    font-family: var(--bodyFont);
    position: absolute;
    bottom: 40px;
    left: 48px;
    right: 48px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s .45s, transform .55s .45s;
}
.fs-menu.is-open .fs-menu-footer { opacity: 1; transform: translateY(0); }

.fs-footer-links { display: flex; gap: 22px; }
.fs-footer-links a {
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .3);
    transition: color .3s;
}
.fs-footer-links a:hover { color: var(--white); }

.fs-footer-mail {
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .28);
}

@media (max-width: 1200px) {
    .ascii-media    { display: none; } /* Hidden on smaller screens for perf/clarity */
    .fs-menu-inner  { padding: 0 36px; }
    .fs-menu-footer { left: 36px; right: 36px; }
}
@media (max-width: 768px) {
    .fs-menu-inner  { padding: 0 24px; }
    .fs-menu-footer {
        left: 24px;
        right: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
@media (max-width: 480px) {
    .fs-footer-links { flex-wrap: wrap; gap: 14px; }
}

/* ============================================================
   HERO SECTION
============================================================ */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 130px 48px 100px;
    position: relative;
}

.hero-inner { max-width: 1200px; margin: 0 auto; width: 100%; }

@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

/* Hero headline */
.hero-title {
    font-size: clamp(3.8rem, 9.5vw, 8.5rem);
    font-weight: 900;
    line-height: .97;
    letter-spacing: -.04em;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span {
    display: block;
    opacity: 0;
    transform: translateY(105%);
    animation: slide-up .95s var(--ease-out-expo) forwards;
}
.hero-title .line:nth-child(1) span { animation-delay: .38s; }
.hero-title .line:nth-child(2) span { animation-delay: .52s; }
.hero-title .line:nth-child(3) span { animation-delay: .66s; }

@keyframes slide-up { to { opacity: 1; transform: translateY(0); } }

/* Hollow/outline text */
.text-outline {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .28);
    color: transparent;
}

/* Hero bottom row */
.hero-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-top: 56px;
    opacity: 0;
    animation: fade-up .8s .85s var(--ease-out-expo) forwards;
}
.hero-desc {
    max-width: 360px;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-secondary);
}
.hero-desc strong { color: var(--white); font-weight: 600; }

.hero-actions { display: flex; gap: 14px; align-items: center; }

/* Scroll cue */
.scroll-cue {
    position: absolute;
    bottom: 38px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fade-up .7s 1.3s var(--ease-out-expo) forwards;
}
.scroll-cue-label {
    font-size: .6rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .22);
}
.scroll-cue-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .3), transparent);
    animation: pulse-line 2s infinite;
}
@keyframes pulse-line {
    0%   { transform: scaleY(0); transform-origin: top; }
    49%  { transform: scaleY(1); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 1200px) {
    #hero { padding: 120px 36px 90px; }
}
@media (max-width: 768px) {
    #hero { padding: 100px 24px 80px; }
    .hero-bottom { flex-direction: column; align-items: flex-start; gap: 32px; }
    .hero-desc   { max-width: 100%; }
}
@media (max-width: 480px) {
    #hero { padding: 100px 20px 80px; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   MARQUEE / TICKER
============================================================ */
.marquee-wrap {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--grey);
    padding: 18px 0;
}

.marquee-track {
    display: flex;
    gap: 50px;
    width: max-content;
    animation: ticker 22s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.marquee-item {
    font-family: var(--bodyFont);
    display: flex;
    align-items: center;
    gap: 50px;
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--text-muted);
    flex-shrink: 0;
}
.marquee-item::after {
    content: '●';
    font-size: .8rem;
    color: var(--purple);
}

/* ============================================================
   WORK SECTION (homepage grid + shared work-card component)
============================================================ */
#work { padding: 120px 0 20px 0; border-top: 1px solid var(--border); }

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.section-more {
    font-family: var(--bodyFont);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color .3s;
}
.section-more:hover { color: var(--white); }
.section-more .arr { display: inline-block; transition: transform .3s; }
.section-more:hover .arr { transform: translateX(5px); }

/* Work grid — asymmetric 12-col, 2-up by default */
.work-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}
#work .work-grid > .work-card { grid-column: span 6; }

/* Work card component (reused in all-projects grid too) */
.work-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 500px;
    min-height: 500px;
    position: relative;
    transition: border-color .35s, transform .5s var(--ease-out-expo);
}
.work-card a {
    display: flex;
    height: 100%;
    width: 100%;
    gap: 16px;
    flex-direction: column;
    pointer-events: auto;
}

/* Thumbnail container — anchors the absolutely-positioned
   img/video stack. display:flex REMOVED intentionally: it was
   causing the img + video to render side-by-side (50:50 split)
   instead of stacked on top of one another. */
.work-thumb {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--br-small);
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    transition: height .5s var(--ease-out-expo), border-radius .5s var(--ease-out-expo);
    /* Prevents hover/mouse events bubbling from children (svg icon,
       h3 title, etc) from re-firing mouseenter/mouseleave on the
       thumb itself, which was causing the video restart flicker. */
    pointer-events: auto;
}

.work-thumb-img,
.work-thumb-video {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: var(--br-small);
    pointer-events: none;
}

.work-thumb-img { z-index: 1; }

.work-thumb-video {
    z-index: 2;
    opacity: 0;
    transition: opacity .35s var(--ease-smooth);
}

[data-video-hover].video-active .work-thumb-video {
    opacity: 1;
}

.work-info {
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: space-between;
    padding: var(--br-padding);
    pointer-events: none;
}
.work-arrow { display: flex; flex-direction: row; }
.work-title {
    font-size: clamp(1.1rem, 6vw, 1.25rem);
    font-weight: 400;
    letter-spacing: -.01em;
    color: var(--muted-white);
}

/* Tag chip — used on filter pills & (optionally) work cards */
.chip {
    font-family: var(--bodyFont);
    background-color: var(--surface);
    font-size: .6rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    border-radius: var(--br-large);
    padding: 4px 8px;
    color: var(--text-muted);
    transition: border-color .3s, color .3s;
}

@media (max-width: 768px) {
    #work { padding: 60px 0 20px 0;}
    .work-grid { grid-template-columns: 1fr; }
    #work .work-grid > .work-card { grid-column: span 1; }
    .work-card:hover { transform: translateY(-4px); }
}

/* ============================================================
   ALL PROJECTS GRID + FILTERS (projects.html)
============================================================ */
.not-found{
    padding: 0 32px;
    height: 100vh;
    width: 100%;
}
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
}
.filter-pill {
    font-family: var(--bodyFont);
    border: 1px solid var(--border);
    border-radius: var(--br-large);
    padding: 9px 20px;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--surface);
    cursor: none;
    transition: border-color .3s, color .3s, background .3s;
}
.filter-pill:hover { border-color: var(--border-hover); color: var(--white); }
.filter-pill.active {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
    color: var(--white);
}

.all-projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}
.all-projects-grid .work-card { grid-column: span 6; }

.grid-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: .95rem;
}

@media (max-width: 768px) {
    .all-projects-grid .work-card { grid-column: span 12; }
}

/* ============================================================
   CASE STUDY PAGE
============================================================ */

.case-hero { padding: 150px 0 0; }

.case-hero-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}
.case-title {
    color: var(--muted-white);
    font-size: clamp(3.2rem, 15vw, 6rem);
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1;
    word-spacing: .15em;
}

.case-meta-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 48px 0;
    border-top: 1px solid var(--border);
    margin-bottom: 20px;
}
.case-meta-item .ci-label { margin-bottom: 8px; }

.ci-label {
    font-family: var(--bodyFont);
    font-size: clamp(0.5rem, 2.5vw, 0.75rem);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.ci-value {
    font-size: clamp(1.1rem, 7vw, 2rem);
    font-weight: 500;
    letter-spacing: -.03em;
}

.case-hero-image {
    width: 100%;
    max-height: 640px;
    overflow: hidden;
}
.case-hero-image img {
    width: 100%;
    height: 100%;
    max-height: 640px;
    object-fit: cover;
}

.case-body { padding: 70px 0 20px; }

.bold-text {
    font-size: clamp(1.1rem, 7vw, 2.6rem);
    font-weight: 500;
    letter-spacing: -.01em;
}

/* Stacked media frames */
.case-frames { padding: 40px 0 20px; }
.case-frame {
    margin-bottom: 18px;
    border-radius: var(--br-small);
    overflow: hidden;
}
.case-frame-media {
    aspect-ratio: 16 / 9;
    height: auto;
    width: 100%;
    object-fit: cover;
}

/* Split frame — 2 images side by side */
.case-frame-split {
    display: flex;
    gap: 18px;
    border: none;
    background: none;
    overflow: visible;
}
.case-frame-split-item {
    flex: 1 1 50%;
    min-width: 0;
    border-radius: var(--br-small);
    overflow: hidden;
}
.case-frame-split-item .case-frame-media {
    aspect-ratio: 6 / 7;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Summary section */
.case-summary {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}
.case-summary .section-eyebrow { margin-bottom: 18px; }

.case-next .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .case-hero      { padding: 130px 0 0; }
    .case-hero-top  { flex-direction: column; align-items: flex-start; }
    .case-meta-row  { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
    .case-frame { margin-bottom: 12px; }

    .case-frame-split {
        flex-direction: column;
        gap: 12px;
    }
    .case-frame-split-item { flex: 1 1 100%;}
    .case-frame-split-item .case-frame-media {
        height: auto;
        max-height: none;
    }
}
/* ============================================================
   PLAYBOOK SECTION (Floating Slides Deck)
============================================================ */
#Lab {
    padding: 120px 0;
    overflow: hidden;
}

.playbook-deck-wrapper {
    position: relative;
    width: 100%;
    margin-top: 48px;
    min-height: 520px;
    height: 55vh;
}
.playbook-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.playbook-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    gap: 60px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(40px);
    transition: opacity .6s var(--ease-out-expo),
                transform .6s var(--ease-out-expo);
    z-index: 1;
}
.playbook-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 2;
}

.play-slide-left {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
.play-slide-num {
    font-family: var(--bodyFont);
    font-size: .8rem;
    color: var(--purple);
    letter-spacing: .12em;
    margin-bottom: 20px;
}
.play-slide-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    color: var(--white);
    letter-spacing: -.02em;
    margin-bottom: 16px;
}
.play-slide-desc {
    font-size: .95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.play-slide-right {
    flex: 1 1 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.play-media-boundary {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.play-deck-media {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: var(--br-small);
    border: 1px solid var(--border);
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.playbook-deck-navigation { display: flex; gap: 12px; }
.deck-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--surface);
    border: 1px solid var(--border);
    color: var(--white);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ease-smooth);
}
.deck-nav-btn:hover {
    background-color: var(--purple);
    border-color: var(--purple);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .playbook-deck-wrapper {
        height: auto;
        min-height: 0;
        margin-top: 32px;
    }
    .playbook-slides-container {
        display: flex;
        flex-direction: column;
    }
    .playbook-slide {
        position: relative;
        flex-direction: column;
        gap: 32px;
        height: auto;
        opacity: 0;
        display: none; /* Safely hides inactive slides on mobile */
    }
    .playbook-slide.active {
        opacity: 1;
        display: flex;
        transform: none;
    }
    .play-slide-left  { width: 100%; }
    .play-slide-right { width: 100%; height: 350px; }
    .play-media-boundary { height: 100%; }
}

/* ============================================================
   EXPEDITION SECTION — 9 IMAGES, 3 WAVES, CROP-REVEAL TEXT
   Wave 3 has no exit animation — pinned stage ends purely
   because the scroll track itself ends (sticky-like release,
   hard cutoff, no fade).
============================================================ */

/* #expedition {
  position: relative;
}

#exp-scroll-space {
  position: relative;
}

#exp-fixed-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  padding-top: 60px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

#exp-fixed-stage.is-active {
  visibility: visible;
  pointer-events: auto;
}

.exp-text-center {
    position: relative;
    width: 100%;
    max-width: 1600px;
    min-height: 1px;
    padding: 60px 60px;
}

.exp-wave-text {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 1000px;
    transform: translateY(-50%);
    z-index: 4;
    opacity: 1;
    mix-blend-mode: difference;
}

.huge-title {
    font-family: var(--font);
    color: var(--muted-white);
    font-size: clamp(2.5rem, 7vw, 4rem);
    padding: 0 60px;
    text-align: start;
    font-weight: 300;
    line-height: 1;
    mix-blend-mode: difference;
}

.crop-reveal-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 1;
}

.crop-reveal-inner {
    display: inline-block;
    will-change: transform, opacity;
    line-height: 1;
}

.exp-parallax-img {
  position: absolute;
  border-radius: 4px;
  object-fit: cover;
  opacity: 1;
  will-change: transform;
}

#exp-img1 { width: 380px; height: 440px; top: 6%;    right: 10%;  z-index: 6; }
#exp-img2 { width: 350px; height: 450px; top: 10%;   right: 4%;  z-index: 6; }
#exp-img3 { width: 400px; height: 460px; bottom: 6%; right: 30%; margin-left: -170px; z-index: 2; }

#exp-img4 { width: 400px; height: 450px; top: 4%;     right: 30%; margin-left: -170px; z-index: 2; }
#exp-img5 { width: 350px; height: 400px; bottom: 4%;  right: 4%;  z-index: 2; }
#exp-img6 { width: 340px; height: 400px; bottom: 10%; right: 4%; z-index: 6; }

#exp-img7 { width: 320px; height: 380px; top: 12%;   right: 12%;  z-index: 6; }
#exp-img8 { width: 350px; height: 400px; top: 43%;    right: 4%; z-index: 6; }
#exp-img9 { width: 400px; height: 450px; top: 8%; right: 28%; margin-left: -150px; z-index: 2; }

@media (max-width: 900px) {
  .huge-title { padding: 0 30px; }
  .exp-text-center { padding: 0 20px; }

  .exp-parallax-img { width: 150px !important; height: 200px !important; margin-left: 0 !important; }

  #exp-img1 { left: 12%; top: 14%; }
  #exp-img2 { right: 5%; top: 25%; }
  #exp-img3 { left: 5%;  bottom: 12%; }

  #exp-img4 { left: 5%; top: 10%; }
  #exp-img5 { left: 5%;  top: 32%; }
  #exp-img6 { right: 5%; bottom: 12%; }

  #exp-img7 { left: 12%; top: 10%; }
  #exp-img8 { right: 5%; bottom: 4%; }
  #exp-img9 { left: 5%;  bottom: 12%; }
} */

/* ==========================================================================
    SHOWCASE SECTION STYLES & LAYOUT CONTROLS
    ========================================================================== */
#interactive-showcase {
    /* --- CSS CONTROLS FOR OVERLAP, IMAGE SIZING & HEIGHT --- */
    --image-height: 75vh;          /* Fixed height of the image frame in desktop view */
    --overlap-offset: -65%;         /* How much the left content overlaps on top of the image */
    --image-width-ratio: 35vw;      /* Controls width cover/span of the image frame */
    --image-fade-duration: 0.8s; 

    width: 100%;
    min-height: 100vh;
    padding: 120px 0 20px 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    
    /* CRITICAL FIX: Groups image and text into a single blend layer for difference mode */
    isolation: isolate;
}

.showcase-container {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
}

@media (min-width: 900px) {
    .showcase-container {
    /* Grid layout prioritizing exact fixed proportions */
    grid-template-columns: 1fr var(--image-width-ratio);
    align-items: flex-start;
    justify-content: start;
    gap: 0;
    height: var(--image-height); /* Pins frame height straight across */
    }
}

/* Left Column Styling */
.showcase-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Nav on top, dynamic text on bottom */
    z-index: 5; /* Sits above image layer for blending */
    height: 100%;
    box-sizing: border-box;
    position: relative;
    pointer-events: none; /* Passes click events through empty space */
}

/* Navigation List */
.showcase-nav {
    margin-bottom: 2rem;
    pointer-events: auto; /* Re-enables click events for menu items */
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-item {
    background: none;
    border: none;
    font-family: var(--bodyFont, sans-serif);
    font-size: clamp(0.7rem, 6vw, 0.8rem);
    font-weight: 500;
    letter-spacing: .08em;
    color: var(--text-muted, #777777);
    text-transform: uppercase;
    text-align: start;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-item:hover,
.nav-item.active {
    color: var(--muted-white);
}

/* Text Headline Styling (Bottom Pinned) */
.showcase-content {
    display: flex;
    align-items: flex-end;
    margin-top: auto; /* Pushes content down cleanly */
}

.showcase-text {
    width: 100%;
    font-family: var(--font, sans-serif);
    color: var(--muted-white) !important;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    text-align: start;
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0;
    mix-blend-mode: difference !important;
}

/* Right Column / Image Styling */
.showcase-right {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 380px;
    z-index: 1; /* Layer under text for difference mode calculation */
}

@media (min-width: 900px) {
    .showcase-right {
    /* Overlap and frame dimension controls applied here */
    margin-left: var(--overlap-offset);
    width: calc(100% - var(--overlap-offset));
    height: var(--image-height);
    }
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #1a1a1a;
}

.showcase-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity var(--image-fade-duration) cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity;
}

.showcase-img.active {
  opacity: 1;
  z-index: 2;
}

.showcase-img.next {
  opacity: 1;
  z-index: 3; /* Smoothly crossfades on top */
}

/* ==========================================================================
   CROP REVEAL INHERITANCE & DIFFERENCE BLEND FIX
   ========================================================================== */
.crop-word-wrapper,
.crop-reveal-mask,
.crop-reveal-inner {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  font-style: inherit !important;
  letter-spacing: inherit !important;
  text-transform: inherit !important;
  line-height: inherit !important;
}

.crop-word-wrapper {
  display: inline-block;
  white-space: nowrap;
}

.crop-reveal-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  isolation: auto;
}

.crop-reveal-inner {
  display: inline-block;
  will-change: transform;
  opacity: 1 !important; /* CRITICAL: Must stay 1 for mix-blend-mode to work */
}

/* Apply mix-blend-mode to both the container and inner animated spans */
.showcase-text,
.showcase-text .crop-reveal-mask,
.showcase-text .crop-reveal-inner,
.showcase-text .crop-word-wrapper {
  mix-blend-mode: difference !important;
  color: #ffffff !important; /* Must be bright white for difference mode to invert properly */
}
/* ============================================================
   ABOUT-MINI SECTION
============================================================ */
.about-info{
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.all-about{
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: space-between;
    border-top: var(--border) solid 1px;
    gap: 48px;
}
.about-label{
    display: flex;
    flex-direction: column;
    padding: 72px 0;
    width: 30%;
    gap: 24px;
}
.about-cards{
    display: flex;
    flex-direction: column;
    padding: 72px 0;
    width: 70%;
    gap: 24px;
}
.resp-mini{
    display: flex;
    flex-direction: row;
    width: 100%;
}
.all-about h3{
    font-family: var(--font);
    font-size: clamp(1.5rem, 6vw, 2rem);
    font-weight: 400;
    letter-spacing: -.02em;
    color: var(--muted-white);
    margin-bottom: 8px;
}
.list-of-mini{
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mini-wrapper{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font);
    font-size: clamp(0.8rem, 6vw, 1rem);
    color: var(--muted-white);
    padding: 0px 0;
}
.mini-experience{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
}
.mini-year, .mini-category{
    font-family: var(--bodyFont);
    font-size: clamp(0.7rem, 6vw, 0.8rem);
    font-weight: 500;
    letter-spacing: .08em;
    color: var(--text-muted);
    text-transform: uppercase;
}
.mini-title{
    font-family: var(--font);
    font-size: clamp(0.8rem, 6vw, 1rem);
    color: var(--muted-white);
    width: 57%;
    text-align: left;
}
.mini-category{
    width: 33%;
    text-align: left;
}
.mini-year{
    width: 10%;
    text-align: right;
}
.mini-info{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font-weight: 200;
    width: 100%;
    height: fit-content;
}
.mini-title span{
    font-family: var(--bodyFont);
    font-weight: 500;
    letter-spacing: .08em;
    color: var(--text-muted);
    text-transform: uppercase;
}
.bet-img img{
    width: 100vw;
    height: 90vh;
    object-fit: cover;
}
@media (max-width: 1200px) {
    .all-about{
        flex-direction: column;
        gap: 32px;
    }
    .about-cards{
        width: 100%;
        padding: 0 32px;
        padding-bottom: 48px;
    }
    .about-label{
        width: 100%;
        padding: 0 32px;
        padding-top: 48px;
    }
}
@media (max-width: 768px) {
    .mini-wrapper{
        align-items: flex-start;
        border-bottom: var(--border) solid 1px;
        padding-bottom: 12px;
    }
    .mini-experience{
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 24px;
    }
    .resp-mini{
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .mini-category, .mini-title{
        width: 100%;
        text-align: left;
    }
    
    .about-cards{
        width: 100%;
        padding: 0 14px;
        padding-bottom: 24px;
    }
    .about-label{
        width: 100%;
        padding: 0 14px;
        padding-top: 24px;
    }
}

@media (max-width: 480px) {
    .mini-title span{
        display: none;
    }
}
/* ============================================================
   LOGO TICKER — JS-driven infinite scroll, normalized logo sizes
============================================================ */

.logo-ticker-section {
    padding: 60px 0;
    overflow: hidden;
}

.logo-ticker-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%
    );
}

.logo-ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
    /* NOTE: no animation/@keyframes here — transform is set entirely
       by logo-ticker.js every frame via requestAnimationFrame */
}

/* ------------------------------------------------------------
   NORMALIZED LOGO SIZING
   Each logo sits inside a FIXED bounding box, regardless of the
   source image's native dimensions/aspect ratio. object-fit:
   contain scales each logo to fit within that box without
   distortion — this is what makes wide logos and square/tall
   logos appear visually consistent in size, rather than a fixed
   height alone (which makes wide logos huge, narrow ones tiny).
------------------------------------------------------------ */
.logo-ticker-item {
    flex: 0 0 auto;
    width: auto;   /* fixed bounding box width */
    height: 80px;   /* fixed bounding box height */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 60px;
}

.logo-ticker-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;

    filter: grayscale(100%) brightness(1.6) opacity(0.55);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-ticker-item img:hover {
    filter: grayscale(0%) brightness(1) opacity(1);
    transform: scale(1.01);
}

@media (max-width: 900px) {
    .logo-ticker-item {
        height: 70px;
        margin: 0 36px;
    }
}

@media (max-width: 600px) {
    .logo-ticker-item {
        height: 60px;
        margin: 0 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-ticker-track {
        transform: none !important;
    }
    .logo-ticker-wrap {
        overflow-x: auto;
    }
}

/* ============================================================
   CONTACT SECTION
============================================================ */
#contact {
    position: relative;
    padding: 0;
    background: var(--muted-white);
    height: fit-content;
    z-index: 1;
    color: var(--dark);
    scroll-margin-bottom: 0px;
}
.footer-container{
    padding: 0 32px;
    overflow: visible;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    justify-content: space-between;
}
.contact-content{
    padding: 32px 0;
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    gap: 48px;
    height: 100%;
}
.footer-links{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: start;
    gap: 5px;
}
.footer-links a{
    font-family: var(--bodyFont);
    font-size: clamp(0.8rem, 6vw, 1rem);
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 8px 16px;
}
.footer-links a:hover{
    background-color: var(--purple);
    color: var(--muted-white);
}
.contact-text{
    display: flex;
    flex-direction: row;
    gap: 120px;
    width: fit-content;
}
.contact-info{
    display: flex;
    flex-direction: column;
    width: fit-content;
}
.contact-info a{
    font-family: var(--font);
    padding: 4px 0;
    transition: 300ms var(--ease-out-expo);
}
.contact-info a:hover{
    font-weight: 600;
    transition: 300ms var(--ease-out-expo);
}
.ticker {
    /* Base settings (desktop/default) */
    --ticker-speed: 120;
    --ticker-direction: left;
    --ticker-gap: 40;
    --ticker-height-ratio: 0.8;
    --ticker-min-font-size: 10;
    --ticker-max-font-size: 500;
    --ticker-hover-behavior: slow;
    --ticker-hover-speed-multiplier: 0.3;
    --ticker-hover-transition: 300;

    height: 300px;
}

@media (max-width: 1200px) {
    .contact-text{
        gap: 80px;
    }
    .ticker {
        height: 250px;
    }
    .footer-container{
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .contact-text{
        gap: 48px;
    }
    .ticker {
        height: 200px;
    }
    .footer-container{
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .contact-text{
        gap: 32px;
    }
    .ticker {
        height: 150px;
    }
    .footer-container{
        gap: 15px;
    }
}
/* ============================================================
   TEXT CROP REVEAL — required mask/inner structure
============================================================ */
[data-crop-reveal] {
  display: block; /* or inline-block, depending on your layout */
}

.crop-reveal-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.15;
  /* height is now set dynamically via JS (data-crop-line-height) */
}

.crop-reveal-inner {
  display: inline-block;
  will-change: transform, opacity;
  /* line-height is now set dynamically via JS to match the mask height,
     ensuring the text is vertically centered/aligned within the crop */
}
/* ============================================================
   SCROLL-LINKED LINE-BY-LINE TEXT REVEAL
============================================================ */
.scroll-reveal-text { display: block; }

.scroll-reveal-text .reveal-line-wrap {
    overflow: hidden;
    display: block;
    margin-bottom: .15em;
}

.scroll-reveal-text .reveal-line {
    display: inline-block;
    color: var(--text-muted); /* Base muted state */
    background: linear-gradient(
        to right,
        var(--muted-white) 0%,
        var(--muted-white) 100%
    );
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    /* Reveal progress driven by JS scroll variable */
    background-size: calc(var(--line-reveal-progress, 0) * 100%) 100%;
    transition: background-size .2s var(--ease-out-expo),
                color .2s var(--ease-out-expo);
}

/* ============================================================
   404 // Error Page Design
============================================================ */

.error-page{
    padding: 120px 0 100px 0;
    width: 100vw;
    height: 100vh;
    gap: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--dark);
}

.error-page h1{
    font-family: var(--font);
    font-size: clamp(3rem, 20vw, 4rem);
    text-align: center;
    font-weight: 400;
    line-height: 100%;
    color: var(--muted-white);
}

.error-page p{
    font-family: var(--bodyFont);
    font-size: clamp(0.6rem, 3vw, 0.8rem);
    font-weight: 400;
    letter-spacing: .08em;
}

/* ============================================================
   VIRTUAL SCROLL SUPPORT (scroll-distort.js)
============================================================ */
html, body {
    /* Native scroll still happens on <body> to drive the scrollbar
       via the spacer div — actual visual movement is handled by
       #scroll-distort-content's transform instead. */
    overflow-x: hidden;
}

#scroll-distort-viewport {
    /* Sits behind any [data-distort-ignore] fixed overlays by default
       (cursor, etc). Raise z-index here if your content needs to sit
       above something specific outside the virtual scroll. */
    z-index: 0;
}

/* ============================================================
   Playbook Section (Floating Slides Deck)
============================================================ */
.playbook-content{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: fit-content;
    gap: 48px;
    height: fit-content;
}
.playbook-media{
    max-width: 60vw;
    height: auto;
    object-fit: cover;
    display: flex;
    justify-content: center;
}
.playbook-text{
    width: fit-content;
    padding: 0 18px;
    height: fit-content;
    color: var(--muted-white);
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.section-description{
    width: 300px;
    font-size: clamp(0.6rem, 6vw, 0.85rem);
    line-height: 1.6;
    font-weight: 400;
    font-family: var(--bodyFont);
    color: var(--text-secondary);
}
.playbook-image{
    border-radius: var(--br-small);
    aspect-ratio: auto;
    width: 100%;
    height: fit-content;
    max-height: 80vh;
}
.playbook-wrap{
    display: flex;
    flex-direction: column;
    gap: 140px;
}
@media (max-width: 1200px) {

}
@media (max-width: 768px) {
    .playbook-content{
        flex-direction: column;
        gap: 32px;
    }
    .playbook-media{
        order: 1;
        max-width: 100%;
        height: auto;
    }
    .playbook-text{
        order: 2;
        width: 100%;
        padding: 0;
    }
}
@media (max-width: 480px) {
    .playbook-content{
        width: 100%;
        height: fit-content;
        max-height: fit-content;
    }
    .playbook-media{
        width: 100%;
        height: fit-content;
        max-height: fit-content;
    }
    .playbook-image{
        height: fit-content;
        width: 100%;
        max-height: fit-content;
    }
    .section-description{
        width: 90%;
    }
}

/* ============================================================
   HELLO SECTION
============================================================ */
#hello{
    padding: 120px 0 100px 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--muted-white);
}
.hello-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    width: 100%;
    height: fit-content;
}
.vertical-top{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 32px;
    justify-content: space-around;
    gap: 48px;
    width: 100%;
    height: fit-content;
}
.hello-info{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 33.3%;
    gap: 140px;
    font-family: var(--bodyFont);
    color: var(--dark);
    font-size: clamp(0.7rem, 6vw, 0.9rem);
    font-weight: 500;
    letter-spacing: .08em;
    flex-wrap: wrap;
}
.shift{
    margin: 0;
}
.hello-content{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 100px;
    align-items: center;
    justify-content: center;
}
.datetime-container{
    width: 33.3%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--bodyFont);
    color: var(--dark);
    font-size: clamp(0.7rem, 6vw, 1.2rem);
    font-weight: 500;
    letter-spacing: .08em;
}
.hello-container a, .hello-info a, .hello-content a, .hello-info p{
    font-family: var(--bodyFont);
    color: var(--dark);
    font-size: clamp(0.8rem, 6vw, 1rem);
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 8px 16px;
    transition: 300ms var(--ease-out-expo);
}
.hello-info a:hover, .hello-content a:hover{
    font-weight: 600;
    transition: 300ms var(--ease-out-expo);
}

@media (max-width: 768px) {
    .vertical-top{
        flex-direction: column;
        gap: 32px;
    }
    .shift{
        order: 2;
    }
    .hello-info{
        width: 100%;
        gap: 48px;
    }
    .datetime-container{
        order: 1;
    }
    .hello-content{
        gap: 36px;
    }
}
@media (max-width: 580px) {
    .hello-content{
        grid-template-columns: repeat(2, 1fr);
        place-items: center;
        gap: 24px;
    }
}

/* ============================================================
   LAYOUT HELPERS (shared across sections)
============================================================ */
.container {
    padding: 0 32px;
}
@media (max-width: 1200px) { .container { padding: 0 24px; } }
@media (max-width: 768px) { .container { padding: 0 16px; } }
@media (max-width: 480px) { .container { padding: 0 12px; } }  

.container-text {
    padding: 0 32px;
}
@media (max-width: 1200px) { .container-text { padding: 0 24px; } }
@media (max-width: 768px) { .container-text { padding: 0 16px; } }
@media (max-width: 480px) { .container-text { padding: 0 12px; } }  