/* ═══════════════════════════════════════════════════════
   CONTINUUM MARK PAGE — css/continuum-mark.css
   Loads after styles.css and cursor.css.

   Audit fixes baked in:
   #1 — loader markup removed from HTML (no CSS needed)
   #2 — body prose lifted to 17px / α .82 via --prose-body
   #3 — S3 cards always-visible (no max-height collapse)
   #4 — S2 layer descriptions inline; S4 detail prefilled
   #5 — S6 H2 uses .a (color-only accent), not italic tail
   #6 — copy fixes live in HTML / JS
   #7 — .s3-reconcile note styled below body copy
   #8 — S5 attribution removed (no .s5-attr rule needed)
   #9 — CTA copy lives in HTML
   ORBIT-OVERLAP FIX — .mark-layers strip has opaque backing
   ═══════════════════════════════════════════════════════ */

/* ── PAGE TOKENS ──
   Scoped to .continuum-page so they can't leak. Mirrors the
   ventures.css / home.css pattern. */
.continuum-page {
  --prose-strong: rgba(200,216,222,.88);
  --prose-body:   rgba(200,216,222,.82);
  --prose-dim:    rgba(200,216,222,.62);
  --rule:         rgba(200,216,222,.10);
  --rule-strong:  rgba(200,216,222,.18);
}

/* ── REVEAL (page-level, overrides if main.js doesn't provide) ── */
.continuum-page .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
.continuum-page .reveal.in { opacity: 1; transform: none; }
.continuum-page .reveal-d1 { transition-delay: .1s; }
.continuum-page .reveal-d2 { transition-delay: .22s; }
.continuum-page .reveal-d3 { transition-delay: .36s; }
.continuum-page .reveal-d4 { transition-delay: .52s; }

/* ═══════════════════════════════════════════════
   S1 — OPENER
═══════════════════════════════════════════════ */
.cm-s1 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--void);
}
#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.s1-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  max-width: 720px;
}
.s1-eyebrow {
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 1.6rem;
  display: block;
  opacity: 0;
  animation: cm-fade-up .8s .4s ease both;
}
@keyframes cm-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.s1-h1 {
  font-family: var(--fd, 'Cormorant Garamond', serif);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: cm-fade-up .9s .55s ease both;
  letter-spacing: -.02em;
}
.s1-h1 em { font-style: italic; color: var(--acc); }

/* FIX #2 — 17px prose body, α .82 */
.s1-sub {
  max-width: 540px;
  color: var(--prose-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 4rem;
  opacity: 0;
  animation: cm-fade-up .9s .72s ease both;
}
.scroll-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  opacity: 0;
  animation: cm-fade-up .8s 1.1s ease both;
}
.scroll-prompt span {
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--prose-dim);
}
.scroll-line {
  width: 1px;
  height: 52px;
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--acc), rgba(62,207,207,0));
  animation: cm-scroll-drip 2s 1.5s ease-in-out infinite;
}
@keyframes cm-scroll-drip {
  0%   { clip-path: inset(0 0 100% 0); }
  45%  { clip-path: inset(0 0 0% 0); }
  55%  { clip-path: inset(0 0 0% 0); }
  100% { clip-path: inset(100% 0 0% 0); }
}

/* ═══════════════════════════════════════════════
   S2 — THE MARK
═══════════════════════════════════════════════ */
.cm-s2 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--deep, #060e15);
}
#mark-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.s2-anchor {
  position: absolute;
  top: calc(var(--nav-h, 72px) + 2.2rem);
  left: 3.5rem;
  z-index: 3;
  pointer-events: none;
  max-width: 320px;
}
.s2-anchor-eyebrow {
  font-size: .6rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--acc);
  display: block;
  margin-bottom: .5rem;
}
.s2-anchor-title {
  font-family: var(--fd, 'Cormorant Garamond', serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text);
  display: block;
  line-height: 1.1;
}

.ring-detail-panel {
  position: absolute;
  top: calc(var(--nav-h, 72px) + 2.2rem);
  right: 3.5rem;
  width: 280px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .38s ease, transform .38s cubic-bezier(.16,1,.3,1);
}
.ring-detail-panel.visible {
  opacity: 1;
  transform: translateY(0);
}
.rdp-rule {
  width: 32px;
  height: 1px;
  background: var(--acc);
  margin-bottom: .8rem;
}
.rdp-num {
  font-size: .58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--acc);
  display: block;
  margin-bottom: .4rem;
}
.rdp-title {
  font-family: var(--fd, 'Cormorant Garamond', serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  display: block;
  line-height: 1.1;
  margin-bottom: .5rem;
}
/* FIX #2 — panel description reads at proper prose alpha */
.rdp-desc {
  font-size: .82rem;
  color: var(--prose-body);
  line-height: 1.7;
  display: block;
}

.mark-hint {
  position: absolute;
  /* Sit above the layer-list strip (≈8rem tall on desktop) */
  bottom: calc(3.5rem + 4.5rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: .63rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--prose-dim);
  pointer-events: none;
  z-index: 3;
  transition: opacity .4s;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.mark-hint::before,
.mark-hint::after {
  content: '';
  width: 24px;
  height: 1px;
  background: rgba(62,207,207,0.22);
}
.mark-hint.faded { opacity: 0; }

.mark-hint-mobile { display: none; }
@media (max-width: 720px), (pointer: coarse) {
  .mark-hint-desktop { display: none; }
  .mark-hint-mobile { display: inline; }
}

/* FIX #4 + ORBIT-OVERLAP FIX
   Layer list ships descriptions inline so keyboard / touch
   users get full meaning without the hover panel. The strip
   is full-width with an opaque gradient backing so the orbit
   ring + ring-labels never bleed through the prose. */
.mark-layers {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  margin: 0 auto;
  padding: 3.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem 1.8rem;
  list-style: none;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      var(--deep, #060e15) 0%,
      var(--deep, #060e15) 55%,
      rgba(6,14,21,.92) 75%,
      rgba(6,14,21,0) 100%
    );
}
.mark-layers li {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  border-top: 1px solid rgba(62,207,207,.14);
  padding-top: .65rem;
}
.mark-layers .ml-num {
  font-family: var(--fd, 'Cormorant Garamond', serif);
  font-style: italic;
  font-size: .82rem;
  color: var(--acc);
  opacity: .8;
  letter-spacing: 0;
}
.mark-layers .ml-name {
  font-family: var(--fb, 'DM Sans', sans-serif);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.mark-layers .ml-desc {
  font-family: var(--fb, 'DM Sans', sans-serif);
  font-size: .72rem;
  color: var(--prose-body);
  line-height: 1.55;
  margin-top: .15rem;
}
@media (max-width: 1024px) {
  .mark-layers {
    grid-template-columns: repeat(2, 1fr);
    padding: 2.5rem 2rem;
    gap: 1.2rem 1.6rem;
  }
}
@media (max-width: 560px) {
  .mark-layers {
    grid-template-columns: 1fr;
    gap: .8rem;
    padding: 2rem 1.5rem;
  }
  .mark-layers .ml-desc { display: none; }
}

/* ═══════════════════════════════════════════════
   S3 — THREE FORMS
═══════════════════════════════════════════════ */
.cm-s3 {
  position: relative;
  padding: 9rem 0;
  background: var(--void);
  overflow: hidden;
}
#s3-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .35;
}
.s3-inner { position: relative; z-index: 1; }
.s3-grid {
  display: grid;
  grid-template-columns: 5fr 7fr; /* asymmetric — matches site rhythm */
  gap: 5rem;
  align-items: start;
}
.s3-left .eyebrow { margin-bottom: 1rem; }
.s3-h2 {
  font-family: var(--fd, 'Cormorant Garamond', serif);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.8rem;
  margin-top: 1.2rem;
  letter-spacing: -.01em;
}
.s3-h2 em { font-style: italic; color: var(--acc); }

/* FIX #2 */
.s3-body {
  color: var(--prose-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 46ch;
}
.s3-body + .s3-body { margin-top: 1.1rem; }

/* FIX #7 — small reconciliation note for the 5/3/5 framing */
.s3-reconcile {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-family: var(--fb, 'DM Sans', sans-serif);
  font-size: .78rem;
  color: var(--prose-dim);
  line-height: 1.7;
  max-width: 46ch;
}
.s3-reconcile b {
  color: var(--acc);
  font-weight: 500;
  letter-spacing: .04em;
}

.s3-logo-wrap {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin: 2.5rem 0 0;
  aspect-ratio: 1 / 1;
  opacity: .85;
}
#s3-logo-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.s3-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* FIX #3 — cards always-visible. Hover/focus only changes
   background + indicator + canvas highlight. No accordion,
   no max-height collapse, no opacity-0 on body. */
.s3-pillar {
  padding: 1.8rem 2rem;
  border-bottom: 1px solid rgba(62,207,207,0.07);
  transition: background .3s;
  cursor: default;
}
.s3-pillar:first-child { border-top: 1px solid rgba(62,207,207,0.07); }
.s3-pillar:hover,
.s3-pillar:focus-within {
  background: rgba(62,207,207,0.04);
}
.sp-indicator {
  width: 28px;
  height: 2px;
  background: rgba(62,207,207,0.25);
  margin-bottom: .9rem;
  transition: background .3s, width .4s;
}
.s3-pillar.is-active .sp-indicator,
.s3-pillar:hover .sp-indicator,
.s3-pillar:focus-within .sp-indicator {
  background: var(--acc);
  width: 40px;
}
.sp-num {
  font-size: .58rem;
  letter-spacing: .22em;
  color: var(--acc);
  text-transform: uppercase;
  display: block;
  margin-bottom: .45rem;
}
.sp-title {
  font-family: var(--fd, 'Cormorant Garamond', serif);
  font-size: 1.25rem;
  color: var(--text);
  display: block;
  margin-bottom: .55rem;
}
/* FIX #2 + #3 — body always visible at proper prose size */
.sp-body {
  font-size: .94rem;
  color: var(--prose-body);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   S4 — FIVE FORCES (WHEEL)
═══════════════════════════════════════════════ */
.cm-s4 {
  position: relative;
  padding: 9rem 0;
  background: var(--deep, #060e15);
  overflow: hidden;
}
#s4-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.s4-inner { position: relative; z-index: 1; }
.s4-header { text-align: center; margin-bottom: 5rem; }
.s4-header .eyebrow { justify-content: center; }
.s4-header .eyebrow::before,
.s4-header .eyebrow::after { display: none; }
.s4-h2 {
  font-family: var(--fd, 'Cormorant Garamond', serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.05;
  margin-top: 1rem;
  letter-spacing: -.01em;
}
.s4-h2 em { font-style: italic; color: var(--acc); }
/* FIX #2 */
.s4-sub {
  color: var(--prose-body);
  font-size: 1.0625rem;
  margin-top: 1.4rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.wheel-wrap {
  position: relative;
  width: 520px;
  max-width: 100%;
  aspect-ratio: 1/1;
  margin: 0 auto;
}
#wheel-canvas { width: 100%; height: 100%; display: block; }

/* FIX #4 — detail panel ships idle copy in markup, never blank */
.force-detail {
  margin-top: 3.5rem;
  text-align: center;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  transition: opacity .4s;
}
.force-detail.is-idle { opacity: .8; }
.fd-num {
  font-size: .6rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--acc);
}
.fd-title {
  font-family: var(--fd, 'Cormorant Garamond', serif);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--text);
}
/* FIX #2 */
.fd-body {
  font-size: 1.0625rem;
  color: var(--prose-body);
  max-width: 540px;
  line-height: 1.7;
}

.forces-fallback {
  list-style: none;
  padding: 0;
  margin: 5rem auto 0;
  max-width: 920px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}
.forces-fallback > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(62,207,207,0.08);
  align-items: baseline;
}
.forces-fallback > li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc((100% - 3rem) / 2);
  margin: 0 auto;
}
.forces-fallback .ff-num {
  font-family: var(--fd, 'Cormorant Garamond', serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--acc);
  min-width: 1.6rem;
  line-height: 1;
}
.forces-fallback .ff-text {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.forces-fallback .ff-title {
  font-family: var(--fd, 'Cormorant Garamond', serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
}
/* FIX #2 */
.forces-fallback .ff-body {
  color: var(--prose-body);
  font-size: 1.0625rem;
  line-height: 1.7;
}
@media (max-width: 720px) {
  .forces-fallback {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 3.5rem;
  }
  .forces-fallback > li:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }
}

/* ═══════════════════════════════════════════════
   S5 — QUOTE
   FIX #8 — no .s5-attr rule (attribution removed in HTML).
═══════════════════════════════════════════════ */
.cm-s5 {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem;
  overflow: hidden;
  background: var(--void);
  text-align: center;
}
#s5-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.s5-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.s5-rule {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--acc), transparent);
}
.s5-quote {
  font-family: var(--fd, 'Cormorant Garamond', serif);
  font-size: clamp(1.9rem, 4.5vw, 3.6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  max-width: 780px;
  color: var(--text);
  border: none;
  padding: 0;
  background: none;
}

/* ═══════════════════════════════════════════════
   S6 — CTA
   FIX #5 — H2 last phrase carries accent COLOR, not italics.
   Breaks the italic-tail tic shared with S1 / S3 / S4.
═══════════════════════════════════════════════ */
.cm-s6 {
  position: relative;
  padding: 8rem 2rem;
  background: var(--deep, #060e15);
  text-align: center;
  overflow: hidden;
}
#s6-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.s6-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 760px;
  margin: 0 auto;
}
.s6-icon svg {
  width: 64px;
  height: 64px;
  animation: cm-s6-pulse 4s ease-in-out infinite;
}
@keyframes cm-s6-pulse {
  0%,100% { opacity: .45; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}
.s6-h2 {
  font-family: var(--fd, 'Cormorant Garamond', serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.s6-h2 .a {
  /* FIX #5 — accent via color only, no italic. */
  color: var(--acc);
  font-style: normal;
}
.s6-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .s2-anchor { left: 2rem; max-width: 240px; }
  .ring-detail-panel { right: 2rem; width: 240px; }
}
@media (max-width: 900px) {
  .s3-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 640px) {
  .s2-anchor { display: none; }
  .ring-detail-panel { display: none; }
}

/* ═══════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .continuum-page .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .s6-icon svg,
  .scroll-line::after {
    animation: none !important;
  }
}
