/* ==========================================================================
   Empower Tribe — bespoke design system
   Doctrine: CREA-DIGI.DesignPhilosophy, CREA-BRAN.BrandDesignDoctrine
   Palette warm + living. Inter. Sentence case. The organism breathes.
   "I am a warm room where creative people build things."
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------- design tokens */
:root {
  /* warm palette — doctrine §25.2 */
  --ink: #1a1714;          /* warm black */
  --bg: #fafaf9;           /* near-neutral warm white */
  --surface: #ffffff;      /* clean card white */
  --surface-warm: #fffdfb; /* barely-warm surface */
  --stone: #f2efea;        /* warm section alt */
  --stone-deep: #ebe7e0;

  --red: #e7000b;          /* Empower Red — the heartbeat, <3% of surface */
  --red-deep: #b80009;
  --red-tint: #fbe6e6;
  --amber: #ffe0b2;        /* warm amber — held breath / highlight */
  --amber-deep: #e8961e;
  --green: #c8e6c9;        /* soft green — growth */
  --green-deep: #3f7a45;

  /* warm-shifted neutrals (derived from ink) */
  --ink-90: rgba(26, 23, 20, 0.90);
  --ink-70: rgba(26, 23, 20, 0.68);
  --ink-55: rgba(26, 23, 20, 0.55);
  --ink-40: rgba(26, 23, 20, 0.40);
  --ink-14: rgba(26, 23, 20, 0.14);
  --ink-08: rgba(26, 23, 20, 0.08);
  --line: rgba(26, 23, 20, 0.10);

  --on-dark: #fafaf9;
  --on-dark-70: rgba(250, 250, 249, 0.72);
  --on-dark-45: rgba(250, 250, 249, 0.45);

  /* warm shadows (borderless cards) */
  --shadow-sm: 0 1px 2px rgba(26,23,20,.04), 0 3px 10px rgba(26,23,20,.05);
  --shadow-md: 0 6px 16px rgba(26,23,20,.06), 0 16px 40px rgba(26,23,20,.07);
  --shadow-lg: 0 10px 30px rgba(26,23,20,.08), 0 30px 70px rgba(26,23,20,.10);
  --shadow-red: 0 8px 26px rgba(231,0,11,.28);

  /* radius */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 26px;
  --pill: 999px;

  /* type */
  --sans: "Inter", -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.7rem, 6.4vw, 5rem);
  --fs-h2: clamp(1.9rem, 4vw, 3.15rem);
  --fs-h3: clamp(1.3rem, 2vw, 1.7rem);
  --fs-lead: clamp(1.08rem, 1.5vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* rhythm */
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --sec-y: clamp(4.5rem, 9vw, 8.5rem);
  --maxw: 1200px;
  --maxw-narrow: 820px;

  /* motion — the organism breathes */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;
}

/* --------------------------------------------------------------- reset/base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1, "cv08" 1, "ss03" 1;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2.5px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------- typography */
h1, h2, h3, h4 { line-height: 1.08; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.display {
  font-size: var(--fs-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.h2 { font-size: var(--fs-h2); font-weight: 500; letter-spacing: -0.025em; }
.h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-70); font-weight: 400; }
.muted { color: var(--ink-55); }
strong, b { font-weight: 600; }
em { font-style: italic; }

/* section kicker — sentence case, tracked, red heartbeat dot */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase; /* label only — micro-legend, not a heading */
  color: var(--red);
  margin-bottom: 1.1rem;
}
.kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(231,0,11,.5);
  animation: pulse 1s var(--ease-out) infinite; /* 60 bpm — resting heart rate */
}
.kicker.on-dark { color: #fff; }
.kicker.on-dark::before { background: var(--red); }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(231,0,11,.45); }
  70%  { box-shadow: 0 0 0 9px rgba(231,0,11,0); }
  100% { box-shadow: 0 0 0 0 rgba(231,0,11,0); }
}

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.narrow { max-width: var(--maxw-narrow); }
section { padding-block: var(--sec-y); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p.lead { margin-top: 1.1rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-grid .section-head { margin-bottom: 0; max-width: 34ch; }
.about-grid .textlink { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.6rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3rem); } .about-grid .section-head { max-width: none; } }
.bg-stone { background: var(--stone); }
.bg-ink { background: var(--ink); color: var(--on-dark); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: var(--on-dark); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.95em 1.6em;
  border-radius: var(--pill);
  font-weight: 600; font-size: var(--fs-sm);
  letter-spacing: -0.01em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 1.15em; height: 1.15em; transition: transform .3s var(--ease); }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 12px 34px rgba(231,0,11,.34); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-14); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.btn-ghost.on-dark { color: #fff; box-shadow: inset 0 0 0 1.5px var(--on-dark-45); }
.btn-ghost.on-dark:hover { box-shadow: inset 0 0 0 1.5px #fff; background: rgba(255,255,255,.06); }
.btn-lg { padding: 1.1em 2em; font-size: var(--fs-body); }

.textlink {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; color: var(--red);
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s var(--ease);
}
.textlink svg { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.textlink:hover { background-size: 100% 1.5px; }
.textlink:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem var(--pad-x);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav.solid {
  background: rgba(250,250,249,.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: .8rem;
}
.nav__logo { height: 26px; width: auto; transition: opacity .3s; }
.nav__logo--light { display: none; }
.nav.solid .nav__logo--dark { display: none; }
.nav.solid .nav__logo--light { display: block; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-size: var(--fs-sm); font-weight: 500; color: var(--on-dark-70);
  transition: color .25s;
}
.nav.solid .nav__links a { color: var(--ink-70); }
.nav__links a:hover { color: #fff; }
.nav.solid .nav__links a:hover { color: var(--ink); }
.nav__cta { margin-left: .5rem; }
.nav__links a.nav__cta,
.nav.solid .nav__links a.nav__cta,
.nav__links a.nav__cta:hover { color: #fff; }
.nav__burger { display: none; width: 26px; height: 20px; position: relative; }
.nav__burger span { position: absolute; left: 0; height: 2px; width: 100%; background: currentColor; transition: transform .3s var(--ease), opacity .3s; border-radius: 2px; }
.nav__burger span:nth-child(1) { top: 0; }
.nav__burger span:nth-child(2) { top: 9px; }
.nav__burger span:nth-child(3) { top: 18px; }
.nav { color: #fff; }
.nav.solid { color: var(--ink); }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-block: 8rem 4rem;
  color: var(--on-dark);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: kenburns 26s ease-out both; }
}
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__media::after { /* warm cinematic scrim — anchored left where the text lives */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,17,15,.9) 0%, rgba(20,17,15,.72) 32%, rgba(20,17,15,.32) 58%, rgba(20,17,15,.12) 78%, rgba(20,17,15,.36) 100%),
    linear-gradient(180deg, rgba(20,17,15,.55) 0%, rgba(20,17,15,.1) 30%, rgba(20,17,15,.25) 72%, rgba(20,17,15,.86) 100%);
}
.hero__inner { max-width: 780px; }
.hero .display { margin-bottom: 1.5rem; text-wrap: balance; color: #fff; text-shadow: 0 2px 30px rgba(20,17,15,.35); }
.hero .display .accent { color: #fff; position: relative; }
.hero__sub { font-size: clamp(1.12rem, 1.7vw, 1.45rem); font-weight: 400; color: rgba(255,255,255,.92); max-width: 560px; line-height: 1.5; text-shadow: 0 2px 20px rgba(20,17,15,.4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--on-dark-70); font-size: var(--fs-xs); letter-spacing: .1em;
}
.hero__scroll svg { width: 22px; height: 22px; animation: bob 2s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* -------------------------------------------------------------- belief cards */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--surface);
  border-radius: var(--r);
  padding: clamp(1.5rem, 2.2vw, 2.1rem);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--red-tint); color: var(--red);
  margin-bottom: 1.2rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--ink-70); font-size: var(--fs-sm); line-height: 1.6; }

/* value strip (belief) */
.beliefs .card__icon { background: linear-gradient(135deg, var(--red-tint), #fff); width: 44px; height: 44px; margin-bottom: 1rem; }
.beliefs .card { padding: 1.5rem 1.35rem; }
.beliefs .card h3 { font-size: 1.02rem; line-height: 1.28; letter-spacing: -0.005em; margin-bottom: .5rem; }
.beliefs .card p { font-size: .875rem; line-height: 1.5; }

/* --------------------------------------------------------- ecosystem graph */
.eco { display: flex; flex-direction: column; align-items: center; gap: 0; }
.eco__node {
  position: relative;
  width: 100%; max-width: 720px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1.5rem, 3vw, 2.6rem);
  text-align: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.eco__node:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.eco__node .tier { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--red); }
.eco__node .name { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -.02em; margin: .35rem 0 .5rem; }
.eco__node .desc { color: var(--ink-70); font-size: var(--fs-sm); max-width: 52ch; margin-inline: auto; }
.eco__node .role { display: inline-block; margin-top: .9rem; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-55); background: var(--stone); padding: .4em 1em; border-radius: var(--pill); }
.eco__connector { width: 2px; height: clamp(30px, 5vw, 54px); background: var(--ink-14); position: relative; }
.eco__connector::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--red), rgba(231,0,11,.22)); transform: scaleY(0); transform-origin: top; transition: transform .7s var(--ease) .12s; }
.eco__connector.in::before { transform: scaleY(1); }
.eco__connector::after { content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(231,0,11,.10); }
.eco__node.is-foundation { background: var(--ink); color: var(--on-dark); }
.eco__node.is-foundation .name { color: #fff; }
.eco__node.is-foundation .desc { color: var(--on-dark-70); }
.eco__node.is-foundation .role { background: rgba(255,255,255,.08); color: var(--on-dark-70); }
.eco__node.is-et { box-shadow: var(--shadow-lg), 0 0 0 1.5px rgba(231,0,11,.16); }
@media (prefers-reduced-motion: no-preference) {
  .eco__node.is-et { animation: etbreathe 4.8s var(--ease) infinite; }
}
@keyframes etbreathe {
  0%, 100% { box-shadow: var(--shadow-lg), 0 0 0 1.5px rgba(231,0,11,.16); }
  50% { box-shadow: var(--shadow-lg), 0 0 0 1.5px rgba(231,0,11,.34), 0 0 36px rgba(231,0,11,.10); }
}
.eco__logo { display: block; height: clamp(22px, 2.6vw, 30px); width: auto; max-width: min(300px, 82%); margin: .5rem auto .65rem; }

/* ------------------------------------------------------------- cycle 5.0 */
.cycle { counter-reset: step; }
.cycle__item { position: relative; padding-left: 4.2rem; }
.cycle__item .num {
  position: absolute; left: 0; top: 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: var(--surface); color: var(--red); box-shadow: var(--shadow-sm);
}
.cycle__item h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.cycle__item p { color: var(--ink-70); font-size: var(--fs-sm); }

/* ----------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem,2vw,2rem); }
.stat .num { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.bg-ink .stat .num { color: #fff; }
.stat .num .unit { color: var(--red); }
.stat .num .pre { color: var(--red); }
.stat .label { margin-top: .5rem; font-size: var(--fs-sm); color: var(--ink-55); }
.bg-ink .stat .label { color: var(--on-dark-70); }

/* video facade — lazy YouTube */
.video {
  position: relative; aspect-ratio: 16/9; border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow-lg); cursor: pointer; background: #000;
}
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .4s, transform .6s var(--ease); }
.video:hover img { opacity: .95; transform: scale(1.03); }
.video__play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.video__play span {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center;
  box-shadow: var(--shadow-red); transition: transform .3s var(--ease);
}
.video:hover .video__play span { transform: scale(1.08); }
.video__play svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.video__label { position: absolute; left: 1.1rem; bottom: 1rem; color: #fff; font-weight: 600; font-size: var(--fs-sm); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --------------------------------------------- human-centric AI (manifesto) */
.oath-sec { position: relative; overflow: hidden; }
.oath-sec::before {
  content: ""; position: absolute; top: -18%; left: 50%; transform: translateX(-50%);
  width: min(900px, 92vw); height: 620px; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(231,0,11,.16), transparent 72%);
}
.oath-sec .wrap { position: relative; z-index: 1; }
.oath { max-width: 860px; margin-inline: auto; text-align: center; }
.oath__title { color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.03; letter-spacing: -.03em; margin: 1.1rem 0 1.6rem; text-wrap: balance; }
.oath__lead { color: var(--on-dark); font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.55; max-width: 52ch; margin: 0 auto; text-wrap: balance; }
.oath__lead em { color: var(--red); font-style: normal; }
.oath__sub { color: var(--on-dark-45); margin-top: 1.4rem; font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem, 2.6vw, 2.4rem); margin-top: clamp(3rem, 6vw, 5rem); }
.pillar { border-top: 2px solid var(--red); padding-top: 1rem; }
.pillar__k { display: block; color: #fff; font-weight: 600; font-size: var(--fs-body); margin-bottom: .5rem; letter-spacing: -.01em; }
.pillar p { color: var(--on-dark-70); font-size: var(--fs-sm); line-height: 1.55; }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.6rem; } }
@media (max-width: 540px) { .pillars { grid-template-columns: 1fr; } }

/* ------------------------------------------------- living organism (graph) */
.organism {
  position: relative; display: grid;
  grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto auto;
  align-items: center; justify-items: center;
  gap: clamp(1.5rem, 3vw, 2.6rem) clamp(.5rem, 3vw, 3.5rem);
  max-width: 1000px; margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}
.organism__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.organism__lines line { stroke: var(--red); stroke-width: 1.4; stroke-opacity: .3; stroke-dasharray: 5 7; animation: signalflow 2.4s linear infinite; }
@keyframes signalflow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -12; } }
.organism__core {
  grid-area: 2 / 2; position: relative; z-index: 3;
  width: clamp(116px, 15vw, 164px); aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; text-align: center;
  box-shadow: var(--shadow-lg), 0 0 0 1.5px rgba(231,0,11,.25);
}
.organism__core-label { font-weight: 600; font-size: var(--fs-sm); line-height: 1.18; letter-spacing: -.01em; }
.organism__core-pulse { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--red); animation: corepulse 3.6s var(--ease-out) infinite; }
@keyframes corepulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }
.organ { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 240px; }
.organ--nw { grid-area: 1 / 1; }
.organ--ne { grid-area: 1 / 3; }
.organ--sw { grid-area: 3 / 1; }
.organ--se { grid-area: 3 / 3; }
.organ__dot {
  width: clamp(56px, 6.5vw, 74px); aspect-ratio: 1; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow-md);
  display: grid; place-items: center; margin-bottom: .9rem;
  animation: breathe 4.6s var(--ease) infinite; animation-delay: calc(var(--i) * .55s);
}
.organ__dot svg { width: 42%; height: 42%; stroke: var(--red); }
.organ__text h3 { font-size: 1.12rem; letter-spacing: -.01em; margin-bottom: .3rem; }
.organ__text p { font-size: var(--fs-sm); color: var(--ink-70); line-height: 1.5; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@media (max-width: 680px) {
  .organism { grid-template-columns: 1fr; gap: 1.7rem; max-width: 400px; }
  .organism__lines { display: none; }
  .organism__core, .organ--nw, .organ--ne, .organ--sw, .organ--se { grid-area: auto; }
  .organism__core { margin-bottom: .4rem; }
  .organ { max-width: 100%; }
}

/* organism life-stages */
.lifestages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .55rem 0; max-width: 800px; margin: clamp(3rem, 6vw, 4.5rem) auto 0; }
.lifestages li { display: flex; align-items: center; }
.lifestages li span { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); font-size: var(--fs-sm); font-weight: 600; color: var(--ink); white-space: nowrap; }
.lifestages li:not(:last-child)::after { content: "\2192"; margin: 0 .55rem; color: var(--red); font-weight: 700; }
.lifestages li:last-child span { background: var(--ink); color: #fff; border-color: var(--ink); }
.lifestages__cap { text-align: center; max-width: 54ch; margin: 1.1rem auto 0; color: var(--ink-55); font-size: var(--fs-sm); }

/* ---------------------------------------------------- what we build (stack) */
.stack-list { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; border-top: 1px solid var(--line); }
.stack-item {
  display: grid; grid-template-columns: auto minmax(150px, .9fr) 1.9fr;
  gap: clamp(1rem, 4vw, 3.5rem); align-items: baseline;
  padding: clamp(1.5rem, 3vw, 2.4rem) 0; border-bottom: 1px solid var(--line);
  transition: padding-left .45s var(--ease);
}
.stack-item:hover { padding-left: clamp(.4rem, 1.4vw, 1.1rem); }
.stack-item__n { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 600; color: var(--red); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stack-item__name { font-size: clamp(1.25rem, 2.2vw, 1.8rem); letter-spacing: -.02em; line-height: 1.15; }
.stack-item__desc { color: var(--ink-70); font-size: var(--fs-body); line-height: 1.6; max-width: 56ch; }
@media (max-width: 760px) {
  .stack-item { grid-template-columns: auto 1fr; gap: .3rem 1.1rem; }
  .stack-item__desc { grid-column: 1 / -1; margin-top: .5rem; }
}

/* --------------------------------------------------------- heritage strip */
.htrack-wrap { position: relative; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.htrack {
  display: flex; gap: clamp(.9rem, 1.6vw, 1.4rem); list-style: none;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: var(--pad-x);
  padding: .5rem var(--pad-x) 1.5rem; margin: 0;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.htrack::-webkit-scrollbar { display: none; }
.htrack:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-sm); }
.hcard { scroll-snap-align: start; flex: 0 0 clamp(180px, 20vw, 224px); position: relative; }
.hcard__img { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); display: grid; place-items: center; }
.hcard__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.hcard:hover .hcard__img img { transform: scale(1.05); }
.hcard__img--mark { background: var(--surface); box-shadow: var(--shadow-md), 0 0 0 1.5px rgba(231,0,11,.35); }
.hcard__img--mark img { width: 66%; height: auto; object-fit: contain; mix-blend-mode: normal; }
.hcard__year { position: relative; display: block; margin-top: 1.4rem; padding-top: 1.1rem; font-weight: 700; color: var(--red); font-size: var(--fs-sm); letter-spacing: .02em; }
.hcard__year::before { content: ""; position: absolute; top: 0; left: 0; right: calc(-1 * clamp(.9rem, 1.6vw, 1.4rem)); height: 2px; background: var(--ink-14); }
.hcard:last-child .hcard__year::before { right: 0; }
.hcard__year::after { content: ""; position: absolute; top: -4px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 3px var(--red), 0 0 0 4px var(--stone); }
.hcard--now .hcard__year { color: var(--ink); }
.hcard--now .hcard__year::after { box-shadow: inset 0 0 0 5px var(--red), 0 0 0 4px var(--stone); }
.hcard__label { display: block; margin-top: .3rem; font-size: var(--fs-sm); font-weight: 500; color: var(--ink); line-height: 1.3; }
.htrack-wrap::before, .htrack-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(1.5rem, 5vw, 4rem); z-index: 2; pointer-events: none; }
.htrack-wrap::before { left: 0; background: linear-gradient(90deg, var(--stone), transparent); }
.htrack-wrap::after { right: 0; background: linear-gradient(270deg, var(--stone), transparent); }
.htrack__nav { position: absolute; top: calc(50% - 2.2rem); transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-md); display: grid; place-items: center; color: var(--ink); transition: transform .25s var(--ease), background .25s, color .25s; }
.htrack__nav:hover { background: var(--ink); color: #fff; transform: translateY(-50%) scale(1.06); }
.htrack__nav svg { width: 22px; height: 22px; }
.htrack__nav--prev { left: clamp(.4rem, 1.5vw, 1rem); }
.htrack__nav--next { right: clamp(.4rem, 1.5vw, 1rem); }
@media (max-width: 700px) { .htrack__nav { display: none; } }

/* ----------------------------------------------------------------- brands */
.brands { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(.7rem, 1.1vw, 1rem); width: min(1480px, calc(100vw - 2.5rem)); position: relative; left: 50%; transform: translateX(-50%); }
.brand {
  position: relative; display: flex; flex-direction: column; gap: 1rem;
  background: var(--surface); border-radius: var(--r); padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  min-height: 164px;
}
.brand:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.brand__logo { height: clamp(42px, 3vw, 44px); width: auto; max-width: 100%; object-fit: contain; object-position: left center; transition: transform .35s var(--ease); }
.brand:hover .brand__logo { transform: translateY(-2px) scale(1.02); }
.brand__desc { font-size: var(--fs-xs); color: var(--ink-55); line-height: 1.5; margin-top: .1rem; }
.brand__go { position: absolute; top: 1.3rem; right: 1.3rem; color: var(--ink-40); transition: color .3s, transform .3s var(--ease); }
.brand:hover .brand__go { color: var(--red); transform: translate(2px, -2px); }
.brand__go svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------- CTA/invite */
.invite { text-align: center; }
.invite .display { text-wrap: balance; margin-inline: auto; max-width: 15ch; }
.invite__lines { margin: 1.6rem auto 2.4rem; max-width: 44ch; color: var(--on-dark-70); font-size: var(--fs-lead); line-height: 1.6; }
.invite__lines b { color: #fff; font-weight: 600; }
.invite__actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ----------------------------------------------------------------- footer */
.footer { background: var(--ink); color: var(--on-dark-70); padding-block: clamp(3.5rem,6vw,5rem) 2.5rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer__logo { height: 30px; margin-bottom: 1.2rem; }
.footer__brandline { max-width: 34ch; font-size: var(--fs-sm); line-height: 1.6; }
.footer h3, .footer h4 { color: #fff; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer__col a { display: block; font-size: var(--fs-sm); color: var(--on-dark-70); padding: .3rem 0; transition: color .25s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--on-dark-70); }
.footer__bottom .manifesto { color: var(--on-dark-70); }

/* --------------------------------------------------------- reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* back to top */
.totop {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-red);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s;
}
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--red-deep); transform: translateY(-3px); }
.totop svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .grid-4, .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .brands { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav__links { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.4rem; background: var(--bg); padding: 2rem; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .4s var(--ease); }
  .nav__links.open { transform: none; }
  .nav__links a { color: var(--ink) !important; font-size: 1.15rem; }
  .nav__burger { display: block; }
  .nav__cta { display: none; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .beliefs.grid-5, .grid-3.split { grid-template-columns: 1fr; }
  .brands { grid-template-columns: 1fr; }
  .split-2 { grid-template-columns: 1fr !important; }
  .hero { min-height: 92svh; }
  .tl-item { flex-direction: column; gap: .85rem; }
  .tl-item__media { width: 100%; max-width: 340px; aspect-ratio: 16 / 9; }
  .eco__logo { max-width: 90%; }
}
@media (max-width: 460px) {
  .brands { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* split helpers */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split-2.wide-left { grid-template-columns: 1.15fr .85fr; }
.gap-lg { gap: clamp(1.4rem, 3vw, 2.4rem); }
.mt-2 { margin-top: 1.4rem; } .mt-3 { margin-top: 2rem; } .mt-4 { margin-top: 2.8rem; }
.flow > * + * { margin-top: 1.1rem; }

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .kicker::before { animation: none; }
  .hero__scroll svg { animation: none; }
  .hero__media video { display: none; }
}
