  :root {
    --brand: #E8410C;
    --brand-glow: rgba(232, 65, 12, 0.35);
    --brand-subtle: rgba(232, 65, 12, 0.10);
    --brand-dark: #A22E08;

    --bg-white: #FFFFFF;
    --bg-grey-1: #F4F6F9;
    --bg-grey-2: #E9ECF2;
    --bg-dark-anchor: #0B0E14;

    --ink-primary: #0F172A;
    --ink-secondary: #475569;
    --ink-muted: #64748B;
    
    --border-light: rgba(15, 23, 42, 0.08);
    --border-light-focus: rgba(15, 23, 42, 0.16);
    --border-brand: rgba(232, 65, 12, 0.28);

    /* Latin fonts (Space Grotesk/Inter/IBM Plex Mono) have no CJK glyphs, so
       Noto Sans JP is the fallback that actually renders the Japanese text
       here, in a weight range that matches the Latin faces reasonably well. */
    --font-heading: 'Space Grotesk', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Noto Sans JP', monospace;

    --glass-blur: blur(20px) saturate(180%);
    --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --card-shadow-hover: 0 12px 32px -4px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.05);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    scrollbar-gutter: stable;
    background-color: var(--bg-white);
    color: var(--ink-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
  }

  .noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    filter: url(#tactile-noise);
    opacity: 0.45;
  }

  nav#nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 72px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    background: rgba(11, 14, 20, 0.45);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.35s ease;
  }
  nav#nav .nav-links a { color: rgba(255, 255, 255, 0.8); }
  nav#nav .nav-lang-switch { color: rgba(255, 255, 255, 0.8); }

  nav#nav.scrolled {
    background: rgba(255, 255, 255, 0.88);
    border-bottom-color: var(--border-light);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  }
  /* logo wordmark is white in the source SVG; darken it once the nav goes
     opaque-white on scroll, but leave the brand-orange accent untouched */
  nav#nav.scrolled .nav-logo-svg path[fill="white"] { fill: var(--ink-primary); }
  nav#nav.scrolled .nav-links a { color: var(--ink-secondary); }
  nav#nav.scrolled .nav-links a:hover { color: var(--ink-primary); }
  nav#nav.scrolled .nav-lang-switch { color: var(--ink-secondary); border-color: var(--border-light); }
  nav#nav.scrolled .nav-lang-switch:hover { color: var(--ink-primary); border-color: var(--border-light-focus); }

  .nav-lang-switch {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 100px;
    transition: color 0.2s ease, border-color 0.2s ease;
  }

  .nav-brand {
    display: flex;
    align-items: center;
  }
  .nav-logo-svg {
    height: 30px;
    width: auto;
    display: block;
    shape-rendering: geometricPrecision;
  }
  .nav-logo-svg path {
    transition: fill 0.3s ease;
  }

  .nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    align-items: center;
  }
  .nav-links a {
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #FFF;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 9px 20px;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 0 16px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 24px rgba(232, 65, 12, 0.55);
  }

  /* Section 1: Hero */
  #hero {
    position: relative;
    min-height: 100vh;
    padding: 140px clamp(1.5rem, 5vw, 4rem) 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
    background: #0A0D11;
    color: #ECEEF1;
  }

  .hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    z-index: 0;
    pointer-events: none;
  }

  .hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
      linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 52px 52px;
    z-index: 1;
    pointer-events: none;
  }
  .hero-grid-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, transparent 20%, rgba(10, 13, 17, 0.88) 80%);
  }

  .hero-glow-emitter {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 760px;
    height: 480px;
    background: radial-gradient(circle, rgba(232, 65, 12, 0.22) 0%, rgba(232, 65, 12, 0) 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(236,238,241,0.85);
    margin-bottom: 24px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255,255,255,0.16);
    border-top-color: rgba(255,255,255,0.26);
    border-radius: 100px;
    padding: 7px 16px 7px 14px;
  }
  .eyebrow::before {
    content: "◼ ";
    color: var(--brand);
  }
  .eyebrow.light {
    color: var(--brand-dark);
    background: rgba(232, 65, 12, 0.08);
    border-color: rgba(232, 65, 12, 0.22);
  }

  .hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
  }
  .hero-h1 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2.4rem, 5.2vw, 4.2rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #ECEEF1;
    margin: 0 0 1.2rem;
  }
  .hero-sub {
    font-family: var(--font-body);
    font-size: clamp(1.02rem, 1.35vw, 1.18rem);
    color: rgba(236,238,241,0.76);
    line-height: 1.7;
    max-width: 680px;
    margin: 0 0 2.2rem;
  }

  .hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
  }
  .hero-btn-ghost {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: rgba(236,238,241,0.75);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
  }
  .hero-btn-ghost:hover {
    color: #FFF;
    border-color: #FFF;
  }

  .hero-stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    max-width: 1100px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 36px;
    position: relative;
    z-index: 2;
  }
  .hero-stat-tile {
    background: rgba(255,255,255,0.08);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    padding: 18px 20px;
    transition: border-color 0.25s, transform 0.25s;
  }
  .hero-stat-tile:hover {
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
  }
  .hero-stat-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    color: #ECEEF1;
    line-height: 1.1;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .hero-stat-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(236,238,241,0.7);
    line-height: 1.45;
    margin-top: 8px;
  }

  section {
    position: relative;
    z-index: 2;
    padding: 120px clamp(1.5rem, 5vw, 4rem);
  }
  .section-header {
    max-width: 760px;
    margin: 0 auto 60px;
    text-align: center;
  }
  .section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin: 12px 0 16px;
    color: var(--ink-primary);
  }
  .section-header h2 em { font-style: italic; color: var(--ink-muted); }
  .section-header p {
    color: var(--ink-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
  }

  /* Card Image Banner: full-bleed photo, domain name pinned, use-cases reveal on hover */
  .card-media-banner {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .card-media-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .app-card:hover .card-media-banner img {
    transform: scale(1.05);
  }
  .card-media-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(6,8,13,0.75) 0%, rgba(6,8,13,0.15) 30%, rgba(6,8,13,0.05) 55%, rgba(6,8,13,0.5) 100%);
    transition: background 0.35s ease;
  }
  .app-card:hover .card-media-scrim,
  .app-card.is-open .card-media-scrim {
    background: linear-gradient(180deg, rgba(6,8,13,0.8) 0%, rgba(6,8,13,0.25) 30%, rgba(6,8,13,0.15) 45%, rgba(6,8,13,0.6) 100%);
  }
  .app-card-hint {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 20px;
    padding: 4px 10px;
    transition: opacity 0.25s ease;
  }
  .app-card:hover .app-card-hint,
  .app-card.is-open .app-card-hint {
    opacity: 0;
  }
  /* Devices with a real pointer see "Hover"; touch devices (no hover) see
     "Tap" instead, via two hint spans toggled by the hover media feature. */
  .app-card-hint .hint-hover { display: none; }
  .app-card-hint .hint-tap { display: none; }
  @media (hover: hover) { .app-card-hint .hint-hover { display: inline; } }
  @media (hover: none) { .app-card-hint .hint-tap { display: inline; } }
  .app-card-usecases {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 3;
    padding: 1.4rem 1.6rem 1.6rem;
    background: linear-gradient(180deg, rgba(6,8,13,0) 0%, rgba(6,8,13,0.82) 22%, rgba(6,8,13,0.97) 100%);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .app-card:hover .app-card-usecases,
  .app-card:focus-within .app-card-usecases,
  .app-card.is-open .app-card-usecases {
    transform: translateY(0);
  }
  .app-card-usecases .app-use-name { color: #F1F5F9; }
  .app-card-usecases .app-use-metric { color: var(--brand); }

  /* Section 2: Value Prop (Checklist Layout with Restored Copy) */
  #value-prop {
    background: var(--bg-grey-1);
    border-top: 1px solid var(--border-light);
    background-image: 
      radial-gradient(circle at 100% 0%, rgba(232, 65, 12, 0.035) 0%, transparent 40%),
      linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
  }
  .vp-grid {
    max-width: 900px;
    margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 2.5rem;
  }
  .vp-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-family: var(--font-body);
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--ink-primary);
  }
  .vp-check {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
  }
  .vp-tagline {
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
    border-top: 1px solid rgba(232, 65, 12, 0.2);
    padding-top: clamp(1.8rem, 3vw, 2.4rem);
  }
  .vp-tagline p {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    line-height: 1.5;
    color: var(--ink-primary);
    margin: 0;
  }
  .vp-tagline .accent { color: var(--brand-dark); }

  /* Section 3: Applications by Industry */
  #applications {
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    background-image: radial-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 0);
    background-size: 28px 28px;
  }
  .app-econ {
    max-width: 1100px;
    margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
    background: var(--bg-grey-1);
    border: 1px solid rgba(232,65,12,0.25);
    border-radius: 14px;
    padding: 1.6rem 2.2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem 2rem;
    flex-wrap: wrap;
    box-shadow: var(--card-shadow);
  }
  .app-econ .big {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    color: var(--brand);
    flex: 0 0 auto;
  }
  .app-econ .txt {
    font-family: var(--font-body);
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--ink-primary);
    flex: 1 1 320px;
  }

  .app-grid {
    max-width: 1100px;
    margin: 0 auto clamp(3rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .app-card {
    position: relative;
    min-height: 320px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
  }
  .app-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
  }
  .app-card-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 2;
    padding: 1.5rem 1.6rem;
  }
  .app-card-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: #FFFFFF;
    text-shadow: 0 1px 8px rgba(0,0,0,0.35);
    margin-bottom: 0.4rem;
  }
  .app-tmpl-count {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.8);
  }
  .app-use-row { margin-bottom: 0.8rem; }
  .app-use-row:last-child { margin-bottom: 0; }
  .app-use-name {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.86rem;
    color: var(--ink-primary);
  }
  .app-use-metric {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--brand-dark);
    margin-top: 0.15rem;
  }

  /* Section 4: The Stack Engine */
  .intro-stack {
    max-width: 720px;
    margin: 0 auto;
    padding: 120px 32px 60px;
    text-align: center;
  }
  .intro-stack h1 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.15;
    margin: 0 0 18px;
    color: var(--ink-primary);
  }
  .intro-stack p {
    color: var(--ink-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
  }

  .pin-wrap {
    position: relative;
    height: 380vh;
    background-color: var(--bg-grey-1);
    background-image: url('../assets/bg2.png');
    background-repeat: repeat-y;
    background-position: 50% 0;
    /* scale to the section's full width and let it tile down the full
       380vh height, so the pattern spans (rather than being cropped to a
       single pinned 100vh window within) the entire stack section */
    background-size: 100% auto;
    border-top: 1px solid var(--border-light);
    transition: background-position 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .pin-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  /* Parallax: background drifts during the Deployment Options enter/exit
     transition. Real scroll is locked during that transition (see
     enterDeploy/exitDeploy in script.js), so this class toggle is what
     actually moves it, since .pin-wrap otherwise only drifts via real
     page scroll. */
  .pin-wrap.deploy-active {
    background-position: 50% -220px;
  }

  .stage-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  .stage-track {
    display: flex;
    width: 200%;
    height: 100%;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .stage-track.show-deploy {
    transform: translate3d(-50%, 0, 0);
  }
  .stage-panel {
    width: 50%;
    flex: 0 0 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px clamp(1.5rem, 4vw, 3.5rem);
    position: relative;
  }

  .stage {
    width: min(1100px, 92vw);
    height: 100%;
    display: grid;
    grid-template-columns: 1fr minmax(220px, 340px);
    align-items: center;
    gap: clamp(20px, 3.5vw, 40px);
  }

  .svg-col {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
  .svg-col svg {
    width: 100%;
    max-height: 82vh;
    filter: drop-shadow(0 20px 30px rgba(15, 23, 42, 0.12));
  }
  /* Hidden until the floating clone (osFloat) lands and hands off to them,
     so only one box is ever visibly moving/present during the transition. */
  #deployBox, #deployOutline {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .glow {
    filter: drop-shadow(0 0 0px transparent);
    transition: filter 0.4s ease;
  }
  .glow.active {
    filter: drop-shadow(0 0 16px rgba(15, 23, 42, 0.25));
  }

  .tag {
    position: absolute;
    z-index: 10;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--ink-primary);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light-focus);
    border-radius: 100px;
    padding: 5px 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    white-space: nowrap;
  }
  .tag.show {
    opacity: 1;
    transform: translateY(0);
  }

  .panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .layer-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--border-light);
    border-radius: 10px;
    padding: 16px 20px;
    opacity: 0.34;
    transition: opacity 0.45s ease, border-color 0.45s ease, transform 0.45s ease;
    box-shadow: var(--card-shadow);
  }
  .layer-card.active {
    opacity: 1;
    border-left-color: var(--brand);
    box-shadow: var(--card-shadow-hover);
    transform: translateX(6px);
  }
  .layer-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-muted);
    letter-spacing: .08em;
    display: block;
    margin-bottom: 4px;
  }
  .layer-card.active .layer-num { color: var(--brand); }
  .layer-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink-primary);
    margin: 0 0 8px;
  }
  .layer-spec {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 10px;
  }
  .layer-desc {
    font-size: 13.5px;
    color: var(--ink-secondary);
    line-height: 1.55;
    margin: 0;
  }

  .deploy-btn {
    position: absolute;
    bottom: 6%;
    right: 2%;
    z-index: 10;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
  }
  .deploy-btn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .os-float {
    position: fixed;
    z-index: 80;
    opacity: 0;
    pointer-events: none;
    transition: left 0.7s cubic-bezier(0.22, 0.9, 0.28, 1), top 0.7s cubic-bezier(0.22, 0.9, 0.28, 1), opacity 0.3s ease;
  }
  .os-float svg { width: 100%; height: 100%; display: block; overflow: visible; }

  /* Deployment Options Subscene */
  .deploy-inline {
    width: min(820px, 90vw);
    position: relative;
  }
  .deploy-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .deploy-close {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--ink-secondary);
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    margin-bottom: 16px;
    transition: color 0.2s;
  }
  .deploy-close:hover { color: var(--brand); }
  
  .deploy-stage {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 300px);
    gap: clamp(20px, 3vw, 36px);
    align-items: center;
  }
  .deploy-option-list {
    position: relative;
    min-height: 290px;
  }
  .deploy-option-list .layer-card {
    position: absolute;
    top: 0; left: 0; right: 0;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    background: var(--bg-white);
    border: 1px solid var(--border-light-focus);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--card-shadow-hover);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .deploy-option-list .layer-card.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .deploy-tabs {
    display: inline-flex;
    gap: 4px;
    margin-top: 12px;
    background: rgba(15, 23, 42, 0.05);
    padding: 4px;
    border-radius: 100px;
    border: 1px solid var(--border-light);
  }
  .deploy-tab {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: var(--ink-secondary);
    background: none;
    border: none;
    border-radius: 100px;
    padding: 7px 14px;
    cursor: pointer;
    transition: all 0.25s ease;
  }
  .deploy-tab:hover:not(.active) { color: var(--ink-primary); }
  .deploy-tab.active {
    background: var(--brand);
    color: #FFFFFF;
  }

  .progress-rail {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(15, 23, 42, 0.08);
    z-index: 50;
  }
  .progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #94A3B8, var(--brand));
    transition: width 0.1s linear;
  }

  .outro {
    max-width: 640px;
    margin: 0 auto;
    padding: 80px 32px 140px;
    text-align: center;
  }
  .outro p {
    color: var(--ink-secondary);
    font-size: 15px;
    line-height: 1.6;
  }

  /* Section 5: CTA */
  #cta {
    background: radial-gradient(circle at 50% 0%, #171E2B 0%, var(--bg-dark-anchor) 85%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 110px clamp(1.5rem, 5vw, 4rem);
    text-align: left;
    color: #FFF;
    position: relative;
    overflow: hidden;
  }
  #cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 6px;
    background: var(--brand);
  }
  .cta-inner {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
  }
  .cta-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
    color: #FFFFFF;
    line-height: 1.1;
    margin: 0.8rem 0 2.5rem;
  }
  .cta-dot { color: var(--brand); }

  .cta-dot-sm { color: var(--brand); }

  .footer-links { display: flex; flex-direction: column; gap: 1.1rem; }
  .cta-link-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .95rem;
    color: #FFFFFF;
    margin-bottom: 0.35rem;
  }
  .cta-email {
    font-family: var(--font-body);
    font-size: .85rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
  }
  .cta-email:hover { color: #FFFFFF; }

  .cta-social-row {
    display: flex;
    gap: 0.7rem;
  }
  .cta-social-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #FFFFFF;
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .cta-social-row a:hover {
    background: var(--brand);
    transform: translateY(-2px);
  }

  .cta-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
  }

  /* Book a Demo modal */
  .modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 8, 13, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .modal-overlay.open {
    opacity: 1;
    visibility: visible;
  }
  .modal-card {
    position: relative;
    background: var(--bg-white);
    border-radius: 14px;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    width: 100%;
    max-width: 680px;
    height: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .modal-overlay.open .modal-card {
    transform: translateY(0) scale(1);
  }
  .modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-grey-1);
    color: var(--ink-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .modal-close:hover {
    background: var(--border-light-focus);
    color: var(--ink-primary);
  }
  .modal-title {
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--ink-primary);
    margin: 0 0 1.2rem;
  }
  /* Microsoft Forms embed is cross-origin: we can't reach its DOM to hide
     its own header/footer banners, so crop them out by rendering the iframe
     taller than the visible window and clipping it with overflow:hidden.
     Tune --ms-form-crop-top / --ms-form-crop-bottom (and --ms-form-height if
     the form's own content height changes) until the banners are cropped. */
  .modal-form-embed {
    --ms-form-height: 480px;
    --ms-form-crop-top: 50px;
    --ms-form-crop-bottom: 40px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    height: calc(var(--ms-form-height) - var(--ms-form-crop-top) - var(--ms-form-crop-bottom));
    max-height: 100%;
    margin-top: auto;
    margin-bottom: auto;
  }
  .modal-form-embed iframe {
    width: 100%;
    max-width: 640px;
    height: var(--ms-form-height);
    flex-shrink: 0;
    margin-top: calc(-1 * var(--ms-form-crop-top));
  }

  /* Footer */
  footer {
    background: #0A0A0D;
    padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 4rem) 2rem;
    color: rgba(255,255,255,0.6);
    position: relative;
  }
  footer::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 3px;
    background: var(--brand);
  }
  .footer-top {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: clamp(2rem, 3vw, 2.5rem);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: grid;
    grid-template-columns: 1fr repeat(3, 1.2fr) 1.3fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
  }
  .footer-logo-svg {
    height: 34px;
    width: auto;
    display: block;
    shape-rendering: geometricPrecision;
  }
  .footer-region-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
  }
  .footer-region-head .footer-dot { color: var(--brand); }
  .footer-flag { font-size: 1.1rem; line-height: 1; }
  .footer-address {
    font-family: var(--font-body);
    font-size: .85rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.55);
  }
  .footer-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: .85rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    margin-top: 0.6rem;
  }
  .footer-phone-icon { color: var(--brand); font-size: 0.9rem; }
  .footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .8rem;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .04em;
    color: rgba(255,255,255,0.4);
  }

  @media (max-width: 860px) {
    .stage { grid-template-columns: 1fr; }
    .deploy-stage { grid-template-columns: 1fr; }
    .app-grid { grid-template-columns: repeat(2, 1fr); }
    .vp-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }

    /* The pinned scroll-jack assembly animation assumes its content fits in
       100vh. On mobile the SVG diagram + 3 layer-cards stack vertically and
       run well past 100vh, so overflow:hidden was silently clipping the
       3rd card and the Deployment Options button. Scroll-jacking is also
       broadly unreliable on mobile (address-bar resize breaks 100vh, fights
       native scroll momentum), so instead of shrinking content to fit, we
       drop the pin/scroll-drive here and let it flow as a normal static
       section, pre-rendered in its fully-assembled end state
       (see getStackProgress() in script.js). Desktop/tablet keep the
       scroll-jacked animation unchanged. */
    .pin-wrap { height: auto; }
    .pin-inner {
      position: static;
      height: auto;
      overflow: visible;
      padding: 48px 0;
    }
    .stage-viewport {
      height: auto;
      overflow-x: hidden;
      overflow-y: visible;
    }
    .stage-track { height: auto; }
    .stage-panel { height: auto; }
    .stage { height: auto; }
    .svg-col { height: auto; padding: 24px 0 8px; flex-direction: column; }
    .progress-rail { display: none; }

    /* Deployment Options button is absolute over the SVG on desktop; on
       mobile the SVG column stacks its children in a column, so drop it
       into normal flow and let flex centering align it. */
    .deploy-btn {
      position: static;
      margin-top: 20px;
    }

    /* "Back to stack" can scroll out of reach on the long mobile option
       list, and land underneath the fixed nav right after entering the
       subscene — pin it just below the nav so it stays reachable. */
    .deploy-top-row {
      position: sticky;
      top: 88px;
      z-index: 20;
      background: rgba(244, 246, 249, 0.92);
      backdrop-filter: var(--glass-blur);
      -webkit-backdrop-filter: var(--glass-blur);
      padding: 10px 14px;
      margin: -10px -14px 6px;
      border-radius: 10px;
    }
  }
  @media (max-width: 560px) {
    .app-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
  }
