/* ============================================================
   Carbondrop — inversa.com/origin copycat design system
   Near-black · monochrome · Inter + JetBrains Mono
   ============================================================ */

:root {
  --bg: #0b0b09;
  --bg-2: #10100d;
  --surface: #131311;
  --surface-2: #171714;

  --ink: #ecece4;
  --ink-dim: #b0b3b4;
  --ink-faint: #6b6b64;

  --green: #86c63d;         /* tiny accents only (dots / lines / cursor) */
  --accent: #aebf97;        /* muted sage for two-tone headings */

  --line: rgba(236, 236, 228, 0.09);
  --line-strong: rgba(236, 236, 228, 0.2);

  --font-display: "Manrope", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", monospace;

  --max: 1280px;
  --gutter: clamp(24px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}
p { margin: 0; }

::selection { background: var(--ink); color: #0b0b09; }

/* ============ PRELOADER ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { width: min(360px, 80vw); display: flex; flex-direction: column; gap: 22px; }
.loader__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  letter-spacing: 0.08em;
  color: var(--ink);
}
.loader__stats { display: flex; gap: 32px; }
.loader__stat { display: flex; flex-direction: column; gap: 4px; }
.loader__label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.loader__value { font-family: var(--font-mono); font-size: 0.9rem; color: var(--green); }
.loader__bar { height: 1px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.2s ease; }

/* ============ CUSTOM CURSOR ============ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 999;
  pointer-events: none;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor__ring {
  display: block;
  width: 26px; height: 26px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}
.cursor.is-hovering .cursor__ring { width: 48px; height: 48px; border-color: var(--ink); }

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  width: 0;
  z-index: 300;
  background: var(--ink);
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 110;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 11, 9, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  transition: color 0.3s ease, opacity 0.3s ease;
}
.brand__svg {
  display: block;
  width: 109px;
  height: auto;
  transition: transform 0.45s var(--ease);
  animation: logoGlow 4.5s ease-in-out infinite;
}
.brand:hover { color: var(--ink-dim); }
.brand:hover .brand__svg { transform: scale(1.07); }
@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(134, 198, 61, 0)); }
  50% { filter: drop-shadow(0 0 8px rgba(134, 198, 61, 0.45)); }
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}
.menu-btn__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.3s ease;
}
.menu-btn__icon { position: relative; width: 20px; height: 14px; }
.menu-btn__icon::before,
.menu-btn__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transition: transform 0.4s var(--ease);
}
.menu-btn__icon::before { top: 3px; }
.menu-btn__icon::after { bottom: 3px; }
.menu-btn.is-open .menu-btn__icon::before { transform: translateY(3.5px) rotate(45deg); }
.menu-btn.is-open .menu-btn__icon::after { transform: translateY(-3.5px) rotate(-45deg); }

/* full-screen menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.65s var(--ease), visibility 0s linear 0.65s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.65s var(--ease), visibility 0s; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 10px 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 8vw, 4.2rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.3s ease, transform 0.3s var(--ease);
}
.menu__nav a span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-faint); }
.menu__nav a:hover { color: var(--ink-faint); transform: translateX(10px); }
.menu__foot { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 28px; }
.menu__foot a { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink-dim); transition: color 0.3s ease; }
.menu__foot a:hover { color: var(--ink); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 72% 18%, rgba(134, 198, 61, 0.14), transparent 55%),
    radial-gradient(70% 60% at 18% 88%, rgba(185, 225, 125, 0.09), transparent 60%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(236,236,228,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236,236,228,0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}
.bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.hero__ghost {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(16rem, 38vw, 34rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 236, 228, 0.06);
  pointer-events: none;
  user-select: none;
  animation: ghostDrift 16s ease-in-out infinite alternate;
}
@keyframes ghostDrift {
  from { transform: translate(-50%, -50%) translateY(0); }
  to { transform: translate(-50%, -50%) translateY(-24px); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.hero__readout {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 28px;
}
.blink { color: var(--green); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__title {
  font-size: clamp(2.4rem, 5.8vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin-bottom: 48px;
}
.hero__title .accent { display: block; color: var(--accent); }

.hero__body {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: var(--ink-dim);
  max-width: 52ch;
  margin-bottom: 44px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__media { position: relative; will-change: transform; transform-style: preserve-3d; transition: transform 0.3s ease-out; }
.hero__frame { position: relative; overflow: hidden; border: 1px solid var(--line-strong); clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease) 0.15s; }
.hero__media.reveal { filter: none; }
.hero__media.reveal:not(.is-visible) .hero__frame { clip-path: inset(0 100% 0 0); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.2; animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1.05) translate(0, 0); }
  to { transform: scale(1.18) translate(-2.5%, 2%); }
}
.hero__frame-corner {
  position: absolute;
  top: 10px; left: 10px;
  width: 18px; height: 18px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.hero__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(11, 11, 9, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  padding: 11px 15px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero__badge--top { top: 16px; left: -16px; }
.hero__badge--bottom { bottom: -18px; right: -10px; flex-direction: column; align-items: flex-start; gap: 2px; padding: 13px 16px; }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2.4s infinite; }
.badge__num { font-family: var(--font-mono); font-size: 1.2rem; color: var(--ink); }
.badge__txt { font-size: 0.58rem; color: var(--ink-faint); letter-spacing: 0.08em; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(134,198,61,0.5); } 70% { box-shadow: 0 0 0 8px rgba(134,198,61,0); } 100% { box-shadow: 0 0 0 0 rgba(134,198,61,0); } }

.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  z-index: 2;
}
.hero__scroll-line { width: 60px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateX(-100%); animation: scrollline 2.2s var(--ease) infinite; }
@keyframes scrollline { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  position: relative;
  color: #0b0b09;
  background: linear-gradient(110deg, #d9e3c8, #a9c08b 22%, #e2ecd2 42%, #8fb06a 62%, #d9e3c8 82%);
  background-size: 220% 100%;
  animation: liquid 7s linear infinite;
  border-color: rgba(236, 236, 228, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 34px -14px rgba(0, 0, 0, 0.9);
}
@keyframes liquid { to { background-position: -220% 0; } }
.btn--primary::after { content: "→"; margin-left: 6px; transition: transform 0.3s var(--ease); }
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 14px 44px -12px rgba(0, 0, 0, 0.9); }
.btn--primary:hover::after { transform: translateX(4px); }
.btn--ghost { color: var(--ink); border-color: var(--line-strong); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  padding: 16px 0;
}
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0 28px;
  white-space: nowrap;
}
.marquee__track i { display: inline-block; width: 5px; height: 5px; margin: auto 0; border-radius: 50%; background: var(--green); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { padding: clamp(90px, 12vw, 160px) 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 900px; }
.center { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 60px); }

.section__head { max-width: 760px; margin-bottom: clamp(56px, 7vw, 96px); }
.section__index {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.section__index span { color: var(--green); }
.section__title {
  font-size: clamp(1.9rem, 4.2vw, 3.3rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin-bottom: 44px;
}
.section__title .accent { color: var(--accent); }
.section__lede {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: var(--ink-dim);
  max-width: 58ch;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease) 0.22s, transform 0.7s var(--ease) 0.22s;
}
.reveal.is-visible .section__index,
.reveal.is-visible .section__lede { opacity: 1; transform: none; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.accent { color: var(--accent); }

/* ============ CARDS ============ */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: background 0.4s ease;
}
.card:hover { background: var(--surface); }
.card__media { overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); will-change: transform; transition: filter 0.5s ease, opacity 0.5s ease; filter: grayscale(1) contrast(1.05); opacity: 0.85; }
.card:hover .card__media img { filter: grayscale(0) contrast(1.02); opacity: 1; }
.card__num {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink);
  background: rgba(11,11,9,0.7);
  border: 1px solid var(--line-strong);
  padding: 4px 8px;
}
.card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__title { font-size: 1.1rem; font-weight: 400; letter-spacing: -0.01em; }
.card__text { font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.7; color: var(--ink-dim); }

/* ============ METRICS ============ */
.metrics { padding: clamp(48px, 7vw, 84px) 0; }
.metrics__label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 44px; }
.metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.metric { border-left: 1px solid var(--line); padding-left: 24px; }
.metric__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 14px;
}
.metric__label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }

/* ============ TABS / FEATURES ============ */
.tabs { display: inline-flex; border: 1px solid var(--line); margin-bottom: 40px; }
.tab {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: transparent;
  border: 0;
  padding: 14px 24px;
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease;
}
.tab + .tab { border-left: 1px solid var(--line); }
.tab.is-active { background: var(--ink); color: #0b0b09; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature {
  background: var(--bg);
  padding: 28px 26px;
  transition: background 0.4s ease;
}
.feature:hover { background: var(--surface); }
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  margin-bottom: 20px;
  transition: transform 0.45s var(--ease), border-color 0.4s ease;
}
.feature__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s var(--ease); }
.feature:hover .feature__icon { transform: rotate(-8deg) scale(1.1); border-color: var(--ink); }
.feature:hover .feature__icon svg { transform: rotate(8deg) scale(1.06); }
.reveal.is-visible .feature__icon { animation: iconIn 0.7s var(--ease) both; }
@keyframes iconIn { from { transform: scale(0.3) rotate(-24deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.feature__title { font-size: 1.02rem; font-weight: 400; letter-spacing: -0.01em; margin-bottom: 10px; }
.feature__text { font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.7; color: var(--ink-dim); }

.matrix-panel[hidden] { display: none; }

/* ============ ABOUT ============ */
.about__title { font-size: clamp(2.1rem, 4.8vw, 3.6rem); max-width: 22ch; line-height: 1.12; margin: 0 0 56px; }
.about__title .accent { color: var(--accent); }
.about__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 46px; }
.about__cols p { font-family: var(--font-mono); font-size: 0.9rem; line-height: 1.85; letter-spacing: 0.01em; color: var(--ink-dim); border-top: 1px solid var(--line); padding-top: 20px; }

/* ============ STEPS ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--bg); transition: background 0.4s ease; }
.step:hover { background: var(--surface); }
.step__media { aspect-ratio: 4 / 3.2; overflow: hidden; position: relative; }
.step__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); will-change: transform; transition: filter 0.5s ease, opacity 0.5s ease; filter: grayscale(1) contrast(1.05); opacity: 0.85; }
.step:hover .step__media img { filter: grayscale(0) contrast(1.02); opacity: 1; }
.step__index {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #0b0b09;
  background: var(--ink);
  padding: 4px 8px;
}
.step__title { font-size: 1.05rem; font-weight: 400; letter-spacing: -0.01em; padding: 20px 22px 6px; }
.step__text { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); padding: 0 22px 22px; }

/* ============ CREDITS ============ */
.credits { display: flex; flex-direction: column; }
.credit {
  display: grid;
  grid-template-columns: 56px 1fr 1.3fr;
  gap: 28px;
  align-items: baseline;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}
.credit:first-child { border-top: 1px solid var(--line); }
.credit:hover { padding-left: 16px; }
.credit__num { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-faint); letter-spacing: 0.12em; transition: color 0.3s ease; }
.credit__title { font-size: 1.25rem; font-weight: 300; letter-spacing: -0.01em; transition: color 0.3s ease; }
.credit__text { font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.7; color: var(--ink-dim); }
.credit:hover .credit__num { color: var(--ink); }
.credit:hover .credit__title { color: var(--ink-dim); }

/* ============ PILLARS ============ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: clamp(48px, 7vw, 80px); }
.pillar { background: var(--bg); padding: 32px 28px; }
.pillar__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 18px;
}
.pillar__label { font-size: 1.05rem; font-weight: 400; letter-spacing: -0.01em; margin-bottom: 10px; }
.pillar__text { font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.7; color: var(--ink-dim); }

/* ============ RESEARCH ============ */
.research { border-top: 1px solid var(--line); padding-top: clamp(40px, 6vw, 64px); }
.research__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 40px; }
.research__title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.research__partner { font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.6; color: var(--ink-dim); max-width: 48ch; }
.research__partner a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }

/* timeline */
.timeline { margin-bottom: 8px; }
.timeline__track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 40px; }
.timeline__track::before { content: ""; position: absolute; top: 9px; left: 12.5%; right: 12.5%; height: 1px; background: var(--line); }
.timeline__fill { position: absolute; top: 9px; left: 12.5%; height: 1px; width: 0; background: var(--ink); transition: width 0.6s var(--ease); }
.timeline__node {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-faint);
}
.timeline__dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg-2); transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.timeline__year { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; }
.timeline__label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); transition: color 0.3s ease; }
.timeline__node:hover .timeline__label { color: var(--ink); }
.timeline__node.is-done .timeline__dot { background: var(--ink); border-color: var(--ink); }
.timeline__node.is-active .timeline__dot { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 5px rgba(134,198,61,0.14); }
.timeline__node.is-active .timeline__label,
.timeline__node.is-active .timeline__year { color: var(--ink); }

.timeline__stage { position: relative; background: var(--surface); border: 1px solid var(--line); padding: clamp(28px, 4vw, 44px); min-height: 240px; }
.timeline__panel { animation: panelIn 0.55s var(--ease); }
.timeline__panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tpanel__row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.tpanel__stat { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.tpanel__statlabel { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.tpanel__title { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-bottom: 12px; }
.tpanel__text { font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.7; color: var(--ink-dim); max-width: 64ch; margin-bottom: 20px; }
.tpanel__link { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.tpanel__link:hover { color: var(--ink-faint); }

.timeline__controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 24px; }
.timeline__arrow {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.timeline__arrow:hover { border-color: var(--ink); }
.timeline__progress { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-faint); min-width: 130px; justify-content: center; }
.timeline__progress-bar { flex: 1; height: 1px; background: var(--line); overflow: hidden; }
.timeline__progress-bar i { display: block; height: 100%; width: 25%; background: var(--ink); transition: width 0.5s var(--ease); }

.research__footer-note { font-family: var(--font-mono); font-size: 0.76rem; line-height: 1.6; color: var(--ink-faint); margin-top: 12px; }
.research__footer-note a { color: var(--ink); }

/* refs */
.refs { border: 1px solid var(--line); background: var(--surface); }
.refs summary {
  cursor: pointer; list-style: none;
  padding: 22px 26px;
  font-family: var(--font-mono);
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: space-between;
}
.refs summary::-webkit-details-marker { display: none; }
.refs summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.2rem; color: var(--ink-faint); transition: transform 0.35s var(--ease); }
.refs[open] summary::after { transform: rotate(45deg); }
.refs__body { padding: 0 26px 30px; }
.ref-group { margin-bottom: 28px; }
.ref-group__title { font-size: 1rem; font-weight: 400; letter-spacing: 0.02em; margin-bottom: 14px; color: var(--ink); }
.ref-block { margin-bottom: 16px; }
.ref-block h5 { font-family: var(--font-mono); font-size: 0.76rem; font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: var(--ink-dim); margin: 0 0 8px; }
.ref-block ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.ref-block li { font-family: var(--font-mono); font-size: 0.74rem; line-height: 1.55; color: var(--ink-faint); }

/* ============ FAQ ============ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item { border: 1px solid var(--line); background: var(--surface); transition: border-color 0.3s ease; }
.faq__item[open] { border-color: var(--line-strong); }
.faq__item summary {
  cursor: pointer; list-style: none;
  padding: 22px 26px;
  font-family: var(--font-mono);
  font-size: 0.84rem; letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex-shrink: 0; font-family: var(--font-mono); font-size: 1.2rem; color: var(--ink-faint); transition: transform 0.35s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 26px 26px; }
.faq__answer p { font-family: var(--font-mono); font-size: 0.84rem; line-height: 1.7; color: var(--ink-dim); }
.faq__answer a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }

/* ============ CONTACT ============ */
.contact { text-align: center; padding: clamp(20px, 4vw, 60px) 0; }
.contact__title { font-size: clamp(2.2rem, 5.6vw, 4.2rem); line-height: 1.12; margin-bottom: 56px; }
.contact__title .accent { color: var(--accent); }
.contact__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.contact__email a { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); transition: color 0.3s ease; }
.contact__email a:hover { color: var(--ink); }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg-2); }
.footer__inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 26px; margin-left: auto; }
.footer__links a { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); transition: color 0.3s ease; }
.footer__links a:hover { color: var(--ink); }
.footer__copy { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-faint); }

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform, filter;
}
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }

/* section index underline */
.section__index { display: inline-block; position: relative; padding-bottom: 8px; }
.section__index::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.8s var(--ease) 0.25s;
}
.reveal.is-visible .section__index::after { width: 100%; }
.card:hover .card__num,
.credit:hover .credit__num { color: var(--ink); }
.step:hover .step__index { transform: translateY(-2px); }
.step__index { transition: transform 0.3s var(--ease); }

/* link underline draw */
.footer__links a,
.contact__email a,
.menu__foot a,
.research__partner a,
.research__footer-note a {
  position: relative;
}
.footer__links a::after,
.contact__email a::after,
.menu__foot a::after,
.research__partner a::after,
.research__footer-note a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.3s var(--ease);
}
.footer__links a:hover::after,
.contact__email a:hover::after,
.menu__foot a:hover::after,
.research__partner a:hover::after,
.research__footer-note a:hover::after { width: 100%; }

/* title hover micro-interaction */
.card__title, .credit__title, .feature__title, .step__title { transition: color 0.3s ease; }
.card:hover .card__title, .credit:hover .credit__title,
.feature:hover .feature__title, .step:hover .step__title { color: var(--ink-dim); }

/* ============ LIVING BACKGROUND (3D scene across the whole page) ============ */
main { position: relative; z-index: 1; }
.section--alt, .marquee, .footer { background: rgba(16, 16, 13, 0.35); }
.card, .feature, .step, .credit, .pillar, .refs, .timeline__stage, .faq__item { background: rgba(13, 13, 11, 0.5); }
.card:hover, .feature:hover, .step:hover, .credit:hover { background: rgba(20, 20, 17, 0.5); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 60px; }
  .hero__media { max-width: 560px; }
  .cards, .features, .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .credits, .pillars { grid-template-columns: repeat(2, 1fr); }
  .about__cols { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero { padding: 120px 0 80px; }
  .hero__ghost { font-size: 11rem; }
  .cards, .features, .steps, .credits, .pillars, .metrics__grid { grid-template-columns: 1fr; }
  .credit { grid-template-columns: 1fr; gap: 8px; align-items: start; }
  .metric { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .hero__badge--top { left: -8px; }
  .hero__badge--bottom { right: -6px; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 13px 12px; font-size: 0.6rem; }
  .research__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .timeline__track { margin-bottom: 28px; }
  .timeline__label { font-size: 0.58rem; }
  .timeline__year { font-size: 0.58rem; }
  .timeline__dot { width: 14px; height: 14px; }
  .timeline__track::before, .timeline__fill { top: 7px; }
  .timeline__controls { gap: 14px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__links { margin-left: 0; flex-wrap: wrap; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cursor { display: none; }
}
