/* =========================================================
   The Riegel Group
   White, off-black, dark grey. Green as a single accent.
   ========================================================= */

:root {
  --bg: #FFFFFF;
  --surface: #F5F6F7;
  --surface-2: #EEF0F2;
  --ink: #0C0D0F;
  --ink-2: #2A2D32;
  --muted: #676C74;
  --faint: #9AA0A8;
  --line: rgba(12, 13, 15, 0.08);
  --accent: #22B566;
  --accent-strong: #18A058;
  --accent-ink: #0E7A3E;
  --accent-soft: #E7F6EE;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(96px, 14vw, 176px);

  --shadow-sm: 0 1px 2px rgba(12, 13, 15, 0.04), 0 4px 12px rgba(12, 13, 15, 0.04);
  --shadow-md: 0 2px 6px rgba(12, 13, 15, 0.04), 0 18px 48px -12px rgba(12, 13, 15, 0.12);
  --shadow-lg: 0 4px 12px rgba(12, 13, 15, 0.05), 0 40px 80px -24px rgba(12, 13, 15, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* ---------- Liquid glass ---------- */
.glass {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.46));
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(12, 13, 15, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    0 1px 1px rgba(12, 13, 15, 0.03),
    0 12px 32px -8px rgba(12, 13, 15, 0.12);
  isolation: isolate;
}
.glass::before {
  /* specular sheen that follows the pointer */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(160px circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, 0.85), transparent 60%);
  opacity: 0.55;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: -1;
}
.glass-strong {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(248, 249, 250, 0.65));
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 0 0 1px rgba(12, 13, 15, 0.05),
    var(--shadow-lg);
}

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 212px; height: var(--h); padding: 0 24px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.5s var(--ease-out), background-color 0.3s, box-shadow 0.3s, color 0.3s;
  will-change: transform;
}
.btn-sm { --h: 40px; min-width: 0; padding: 0 18px; font-size: 14px; }
.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(12, 13, 15, 0.2), 0 10px 24px -10px rgba(12, 13, 15, 0.55);
}
.btn-primary:hover { background: #1B1D21; }
.btn-glass { color: var(--ink); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.9); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 10px 30px -10px rgba(34, 181, 102, 0.55); }
.btn-light:hover { background: #F2FBF6; }
.btn-arrow { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; top: 14px; left: 0; right: 0;
  z-index: 50;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.7));
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  height: 60px; padding: 0 10px 0 18px;
  border-radius: 999px;
  transition: max-width 0.6s var(--ease-out), height 0.6s var(--ease-out), box-shadow 0.4s;
}
.site-header.is-scrolled .nav { max-width: 880px; height: 54px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 16px; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; color: var(--ink); flex: none; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  display: inline-flex; height: 36px; align-items: center; padding: 0 14px;
  border-radius: 999px; font-size: 14px; color: var(--ink-2);
  transition: background-color 0.25s, color 0.25s;
}
.nav-links a:hover { background: rgba(12, 13, 15, 0.05); color: var(--ink); }
.nav-links a.is-active { color: var(--ink); background: rgba(12, 13, 15, 0.06); }
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 999px; position: relative; margin-left: auto; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out); }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 23px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }
.mobile-menu {
  pointer-events: auto;
  max-width: 1080px; margin: 10px auto 0;
  border-radius: 24px; padding: 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 12px 12px; border-radius: 12px; font-size: 17px; font-weight: 500; }
.mobile-menu a:not(.btn):active { background: rgba(12, 13, 15, 0.05); }
.mobile-menu-label { font-size: 12px; color: var(--muted); padding: 10px 12px 4px; }
.mobile-menu .btn { margin-top: 8px; width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(128px, 16vw, 168px) 0 40px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); }
.orb-a { width: 620px; height: 620px; right: -120px; top: 40px; background: radial-gradient(circle, rgba(34, 181, 102, 0.18), rgba(34, 181, 102, 0) 70%); }
.orb-b { width: 520px; height: 520px; right: 280px; top: 320px; background: radial-gradient(circle, rgba(12, 13, 15, 0.07), rgba(12, 13, 15, 0) 70%); }
.grid-fade {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(12, 13, 15, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 13, 15, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 16px 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.8); opacity: 0; } }

.hero-title {
  margin-top: 28px;
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
  color: var(--ink);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; white-space: nowrap; }
.hero-title .line-inner { display: inline-block; }
.hero-title .serif { font-size: 1.06em; letter-spacing: -0.02em; color: var(--ink-2); }
.hero-sub { margin-top: 28px; max-width: 34rem; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); line-height: 1.55; }
.hero-copy .btn-row { margin-top: 36px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

.hero-visual { position: relative; }
.stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; margin-left: auto; }
.portrait {
  position: absolute; inset: 9%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #FFFFFF 0%, #F3F5F5 55%, #E6EAEA 100%);
  box-shadow: inset 0 0 0 1px rgba(12, 13, 15, 0.05), 0 40px 80px -30px rgba(12, 13, 15, 0.35);
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; transform: translateY(4%) scale(1.04); mix-blend-mode: multiply; }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(12, 13, 15, 0.14); }
.orbit-1 { inset: 2%; animation: spin 48s linear infinite; }
.orbit-2 { inset: -6%; border-style: solid; border-color: rgba(12, 13, 15, 0.05); }
.orbit-dot { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(34, 181, 102, 0.15); }
@keyframes spin { to { transform: rotate(360deg); } }

.float-card { position: absolute; border-radius: 22px; padding: 16px 18px; will-change: transform; }
.fc-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.fc-value { font-size: 30px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; margin-top: 2px; display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.fc-value-sm { font-size: 24px; margin-top: 0; }
.fc-unit { font-size: 13px; font-weight: 500; color: var(--accent-ink); letter-spacing: 0; }
.fc-proof { font-size: 12px; color: var(--muted); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.fc-proof::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.card-pipeline { left: -6%; top: 14%; width: 208px; }
.spark { width: 100%; height: 44px; margin-top: 8px; overflow: visible; }
.card-rfq { right: -4%; top: 46%; width: 188px; }
.mini-bars { display: grid; gap: 6px; margin-top: 10px; }
.mini-bars span { display: block; height: 8px; width: var(--w); border-radius: 99px; background: #DADDE0; transform-origin: left; }
.mini-bars span.is-accent { background: var(--accent); }
.card-growth { left: 4%; bottom: 4%; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 20px; }
.badge-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--accent); display: grid; place-items: center; flex: none; }
.badge-icon svg { width: 20px; height: 20px; }

/* Logos */
.logos { margin-top: clamp(64px, 9vw, 112px); display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); }
.logos-label { font-size: 13px; color: var(--muted); white-space: nowrap; flex: none; }
.logo-row { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 5vw, 64px); }
.logo-row li { display: flex; align-items: center; justify-content: center; }
.logo { height: 26px; width: auto; filter: grayscale(1) brightness(0.15); opacity: 0.55; transition: opacity 0.4s, filter 0.4s; }
.logo-row li:hover .logo { opacity: 1; filter: none; }
.logo-tesla { height: 16px; }
.logo-lear { height: 30px; }
.logo-denso { height: 22px; }
.logo-mars { height: 24px; }

/* ---------- Section heads ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 80px); }
.section-head-split { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--accent-ink); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); }
.eyebrow-dark { color: var(--accent); }
.section-title { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500; text-wrap: balance; }
.section-lede { margin-top: 20px; font-size: clamp(17px, 1.3vw, 19px); color: var(--muted); max-width: 36rem; text-wrap: pretty; }
.section-head-split .section-lede { margin-top: 0; }
.section-cta { margin-top: clamp(48px, 6vw, 72px); display: flex; justify-content: center; }

/* ---------- Problem ---------- */
.problem { padding-top: clamp(80px, 10vw, 128px); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem-card { background: var(--surface); border-radius: var(--r-lg); padding: 12px 12px 28px; }
.problem-card h3 { font-size: 21px; letter-spacing: -0.025em; font-weight: 600; margin: 24px 16px 0; }
.problem-card p { font-size: 15px; color: var(--muted); margin: 8px 16px 0; line-height: 1.55; }
.illo { height: 190px; border-radius: calc(var(--r-lg) - 12px); background: #fff; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(12, 13, 15, 0.04); }

.illo-deadline { padding: 28px 24px; }
.deadline-line { position: absolute; top: 18px; bottom: 18px; left: 72%; width: 0; border-left: 1.5px dashed rgba(12, 13, 15, 0.35); }
.deadline-line span { position: absolute; top: -2px; left: 8px; font-size: 12px; color: var(--muted); font-weight: 500; }
.gantt { position: absolute; left: 24px; right: 24px; top: 52px; display: grid; gap: 16px; }
.gantt span { display: block; height: 22px; border-radius: 8px; margin-left: var(--s); width: calc(var(--e) - var(--s)); background: #D9DBDE; transform-origin: left; }
.gantt span.late { background: var(--ink-2); position: relative; }
.gantt span.late::after { content: ""; position: absolute; right: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.15); }

.illo-funnel { display: grid; place-items: center; padding: 16px; }
.illo-funnel svg { width: 100%; height: 100%; }
.flow-dots circle { fill: var(--ink-2); }
.exit-dot { fill: var(--accent); }

.illo-calendar { display: grid; place-items: center; padding: 24px; }
.cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: 100%; max-width: 260px; }
.cal span { height: 26px; border-radius: 6px; background: var(--ink-2); opacity: 0.9; }
.cal span:nth-child(3n) { opacity: 0.55; }
.cal span:nth-child(4n+1) { opacity: 0.75; }
.cal .cal-free { background: var(--accent); opacity: 1 !important; box-shadow: 0 0 0 4px rgba(34, 181, 102, 0.18); }

.problem-close { margin-top: clamp(56px, 7vw, 88px); text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.02em; color: var(--ink-2); line-height: 1.15; }

/* ---------- Results bento ---------- */
.results { background: linear-gradient(180deg, #fff 0%, var(--surface) 22%, var(--surface) 100%); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden;
  background: #fff; border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile-for { font-size: 13px; font-weight: 500; color: var(--accent-ink); max-width: 26ch; }
.tile-number { font-size: clamp(48px, 5vw, 72px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; margin-top: auto; padding-top: 24px; font-variant-numeric: tabular-nums; }
.tile-label { font-size: 15px; color: var(--muted); margin-top: 10px; max-width: 30ch; line-height: 1.45; }
.tile-proof { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-size: 12px; color: var(--faint); }
.proof-logo { height: 18px; width: auto; filter: grayscale(1) brightness(0.2); opacity: 0.6; }
.proof-logo.invert { filter: grayscale(1) brightness(0) invert(1); opacity: 0.75; }

.tile-hero { grid-column: span 6; grid-row: span 2; background: var(--ink); color: #fff; min-height: 520px; padding: 36px; }
.tile-hero .tile-for { color: var(--accent); font-size: 15px; }
.tile-hero .tile-number { font-size: clamp(72px, 8vw, 128px); padding-top: 0; margin-top: 28px; letter-spacing: -0.06em; }
.tile-hero .tile-label { color: rgba(255, 255, 255, 0.62); font-size: 17px; }
.tile-hero .tile-proof { color: rgba(255, 255, 255, 0.45); }
.tile-glow { position: absolute; width: 560px; height: 560px; right: -180px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 181, 102, 0.42), rgba(34, 181, 102, 0) 65%); filter: blur(20px); pointer-events: none; }
.tile-chart { position: relative; margin-top: auto; height: 150px; display: flex; align-items: flex-end; gap: 8px; padding-top: 24px; }
.tile-chart span { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: rgba(255, 255, 255, 0.1); transform-origin: bottom; }
.tile-chart span.is-accent { background: linear-gradient(180deg, var(--accent), var(--accent-strong)); box-shadow: 0 0 30px rgba(34, 181, 102, 0.5); }

.tile-growth, .tile-dots, .tile-ring { grid-column: span 3; min-height: 380px; }
.tile-money, .tile-eff, .tile-ops { grid-column: span 4; }
.tile-growth { grid-column: span 3; }
.tile-dots { grid-column: span 3; }
.tile-ring { grid-column: span 6; min-height: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; column-gap: 28px; }
.tile-ring .tile-for { grid-column: 1 / -1; }
.tile-ring .ring { grid-row: 2 / 4; width: 132px; height: 132px; margin-top: 24px; align-self: center; transform: rotate(-90deg); }
.tile-ring .tile-number { grid-column: 2; padding-top: 24px; margin-top: 0; align-self: end; }
.tile-ring .tile-label { grid-column: 2; }
.tile-ring .tile-proof { grid-column: 1 / -1; }
.ring-val { stroke-dasharray: 100; stroke-dashoffset: 34; }

.growth-bars { display: flex; gap: 14px; align-items: stretch; height: 150px; margin-top: 24px; }
.growth-bars > div { flex: 1; display: grid; grid-template-rows: 1fr auto; gap: 8px; }
.growth-bars .gb-col { position: relative; }
.growth-bars .gb { position: absolute; left: 0; right: 0; bottom: 0; display: block; height: var(--h); border-radius: 10px 10px 4px 4px; background: #E4E6E8; transform-origin: bottom; }
.growth-bars .gb.is-accent { background: var(--ink); }
.growth-bars small { font-size: 12px; color: var(--muted); }

.dot-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-top: 24px; max-width: 200px; }
.dot-grid i { aspect-ratio: 1; border-radius: 50%; background: var(--ink-2); transition: background-color 0.5s, transform 0.5s var(--ease-spring); }
.dot-grid i.is-fixed { background: var(--accent); transform: scale(0.72); }

/* ---------- Plan ---------- */
.steps { position: relative; }
.steps-line { position: absolute; top: 28px; left: 0; width: 100%; height: 4px; }
.steps-line-fill { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); position: relative; }
.step-node {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(12, 13, 15, 0.1), var(--shadow-sm);
  font-family: var(--mono); font-size: 15px; font-weight: 500;
  transition: background-color 0.5s, color 0.5s, box-shadow 0.5s;
}
.step.is-on .step-node { background: var(--ink); color: #fff; box-shadow: 0 0 0 6px rgba(34, 181, 102, 0.16), var(--shadow-md); }
.step-time { margin-top: 28px; font-size: 13px; color: var(--accent-ink); font-weight: 500; }
.step h3 { margin-top: 6px; font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -0.035em; font-weight: 500; }
.step p:last-child { margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 32ch; }

/* ---------- Services ---------- */
.services { background: var(--surface); }
.svc { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.svc-tabs { display: flex; flex-direction: column; gap: 4px; }
.svc-tab {
  display: flex; align-items: center; gap: 20px; width: 100%; text-align: left;
  padding: 20px 22px; border-radius: 18px;
  font-size: clamp(20px, 1.9vw, 26px); font-weight: 500; letter-spacing: -0.03em;
  color: var(--faint);
  transition: color 0.35s, background-color 0.35s;
}
.svc-tab:hover { color: var(--ink-2); }
.svc-tab[aria-selected="true"] { color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); }
.svc-num { font-family: var(--mono); font-size: 13px; letter-spacing: 0; color: var(--faint); font-weight: 400; }
.svc-tab[aria-selected="true"] .svc-num { color: var(--accent-ink); }
.svc-panels { border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px); position: sticky; top: 110px; min-height: 440px; overflow: hidden; }
.svc-panels::after { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 181, 102, 0.16), transparent 70%); pointer-events: none; }
.svc-panel h3 { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -0.04em; font-weight: 500; line-height: 1.05; max-width: 16ch; }
.svc-panel > p { margin-top: 14px; color: var(--muted); max-width: 40ch; }
.checks { margin-top: 28px; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--ink-2); }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%230E7A3E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.svc-proof { margin-top: 36px; padding: 20px 22px; border-radius: 20px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 18px; }
.svc-proof-num { font-size: 34px; font-weight: 500; letter-spacing: -0.04em; color: var(--accent); flex: none; }
.svc-proof-label { font-size: 14px; color: rgba(255, 255, 255, 0.7); line-height: 1.4; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-photo { position: relative; max-width: 460px; }
.about-portrait { aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(170deg, #F3F5F6, #E3E7E9); position: relative; }
.about-portrait::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, rgba(34, 181, 102, 0.14), transparent 55%); }
.about-portrait img { position: absolute; bottom: -4%; left: 50%; width: 112%; max-width: none; transform: translateX(-50%); z-index: 1; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 92%); mask-image: linear-gradient(to bottom, #000 72%, transparent 92%); }
.patent-card { position: absolute; right: -28px; bottom: 32px; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 20px; }
.patent-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.patent-icon svg { width: 20px; height: 20px; }
.patent-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.patent-meta { font-size: 12px; color: var(--muted); }
.about-stats { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.about-stats div { display: flex; flex-direction: column-reverse; gap: 4px; }
.about-stats dt { font-size: 13px; color: var(--muted); }
.about-stats dd { font-size: clamp(32px, 3.4vw, 48px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }

.timeline-wrap { margin-top: clamp(80px, 10vw, 128px); position: relative; }
.timeline-track { overflow: hidden; }
.timeline { display: flex; gap: 16px; padding: 0 var(--gutter); padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); width: max-content; }
.tl {
  width: 300px; flex: none; min-height: 260px;
  background: var(--surface); border-radius: var(--r-lg); padding: 28px;
  display: flex; flex-direction: column;
}
.tl-year { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.tl h3 { margin-top: 16px; font-size: 21px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.tl-co { margin-top: 6px; font-size: 14px; color: var(--muted); }
.tl-win { margin-top: auto; padding-top: 24px; font-size: 15px; color: var(--ink-2); font-weight: 500; display: flex; gap: 10px; }
.tl-win::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 7px; }
.tl-accent { background: var(--ink); color: #fff; }
.tl-accent .tl-year, .tl-accent .tl-co { color: rgba(255, 255, 255, 0.55); }
.tl-accent .tl-win { color: #fff; }
.timeline-progress { margin: 32px auto 0; max-width: calc(var(--container) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); height: 2px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.timeline-progress span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }

.timeline-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.timeline-title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.035em; font-weight: 500; }
.timeline-hint { font-size: 15px; color: var(--muted); }

/* ---------- Stakes ---------- */
.stakes-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.seg { margin-top: 36px; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; position: relative; }
.seg-btn { position: relative; z-index: 1; height: 42px; min-width: 150px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color 0.35s; }
.seg-btn.is-active { color: #fff; }
.seg-thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--ink); transition: transform 0.55s var(--ease-spring), background-color 0.4s; box-shadow: var(--shadow-md); }
.seg[data-mode="with"] .seg-thumb { transform: translateX(100%); }
.stakes-list { margin-top: 32px; display: grid; gap: 14px; }
.stakes-list li { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.stakes-list li::before { content: ""; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3L17 9' fill='none' stroke='%230E7A3E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/24px no-repeat; }
.stakes-list.is-neg li { color: var(--muted); }
.stakes-list.is-neg li::before { background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.5 8.5l7 7M15.5 8.5l-7 7' fill='none' stroke='%23676C74' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/24px no-repeat; }
.stakes-chart { border-radius: var(--r-xl); padding: 28px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; }
.chart-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.chart-tag { font-size: 12px; color: var(--muted); background: var(--surface); padding: 4px 10px; border-radius: 999px; }
.chart { width: 100%; height: auto; margin-top: 24px; overflow: visible; }
.chart-grid line { stroke: rgba(12, 13, 15, 0.06); stroke-dasharray: 4 6; }
.chart-line { fill: none; stroke: var(--accent-strong); stroke-width: 3; stroke-linecap: round; transition: stroke 0.5s; }
.chart-area { fill: rgba(34, 181, 102, 0.12); transition: fill 0.5s; }
.chart-end { fill: var(--accent-strong); stroke: #fff; stroke-width: 3; transition: fill 0.5s; }
.stakes[data-mode="without"] .chart-line { stroke: var(--faint); }
.stakes[data-mode="without"] .chart-area { fill: rgba(12, 13, 15, 0.04); }
.stakes[data-mode="without"] .chart-end { fill: var(--faint); }
.chart-foot { display: flex; justify-content: space-between; margin-top: 20px; }
.cf-label { font-size: 12px; color: var(--muted); }
.cf-val { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; margin-top: 2px; }
.cf-right { text-align: right; }

/* ---------- CTA ---------- */
.cta { padding: 0 0 clamp(64px, 8vw, 112px); }
.cta-card { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 88px); }
.cta-glow { position: absolute; width: 900px; height: 900px; left: 50%; top: -60%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(34, 181, 102, 0.28), rgba(34, 181, 102, 0) 60%); pointer-events: none; }
.cta-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 75%);
}
.cta-grid { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.cta-title { font-size: clamp(38px, 4.8vw, 68px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 500; text-wrap: balance; }
.cta-sub { margin-top: 20px; color: rgba(255, 255, 255, 0.62); font-size: 18px; max-width: 34rem; }
.cta-card .btn-row { margin-top: 36px; }
.cta-steps { display: grid; gap: 10px; }
.cta-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.cta-step-n { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 181, 102, 0.16); color: var(--accent); font-family: var(--mono); font-size: 13px; }
.cta-step-t { font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.cta-step-d { font-size: 14px; color: rgba(255, 255, 255, 0.55); margin-top: 2px; }

/* ---------- Footer ---------- */
.footer { padding: 24px 0 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-tag { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 30ch; }
.footer-cols { display: flex; gap: clamp(40px, 8vw, 120px); }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols a { font-size: 15px; color: var(--ink-2); transition: color 0.2s; }
.footer-cols a:hover { color: var(--accent-ink); }
.footer-h { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.footer-base { margin-top: 64px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer-fine { max-width: 52ch; }

/* ---------- Motion initial states (JS adds .js) ---------- */
.js .reveal, .js .reveal-up, .js .reveal-card { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { margin: 24px auto 0; max-width: 500px; }
  .tile-hero { grid-column: span 12; min-height: 460px; grid-row: auto; }
  .tile-growth, .tile-dots { grid-column: span 6; }
  .tile-ring { grid-column: span 12; }
  .svc { grid-template-columns: 1fr; }
  .svc-panels { position: relative; top: 0; }
  .svc-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter); }
  .svc-tabs::-webkit-scrollbar { display: none; }
  .svc-tab { width: auto; white-space: nowrap; font-size: 17px; padding: 12px 18px; flex: none; }
  .about-grid, .stakes-grid { grid-template-columns: 1fr; }
  .about-photo { margin: 0 auto; width: 100%; }
  .cta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .nav { height: 56px; padding: 0 8px 0 16px; }
  .site-header.is-scrolled .nav { height: 56px; }
  .logos { flex-direction: column; align-items: flex-start; gap: 24px; }
  .logo-row { width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 24px 28px; }
  .section-head-split { grid-template-columns: 1fr; gap: 0; }
  .section-head-split .section-lede { margin-top: 20px; }
  .problem-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento .tile { grid-column: auto; min-height: 0; }
  .tile-hero { min-height: 440px; }
  .step-list { grid-template-columns: 1fr; gap: 40px; padding-left: 0; }
  .steps-line { display: none; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; }
  .step-node { grid-row: span 3; }
  .step-time { margin-top: 4px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .patent-card { right: 12px; left: 12px; bottom: 12px; }
  .timeline-track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .timeline-track::-webkit-scrollbar { display: none; }
  .tl { width: 78vw; max-width: 320px; scroll-snap-align: start; }
  .timeline { padding-left: var(--gutter); }
  .timeline-progress { display: none; }
  .seg { display: grid; width: 100%; }
  .seg-btn { min-width: 0; }
  .float-card { scale: 0.86; }
  .card-pipeline { left: -2%; top: 4%; transform-origin: left top; }
  .card-rfq { right: -2%; transform-origin: right center; }
  .card-growth { left: 0; bottom: 0; transform-origin: left bottom; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .btn-row .btn { flex: 1 1 100%; min-width: 0; }
  .stage { max-width: 360px; }
  .float-card { scale: 0.74; }
  .tile { padding: 24px; }
  .tile-hero { padding: 28px; }
  .footer-cols { gap: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal, .js .reveal-up, .js .reveal-card { opacity: 1; }
}
