/* SECTION 3 — FRAMEWORK INTERACTIVE UPGRADES */
  .layer-poly {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, filter 0.3s ease;
    cursor: pointer;
    transform-origin: center;
    transform-box: fill-box;
  }
  .layer-poly.dim { opacity: 0.32; transform: scale(0.985); }
  .layer-poly.active { filter: drop-shadow(0 8px 20px rgba(184, 92, 46, 0.18)); animation: activeLayerPulse 2.5s ease-in-out infinite; }
  .layer-poly:not(.active):not(.dim):hover,
  .layer-poly.dim:hover { opacity: 0.65; filter: brightness(1.15); transform: scale(1.005); }

  /* Layer label — copper underline draws in on hover, persists when active */
  .label-group { cursor: pointer; }
  .label-underline { stroke: #b85c2e; stroke-width: 1; transition: stroke-dashoffset 0.3s ease, opacity 0.3s ease; stroke-dasharray: 18; stroke-dashoffset: 18; opacity: 0; }
  .label-group:hover .label-underline { stroke-dashoffset: 0; opacity: 0.85; }
  .label-group.active .label-underline { stroke-dashoffset: 0; opacity: 1; }
  .layer-label-num { transition: fill 0.3s ease, font-weight 0.3s ease; cursor: pointer; }

  @keyframes activeLayerPulse {
    0%, 100% { filter: drop-shadow(0 8px 20px rgba(184, 92, 46, 0.18)); }
    50% { filter: drop-shadow(0 8px 28px rgba(184, 92, 46, 0.32)); }
  }

  .layer-pill { transition: all 0.25s ease; cursor: pointer; }
  .layer-pill:not(.active):hover { background: rgba(245, 242, 234, 0.08) !important; border-color: #d4cebe !important; transform: translateY(-1px); }

  /* Panel transition — smoother than the instant CSS fadeIn */
  .layer-detail { display: none; }
  .layer-detail.active { display: block; }
  .layer-detail-wrapper { transition: opacity 0.2s ease, transform 0.25s ease; }
  .layer-detail-wrapper.swapping { opacity: 0; transform: translateY(6px); }

  .rail-item { transition: all 0.3s ease; cursor: pointer; }
  .rail-item.active .rail-name { color: #1f1d18; }
  .rail-item.active .rail-num { color: #b85c2e; }
  .rail-item.active .rail-tagline { color: #1f1d18; }
  .rail-item:not(.active) .rail-name { color: #5e5d54; }
  .rail-item:not(.active) .rail-num { color: #d4cebe; }
  .rail-item:not(.active) .rail-tagline { color: #5e5d54; }
  .indicator { transition: top 0.45s cubic-bezier(0.4, 0, 0.2, 1), height 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
  .panel-content { transition: opacity 0.25s ease; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

  /* SECTION 2 — quiet life */
  .logo-peak { animation: lpPulse 3.6s ease-in-out infinite; }
  @keyframes lpPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.65; } }
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1); }
  .reveal.in { opacity: 1; transform: translateY(0); }
  .reveal.delay-1 { transition-delay: 0.1s; }
  .reveal.delay-2 { transition-delay: 0.22s; }

  /* ============ ACT 1 & 2 — DIAGRAM CARDS ============ */
  .s2-card { position: relative; }
  .s2-glare { display: none; }

  /* story cinema rig */
  #st-cam3d { perspective: 1500px; width: 100%; min-width: 0; }
  #st-cam { will-change: transform; }
  .st-shaft { position: absolute; top: -25%; width: 120px; height: 150%; background: linear-gradient(to bottom, rgba(184, 92, 46, 0.10), rgba(184, 92, 46, 0)); transform: skewX(-16deg); filter: blur(9px); animation: stShaftDrift 14s ease-in-out infinite; }
  @keyframes stShaftDrift { 0%, 100% { transform: skewX(-16deg) translateX(0); opacity: 0.7; } 50% { transform: skewX(-14deg) translateX(30px); opacity: 1; } }
  .st-fogb { position: absolute; border-radius: 50%; filter: blur(44px); background: radial-gradient(circle, rgba(184, 92, 46, 0.10), transparent 65%); pointer-events: none; }
  @keyframes stFogA { 0%, 100% { transform: translate(-10%, 3%); } 50% { transform: translate(9%, -5%); } }
  @keyframes stFogB { 0%, 100% { transform: translate(7%, -4%); } 50% { transform: translate(-8%, 5%); } }
  .st-dofp { position: absolute; border-radius: 50%; background: #b85c2e; pointer-events: none; z-index: 3; }
  @keyframes stDofA { 0% { transform: translate(0, 0); } 50% { transform: translate(40px, -52px); } 100% { transform: translate(0, 0); } }
  @keyframes stDofB { 0% { transform: translate(0, 0); } 50% { transform: translate(-50px, 40px); } 100% { transform: translate(0, 0); } }

  /* State A — links crawl then flicker out, failure marks pulse, cubes cast grounded shadows */
  @keyframes s2aLinkCrawl { to { stroke-dashoffset: -64; } }
  @keyframes s2aFlicker { 0%, 100% { opacity: 0.55; } 41% { opacity: 0.5; } 44% { opacity: 0.1; } 47% { opacity: 0.55; } 71% { opacity: 0.5; } 73% { opacity: 0.15; } 75% { opacity: 0.55; } }
  .s2a-link { animation: s2aLinkCrawl 7s linear infinite, s2aFlicker 6.4s linear infinite; }
  .s2a-l2 { animation-delay: 0s, 1.1s; } .s2a-l3 { animation-delay: 0s, 2.3s; } .s2a-l4 { animation-delay: 0s, 3.4s; } .s2a-l5 { animation-delay: 0s, 4.6s; }
  @keyframes s2aXPulse { 0%, 100% { opacity: 0.45; transform: scale(1); } 50% { opacity: 1; transform: scale(1.4); } }
  .s2a-x { transform-box: fill-box; transform-origin: center; animation: s2aXPulse 2.8s ease-in-out infinite; }
  .s2a-x2 { animation-delay: 0.5s; } .s2a-x3 { animation-delay: 1s; } .s2a-x4 { animation-delay: 1.5s; } .s2a-x5 { animation-delay: 2s; }
  @keyframes s2aShadow { 0%, 100% { transform: scale(1); opacity: 0.55; } 50% { transform: scale(0.86); opacity: 0.3; } }
  .s2a-shadow { transform-box: fill-box; transform-origin: center; animation: s2aShadow 4.2s ease-in-out infinite; }
  .s2a-shadow-2 { animation-duration: 5.1s; animation-delay: 0.6s; } .s2a-shadow-3 { animation-duration: 4.7s; animation-delay: 1.2s; } .s2a-shadow-4 { animation-duration: 5.5s; animation-delay: 1.8s; } .s2a-shadow-5 { animation-duration: 4.4s; animation-delay: 2.4s; }

  /* State B — energy beams, sonar rings at convergence, breathing core glow, copper seam */
  @keyframes s2bBeam { to { stroke-dashoffset: -60; } }
  .s2b-beam { stroke-dasharray: 1 9; stroke-linecap: round; animation: s2bBeam 1.5s linear infinite; }
  .s2b-beam-2 { animation-delay: 0.25s; } .s2b-beam-3 { animation-delay: 0.5s; } .s2b-beam-4 { animation-delay: 0.75s; } .s2b-beam-5 { animation-delay: 1s; }
  @keyframes s2bRing { 0% { r: 2; opacity: 0.85; } 100% { r: 28; opacity: 0; } }
  .s2b-ring { fill: none; stroke: #b85c2e; stroke-width: 1; animation: s2bRing 2.4s ease-out infinite; }
  .s2b-ring-2 { animation-delay: 0.8s; } .s2b-ring-3 { animation-delay: 1.6s; }
  @keyframes s2bGlowPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.85; } }
  .s2b-glow { animation: s2bGlowPulse 4.5s ease-in-out infinite; }
  @keyframes s2bSeam { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.95; } }
  .s2b-seam { animation: s2bSeam 3s ease-in-out infinite; }

  /* State B integrated stack — data flows from source silos at top down into integrated stack */
  @keyframes s2DataFlowB { 0% { cy: 75; opacity: 0; r: 0; } 12% { opacity: 0.95; r: 2.5; } 88% { opacity: 0.95; r: 2.5; } 100% { cy: 215; opacity: 0; r: 0; } }
  .s2-flow { fill: #b85c2e; filter: drop-shadow(0 0 3px rgba(184, 92, 46, 0.5)); animation: s2DataFlowB 5s ease-in-out infinite; }
  .s2-flow-2 { animation-delay: 1.7s; }
  .s2-flow-3 { animation-delay: 3.4s; }

  /* Automated workflow — one copper packet travels with pause at APPROVE */
  @keyframes s2PacketTravel {
    0% { cx: 30; opacity: 0; }
    3% { cx: 30; opacity: 1; }
    18% { cx: 102; opacity: 1; }
    33% { cx: 174; opacity: 1; }
    48% { cx: 246; opacity: 1; }
    50% { cx: 264; opacity: 1; r: 5; }
    62% { cx: 264; opacity: 1; r: 5.5; }
    66% { cx: 264; opacity: 1; r: 5; }
    78% { cx: 308; opacity: 1; }
    88% { cx: 328; opacity: 1; }
    96% { cx: 360; opacity: 0; }
    100% { cx: 360; opacity: 0; }
  }
  .s2-packet { fill: #b85c2e; filter: drop-shadow(0 0 6px rgba(184, 92, 46, 0.7)); animation: s2PacketTravel 5s linear infinite; }
  @keyframes s2ApproveGlow { 0%, 49%, 67%, 100% { opacity: 0; } 50%, 66% { opacity: 1; } }
  .s2-approve-glow { animation: s2ApproveGlow 5s linear infinite; fill: none; stroke: #b85c2e; stroke-width: 1.5; }

  /* STATE A — DRIFTING SILOS (subtle orbital sway + independent bobs) */
  @keyframes stateAOrbit { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
  @keyframes stateABob1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3.5px); } }
  @keyframes stateABob2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
  @keyframes stateABob3 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
  @keyframes stateABob4 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4.5px); } }
  @keyframes stateABob5 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3.2px); } }
  .state-a-cluster { animation: stateAOrbit 60s ease-in-out infinite; transform-origin: 180px 150px; }
  .state-a-cube-1 { animation: stateABob1 4.2s ease-in-out infinite; animation-delay: 0s; }
  .state-a-cube-2 { animation: stateABob2 5.1s ease-in-out infinite; animation-delay: 0.6s; }
  .state-a-cube-3 { animation: stateABob3 4.7s ease-in-out infinite; animation-delay: 1.2s; }
  .state-a-cube-4 { animation: stateABob4 5.5s ease-in-out infinite; animation-delay: 1.8s; }
  .state-a-cube-5 { animation: stateABob5 4.4s ease-in-out infinite; animation-delay: 2.4s; }

  /* STATE B — SOURCE CUBES (subtle orbital sway + independent bobs — same treatment as State A) */
  @keyframes stateBOrbit { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
  @keyframes stateBBob1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0.8px, -2.5px); } }
  @keyframes stateBBob2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-0.6px, -3px); } }
  @keyframes stateBBob3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0.5px, -2.2px); } }
  @keyframes stateBBob4 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-0.7px, -2.8px); } }
  @keyframes stateBBob5 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0.4px, -2.4px); } }
  .state-b-sources { animation: stateBOrbit 60s ease-in-out infinite; transform-origin: 140px 57px; }
  .state-b-cube-1 { animation: stateBBob1 4.6s ease-in-out infinite; animation-delay: 0s; }
  .state-b-cube-2 { animation: stateBBob2 5.3s ease-in-out infinite; animation-delay: 0.5s; }
  .state-b-cube-3 { animation: stateBBob3 4.1s ease-in-out infinite; animation-delay: 1.1s; }
  .state-b-cube-4 { animation: stateBBob4 5.7s ease-in-out infinite; animation-delay: 1.7s; }
  .state-b-cube-5 { animation: stateBBob5 4.9s ease-in-out infinite; animation-delay: 2.3s; }

  /* HERO FRAMEWORK ANIMATIONS */
  @keyframes layerFall { 0% { opacity: 0; transform: translateY(-40px); } 100% { opacity: 1; transform: translateY(0); } }
  @keyframes ambientBreath { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
  @keyframes copperPulse { 0%, 100% { opacity: 0.78; } 50% { opacity: 0.95; } }
  @keyframes dataFlow { 0% { cy: 430; opacity: 0; r: 0; } 6% { opacity: 0.95; r: 4; } 92% { opacity: 0.95; r: 4; } 100% { cy: 50; opacity: 0; r: 0; } }
  @keyframes dataFlowDelayed { 0%, 50% { cy: 430; opacity: 0; r: 0; } 53% { opacity: 0.95; r: 3; } 96% { opacity: 0.95; r: 3; } 100% { cy: 50; opacity: 0; r: 0; } }
  @keyframes rotationDrift { 0%, 100% { transform: perspective(1400px) rotateY(-5deg); } 50% { transform: perspective(1400px) rotateY(5deg); } }

  .framework-outer { display: block; animation: rotationDrift 16s ease-in-out infinite; animation-delay: 1s; transform-style: preserve-3d; max-width: 440px; margin: 0 auto; }
  .framework-stack { position: relative; display: block; animation: ambientBreath 5s ease-in-out infinite; animation-delay: 1.5s; }
  .layer { transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.45s ease; will-change: transform, filter; opacity: 0; animation: layerFall 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
  .layer.settled { animation: none; opacity: 1; }
  .layer.layer-hot { filter: brightness(1.05) drop-shadow(0 10px 22px rgba(184, 92, 46, 0.22)); }
  .layer-1 { animation-delay: 0ms; } .layer-2 { animation-delay: 120ms; } .layer-3 { animation-delay: 240ms; } .layer-4 { animation-delay: 360ms; } .layer-5 { animation-delay: 480ms; }
  .copper-face { animation: copperPulse 3s ease-in-out infinite; animation-delay: 1.2s; }
  .data-dot { fill: #b85c2e; filter: drop-shadow(0 0 4px rgba(184, 92, 46, 0.6)); animation: dataFlow 6s ease-in-out infinite; animation-delay: 1.5s; }
  .data-dot-2 { fill: #6b7a5a; filter: drop-shadow(0 0 3px rgba(107, 122, 90, 0.5)); animation: dataFlowDelayed 6s ease-in-out infinite; animation-delay: 1.5s; }
  .input-arrow { opacity: 0; animation: layerFall 0.6s ease forwards; animation-delay: 800ms; }
  .output-arrow { opacity: 0; animation: layerFall 0.6s ease forwards; animation-delay: 900ms; }
  .label-line, .label-text { opacity: 0; animation: layerFall 0.5s ease-out forwards; }
  .label-d-1 { animation-delay: 200ms; } .label-d-2 { animation-delay: 320ms; } .label-d-3 { animation-delay: 440ms; } .label-d-4 { animation-delay: 560ms; } .label-d-5 { animation-delay: 680ms; }

  /* ============ HERO — ATMOSPHERE & ENTRANCE ============ */
  .hero-band { position: relative; overflow: hidden; }
  .hero-grain { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0.55; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.12 0 0 0 0 0.11 0 0 0 0 0.09 0 0 0 0.04 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>"); }
  .hero-inner { position: relative; z-index: 2; }
  .hero-glow { position: absolute; top: 50%; left: 50%; width: 720px; height: 720px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(184, 92, 46, 0.09) 0%, rgba(184, 92, 46, 0.035) 42%, rgba(184, 92, 46, 0) 70%); pointer-events: none; animation: heroGlowBreath 7s ease-in-out infinite; }
  @keyframes heroGlowBreath { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

  @keyframes heroWord { 0% { opacity: 0; transform: translateY(28px) rotate(1.5deg); } 100% { opacity: 1; transform: translateY(0) rotate(0deg); } }
  .hw { display: inline-block; opacity: 0; animation: heroWord 0.65s cubic-bezier(0.2, 0.65, 0.2, 1) forwards; }
  .hw-1 { animation-delay: 0.05s; } .hw-2 { animation-delay: 0.13s; } .hw-3 { animation-delay: 0.21s; } .hw-4 { animation-delay: 0.29s; } .hw-5 { animation-delay: 0.37s; } .hw-6 { animation-delay: 0.45s; } .hw-7 { animation-delay: 0.53s; }
  .hero-em { position: relative; }
  .hero-em::after { content: ''; position: absolute; left: 0; bottom: 3px; width: 100%; height: 2px; background: #b85c2e; opacity: 0.85; transform: scaleX(0); transform-origin: left; animation: emUnderline 0.55s cubic-bezier(0.65, 0, 0.35, 1) forwards; animation-delay: 1.05s; }
  @keyframes emUnderline { to { transform: scaleX(1); } }
  @keyframes heroRise { 0% { opacity: 0; transform: translateY(18px); } 100% { opacity: 1; transform: translateY(0); } }
  .hero-rise { opacity: 0; animation: heroRise 0.7s cubic-bezier(0.2, 0.65, 0.2, 1) forwards; }
  .hero-rise-1 { animation-delay: 0s; } .hero-rise-2 { animation-delay: 0.75s; } .hero-rise-3 { animation-delay: 0.9s; }

  /* CTA micro-interactions */
  .cta-btn { transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease; }
  .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(31, 29, 24, 0.35); }
  .cta-arrow { display: inline-block; max-width: 0; margin-left: 0; opacity: 0; overflow: hidden; vertical-align: middle; transform: translateX(-4px); transition: max-width 0.3s ease, margin-left 0.3s ease, opacity 0.3s ease, transform 0.3s ease; }
  .cta-btn:hover .cta-arrow { max-width: 16px; margin-left: 7px; opacity: 1; transform: translateX(0); }
  .cta-ghost:hover { background: #1f1d18; color: #f5f2ea !important; }

  /* Hero stack — interactive layers + data life */
  .layer { cursor: pointer; }
  .label-text { transition: fill 0.25s ease; }
  .label-text.lbl-hl { fill: #b85c2e; }
  .hero-scan, .hero-pulse, .hero-beam, .data-dot, .data-dot-2 { pointer-events: none; }
  @keyframes heroBeamCrawl { to { stroke-dashoffset: -48; } }
  .hero-beam { stroke: #b85c2e; stroke-width: 0.6; stroke-dasharray: 2 6; opacity: 0.16; animation: heroBeamCrawl 3.5s linear infinite; }
  @keyframes heroPulse { 0% { r: 3; opacity: 0; } 5% { opacity: 0.6; } 30% { r: 15; opacity: 0; } 100% { r: 15; opacity: 0; } }
  .hero-pulse { fill: none; stroke: #b85c2e; stroke-width: 1; animation: heroPulse 6s linear infinite; animation-delay: 3s; }
  .hero-pulse-b { animation-delay: 3.95s; } .hero-pulse-c { animation-delay: 4.9s; }
  @keyframes heroScan { 0% { transform: translateY(0); opacity: 0; } 6% { opacity: 0.45; } 42% { opacity: 0.3; } 50% { transform: translateY(-240px); opacity: 0; } 100% { transform: translateY(-240px); opacity: 0; } }
  .hero-scan { animation: heroScan 9s ease-in-out infinite; animation-delay: 2.5s; }
  @keyframes heroShadowBreath { 0%, 100% { transform: scale(1); opacity: 0.55; } 50% { transform: scale(0.97); opacity: 0.4; } }
  .hero-ground-shadow { transform-box: fill-box; transform-origin: center; animation: heroShadowBreath 5s ease-in-out infinite; animation-delay: 1.5s; }

  /* ============ STORY — PINNED SCROLL EXPERIENCE ============ */
  #story-stage { background: var(--st-bg, #f5f2ea); }
  .st-copy { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform; }
  .st-badge { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #b85c2e; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
  .st-h3 { font-size: 30px; font-weight: 500; line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 16px; color: var(--st-ink, #1f1d18); }
  .st-meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.06em; color: var(--st-sub, #5e5d54); margin-bottom: 14px; text-transform: uppercase; }
  .st-list { list-style: none; padding: 0; margin: 0; }
  .st-list li { font-size: 13.5px; line-height: 1.45; margin-bottom: 9px; padding-left: 16px; position: relative; color: var(--st-sub, #5e5d54); }
  .st-mark { position: absolute; left: 0; font-family: 'JetBrains Mono', monospace; font-size: 11px; }
  .st-stats { display: flex; gap: 32px; margin-top: 24px; padding-top: 20px; border-top: 0.5px solid var(--st-line, #d4cebe); }
  #st-svg { animation: ambientBreath 7s ease-in-out infinite; }
  .st-dot.on { box-shadow: 0 0 10px rgba(184, 92, 46, 0.45); }
  @keyframes stChipPop { 0% { opacity: 0.15; transform: translateY(-4px); } 100% { opacity: 1; transform: translateY(0); } }
  .st-copy .st-badge, .st-copy .st-h3, .st-copy .st-meta, .st-copy .st-list li, .st-copy .st-stats { opacity: 0; transform: translateY(14px); transition: opacity 0.55s cubic-bezier(0.2, 0.65, 0.2, 1), transform 0.55s cubic-bezier(0.2, 0.65, 0.2, 1); }
  .st-copy.on .st-badge { opacity: 1; transform: none; transition-delay: 0.02s; }
  .st-copy.on .st-h3 { opacity: 1; transform: none; transition-delay: 0.1s; }
  .st-copy.on .st-meta { opacity: 1; transform: none; transition-delay: 0.16s; }
  .st-copy.on .st-list li:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.21s; }
  .st-copy.on .st-list li:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.28s; }
  .st-copy.on .st-list li:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.35s; }
  .st-copy.on .st-stats { opacity: 1; transform: none; transition-delay: 0.44s; }
  .st-stat-num { font-family: 'JetBrains Mono', monospace; font-size: 27px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; margin-bottom: 7px; }
  .st-stat-lab { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--st-sub, #5e5d54); }
  .st-box text { text-anchor: middle; font-family: 'JetBrains Mono', monospace; }
  .st-tm, .st-ta { font-size: 11px; font-weight: 500; fill: var(--st-ink, #1f1d18); }
  .st-sm, .st-sa { font-size: 9px; fill: var(--st-sub, #5e5d54); }
  .st-dot { position: absolute; left: 50%; transform: translateX(-50%); width: 9px; height: 9px; border-radius: 50%; background: var(--st-bg, #f5f2ea); border: 1px solid var(--st-line, #d4cebe); transition: background 0.3s ease, border-color 0.3s ease; }
  .st-dot.on { background: #b85c2e; border-color: #b85c2e; }
  @keyframes stPacket { 0% { cx: 180; opacity: 0; } 4% { opacity: 1; } 24% { cx: 310; } 44% { cx: 440; } 54% { cx: 570; r: 4.5; } 66% { cx: 570; r: 5.5; } 70% { cx: 570; r: 4.5; } 88% { cx: 700; opacity: 1; } 94% { cx: 700; opacity: 0; } 100% { cx: 700; opacity: 0; } }
  .st-packet { fill: #b85c2e; filter: drop-shadow(0 0 6px rgba(184, 92, 46, 0.7)); animation: stPacket 5.5s linear infinite; }
  .st-approve-glow { fill: none; stroke: #b85c2e; stroke-width: 1.5; animation: s2ApproveGlow 5.5s linear infinite; }

  /* STORY — atmosphere & life */
  @keyframes stDust { 0%, 100% { transform: translateY(0); opacity: 0.2; } 50% { transform: translateY(-16px); opacity: 0.5; } }
  #st-dust circle { animation: stDust 7s ease-in-out infinite; }
  @keyframes stOrbitCrawl { to { stroke-dashoffset: -88; } }
  .st-orbit { animation: stOrbitCrawl 16s linear infinite; }
  .st-cycle-ring { animation: stOrbitCrawl 11s linear infinite; }
  @keyframes stHPulse { 0%, 100% { r: 8; } 50% { r: 9.3; } }
  .st-hcirc { animation: stHPulse 2.6s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(184, 92, 46, 0.45)); }
  @keyframes stFallC { 0% { cy: 145; opacity: 0; r: 0; } 15% { opacity: 0.9; r: 2.8; } 85% { opacity: 0.9; r: 2.8; } 100% { cy: 214; opacity: 0; r: 0; } }
  .st-fall-c { cx: 440px; fill: #b85c2e; filter: drop-shadow(0 0 3px rgba(184, 92, 46, 0.5)); animation: stFallC 2.4s linear infinite; }
  @keyframes stFallA { 0% { cx: 262; cy: 144; opacity: 0; } 14% { opacity: 0.85; } 86% { opacity: 0.85; } 100% { cx: 436; cy: 217; opacity: 0; } }
  @keyframes stFallB { 0% { cx: 618; cy: 144; opacity: 0; } 14% { opacity: 0.85; } 86% { opacity: 0.85; } 100% { cx: 444; cy: 217; opacity: 0; } }
  .st-fall-a { r: 2.2px; fill: #b85c2e; animation: stFallA 2.8s linear infinite; animation-delay: 0.7s; }
  .st-fall-b { r: 2.2px; fill: #b85c2e; animation: stFallB 2.8s linear infinite; animation-delay: 1.6s; }
  /* ============ FRAMEWORK — ATMOSPHERE & LIFE ============ */
  #framework-svg-container { animation: ambientBreath 7s ease-in-out infinite; }
  #framework-svg-container:hover { animation-play-state: paused; }
  @keyframes fwClimb { 0% { cy: 495; opacity: 0; r: 0; } 8% { opacity: 0.9; r: 3.5; } 90% { opacity: 0.9; r: 3.5; } 100% { cy: 102; opacity: 0; r: 0; } }
  .fw-dot { fill: #b85c2e; filter: drop-shadow(0 0 4px rgba(184, 92, 46, 0.6)); animation: fwClimb 7s ease-in-out infinite; }
  .fw-dot-2 { fill: #6b7a5a; filter: drop-shadow(0 0 3px rgba(107, 122, 90, 0.5)); animation-delay: 3.5s; }
  @keyframes fwBeamCrawl { to { stroke-dashoffset: -48; } }
  .fw-beam { stroke: #b85c2e; stroke-width: 0.6; stroke-dasharray: 2 6; opacity: 0.15; animation: fwBeamCrawl 3.5s linear infinite; }
  #fw-dust circle { animation: stDust 7s ease-in-out infinite; }
  @keyframes fwIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
  .layer-detail.active > * { animation: fwIn 0.5s cubic-bezier(0.2, 0.65, 0.2, 1) backwards; }
  .layer-detail.active > *:nth-child(1) { animation-delay: 0.04s; }
  .layer-detail.active > *:nth-child(2) { animation-delay: 0.11s; }
  .layer-detail.active > *:nth-child(3) { animation-delay: 0.18s; }
  .layer-detail.active > *:nth-child(4) { animation-delay: 0.26s; }
  .layer-detail.active > *:nth-child(5) { animation-delay: 0.33s; }
  /* layers above the active one are unformed blueprint outlines; the stack solidifies upward */
  .layer-poly polygon { transition: fill-opacity 0.8s ease, stroke-opacity 0.8s ease; }
  .layer-poly.ghost polygon { fill-opacity: 0.05; stroke-dasharray: 3 4; stroke-opacity: 0.55; }
  .layer-poly.ghost { opacity: 0.5; }
  .layer-poly.built:not(.active) { opacity: 0.55; }
  @keyframes fwTimer { from { transform: scaleX(0); } to { transform: scaleX(1); } }

  /* ============ CTA + FOOTER — ALIVE ============ */
  .cta-copper:hover { box-shadow: 0 12px 30px -8px rgba(184, 92, 46, 0.55) !important; }
  .cta-ghost-dark:hover { background: #f5f2ea; color: #1f1d18 !important; border-color: #f5f2ea !important; }
  .ft-step { transition: padding-left 0.3s ease; border-radius: 6px; }
  .ft-step:hover { padding-left: 8px; }
  .ft-step:hover .ft-step-num { color: #b85c2e; }
  .ft-step-num { transition: color 0.3s ease; }
  .ft-link { color: #d4cebe; text-decoration: none; position: relative; transition: color 0.25s ease; }
  .ft-link::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: #b85c2e; transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
  .ft-link:hover { color: #f5f2ea; }
  .ft-link:hover::after { transform: scaleX(1); }
  .ft-dust { position: absolute; width: 4px; height: 4px; border-radius: 50%; pointer-events: none; animation: stDust 7s ease-in-out infinite; }
  @keyframes ftLogoClimb { 0% { cy: 44; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { cy: 5; opacity: 0; } }
  .ft-logo-dot { animation: ftLogoClimb 3.6s ease-in-out infinite; }
  /* ============ CAPABILITIES BAND ============ */
  #cap-band { display: block; background: #1f1d18; text-decoration: none; border-top: 0.5px solid #3a3833; transition: background 0.5s ease; position: relative; overflow: hidden; }
  #cap-band:hover { background: #242220; }
  .cap-streak { position: absolute; top: -0.5px; left: 0; width: 220px; height: 1px; background: linear-gradient(to right, transparent, rgba(184, 92, 46, 0.85), transparent); animation: capStreak 7s cubic-bezier(0.45, 0, 0.55, 1) infinite; pointer-events: none; }
  @keyframes capStreak { 0% { left: -240px; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
  .cap-glow { position: absolute; top: 50%; left: 50%; width: 460px; height: 260px; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(184, 92, 46, 0.06), transparent 65%); opacity: 0; transition: opacity 0.5s ease, transform 0.25s ease-out; pointer-events: none; }
  #cap-band:hover .cap-glow { opacity: 1; }
  .cap-em { position: relative; }
  .cap-em::after { content: ''; position: absolute; left: 0; bottom: 1px; width: 100%; height: 1.5px; background: #b85c2e; transform: scaleX(0); transform-origin: left; transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1); }
  #cap-band:hover .cap-em::after { transform: scaleX(1); }
  .cap-line { flex: 1; height: 1px; background: #3a3833; position: relative; overflow: hidden; }
  .cap-line::after { content: ''; position: absolute; inset: 0; background: #b85c2e; transform: scaleX(0); transform-origin: left; transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1); }
  #cap-band:hover .cap-line::after { transform: scaleX(1); }
  .cap-circle { width: 52px; height: 52px; border-radius: 50%; border: 0.5px solid #5e5d54; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .cap-arrow { color: #d4cebe; font-size: 18px; transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.35s ease; }
  #cap-band:hover .cap-circle { background: #b85c2e; border-color: #b85c2e; transform: scale(1.08); }
  #cap-band:hover .cap-arrow { color: #f5f2ea; transform: translateX(3px); }
  .nav-link { color: #5e5d54; text-decoration: none; position: relative; transition: color 0.25s ease; }
  .nav-link::after { content: ''; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px; background: #b85c2e; transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
  .nav-link:hover { color: #1f1d18; }
  .nav-link:hover::after { transform: scaleX(1); }
  /* ---- header Contact us button ---- */
  .nav-contact { border: 0.5px solid #1f1d18; color: #1f1d18; background: transparent; padding: 7px 16px; border-radius: 22px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; display: inline-block; transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; }
  .nav-contact:hover { background: #1f1d18; color: #f5f2ea; transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(31, 29, 24, 0.25); }
  .nav-contact-m { display: none; }
  @media (max-width: 900px) { .nav-contact { display: none; } .nav-links.open .nav-contact-m { display: block; } }
  /* ============ WHO & HOW — PARTNER CARDS + DELIVERY TIMELINE ============ */
  .wh-col { position: relative; padding: 28px 26px 26px; transition: background 0.4s ease; display: flex; flex-direction: column; }
  .wh-col h3 { min-height: 44px; display: flex; align-items: flex-start; }
  .wh-col:hover { background: #ece7d8; }
  .wh-rule { position: absolute; top: -0.5px; left: 0; width: 100%; height: 2px; background: #b85c2e; transform: scaleX(0); transform-origin: left; transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .wh-col:hover .wh-rule { transform: scaleX(1); }
  .wh-col-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 34px; }
  .wh-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; color: #5e5d54; transition: color 0.3s ease; }
  .wh-col:hover .wh-num { color: #b85c2e; }
  .wh-glyph { display: block; transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .wh-col:hover .wh-glyph { transform: translateY(-3px); }
  .wh-meta { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7a5a; padding-top: 14px; border-top: 0.5px solid #d4cebe; transition: color 0.3s ease; margin-top: auto; }
  .wh-col:hover .wh-meta { color: #b85c2e; }

  .wh-node { width: 15px; height: 15px; border-radius: 50%; background: #b85c2e; display: inline-block; flex-shrink: 0; transform: scale(0); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease; }
  #wh-tl.play .wh-p1 .wh-node { transform: scale(1); transition-delay: 0.25s; }
  #wh-tl.play .wh-p2 .wh-node { transform: scale(1); transition-delay: 0.7s; }
  #wh-tl.play .wh-p3 .wh-node { transform: scale(1); transition-delay: 1.15s; }
  #wh-tl.play .wh-p4 .wh-node { transform: scale(1); transition-delay: 1.6s; }
  .wh-phase:hover .wh-node { box-shadow: 0 0 12px rgba(184, 92, 46, 0.6); }
  .wh-fill { transition: transform 1.9s cubic-bezier(0.45, 0, 0.25, 1); }
  #wh-tl.play .wh-fill { transform: scaleX(1); }
  .wh-body { opacity: 0; transform: translateY(14px); transition: opacity 0.6s cubic-bezier(0.2, 0.65, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.65, 0.2, 1); }
  #wh-tl.play .wh-p1 .wh-body { opacity: 1; transform: none; transition-delay: 0.4s; }
  #wh-tl.play .wh-p2 .wh-body { opacity: 1; transform: none; transition-delay: 0.85s; }
  #wh-tl.play .wh-p3 .wh-body { opacity: 1; transform: none; transition-delay: 1.3s; }
  #wh-tl.play .wh-p4 .wh-body { opacity: 1; transform: none; transition-delay: 1.75s; }
  .wh-week { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.08em; color: #6b7a5a; text-transform: uppercase; margin-bottom: 10px; transition: color 0.25s ease; }
  .wh-phase:hover .wh-week { color: #b85c2e; }
  .wh-tag { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #b85c2e; background: #ece7d8; border: 0.5px solid #d4cebe; border-radius: 4px; padding: 4px 9px; display: inline-block; }
  /* ============ THE DELIVERY LINE (dark band) ============ */
  .streak-d { position: absolute; top: -0.5px; left: 0; width: 220px; height: 1px; background: linear-gradient(to right, transparent, rgba(184, 92, 46, 0.85), transparent); animation: streakD 7s cubic-bezier(0.45, 0, 0.55, 1) infinite; pointer-events: none; }
  @keyframes streakD { 0% { left: -240px; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
  .dlv .wh-phase { opacity: 0.42; transition: opacity 0.5s ease, transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .dlv .wh-phase.live { opacity: 1; }
  .dlv .wh-phase.live .wh-node { box-shadow: 0 0 0 5px rgba(184, 92, 46, 0.16), 0 0 14px rgba(184, 92, 46, 0.55); }
  .dlv .wh-phase.live .wh-week { color: #b85c2e; }
  .wh-del { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase; color: #b85c2e; margin-top: 12px; opacity: 0; transform: translateY(5px); transition: opacity 0.45s ease, transform 0.45s ease; }
  .dlv .wh-phase.live .wh-del { opacity: 1; transform: none; }
  #wh-tl.hold .wh-runner { animation-play-state: paused; }
  .dlv-film { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
  @keyframes dlvBeacon { 0% { box-shadow: 0 0 0 0 rgba(184, 92, 46, 0.45), 0 0 18px rgba(184, 92, 46, 0.25); } 70% { box-shadow: 0 0 0 14px rgba(184, 92, 46, 0), 0 0 18px rgba(184, 92, 46, 0.25); } 100% { box-shadow: 0 0 0 0 rgba(184, 92, 46, 0), 0 0 18px rgba(184, 92, 46, 0.25); } }
  .dlv-film-circle { width: 62px; height: 62px; border-radius: 50%; border: 1px solid #b85c2e; background: rgba(184, 92, 46, 0.1); display: flex; align-items: center; justify-content: center; color: #d97a40; animation: dlvBeacon 2.6s cubic-bezier(0.25, 0.6, 0.4, 1) infinite; transition: background 0.35s ease, color 0.35s ease, transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .dlv-film-lab { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: #d4cebe; text-align: center; line-height: 1.6; transition: color 0.3s ease; }
  .dlv-film-lab em { font-style: normal; color: #b85c2e; }
  .dlv-film:hover .dlv-film-circle { background: #b85c2e; color: #f5f2ea; transform: scale(1.1); animation-play-state: paused; box-shadow: 0 10px 30px -6px rgba(184, 92, 46, 0.6); }
  .dlv-film:hover .dlv-film-lab { color: #f5f2ea; }
  @keyframes dlvSpin { to { transform: rotate(360deg); } }
  .dlv-film-circle svg { animation: dlvSpin 14s linear infinite; }

  /* ============ WHO — IDENTITY SELECTOR ============ */
  .w2-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 0.5px solid #d4cebe; position: relative; z-index: 1; }
  .w2-tab { background: none; border: none; border-right: 0.5px solid #d4cebe; padding: 16px 18px 15px; text-align: left; cursor: pointer; font-family: inherit; transition: background 0.3s ease; }
  .w2-tab:last-of-type { border-right: none; }
  .w2-tab:hover { background: #ece7d8; }
  .w2-num { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.08em; color: #5e5d54; margin-bottom: 5px; transition: color 0.3s ease, letter-spacing 0.3s ease; }
  .w2-name { font-size: 13.5px; font-weight: 500; color: #5e5d54; transition: color 0.3s ease; }
  .w2-tab.on .w2-num { color: #b85c2e; letter-spacing: 0.18em; }
  .w2-tab.on .w2-name { color: #1f1d18; }
  #w2-ind { position: absolute; bottom: -0.5px; left: 0; width: 25%; height: 2px; background: #b85c2e; transition: left 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1); }
  #w2-timer { position: absolute; top: 0; left: 0; height: 2px; width: 100%; background: #b85c2e; opacity: 0.35; transform-origin: left; transform: scaleX(0); pointer-events: none; }
  .w2-stage { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 42px 48px 38px; position: relative; z-index: 1; }
  .w2-qmark { font-family: 'Iowan Old Style', 'Charter', Georgia, serif; font-size: 58px; color: #b85c2e; opacity: 0.4; line-height: 0.5; margin-bottom: 14px; }
  .w2-quote { font-family: 'Iowan Old Style', 'Charter', Georgia, serif; font-style: italic; font-size: 29px; line-height: 1.28; letter-spacing: -0.005em; color: #1f1d18; max-width: 460px; }
  .w2-who { margin-top: 20px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #b85c2e; }
  .w2-answer { font-size: 14.5px; line-height: 1.6; color: #5e5d54; margin: 4px 0 18px; }
  .w2-points { list-style: none; padding: 0; margin: 0 0 24px; }
  .w2-points li { padding-left: 16px; position: relative; font-size: 13px; line-height: 1.5; color: #5e5d54; margin-bottom: 8px; }
  .w2-points li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 1px; background: #b85c2e; }
  .w2-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 0.5px solid #d4cebe; padding-top: 16px; }
  #w2-start { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7a5a; }
  .w2-cta { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.05em; color: #b85c2e; text-decoration: none; white-space: nowrap; transition: color 0.25s ease; }
  .w2-cta .cta-arrow-s { display: inline-block; transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .w2-cta:hover .cta-arrow-s { transform: translateX(5px); }
  .w2-anim { transition: opacity 0.4s cubic-bezier(0.2, 0.65, 0.2, 1), transform 0.4s cubic-bezier(0.2, 0.65, 0.2, 1); }
  #w2-stage.swap .w2-anim { opacity: 0; transform: translateY(10px); transition-delay: 0s !important; }
  #w2-stage:not(.swap) .w2-a1 { transition-delay: 0.02s; }
  #w2-stage:not(.swap) .w2-a2 { transition-delay: 0.09s; }
  #w2-stage:not(.swap) .w2-a3 { transition-delay: 0.17s; }
  #w2-stage:not(.swap) .w2-a4 { transition-delay: 0.25s; }

  /* industry wall — a statement of range */
  .iw-wall { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: baseline; }
  .iw-item { position: relative; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: #b3ab97; cursor: default; transition: color 0.45s ease; padding-bottom: 3px; }
  .iw-item::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: #b85c2e; transform: scaleX(0); transform-origin: left; transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .iw-item.lit { color: #1f1d18; }
  .iw-item.lit::after { transform: scaleX(1); }
  .iw-item:hover { color: #1f1d18; }
  .iw-you { color: rgba(184, 92, 46, 0.55); }
  .iw-you.lit, .iw-you:hover { color: #b85c2e; }
  .iw-capwrap { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; min-height: 22px; }
  .iw-capmark { color: #b85c2e; font-family: 'Iowan Old Style', 'Charter', Georgia, serif; }
  .iw-cap { font-family: 'Iowan Old Style', 'Charter', Georgia, serif; font-style: italic; font-size: 14px; color: #5e5d54; letter-spacing: 0.005em; transition: opacity 0.35s ease, transform 0.35s ease; }
  .iw-cap.swap { opacity: 0; transform: translateY(6px); }

  /* cursor spotlight drifting across the who-grid */
  .wh-spot { position: absolute; top: 0; left: 0; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(184, 92, 46, 0.055), transparent 65%); pointer-events: none; opacity: 0; transition: opacity 0.45s ease; z-index: 0; }
  .wh-col { z-index: 1; }
  .wh-col h3 { transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .wh-col:hover h3 { transform: translateX(3px); }
  .wh-col:hover .wh-meta { border-top-color: rgba(184, 92, 46, 0.5); }
  /* timeline phases: gentle lift, node halo, dashed plumb line */
  .wh-phase { position: relative; transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .wh-phase:hover { transform: translateY(-3px); }
  .wh-phase::after { content: ''; position: absolute; left: 7px; top: 26px; bottom: -6px; width: 1px; border-left: 1px dashed rgba(184, 92, 46, 0.3); opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }
  .wh-phase:hover::after { opacity: 1; }
  .wh-phase:hover .wh-node { box-shadow: 0 0 0 5px rgba(184, 92, 46, 0.14), 0 0 12px rgba(184, 92, 46, 0.5); }
  .wh-runner { position: absolute; top: 2.5px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: #b85c2e; box-shadow: 0 0 10px rgba(184, 92, 46, 0.65); opacity: 0; }
  #wh-tl.play .wh-runner { animation: whRun 10s linear infinite; animation-delay: 2.4s; }
  @keyframes whRun {
    0% { left: 0%; opacity: 0; }
    3% { opacity: 1; }
    10% { left: 0%; }
    26% { left: 25.9%; }
    34% { left: 25.9%; }
    50% { left: 51.8%; }
    58% { left: 51.8%; }
    74% { left: 77.6%; }
    84% { left: 77.6%; opacity: 1; }
    96% { left: 98%; opacity: 0; }
    100% { left: 98%; opacity: 0; }
  }
  /* ============ CASE STUDIES — ALIVE ============ */
  .cs-card { background: #f5f2ea; border: 0.5px solid #d4cebe; border-radius: 8px; padding: 28px 24px; display: flex; flex-direction: column; position: relative; z-index: 1; transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease; }
  .cs-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -18px rgba(31, 29, 24, 0.28); border-color: #c9c1ad; }
  @keyframes csLive { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(107, 122, 90, 0.5); } 50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(107, 122, 90, 0); } }
  .cs-dot { width: 5px; height: 5px; border-radius: 50%; background: #6b7a5a; animation: csLive 2.6s ease-in-out infinite; }
  .cs-num { transition: letter-spacing 0.35s ease; }
  .cs-card:hover .cs-num { letter-spacing: 0.22em; }
  .cs-quote { position: relative; }
  .cs-quote::before { content: ''; position: absolute; left: -1.5px; top: 0; width: 1.5px; height: 100%; background: #b85c2e; transform: scaleY(0); transform-origin: top; transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .cs-card:hover .cs-quote::before { transform: scaleY(1); }
  .cs-tag { transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease; }
  .cs-card:hover .cs-tag { transform: translateY(-1px); }
  .cs-tag:hover { background: rgba(184, 92, 46, 0.12) !important; color: #b85c2e !important; }
  .cs-metric { transition: color 0.3s ease; }
  .cs-all { position: relative; transition: color 0.25s ease; }
  .cs-all .cta-arrow-s { display: inline-block; transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .cs-all:hover { color: #b85c2e; }
  .cs-all:hover .cta-arrow-s { transform: translateX(5px); }
  .ft-totop { cursor: pointer; transition: color 0.25s ease; }
  .ft-totop:hover { color: #b85c2e; }

  @keyframes stHintBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
  .st-hint-arrow { display: inline-block; animation: stHintBob 1.8s ease-in-out infinite; }

  /* ============ MOBILE ============ */
  .nav-burger { display: none; background: none; border: none; font-size: 20px; color: inherit; cursor: pointer; padding: 4px 8px; line-height: 1; }
  @media (max-width: 900px) {
    .section-inner { padding-left: 22px !important; padding-right: 22px !important; }
    h1 { font-size: clamp(30px, 8.5vw, 40px) !important; }
    h2 { font-size: clamp(23px, 6.5vw, 32px) !important; }
    .nav-bar { position: relative; }
    .nav-burger { display: block; }
    .nav-links { display: none !important; }
    .nav-links.open { display: flex !important; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #f5f2ea; border-bottom: 0.5px solid #d4cebe; padding: 16px 24px 20px; gap: 15px; z-index: 80; font-size: 15px; }
    div[style*="grid-template-columns: 1.4fr 1fr 1fr 1fr"] { grid-template-columns: 1fr 1fr !important; gap: 30px !important; }
    /* footer cols must be allowed to shrink, and the email must be breakable —
       otherwise min-content of hello@thoughtscapeai.com (167px) blows the column out */
    div[style*="grid-template-columns: 1.4fr 1fr 1fr 1fr"] > div { min-width: 0; }
    div[style*="grid-template-columns: 1.4fr 1fr 1fr 1fr"] > div:first-child { grid-column: 1 / -1; }
    .ft-link { overflow-wrap: anywhere; }
    div[style*="grid-template-columns: 1.4fr 1fr;"] { display: flex !important; flex-direction: column !important; gap: 32px !important; }
  }

  @media (max-width: 900px) {
    html, body { overflow-x: hidden; overflow-x: clip; }
    .st-fogb, .st-shaft, .st-dofp, #st-atmo, .hero-glow, .hero-grain, .cap-glow, .wh-spot, div[style*="width: 560px"] { display: none !important; }
    .hero-inner { min-height: auto !important; padding-top: 40px !important; padding-bottom: 52px !important; }
    .hero-inner > div[style*="grid"] { display: flex !important; flex-direction: column !important; gap: 44px !important; }
    #hero-visual { max-width: 420px; width: 100%; margin: 0 auto; }
    .hero-rise-3 { flex-wrap: wrap !important; }
    #story-stage div[style*="300px 1fr 28px"] { display: flex !important; flex-direction: column !important; gap: 8px !important; align-items: stretch !important; }
    #story-stage div[style*="height: 420px"] { height: 212px !important; }
    #story { height: 100vh !important; }
    .st-h3 { font-size: 20px !important; margin-bottom: 8px !important; }
    .st-list li { font-size: 12px !important; margin-bottom: 5px !important; }
    .st-meta { margin-bottom: 8px !important; }
    .st-stats { gap: 22px !important; margin-top: 10px !important; padding-top: 10px !important; }
    .st-stat-num { font-size: 19px !important; }
    #story-stage div[style*="height: 100%; display: flex; align-items: center"] { height: auto !important; }
    #st-cam3d, #st-cam { width: 100%; }
    #st-svg { width: 100% !important; height: 36vh !important; max-height: 36vh !important; }
    .framework-stack svg { width: 100% !important; height: auto !important; aspect-ratio: 540 / 480; }
    #framework-svg-container { width: 100% !important; height: auto !important; aspect-ratio: 480 / 460; }
    #story-stage div[style*="width: 28px"] { display: none !important; }
    div[style*="grid-template-columns: 1fr 1fr; gap: 48px"] { display: flex !important; flex-direction: column !important; gap: 32px !important; }
    div[style*="repeat(5, 1fr)"] { grid-template-columns: 1fr 1fr !important; }
    #cap-band .section-inner { flex-wrap: wrap !important; gap: 20px !important; padding-top: 26px !important; padding-bottom: 28px !important; }
    .cap-line { display: none; }
    .w2-tabs { grid-template-columns: 1fr 1fr; }
    .w2-tab { border-bottom: 0.5px solid #d4cebe; }
    .w2-stage { grid-template-columns: 1fr !important; gap: 24px; padding: 24px 20px 22px; }
    .w2-quote { font-size: 21px; }
    .w2-qmark { font-size: 44px; margin-bottom: 10px; }
    #iwall .iw-item { font-size: 13px; }
    .iw-wall { gap: 6px 18px; }
    #delivery .section-inner > div.reveal { flex-wrap: wrap !important; }
    #wh-tl > div[style*="position: absolute"] { display: none !important; }
    .wh-runner { display: none !important; }
    #wh-tl div[style*="repeat(4, 1fr)"] { grid-template-columns: 1fr 1fr !important; gap: 28px 22px !important; }
    .dlv .wh-phase { opacity: 0.75; }
    #cs-grid { grid-template-columns: 1fr !important; }
    #cs-grid .cs-card { min-height: auto; }
  }

  /* ============ LIVING HEADER ============ */
  .site-nav { position: sticky; top: 0; z-index: 100; background: rgba(245, 242, 234, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: box-shadow 0.35s ease; }
  .site-nav.scrolled { box-shadow: 0 10px 30px -14px rgba(31, 29, 24, 0.18); }
  .nav-bar { transition: padding 0.35s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .site-nav.scrolled .nav-bar { padding-top: 13px !important; padding-bottom: 13px !important; }
  .brand svg polygon { transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .brand:hover svg g polygon:nth-child(-n+3) { transform: translateY(2.5px); }
  .brand:hover svg g polygon:nth-child(n+7) { transform: translateY(-2.5px); }
  .brand:hover svg > .logo-peak { transform: translateY(-4px); }
  .nav-link.live { color: #1f1d18; }
  .nav-link.live::after { transform: scaleX(1); }
  @media (max-width: 900px) {
    .site-nav { background: #f5f2ea; -webkit-backdrop-filter: none; backdrop-filter: none; }
  }
  /* footer: between tablet and full desktop the brand column is too narrow for the office register — give it its own row */
  @media (min-width: 901px) and (max-width: 1080px) {
    div[style*="grid-template-columns: 1.4fr 1fr 1fr 1fr"] { grid-template-columns: 1fr 1fr 1fr !important; }
    div[style*="grid-template-columns: 1.4fr 1fr 1fr 1fr"] > div:first-child { grid-column: 1 / -1; }
  }
  /* ---- nav: industries dropdown ---- */
  .nav-dd { position: relative; display: inline-flex; }
  .nav-dd-btn { background: none; border: none; padding: 0; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
  .nav-dd-car { font-size: 8px; line-height: 1; display: inline-block; transition: transform 0.25s ease; }
  .nav-dd-item { display: block; text-decoration: none; }
  .nav-dd-t { display: block; font-size: 13.5px; font-weight: 500; color: #1f1d18; letter-spacing: -0.005em; }
  .nav-dd-s { display: block; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.04em; color: #5e5d54; margin-top: 3px; }
  @media (min-width: 1081px) {
    .nav-dd-menu { position: absolute; top: calc(100% + 16px); left: 50%; min-width: 260px; background: #fbf9f1; border: 0.5px solid #d4cebe; border-radius: 12px; padding: 7px; box-shadow: 0 24px 48px -24px rgba(31, 29, 24, 0.35); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; z-index: 120; }
    .nav-dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
    .nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu, .nav-dd.open .nav-dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
    .nav-dd:hover .nav-dd-car, .nav-dd:focus-within .nav-dd-car, .nav-dd.open .nav-dd-car { transform: rotate(180deg); }
    .nav-dd:hover .nav-dd-btn, .nav-dd.open .nav-dd-btn { color: #1f1d18; }
    .nav-dd:hover .nav-dd-btn::after, .nav-dd.open .nav-dd-btn::after { transform: scaleX(1); }
    .nav-dd-item { padding: 11px 13px; border-radius: 8px; transition: background 0.2s ease; }
    .nav-dd-item:hover, .nav-dd-item:focus-visible { background: #ece7d8; outline: none; }
    .nav-dd-item:hover .nav-dd-t { color: #b85c2e; }
  }
  @media (max-width: 1080px) {
    .nav-dd { display: block; }
    .nav-dd-btn { cursor: default; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #b85c2e; }
    .nav-dd-btn::after, .nav-dd-car { display: none; }
    .nav-dd-menu { margin-top: 10px; padding-left: 14px; border-left: 0.5px solid #d4cebe; display: flex; flex-direction: column; gap: 12px; }
    .nav-dd-t { font-size: 15px; font-weight: 400; }
  }
  /* nav: the link row doesn't fit below ~1080px, so fold it into the burger menu early (buttons stay visible) */
  @media (min-width: 901px) and (max-width: 1080px) {
    .nav-burger { display: block; margin-left: auto; margin-right: 16px; }
    .nav-links { display: none !important; }
    .nav-links.open { display: flex !important; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #f5f2ea; border-bottom: 0.5px solid #d4cebe; padding: 18px 56px 22px; gap: 15px; z-index: 80; font-size: 15px; }
  }
  /* touch targets: bigger tap areas on the phone menu without changing its spacing */
  @media (max-width: 1080px) {
    .nav-burger { min-width: 44px; min-height: 44px; }
    .nav-links.open > a { padding: 10px 0; margin: -10px 0; }
  }
  .nav-actions .cta-btn { white-space: nowrap; }
  @media (max-width: 380px) { .nav-actions .cta-btn { padding: 7px 12px !important; } }
  @media (max-width: 350px) { .nav-actions .cta-btn { padding: 6px 10px !important; letter-spacing: 0.02em !important; } .nav-actions .cta-btn .cta-arrow { display: none; } .nav-burger { min-width: 38px; margin-left: auto; margin-right: 4px !important; } .brand { gap: 8px !important; } .brand > span { font-size: 16px !important; } }

