/* ═══════════════════════════════════════════════
   BASE RESET & TOKENS
═══════════════════════════════════════════════ */
*, *::before, *::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --baseline: 90%;
    --road-color: #333;
    --font: 'Inter', system-ui, sans-serif;

    /* Hero */
    --hero-bg: #f6f6f4;

    /* Projects */
    --ps-bg: #f0f0ee;
    --ps-card-bg: #111;
    --ps-radius-lg: 28px;
    --ps-radius-md: 20px;

    /* Typography */
    --text-primary: #0d0d0d;
    --text-secondary: #777;
    --text-muted: #aaa;

    /* ── 8pt Spacing Grid ───────────────────────────
       Every value is a multiple of 8px.
       Use these tokens everywhere — never hardcode px.
    ─────────────────────────────────────────────── */
    --sp-1:  8px;   /* micro:  icon padding, tight labels     */
    --sp-2: 16px;   /* small:  side edge, inline gaps         */
    --sp-3: 24px;   /* base:   between related elements       */
    --sp-4: 32px;   /* medium: card padding, section padding  */
    --sp-5: 40px;   /* large:  section top/bottom             */
    --sp-6: 48px;   /* xl:     between major sections         */
    --sp-7: 56px;   /* xxl:    section separators on tablet   */
    --sp-8: 64px;   /* hero:   section separators on desktop  */

    /* Semantic aliases */
    --edge-mobile:   var(--sp-2);    /* 16px — never let text touch screen edge */
    --edge-tablet:   var(--sp-4);    /* 32px */
    --edge-desktop:  80px;           /* matches existing desktop rhythm */
    --section-gap:   var(--sp-6);    /* 48px between sections on mobile */
    --element-gap:   var(--sp-3);    /* 24px between related items */
    --touch-target:  44px;           /* Apple/Material min tap size */

    /* Legacy aliases — keep for backward compatibility */
    --mobile-side: var(--edge-mobile);
    --spacing-sm:  var(--sp-2);
    --spacing-md:  var(--sp-3);
    --spacing-lg:  var(--sp-5);

    /* ── Typography scale (mobile-first, rem-based) ──
       Base: 1rem = 16px (browser default — never change this)
    ─────────────────────────────────────────────── */
    --text-xs:   0.75rem;   /* 12px — labels, eyebrows    */
    --text-sm:   0.875rem;  /* 14px — captions, meta      */
    --text-base: 1rem;      /* 16px — body (min readable) */
    --text-lg:   1.125rem;  /* 18px — large body          */
    --text-xl:   1.25rem;   /* 20px — subheadings         */
    --text-2xl:  1.5rem;    /* 24px — section titles      */
    --text-3xl:  2rem;      /* 32px — page titles mobile  */
    --text-4xl:  2.5rem;    /* 40px — hero name mobile    */
}

html {
    scroll-behavior: smooth;
    /* Prevent font-size bump on orientation change (iOS) */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: var(--text-base);     /* 16px body — never below this on mobile */
    background: var(--hero-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: y proximity;
    -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════════
   GLOBAL MOBILE FRAMEWORK
   Single-column by default. Multi-column at 768px+.
   Apply .container to any section's inner wrapper.
══════════════════════════════════════════════════ */

/* Global container — 16px edge on mobile, scales up */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--edge-mobile);
    padding-right: var(--edge-mobile);
}

@media (min-width: 640px) {
    .container { padding-left: var(--edge-tablet); padding-right: var(--edge-tablet); }
}

@media (min-width: 1024px) {
    .container { max-width: 1400px; padding-left: var(--edge-desktop); padding-right: var(--edge-desktop); }
}

/* Section spacer — consistent vertical rhythm between sections */
.section-spacer {
    margin-top: var(--section-gap);   /* 48px mobile */
}

@media (min-width: 768px) {
    .section-spacer { margin-top: var(--sp-8); }   /* 64px tablet+ */
}

/* Single-column layout default — multi-col only at 768px+ */
.layout-grid {
    display: flex;
    flex-direction: column;
    gap: var(--element-gap);
}

@media (min-width: 768px) {
    .layout-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-4);
    }
}

/* Readable text width — 45–75 chars per line */
.prose {
    max-width: 60ch;
}

@media (max-width: 768px) {
    .prose { max-width: 100%; }
}

/* Images always contained */
img {
    max-width: 100%;
    height: auto;
}

/* Global touch target — only interactive controls, not all anchors */
button,
[role="button"],
.hero-btn,
.ps-cta,
.wwm-cta-btn,
.footer-cta-btn {
    min-height: var(--touch-target);
}

/* ── Snap children — hero · interlude only ── */
main.hero-section,
.interlude {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* projects-section: NO snap — sticky nav requires free scrolling */
.projects-section {
    scroll-snap-align: none;
}

/* .identity-section and .site-footer — NO snap properties */


/* ═══════════════════════════════════════════════
   HERO SECTION — Split Screen
═══════════════════════════════════════════════ */
main.hero-section {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: radial-gradient(ellipse at 30% 60%, #fff 0%, #f0f0ee 100%);
    /* Scope all paints and layout within the hero — scroll outside
       the hero won't trigger repaint of the hero's GPU layers */
    contain: layout style paint;
}

/* Left and right columns must be transparent at the bottom so the
   city scene (position:absolute, z-index:20) can bleed through */
.hero-left,
.hero-right {
    background: transparent;
}

/* Mobile-only city row wrapper — treated as a passthrough on desktop */
.hero-city-row { display: contents; }
.hero-about-mobile { display: none; }

/* LEFT COLUMN */
.hero-left {
    display: flex;
    align-items: flex-start;
    padding: 52px 0 0 80px;
    position: relative;
    z-index: 15;
}

.hero-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0;
}

/* Name wrapper — gives the rocket an anchor for absolute positioning */

.name {
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.name .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: letterReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes letterReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* Hero headline — big h2 under the name */
.hero-headline {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: var(--text-primary);
    max-width: 380px;
    margin-bottom: 14px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.55s forwards;
}

/* Hero body copy */
.hero-body {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 360px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.7s forwards;
}

/* Proof line */
.hero-proof {
    font-family: var(--mono, monospace);
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 4px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.85s forwards;
}

.hero-proof strong {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* Action buttons */
.hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.7s ease 1.0s forwards;
    pointer-events: all;
    position: relative;
    z-index: 20;
}

.hero-btn {
    font-family: var(--mono, monospace);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 9px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.hero-btn--primary {
    background: var(--text-primary);
    color: #fff;
}

.hero-btn--primary:hover {
    background: #333;
    letter-spacing: 0.18em;
}

.hero-btn--ghost {
    color: var(--text-primary);
    border: 1px solid rgba(0,0,0,0.2);
}

.hero-btn--ghost:hover {
    border-color: var(--text-primary);
    letter-spacing: 0.18em;
}

/* Contact / socials — fixed to bottom-left of viewport, hero-scoped */
.hero-socials {
    position: fixed;
    bottom: 36px;
    left: 80px;
    display: flex;
    flex-direction: row;
    gap: 0;
    pointer-events: all;
    z-index: 100;
    opacity: 0;
    animation: fadeUp 0.7s ease 1.1s forwards;
    /* Fade out as user scrolls past the hero */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* JS adds this class once user scrolls past hero */
.hero-socials--hidden {
    opacity: 0 !important;
    transform: translateY(8px);
    pointer-events: none;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 0;
    margin-right: -1px; /* collapse borders between icons */
    /* duration is overridden by JS to match vehicle speed */
    transition: background 0.22s ease,
                border-color 0.22s ease,
                transform 0.2s ease;
}

.social-link:first-child { border-radius: 8px 0 0 8px; }
.social-link:last-child  { border-radius: 0 8px 8px 0; margin-right: 0; }

.social-link svg,
.social-link img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.55;
    /* duration matched to parent via JS */
    transition: opacity 0.22s ease, filter 0.22s ease;
}

.social-link:hover {
    background: var(--text-primary);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.social-link:hover svg,
.social-link:hover img {
    opacity: 1;
    filter: brightness(0) invert(1);
}

/* ── Per-icon dark state: toggled by JS when a vehicle sweeps over ── */
.social-link--dark {
    background: #0d0d0d;
    border-color: #0d0d0d;
}

.social-link--dark img,
.social-link--dark svg {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.social-link--dark:hover {
    background: #333;
    border-color: #333;
}

/* RIGHT COLUMN — About */
.hero-right {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 52px 80px 0 40px;
    position: relative;
    z-index: 15;
}

.hero-about {
    opacity: 0;
    animation: fadeUp 0.9s ease 1.5s forwards;
    max-width: 340px;
}

.about-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.about-text {
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* About trait list */
.about-traits {
    list-style: none;
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.about-traits li {
    font-family: var(--mono, monospace);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-left: 14px;
    position: relative;
}

.about-traits li::before {
    content: '';
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-weight: 300;
}


@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════
   CITY SCENE — 3D perspective container
═══════════════════════════════════════════════ */

/*
 * 3D camera model:
 *   .city-scene     — perspective frustum + 3D context root
 *   .city-group     — camera node: receives rotateX/Y from JS
 *   .parallax       — individual layer: positioned with translate3d(x,y,z)
 *                     where Z encodes depth (negative = far, 0 = near)
 *
 * Depth tiers (data-depth attr set by JS from data-speedx):
 *   far   (speedx ≤ 0.02): z = -400px  blur 2px  opacity 0.72
 *   mid   (speedx ≤ 0.05): z = -200px  blur 1px  opacity 0.85
 *   near  (speedx ≤ 0.07): z =  -80px  no blur   opacity 1
 *   close (speedx > 0.07): z =    0px  no blur   opacity 1  (fg/vehicles)
 */

.city-scene {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 560px;
    height: 560px;
    overflow: visible;
    z-index: 16;
    pointer-events: none;
    contain: layout style;
    /* Perspective frustum — all children share this vanishing point */
    perspective: 1200px;
    perspective-origin: 50% 100%;
}

.city-group {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1400px;
    height: 520px;
    /* Base scale preserved; JS adds rotateX/Y on top via camera system */
    transform: translateX(-50%) scale(0.65);
    transform-origin: bottom center;
    /* Enable 3D for children so Z positions are respected */
    transform-style: preserve-3d;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════
   PARALLAX ELEMENTS — 3D positioned inside .city-group
═══════════════════════════════════════════════ */
.parallax {
    position: absolute;
    bottom: 0;
    left: 50%;
    pointer-events: none;
    /* Base X centering; JS overrides full transform each frame */
    transform: translate3d(-50%, 0, 0);
    z-index: 2;
    /* Compositor hint — active while hero is visible */
    will-change: transform;
}

/* ── Atmospheric depth tiers — CSS-only, not recomputed per frame ──
   blur + opacity encode distance; JS assigns the class from speedx.
   Transitions on opacity only — never transition transform. */
.depth-far {
    opacity: 0.72;
    filter: blur(2px) brightness(0.88) saturate(0.7);
}
.depth-mid {
    opacity: 0.88;
    filter: blur(0.8px) brightness(0.96) saturate(0.9);
}
.depth-near {
    opacity: 1;
    filter: none;
}
.depth-close {
    opacity: 1;
    filter: none;
}

/* ── Building layers — horizontal anchor positions ── */
.back-last-building-1 { width:120px; left:calc(50% - 500px); }
.back-last-building-2 { width:120px; left:calc(50% - 250px); }
.back-last-building-3 { width:100px; left:calc(50% + 0px);   }
.back-last-building-4 { width:110px; left:calc(50% + 250px); }
.back-last-building-5 { width:130px; left:calc(50% + 500px); }
.building-5   { width:120px; left:calc(50% - 375px); }
.building-2-4 { width:110px; left:calc(50% - 125px); }
.building-2-2 { width:605px; left:calc(50% - 60px);  }
.building-2-1 { width:130px; left:calc(50% + 125px); }
.building-2-3 { width:130px; left:calc(50% + 375px); }
.building-4   { width:105px; left:calc(50% - 300px); }
.building-2   { width:260px; left:calc(50% + 500px); }
.building-3   { width:180px; left:calc(50% + 170px); }
.building-6   { width:720px; left:calc(50% - 450px); }
.building-7   { width:120px; left:calc(50% + 640px); }
.building-8   { width:450px; left:calc(50% - 470px); }
.building-1   { width:190px; left:calc(50% + 300px); }
.big-line     { width:90px;  left:calc(50% - 400px); }
.small-line   { width:50px;  left:calc(50% + 450px); }

/* Trees — sway animation composited on top of JS-set translate3d */
.tree-1,.tree-1-1,.tree-1-2,.tree-1-3,.tree-2,.tree-3,.tree-4,.tree-5,.tree-6 {
    transform-origin: bottom center;
    animation: sway 4s ease-in-out infinite;
}

@keyframes sway {
    /* translate3d(-50%,0,0) is the base; JS will override the full
       transform each frame so sway is handled purely in CSS as a
       separate animation layer via animation-fill-mode:none */
    0%,100% { transform: translate3d(-50%, 0, 0) rotate(-2deg); }
    50%      { transform: translate3d(-50%, 0, 0) rotate(2deg); }
}

.tree-1,.tree-3,.tree-5 { animation-duration: 4.5s; }
.tree-2,.tree-4,.tree-6 { animation-delay: -2s; animation-duration: 5s; }
.tree-1-1,.tree-1-3     { animation-delay: -1s; animation-duration: 4.2s; }

.tree-1   { width:30px; left:calc(50% - 550px); }
.tree-1-1 { width:30px; left:calc(50% - 420px); }
.tree-1-2 { width:30px; left:calc(50% - 280px); }
.tree-1-3 { width:30px; left:calc(50% - 150px); }
.tree-6   { width:50px; left:calc(50% - 20px);  }
.tree-3   { width:50px; left:calc(50% + 120px); }
.tree-4   { width:60px; left:calc(50% + 250px); }
.tree-2   { width:70px; left:calc(50% + 380px); }
.tree-5   { width:80px; left:calc(50% + 520px); }

/* Lamps — single element, 12 positions via multiple backgrounds */
.lamp-strip {
    width: 1320px;
    height: 60px;
    bottom: 0;
    left: 50%;
    background-image:
        url('img/lamp1.webp'), url('img/lamp1.webp'), url('img/lamp1.webp'),
        url('img/lamp1.webp'), url('img/lamp1.webp'), url('img/lamp1.webp'),
        url('img/lamp1.webp'), url('img/lamp1.webp'), url('img/lamp1.webp'),
        url('img/lamp1.webp'), url('img/lamp1.webp'), url('img/lamp1.webp');
    background-position:
        60px bottom,  170px bottom, 280px bottom, 390px bottom,
        500px bottom, 610px bottom, 720px bottom, 830px bottom,
        940px bottom, 1050px bottom, 1160px bottom, 1270px bottom;
    background-repeat: no-repeat;
    background-size: 18px auto;
    animation: flicker 3s infinite alternate;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.72; }
}

/* Vehicles */
.car-left,.car-right,.walking-man { width:55px; transition:none; }
.bus-left   { width:250px; transition:none; left:calc(50% - 200px); }
.walking-man { width:25px; left:calc(50% - 150px); z-index: 10; }
.car-left   { left:calc(50% - 450px); }
.car-right  { left:calc(50% + 450px); }

/* ═══════════════════════════════════════════════
   PROJECTS — Selected Work
   Two full-viewport gallery showcases
═══════════════════════════════════════════════ */

:root {
    --mono: 'JetBrains Mono', 'Fira Mono', 'Courier New', monospace;
    --rule: 1px solid rgba(0,0,0,0.1);
}

/* .projects-section base defined below in apparatus block */

/* ══════════════════════════════════════════════
   INTERLUDE — full-viewport transitional screen
   Sits between the skyline and project content.
   Nothing bleeds in. Pure off-white void.
══════════════════════════════════════════════ */

.interlude {
    position: relative;
    width: 100%;
    height: 30vh;
    background: var(--hero-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

/* Ground line — 1px rule flush at the very top */
.interlude-ground {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

/* ── Centred callout — geometric midpoint ── */
.interlude-callout {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1;
    text-align: center;
    user-select: none;
}

/* ── Bottom scroll indicator — 40px from floor ── */
.interlude-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}

.interlude-scroll-text {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.55;
    line-height: 1;
}

.interlude-scroll-arrow {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.55;
    line-height: 1;
    animation: interlude-bob 2.4s ease-in-out infinite;
}

@keyframes interlude-bob {
    0%, 100% { transform: translateY(0);   opacity: 0.55; }
    50%       { transform: translateY(4px); opacity: 0.85; }
}

@media (max-width: 900px) {
    /* Kill scroll-snap — with hero at content height, snap creates
       massive dead zones equal to the full viewport */
    body {
        scroll-snap-type: none !important;
    }
    main.hero-section,
    .interlude {
        scroll-snap-align: none !important;
        scroll-snap-stop: normal !important;
    }

    /* Hide all three interlude dividers — pure dead space on mobile */
    .interlude {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
    }
}

@media (max-width: 768px) {
    .interlude {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
    }
}

/* ─── Identity Section ─────────────────────────────────── */

.identity-section {
  background: #F5F4F0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 120px;
}

.identity-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 80px;
}

/* ─── Asymmetric horizontal split ───────────────────────── */

.identity-split {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: 0 100px;
  align-items: start;
}

/* ── LEFT column ─────────────────────────────────────────── */

.identity-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Massive display headline — mirrors DAWIT weight */
.identity-headline {
  font-family: 'Inter', 'Arial Black', sans-serif;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #0d0d0d;
  margin: 0;
}

/* Sub-narrative beneath the display header */
.identity-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  font-weight: 400;
  line-height: 1.85;
  color: #666;
  max-width: 520px;
  margin: 0;
}

/* ── RIGHT column ────────────────────────────────────────── */

.identity-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 8px;
}

/* ── Photo placeholder circle ────────────────────────────── */

.identity-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  /* Original border kept; drop-shadow added to gently lift circle
     off the off-white canvas when the photo has a bright sky edge */
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06),
    0 2px 12px rgba(0,0,0,0.07);
  background: #ebebea;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

/* When a real image is dropped in, hide the silhouette */
.identity-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
}

/* Tiny section anchor tag */
.identity-tag {
  font-family: 'Courier New', monospace;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #aaa;
  display: block;
}

/* Context body — retained for any future use */
.identity-context {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.85;
  color: #555;
  margin: 0;
}

/* ─── Voice Block (nested inside right column) ──────────── */

.voice-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(0,0,0,0.12);
}

.voice-header {
  margin-bottom: 20px;
}

.voice-eyebrow {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #000;
  text-transform: uppercase;
}

/* ─── Waveform ──────────────────────────────────────────── */

.waveform-container {
  width: 100%;
  height: 64px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

/* Idle state — static bars that breathe */
.waveform-idle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  transition: opacity 300ms ease;
}

.idle-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 100%;
  height: 100%;
  /* Single container layer for all 60 bars — cheaper than 60 individual layers */
  will-change: auto;
  contain: layout style paint;
}

.idle-bars span {
  flex: 1;
  background: #000;
  border-radius: 1px;
  transform-origin: center;
  animation: idle-breathe 2.4s ease-in-out infinite;
}

/* Varied heights for realistic waveform look */
.idle-bars span:nth-child(1)  { height: 20%; animation-delay: 0s; }
.idle-bars span:nth-child(2)  { height: 45%; animation-delay: 0.1s; }
.idle-bars span:nth-child(3)  { height: 30%; animation-delay: 0.2s; }
.idle-bars span:nth-child(4)  { height: 70%; animation-delay: 0.05s; }
.idle-bars span:nth-child(5)  { height: 55%; animation-delay: 0.15s; }
.idle-bars span:nth-child(6)  { height: 85%; animation-delay: 0.3s; }
.idle-bars span:nth-child(7)  { height: 40%; animation-delay: 0.08s; }
.idle-bars span:nth-child(8)  { height: 60%; animation-delay: 0.22s; }
.idle-bars span:nth-child(9)  { height: 90%; animation-delay: 0.12s; }
.idle-bars span:nth-child(10) { height: 35%; animation-delay: 0.35s; }
.idle-bars span:nth-child(11) { height: 75%; animation-delay: 0.18s; }
.idle-bars span:nth-child(12) { height: 50%; animation-delay: 0.28s; }
.idle-bars span:nth-child(13) { height: 65%; animation-delay: 0.06s; }
.idle-bars span:nth-child(14) { height: 80%; animation-delay: 0.4s; }
.idle-bars span:nth-child(15) { height: 25%; animation-delay: 0.14s; }
.idle-bars span:nth-child(16) { height: 55%; animation-delay: 0.32s; }
.idle-bars span:nth-child(17) { height: 70%; animation-delay: 0.09s; }
.idle-bars span:nth-child(18) { height: 40%; animation-delay: 0.24s; }
.idle-bars span:nth-child(19) { height: 85%; animation-delay: 0.17s; }
.idle-bars span:nth-child(20) { height: 30%; animation-delay: 0.38s; }
.idle-bars span:nth-child(21) { height: 60%; animation-delay: 0.11s; }
.idle-bars span:nth-child(22) { height: 45%; animation-delay: 0.26s; }
.idle-bars span:nth-child(23) { height: 75%; animation-delay: 0.07s; }
.idle-bars span:nth-child(24) { height: 50%; animation-delay: 0.33s; }
.idle-bars span:nth-child(25) { height: 90%; animation-delay: 0.19s; }
.idle-bars span:nth-child(26) { height: 35%; animation-delay: 0.42s; }
.idle-bars span:nth-child(27) { height: 65%; animation-delay: 0.13s; }
.idle-bars span:nth-child(28) { height: 20%; animation-delay: 0.29s; }
.idle-bars span:nth-child(29) { height: 80%; animation-delay: 0.04s; }
.idle-bars span:nth-child(30) { height: 55%; animation-delay: 0.36s; }
.idle-bars span:nth-child(31) { height: 40%; animation-delay: 0.21s; }
.idle-bars span:nth-child(32) { height: 70%; animation-delay: 0.44s; }
.idle-bars span:nth-child(33) { height: 25%; animation-delay: 0.16s; }
.idle-bars span:nth-child(34) { height: 85%; animation-delay: 0.31s; }
.idle-bars span:nth-child(35) { height: 60%; animation-delay: 0.03s; }
.idle-bars span:nth-child(36) { height: 45%; animation-delay: 0.39s; }
.idle-bars span:nth-child(37) { height: 75%; animation-delay: 0.23s; }
.idle-bars span:nth-child(38) { height: 30%; animation-delay: 0.46s; }
.idle-bars span:nth-child(39) { height: 90%; animation-delay: 0.1s; }
.idle-bars span:nth-child(40) { height: 50%; animation-delay: 0.27s; }
.idle-bars span:nth-child(41) { height: 65%; animation-delay: 0.43s; }
.idle-bars span:nth-child(42) { height: 20%; animation-delay: 0.02s; }
.idle-bars span:nth-child(43) { height: 80%; animation-delay: 0.37s; }
.idle-bars span:nth-child(44) { height: 35%; animation-delay: 0.48s; }
.idle-bars span:nth-child(45) { height: 55%; animation-delay: 0.25s; }
.idle-bars span:nth-child(46) { height: 70%; animation-delay: 0.41s; }
.idle-bars span:nth-child(47) { height: 40%; animation-delay: 0.08s; }
.idle-bars span:nth-child(48) { height: 85%; animation-delay: 0.34s; }
.idle-bars span:nth-child(49) { height: 25%; animation-delay: 0.49s; }
.idle-bars span:nth-child(50) { height: 60%; animation-delay: 0.2s; }
.idle-bars span:nth-child(51) { height: 45%; animation-delay: 0.45s; }
.idle-bars span:nth-child(52) { height: 75%; animation-delay: 0.15s; }
.idle-bars span:nth-child(53) { height: 30%; animation-delay: 0.5s; }
.idle-bars span:nth-child(54) { height: 90%; animation-delay: 0.06s; }
.idle-bars span:nth-child(55) { height: 50%; animation-delay: 0.32s; }
.idle-bars span:nth-child(56) { height: 65%; animation-delay: 0.47s; }
.idle-bars span:nth-child(57) { height: 20%; animation-delay: 0.18s; }
.idle-bars span:nth-child(58) { height: 80%; animation-delay: 0.38s; }
.idle-bars span:nth-child(59) { height: 35%; animation-delay: 0.12s; }
.idle-bars span:nth-child(60) { height: 55%; animation-delay: 0.28s; }

/* Idle breathing animation — subtle, slow */
@keyframes idle-breathe {
  0%, 100% {
    opacity: 0.15;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.35;
    transform: scaleY(1.1);
  }
}

/* Playing state — bars animate actively */
.waveform-idle.playing span {
  animation: wave-play 0.6s ease-in-out infinite;
  opacity: 1;
}

.waveform-idle.playing span:nth-child(odd) {
  animation-duration: 0.5s;
}

.waveform-idle.playing span:nth-child(3n) {
  animation-duration: 0.7s;
}

@keyframes wave-play {
  0%, 100% {
    transform: scaleY(0.4);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ─── Controls ──────────────────────────────────────────── */

.voice-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  /* Single flex unit — play button + timeline scale together
     without detaching at compressed viewport widths */
  flex-wrap: nowrap;
  width: 100%;
}

.play-button {
  width: 44px;
  height: 44px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 120ms, color 120ms;
  border-radius: 0; /* square — matches hero button style */
}

.play-button:hover {
  background: #fff;
  color: #000;
}

.progress-track {
  flex: 1;
  height: 1px;
  background: #CBCAC6;
  position: relative;
  cursor: pointer;
}

.progress-track::before {
  content: '';
  position: absolute;
  inset: -8px 0; /* larger hit target */
}

.progress-played {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #000;
  width: 0%;
  transition: width 80ms linear;
  pointer-events: none;
}

.progress-played::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
}

.time-display {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #999;
  flex-shrink: 0;
  width: 36px;
  text-align: right;
  letter-spacing: 0.04em;
}

/* ── Identity System Status Card ─────────────────────────── */

.idc-card {
  border: 1px solid rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

/* Profile header row */
.idc-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
}

.idc-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.08);
}

.idc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.idc-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.idc-name {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.idc-status {
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #5a9e6f;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.idc-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5a9e6f;
  flex-shrink: 0;
  animation: idc-pulse 2.4s ease-in-out infinite;
}

@keyframes idc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* Horizontal rule */
.idc-rule {
  height: 1px;
  background: rgba(0,0,0,0.07);
  margin: 0;
}

/* Section blocks */
.idc-section {
  padding: 18px 24px;
}

.idc-section-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 14px;
}

/* Audio player */
.idc-audio {
  display: flex;
  align-items: center;
  gap: 14px;
}

.idc-play-btn {
  width: 36px;
  height: 36px;
  background: var(--text-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.idc-play-btn:hover { background: #333; }

.idc-play-btn svg {
  width: 14px;
  height: 14px;
  color: #fff;
}

.idc-audio-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.idc-audio-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* ── Waveform bars ── */
.idc-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
  overflow: hidden;
}

.idc-wave span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--text-primary);
  height: 4px;            /* idle: flat */
  transform-origin: bottom center;
  transition: height 0.2s ease;
}

/* Idle — short flat bars */
.idc-wave span:nth-child(odd)  { opacity: 0.2; }
.idc-wave span:nth-child(even) { opacity: 0.15; }

/* Playing — bars animate with varied heights and speeds */
.idc-audio.is-playing .idc-wave span {
  opacity: 1;
  animation: idc-bar 0.8s ease-in-out infinite alternate;
}

.idc-audio.is-playing .idc-wave span:nth-child(1)  { animation-duration: 0.55s; animation-delay: 0s; }
.idc-audio.is-playing .idc-wave span:nth-child(2)  { animation-duration: 0.72s; animation-delay: 0.08s; }
.idc-audio.is-playing .idc-wave span:nth-child(3)  { animation-duration: 0.48s; animation-delay: 0.04s; }
.idc-audio.is-playing .idc-wave span:nth-child(4)  { animation-duration: 0.65s; animation-delay: 0.16s; }
.idc-audio.is-playing .idc-wave span:nth-child(5)  { animation-duration: 0.80s; animation-delay: 0.02s; }
.idc-audio.is-playing .idc-wave span:nth-child(6)  { animation-duration: 0.52s; animation-delay: 0.12s; }
.idc-audio.is-playing .idc-wave span:nth-child(7)  { animation-duration: 0.68s; animation-delay: 0.06s; }
.idc-audio.is-playing .idc-wave span:nth-child(8)  { animation-duration: 0.44s; animation-delay: 0.20s; }
.idc-audio.is-playing .idc-wave span:nth-child(9)  { animation-duration: 0.76s; animation-delay: 0.10s; }
.idc-audio.is-playing .idc-wave span:nth-child(10) { animation-duration: 0.58s; animation-delay: 0.14s; }
.idc-audio.is-playing .idc-wave span:nth-child(11) { animation-duration: 0.62s; animation-delay: 0.03s; }
.idc-audio.is-playing .idc-wave span:nth-child(12) { animation-duration: 0.50s; animation-delay: 0.18s; }
.idc-audio.is-playing .idc-wave span:nth-child(13) { animation-duration: 0.70s; animation-delay: 0.07s; }
.idc-audio.is-playing .idc-wave span:nth-child(14) { animation-duration: 0.46s; animation-delay: 0.22s; }
.idc-audio.is-playing .idc-wave span:nth-child(15) { animation-duration: 0.84s; animation-delay: 0.05s; }
.idc-audio.is-playing .idc-wave span:nth-child(16) { animation-duration: 0.56s; animation-delay: 0.15s; }

@keyframes idc-bar {
  0%   { height: 4px; }
  100% { height: 24px; }
}

/* Play button pulses while playing */
.idc-play-btn.is-playing {
  animation: idc-btn-pulse 1.8s ease-in-out infinite;
}

@keyframes idc-btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13,13,13,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(13,13,13,0); }
}

.idc-progress-track {
  position: relative;
  height: 2px;
  background: rgba(0,0,0,0.1);
  cursor: pointer;
}

.idc-progress-track::before {
  content: '';
  position: absolute;
  inset: -6px 0;
}

.idc-progress-played {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: var(--text-primary);
  width: 0%;
  transition: width 80ms linear;
  pointer-events: none;
}

.idc-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-primary);
  pointer-events: none;
  transition: left 80ms linear;
}

.idc-time {
  font-family: var(--mono);
  font-size: 0.52rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  align-self: flex-end;
}

/* Skills tag cloud */
.idc-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.idc-skills span {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  border: 1px solid rgba(0,0,0,0.12);
  padding: 5px 12px;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.idc-skills span:hover {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

/* Data grid */
.idc-data-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  align-items: baseline;
}

.idc-data-key {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.idc-data-val {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 900px) {
  .idc-card { max-width: 360px; }
}

/* ─── Identity Responsive ───────────────────────────────── */

/* Tablet — collapse to single column */
@media (max-width: 900px) {
  .identity-section {
    min-height: unset;
    padding: var(--sp-6) 0;
    align-items: flex-start;
  }

  .identity-inner {
    padding: 0 var(--sp-3);   /* 24px sides */
  }

  .identity-split {
    grid-template-columns: 1fr;
    gap: var(--sp-5) 0;       /* 40px between cols */
  }

  /* Right col (idc-card) moves above headline on mobile */
  .identity-right {
    padding-top: 0;
    order: -1;
  }

  .identity-headline {
    font-size: clamp(1.8rem, 5.5vw, 3rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
  }

  .identity-sub {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .identity-section {
    padding: var(--sp-5) 0;   /* 40px top/bottom */
  }

  .identity-inner {
    padding: 0 var(--mobile-side);  /* 16px sides */
  }

  .identity-headline {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    line-height: 1.28;
    letter-spacing: -0.01em;
  }

  .identity-split {
    gap: var(--sp-4) 0;       /* 32px between cols */
    padding-bottom: 0;
  }

  .identity-sub {
    font-size: 0.92rem;
    line-height: 1.8;
  }

  .identity-photo {
    width: 88px;
    height: 88px;
  }

  .voice-block {
    padding-top: 20px;
  }
}

/* ── Scroll reveal ── */
.fade-in-card         { opacity: 1; transform: none; }
.gsap-ready .fade-in-card { opacity: 0; transform: translateY(48px); }

/* ── GSAP scroll animation — initial hidden states ──
   Only applied once GSAP is confirmed loaded (.gsap-ready).
   Prevents invisible content if GSAP fails to load.       */
.gsap-ready .interlude-callout              { opacity: 0; }
.gsap-ready .ps-nav                         { opacity: 0; }
.gsap-ready .ps-text .ps-index,
.gsap-ready .ps-text .ps-wordmark,
.gsap-ready .ps-text .ps-tagline,
.gsap-ready .ps-text .ps-desc,
.gsap-ready .ps-text .ps-tags,
.gsap-ready .ps-text .ps-ctas              { opacity: 0; }
.gsap-ready .ps-frame                      { opacity: 0; }
.gsap-ready .identity-headline             { opacity: 0; }
.gsap-ready .identity-sub                  { opacity: 0; }
.gsap-ready .identity-photo                { opacity: 0; }
.gsap-ready .voice-block                   { opacity: 0; }
.gsap-ready .footer-name                   { opacity: 0; }
.gsap-ready .footer-eyebrow                { opacity: 0; }
.gsap-ready .footer-tagline                { opacity: 0; }
.gsap-ready .footer-cta-row                { opacity: 0; }
/* .footer-col is NOT hidden by gsap-ready — scroll trigger fires it from opacity:0 via JS only */

/* ═══════════════════════════════════════════════
   SPEECH BUBBLES — collision callouts
═══════════════════════════════════════════════ */

/* Bubbles are position:fixed — JS sets top + left each frame */
.speech-bubble {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    /* will-change only during active animation — set on .bubble-visible,
       removed after .bubble-out completes via animationend in JS */
    z-index: 200;
    transform-origin: bottom center;
}

/* Animate-in — promote layer for duration of animation only */
.speech-bubble.bubble-visible {
    will-change: transform, opacity;
    animation: bubbleIn 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Animate-out */
.speech-bubble.bubble-out {
    will-change: transform, opacity;
    animation: bubbleOut 0.22s ease-in forwards;
}

/* translateX(-50%) centers on the character — JS sets left to char center.
   Only translateY + scale animate so left is never overridden by keyframes. */
@keyframes bubbleIn {
    0%   { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.75); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0)    scale(1);    }
}

@keyframes bubbleOut {
    0%   { opacity: 1; transform: translateX(-50%) translateY(0)   scale(1);    }
    100% { opacity: 0; transform: translateX(-50%) translateY(6px) scale(0.82); }
}

/* Dark charcoal card */
.bubble-inner {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    padding: 10px 16px;
    min-width: 140px;
    max-width: 220px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.12),
        0 1px 6px  rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Remove the amber accent line */
.bubble-inner::before {
    display: none;
}

.bubble-label {
    display: none;
}

.bubble-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.5;
    color: #0d0d0d;
    margin: 0;
    white-space: nowrap;
}

/* Triangle pointer — white fill, subtle shadow */
.bubble-arrow {
    width: 0;
    height: 0;
    border-left:  8px solid transparent;
    border-right: 8px solid transparent;
    border-top:   8px solid #ffffff;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.08));
}

/* Responsive */
@media (max-width: 600px) {
    .bubble-inner { min-width: 130px; padding: 9px 12px 8px; }
    .bubble-text  { font-size: 0.78rem; }
}

/* ═══════════════════════════════════════════════
   STAGED BUS CONVERSATION
═══════════════════════════════════════════════ */

/* Main character bubbles — dark-slate with gold border */
.sb-main .bubble-inner {
    background: #13131a;
    border: 1px solid rgba(196, 155, 74, 0.55);
    box-shadow:
        0 0 0 1px rgba(196, 155, 74, 0.1),
        0 8px 32px rgba(0,0,0,0.5),
        0 2px 8px  rgba(0,0,0,0.35);
}

.sb-main .bubble-inner::before {
    display: block; /* re-enable the amber accent line */
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 32px; height: 2px;
    background: linear-gradient(90deg, #c49b4a, transparent);
    border-radius: 6px 0 0 0;
}

.sb-main .bubble-text {
    color: #e8e6df;
    font-size: 0.85rem;
}

.sb-main .bubble-arrow {
    border-top-color: #13131a;
    filter: drop-shadow(0 2px 0 rgba(196, 155, 74, 0.5));
}




.bubble-inner--angry {
    background: #fff;
    border: 1.5px solid #e53e3e;
    min-width: 0;
    padding: 6px 12px;
    box-shadow:
        0 0 0 1px rgba(229,62,62,0.15),
        0 4px 16px rgba(0,0,0,0.18);
}

.bubble-inner--angry .bubble-text,
.bubble-inner--angry p {
    color: #c53030;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.bubble-arrow--angry {
    border-top-color: #fff;
    filter: drop-shadow(0 1.5px 0 #e53e3e);
}

/* Bus rumble — pure translate3d, no CSS variable interpolation inside
   keyframes. Variable lookups inside keyframes prevent full compositing.
   The base translate is baked into the animation; JS offsets via JS-applied
   transform are not needed here — this is a temporary shake overlay. */
@keyframes busRumble {
    0%,100% { transform: translate3d(-50%, 0,    0); }
    15%     { transform: translate3d(calc(-50% + 3px),  1px, 0); }
    30%     { transform: translate3d(calc(-50% - 3px), -1px, 0); }
    45%     { transform: translate3d(calc(-50% + 2px),  1px, 0); }
    60%     { transform: translate3d(calc(-50% - 2px),  0,   0); }
    75%     { transform: translate3d(calc(-50% + 1px), -1px, 0); }
}

.bus-left.bus-rumbling {
    animation: busRumble 0.18s linear infinite !important;
    will-change: transform;
}

/* removed: scroll-lock-hint */

/* ═══════════════════════════════════════════════
   FOOTER — generous empty-space canvas
═══════════════════════════════════════════════ */
.site-footer {
    background: var(--hero-bg);
    border-top: 1px solid rgba(0,0,0,0.06);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* ── Owl watermark — ghost behind all content ── */
.footer-watermark {
    position: absolute;
    bottom: 6%;
    right: 1%;
    width: clamp(320px, 42vw, 640px);
    opacity: 0.095;
    pointer-events: none;
    user-select: none;
    filter: grayscale(1);
    transform-origin: bottom right;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px 80px 100px;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* ── Horizontal rule ── */
.footer-rule {
    width: 100%;
    height: 1px;
    background: rgba(0,0,0,0.07);
    margin-bottom: 72px;
}

.footer-name {
    font-family: var(--font);
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-transform: uppercase;
    line-height: 0.95;
    display: block;
}

/* ── Hero row: giant name + tagline ── */
.footer-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 80px;
}

.footer-hero-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-eyebrow {
    font-family: var(--mono);
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
}

.footer-hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 24px;
    padding-bottom: 6px;
}

.footer-tagline {
    font-size: clamp(0.88rem, 1.2vw, 1.05rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: right;
    margin: 0;
}

.footer-cta-row {
    display: flex;
    gap: 12px;
}

.footer-cta-btn {
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 24px;
    background: var(--text-primary);
    color: #fff;
    transition: background 0.25s ease, letter-spacing 0.25s ease;
    display: inline-flex;
    align-items: center;
}

.footer-cta-btn:hover {
    background: #333;
    letter-spacing: 0.22em;
}

/* ── Mid row: nav columns ── */
.footer-mid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 40px;
    padding-bottom: 80px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-label {
    font-family: var(--mono);
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.footer-col nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-link {
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.footer-col-link:hover {
    color: var(--text-primary);
    letter-spacing: 0.15em;
}

.footer-location {
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.footer-status {
    display: flex;
    align-items: center;
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0;
}

.footer-status-dot {
    display: none;
}

@keyframes footer-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.75); }
}

/* ── Bottom row ── */
.footer-bottom,
.footer-copy,
.footer-socials,
.footer-social-link,
.footer-social-link svg,
.footer-social-link img,
.footer-social-link:hover,
.footer-social-link:hover svg,
.footer-social-link:hover img { display: none; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .footer-mid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .footer-inner {
        padding: 100px 40px 72px;
    }

    .footer-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        padding-bottom: 64px;
    }

    .footer-hero-right {
        align-items: flex-start;
    }

    .footer-tagline {
        text-align: left;
    }

    .footer-rule {
        margin-bottom: 56px;
    }

    .footer-mid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
        padding-bottom: 64px;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        padding: 80px 24px 56px;
    }

    .footer-hero {
        gap: 28px;
        padding-bottom: 48px;
    }

    .footer-name {
        font-size: 2.8rem;
    }

    .footer-mid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
}

/* ═══════════════════════════════════════════════
   PRODUCT SURFACE BLOCKS — Four sequential chapters
   Each block is a fully isolated 40/60 or 60/40 layout
   floating on abundant off-white negative space.
═══════════════════════════════════════════════ */

/*
 * APPARATUS LAYOUT
 * .ps-apparatus  — 1400px centred two-column grid (20% nav / 80% stream)
 * .ps-nav        — sticky left side-follower
 * .ps-stream     — scrollable project canvas
 * .ps-group      — product family grouping (TABIBX / WISDOM PASS)
 * .ps-block      — single product chapter, 60px padding, divider
 * .ps-block-inner — 45/55 grid inside the stream
 * .ps-text       — typography column
 * .ps-visual     — mockup column
 * .ps-frame      — isolated image container
 */

/* ── Section shell — no horizontal padding; apparatus handles it ── */
.projects-section {
    padding: 0;
    background: var(--hero-bg);
    position: relative;
    z-index: 1;
    min-height: 100vh;
    overflow-y: visible;
}

/* ══════════════════════════════════════════
   APPARATUS — outer centred two-column grid
══════════════════════════════════════════ */
.ps-apparatus {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px 80px 24px;
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

/* ══════════════════════════════════════════
   STICKY SIDE-FOLLOWER — Column 1
══════════════════════════════════════════ */
.ps-nav {
    position: sticky;
    top: 2rem;
    align-self: flex-start;
    flex-shrink: 0;
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    z-index: 10;
    /* Offset nav down past the company header so 01/02 start
       visually aligned with the FLAGSHIP PRODUCT intro block —
       exact value set dynamically by JS in initStickyNav() */
    margin-top: 0;
}

/* Section eyebrow above the index list */
.ps-nav-label {
    font-family: var(--mono);
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.5;
    display: block;
}

/* Nav list — stacked product families */
.ps-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Each nav item — now a column: row header + optional sub-list */
.ps-nav-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    cursor: default;
    opacity: 0.4;
    transition: opacity 0.35s ease;
}

/* Active state — full opacity when group is in view */
.ps-nav-item.is-active {
    opacity: 1;
}

/* The top row: dot + index + name */
.ps-nav-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Gold indicator dot — hidden by default, visible when active */
.ps-nav-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c49b4a;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.ps-nav-item.is-active .ps-nav-dot {
    opacity: 1;
    transform: scale(1);
}

/* Counter + name — monospace, 11px */
.ps-nav-index {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    line-height: 1;
}

.ps-nav-name {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-primary);
    line-height: 1;
}

/* Company root node — slightly larger, gold tint */
.ps-nav-item--root {
    opacity: 1 !important;
    cursor: default;
}

.ps-nav-name--company {
    font-size: 12px;
    font-weight: 700;
    color: #c49b4a;
    letter-spacing: 0.22em;
}

/* Role subtitle under each nav item */
.ps-nav-subrole {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    padding-left: 25px; /* align under the name (past dot + index) */
    margin-top: 3px;
    opacity: 0.7;
}

/* ── Sub-navigation list (CLI / VSCode / Browser) ── */
.ps-nav-sub {
    list-style: none;
    display: flex;
    flex-direction: column;
    /* Collapsed by default — expands when parent is active */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.35s ease;
    opacity: 0;
    /* Indent aligns sub-items with the name text (dot 5px + gap 10px + index ~16px + gap 10px = ~41px) */
    padding-left: 41px;
    margin-top: 0;
}

/* Expand sub-list when parent item is active */
.ps-nav-item.is-active .ps-nav-sub {
    max-height: 200px;
    opacity: 1;
    margin-top: 10px;
}

.ps-nav-sub-item {
    padding: 5px 0;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    padding-left: 12px;
    position: relative;
}

/* Active sub-item — gold left border */
.ps-nav-sub-item.is-sub-active {
    border-left-color: #c49b4a;
}

.ps-nav-sub-link {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-muted);
    display: block;
    line-height: 1;
    transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.ps-nav-sub-link:hover {
    color: #c49b4a;
    letter-spacing: 0.22em;
}

/* Active sub-link */
.ps-nav-sub-item.is-sub-active .ps-nav-sub-link {
    color: var(--text-primary);
    font-weight: 600;
}

/* ══════════════════════════════════════════
   PROJECT STREAM — Column 2
══════════════════════════════════════════ */
.ps-stream {
    flex: 1;          /* fills all remaining horizontal space */
    min-width: 0;     /* prevents flex blowout on long content */
    overflow: visible;
}

/* Product family group — group-level divider */
.ps-group {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.ps-group:first-child {
    border-top: none;
}

/* ── SOVM'S Company header ── */
.ps-company-header {
    padding: 80px 0 140px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 100px;
    position: relative;
}

/* Top row: brand name + positioning statement side by side */
.ps-company-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 80px;
    align-items: end;
    padding-bottom: 96px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.ps-company-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ps-company-position {
    font-size: 0.86rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
    padding-bottom: 4px;
}

/* Bottom row: body copy left / structure tree right */
.ps-company-bottom {
    display: grid;
    grid-template-columns: 58fr 42fr;
    gap: 0 80px;
    align-items: start;
    position: relative;
}

.ps-company-desc-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ps-company-label {
    font-family: var(--mono);
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #c49b4a;
    display: block;
}

.ps-company-headline {
    font-size: clamp(1.8rem, 3vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.08;
    color: var(--text-primary);
    margin: 0 0 40px;
}

.ps-company-body {
    font-size: 0.86rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 3rem;
    max-width: 65ch;
}

.ps-company-mission {
    font-size: 0.86rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0;
    max-width: 65ch;
}

.ps-company-mission strong {
    font-weight: 700;
}

.ps-company-right {
    padding-top: 0;
    position: relative;
}

.ps-company-logo-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    pointer-events: none;
    z-index: 0;
}

.ps-company-logo--ghost {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 0.08;
    filter: grayscale(1);
}

.ps-company-structure {
    border: 1px solid rgba(0,0,0,0.07);
    padding: 24px 28px;
    background: rgba(0,0,0,0.015);
}

.ps-company-struct-label {
    font-family: var(--mono);
    font-size: 0.42rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #6B6B6B;
    display: block;
    margin-bottom: 18px;
}

.ps-company-tree {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ps-tree-root {
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6B6B6B;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    margin-bottom: 10px;
}

.ps-tree-child {
    font-family: var(--mono);
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6B6B6B;
    padding: 8px 0 8px 16px;
    border-left: 2px solid rgba(0,0,0,0.08);
    margin-left: 8px;
    position: relative;
}

.ps-tree-child::before {
    content: '└──';
    position: absolute;
    left: -22px;
    font-family: monospace;
    font-size: 0.6rem;
    color: var(--text-muted);
    top: 9px;
}

.ps-tree-flagship {
    border-left-color: #c49b4a;
}

.ps-tree-role {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: none;
    display: block;
    margin-top: 2px;
}

.ps-tree-sub {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
    padding-left: 12px;
    border-left: 1px solid rgba(196,155,74,0.3);
}

.ps-tree-sub li {
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 4px 0;
}

/* ── TEBIBX flagship intro ── */
.ps-flagship-intro {
    padding: 96px 0 80px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.ps-flagship-top {
    display: grid;
    grid-template-columns: 38fr 62fr;
    gap: 0 80px;
    align-items: start;
}

.ps-flagship-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 2rem;
    padding: 48px 32px;
    border: 1px solid rgba(0,0,0,0.06);
}

.ps-flagship-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ps-flagship-label {
    font-family: var(--mono);
    font-size: 0.42rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #6B6B6B;
    display: block;
}

.ps-flagship-name {
    font-size: clamp(2rem, 3.5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 0.95;
}

.ps-flagship-sub {
    font-family: var(--mono);
    font-size: 0.5rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6B6B6B;
    margin: 0;
    line-height: 1.6;
}

.ps-flagship-desc {
    font-size: 0.86rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
    max-width: 65ch;
}

.ps-flagship-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(0,0,0,0.07);
    max-width: 65ch;
}

.ps-flagship-bullets li {
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.7;
}

.ps-flagship-bullets li::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c49b4a;
    flex-shrink: 0;
}

.ps-flagship-close {
    font-size: 0.86rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0;
    max-width: 65ch;
}

.ps-flagship-close strong { font-weight: 700; }

/* Responsive */
@media (max-width: 900px) {
    .ps-company-top,
    .ps-company-bottom,
    .ps-flagship-top {
        grid-template-columns: 1fr;
        gap: 28px 0;
    }
    .ps-flagship-left { position: static; }
}

/* ── Whitespace buffer — collapsed to zero ── */
.ps-buffer,
.ps-buffer--close {
    height: 0;
}

/* ── Base block — compressed vertical rhythm + blueprint divider ── */
.ps-block {
    display: flex;
    justify-content: center;
    padding: 80px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ps-block:last-child {
    border-bottom: none;
}

/* ── Master content wrapper inside the stream ── */
.ps-block-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 45fr 55fr;
    gap: 0 56px;
    align-items: center;
}

/* Inverted blocks B & D */
.ps-block--b .ps-block-inner,
.ps-block--d .ps-block-inner {
    grid-template-columns: 55fr 45fr;
}

/* Blocks B & D — DOM order kept, visual order flipped via grid */
.ps-block--b .ps-block-inner .ps-visual,
.ps-block--d .ps-block-inner .ps-visual {
    order: 1;
}

.ps-block--b .ps-block-inner .ps-text,
.ps-block--d .ps-block-inner .ps-text {
    order: 2;
}

/* ════════════════════════════════════
   TYPOGRAPHY COLUMN — .ps-text
════════════════════════════════════ */

.ps-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-right: 24px;
}

.ps-text--right {
    padding-right: 0;
    padding-left: 24px;
}

.ps-index {
    font-family: var(--mono);
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.ps-wordmark {
    font-size: clamp(1.8rem, 3vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 0.95;
    color: var(--text-primary);
    text-transform: uppercase;
    margin: 0 0 20px;
}

.ps-tagline {
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0 0 28px;
    display: block;
}

.ps-desc {
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 65ch;
    margin: 0 0 32px;
}

.ps-tags {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 36px;
}

.ps-tags li {
    font-family: var(--mono);
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ps-tags li::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.ps-ctas {
    display: flex;
    flex-direction: column;
}

.ps-cta {
    display: block;
    padding: 13px 0;
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-primary);
    border-top: 1px solid rgba(0,0,0,0.1);
    transition: letter-spacing 0.3s ease, opacity 0.2s ease;
}

.ps-cta:last-child {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.ps-cta:hover {
    letter-spacing: 0.22em;
    opacity: 0.7;
}

.ps-cta--dim {
    color: var(--text-secondary);
}

.ps-cta--dim:hover {
    color: var(--text-primary);
    opacity: 1;
}

/* ════════════════════════════════════
   VISUAL COLUMN — .ps-visual
════════════════════════════════════ */

.ps-visual {
    display: flex;
    padding: 12px 0;
}

.ps-block--a .ps-block-inner .ps-visual,
.ps-block--c .ps-block-inner .ps-visual {
    justify-content: flex-end;
}

.ps-block--b .ps-block-inner .ps-visual,
.ps-block--d .ps-block-inner .ps-visual {
    justify-content: flex-start;
}

/* ── Isolated mockup frame ── */
.ps-frame {
    width: 100%;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 3px;
    overflow: visible;
    background: #f4f4f2;
    box-shadow:
        0 2px 12px rgba(0,0,0,0.06),
        0 8px 40px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.ps-frame--dark {
    background: #0d0d0d;
    border-color: rgba(255,255,255,0.06);
}

.ps-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */

/* Collapse sidebar at 1100px — stack vertically */
@media (max-width: 1100px) {
    .ps-apparatus {
        flex-direction: column;
        padding: 60px 60px 60px;
        gap: 0;
    }

    .ps-nav {
        position: static;   /* can't be sticky in a single-column layout */
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 24px;
        padding-top: 0;
        padding-bottom: 40px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        margin-bottom: 0;
    }

    .ps-nav-label {
        display: none;
    }

    .ps-nav-list {
        flex-direction: row;
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .ps-apparatus {
        padding: var(--sp-6) var(--sp-3);   /* 48px top, 24px sides */
    }

    /* Hide the sticky side-nav on mobile — takes up too much space */
    .ps-nav {
        display: none !important;
    }

    .ps-block {
        padding: var(--sp-5) 0;   /* 40px */
    }

    .ps-block-inner,
    .ps-block--b .ps-block-inner,
    .ps-block--d .ps-block-inner {
        grid-template-columns: 1fr;
        gap: var(--sp-4) 0;   /* 32px */
    }

    /* Text always first on mobile */
    .ps-block--b .ps-block-inner .ps-visual,
    .ps-block--d .ps-block-inner .ps-visual {
        order: 2;
    }

    .ps-block--b .ps-block-inner .ps-text,
    .ps-block--d .ps-block-inner .ps-text {
        order: 1;
    }

    .ps-text,
    .ps-text--right {
        padding: 0;
    }

    .ps-visual {
        padding: 0;
        justify-content: flex-start !important;
    }

    .ps-desc {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .ps-apparatus {
        padding: var(--sp-5) var(--mobile-side);   /* 40px top, 16px sides */
    }

    .ps-block {
        padding: var(--sp-4) 0;   /* 32px */
    }

    .ps-wordmark {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
    }
}

@media (max-width: 480px) {
    .ps-apparatus {
        padding: 32px 20px;
    }

    .ps-wordmark {
        font-size: 1.6rem;
    }
}


/* ════════════════════════════════════
   HERO MOBILE RESPONSIVE
════════════════════════════════════ */
@media (max-width: 900px) {
    main.hero-section {
        display: flex;
        flex-direction: column;
        height: auto !important;
        min-height: unset !important;
        overflow: visible !important;
        padding-bottom: var(--section-gap);
        position: relative;
        contain: none !important;
    }

    .hero-right        { display: none; }
    .hero-city-row     { display: none !important; }
    .hero-about-mobile { display: none !important; }
    .news-card         { display: none !important; }

    .hero-left {
        padding: var(--sp-6) var(--element-gap) 0;
        order: 1;
        position: relative;
        z-index: 2;
    }

    .hero-socials {
        position: static;
        margin-top: var(--element-gap);
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
        opacity: 1;
        animation: none;
    }
}

@media (max-width: 768px) {
    .hero-left {
        padding: var(--sp-5) var(--edge-mobile) 0;
    }
    .name          { font-size: var(--text-4xl); letter-spacing: 0.08em; }
    .hero-headline { font-size: var(--text-base); max-width: 100%; }
    .hero-body     { max-width: 100%; font-size: var(--text-base); }
    .hero-actions  { flex-wrap: wrap; gap: var(--sp-1); }
    .hero-btn      { font-size: 0.6rem; padding: 0 var(--sp-2); }
    main.hero-section { padding-bottom: var(--sp-5); }
}

@media (max-width: 480px) {
    .hero-left { padding-top: var(--sp-4); }
    .name      { font-size: var(--text-3xl); letter-spacing: 0.06em; }
    .hero-socials { gap: 0; }
    main.hero-section { padding-bottom: var(--sp-4); }
}


/* ═══════════════════════════════════════════════
   NEWS WIDGET — Fixed floating card (bottom-right)
   z-index: 1000 — above parallax (16), socials (100),
   speech bubbles (200), and any other layers.
═══════════════════════════════════════════════ */

/*
 * NEWS WIDGET — polished card, absolute inside .hero-section
 * Scrolls away with the hero naturally — zero JS positioning needed.
 */
.news-card {
  position: absolute;
  bottom: 36px;
  right: 80px;
  width: 320px;
  padding: 20px 24px 18px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(0, 0, 0, 0.09);
  box-shadow:
    0 2px 8px  rgba(0, 0, 0, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 20;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  opacity: 0;
  animation: newsCardIn 0.9s ease 1.8s forwards;
  position: absolute; /* re-stated for specificity — hero is the containing block */
}

@keyframes newsCardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Muted eyebrow label */
.news-card__label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 10px;
}

/* Bold headline */
.news-card__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #0d0d0d;
  letter-spacing: -0.01em;
  padding-right: 16px; /* room for the ✕ button */
}

/* Lighter description */
.news-card__desc {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  color: #666;
  margin: 0 0 16px;
}

/* Read More link */
.news-card__link {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0d0d0d;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.news-card__link:hover {
  color: #c49b4a;
  border-color: #c49b4a;
}

/* Dismiss ✕ */
.news-card-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  color: #bbb;
  padding: 2px 4px;
  transition: color 0.2s ease;
}

.news-card-close:hover { color: #333; }

/* Dismissed fade-out */
.news-card--dismissed {
  animation: newsCardOut 0.3s ease forwards;
  pointer-events: none;
}

@keyframes newsCardOut {
  to { opacity: 0; transform: translateY(12px); }
}

/* ── Responsive ── */
@media (max-width: 360px) {
  .news-card { display: none; }
}

/* ── Telegram CTA Block ─────────────────────────────────────────────────────
   Lives inside .news-card as a bottom row, separated by a border-top.
   No absolute positioning — no height math, works at every screen size.
─────────────────────────────────────────────────────────────────────────── */
.tg-cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.tg-cta-text {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
  color: #888;
  margin: 0;
  flex: 1;
}

.tg-cta-btn {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: #2481cc;
  border-radius: 4px;
  padding: 5px 10px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.tg-cta-btn:hover {
  background: #1a6fb3;
}

@media print { .tg-cta-block { display: none; } }

/* ═══════════════════════════════════════════════
   PROJECT VIDEO — hover-to-play (Wisdom Pass)
═══════════════════════════════════════════════ */

.ps-frame--video {
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* Aspect-ratio wrapper — locks 16:9 before video dimensions are known. */
.ps-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: transparent;
}

.ps-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  display: block;
}

/* ── Hint overlay — full-cover, fades out on hover ── */
.ps-video-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: transparent;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 2;
}

.ps-frame--video:hover .ps-video-hint {
  opacity: 0;
}

/* ── Animated cursor ── */
.ps-video-cursor {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* drifts gently — draws the eye */
  animation: cursorFloat 3s ease-in-out infinite;
}

@keyframes cursorFloat {
  0%, 100% { transform: translateY(0)   rotate(-4deg); }
  50%       { transform: translateY(-8px) rotate(4deg); }
}

/* Cursor SVG — hand pointer shape */
.ps-video-cursor svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

/* Expanding ring behind the cursor */
.ps-video-cursor::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  animation: ringExpand 2s ease-out infinite;
}

@keyframes ringExpand {
  0%   { transform: scale(0.6); opacity: 0.9; }
  80%  { transform: scale(1.8); opacity: 0;   }
  100% { transform: scale(1.8); opacity: 0;   }
}

/* ── Floating label ── */
.ps-video-label {
  font-family: var(--mono, monospace);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  /* blink-fade to emphasise interactivity */
  animation: labelBlink 2.8s ease-in-out infinite;
}

@keyframes labelBlink {
  0%, 100% { opacity: 0.9; }
  50%       { opacity: 0.4; }
}



/* ═══════════════════════════════════════════════
   WORK WITH ME SECTION
═══════════════════════════════════════════════ */

.wwm-section {
  background: var(--hero-bg);
  padding: 120px 0 320px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.wwm-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  gap: 96px;
}

/* ── Top: headline + description ── */
.wwm-top {
  display: grid;
  grid-template-columns: 42fr 58fr;
  gap: 0 80px;
  align-items: start;
}

.wwm-headline-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 2rem;
}

.wwm-label {
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #c49b4a;
  display: block;
}

.wwm-headline {
  font-size: clamp(2.8rem, 5vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--text-primary);
  margin: 0;
}

.wwm-desc-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.wwm-desc {
  font-size: 0.95rem;
  line-height: 1.82;
  color: var(--text-secondary);
  max-width: 65ch;
  margin: 0;
}

.wwm-sub {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

/* ── Services grid ── */
.wwm-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-left: 1px solid rgba(0,0,0,0.08);
}

.wwm-service {
  padding: 36px 32px;
  border-right: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.25s ease;
  cursor: default;
}

.wwm-service:hover {
  background: rgba(0,0,0,0.025);
}

.wwm-service-num {
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  display: block;
}

.wwm-service-name {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.wwm-service-desc {
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
}

/* ── CTA block ── */
.wwm-cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.wwm-cta-headline {
  font-size: clamp(1.4rem, 2.5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}

.wwm-cta-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.wwm-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  transition: all 0.25s ease;
}

.wwm-cta-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.wwm-cta-btn--primary {
  background: var(--text-primary);
  color: #fff;
}

.wwm-cta-btn--primary:hover {
  background: #333;
  letter-spacing: 0.22em;
}

.wwm-cta-btn--ghost {
  color: var(--text-primary);
  border: 1px solid rgba(0,0,0,0.2);
}

.wwm-cta-btn--ghost:hover {
  border-color: var(--text-primary);
  letter-spacing: 0.22em;
}

/* ── GSAP hidden states ── */
.gsap-ready .wwm-headline  { opacity: 0; }
.gsap-ready .wwm-desc,
.gsap-ready .wwm-sub       { opacity: 0; }
.gsap-ready .wwm-cta-block { opacity: 0; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .wwm-services {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .wwm-inner { padding: 0 48px; gap: 64px; }
  .wwm-top { grid-template-columns: 1fr; gap: 32px 0; }
  .wwm-headline-col { position: static; }
  .wwm-services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .wwm-section { padding: 80px 0 200px; }
  .wwm-inner { padding: 0 24px; gap: 48px; }
  .wwm-services { grid-template-columns: 1fr; }
  .wwm-headline { font-size: clamp(2.2rem, 10vw, 3rem); }
  .wwm-service { padding: 28px 24px; }
  .wwm-cta-links { flex-direction: column; }
  .wwm-cta-btn { justify-content: center; }
}
