﻿/* ============================================================
   知衡 ZHI·HENG — environmental intelligence
   Design system: Nature green × Solar gold (Biomimetic)
   ============================================================ */

:root {
  --dark: #0c1f17;          /* deep forest night */
  --cream: #f3f6f0;         /* natural warm white */
  --lime: #f5c044;          /* solar gold */
  --lime-soft: #f8e3a8;
  --white: #ffffff;         /* token-85221088 */
  --black: #0f0f0f;         /* token-95995eb5 */
  --indigo: #064e3b;        /* deep evergreen section */

  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", -apple-system, "Segoe UI", "PingFang SC", sans-serif;
  --font-mono: "Geist Mono", "Noto Sans Mono", "PingFang SC", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --story-h: 7600px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--dark); scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--cream);
  background: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.locked { overflow: hidden; }

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
video { display: block; width: 100%; height: 100%; object-fit: cover; }

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); letter-spacing: -0.01em; line-height: 1.25; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}

.eyebrow.dark { color: rgba(12, 31, 23, 0.55); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border: 1px solid rgba(245, 192, 68, 0.3);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  transition: background 0.3s, transform 0.3s var(--ease), color 0.3s;
}

.btn-nav svg { width: 26px; height: 26px; flex: none; }
.btn-nav path { stroke: #0c1f17; }

.btn-nav:hover { background: var(--lime); color: var(--dark); transform: translateY(-2px); }

.btn-nav-lg { padding: 18px 26px; }

/* ============================================================
   PRELOADER
   ============================================================ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--dark);
  display: grid;
  place-items: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.preloader.done { opacity: 0; visibility: hidden; }

.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }

.preloader-gif { width: 120px; height: 122px; object-fit: contain; }

.preloader-line {
  width: 220px; height: 2px;
  background: rgba(243, 246, 240, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-line span {
  display: block; height: 100%;
  background: var(--lime);
  transform-origin: left;
  animation: load 1.6s var(--ease) forwards;
}

@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 4vw, 64px);
  transition: background 0.4s, color 0.4s, padding 0.4s var(--ease), backdrop-filter 0.4s;
  transform: translateY(-60px);
  animation: navDrop 0.9s 0.2s var(--ease) forwards;
}

@keyframes navDrop { to { transform: translateY(0); } }

.nav.on-light {
  background: rgba(243, 246, 240, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--dark);
  border-bottom: 1px solid rgba(12, 31, 23, 0.08);
}

.nav-logo { display: inline-flex; align-items: center; gap: 12px; }

.logo-mark { width: 28px; height: 28px; }

.logo-word {
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 16px;
  color: inherit;
}

.nav-links {
  display: flex;
  gap: 40px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.65;
  transition: opacity 0.3s, color 0.3s;
  position: relative;
}

.nav-links a:hover { opacity: 1; }

.nav.on-light .nav-links a { color: var(--dark); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 42px; height: 42px;
  border: 1px solid rgba(243, 246, 240, 0.35);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}

.nav.on-light .burger { border-color: rgba(12, 31, 23, 0.3); }

.burger span { width: 18px; height: 1.5px; background: currentColor; }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1800;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mobile-menu.open { opacity: 1; pointer-events: auto; }

.mobile-menu nav { display: flex; flex-direction: column; }

.mobile-menu nav a {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 18px 0;
  border-bottom: 1px solid rgba(243, 246, 240, 0.1);
}

.mobile-menu .menu-cta {
  margin-top: 24px;
  background: var(--lime);
  color: var(--dark);
  border-radius: 8px;
  text-align: center;
  border-bottom: none;
  font-family: var(--font-mono);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   STORY — fixed scene sequence
   ============================================================ */

#story {
  position: relative;
  height: var(--story-h);
}

.scene {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  will-change: opacity, transform;
}

/* ---------- HERO ---------- */

#scene-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 141px clamp(20px, 4vw, 64px) 40px;
  z-index: 4;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 20%, rgba(245, 192, 68, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 45% at 15% 90%, rgba(245, 192, 68, 0.1), transparent 60%);
  pointer-events: none;
}

.hero-h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--cream);
}

.hero-top { display: flex; flex-direction: column; gap: 40px; align-items: flex-start; }

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.hero-tagline {
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--cream);
  max-width: 760px;
}

.hero-desc {
  display: block;
  margin-top: 18px;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  opacity: 0.6;
  max-width: 620px;
}

/* scroll hint */
.scroll-hint { display: inline-flex; flex-direction: column; align-items: center; gap: 14px; }

.scroll-mouse {
  width: 26px; height: 44px;
  border: 1.5px solid var(--cream);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 4px; height: 9px;
  border-radius: 4px;
  background: var(--cream);
  animation: wheel 2s ease-in-out infinite;
}

@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.scroll-text {
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--cream);
  white-space: nowrap;
}

/* load-in animation */
[data-load] { opacity: 0; transform: translateY(-40px); animation: loadIn 0.9s var(--ease) forwards; }
[data-load="1"] { animation-delay: 0.15s; }
[data-load="2"] { animation-delay: 0.3s; }
[data-load="3"] { animation-delay: 0.45s; }

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

/* ---------- ROCKS ---------- */

.rocks {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.rock { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }

.rock-back {
  width: min(56vw, 900px);
  bottom: -4%;
  filter: blur(6px);
  opacity: 0.85;
}

.rock-mid {
  width: min(44vw, 700px);
  bottom: -2%;
}

.rock-front {
  width: min(52vw, 840px);
  bottom: -8%;
}

/* ---------- SCAN ---------- */

.scan-layer {
  position: fixed;
  inset: 0;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.scan-layer video { object-fit: cover; }

/* ---------- HERO METRICS ---------- */

.hero-metrics {
  position: fixed;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.metric-chip {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
  border: 1px solid rgba(245, 192, 68, 0.35);
  border-radius: 14px;
  background: rgba(12, 31, 23, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  will-change: transform, opacity;
}

.metric-chip[data-chip="0"] { top: 24%; right: 9%; }
.metric-chip[data-chip="1"] { top: 46%; right: 24%; }
.metric-chip[data-chip="2"] { bottom: 24%; right: 12%; }
.metric-chip[data-chip="3"] { bottom: 14%; left: 7%; }

.chip-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(243, 246, 240, 0.6);
}

.chip-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--cream);
}

/* ---------- BIG TOOLTIP ---------- */

.big-tooltip {
  position: fixed;
  z-index: 7;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 30px;
  border-radius: 18px;
  background: var(--lime);
  color: rgba(12, 31, 23, 0.85);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.big-tooltip-value {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.big-tooltip-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* ---------- ACCORDION SCENE ---------- */

.scene-accordion {
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0;
  opacity: 0;
  transform: translateX(80px);
}

.acc-panel {
  width: 47%;
  max-width: 720px;
  height: min-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 12px 28px 12px 40px;
  pointer-events: auto;
}

.acc-panel-head { margin-bottom: 20px; }

.acc-panel-title {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 14px;
  color: var(--cream);
}

.accordion { display: flex; flex-direction: column; gap: 10px; }

.acc-item {
  border-radius: 4px;
  background: rgba(243, 243, 243, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.acc-head {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr 32px;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  text-align: left;
}

.acc-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.acc-title {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.1;
}

.acc-plus {
  justify-self: end;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s;
}

.acc-item.open .acc-plus { transform: rotate(45deg); background: var(--dark); border-color: var(--dark); }

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s var(--ease);
}

.acc-body p {
  padding: 2px 20px 20px 70px;
  font-size: 14px;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--dark);
}

.acc-item.open .acc-body {
  background: var(--lime);
  border-radius: 0 0 4px 4px;
}

/* ---------- STEPS SCENE ---------- */

.scene-steps {
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(20px, 4vw, 64px);
  opacity: 0;
}

.steps-inner { width: 100%; max-width: 1280px; }

.steps-title {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 20px 0 56px;
  max-width: 900px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-card {
  border: 1px solid rgba(245, 192, 68, 0.2);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.4s var(--ease), background 0.4s, border-color 0.4s;
  will-change: transform, opacity;
}

.step-card:hover { transform: translateY(-4px); background: rgba(245, 192, 68, 0.08); }

.step-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--lime);
}

.step-card p {
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  letter-spacing: -0.01em;
  line-height: 1.3;
  flex: 1;
}

.step-bar {
  height: 3px;
  background: rgba(245, 192, 68, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.step-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--lime);
  border-radius: 3px;
  transition: width 1.2s var(--ease);
}

.steps-sub {
  margin-top: 48px;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  letter-spacing: -0.01em;
  opacity: 0.6;
}

/* ---------- LOOPS SCENE ---------- */

.scene-loops {
  z-index: 3;
  opacity: 0;
  background: var(--dark);
}

.loops-video-wrap { position: absolute; inset: 0; }

.loops-video { position: absolute; inset: 0; object-fit: cover; opacity: 0; transition: opacity 1s; }
.loops-video.on { opacity: 1; }
.loops-v1.blurred { filter: blur(10px) saturate(0.85); transform: scale(1.05); }

.loops-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
  padding: 0 clamp(20px, 6vw, 120px);
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(12, 31, 23, 0.35), rgba(12, 31, 23, 0.7));
}

.loops-title {
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 900px;
  color: var(--cream);
}

/* ============================================================
   TICKER
   ============================================================ */

.ticker {
  background: var(--lime);
  color: var(--dark);
  overflow: hidden;
  padding: 20px 0;
  transform: rotate(-1.3deg) scale(1.03);
  position: relative;
  z-index: 20;
}

.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.ticker-track span {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 48px;
}

.ticker-track span::after { content: "✦"; font-size: 15px; }

@keyframes ticker { to { transform: translateX(-50%); } }

/* ============================================================
   ROCK SCRUB SECTION
   ============================================================ */

.rock-scrub {
  position: relative;
  height: 320vh;
  background: var(--dark);
}

.rock-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

#rockCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.rock-scrub-caption {
  position: absolute;
  left: clamp(20px, 6vw, 96px);
  bottom: 9vh;
  z-index: 5;
  pointer-events: none;
}

.rock-scrub-caption h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  letter-spacing: -0.02em;
  margin-top: 14px;
  color: var(--cream);
}

/* clouds */
.clouds { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }

.cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  background: rgba(245, 192, 68, 0.1);
}

.c1 { width: 46vw; height: 18vw; top: 12%; left: -10%; animation: drift 38s linear infinite; }
.c2 { width: 36vw; height: 14vw; top: 26%; right: -8%; animation: drift 52s linear infinite reverse; }
.c3 { width: 30vw; height: 11vw; top: 62%; left: 18%; animation: drift 44s linear infinite; }
.c4 { width: 26vw; height: 9vw; top: 76%; right: 22%; animation: drift 60s linear infinite reverse; }
.c5 { width: 38vw; height: 13vw; top: 88%; left: -14%; animation: drift 48s linear infinite; }

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(30vw); }
}

/* ============================================================
   SOLUTIONS (white)
   ============================================================ */

.sol-sec {
  background: var(--white);
  color: var(--dark);
  padding: clamp(64px, 8vw, 128px) 0;
}

.sol-head { display: flex; flex-direction: column; gap: 28px; }

.sol-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  letter-spacing: -0.02em;
  max-width: 800px;
}

.sol-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: clamp(48px, 7vw, 88px);
}

.sol-card {
  border-radius: 20px;
  overflow: hidden;
  background: #edf2e7;
  border: 1px solid rgba(12, 31, 23, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}

.sol-card:hover { transform: translateY(-8px); box-shadow: 0 30px 70px rgba(12, 31, 23, 0.14); }

.sol-card-img { aspect-ratio: 1; overflow: hidden; }

.sol-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.sol-card:hover .sol-card-img img { transform: scale(1.05); }

.sol-card-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1;
}

.sol-tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(12, 31, 23, 0.5);
}

.sol-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.3; }

.sol-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark);
}

.sol-arrow svg { width: 26px; height: 26px; transition: transform 0.35s var(--ease); }
.sol-card:hover .sol-arrow svg { transform: translateX(5px); }

/* ============================================================
   OUR TECH (indigo sticky scroll)
   ============================================================ */

.tech-wrap { position: relative; height: 420vh; background: var(--indigo); }

.tech-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 70% 20%, rgba(245, 192, 68, 0.08), transparent 60%),
    var(--indigo);
}

.tech-canvas { position: relative; width: 100%; height: 100%; }

.tech-step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 26px;
  padding: clamp(20px, 4vw, 64px);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.tech-step h2 {
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--cream);
}

.tech-sub {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: rgba(243, 246, 240, 0.65);
  max-width: 640px;
}

.arrow-down-circle svg { width: 36px; height: 37px; animation: bob 2.2s ease-in-out infinite; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

.tech-img { width: min(420px, 46vw); }

.tech-img img { width: 100%; border-radius: 18px; }

/* step 2 — mrv + flux */
.step-2 { flex-direction: row; gap: clamp(24px, 4vw, 64px); text-align: left; align-items: center; }

.tech-card {
  width: min(520px, 44vw);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 192, 68, 0.25);
  border-radius: 20px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
}

.tech-card h3 { color: var(--cream); }

.tech-card-text {
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: rgba(243, 246, 240, 0.7);
}

.flux-figure {
  position: relative;
  width: min(420px, 40vw);
  flex: none;
}

.flux-figure img { width: 100%; border-radius: 18px; }

.flux-tip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(12, 31, 23, 0.72);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cream);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s;
}

.tip-dot-live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(245, 192, 68, 0.2);
}

.ft-1 { top: 16%; left: 8%; }
.ft-2 { top: 42%; right: 6%; }
.ft-3 { bottom: 14%; left: 22%; }

.step-2.show .flux-tip { opacity: 1; transform: translateY(0); }
.step-2.show .ft-2 { transition-delay: 0.3s; }
.step-2.show .ft-3 { transition-delay: 0.6s; }

/* step 3 — blockchain */
.step-3 { flex-direction: row; gap: clamp(24px, 4vw, 64px); text-align: left; align-items: center; }

.bc-visual { width: min(480px, 44vw); flex: none; }
.bc-visual img { width: 100%; border-radius: 18px; }

/* final step */
.step-final { flex-direction: row; gap: clamp(24px, 5vw, 80px); text-align: left; align-items: center; }

.final-left h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--cream);
}

.final-card {
  width: min(460px, 42vw);
  background: var(--cream);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--dark);
}

.final-card-head { display: flex; align-items: center; justify-content: space-between; }

.final-card-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(12, 31, 23, 0.6);
}

.check-badge { width: 24px; height: 24px; }

.final-card-value {
  font-size: 3.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.final-unit {
  font-family: var(--font-mono);
  font-size: 1rem;
  margin-left: 10px;
  color: rgba(12, 31, 23, 0.6);
}

.final-card-text {
  font-size: 14px;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: rgba(12, 31, 23, 0.65);
}

.final-graph { width: 100%; border-radius: 12px; }

/* block overlays */
.tech-block {
  position: absolute;
  inset: 0;
  background: var(--indigo);
  z-index: 20;
  pointer-events: none;
  will-change: transform;
}

/* ============================================================
   ALEPHIA SOLVES (cream)
   ============================================================ */

.solves-sec {
  background: var(--cream);
  color: var(--dark);
  padding: clamp(80px, 10vw, 150px) 0;
}

.solves-head { display: flex; flex-direction: column; gap: 28px; max-width: 980px; }

.solves-head h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); letter-spacing: -0.02em; }

.solves-head em { font-style: normal; color: #a16207; }

.solves-sub {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: rgba(12, 31, 23, 0.6);
  max-width: 640px;
}

.solves-flow {
  margin-top: clamp(48px, 8vw, 96px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.flow-node img { width: 88px; height: auto; border-radius: 12px; }

.flow-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(12, 31, 23, 0.6);
}

.flow-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(12, 31, 23, 0.4);
}

.flow-metric {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #a16207;
}

/* ============================================================
   NOT JUST EVOLVING (cream)
   ============================================================ */

.evolving-sec {
  background: var(--cream);
  color: var(--dark);
  padding: 0 0 clamp(80px, 10vw, 160px);
}

.evolving-title {
  font-size: clamp(2rem, 4.8vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.evolving-list { margin-top: clamp(48px, 7vw, 88px); }

.evol-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 30px 8px;
  border-top: 1px solid rgba(12, 31, 23, 0.14);
  align-items: baseline;
}

.evol-item:last-child { border-bottom: 1px solid rgba(12, 31, 23, 0.14); }

.evol-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: rgba(12, 31, 23, 0.45);
}

.evol-item p {
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* ============================================================
   CASE STUDIES (cream)
   ============================================================ */

.cases-sec {
  background: var(--cream);
  color: var(--dark);
  padding: clamp(64px, 8vw, 120px) 0;
}

.cases-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.cases-controls { display: flex; align-items: center; gap: 16px; }

.car-btn {
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(12, 31, 23, 0.2);
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.3s;
}

.car-btn svg { width: 26px; height: 26px; }

.car-btn:hover { background: var(--dark); transform: translateY(-2px); }
.car-btn:hover svg rect { fill: var(--lime); }

.car-btn:disabled { opacity: 0.3; pointer-events: none; }

.car-count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(12, 31, 23, 0.55);
}

.carousel { overflow: hidden; margin-top: 48px; }

.case-slide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  width: 100%;
}

.case-slide { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }

.case-slide.anim-out-left { opacity: 0; transform: translateX(-60px); }
.case-slide.anim-out-right { opacity: 0; transform: translateX(60px); }

.case-media { border-radius: 20px; overflow: hidden; min-height: 320px; }

.case-media img { width: 100%; height: 100%; object-fit: cover; }

.case-content { display: flex; flex-direction: column; justify-content: center; gap: 22px; }

.case-content h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.pill-dark {
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--dark);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.case-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border-radius: 100px;
  border: 1px solid rgba(12, 31, 23, 0.18);
  color: rgba(12, 31, 23, 0.6);
}

.case-content.quote blockquote {
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: rgba(12, 31, 23, 0.75);
}

.case-person { display: flex; align-items: center; gap: 14px; }

.case-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(140deg, #a16207, #f8e3a8);
}

.case-name { font-weight: 500; font-size: 1.05rem; letter-spacing: -0.02em; }
.case-role { font-size: 0.9rem; color: rgba(12, 31, 23, 0.55); letter-spacing: -0.02em; }

/* ============================================================
   NEWS (cream)
   ============================================================ */

.news-sec {
  background: var(--cream);
  color: var(--dark);
  padding: clamp(48px, 6vw, 88px) 0 clamp(80px, 10vw, 150px);
}

.news-head { display: flex; flex-direction: column; gap: 24px; position: relative; }

.news-head h2 { max-width: 700px; }

.see-all {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark);
}

.see-all svg { width: 26px; height: 26px; transition: transform 0.35s var(--ease); }
.see-all:hover svg { transform: translateX(5px); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(40px, 6vw, 64px);
}

.news-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(12, 31, 23, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}

.news-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(12, 31, 23, 0.12); }

.news-img { aspect-ratio: 1.25; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.news-card:hover .news-img img { transform: scale(1.05); }

.news-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }

.news-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(12, 31, 23, 0.5);
}

.news-meta em { font-style: normal; color: #a16207; }

.news-body h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.news-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark);
}

/* ============================================================
   REVEAL
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   FOOTER / CTA
   ============================================================ */

.footer {
  position: relative;
  background: var(--black);
  color: var(--cream);
  overflow: hidden;
  padding-top: clamp(100px, 14vw, 200px);
}

.footer-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }

.footer-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.55), rgba(15, 15, 15, 0.92));
}

.cta-block {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 0 20px;
  margin-bottom: clamp(80px, 12vw, 160px);
}

.cta-block h2 {
  font-size: clamp(2.4rem, 6.4vw, 5.4rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--lime);
}

.cta-block p {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: rgba(243, 246, 240, 0.65);
}

.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 32px;
  padding-bottom: clamp(48px, 6vw, 80px);
}

.footer-brand { display: flex; flex-direction: column; gap: 18px; }

.footer-word {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: var(--cream);
}

.footer-offices {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(243, 246, 240, 0.5);
}

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

.footer-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-col a {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: rgba(243, 246, 240, 0.65);
  transition: color 0.3s, transform 0.3s;
  width: fit-content;
}

.footer-col a:hover { color: var(--cream); transform: translateX(4px); }

.footer-wordmark {
  position: relative;
  z-index: 2;
  font-size: clamp(3.2rem, 15vw, 16rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-align: center;
  color: var(--lime-soft);
  white-space: nowrap;
  user-select: none;
}

.footer-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(243, 246, 240, 0.12);
  margin-top: clamp(32px, 4vw, 56px);
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(243, 246, 240, 0.55);
}

.to-top { font-family: var(--font-mono); font-size: 12.5px; color: rgba(243, 246, 240, 0.55); transition: color 0.3s; }
.to-top:hover { color: var(--lime); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .acc-panel { width: 56%; }
  .rock-back { width: 70vw; }
  .rock-mid { width: 58vw; }
  .rock-front { width: 68vw; }
}

@media (max-width: 1000px) {
  :root { --story-h: 0px; }

  .nav-links { display: none; }
  .burger { display: flex; }
  .nav .btn-nav { display: none; }

  /* story becomes stacked normal flow on mobile */
  #story { height: auto; }

  .scene {
    position: relative;
    height: auto;
    min-height: 0;
    pointer-events: auto;
    overflow: visible;
    padding: 0;
  }

  #scene-hero {
    display: flex;
    min-height: 92vh;
    padding: 120px 20px 60px;
  }

  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 28px; }

  .rocks, .scan-layer, .hero-metrics, .big-tooltip { display: none; }

  .scene-accordion {
    justify-content: center;
    padding: 40px 0;
    opacity: 1;
    transform: none;
    background: var(--dark);
  }

  .acc-panel {
    width: 100%;
    max-width: none;
    max-height: none;
    padding: 0 20px;
  }

  .scene-steps {
    padding: 40px 0;
    opacity: 1;
    background: var(--dark);
  }

  .steps-inner { padding: 0 20px; }

  .scene-loops { position: relative; height: 80vh; }

  .tech-wrap { height: auto; background: var(--indigo); }

  .tech-sticky { position: relative; height: auto; overflow: visible; }

  .tech-canvas { position: relative; }

  .tech-step {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    padding: 64px 20px;
    gap: 22px;
  }

  .step-2, .step-3, .step-final { flex-direction: column; }

  .tech-card, .bc-visual, .flux-figure, .final-card { width: 100%; max-width: 480px; }

  .tech-block { display: none; }

  .sol-cards { grid-template-columns: 1fr; }
  .case-slide { grid-template-columns: 1fr; gap: 24px; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .rock-scrub { height: 100vh; }
  .rock-scrub-caption { bottom: 6vh; left: 20px; right: 20px; }
}

@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; }
  .cases-head { flex-direction: column; align-items: flex-start; }
  .ticker-track span { font-size: 17px; }
  .flow-node img { width: 64px; }
}
