@charset "UTF-8";
/* Max Primal · global stylesheet (ported from the teaser, extended for the site) */

:root {
  --spine: max(8vw, env(safe-area-inset-left, 0px));
  --bg: #0A0A0A;
  --surface: #111111;
  --red: #CC0000;
  --red-mute: rgba(204,0,0,0.12);
  --red-line: rgba(204,0,0,0.22);
  --white: #FFFFFF;
  --silver: #B8B8B8;
  --dim: #444444;
  --border: #1E1E1E;
  --f-display: 'Anton', Impact, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--f-body);
  overflow-x: clip;
  max-width: 100vw;
}

/* ── NEBULA / MILKY WAY ── */
#nebula {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#nebula::before,
#nebula::after {
  content: '';
  position: absolute;
  inset: -30%;
  width: 160%;
  height: 160%;
}

#nebula::before {
  background:
    radial-gradient(ellipse 130% 45% at 20% 68%, rgba(58,4,8,0.62)   0%, transparent 55%),
    radial-gradient(ellipse 75%  55% at 78% 38%, rgba(34,3,6,0.5)    0%, transparent 50%),
    radial-gradient(ellipse 55%  28% at 50% 82%, rgba(80,0,10,0.26)  0%, transparent 45%);
  animation:
    nebulaA 38s ease-in-out infinite alternate,
    breatheA 7.5s ease-in-out infinite alternate;
}

#nebula::after {
  background:
    radial-gradient(ellipse 95%  32% at 62% 58%, rgba(44,2,6,0.45)   0%, transparent 55%),
    radial-gradient(ellipse 48%  72% at 12% 48%, rgba(28,4,6,0.38)   0%, transparent 50%),
    radial-gradient(ellipse 60%  40% at 85% 72%, rgba(66,0,8,0.2)    0%, transparent 45%);
  animation:
    nebulaB 55s ease-in-out infinite alternate,
    breatheB 9.5s ease-in-out infinite alternate;
}

@keyframes nebulaA {
  0%   { transform: translate(0,  0)   rotate(0deg)    scale(1);    }
  100% { transform: translate(3%, 2%)  rotate(2.5deg)  scale(1.05); }
}

@keyframes nebulaB {
  0%   { transform: translate(0,   0)   rotate(0deg)    scale(1);    }
  100% { transform: translate(-2%, 3%)  rotate(-2deg)   scale(1.04); }
}

/* slow breathing: brightness and saturation swell, like blood under skin */
@keyframes breatheA {
  0%   { opacity: 0.65; filter: brightness(0.85) saturate(0.9); }
  100% { opacity: 1;    filter: brightness(1.45) saturate(1.35); }
}
@keyframes breatheB {
  0%   { opacity: 1;    filter: brightness(1.3)  saturate(1.2); }
  100% { opacity: 0.6;  filter: brightness(0.8)  saturate(0.9); }
}

/* ── HEARTBEAT PULSE ── */
#pulse {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 30% 44%,
    rgba(204,0,0,0.20) 0%,
    rgba(150,0,10,0.10) 30%,
    transparent 65%);
  transform-origin: 30% 44%;
  animation: pulse 6.2s cubic-bezier(0.42, 0, 0.3, 1) infinite;
}
@keyframes pulse {
  0%   { opacity: 0.35; transform: scale(0.92); }
  45%  { opacity: 1;    transform: scale(1.08); }
  60%  { opacity: 0.8;  transform: scale(1.02); }
  100% { opacity: 0.35; transform: scale(0.92); }
}

/* ── LIGHT BEAMS ── */
#beams {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  animation: beamBreathe 8.4s ease-in-out infinite alternate;
}
@keyframes beamBreathe {
  0%   { opacity: 0.55; filter: brightness(0.9); }
  100% { opacity: 1;    filter: brightness(1.5); }
}
#beams i {
  position: absolute;
  left: 30%;
  top: 44%;
  width: 220vmax;
  height: 220vmax;
  margin: -110vmax 0 0 -110vmax;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    transparent 0deg,
    rgba(204,0,0,0.11) 5deg,
    transparent 13deg,
    transparent 118deg,
    rgba(204,0,0,0.08) 127deg,
    transparent 139deg,
    transparent 232deg,
    rgba(204,0,0,0.10) 241deg,
    transparent 253deg,
    transparent 360deg);
  filter: blur(22px);
  will-change: transform;
  animation: beamSpin 110s linear infinite;
}
#beams i:nth-child(2) {
  animation-duration: 170s;
  animation-direction: reverse;
  opacity: 0.6;
  background: conic-gradient(from 60deg,
    transparent 0deg,
    rgba(204,0,0,0.09) 7deg,
    transparent 17deg,
    transparent 160deg,
    rgba(204,0,0,0.07) 170deg,
    transparent 182deg,
    transparent 360deg);
}
#beams i:nth-child(3) {
  animation-duration: 260s;
  opacity: 0.45;
  background: conic-gradient(from 200deg,
    transparent 0deg,
    rgba(255,20,20,0.06) 4deg,
    transparent 10deg,
    transparent 90deg,
    rgba(204,0,0,0.05) 96deg,
    transparent 104deg,
    transparent 360deg);
}
@keyframes beamSpin { to { transform: rotate(360deg); } }

/* ── CURSOR SPOTLIGHT ── */
#spot {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(640px circle at var(--mx, 30%) var(--my, 44%),
    rgba(204,0,0,0.14) 0%,
    rgba(204,0,0,0.05) 35%,
    transparent 65%);
}

/* ── FACETS (chiseled low-poly overlay) ── */
#facets {
  position: fixed;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.24;
  mix-blend-mode: screen;
  will-change: transform;
}

/* ── VIGNETTE ── */
#vignette {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse 85% 75% at 50% 50%, transparent 40%, rgba(0,0,0,0.6) 100%);
  animation: vBreathe 11s ease-in-out infinite alternate;
}
@keyframes vBreathe { from { opacity: 0.75; } to { opacity: 1; } }

/* ── FILM GRAIN ── */
#grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  image-rendering: pixelated;
}


/* ── NAV ── */
nav.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--spine);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(10,10,10,0.95) 0%, transparent 100%);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-wordmark {
  font-family: var(--f-display);
  font-size: 15px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-wordmark b { color: var(--red); font-weight: 400; }
.footer-wm b { color: var(--dim); font-weight: 400; }

/* ── STATEMENT (scroll-drift) ── */
.statement {
  padding: 40px 0 70px;
  overflow: hidden;
}
.statement-line {
  font-family: var(--f-display);
  font-size: clamp(56px, 11vw, 150px);
  line-height: 0.92;
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform;
}
.statement-line.outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.32);
  padding-left: var(--spine);
}
.statement-line.solid {
  color: var(--red);
  padding-left: calc(var(--spine) + 14vw);
}

/* ── GHOST NUMERALS ── */
.phase-ghost, .apply-ghost {
  position: absolute;
  font-family: var(--f-display);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color 0.35s;
}
.phase-ghost {
  top: -0.16em; right: -0.05em;
  font-size: 170px;
  color: rgba(255,255,255,0.03);
}
.phase-card.active .phase-ghost { color: rgba(204,0,0,0.09); }
.phase-card:hover  .phase-ghost { color: rgba(204,0,0,0.16); }
.apply-ghost {
  right: var(--spine); top: 50%;
  transform: translateY(-50%);
  font-size: clamp(240px, 40vw, 520px);
  color: rgba(0,0,0,0.62);
  z-index: -1;
}

/* ── 84-TICK CYCLE TRACK ── */
.cycle-track {
  display: flex;
  gap: 18px;
  margin-bottom: 56px;
}
.cycle-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.cycle-ticks {
  display: flex;
  gap: 3px;
  height: 72px;
  align-items: flex-end;
}
.tick {
  flex: 1;
  height: 20%;
  background: #2A2A2A;
  transform-origin: bottom;
  will-change: height, background-color;
  transition: background-color 0.35s, box-shadow 0.35s;
  position: relative;
}
.tick.lit {
  background: var(--red);
  box-shadow: 0 0 10px rgba(204,0,0,0.45);
}
.tick.edge {
  background: #FF2A2A;
  box-shadow: 0 0 18px rgba(255,40,40,0.9), 0 0 36px rgba(204,0,0,0.5);
}
.tick.wk::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -7px;
  height: 2px;
  background: var(--dim);
}
.tick.wk.lit::after { background: var(--red); }
.cycle-lbl {
  font-family: var(--f-body);
  font-size: clamp(12px, 2vw, 15px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  display: flex;
  justify-content: space-between;
}
@media (max-width: 600px) {
  .cycle-track { flex-direction: column; gap: 14px; }
}

.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-link {
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
  transition: color .2s;
}
.nav-link:hover { color: var(--red); }
@media (max-width: 600px) { .nav-link { display: none; } }

.nav-badge {
  font-family: var(--f-body);
  font-size: 9px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(204,0,0,0.3);
  padding: 5px 10px;
}

/* ── MAIN ── */
main {
  position: relative;
  z-index: 10;
  overflow-x: clip;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 100px var(--spine) 80px;
}

.hero-eyebrow {
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.4,0,0.2,1) 0.3s forwards;
}

#hero-wm .wm-line {
  display: block;
  white-space: nowrap;
  will-change: transform;
}
.hero .drift {
  display: inline-block;
  will-change: transform;
}

#hero-wm {
  font-family: var(--f-display);
  font-size: clamp(72px, 16vw, 180px);
  line-height: 0.88;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  will-change: transform;
  opacity: 0;
  animation: fadeUp 1.1s cubic-bezier(0.4,0,0.2,1) 0.5s forwards;
}

.hero-tagline {
  font-family: var(--f-body);
  font-size: clamp(12px, 2vw, 15px);
  font-weight: 500;
  color: var(--silver);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 32px;
  max-width: 520px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.4,0,0.2,1) 0.8s forwards;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 32px;
  left: var(--spine);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.4,0,0.2,1) 1.4s forwards;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero-scroll-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--dim);
  text-transform: uppercase;
}

/* ── SECTION SHARED ── */
section {
  padding: 120px var(--spine);
  max-width: none;
  margin: 0;
}

.section-label {
  font-family: var(--f-body);
  font-size: 9px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}

/* ── NOT / IS SECTION ── */
.not-is { max-width: 1100px; }

.section-label.tight {
  margin-bottom: 28px;
  font-size: clamp(12px, 2vw, 15px);
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.12em;
  line-height: 1.8;
}
.section-label.tight::before { display: none; }

.not-col { margin-bottom: 110px; }

.not-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.not-item {
  font-family: var(--f-display);
  font-size: clamp(44px, 7.6vw, 98px);
  line-height: 0.98;
  text-transform: uppercase;
  color: #3A3A3A;
  display: inline-block;
  will-change: transform;
}

.is-heading {
  font-family: var(--f-display);
  font-size: clamp(60px, 11vw, 152px);
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 64px;
  text-wrap: balance;
}

.is-heading b { color: var(--red); font-weight: 400; }
.is-heading .drift { display: inline-block; will-change: transform; }

.is-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

@media (max-width: 680px) {
  .is-list { grid-template-columns: 1fr; gap: 24px; }
}

.is-item {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  min-width: 0;
}

.is-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(204,0,0,0.45));
}
.is-icon svg { width: 100%; height: 100%; display: block; }

.is-text-head {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 8px;
}

.is-text-body {
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--silver);
  line-height: 1.65;
}

/* ── PHASES ── */
.phases-section {
  position: relative;
}

.phases-inner {
  padding: 100px var(--spine);
}

.phases-heading {
  font-family: var(--f-display);
  font-size: clamp(32px, 5vw, 60px);
  text-transform: uppercase;
  color: var(--white);
  line-height: 0.9;
  margin-bottom: 8px;
}

.phases-sub {
  font-family: var(--f-body);
  font-size: clamp(12px, 2vw, 15px);
  font-weight: 500;
  color: var(--silver);
  letter-spacing: 0.12em;
  line-height: 1.8;
  text-transform: uppercase;
  margin-bottom: 56px;
}

.phases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

@media (max-width: 600px) {
  .phases-grid { grid-template-columns: 1fr; }
}

.phase-card {
  border: 1px solid var(--border);
  padding: 36px 28px 32px;
  position: relative;
  overflow: hidden;
  background: rgba(10,10,10,0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s, transform 0.3s;
}
.phase-card:hover {
  border-color: rgba(204,0,0,0.55);
  transform: translateY(-4px);
}

.phase-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--border);
}

.phase-card.active::before {
  background: var(--red);
}

.phase-num {
  font-family: var(--f-body);
  font-size: clamp(12px, 2vw, 15px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 64px;
  position: relative;
}

.phase-card.active .phase-num {
  color: var(--red);
}

.phase-name {
  font-family: var(--f-display);
  font-size: 32px;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 6px;
}

.phase-days {
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 700;
  color: var(--dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.phase-card.active .phase-days {
  color: var(--red);
}

.phase-desc {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--silver);
  line-height: 1.7;
}

/* ── PHASE SEALS ── */
.phase-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 56px;
  position: relative;
}
.phase-head .phase-num { margin-bottom: 0; }
.phase-seal {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.phase-seal svg {
  width: 100%; height: 100%; display: block;
  stroke: #3A3A3A;
  transition: stroke .4s, filter .4s;
}
.phase-seal .seal-core { fill: #3A3A3A; transition: fill .4s; }
.phase-seal .seal-disc { transition: fill .4s, stroke .4s; }
.phase-seal .seal-glyph { transition: stroke .4s; }

/* hover: red outline */
.phase-card:hover .phase-seal svg { stroke: var(--red); }
.phase-card:hover .seal-core { fill: var(--red); }

/* selected: inverted. solid red disc, glyph in black */
.phase-card.active .phase-seal svg {
  stroke: var(--red);
  filter: drop-shadow(0 0 10px rgba(204,0,0,0.65));
}
.phase-card.active .seal-disc { fill: var(--red); }
.phase-card.active .seal-glyph { stroke: #0A0A0A; }
.phase-card.active .seal-core { fill: #0A0A0A; }
.seal-tri, .seal-star { transform-origin: 24px 24px; }
.phase-card.active .seal-tri  { animation: spinStop 3.2s cubic-bezier(.6,0,.2,1) infinite; }
.phase-card.active .seal-star { animation: spinFull 6.4s linear infinite; }
@keyframes spinFull { to { transform: rotate(360deg); } }

/* star: on each stop, a shockwave ring expands and fades */
.phase-seal svg { overflow: visible; }
.seal-wave { transform-origin: 24px 24px; transform: scale(1); opacity: 0; fill: none; stroke-width: 1.5; }
.phase-card.active .seal-wave { animation: shock 3.2s cubic-bezier(.2,.8,.2,1) infinite; }
@keyframes shock {
  0%, 58% { transform: scale(1);   opacity: 0; }
  62%     { transform: scale(1);   opacity: .9; }
  100%    { transform: scale(2.4); opacity: 0; }
}
  45%  { transform: scaleY(1); }
  55%  { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}
@keyframes spinStop {
  0%   { transform: rotate(0deg); }
  62%  { transform: rotate(360deg); }
  100% { transform: rotate(360deg); }
}
.seal-chev path { opacity: .35; }
.seal-chev path:nth-child(3) { opacity: 1; }
.phase-card.active .seal-chev path { animation: chevRise 1.5s ease-in-out infinite; }
.phase-card.active .seal-chev path:nth-child(1) { animation-delay: 0s; }
.phase-card.active .seal-chev path:nth-child(2) { animation-delay: .25s; }
.phase-card.active .seal-chev path:nth-child(3) { animation-delay: .5s; }
@keyframes chevRise {
  0%, 60%, 100% { opacity: .3; }
  20%           { opacity: 1; }
}

/* ── PHASE CARD: clickable ── */
.phase-card { cursor: pointer; outline: none; }
.phase-card:focus-visible { border-color: var(--red); }

.phase-more {
  position: absolute;
  right: 20px; bottom: 20px;
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1;
  color: var(--dim);
  transition: border-color .3s, color .3s, transform .35s cubic-bezier(.4,0,.2,1);
}
.phase-card:hover .phase-more { border-color: rgba(204,0,0,0.5); color: var(--red); }
.phase-card.active .phase-more {
  border-color: var(--red);
  color: var(--red);
  transform: rotate(45deg);
}

/* ── WEEK BREAKDOWN ── */
.phase-detail {
  overflow: hidden;
  max-height: 0;
  transition: max-height .55s cubic-bezier(.4,0,.2,1);
}
.phase-detail.open { max-height: 1400px; }

.phase-weeks { display: none; padding: 48px 0 12px; }
.phase-weeks.show { display: block; animation: fadeUp .5s cubic-bezier(.4,0,.2,1) both; }

.pw-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.pw-tag {
  font-family: var(--f-body);
  font-size: 9px; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--red);
}
.pw-sub {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim);
}

.week {
  display: grid;
  grid-template-columns: 130px 260px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.week:last-child { border-bottom: 1px solid var(--border); }
.week-n {
  font-family: var(--f-body);
  font-size: 11px; font-weight: 700;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--red);
  line-height: 1.8;
}
.week-n span { color: var(--dim); letter-spacing: .15em; }
.week-t {
  font-family: var(--f-display);
  font-size: 38px;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}
.week-d {
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--silver);
  line-height: 1.65;
  max-width: 60ch;
}
@media (max-width: 680px) {
  .week { grid-template-columns: 1fr; gap: 8px; }
}

/* ── ICON ANIMATIONS ── */
.is-icon svg * { transition: stroke .6s ease, fill .6s ease; }
.is-icon svg { stroke: #3A3A3A; }
.is-icon .ic-core, .is-icon .ic-aim-dot { fill: #3A3A3A; }
.is-item.on .is-icon svg { stroke: var(--red); }
.is-item.on .ic-core, .is-item.on .ic-aim-dot { fill: var(--red); }

/* 1. cycle ring: rotation is driven by scroll (JS), plus a slow idle spin */
.ic-ring { transform-origin: 20px 20px; transition: transform .12s linear; }
.is-item.on .ic-core { animation: corePulse 2.4s ease-in-out infinite; transform-origin: 20px 20px; }
@keyframes corePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.45); } }

/* 2. crosshair: wanders until the item enters view, then locks on */
.ic-aim-move { transform-origin: 20px 20px; animation: aimWander 3.2s ease-in-out infinite; }
.is-item.on .ic-aim-move { animation: aimLock .55s cubic-bezier(.2,1.4,.3,1) forwards; }
@keyframes aimWander {
  0%   { transform: translate(-3px,  2px) scale(1.18); }
  33%  { transform: translate( 3px, -2px) scale(1.12); }
  66%  { transform: translate( 2px,  3px) scale(1.2);  }
  100% { transform: translate(-3px,  2px) scale(1.18); }
}
@keyframes aimLock {
  0%   { transform: translate(-3px, 2px) scale(1.18); }
  100% { transform: translate(0, 0) scale(1); }
}
.ic-aim-ticks path { transform-origin: 20px 20px; }
.is-item.on .ic-aim-ticks path { animation: tickIn 1.6s ease-in-out .5s infinite; }
@keyframes tickIn { 0%,100% { transform: scale(1); } 50% { transform: scale(0.82); } }
.is-item.on .ic-aim-inner { animation: innerPulse 1.6s ease-in-out .5s infinite; transform-origin: 20px 20px; }
@keyframes innerPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.7); opacity: .6; } }

/* 3. bars: rise and fall, staggered */
.ic-bar { transform-origin: 50% 34px; transform: scaleY(.25); transition: transform .6s cubic-bezier(.2,.9,.3,1); }
.is-item.on .ic-bar:nth-child(2) { animation: barMove 2.2s ease-in-out  .1s infinite alternate; }
.is-item.on .ic-bar:nth-child(3) { animation: barMove 2.6s ease-in-out  .5s infinite alternate; }
.is-item.on .ic-bar:nth-child(4) { animation: barMove 2.0s ease-in-out  .9s infinite alternate; }
@keyframes barMove { from { transform: scaleY(.45); } to { transform: scaleY(1.05); } }

/* ── THE STANDARD (blog) ── */
.standard-heading {
  font-family: var(--f-display);
  font-size: clamp(60px, 11vw, 152px);
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 28px;
}
.standard-heading .drift { display: inline-block; will-change: transform; }
.standard-sub {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--silver);
  line-height: 1.7;
  max-width: 52ch;
  margin: 0 0 64px;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } }
.cat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px 24px;
  min-height: 210px;
  background: rgba(10,10,10,0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  text-decoration: none;
  position: relative;
  transition: border-color .3s, transform .3s;
}
.cat:hover { border-color: rgba(204,0,0,0.55); transform: translateY(-4px); }
.cat-n {
  font-family: var(--f-body);
  font-size: 9px; font-weight: 700;
  letter-spacing: .25em;
  color: var(--dim);
}
.cat:hover .cat-n { color: var(--red); }
.cat-name {
  font-family: var(--f-display);
  font-size: 28px;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}
.cat-desc {
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--silver);
  line-height: 1.6;
  flex: 1;
}
.cat-count {
  font-family: var(--f-body);
  font-size: 9px; font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #2E2E2E;
  margin-top: 8px;
}

/* ── APPLY CTA ── */
.apply-section {
  text-align: left;
  padding: 140px var(--spine);
  position: relative;
  overflow: hidden;
}

.apply-eyebrow {
  font-size: 9px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.apply-heading {
  font-family: var(--f-display);
  font-size: clamp(28px, 5vw, 60px);
  text-transform: uppercase;
  line-height: 0.9;
  color: var(--white);
  margin-bottom: 20px;
}

.apply-body {
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--silver);
  line-height: 1.8;
  letter-spacing: 0.04em;
  margin-bottom: 48px;
  max-width: 480px;
}

.apply-btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 18px 48px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.apply-btn:hover { background: #E60000; }

.apply-fine {
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 16px;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px var(--spine);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.footer-links a {
  font-family: var(--f-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--red); }

.footer-mark {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-wm {
  font-family: var(--f-display);
  font-size: 12px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-copy {
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.08em;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--dim);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

.modal-close:hover { color: var(--white); }

.modal-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.modal-heading {
  font-family: var(--f-display);
  font-size: 32px;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 24px;
}

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

.modal-input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 13px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.modal-input:focus { border-color: var(--red); }
.modal-input::placeholder { color: var(--dim); }

.modal-submit {
  background: var(--red);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px;
  border: none;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s;
}

.modal-submit:hover { background: #E60000; }

.modal-note {
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.08em;
  text-align: center;
  margin-top: 12px;
  line-height: 1.6;
}

.modal-success {
  text-align: center;
  display: none;
}

.modal-success-icon {
  font-family: var(--f-display);
  font-size: 48px;
  color: var(--red);
  line-height: 1;
  margin-bottom: 16px;
}

.modal-success-heading {
  font-family: var(--f-display);
  font-size: 28px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

.modal-success-body {
  font-size: 12px;
  color: var(--silver);
  line-height: 1.7;
}

/* ── REVEAL ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1) var(--d, 0s),
              transform 1s cubic-bezier(0.4,0,0.2,1) var(--d, 0s);
}

[data-reveal].on {
  opacity: 1;
  transform: none;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

/* ══════════════════════════════════════════════
   GLOBAL TYPE RULES (cascade last, wins everywhere)
   label  = Inter, clamp(12-15px), .12em tracking, uppercase
   body   = Inter, clamp(14-16px), 1.65 line-height, silver
   ══════════════════════════════════════════════ */
:root {
  --label: clamp(12px, 2vw, 15px);
  --body:  clamp(14px, 1.3vw, 16px);
  --track: 0.12em;
}

/* red labels, bold */
.hero-eyebrow, .section-label.tight, .apply-eyebrow, .pw-tag, .modal-label,
.week-n, .phase-card.active .phase-num, .phase-card.active .phase-days {
  font-family: var(--f-body);
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  line-height: 1.8;
  color: var(--red);
}

/* gray labels, medium */
.hero-tagline, .hero-scroll-label, .phases-sub, .cycle-lbl, .phase-days, .pw-sub,
.week-n span, .apply-fine, .footer-copy, .footer-links a, .cat-n, .cat-count,
.modal-note, .nav-badge {
  font-family: var(--f-body);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  line-height: 1.8;
  color: var(--silver);
}

/* gray labels, bold */
.phase-num, .nav-link, .cat-n, .footer-links a {
  font-weight: 700;
  font-size: var(--label);
  letter-spacing: var(--track);
  color: var(--silver);
}

/* body copy */
.is-text-body, .phase-desc, .week-d, .cat-desc, .apply-body, .standard-sub,
.modal-success-body, .modal-input {
  font-family: var(--f-body);
  font-size: var(--body);
  line-height: 1.65;
  color: var(--silver);
  letter-spacing: 0;
}
.modal-input { color: var(--white); }

/* buttons */
.apply-btn, .modal-submit {
  font-size: var(--label);
  font-weight: 700;
  letter-spacing: var(--track);
}

/* the few that stay small on purpose */
.nav-badge { font-size: 11px; letter-spacing: .2em; color: var(--red); }
.cat-count { color: var(--dim); }
.hero-scroll-label { font-size: 12px; }

/* spacing that the larger labels need */
.week-n { line-height: 1.5; }
@media (min-width: 681px) { .week { grid-template-columns: 150px 260px 1fr; } }
.phase-head { margin-bottom: 48px; }

/* ══════════════════════════════════════════════
   MOBILE (≤ 680px)
   ══════════════════════════════════════════════ */
@media (max-width: 680px) {
  /* horizontal drift is a desktop effect; on a phone it pushes text off the spine */
  [data-drift], .statement-line { transform: none !important; }

  .not-item { font-size: clamp(34px, 9.5vw, 48px); line-height: 1.02; }
  .is-heading, .standard-heading { font-size: clamp(48px, 13vw, 64px); }
  .statement { padding: 24px 0 48px; }
  .statement-line { white-space: normal; font-size: clamp(40px, 12vw, 56px); line-height: 0.95; }
  .statement-line.solid { padding-left: var(--spine); }
  .statement-line.outline { padding-right: var(--spine); }
  .statement-line.solid { padding-right: var(--spine); }

  section { padding: 72px var(--spine); }
  .not-col { margin-bottom: 64px; }
  .is-heading { margin-bottom: 40px; }
  .phases-inner { padding: 72px var(--spine) 64px; }
  .cycle-track { margin-bottom: 40px; }
  .apply-section { padding: 96px var(--spine); }
  .apply-ghost { font-size: 220px; opacity: .6; }
  .standard-sub { margin-bottom: 40px; }
  .phase-detail.open { max-height: 2600px; }
  .phase-weeks { padding-top: 32px; }
  .phase-head { margin-bottom: 36px; }

  .modal { padding: 36px 24px; }
  .modal-overlay { padding: 16px; }
  .modal-input { font-size: 16px; }   /* stops iOS zooming on focus */
  .modal-note, .modal-success { text-align: left; }

  /* lighter GPU load on phones */
  #beams i { filter: blur(14px); }
  #beams i:nth-child(3) { display: none; }
  .cat, .phase-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10,10,10,0.88); }
}

/* ══════════════════════════════════════════════
   STACKING GUARANTEE
   Background layers live below everything, no matter what.
   ══════════════════════════════════════════════ */
body { position: relative; isolation: isolate; }
#nebula   { z-index: -9 !important; }
#facets   { z-index: -8 !important; }
#pulse    { z-index: -7 !important; }
#beams    { z-index: -6 !important; }
#spot     { z-index: -5 !important; }
#vignette { z-index: -4 !important; }
#grain    { z-index: -3 !important; }
nav.topnav { z-index: 100; }
main, footer, .flash { position: relative; z-index: 1; }
