/* Platform page styles — ported 1:1 from platform.html on WP/ACF migration.
   nav/footer excluded (served by shared.css + template parts). Responsive appended at end. */

  /* --- Graph token system ----------------------------------- */
  .tf-graph { --g-radius: 16px; --g-font-serif: 'Instrument Serif', Georgia, serif; --g-font-sans: 'Inter', system-ui, sans-serif; }
  .tf-graph--dark { --g-surface: #1E2238; --g-ink: #F3F0E7; --g-ink-soft: #C9CCE0; --g-ink-mute: #9AA0C6; --g-axis: #7B82AC; --g-grid: #3A4066; --g-grid-faint: #2A2F4D; --g-accent: #35E29A; --g-accent-hi: #4DE6A6; }
  .tf-graph--light { --g-surface: #F4F1E8; --g-ink: #16413B; --g-ink-soft: #3F4A78; --g-ink-mute: #6A729B; --g-axis: #8A90AE; --g-grid: #E0DBCC; --g-grid-faint: #E9E4D6; --g-accent: #00A85A; --g-accent-hi: #00A85A; }
  .tf-graph .g-line { stroke-dasharray: 800; stroke-dashoffset: 800; transition: stroke-dashoffset 1.6s cubic-bezier(0.22,1,0.36,1); }
  .tf-graph .g-area { opacity: 0; transition: opacity 0.8s ease 0.8s; }
  .tf-graph .g-dot { transform: scale(0); transform-origin: center; transform-box: fill-box; transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1); }
  .tf-graph .g-dot:nth-of-type(1) { transition-delay: 0.4s; } .tf-graph .g-dot:nth-of-type(2) { transition-delay: 0.8s; }
  .tf-graph .g-dot:nth-of-type(3) { transition-delay: 1.2s; }
  .tf-graph .g-hero { opacity: 0; transform: translateY(8px); transition: opacity 0.6s ease 1.4s, transform 0.6s ease 1.4s; }
  .tf-graph.g-in .g-line { stroke-dashoffset: 0; } .tf-graph.g-in .g-area { opacity: 1; }
  .tf-graph.g-in .g-dot { transform: scale(1); } .tf-graph.g-in .g-hero { opacity: 1; transform: translateY(0); }
  /* ---------------------------------------------------------- */
  /* ==========================================================
     C-STEM PAGE — DS-aligned to TreeFrog Homepage
     Tokens come from assets/colors_and_type.css.
     ========================================================== */
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--paper); color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px; line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; cursor: none;
  }
  a { color: inherit; }
  img { display: block; max-width: 100%; }

  /* ===== CUSTOM CURSOR ===== */
  .cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 10000;
    border-radius: 50%;
    transform: translate(-50%, -50%); will-change: transform;
  }
  .cursor-dot {
    width: 6px; height: 6px;
    background: var(--coral);
    transition: width 200ms, height 200ms, background 220ms;
  }
  .cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid var(--ink-30);
    transition: width 320ms var(--ease-out), height 320ms var(--ease-out),
                background 320ms, border-color 320ms;
  }
  body.cursor-hover .cursor-ring {
    width: 64px; height: 64px;
    background: rgba(8, 222, 150, 0.10);
    border-color: var(--frog-vif);
  }
  body.cursor-hover .cursor-dot {
    width: 0; height: 0;
  }
  body.cursor-dark .cursor-dot { background: var(--frog-vif); }
  body.cursor-dark .cursor-ring { border-color: rgba(250, 250, 247, 0.30); }
  @media (max-width: 900px), (hover: none) {
    .cursor-dot, .cursor-ring { display: none; }
    body { cursor: auto; }
  }

  /* ===== LOADER ===== */
  .loader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--ink);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 800ms ease, visibility 0s 800ms;
  }
  .loader.gone { opacity: 0; visibility: hidden; }
  .loader-mark {
    font-family: var(--font-display);
    font-size: 64px; color: var(--paper);
    overflow: hidden; display: flex; align-items: baseline;
  }
  .loader-mark span {
    display: inline-block; transform: translateY(110%);
    animation: loaderUp 700ms var(--ease-out) forwards;
  }
  .loader-mark span:nth-child(2) { animation-delay: 80ms; color: var(--frog-vif); font-style: italic; }
  .loader-mark span:nth-child(3) { animation-delay: 160ms; color: var(--coral); }
  @keyframes loaderUp { to { transform: translateY(0); } }
  .loader-bar {
    position: absolute; bottom: 48px; left: 48px; right: 48px;
    height: 1px; background: rgba(250,250,247,0.16);
  }
  .loader-bar::after {
    content: ''; position: absolute; inset: 0;
    background: var(--frog-vif);
    transform-origin: left;
    animation: loadProgress 900ms cubic-bezier(0.6,0,0.2,1) forwards;
  }
  @keyframes loadProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .loader-meta {
    position: absolute; top: 48px; left: 48px;
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(250,250,247,0.6);
  }
  .loader-meta strong { color: var(--frog-vif); font-weight: 500; }

  /* ===== SCROLL PROGRESS ===== */
  .scroll-progress {
    position: fixed; top: 0; left: 0; right: 0;
    height: 2px; z-index: 200;
    background: transparent;
  }
  .scroll-progress span {
    display: block; height: 100%;
    background: var(--frog-vif);
    transform: scaleX(0); transform-origin: left;
    transition: transform 80ms linear;
  }

  /* ===== PILLS / BUTTONS (DS) ===== */
  .pill {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 14px 26px;
    border-radius: 999px;
    font-size: 13px; font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 220ms var(--ease-out), color 220ms var(--ease-out), border-color 220ms var(--ease-out);
    cursor: pointer;
    position: relative; overflow: hidden;
  }
  .pill .arrow { display: inline-block; transition: transform 280ms var(--ease-out); }
  .pill:hover .arrow { transform: translateX(4px); }
  .pill.solid    { background: var(--ink); color: var(--paper); }
  .pill.solid:hover { background: var(--frog-vif); color: var(--ink); }
  .pill.outline-light { background: transparent; border-color: var(--paper); color: var(--paper); }
  .pill.outline-light:hover { background: var(--paper); color: var(--ink); }
  .pill.outline-dark { background: transparent; border-color: var(--ink); color: var(--ink); }
  .pill.outline-dark:hover { background: var(--ink); color: var(--paper); }
  .pill.green { background: var(--frog-vif); color: var(--ink); }
  .pill.green:hover { background: var(--ink); color: var(--frog-vif); }

  /* CTA "circle" — homepage style */
  .cta-circle {
    display: inline-flex; align-items: center; gap: 16px;
    text-decoration: none; color: var(--ink);
    font-family: var(--font-mono);
    font-size: 12px; letter-spacing: 0.14em; font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 200ms var(--ease-out);
  }
  .cta-circle .label { transition: transform 280ms var(--ease-out); }
  .cta-circle .circ {
    width: 60px; height: 60px; border-radius: 999px;
    border: 1px solid currentColor;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 260ms var(--ease-out), color 260ms var(--ease-out);
    flex-shrink: 0;
  }
  .cta-circle .circ svg { transition: transform 360ms var(--ease-out); }
  .cta-circle:hover .circ { background: var(--ink); color: var(--paper); }
  .cta-circle:hover .circ svg { transform: rotate(-45deg); }
  .cta-circle:hover .label { transform: translateX(4px); }
  .cta-circle.on-dark { color: var(--paper); }
  .cta-circle.on-dark:hover .circ { background: var(--paper); color: var(--ink); }

  /* Reusable mono overline */
  .overtitle {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--frog);
    margin-bottom: 24px;
  }
  .overtitle .pip {
    display: none;
  }
  .on-dark .overtitle, .overtitle.on-dark { color: var(--frog-vif); }

  /* ===== HERO (cinematic, paper -> dark image plate) ===== */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
    padding: 0 clamp(20px, 5vw, 56px);
    background: var(--ink);
    color: var(--paper);
  }
  .hero__bg {
    position: absolute; inset: 0;
    background-image: url('/assets/platform-hero-dsc03180.jpg'); background-size: cover;
    background-size: cover; background-position: 50% 50%;
    opacity: 0; z-index: 0;
    transform: scale(1.0);
    animation: heroFadeIn 1200ms cubic-bezier(0.22, 1, 0.36, 1) forwards, heroKenBurns 20s ease-in-out 1200ms infinite;
  }
  @keyframes heroFadeIn {
    to { opacity: 0.55; }
  }
  @keyframes heroKenBurns {
    from { transform: scale(1.0); }
    to   { transform: scale(1.10); }
  }
  /* hero content entrance (uniform across pages) */
  .hero .overline,
  .hero .subtitle,
  .hero .vision,
  .hero .lede,
  .hero .hero-cta,
  .hero .ctas {
    opacity: 0;
    animation: heroContentUp 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero .overline { animation-delay: 120ms; }
  .hero .subtitle,
  .hero .vision { animation-delay: 240ms; }
  .hero .lede { animation-delay: 300ms; }
  .hero .hero-cta,
  .hero .ctas { animation-delay: 360ms; }
  @keyframes heroContentUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .hero::after {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background:
      radial-gradient(80% 60% at 78% 40%, rgba(244, 93, 93, 0.18) 0%, transparent 60%),
      linear-gradient(180deg, rgba(15, 46, 44, 0.55) 0%, rgba(15, 46, 44, 0.40) 40%, rgba(15, 46, 44, 0.85) 100%);
  }
  .hero .content {
    position: relative; z-index: 1;
    max-width: 1320px; margin: 0 auto; width: 100%;
    padding: 160px 0 96px;
  }
  .hero .meta-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 64px;
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(250, 250, 247, 0.7);
  }
  .hero .crumb { display: flex; gap: 10px; align-items: center; }
  .hero .crumb .sep { opacity: 0.4; }
  .hero .crumb .now { color: var(--frog-vif); }
  .hero .ticker { display: flex; align-items: center; gap: 10px; }
  .hero .ticker .live {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--frog-vif); animation: pulseDot 2s infinite;
  }
  @keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(8, 222, 150, 0.6); }
    70%  { box-shadow: 0 0 0 12px rgba(8, 222, 150, 0); }
    100% { box-shadow: 0 0 0 0 rgba(8, 222, 150, 0); }
  }
  .hero .overline {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 500; letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--frog-vif);
    margin-bottom: 32px;
    padding: 6px 14px;
    border: 1px solid var(--frog-vif);
    border-radius: 999px;
  }
  .hero .overline .pip {
    display: none;
  }
  .hero h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(56px, 9vw, 160px);
    line-height: 0.92;
    letter-spacing: -0.022em;
    color: var(--paper);
    margin-bottom: 40px;
    max-width: 16ch;
  }
  .hero h1 sup { font-size: 0.32em; vertical-align: super; color: var(--frog-vif); }
  .hero h1 em { font-style: italic; color: var(--frog-vif); }
  .hero h1 .colon { color: var(--coral); }
  .hero .lede {
    font-size: clamp(17px, 1.4vw, 22px);
    line-height: 1.55;
    max-width: 680px;
    margin: 0 0 56px;
    color: var(--paper); opacity: 0.94;
  }
  .hero .ctas {
    display: flex; gap: 28px; flex-wrap: wrap; align-items: center;
  }
  .hero .ctas .small-note {
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(250, 250, 247, 0.6);
  }
  .hero .hero-note {
    position: absolute; top: 96px; right: clamp(20px, 5vw, 56px); z-index: 2;
    max-width: 280px; text-align: right;
    display: flex; flex-direction: column; gap: 8px;
    padding: 14px 16px;
    border: 1px dashed rgba(8, 222, 150, 0.5);
    background: rgba(15, 46, 44, 0.55);
    backdrop-filter: blur(4px);
  }
  .hero .hero-note__tag {
    font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--frog-vif);
  }
  .hero .hero-note__txt {
    font-family: var(--font-mono);
    font-size: 11px; line-height: 1.5; letter-spacing: 0.04em;
    color: rgba(250, 250, 247, 0.82);
  }
  .hero .hero-note__txt strong { color: var(--paper); font-weight: 600; }
  .hero .scroll-cue {
    position: absolute; bottom: 32px; right: clamp(20px, 5vw, 56px); z-index: 1;
    font-family: var(--font-mono);
    font-size: 10px; font-weight: 500; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--paper); opacity: 0.78;
    display: flex; align-items: center; gap: 14px;
    writing-mode: vertical-rl;
  }
  .hero .scroll-cue .line {
    width: 1px; height: 28px; background: var(--frog-vif);
    animation: scrollLineH 2s var(--ease-out) infinite;
    transform-origin: top;
  }
  @keyframes scrollLineH {
    0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
    50%      { transform: scaleY(1);   opacity: 1; }
  }

  /* line reveal — used on hero h1 */
  .split-line { display: block; overflow: hidden; padding-bottom: 0.12em; }
  .split-line .inner {
    display: block;
    transform: translateY(110%);
    transition: transform 1100ms var(--ease-out);
    transition-delay: var(--d, 0ms);
  }
  .loaded .split-line .inner { transform: translateY(0); }

  /* ===== CAPTION BLOCK (image + copy) ===== */
  .caption-block {
    background: var(--paper);
    padding: 160px clamp(20px, 5vw, 56px);
  }
  .caption-block .wrap {
    max-width: 1320px; margin: 0 auto;
    display: grid; grid-template-columns: 6fr 5fr;
    gap: 96px; align-items: center;
  }
  .caption-block .visual {
    aspect-ratio: 5/6;
    background-image: url('/assets/rainbow.gif'); background-size: cover;
    background-size: cover; background-position: 50% 50%;
    background-color: #0a0205;
    position: relative; overflow: hidden;
  }
  .caption-block .visual::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(circle at 50% 50%, transparent 50%, rgba(15, 46, 44, 0.5) 100%);
  }
  .caption-block .visual .visual-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 1;
  }
  .caption-block .visual .marker {
    position: absolute; top: 28px; left: 28px;
    z-index: 2;
    color: var(--frog-vif);
    font-family: var(--font-mono);
    font-size: 10.5px; letter-spacing: 0.2em;
    text-transform: uppercase; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
  }
  .caption-block .visual .marker::before {
    content: ''; width: 28px; height: 1px; background: var(--frog-vif);
  }
  .caption-block .visual .stamp {
    position: absolute; bottom: 28px; right: 28px;
    z-index: 2; color: var(--paper);
    font-family: var(--font-display); font-style: italic;
    font-size: 18px;
  }
  .caption-block .visual .corner {
    position: absolute; width: 22px; height: 22px;
    border: 1px solid var(--paper); opacity: 0.5; z-index: 2;
  }
  .caption-block .visual .corner.tl { top: 14px; left: 14px;  border-right: none; border-bottom: none; }
  .caption-block .visual .corner.tr { top: 14px; right: 14px; border-left: none;  border-bottom: none; }
  .caption-block .visual .corner.bl { bottom: 14px; left: 14px;  border-right: none; border-top: none; }
  .caption-block .visual .corner.br { bottom: 14px; right: 14px; border-left: none;  border-top: none; }

  .caption-block h2 {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(48px, 6vw, 92px);
    line-height: 0.98; letter-spacing: -0.02em;
    color: var(--ink); margin-bottom: 32px;
    text-wrap: balance;
  }
  .caption-block h2 em { font-style: italic; color: var(--frog); }
  .caption-block .body {
    font-size: 18px; line-height: 1.6;
    color: var(--ink); opacity: 0.86;
    margin-bottom: 36px; max-width: 520px;
  }
  .caption-block .cta-note {
    margin-top: 18px;
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mono-tag);
  }

  /* ===== PROBLEM (DARK) ===== */
  .problem {
    background: var(--frog-deep); color: var(--paper);
    padding: 160px clamp(20px, 5vw, 56px);
    position: relative; overflow: hidden;
  }
  .problem::before {
    content: ''; position: absolute;
    width: 56%; height: 100%;
    bottom: -10%; right: -8%;
    background-image: url('/assets/encaps-square.gif');
    background-size: cover; background-position: 50% 50%;
    opacity: 0.22;
    z-index: 0;
    -webkit-mask-image: radial-gradient(circle at 70% 50%, black 30%, transparent 70%);
            mask-image: radial-gradient(circle at 70% 50%, black 30%, transparent 70%);
  }
  .problem .wrap {
    max-width: 1320px; margin: 0 auto;
    position: relative; z-index: 1;
  }
  .problem h2 {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(48px, 6.4vw, 100px);
    line-height: 0.98; letter-spacing: -0.02em;
    margin-bottom: 64px;
    max-width: 18ch;
  }
  .problem h2 em { font-style: italic; color: var(--frog-vif); }
  .problem .pair {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .problem .pair > div {
    border-top: 0.5px solid var(--line-dark);
    padding-top: 32px;
  }
  .problem .pair .key {
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--frog-vif);
    margin-bottom: 22px; font-weight: 500;
  }
  .problem .pair p {
    font-family: var(--font-display);
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.4;
    color: var(--paper);
    text-wrap: pretty;
  }
  .problem .swap {
    margin-top: 96px;
    text-align: center;
    font-family: var(--font-display); font-style: italic;
    font-size: clamp(34px, 5vw, 72px);
    line-height: 1.06;
    color: var(--paper);
    text-wrap: balance;
  }
  .problem .swap em { color: var(--frog-vif); }
  .problem .problem-note {
    margin-top: 40px; text-align: center;
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 0.08em;
    color: var(--frog-vif);
    border: 1px dashed rgba(8, 222, 150, 0.5);
    padding: 10px 16px; display: inline-block;
    position: relative; left: 50%; transform: translateX(-50%);
  }

  /* ===== SCALE (3-column figures) ===== */
  .scale {
    background: var(--paper);
    padding: 160px clamp(20px, 5vw, 56px);
    overflow: hidden;
  }
  .scale .head { max-width: 1320px; margin: 0 auto 80px; }
  .scale .scale-note {
    margin-top: 28px;
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 0.08em;
    color: var(--frog-deep);
    border: 1px dashed rgba(15, 46, 44, 0.4);
    padding: 10px 16px; display: inline-block;
  }
  .scale h2 {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(44px, 6vw, 92px);
    line-height: 1; letter-spacing: -0.02em;
    color: var(--ink); max-width: 16ch;
    text-wrap: balance;
  }
  .scale h2 em { font-style: italic; color: var(--frog); }
  .scale-grid {
    display: block;
    max-width: 1320px; margin: 0 auto;
  }
  .scale-grid .col {
    padding: 56px 36px;
    border-right: 0.5px solid var(--line-light);
    border-bottom: 0.5px solid var(--line-light);
    position: relative;
    transition: background 320ms ease;
  }
  .scale-grid .col:nth-child(3) { border-right: none; }
  .scale-grid .col:hover { background: rgba(8, 222, 150, 0.04); }
  .scale-grid .col .yr {
    font-family: var(--font-mono);
    font-size: 12px; letter-spacing: 0.16em;
    text-transform: uppercase; font-weight: 500;
    color: var(--frog); margin-bottom: 32px;
    display: flex; align-items: baseline; gap: 12px;
  }
  .scale-grid .col .yr .tag {
    font-size: 9.5px; letter-spacing: 0.16em;
    padding: 3px 8px;
    border: 1px solid currentColor;
    border-radius: 999px;
  }
  .scale-grid .col.live .yr { color: var(--frog-vif); }
  .scale-grid .col.live .yr .tag {
    color: var(--ink);
    background: var(--frog-vif);
    border-color: var(--frog-vif);
  }
  .scale-grid .col.future .yr { color: var(--orange); }
  .scale-grid .col .num {
    font-family: var(--font-display);
    font-size: clamp(56px, 7vw, 120px);
    line-height: 0.92;
    color: var(--ink);
    letter-spacing: -0.025em;
    margin-bottom: 16px;
    display: flex; align-items: baseline; gap: 14px;
    font-feature-settings: 'tnum' 1;
  }
  .scale-grid .col .num em { font-style: italic; color: var(--frog); }
  .scale-grid .col.live .num em { color: var(--frog-vif); }
  .scale-grid .col.future .num em { color: var(--orange); }
  .scale-grid .col .num .alt {
    font-size: 0.32em; opacity: 0.5;
    font-style: italic; font-weight: 400;
  }
  .scale-grid .col .what {
    font-size: 16px; line-height: 1.55;
    color: var(--ink); opacity: 0.78;
    max-width: 320px;
  }
  .scale-grid .col .progress {
    margin-top: 36px;
    height: 2px; background: var(--line-light);
    position: relative; overflow: hidden;
  }
  .scale-grid .col .progress::after {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    background: var(--frog);
    transform: scaleX(var(--p, 0)); transform-origin: left;
    transition: transform 1400ms var(--ease-out) 200ms;
  }
  .scale-grid .col.live .progress::after { background: var(--frog-vif); }
  .scale-grid .col.future .progress::after { background: var(--orange); }

  /* ===== TWO-UP ===== */
  .twoup {
    background: var(--paper);
    padding: 0 clamp(20px, 5vw, 56px) 160px;
  }
  .twoup .wrap {
    max-width: 1320px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--ink);
  }
  .twoup .col {
    padding: 64px 64px 64px 0;
    border-right: 0.5px solid var(--line-light);
    position: relative;
  }
  .twoup .col:last-child {
    border-right: none;
    padding-left: 64px;
    padding-right: 0;
  }
  .twoup .col .num {
    position: absolute; top: 64px; right: 64px;
    font-family: var(--font-display); font-style: italic;
    font-size: 28px; color: var(--frog-vif); opacity: 0.5;
  }
  .twoup .col:last-child .num { right: auto; left: 64px; top: 64px; }
  .twoup .col .label {
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--frog);
    margin-bottom: 28px;
    display: flex; align-items: center; gap: 12px;
  }
  .twoup .col .label::before {
    content: ''; width: 24px; height: 1px; background: var(--frog-vif);
  }
  .twoup .col h3 {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(32px, 3.6vw, 56px);
    line-height: 1.04; letter-spacing: -0.015em;
    color: var(--ink); margin-bottom: 28px;
    text-wrap: balance;
  }
  .twoup .col h3 em { font-style: italic; color: var(--frog); }
  .twoup .col p {
    font-size: 17px; line-height: 1.6;
    color: var(--ink); opacity: 0.84;
    margin-bottom: 16px;
    max-width: 480px;
  }
  .twoup .col .img {
    margin-top: 40px;
    aspect-ratio: 16/10;
    background-size: cover; background-position: 50% 50%;
    border: 1px solid var(--line-light);
    position: relative;
    overflow: hidden;
  }
  .twoup .col .img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 46, 44, 0.4) 100%);
  }
  .twoup .col.a .img { background-image: url('/assets/c-stem-2.jpg'); }
  .twoup .col.b .img { background-image: url('/assets/biomimetic.jpg'); }

  /* ===== AMAZONIA ===== */
  .amazonia {
    position: relative;
    padding: 150px clamp(20px, 5vw, 56px);
    overflow: hidden;
    background: #EAF1EE; color: var(--ink);
  }
  .amazonia .wrap {
    position: relative; z-index: 1;
    max-width: 1320px; margin: 0 auto;
    display: grid; grid-template-columns: 5fr 7fr;
    gap: 72px; align-items: center;
  }
  .amazonia h2 {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(52px, 6.4vw, 104px);
    line-height: 0.96; letter-spacing: -0.025em;
    color: var(--ink); margin-bottom: 28px;
    text-wrap: balance;
  }
  .amazonia h2 em { font-style: italic; color: var(--frog); }
  .amazonia p {
    font-size: 19px; line-height: 1.6;
    color: var(--ink); opacity: 0.88;
    max-width: 460px;
  }
  .amazonia .amazonia__specs {
    margin-top: 44px; display: flex; flex-direction: column; gap: 20px;
    max-width: 420px;
  }
  .amazonia .spec {
    display: flex; flex-direction: column; gap: 6px;
    border-top: 0.5px solid var(--frog-30); padding-top: 16px;
  }
  .amazonia .spec .k {
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--frog);
  }
  .amazonia .spec .v { font-size: 16px; color: var(--ink); opacity: 0.84; }

  /* video plate */
  .amazonia .amazonia__media {
    position: relative; margin: 0;
    aspect-ratio: 16/10;
    border: 1px solid var(--frog-30);
    background: var(--frog-deep);
    overflow: hidden;
  }
  .amazonia .amazonia__video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
  }
  .amazonia .amazonia__media::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(circle at 60% 40%, transparent 40%, rgba(15, 46, 44, 0.45) 100%);
  }
  .amazonia .amazonia__media .lab {
    position: absolute; top: 22px; left: 22px; z-index: 2;
    font-family: var(--font-mono);
    font-size: 10.5px; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--frog-vif);
    display: flex; align-items: center; gap: 10px;
  }
  .amazonia .amazonia__media .lab::before { content: ''; width: 24px; height: 1px; background: var(--frog-vif); }
  .amazonia .amazonia__media .stamp {
    position: absolute; bottom: 22px; right: 22px; z-index: 2;
    font-family: var(--font-display); font-style: italic;
    color: var(--paper); font-size: 18px;
  }
  .amazonia .amazonia__media .corner {
    position: absolute; width: 20px; height: 20px;
    border: 1px solid var(--paper); opacity: 0.5; z-index: 2;
  }
  .amazonia .amazonia__media .corner.tl { top: 12px; left: 12px;  border-right: none; border-bottom: none; }
  .amazonia .amazonia__media .corner.tr { top: 12px; right: 12px; border-left: none;  border-bottom: none; }
  .amazonia .amazonia__media .corner.bl { bottom: 12px; left: 12px;  border-right: none; border-top: none; }
  .amazonia .amazonia__media .corner.br { bottom: 12px; right: 12px; border-left: none;  border-top: none; }
  .amazonia .amazonia__note {
    position: absolute; bottom: 22px; left: 22px; z-index: 3;
    font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 0.06em;
    color: var(--frog-vif);
    border: 1px dashed rgba(8, 222, 150, 0.6);
    background: rgba(15, 46, 44, 0.55);
    padding: 7px 11px;
  }

  /* ===== PILLARS HORIZONTAL ===== */
  .pillars-h {
    background: var(--ink); color: var(--paper);
    padding: 160px 0 0; overflow: hidden;
  }
  .pillars-h .head {
    padding: 0 clamp(20px, 5vw, 56px);
    max-width: 1320px; margin: 0 auto 64px;
  }
  .pillars-h h2 {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(48px, 6vw, 96px);
    line-height: 1; letter-spacing: -0.02em;
    color: var(--paper); max-width: 22ch; margin-bottom: 24px;
    text-wrap: balance;
  }
  .pillars-h h2 em { font-style: italic; color: var(--frog-vif); }
  .pillars-h .sublede {
    font-size: 18px; max-width: 600px;
    color: var(--paper); opacity: 0.78;
  }
  .pillars-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1320px; margin: 0 auto;
    padding: 32px clamp(20px, 5vw, 56px) 80px;
  }
  @media (max-width: 900px) {
    .pillars-track { grid-template-columns: 1fr; max-width: 560px; }
    /* Single column: no cross-card alignment needed, drop the reserved height. */
    .pillar-card h3 { min-height: 0; }
  }
  .pillar-card {
    background: var(--frog-deep);
    border: 0.5px solid rgba(8, 222, 150, 0.18);
    padding: 0;
    position: relative;
    min-height: 620px;
    display: flex; flex-direction: column;
    overflow: hidden;
  }
  .pillar-card .img {
    width: 100%;
    height: 260px;
    background-size: cover;
    background-position: 50% 50%;
    background-color: #061d18;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    border-bottom: 0.5px solid rgba(8, 222, 150, 0.18);
  }
  .pillar-card .img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,46,44,0.0) 50%, rgba(15,46,44,0.55) 100%);
  }
  .pillar-card .img .img-note {
    position: absolute; top: 16px; left: 16px; z-index: 2;
    font-family: var(--font-mono);
    font-size: 10px; letter-spacing: 0.06em;
    color: var(--frog-vif);
    border: 1px dashed rgba(8, 222, 150, 0.6);
    background: rgba(15, 46, 44, 0.6);
    padding: 6px 10px;
  }
  .pillar-card .body {
    flex: 1;
    padding: 36px 44px 44px;
    display: flex; flex-direction: column;
    position: relative;
  }
  .pillar-card::after {
    content: ''; position: absolute;
    width: 480px; height: 480px;
    bottom: -240px; right: -240px;
    background: radial-gradient(circle, rgba(8, 222, 150, 0.18), transparent 70%);
    transition: transform 700ms var(--ease-out);
    z-index: 0;
  }
  .pillar-card:hover::after { transform: translate(-30%, -30%) scale(1.4); }
  .pillar-card > * { position: relative; z-index: 1; }
  .pillar-card .num {
    font-family: var(--font-display);
    font-size: 64px; line-height: 1;
    color: rgba(8, 222, 150, 0.32);
    margin-bottom: 18px; font-style: italic;
    letter-spacing: -0.02em;
  }
  .pillar-card .label {
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--frog-vif);
    margin-bottom: 18px;
  }
  .pillar-card h3 {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(28px, 2.6vw, 38px);
    line-height: 1.1;
    color: var(--paper); letter-spacing: -0.015em;
    margin-bottom: 24px;
    text-wrap: balance;
    /* Reserve two lines so 1-line and 2-line headings occupy the same height,
       keeping the body text of the three cards aligned at the same start height. */
    min-height: 2.2em;
  }
  .pillar-card p {
    font-size: 15px; line-height: 1.6;
    color: var(--paper); opacity: 0.86;
  }
  .pillar-card p .em {
    display: block; margin-top: 18px;
    font-family: var(--font-display); font-style: italic;
    font-size: 18px; color: var(--frog-vif);
  }
  /* ===== DECLARATION ===== */
  .declaration {
    background: var(--paper);
    padding: 200px clamp(20px, 5vw, 56px);
    text-align: center;
    position: relative; overflow: hidden;
  }
  .declaration::before {
    content: '';
    position: absolute; left: 50%; top: 50%;
    width: 1100px; height: 1100px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(8, 222, 150, 0.06), transparent 60%);
    z-index: 0;
  }
  .declaration .wrap { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
  .declaration p {
    font-family: var(--font-display);
    font-size: clamp(40px, 5.4vw, 88px);
    line-height: 1.05; letter-spacing: -0.02em;
    color: var(--ink);
    text-wrap: balance;
  }
  .declaration p em { font-style: italic; color: var(--frog); }
  .declaration p .mark { color: var(--frog-vif); font-style: italic; }
  .declaration p .period { color: var(--coral); }

  /* ===== CTA SECTION ===== */
  .cta-section {
    background: var(--paper);
    padding: 0 clamp(20px, 5vw, 56px) 160px;
    position: relative; overflow: hidden;
  }
  .cta-section .wrap {
    max-width: 1320px; margin: 0 auto;
    background: var(--ink); color: var(--paper);
    padding: 120px 80px;
    position: relative; overflow: hidden;
  }
  .cta-section .wrap::before {
    content: ''; position: absolute; inset: 0;
    background-image: url('/assets/manufacturing.jpg');
    background-size: cover; background-position: 50% 40%;
    opacity: 0.32; filter: saturate(0.8);
  }
  .cta-section .wrap::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(15, 46, 44, 0.85) 0%, rgba(15, 46, 44, 0.6) 60%, rgba(15, 46, 44, 0.85) 100%);
  }
  .cta-section .inner { position: relative; z-index: 1; max-width: 800px; }
  .cta-section h2 {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(44px, 5.6vw, 88px);
    line-height: 1; letter-spacing: -0.02em;
    color: var(--paper); margin-bottom: 32px;
    text-wrap: balance;
  }
  .cta-section h2 em { font-style: italic; color: var(--frog-vif); }
  .cta-section .sublede {
    font-size: 18px; max-width: 560px; margin: 0 0 48px;
    color: var(--paper); opacity: 0.86;
  }
  .cta-section .pills-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
  .cta-section .hubs {
    margin-top: 80px;
    display: flex; gap: 56px;
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--paper); opacity: 0.6;
  }
  .cta-section .hubs span { display: flex; align-items: center; gap: 10px; }
  .cta-section .hubs span::before {
    content: ''; width: 6px; height: 6px;
    background: var(--frog-vif);
  }

  /* ===== TIMELINE ===== */
  .timeline {
    background: var(--frog-deep); color: var(--paper);
    padding: 160px clamp(20px, 5vw, 56px); overflow: hidden;
  }
  .timeline .head { max-width: 1320px; margin: 0 auto 100px; }
  .timeline h2 {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(44px, 5.6vw, 88px);
    line-height: 1; letter-spacing: -0.02em;
    color: var(--paper); max-width: 16ch;
    text-wrap: balance;
  }
  .timeline h2 em { font-style: italic; color: var(--frog-vif); }
  .timeline-track {
    max-width: 1320px; margin: 0 auto;
    position: relative;
  }
  .timeline-track::before {
    content: ''; position: absolute;
    left: 0; right: 0; top: 96px;
    height: 1px; background: rgba(8, 222, 150, 0.24);
  }
  .timeline-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  }
  .tl-item {
    position: relative; padding-top: 132px;
    transition: transform 380ms var(--ease-out);
  }
  .tl-item::before {
    content: ''; position: absolute;
    top: 88px; left: 0;
    width: 16px; height: 16px;
    background: var(--frog-deep);
    border: 2px solid var(--frog-vif);
    border-radius: 50%;
    transition: all 320ms;
  }
  .tl-item:hover { transform: translateY(-6px); }
  .tl-item:hover::before {
    background: var(--frog-vif);
    box-shadow: 0 0 0 8px rgba(8, 222, 150, 0.16);
  }
  .tl-item .yr {
    font-family: var(--font-display);
    font-size: 36px; color: var(--frog-vif);
    margin-bottom: 16px; font-style: italic;
    letter-spacing: -0.02em;
  }
  .tl-item h4 {
    font-family: var(--font-display); font-weight: 400;
    font-size: 22px; line-height: 1.25;
    color: var(--paper); margin-bottom: 8px;
  }
  .tl-item p {
    font-size: 13px; line-height: 1.5;
    color: var(--paper); opacity: 0.72;
  }

  /* ===== REVEAL ===== */
  .reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 800ms var(--ease-out),
                transform 800ms var(--ease-out);
  }
  .reveal.in { opacity: 1; transform: translateY(0); }
  .reveal-stagger > * {
    opacity: 0; transform: translateY(28px);
    transition: opacity 800ms var(--ease-out),
                transform 800ms var(--ease-out);
  }
  .reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
  .reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
  .reveal-stagger.in > *:nth-child(2) { transition-delay: 100ms; }
  .reveal-stagger.in > *:nth-child(3) { transition-delay: 200ms; }
  .reveal-stagger.in > *:nth-child(4) { transition-delay: 300ms; }
  .reveal-stagger.in > *:nth-child(5) { transition-delay: 400ms; }
  .reveal-stagger.in > *:nth-child(6) { transition-delay: 500ms; }
  .reveal-img { overflow: hidden; position: relative; }
  .reveal-img::after {
    content: ''; position: absolute; inset: 0;
    background: var(--paper); transform-origin: right;
    transition: transform 1100ms cubic-bezier(0.7, 0, 0.2, 1);
  }
  .reveal-img.in::after { transform: scaleX(0); }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 1024px) {
    .caption-block .wrap { grid-template-columns: 1fr; gap: 56px; }
    .problem .pair { grid-template-columns: 1fr; gap: 36px; }
    .scale-grid { grid-template-columns: 1fr; }
    .scale-grid .col { border-right: none !important; }
    .twoup .wrap { grid-template-columns: 1fr; }
    .twoup .col { padding: 56px 0 !important; border-right: none; border-bottom: 0.5px solid var(--line-light); }
    .twoup .col:last-child { border-bottom: none; }
    .twoup .col .num { right: 0 !important; left: auto !important; top: 56px !important; }
    .amazonia .wrap { grid-template-columns: 1fr; gap: 48px; }
    .amazonia .amazonia__media { aspect-ratio: 16/10; }
    .timeline-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .timeline-track::before { display: none; }
    .tl-item { padding-top: 24px; }
    .tl-item::before { display: none; }
    .cta-section .wrap { padding: 80px 40px; }
  }
  @media (max-width: 640px) {
    .timeline-grid { grid-template-columns: 1fr; }
    .hero .ctas { flex-direction: column; align-items: stretch; }
    .cta-section .wrap { padding: 56px 24px; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
  }
