/* ============================================================
   NUVORA LABS — Digital Rebirth as a Service
   Design system: "Ignition" v2
   ============================================================ */

@font-face {
  font-family: "Nasalization";
  src: url("../assets/fonts/NasalizationRg.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Brand */
  --red: #c60001;
  --red-bright: #ff2a1f;
  --red-deep: #7a0001;
  --black: #000000;

  /* Surfaces */
  --ink: #0a0607;
  --ink-raise: #120a0b;
  --ink-line: rgba(255, 255, 255, 0.08);
  --bone: #f3ede4;
  --bone-line: rgba(10, 6, 7, 0.12);

  /* Text */
  --text: #efe9e4;
  --text-dim: rgba(239, 233, 228, 0.6);
  --text-faint: rgba(239, 233, 228, 0.38);
  --text-dark: #16090a;
  --text-dark-dim: rgba(22, 9, 10, 0.68);

  /* Type */
  --font-display: "Nasalization", "Instrument Sans", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, sans-serif;

  /* Motifs */
  --ember-grad: linear-gradient(135deg, var(--red-bright) 0%, var(--red) 45%, var(--red-deep) 100%);
  --rule-grad: linear-gradient(90deg, var(--red) 0%, rgba(198, 0, 1, 0) 100%);

  /* Themeable tokens (dark defaults) */
  --text-strong: #ffffff;
  --wm-stroke: rgba(255, 255, 255, 0.045);
  --nav-glass: rgba(10, 6, 7, 0.72);
  --menu-bg: rgba(5, 3, 3, 0.96);
  --ghost-bg: rgba(255, 255, 255, 0.02);
  --stat-hi: #ffffff;
  --stat-lo: rgba(239, 233, 228, 0.55);
  --why-bg: #f3ede4;
  --why-text: #16090a;
  --why-text-dim: rgba(22, 9, 10, 0.68);
  --why-line: rgba(10, 6, 7, 0.12);
  --why-accent: #c60001;
  --why-faint: rgba(22, 9, 10, 0.4);

  --container: 1200px;
  --nav-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.87, 0, 0.13, 1);
}

/* ---------- Light theme: after the fire, the light ---------- */
html[data-theme="light"] {
  --ink: #f5efe7;
  --ink-raise: #ece2d2;
  --ink-line: rgba(22, 9, 11, 0.12);
  --text: #1a0c0e;
  --text-dim: rgba(26, 12, 14, 0.68);
  --text-faint: rgba(26, 12, 14, 0.42);
  --text-strong: #0e0608;
  --wm-stroke: rgba(22, 9, 11, 0.055);
  --nav-glass: rgba(245, 239, 231, 0.78);
  --menu-bg: rgba(245, 239, 231, 0.97);
  --ghost-bg: rgba(22, 9, 11, 0.03);
  --stat-hi: #1a0c0e;
  --stat-lo: rgba(26, 12, 14, 0.45);
  --why-bg: #140a0c;
  --why-text: #efe9e4;
  --why-text-dim: rgba(239, 233, 228, 0.62);
  --why-line: rgba(255, 255, 255, 0.1);
  --why-accent: #ff2a1f;
  --why-faint: rgba(239, 233, 228, 0.4);
}
html[data-theme="light"] .nav__logo img,
html[data-theme="light"] .hero__eyebrow-icon,
html[data-theme="light"] .manifesto__sig img { filter: invert(1); }
html[data-theme="light"] .marquee__v { filter: none; }

/* brief global ease while switching themes */
html.theming, html.theming body,
html.theming *, html.theming *::before, html.theming *::after {
  transition: background-color 0.5s ease, color 0.5s ease,
              border-color 0.5s ease, fill 0.5s ease !important;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* the ordinary pointer, tinted in brand red (Chromium/Firefox; Safari
     ignores SVG cursors and falls back to the system arrow). Links and
     buttons keep their native pointer/text cursors via the UA sheet. */
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M2 2 L2 20 L7 15 L10.5 22 L13.2 20.8 L9.9 14.3 L16 14 Z' fill='%23c60001' stroke='%23ffffff' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") 2 2, auto;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--red); color: #fff; }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ============================================================
   IGNITION PRELOADER
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: #050303;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: loader-exit 0.9s var(--ease-expo) 1.9s forwards;
}
.loader.is-skipped { display: none; }
.loader.is-done { display: none; }
.loader__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.loader__mark {
  height: 64px;
  width: auto;
  animation: mark-ignite 1.2s steps(1) forwards;
  filter: drop-shadow(0 0 24px rgba(255, 42, 31, 0.6));
}
@keyframes mark-ignite {
  0% { opacity: 0; }
  8% { opacity: 1; }
  14% { opacity: 0.2; }
  22% { opacity: 1; }
  30% { opacity: 0.4; }
  38% { opacity: 1; }
  52% { opacity: 0.7; }
  60% { opacity: 1; }
}
.loader__rule {
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, var(--red-bright), var(--red) 55%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: rule-draw 0.9s var(--ease-out) 0.55s forwards;
}
@keyframes rule-draw { to { transform: scaleX(1); } }
.loader__word {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(239, 233, 228, 0.38);
  opacity: 0;
  animation: word-in 0.8s var(--ease-out) 0.9s forwards;
}
@keyframes word-in { to { opacity: 1; } }
@keyframes loader-exit {
  to { transform: translateY(-100%); }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 5000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
/* the bespoke cursor is now used for one thing only: the live flame over
   the hero title (until the first rebirth). Everywhere else it's the native
   brand-tinted arrow. */
.cursor.is-fire { opacity: 1; }
.cursor__dot, .cursor__ring {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__ring { display: none; }
.cursor.is-fire .cursor__dot {
  width: 7px; height: 7px;
  background: transparent;
}
.cursor.is-fire .cursor__dot::after {
  content: "";
  position: absolute;
  left: -15px;
  top: -33px;
  width: 30px;
  height: 38px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='38' viewBox='0 0 30 38'%3E%3Cdefs%3E%3ClinearGradient id='f' x1='0' y1='1' x2='0' y2='0'%3E%3Cstop offset='0' stop-color='%23ffdd55'/%3E%3Cstop offset='.5' stop-color='%23ff6a1f'/%3E%3Cstop offset='1' stop-color='%23c60001'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23f)' d='M15 2 C11 10 5 13 6 22 C7 30 23 30 24 22 C24.6 16 19 15 19 9 C17 13 14 12 15 2 Z'/%3E%3Cpath fill='%23ffe9a8' d='M15 15 C13 19 11 21 12 25 C13 29 17 29 18 25 C18.6 21.5 15 20 16 15 C15 17.5 14 17.5 15 15 Z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 7px rgba(255, 90, 25, 0.75));
  transform-origin: 50% 100%;
  animation: cursor-flame 0.42s ease-in-out infinite;
}
@keyframes cursor-flame {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(0.9, 1.08) translateY(-1px); }
}
/* The hero title ignites the pyre until the first rebirth (.pyre-spent).
   Until then it reads as clickable; where the animated flame can render
   (html.has-flame) we hide the native cursor so only the flame shows. */
.hero:not(.pyre-spent) .hero__title { cursor: pointer; }
html.has-flame .hero:not(.pyre-spent) .hero__title { cursor: none; }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ============================================================
   CHAPTER RAIL
   ============================================================ */
.rail {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.rail a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-faint);
  transition: color 0.35s;
}
.rail i {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.35s, transform 0.45s var(--ease-out), filter 0.45s;
}
.rail i svg {
  width: 16px;
  height: 16px;
  display: block;
}
.rail span {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
  white-space: nowrap;
}
.rail a:hover span, .rail a.is-active span { opacity: 1; transform: translateX(0); }
.rail a:hover i { transform: scale(1.12); }
.rail a.is-active { color: var(--red-bright); }
.rail a.is-active i {
  transform: scale(1.35);
  filter: drop-shadow(0 0 7px currentColor);
}
.rail.rail--light a { color: var(--why-faint); }
.rail.rail--light a.is-active { color: var(--why-accent); }
@media (max-width: 1280px) { .rail { display: none; } }

/* ---------- Shared: labels, titles, rules ---------- */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.section-label__rule {
  flex: 0 1 180px;
  height: 1px;
  background: var(--rule-grad);
}
.section-label--dark { color: var(--why-accent); }

.section-head { margin-bottom: clamp(48px, 7vw, 88px); position: relative; z-index: 1; }

.section-title {
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 400;
  line-height: 1.04;
  text-transform: lowercase;
  letter-spacing: -0.01em;
}
.section-title em,
.page-title em {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  background: linear-gradient(115deg, var(--red-bright), var(--red) 60%, var(--red-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}
.section-title--dark { color: var(--why-text); }
.section-sub {
  margin-top: 24px;
  max-width: 46ch;
  color: var(--text-dim);
}

.tail-period { color: var(--red-bright); }

/* Act ghost numerals */
.act-ghost {
  position: absolute;
  top: clamp(30px, 6vw, 80px);
  right: clamp(8px, 4vw, 60px);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(9rem, 22vw, 20rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 42, 31, 0.14);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}
.act-ghost--dark { -webkit-text-stroke: 1px rgba(198, 0, 1, 0.18); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: box-shadow 0.35s var(--ease-out),
              background-color 0.35s, border-color 0.35s, color 0.35s;
  will-change: transform;
}
.btn--primary {
  color: #fff;
  background: var(--ember-grad);
  box-shadow: 0 0 0 1px rgba(255, 42, 31, 0.35), 0 8px 32px -8px rgba(198, 0, 1, 0.55);
}
.btn--primary:hover {
  box-shadow: 0 0 0 1px rgba(255, 42, 31, 0.6), 0 16px 48px -8px rgba(255, 42, 31, 0.55);
}
.btn--ghost {
  color: var(--text);
  border: 1px solid var(--ink-line);
  background: var(--ghost-bg);
}
.btn--ghost:hover {
  border-color: rgba(255, 42, 31, 0.5);
  color: var(--text-strong);
}
.btn--lg { padding: 22px 44px; font-size: 15px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background-color 0.4s, backdrop-filter 0.4s, transform 0.5s var(--ease-out);
}
.nav.is-scrolled {
  background: var(--nav-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 clamp(20px, 5vw, 48px);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo img { height: 30px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav__links a:not(.nav__cta) {
  position: relative;
  color: var(--text-dim);
  transition: color 0.3s;
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--red-bright);
  transition: right 0.4s var(--ease-out);
}
.nav__links a:not(.nav__cta):hover { color: var(--text-strong); }
.nav__links a:not(.nav__cta):hover::after { right: 0; }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border: 1px solid rgba(255, 42, 31, 0.45);
  border-radius: 999px;
  color: var(--text-strong);
  transition: background-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.nav__cta:hover {
  background: rgba(198, 0, 1, 0.25);
  box-shadow: 0 0 24px -4px rgba(255, 42, 31, 0.5);
}
.nav__cta-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 10px 1px var(--red-bright);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.7); }
}
.nav__rule {
  height: 1px;
  background: var(--rule-grad);
  opacity: 0;
  transition: opacity 0.4s;
}
.nav.is-scrolled .nav__rule { opacity: 0.7; }

.nav__right {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 32px);
}

.theme-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink-line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: color 0.3s, border-color 0.3s;
}
.theme-toggle:hover {
  color: var(--red-bright);
  border-color: rgba(255, 42, 31, 0.5);
}
.theme-toggle svg {
  position: absolute;
  width: 16px;
  height: 16px;
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
}
.theme-toggle .tt-sun { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle .tt-moon { opacity: 0; transform: rotate(90deg) scale(0.4); }
html[data-theme="light"] .theme-toggle .tt-sun { opacity: 0; transform: rotate(-90deg) scale(0.4); }
html[data-theme="light"] .theme-toggle .tt-moon { opacity: 1; transform: rotate(0deg) scale(1); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 7px;
  padding: 8px;
}
.nav__burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 24px 120px;
  /* the hero is an interactive canvas, not a document — no text selection
     (a double-click ignites the pyre, it shouldn't highlight a word) */
  -webkit-user-select: none;
  user-select: none;
}
#embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero__glow {
  position: absolute;
  left: 50%;
  bottom: -38vh;
  margin-left: -65vw;
  width: 130vw;
  height: 80vh;
  background: radial-gradient(ellipse at center,
    rgba(255, 42, 31, 0.22) 0%,
    rgba(198, 0, 1, 0.13) 32%,
    rgba(122, 0, 1, 0.05) 55%,
    transparent 72%);
  z-index: 0;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1.15; }
}
.hero__watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -0.5em 0 0 -50vw;
  width: 100vw;
  font-family: var(--font-display);
  font-size: clamp(7rem, 24vw, 22rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--wm-stroke);
  letter-spacing: 0.04em;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
  text-align: center;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: clamp(32px, 5vh, 56px);
}
.hero__eyebrow-icon { height: 16px; width: auto; opacity: 0.9; }

.hero__title { font-weight: 400; }
.hero__title-line { display: block; }
.hero__title-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 5.4vw, 4rem);
  line-height: 1;
  color: var(--text-dim);
}
.hero__title-display {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12.5vw, 10.5rem);
  line-height: 1.02;
  text-transform: lowercase;
  letter-spacing: 0.005em;
  margin: 0.04em 0;
  filter: drop-shadow(0 0 42px rgba(198, 0, 1, 0.4));
}
/* per-letter ignition */
.hl {
  display: inline-block;
  background: linear-gradient(180deg, #ff4a3a 0%, var(--red) 42%, #4a0001 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.js .hl {
  opacity: 0;
  transform: translateY(0.55em) rotate(4deg);
  animation: letter-rise 0.9s var(--ease-out) calc(var(--hero-delay, 0.2s) + 0.2s + var(--i) * 0.07s) forwards;
}
.js .hl.lit {
  opacity: 1;
  animation: none;
  transform: none;
  transition: transform 0.35s var(--ease-out);
}
.js .hl.lit:hover { transform: translateY(-0.07em); }

/* ---------- The pyre: rebirth burns, falls to ash, rises ---------- */
#pyre {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.hl { transition: filter 0.6s linear; }
.hl.hl--char { filter: brightness(0.3) saturate(0.25) contrast(0.9); }
/* lock the hover lift once the word is burning so sampled positions hold */
.js .hero__title-display.is-burning .hl.lit:hover { transform: none; }
.js .hl.hl--ashed {
  opacity: 0;
  animation: none;
  transform: none;
  transition: opacity 0.22s linear;
}
/* "Digital" / "as a Service." split into letters so they burn too */
.sl { display: inline-block; transition: filter 0.6s linear; }
.sl.hl--char { filter: brightness(0.3) saturate(0.25) contrast(0.9); }
.sl.hl--ashed { opacity: 0; transition: opacity 0.22s linear; }
.hero__title-display.reborn {
  filter: drop-shadow(0 0 30px rgba(255, 96, 60, 0.55)) drop-shadow(0 0 110px rgba(255, 42, 31, 0.4));
  animation: reborn-flash 1.8s var(--ease-out);
}
.hero__title-serif.reborn {
  color: var(--text);
  text-shadow: 0 0 26px rgba(255, 96, 60, 0.4);
  transition: color 0.9s var(--ease-out), text-shadow 0.9s var(--ease-out);
}
.hero__title-display.reborn .hl {
  background: linear-gradient(180deg, #ffe2ba 0%, #ff7a4d 34%, #ff2a1f 62%, #8a0301 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
@keyframes reborn-flash {
  0% { filter: drop-shadow(0 0 85px rgba(255, 190, 130, 0.95)) drop-shadow(0 0 170px rgba(255, 42, 31, 0.8)); }
  100% { filter: drop-shadow(0 0 30px rgba(255, 96, 60, 0.55)) drop-shadow(0 0 110px rgba(255, 42, 31, 0.4)); }
}
@keyframes letter-rise {
  0% { opacity: 0; transform: translateY(0.55em) rotate(4deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) rotate(0deg); }
}
.hero__title-tail { margin-top: 0.1em; }

.hero__sub {
  margin: clamp(28px, 4.5vh, 44px) auto 0;
  max-width: 56ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-dim);
}
.hero__actions {
  margin-top: clamp(32px, 5vh, 52px);
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__horizon {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  z-index: 3;
  background: linear-gradient(90deg,
    transparent 0%, rgba(255, 42, 31, 0.9) 30%,
    #ffb3ad 50%, rgba(255, 42, 31, 0.9) 70%, transparent 100%);
  box-shadow: 0 0 24px 2px rgba(255, 42, 31, 0.55);
}
.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, var(--red-bright));
  animation: drip 2.4s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes drip {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Marquee (tilted band) ---------- */
.marquee-band {
  position: relative;
  z-index: 5;
  margin: -34px 0;
  transform: rotate(-1.6deg);
}
.marquee {
  border-block: 1px solid var(--ink-line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--ink-raise);
  box-shadow: 0 18px 60px -30px rgba(198, 0, 1, 0.35);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee__seq {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee__seq span,
.marquee__seq a {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0 34px;
  white-space: nowrap;
  transition: color 0.3s;
}
.marquee__seq a:hover { color: var(--red-bright); }
.marquee__v {
  width: 18px; height: 18px;
  flex-shrink: 0;
  background: url("../assets/img/icon-color.png") center / contain no-repeat;
  filter: saturate(1.4) brightness(1.5);
}

/* ============================================================
   ACT I — MANIFESTO (scroll illumination)
   ============================================================ */
.manifesto {
  padding: clamp(130px, 17vw, 220px) 0;
  position: relative;
}
/* Desktop: the section pins while its choreography plays out — the extra
   height (--pin-run) is the scroll runway that scrubs the whole timeline */
@media (min-width: 1024px) {
  .js .manifesto {
    --pin-run: 420vh;
    height: calc(100vh + var(--pin-run));
    padding: 0;
  }
  .js .manifesto__pin {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
  }
  .js .manifesto__pin > .container { width: 100%; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .js .manifesto { height: auto; padding: clamp(130px, 17vw, 220px) 0; }
  .js .manifesto__pin { position: static; height: auto; display: block; }
}
.manifesto .section-label { margin-bottom: 48px; }
.manifesto__text {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.42;
  max-width: 24em;
  color: var(--text);
}
.manifesto__text .w { opacity: 0.16; transition: opacity 0.12s linear; }
.manifesto__text em {
  font-family: var(--font-serif);
  font-style: italic;
}

/* ---------- "renovations" — the italic settles in letter by letter ---------- */
.reno__letters { display: inline-block; }
.reno .rn {
  display: inline-block;
  text-align: center;
}
/* with JS the word starts in the plain body voice; each letter flips to the
   serif italic as the scroll sweep passes it (widths locked in JS so the
   sentence never reflows). No-JS keeps the final italic form. */
.js .reno .rn {
  font-family: var(--font-body);
  font-style: normal;
}
.js .reno .rn.on {
  font-family: var(--font-serif);
  font-style: italic;
}
.paint-word {
  position: relative;
  display: inline-block;
}
.paint-word::before {
  /* solid paint core that floods in beneath the final word swap */
  content: "";
  position: absolute;
  inset: 0.16em -0.14em 0.04em -0.14em;
  background: var(--red);
  border-radius: 0.14em;
  opacity: calc(var(--p4, 0) * 0.96);
  transition: opacity 0.12s linear;
}
.paint-stroke {
  position: absolute;
  left: -0.32em;
  right: -0.32em;
  height: 0.78em;
  pointer-events: none;
  transition: clip-path 0.12s linear, opacity 0.12s linear;
  clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0);
  /* strokes yield to the solid badge at the end */
  opacity: calc(1 - var(--p4, 0));
}
.paint-stroke path { fill: var(--red); }
.paint-stroke__main { opacity: 0.95; }
.paint-stroke__dry { opacity: 0.65; }
.paint-stroke__spat { opacity: 0.5; }
.paint-stroke--1 { top: -0.04em; transform: rotate(-2deg); --p: var(--p1, 0); }
.paint-stroke--2 { top: 0.36em; transform: rotate(1.6deg) scaleX(-1); --p: var(--p2, 0); }
.paint-stroke--3 { top: 0.74em; transform: rotate(-1.2deg); --p: var(--p3, 0); }
.paint-pain {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 500;
  opacity: var(--p4, 0);
  transform: scale(calc(0.85 + 0.15 * var(--p4, 0)));
  transition: opacity 0.12s linear, transform 0.12s linear;
  pointer-events: none;
}
html:not(.js) .paint-word { --p1: 1; --p2: 1; --p3: 1; --p4: 1; }

/* ---------- "different" — quiet ransom-note collage ---------- */
.ransom__letters { display: inline-block; }
.ransom .rl {
  display: inline-block;
  text-align: center;
  transition: transform 0.4s var(--ease-out), color 0.4s ease, background-color 0.4s ease;
}
/* each letter settles into its own cut-out as the collage assembles */
.ransom .rl:nth-child(1).on { transform: rotate(-2.5deg) translateY(-0.02em); }
.ransom .rl:nth-child(2).on { font-family: var(--font-serif); font-style: italic; transform: rotate(2deg); }
.ransom .rl:nth-child(3).on { font-weight: 600; transform: translateY(0.03em) rotate(1.5deg); }
.ransom .rl:nth-child(4).on { font-family: var(--font-serif); transform: rotate(-2deg) translateY(-0.03em); }
.ransom .rl:nth-child(5).on { background: color-mix(in srgb, var(--text) 9%, transparent); border-radius: 0.08em; transform: rotate(2deg); }
.ransom .rl:nth-child(6).on { font-style: italic; transform: translateY(0.025em); }
.ransom .rl:nth-child(7).on { color: var(--red-bright); font-family: var(--font-serif); font-style: italic; transform: rotate(-1.5deg); }
.ransom .rl:nth-child(8).on { font-weight: 600; transform: rotate(1.2deg) translateY(-0.02em); }
.ransom .rl:nth-child(9).on { font-family: var(--font-serif); transform: rotate(2.5deg) translateY(0.02em); }
html:not(.js) .ransom .rl { transition: none; }

/* ---------- hero: rotating adjective ---------- */
.rotate-vis {
  display: inline-block;
  white-space: nowrap;
  text-align: center;
}
.rw-text {
  padding: 0.14em 0.24em;
  border-radius: 5px;
  background-image: linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: color 0.3s ease, background-size 0.4s var(--ease-out);
}
.rw-text.lit {
  color: #fff;
  background-size: 100% 100%;
}
.rw-caret {
  /* always occupies its slot; only opacity toggles, so the centered word never shifts */
  display: inline-block;
  width: 1.5px;
  height: 1em;
  margin-left: 2px;
  background: var(--red-bright);
  vertical-align: -0.12em;
  opacity: 0;
  animation: cp-blink 0.85s steps(1) infinite;
}
.rw-caret.show { opacity: 1; }

/* ---------- "try" → "DO" retype ---------- */
.trydo-vis {
  display: inline-block;
  white-space: nowrap;
}
.trydo-text { display: inline-block; }
.trydo-text.caps { font-weight: 600; }
.trydo-text.hit { animation: trydo-hit 0.26s var(--ease-out); }
@keyframes trydo-hit {
  0% {
    transform: scale(1.35) translateY(-0.04em);
    color: var(--red-bright);
    text-shadow: 0 0 18px rgba(255, 42, 31, 0.55);
  }
  100% { transform: scale(1); }
}
.trydo-caret {
  display: none;
  width: 0.06em;
  height: 0.95em;
  margin-left: 0.05em;
  background: var(--red-bright);
  vertical-align: -0.08em;
  animation: cp-blink 0.85s steps(1) infinite;
}
.trydo-caret.show { display: inline-block; }

/* ---------- "organization" focus panel ---------- */
.company-panel {
  position: fixed;
  top: 50%;
  right: clamp(20px, 5vw, 90px);
  transform: translateY(-50%);
  width: min(330px, 32vw);
  padding: 16px 22px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--text) calc(var(--rect, 0) * 26%), transparent);
  background: color-mix(in srgb, var(--ink-raise) calc(var(--rect, 0) * 94%), transparent);
  box-shadow: 0 24px 60px rgba(0, 0, 0, calc(var(--rect, 0) * 0.25));
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s linear, visibility 0.25s linear;
}
.company-panel.active {
  opacity: var(--vis, 1);
  visibility: visible;
}
.company-panel__word {
  font-family: var(--font-body);
  font-size: 21px;
  color: var(--text);
  opacity: 0;
}
.company-panel.docked .company-panel__word { opacity: 1; }
.cp-your.has { margin-right: 0.3em; }
.cp-your-typed {
  background: var(--red);
  color: #fff;
  font-weight: 500;
  padding: 0.04em 0.14em;
  border-radius: 4px;
}
.cp-your-typed:empty { padding: 0; }
.cp-your-caret {
  display: none;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  background: var(--red-bright);
  vertical-align: text-bottom;
  animation: cp-blink 0.85s steps(1) infinite;
}
.cp-your-caret.show { display: inline-block; }
@keyframes cp-blink {
  50% { opacity: 0; }
}
.company-panel__body {
  position: relative;
  height: calc(var(--grow, 0) * 196px);
  margin-top: calc(var(--grow, 0) * 10px);
  overflow: hidden;
}
.cp-row {
  position: relative;
  height: 49px;
  display: flex;
  align-items: center;
}
.cp-skel {
  display: block;
  width: var(--w, 70%);
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--text) 10%, transparent) 25%,
    color-mix(in srgb, var(--text) 20%, transparent) 50%,
    color-mix(in srgb, var(--text) 10%, transparent) 75%
  );
  background-size: 200% 100%;
  animation: cp-shimmer 1.3s linear infinite;
  transition: opacity 0.3s ease;
}
@keyframes cp-shimmer {
  from { background-position: 130% 0; }
  to { background-position: -70% 0; }
}
.cp-item {
  position: absolute;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.cp-check {
  width: 14px;
  height: 14px;
  color: var(--red-bright);
  flex: 0 0 auto;
}
.cp-row.found .cp-skel { opacity: 0; }
.cp-row.found .cp-item { opacity: 1; transform: none; }
.cp-lens {
  position: absolute;
  width: 40px;
  height: 40px;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.2s linear;
  z-index: 2;
}
.cp-lens.show { opacity: 0.95; }
.cp-lens svg { width: 100%; height: 100%; }
.fly-word {
  position: fixed;
  left: 0;
  top: 0;
  font-family: var(--font-body);
  color: var(--text);
  z-index: 41;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}
@media (max-width: 1023px) {
  /* No room (or scroll choreography) for the fixed panel: render it as a
     static card in the flow of the manifesto, revealed when scrolled into
     view (JS adds .cp-inview), rows resolving skeleton -> item in a stagger. */
  .fly-word { display: none; }
  .company-panel {
    position: static;
    transform: none;
    width: min(340px, calc(100% - 48px));
    margin: 38px auto 0;
    opacity: 1;
    visibility: visible;
    --rect: 1;
    --grow: 1;
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }
  .company-panel__word { opacity: 1; }
  .cp-your { margin-right: 0.3em; }
  .cp-your-typed::before { content: "Your"; }
  .cp-your-typed:empty { padding: 0.04em 0.14em; }
  .cp-your-caret { display: none; }
  .cp-lens { display: none; }

  /* no-JS fallback: card sits in its final, fully-found state */
  .cp-skel { opacity: 0; }
  .cp-item { opacity: 1; transform: none; }

  /* with JS: hidden + shimmering skeletons until the card enters the viewport */
  .js .company-panel { opacity: 0; transform: translateY(26px); }
  .js .company-panel .cp-skel { opacity: 1; transition-delay: var(--cpd, 0s); }
  .js .company-panel .cp-item { opacity: 0; transform: translateY(7px); transition-delay: var(--cpd, 0s); }
  .cp-row:nth-child(1) { --cpd: 0.5s; }
  .cp-row:nth-child(2) { --cpd: 0.85s; }
  .cp-row:nth-child(3) { --cpd: 1.2s; }
  .cp-row:nth-child(4) { --cpd: 1.55s; }
  .js .company-panel.cp-inview { opacity: 1; transform: none; }
  .js .company-panel.cp-inview .cp-skel { opacity: 0; }
  .js .company-panel.cp-inview .cp-item { opacity: 1; transform: none; }
}
.manifesto__text strong .w {
  font-weight: 500;
  background: linear-gradient(115deg, var(--red-bright), var(--red) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.manifesto__sig {
  margin-top: 64px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.manifesto__sig img { height: 22px; width: auto; }
.manifesto__sig em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--red-bright);
  display: inline-block;
}
.js .manifesto__sig img,
.js .manifesto__sig .sig-line {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.js .manifesto__sig img.on,
.js .manifesto__sig .sig-line.on { opacity: 1; transform: none; }
.manifesto__sig em.beat { animation: sig-beat 0.72s var(--ease-out) 3 both; }
@keyframes sig-beat {
  0%, 100% { transform: scale(1); filter: none; }
  32% { transform: scale(1.2); filter: drop-shadow(0 0 14px rgba(255, 42, 31, 0.85)); }
  62% { transform: scale(0.99); filter: none; }
}

/* ---------- intelligence instead of habit ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.ii { font-weight: 500; }
.ii-done {
  background: linear-gradient(115deg, var(--red-bright), var(--red) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* the untyped tail keeps its layout slot but stays invisible, so typing
   never rewraps the paragraph */
.ii-rest { color: transparent; }
.ii-caret {
  display: none;
  width: 0.07em;
  height: 0.82em;
  background: var(--red-bright);
  margin: 0 0.05em 0 0.02em;
  vertical-align: -0.06em;
  animation: caret-blink 0.8s steps(1) infinite;
}
.ii-caret.show { display: inline-block; }
@keyframes caret-blink { 50% { opacity: 0; } }
.ii-habit {
  position: relative;
  background-image: linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: calc(var(--sel, 0) * 100%) 100%;
  transition: color 0.25s, opacity 0.35s;
}
.ii-habit.selected { color: #fff; }
.ii-habit::after {
  content: "";
  position: absolute;
  left: 0;
  top: 55%;
  height: 0.07em;
  width: calc(var(--strike, 0) * 100%);
  background: var(--red-bright);
  box-shadow: 0 0 8px rgba(255, 42, 31, 0.5);
}
.ii-habit.struck { opacity: 0.5; }

/* ============================================================
   ACT II — THE INSTRUMENTS
   ============================================================ */
.services {
  padding: clamp(90px, 12vw, 160px) 0 clamp(110px, 14vw, 180px);
  position: relative;
}
.insts {
  list-style: none;
  border-top: 1px solid var(--ink-line);
  position: relative;
  z-index: 1;
}
.inst {
  border-bottom: 1px solid var(--ink-line);
  position: relative;
  overflow: hidden;
}
.inst::before {
  /* hover flood */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(198, 0, 1, 0.12), rgba(198, 0, 1, 0.02) 60%, transparent);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.inst:hover::before, .inst.is-open::before { opacity: 1; }
.inst__head {
  width: 100%;
  display: grid;
  grid-template-columns: 90px 1fr auto 60px;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(26px, 3.6vw, 44px) clamp(20px, 5vw, 48px);
  max-width: calc(var(--container) + 0px);
  margin-inline: auto;
  text-align: left;
}
.inst__num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--red-bright);
}
.inst__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 3.4vw, 2.7rem);
  line-height: 1.15;
  text-transform: lowercase;
  color: var(--text);
  transition: color 0.35s, transform 0.5s var(--ease-out);
}
.inst:hover .inst__title, .inst.is-open .inst__title {
  color: var(--text-strong);
  transform: translateX(14px);
}
.inst__word {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  color: var(--red-bright);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.45s, transform 0.45s var(--ease-out);
  white-space: nowrap;
}
.inst:hover .inst__word, .inst.is-open .inst__word {
  opacity: 1;
  transform: translateX(0);
}

/* each word performs its own meaning on entry */
.inst[data-word="clarity"]:hover .inst__word,
.inst[data-word="clarity"].is-open .inst__word {
  animation: word-clarity 1.3s var(--ease-out) both;
}
@keyframes word-clarity {
  0% { opacity: 0; filter: blur(14px); }
  25% { opacity: 1; }
  100% { opacity: 1; filter: blur(0); }
}

.inst[data-word="fluency"]:hover .inst__word,
.inst[data-word="fluency"].is-open .inst__word {
  animation: word-fluency 0.95s var(--ease-out) both;
}
.inst[data-word="fluency"] .inst__word { transform-origin: right center; }
@keyframes word-fluency {
  0% { opacity: 0; transform: translateX(26px) scaleX(1.5); }
  100% { opacity: 1; transform: translateX(0) scaleX(1); }
}

.inst[data-word="velocity"]:hover .inst__word,
.inst[data-word="velocity"].is-open .inst__word {
  animation: word-velocity 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes word-velocity {
  0% { opacity: 0; transform: translateX(110px) skewX(-18deg); }
  55% { opacity: 1; transform: translateX(-7px) skewX(5deg); }
  100% { opacity: 1; transform: translateX(0) skewX(0); }
}

.inst[data-word="fuel"]:hover .inst__word,
.inst[data-word="fuel"].is-open .inst__word {
  animation: word-fuel 1.1s linear both;
}
@keyframes word-fuel {
  0% { opacity: 0; transform: translateX(0); text-shadow: none; }
  8% { opacity: 1; text-shadow: 0 0 22px rgba(255, 42, 31, 0.95); }
  18% { opacity: 0.25; text-shadow: none; }
  30% { opacity: 1; text-shadow: 0 0 18px rgba(255, 42, 31, 0.8); }
  44% { opacity: 0.5; }
  58%, 100% { opacity: 1; transform: translateX(0); text-shadow: 0 0 12px rgba(255, 42, 31, 0.55); }
}

.inst[data-word="gravity"]:hover .inst__word,
.inst[data-word="gravity"].is-open .inst__word {
  animation: word-gravity 0.9s var(--ease-out) both;
}
@keyframes word-gravity {
  0% { opacity: 0; transform: translateY(-48px); }
  45% { opacity: 1; transform: translateY(0); }
  62% { transform: translateY(-12px); }
  78% { transform: translateY(0); }
  88% { transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}

.inst[data-word="momentum"]:hover .inst__word,
.inst[data-word="momentum"].is-open .inst__word {
  animation: word-momentum 1.05s linear both;
}
@keyframes word-momentum {
  0% { opacity: 0; transform: translateX(150px); }
  30% { opacity: 0.6; transform: translateX(118px); }   /* slow start... */
  55% { opacity: 1; transform: translateX(-18px); }     /* ...then it can't stop */
  74% { transform: translateX(6px); }
  88% { transform: translateX(-3px); }
  100% { opacity: 1; transform: translateX(0); }
}
.inst__plus {
  position: relative;
  width: 18px; height: 18px;
  justify-self: end;
}
.inst__plus::before, .inst__plus::after {
  content: "";
  position: absolute;
  background: var(--text-faint);
  transition: transform 0.45s var(--ease-out), background-color 0.3s;
}
.inst__plus::before { left: 0; right: 0; top: 8px; height: 2px; }
.inst__plus::after { top: 0; bottom: 0; left: 8px; width: 2px; }
.inst:hover .inst__plus::before, .inst:hover .inst__plus::after { background: var(--red-bright); }
.inst.is-open .inst__plus::after { transform: scaleY(0); }
.inst__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease-expo);
}
.inst.is-open .inst__panel { grid-template-rows: 1fr; }
.inst__panel-in { overflow: hidden; }
.inst__link {
  display: block;
  width: fit-content;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.inst__link::after {
  content: "→";
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.35s var(--ease-out);
}
.inst__link:hover::after { transform: translateX(6px); }
.inst__panel-in p {
  max-width: 62ch;
  color: var(--text-dim);
  font-size: 16px;
  padding-bottom: clamp(30px, 4vw, 48px);
  padding-right: clamp(20px, 5vw, 48px);
  /* align with the title column of the head grid */
  margin-left: calc(
    max((100% - var(--container)) / 2, 0px)
    + clamp(20px, 5vw, 48px) + 90px + clamp(16px, 3vw, 40px)
  );
}
@media (max-width: 700px) {
  .inst__head { grid-template-columns: 44px 1fr 30px; }
  .inst__word { display: none; }
  .inst__panel-in p { margin-left: 20px; padding: 0 20px 30px 0; }
}

/* ============================================================
   ACT III — THE CYCLE
   ============================================================ */
.method {
  padding: clamp(90px, 12vw, 160px) 0;
  background:
    radial-gradient(ellipse 60% 40% at 85% 10%, rgba(198, 0, 1, 0.07), transparent 65%),
    var(--ink-raise);
  border-block: 1px solid var(--ink-line);
  position: relative;
}
.phases-wrap { position: relative; z-index: 1; }
.phases-fuse {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.06);
}
.phases-fuse::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: calc(var(--p, 0) * 100%);
  background: linear-gradient(180deg, var(--red-deep), var(--red) 60%, var(--red-bright));
  box-shadow: 0 0 14px 1px rgba(255, 42, 31, 0.5);
}
.phases {
  list-style: none;
  padding-left: clamp(36px, 6vw, 90px);
}
.phase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 300px) 1fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
  padding: clamp(44px, 6vw, 72px) 0;
  border-top: 1px solid var(--ink-line);
}
.phase:last-child { border-bottom: 1px solid var(--ink-line); }
.phase__viz {
  display: block;
  width: clamp(90px, 11vw, 150px);
  color: rgba(255, 42, 31, 0.45);
  transition: color 0.6s, filter 0.6s;
}
.phase.is-visible .phase__viz {
  color: rgba(255, 42, 31, 0.8);
  filter: drop-shadow(0 0 16px rgba(198, 0, 1, 0.3));
}
.phase__viz svg { width: 100%; height: auto; display: block; overflow: visible; }
/* run animations only while the phase is on screen */
.phase__viz .anim { animation-play-state: paused; }
.phase.is-visible .phase__viz .anim { animation-play-state: running; }

/* 01 — diagnose: EKG trace sweeping through */
.viz-ekg {
  stroke-dasharray: 190 330;
  animation: ekg-sweep 3.6s linear infinite;
}
@keyframes ekg-sweep {
  from { stroke-dashoffset: 520; }
  to { stroke-dashoffset: -190; }
}
.viz-ekg-dot { animation: ekg-blip 1.8s ease-in-out infinite; }
@keyframes ekg-blip {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.8); transform-origin: 60px 62px; }
}

/* 02 — reimagine: blueprint in slow rotation */
.viz-bp-square {
  transform-origin: 60px 60px;
  animation: bp-spin 18s linear infinite;
}
.viz-bp-circle {
  stroke-dasharray: 5 9;
  transform-origin: 60px 60px;
  animation: bp-spin-rev 26s linear infinite;
}
@keyframes bp-spin { to { transform: rotate(360deg); } }
@keyframes bp-spin-rev { to { transform: rotate(-360deg); } }

/* 03 — rebuild: bricks assembling, course by course */
.viz-block { animation: block-lay 6s var(--ease-out) infinite; }
.viz-block.b1 { animation-delay: 0s; }
.viz-block.b2 { animation-delay: 0.3s; }
.viz-block.b3 { animation-delay: 0.6s; }
.viz-block.b4 { animation-delay: 1.05s; }
.viz-block.b5 { animation-delay: 1.35s; }
.viz-block.b6 { animation-delay: 1.8s; }
@keyframes block-lay {
  0% { opacity: 0; transform: translateY(-8px); }
  7%, 82% { opacity: 1; transform: translateY(0); }
  94%, 100% { opacity: 0; transform: translateY(0); }
}

/* 04 — rise: chevrons cascading upward, bubbles escaping */
.viz-chev { animation: chev-glow 2.4s ease-in-out infinite; opacity: 0.25; }
.viz-chev.c1 { animation-delay: 0s; }
.viz-chev.c2 { animation-delay: 0.35s; }
.viz-chev.c3 { animation-delay: 0.7s; }
@keyframes chev-glow {
  0%, 60%, 100% { opacity: 0.25; }
  22% { opacity: 1; }
}
.viz-bub { animation: bub-rise 4.4s ease-in infinite; opacity: 0; }
.viz-bub.u2 { animation-delay: 2s; }
@keyframes bub-rise {
  0% { transform: translateY(0); opacity: 0; }
  14% { opacity: 0.8; }
  100% { transform: translateY(-64px); opacity: 0; }
}
.phase__num {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 14px;
}
.phase__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem);
  text-transform: lowercase;
  line-height: 1.1;
}
.phase__tag {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--red-bright);
}
.phase__text {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--text-dim);
}
@media (max-width: 800px) {
  .phase { grid-template-columns: 1fr; gap: 18px; }
  .phase__viz { width: 76px; }
}

/* ---------- Stats ---------- */
.stats { padding: clamp(70px, 8vw, 100px) 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.stat {
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--red) 0%, rgba(198,0,1,0) 90%) 1;
  padding-top: 26px;
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
  background: linear-gradient(180deg, var(--stat-hi) 20%, var(--stat-lo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__key {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

/* ============================================================
   ACT IV — THE LIGHT
   ============================================================ */
.why {
  background: var(--why-bg);
  color: var(--why-text);
  padding: clamp(90px, 11vw, 150px) 0;
  position: relative;
}
.js .why {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease-expo);
}
.js .why.is-wiped { clip-path: inset(0 0 -2% 0); }
.why::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--red) 0%, rgba(198, 0, 1, 0) 70%);
}
.why .section-label__rule { background: linear-gradient(90deg, var(--red) 0%, rgba(198,0,1,0) 100%); }
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
  position: relative;
  z-index: 1;
}
.why__quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  line-height: 1.32;
  color: var(--why-text);
}
.why__quote em { color: var(--why-accent); }
.why__quote cite {
  display: block;
  margin-top: 30px;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--why-text-dim);
}
.why__points { display: grid; gap: 40px; }
.why__point {
  border-top: 1px solid var(--why-line);
  padding-top: 26px;
}
.why__point h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  text-transform: lowercase;
  margin-bottom: 12px;
}
.why__point h3::first-letter { color: var(--why-accent); }
.why__point p { color: var(--why-text-dim); font-size: 15.5px; }

/* ============================================================
   ACT V — THE RISE
   ============================================================ */
.cta {
  position: relative;
  padding: clamp(110px, 14vw, 190px) 0;
  text-align: center;
  overflow: hidden;
}
.cta__glow {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 1100px;
  aspect-ratio: 2 / 1;
  background: radial-gradient(ellipse at center,
    rgba(255, 42, 31, 0.18) 0%, rgba(198, 0, 1, 0.08) 40%, transparent 68%);
  animation: breathe 6s ease-in-out infinite;
  pointer-events: none;
}
#phoenix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; }
.cta .section-label { justify-content: center; }
.cta .section-label__rule { flex-basis: 90px; }
.cta__title {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 400;
}
.cta__title-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  color: var(--text-dim);
  line-height: 1;
}
.cta__title-display {
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 15vw, 12rem);
  line-height: 1;
  text-transform: lowercase;
  background: linear-gradient(180deg, #ff4a3a 0%, var(--red) 45%, #4a0001 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 48px rgba(198, 0, 1, 0.45));
}
.cta__sub {
  margin: 36px auto 0;
  max-width: 44ch;
  color: var(--text-dim);
}
.cta__actions { margin-top: 48px; }
.cta__alt {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-faint);
}

/* ---------- Footer ---------- */
.footer { background: var(--black); position: relative; }
.footer__rule {
  height: 2px;
  background: linear-gradient(90deg, var(--red) 0%, var(--black) 78%);
}
.footer__inner {
  padding-top: 72px;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}
.footer__logo { height: 42px; width: auto; }
.footer__tag {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(239, 233, 228, 0.38);
}
.footer__nav {
  display: flex;
  gap: 32px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.footer__nav a { color: rgba(239, 233, 228, 0.38); transition: color 0.3s; }
.footer__nav a:hover { color: var(--red-bright); }
.footer__legal {
  grid-column: 1 / -1;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(239, 233, 228, 0.38);
}

/* ---------- Reveal animations ---------- */
.js .reveal-load {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 1.1s var(--ease-out) calc(var(--hero-delay, 0.2s) + var(--o, 0s)) forwards;
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out) var(--d, 0s),
              transform 0.9s var(--ease-out) var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    background: var(--menu-bg);
    backdrop-filter: blur(18px);
    font-size: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }
  /* An open menu must escape the header: backdrop-filter/transform on .nav
     turn it into the containing block for the fixed overlay, clipping it. */
  .nav.nav--menu-open,
  .nav.nav--menu-open.is-scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
  }
  .nav.nav--menu-open .nav__rule { opacity: 0; }
  body.nav-locked { overflow: hidden; }
  .nav__burger { position: relative; z-index: 10; }
  .nav__burger.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav__burger.is-open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

  .marquee-band { margin: -20px 0; transform: rotate(-2.4deg) scale(1.06); }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { flex-wrap: wrap; gap: 20px 28px; }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}

@media (min-height: 1400px) {
  /* very tall / portrait viewports: don't stretch the hero to fill */
  .hero { min-height: 1100px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .hero__glow, .cta__glow, .nav__cta-dot, .hero__scroll-line { animation: none; }
  .marquee__track { animation-duration: 160s; }
  .loader { display: none; }
  .cursor { display: none !important; }
  .js .reveal-load, .js .reveal, .js .hl {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .js .why { clip-path: none; transition: none; }
  .manifesto__text .w { opacity: 1 !important; transition: none; }
  .js .manifesto__sig img, .js .manifesto__sig .sig-line { opacity: 1; transform: none; transition: none; }
  .manifesto__sig em.beat { animation: none; }
  .ii-habit { --strike: 1; opacity: 0.5; }
  .paint-word { --p1: 1; --p2: 1; --p3: 1; --p4: 1; }
  .paint-stroke, .paint-word::before, .paint-pain { transition: none; }
  .ransom .rl { transition: none; }
  .trydo-text { animation: none !important; }
  .trydo-caret { display: none !important; }
  .ii-caret { display: none !important; }
  .phase__viz .anim { animation: none; }
  .inst__word { animation: none !important; filter: none; }
  .page-viz * { animation: none !important; }
  .vt-old::after { width: 100%; }
  .vt-new { max-width: 16ch; }
  .viz-ripple i { opacity: 0.3; transform: scale(0.55); }
  .viz-ripple i:nth-child(2) { transform: scale(0.8); }
  .viz-ripple i:nth-child(3) { transform: scale(1); }
  .viz-adopt span:nth-child(3n) { background: rgba(198, 0, 1, 0.55); }
  .report__status { opacity: 1; transform: none; transition: none; }
  .buildlog__bar i { width: var(--w, 100%); transition: none; }
  .meter__track i { width: var(--to, 100%); transition: none; }
  .phero__viz .anim { animation: none; }
  .viz-ekg { stroke-dasharray: none; }
  .viz-block, .viz-chev { opacity: 1; }
  .viz-bub { opacity: 0.6; }
  .phases-fuse::after { height: 100%; }
  #embers, #phoenix { display: none; }
}


/* ============================================================
   CONCEPT PAGES
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(80px, 12vw, 150px)) 0 clamp(50px, 7vw, 90px);
}
.page-hero__glow {
  position: absolute;
  top: -30%;
  right: -15%;
  width: 60vw;
  aspect-ratio: 1;
  background: radial-gradient(circle,
    rgba(255, 42, 31, 0.13), rgba(198, 0, 1, 0.05) 45%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-title {
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  text-transform: lowercase;
}
.page-lede {
  margin-top: 30px;
  max-width: 58ch;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--text-dim);
}
.page-hero__actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.page-viz-band {
  padding: clamp(50px, 7vw, 90px) 0;
  border-block: 1px solid var(--ink-line);
  background: var(--ink-raise);
}
.page-viz {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 230px;
  color: var(--red-bright);
}
.page-points { padding: clamp(80px, 11vw, 140px) 0; }
.page-points__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px);
}
.ppoint { border-top: 1px solid var(--ink-line); padding-top: 24px; }
.ppoint h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  text-transform: lowercase;
  margin-bottom: 12px;
}
.ppoint h3::first-letter { color: var(--red-bright); }
.ppoint p { color: var(--text-dim); font-size: 15.5px; }
.page-quote { padding: 0 0 clamp(80px, 11vw, 140px); }
.page-quote blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.35;
  max-width: 30em;
}
.page-quote em { color: var(--red-bright); }
@media (max-width: 900px) { .page-points__grid { grid-template-columns: 1fr; } }

/* — AI adoption: the org lights up, desk by desk — */
.viz-adopt {
  display: grid;
  grid-template-columns: repeat(12, 12px);
  gap: 14px;
}
.viz-adopt span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  animation: adopt-light 5.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes adopt-light {
  0%, 100% { background: rgba(255, 255, 255, 0.07); box-shadow: none; }
  10% { background: var(--red-bright); box-shadow: 0 0 12px rgba(255, 42, 31, 0.8); }
  60% { background: rgba(198, 0, 1, 0.55); box-shadow: 0 0 4px rgba(198, 0, 1, 0.3); }
}

/* — Digital transformation: renovation struck, transformation typed — */
.viz-transform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.vt-old {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  text-transform: lowercase;
  color: var(--text-faint);
}
.vt-old::after {
  content: "";
  position: absolute;
  left: 0; top: 55%;
  height: 3px;
  width: 0;
  background: var(--red-bright);
  box-shadow: 0 0 10px rgba(255, 42, 31, 0.6);
  animation: vt-strike 0.7s var(--ease-out) 1s forwards;
}
@keyframes vt-strike { to { width: 100%; } }
.vt-new {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  background: linear-gradient(115deg, var(--red-bright), var(--red) 60%, var(--red-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
  padding-right: 0.1em;
  animation: vt-type 1.4s steps(14) 2s forwards;
}
@keyframes vt-type { to { max-width: 16ch; } }

/* — Intelligent automation: the conveyor — */
.viz-convey {
  position: relative;
  width: min(560px, 82vw);
  height: 130px;
}
.cv-line {
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px dashed rgba(255, 42, 31, 0.35);
}
.cv-core {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 78px;
  border: 1.5px solid var(--red-bright);
  border-radius: 8px;
  animation: cv-core-pulse 2s ease-in-out infinite;
}
@keyframes cv-core-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 42, 31, 0.25); }
  50% { box-shadow: 0 0 26px rgba(255, 42, 31, 0.6); }
}
.cv-box {
  position: absolute;
  top: 50%;
  left: 0;
  width: 15px; height: 15px;
  margin-top: -7.5px;
  border: 1.5px solid rgba(255, 42, 31, 0.7);
  animation: cv-travel 6s linear infinite;
}
.cv-box.b2 { animation-delay: 2s; }
.cv-box.b3 { animation-delay: 4s; }
@keyframes cv-travel {
  0% { transform: translateX(-30px) rotate(0); opacity: 0; border-radius: 2px; background: transparent; }
  8% { opacity: 1; }
  46% { transform: translateX(calc(min(560px, 82vw) * 0.46)) rotate(0); border-radius: 2px; background: transparent; }
  54% { transform: translateX(calc(min(560px, 82vw) * 0.54)) rotate(180deg); border-radius: 50%; background: rgba(255, 42, 31, 0.55); box-shadow: 0 0 14px rgba(255, 42, 31, 0.7); }
  92% { opacity: 1; }
  100% { transform: translateX(calc(min(560px, 82vw) + 30px)) rotate(180deg); border-radius: 50%; opacity: 0; }
}

/* — Data strategy: pipelines feeding the core — */
.viz-pipes svg { width: min(560px, 82vw); height: auto; display: block; overflow: visible; }
.viz-pipes path {
  stroke-dasharray: 7 11;
  animation: pipe-flow 1.5s linear infinite;
}
@keyframes pipe-flow { to { stroke-dashoffset: -72; } }
.pipe-core { animation: pipe-core-pulse 3s ease-in-out infinite; transform-origin: 440px 110px; }
@keyframes pipe-core-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* — Change enablement: the ripple — */
.viz-ripple {
  position: relative;
  width: 240px; height: 240px;
}
.viz-ripple i {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--red-bright);
  border-radius: 50%;
  animation: rip-out 3.9s ease-out infinite;
  opacity: 0;
}
.viz-ripple i:nth-child(2) { animation-delay: 1.3s; }
.viz-ripple i:nth-child(3) { animation-delay: 2.6s; }
@keyframes rip-out {
  0% { transform: scale(0.1); opacity: 0.9; }
  100% { transform: scale(1); opacity: 0; }
}
.rp-core {
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 16px rgba(255, 42, 31, 0.8);
  animation: rp-beat 3.9s ease-in-out infinite;
}
@keyframes rp-beat {
  0%, 100% { transform: scale(1); }
  4% { transform: scale(1.6); }
  9% { transform: scale(1); }
}

/* — Product reinvention: form, reinvented — */
.viz-morphp {
  position: relative;
  width: 190px; height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mo-shape {
  width: 110px; height: 110px;
  border: 2px solid var(--red-bright);
  animation: mo-morph 7s var(--ease-out) infinite;
}
@keyframes mo-morph {
  0%, 100% { border-radius: 10%; transform: rotate(0); }
  40%, 60% { border-radius: 50%; transform: rotate(180deg); box-shadow: 0 0 22px rgba(255, 42, 31, 0.4); }
}
.mo-orbit {
  position: absolute;
  inset: 0;
  border: 1.5px dashed rgba(255, 42, 31, 0.4);
  border-radius: 50%;
  animation: bp-spin 20s linear infinite;
}


/* ============================================================
   PHASE PAGES (The Rebirth Cycle)
   ============================================================ */
.phero__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.phero__viz {
  color: rgba(255, 42, 31, 0.75);
  filter: drop-shadow(0 0 20px rgba(198, 0, 1, 0.3));
  max-width: 300px;
  justify-self: center;
}
.phero__viz svg { width: 100%; height: auto; overflow: visible; }
@media (max-width: 860px) {
  .phero__grid { grid-template-columns: 1fr; }
  .phero__viz { max-width: 190px; margin-top: 20px; justify-self: start; }
}

/* — shared: section shell — */
.phsection { padding: clamp(80px, 11vw, 140px) 0; border-top: 1px solid var(--ink-line); }
.phsection__label { margin-bottom: clamp(36px, 5vw, 60px); }

/* — diagnose: the readout — */
.report { border-top: 1px solid var(--ink-line); }
.report__row {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--ink-line);
}
.report__sys {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  text-transform: lowercase;
}
.report__find { color: var(--text-dim); font-size: 15px; }
.report__status {
  justify-self: end;
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0;
  transform: scale(1.35);
  transition: opacity 0.4s var(--ease-out) 0.45s, transform 0.4s var(--ease-out) 0.45s;
}
.report__row.is-visible .report__status { opacity: 1; transform: scale(1); }
.report__status--flag { color: var(--red-bright); }
.report__status--ok { color: rgba(120, 200, 140, 0.85); }
.report__status--risk { color: rgba(255, 170, 60, 0.9); }
@media (max-width: 700px) {
  .report__row { grid-template-columns: 1fr auto; }
  .report__find { grid-column: 1 / -1; }
}

/* — reimagine: the blueprint compare — */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
}
.compare__col { background: var(--ink); padding: clamp(24px, 3.5vw, 44px); }
.compare__col--new {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(198, 0, 1, 0.08), transparent 70%),
    var(--ink);
}
.compare__head {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px dashed var(--ink-line);
}
.compare__col--new .compare__head { color: var(--red-bright); border-bottom-color: rgba(255, 42, 31, 0.35); }
.compare__col ul { list-style: none; }
.compare__col li {
  padding: 18px 0;
  border-bottom: 1px dashed var(--ink-line);
  color: var(--text-dim);
  font-size: 15.5px;
}
.compare__col li:last-child { border-bottom: 0; }
.compare__col--old li { color: var(--text-faint); }
.compare__col--new li { color: var(--text); }
.compare__col--new li::before {
  content: "→ ";
  color: var(--red-bright);
}
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* — rebuild: the build log — */
.buildlog { border-top: 1px solid var(--ink-line); }
.buildlog__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--ink-line);
}
.buildlog__when {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.buildlog__what { font-size: 15.5px; color: var(--text); margin-bottom: 12px; }
.buildlog__bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
}
.buildlog__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ember-grad);
  box-shadow: 0 0 10px rgba(255, 42, 31, 0.5);
  transition: width 1.2s var(--ease-out) 0.3s;
}
.buildlog__row.is-visible .buildlog__bar i { width: var(--w, 100%); }

/* — rise: the handover meters — */
.meters { display: grid; gap: clamp(36px, 5vw, 56px); max-width: 780px; }
.meter__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.meter__value { color: var(--red-bright); font-size: 15px; letter-spacing: 0.1em; }
.meter__track {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  overflow: hidden;
}
.meter__track i {
  display: block;
  height: 100%;
  background: var(--ember-grad);
  box-shadow: 0 0 12px rgba(255, 42, 31, 0.5);
  width: var(--from, 0%);
  transition: width 2s var(--ease-out) 0.4s;
}
.meter.is-visible .meter__track i { width: var(--to, 100%); }

/* — cycle navigation — */
.cycnav { border-top: 1px solid var(--ink-line); }
.cycnav__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ink-line);
}
.cycnav__card {
  position: relative;
  background: var(--ink);
  padding: clamp(34px, 5vw, 60px) clamp(24px, 4vw, 56px);
  overflow: hidden;
  transition: background-color 0.4s;
}
.cycnav__card:hover { background: var(--ink-raise); }
.cycnav__card::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--ember-grad);
  transition: right 0.5s var(--ease-out);
}
.cycnav__card:hover::after { right: 0; }
.cycnav__dir {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
  transition: color 0.3s;
}
.cycnav__card:hover .cycnav__dir { color: var(--red-bright); }
.cycnav__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  text-transform: lowercase;
  color: var(--text);
}
.cycnav__card--next { text-align: right; }
@media (max-width: 640px) { .cycnav__grid { grid-template-columns: 1fr; } }

/* — deliverables strip — */
.deliv {
  padding: clamp(70px, 9vw, 110px) 0;
  border-top: 1px solid var(--ink-line);
  background: var(--ink-raise);
}
.deliv__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 4vw, 48px);
  margin-top: clamp(36px, 5vw, 56px);
}
.deliv__item { border-top: 1px solid var(--ink-line); padding-top: 20px; }
.deliv__num {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--red-bright);
  margin-bottom: 12px;
}
.deliv__item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  text-transform: lowercase;
  margin-bottom: 8px;
}
.deliv__item p { color: var(--text-dim); font-size: 14px; }
@media (max-width: 960px) { .deliv__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .deliv__grid { grid-template-columns: 1fr; } }
