/* ==========================================================================
   INKLINE · loop.css
   Ink canvas. Paper type. One marker. The line does the teaching.
   ========================================================================== */

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

html { scroll-padding-top: 90px; }
body {
  background: var(--ink);
  color: var(--paper-dim);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--marker-soft); color: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 99; background: var(--marker); color: var(--on-marker); padding: 10px 18px; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { left: 16px; top: 16px; }
:focus-visible { outline: 2px solid var(--marker); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

/* ---------- type roles ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 660;
  font-variation-settings: "opsz" 96;
  color: var(--paper);
  letter-spacing: -0.022em;
  line-height: 1.0;
  font-size: clamp(38px, 6vw, 84px);
  text-wrap: balance;
  margin-bottom: 28px;
}
.body { max-width: var(--measure); font-size: 17.5px; color: var(--paper-dim); }
.body + .body { margin-top: 16px; }
.body.dim { color: var(--paper-faint); font-size: 15px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--paper-dim); }

.kicker {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--paper-faint); margin-bottom: 26px;
}
.mono-label {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--paper-faint); margin-bottom: 10px;
}
.marker-label { color: var(--marker); }

.hand {
  font-family: var(--font-hand); font-weight: 600;
  color: var(--marker); font-size: clamp(20px, 2.2vw, 27px);
  transform: rotate(-2deg); display: inline-block;
  line-height: 1.2;
}

/* ---------- buttons ---------- */

.btn-marker, .btn-quiet {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 15px 28px; border-radius: var(--r-pill);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease),
              border-color var(--fast) var(--ease), transform var(--base) var(--ease);
}
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-marker { background: var(--marker); color: var(--on-marker); }
.btn-marker:hover { background: var(--marker-up); transform: translateY(-1px); }
.btn-quiet { border: 1px solid var(--hairline-emph); color: var(--paper); }
.btn-quiet:hover { border-color: var(--paper-faint); }
.btn-quiet .play-sm { width: 13px; height: 13px; flex: none; transition: transform var(--base) var(--ease); }
.btn-quiet .play-sm path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn-quiet:hover .play-sm { transform: translateX(2px); }

/* ---------- nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
  background: linear-gradient(180deg, rgba(12, 14, 18, 0.92), rgba(12, 14, 18, 0.7) 70%, transparent);
  transition: transform var(--slow) var(--ease), opacity var(--slow) var(--ease);
}
.nav.gone { transform: translateY(-110%); opacity: 0; pointer-events: none; }
.nav:focus-within { transform: none; opacity: 1; pointer-events: auto; }
.nav-logo img { height: 21px; width: auto; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--paper-dim);
  padding: 6px 2px; position: relative;
  transition: color var(--fast) var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--marker); transition: right var(--base) var(--ease);
}
.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-signin { font-size: 14.5px; font-weight: 500; color: var(--paper-dim); }
.nav-signin:hover { color: var(--paper); }
.nav .btn-marker { padding: 11px 20px; font-size: 14px; }

/* ---------- hero ---------- */

.hero { position: relative; height: 240vh; }
.hero .hold { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(85% 70% at 50% 46%, rgba(12, 14, 18, 0.62) 0%, rgba(12, 14, 18, 0.3) 55%, transparent 78%),
    linear-gradient(180deg, rgba(12, 14, 18, 0.72) 0%, rgba(12, 14, 18, 0.18) 30%, rgba(12, 14, 18, 0.2) 68%, var(--ink) 100%);
}
.hero-copy {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--gutter);
}
.hero-h1 { font-size: clamp(52px, 8.6vw, 128px); margin-bottom: 6px; }
.hero-hand { margin: 2px 0 26px; }
.hero-sub {
  max-width: 640px; font-size: clamp(16.5px, 1.9vw, 19.5px);
  color: var(--paper-dim);
  text-shadow: 0 1px 16px rgba(12, 14, 18, 0.9);
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.hero-micro { margin-top: 20px; font-size: 13.5px; color: var(--paper-faint); text-shadow: 0 1px 12px rgba(12, 14, 18, 0.9); }

.hero-infinity {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  width: 190px; height: 88px; overflow: visible;
}

/* ---------- the line ---------- */

path.draw {
  stroke: var(--paper);
  stroke-opacity: 0.62;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  fill: none;
}
path.draw.infinity-path, path.draw.tie-infinity { stroke: var(--marker); stroke-opacity: 1; stroke-width: 2.5; }
path.draw.loop-path { stroke-opacity: 0.85; }

.thread {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  height: 100%; width: min(560px, 86vw);
  overflow: visible; pointer-events: none; z-index: 0;
}
.tip {
  position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: var(--marker);
  box-shadow: 0 0 0 3px rgba(255, 90, 45, 0.18);
  pointer-events: none; z-index: 1;
}

/* ---------- sections ---------- */

.sect { position: relative; padding: var(--sect) var(--gutter); }
.wrap { max-width: var(--wide); margin: 0 auto; position: relative; z-index: 2; }
.wrap.narrow { max-width: 720px; }
.wrap.wide { max-width: 1180px; }
.wrap.center { text-align: center; display: flex; flex-direction: column; align-items: center; }

.fade { opacity: 0; transform: translateY(14px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
.fade.in { opacity: 1; transform: none; }

.note { margin-top: 22px; }

/* admission: keep copy off the thread */
.admission .wrap { padding-left: clamp(0px, 6vw, 90px); }
.admission .thread { left: 18%; width: 200px; }

/* ---------- the loop lesson ---------- */

.method { padding-bottom: 0; }
.method .wrap { text-align: center; }
.method .lede { margin: 0 auto; max-width: 680px; }
.loop-hold { position: relative; height: 380vh; }
.loop-stage {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(14px, 2.6vh, 34px);
  padding: 80px var(--gutter) 30px;
}
.loop-figure {
  position: relative; flex: none;
  width: min(860px, 90vw); aspect-ratio: 900 / 460;
}
.loop-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loop-path { stroke-opacity: 0.85; }

.loop-anchor {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(980px, 94vw); aspect-ratio: 900 / 460;
}
.station {
  /* anchor = the DOT center, not the column center: dot sits at
     padding-top 14 + dot-half 6.5 = 20.5px from the top of the block */
  position: absolute; left: var(--sx); top: var(--sy); transform: translate(-50%, -20.5px);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 14px; border-radius: var(--r-md);
  opacity: 0.55; transition: opacity var(--base) var(--ease), transform var(--base) var(--ease);
}
.station .st-dot {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--paper-faint); background: var(--ink);
  transition: background var(--base) var(--ease), border-color var(--base) var(--ease), box-shadow var(--base) var(--ease);
  margin-bottom: 7px;
}
.station .st-name { font-family: var(--font-display); font-weight: 640; font-size: clamp(19px, 2.3vw, 27px); color: var(--paper); letter-spacing: -0.01em; }
.station .st-sub { font-family: var(--font-hand); font-weight: 600; font-size: clamp(16px, 1.7vw, 20px); color: var(--paper-faint); transform: rotate(-1.5deg); }
.station.lit { opacity: 1; }
.station.lit .st-dot { background: var(--marker); border-color: var(--marker); box-shadow: 0 0 0 5px var(--marker-soft); }
.station.lit .st-sub { color: var(--marker); }
.station:hover { opacity: 1; transform: translate(-50%, -23px); }

.st-card {
  position: relative; width: min(940px, 92vw); min-height: 150px; text-align: center;
  padding: 24px 34px 26px;
  background: rgba(18, 21, 27, 0.9);
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(8px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.st-card.on { opacity: 1; transform: none; }
.st-teach { color: var(--paper); font-size: 17px; line-height: 1.55; }
.st-example { margin-top: 12px; font-family: var(--font-hand); font-weight: 600; font-size: 19px; color: var(--marker); transform: rotate(-1deg); }
.method-close { padding: 90px var(--gutter) var(--sect); text-align: center; }
.method-close .body { margin: 0 auto; }

/* ---------- tools / map ---------- */

.tools .wrap { text-align: center; }
.tools .lede { margin: 0 auto 44px; max-width: 680px; }
.tools .thread { left: 8%; width: 160px; }

.tray { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 880px; margin: 0 auto 46px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 13px; color: var(--paper-dim);
  border: 1px solid var(--hairline); border-radius: var(--r-pill);
  background: var(--ink-2); padding: 10px 16px;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--base) var(--ease);
}
.chip img { width: 16px; height: 16px; }
.chip:hover { border-color: var(--hairline-emph); background: var(--ink-3); transform: translateY(-2px); }
.chip[aria-pressed="true"] { border-color: var(--paper); background: var(--ink-3); color: var(--paper); }
.chip[aria-pressed="true"]::before { content: "✓ " / ""; font-weight: 700; color: var(--paper); }

.map-stage {
  display: grid; grid-template-columns: minmax(320px, 1fr) minmax(280px, 360px);
  gap: clamp(24px, 4vw, 48px); align-items: start; text-align: left;
}
.qmap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 26px; }
.ax {
  position: absolute; font-family: var(--font-hand); font-weight: 600; font-size: 19px;
  color: var(--paper-faint);
}
.ax-t { top: -6px; left: 50%; transform: translateX(-50%) rotate(-1deg); }
.ax-b { bottom: -6px; left: 50%; transform: translateX(-50%) rotate(1deg); }
.ax-l { left: -10px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
.ax-r { right: -10px; top: 50%; transform: translate(50%, -50%) rotate(90deg); }
.qcell {
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  background: var(--ink-2); padding: 18px; min-height: 148px;
}
.qcell .mono-label { color: var(--paper); margin-bottom: 2px; }
.q-sub { font-size: 12.5px; color: var(--paper-faint); margin-bottom: 12px; }
.q-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.mini {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--hairline); border-radius: var(--r-pill);
  background: var(--ink-3); padding: 6px 12px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--paper-dim);
  opacity: 0; transform: translateY(-14px) scale(0.86);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.mini.on { opacity: 1; transform: none; }
.mini img { width: 15px; height: 15px; }
.mini.gapchip { border: 1.5px dashed var(--marker); color: var(--marker); background: var(--marker-soft); opacity: 1; transform: none; }
.ai-dock {
  grid-column: 1 / -1; border: 1.5px dashed var(--hairline-emph); border-radius: var(--r-md);
  padding: 14px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.ai-dock .mono-label { margin: 0; }
.ai-note { font-size: 14px; color: var(--paper-faint); }
.verdict {
  position: sticky; top: 96px;
  border: 1px solid var(--hairline); border-left: 3px solid var(--marker);
  border-radius: var(--r-md); background: var(--ink-2); padding: 24px 26px;
}
.v-line { color: var(--paper); font-size: 16px; line-height: 1.6; min-height: 76px; }
.v-hand { display: block; margin: 10px 0 4px; }
.verdict .btn-marker { margin-top: 18px; }

/* ---------- end to end rail ---------- */

.endtoend .wrap:first-of-type { text-align: center; }
.endtoend .lede { margin: 0 auto; max-width: 640px; }
.disc-rail { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 72px; padding-top: 40px; }
.disc-line { position: absolute; top: 0; left: 2%; width: 96%; height: 8px; overflow: visible; }
.d-stop { text-align: left; padding: 0 6px; position: relative; opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease) calc(var(--i) * 110ms), transform 500ms var(--ease) calc(var(--i) * 110ms); }
.disc-rail.on .d-stop { opacity: 1; transform: none; }
.d-stop::before {
  content: ""; position: absolute; top: -46px; left: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--paper-faint);
}
.disc-rail.on .d-stop::before { border-color: var(--marker); background: var(--marker); }
.d-stop h3 { font-family: var(--font-display); font-weight: 640; font-size: 21px; color: var(--paper); margin-bottom: 6px; letter-spacing: -0.01em; }
.d-stop p:last-child { font-size: 14.5px; color: var(--paper-faint); }
.rail-hand { display: block; text-align: right; margin-top: 26px; }

/* ---------- proof ---------- */

.proof .thread { left: 88%; width: 140px; }
.stat-row { display: flex; gap: clamp(22px, 5vw, 60px); flex-wrap: wrap; margin: 40px 0 56px; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 680; font-size: clamp(34px, 4vw, 54px); color: var(--paper); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13.5px; color: var(--paper-faint); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 76px; }
.quote { border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--ink-2); padding: 24px; }
.quote blockquote { color: var(--paper-dim); font-size: 15.5px; line-height: 1.6; }
.quote blockquote::before { content: "\201C"; font-family: var(--font-display); font-weight: 700; color: var(--marker); font-size: 26px; line-height: 0; vertical-align: -7px; margin-right: 3px; }
.quote figcaption { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--paper-faint); }

.ninety-h { font-family: var(--font-display); font-weight: 640; font-size: clamp(20px, 2.4vw, 28px); color: var(--paper); letter-spacing: -0.015em; max-width: 760px; margin-bottom: 46px; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 38px; margin-bottom: 26px; }
.tl-line { position: absolute; top: 0; left: 1%; width: 98%; height: 8px; overflow: visible; }
.tl-stop { position: relative; opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease) calc(var(--i) * 130ms), transform 500ms var(--ease) calc(var(--i) * 130ms); }
.timeline.on .tl-stop { opacity: 1; transform: none; }
.tl-stop::before { content: ""; position: absolute; top: -44px; left: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--marker); }
.tl-stop p:last-child { font-size: 14.5px; color: var(--paper-dim); }

/* ---------- practice ---------- */

.learn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 14px; }
.learn { border-top: 2px solid var(--hairline-emph); padding-top: 18px; }
.learn p:last-child { font-size: 15px; color: var(--paper-dim); }

/* ---------- doors ---------- */

.doors .thread { left: 10%; width: 130px; }
.doors .wrap { text-align: center; }
.doors-grid { display: grid; grid-template-columns: 1fr 1fr 1.12fr; gap: 16px; text-align: left; margin-top: 20px; }
.door { border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--ink-2); padding: 30px 28px; display: flex; flex-direction: column; }
.door-ic { border: 1.5px solid var(--marker); background: linear-gradient(180deg, rgba(255, 90, 45, 0.06), transparent 40%), var(--ink-2); }
.price { color: var(--paper); margin: 2px 0 10px; }
.price strong { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 3.6vw, 50px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price s { color: var(--paper-faint); font-size: 20px; margin-right: 8px; }
.price span { color: var(--paper-faint); font-size: 14px; margin-left: 8px; }
.door-desc { color: var(--paper-faint); font-size: 14.5px; margin-bottom: 20px; }
.door ul { list-style: none; display: grid; gap: 10px; align-content: start; flex: 1; margin-bottom: 26px; }
.door li { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; color: var(--paper-dim); }
.door li::before { content: "—" / ""; color: var(--paper-faint); }
.door-ic li::before { content: "✓" / ""; color: var(--marker); font-family: var(--font-mono); font-weight: 700; }
.door-math { margin: -8px 0 20px; padding: 12px 14px; border-left: 3px solid var(--marker); background: var(--ink-3); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 13.5px; color: var(--paper-dim); }
.door-btn { justify-content: center; width: 100%; }
.door-note { margin-top: 12px; text-align: center; font-size: 13px; color: var(--paper-faint); }
.doors-foot { margin-top: 38px; color: var(--paper-faint); font-size: 14px; }

/* ---------- faq ---------- */

.faq .display { margin-bottom: 44px; }
.faq-list { border-top: 1px solid var(--hairline); }
.qa { border-bottom: 1px solid var(--hairline); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 2px; font-weight: 500; font-size: 16.5px; color: var(--paper); transition: color var(--fast) var(--ease); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--marker); }
.qa summary span { font-family: var(--font-mono); color: var(--paper-faint); transition: transform var(--base) var(--ease); }
.qa[open] summary span { transform: rotate(45deg); color: var(--marker); }
.qa p { padding: 0 2px 22px; color: var(--paper-dim); max-width: 620px; }

/* ---------- tie-off ---------- */

.tieoff { padding-top: var(--sect); padding-bottom: calc(var(--sect) * 1.1); }
@media (prefers-reduced-motion: reduce) { .st-card { opacity: 1; } }
.tie-svg { width: 190px; height: 88px; overflow: visible; margin-bottom: 34px; }
.center-lede { max-width: 560px; margin-bottom: 36px; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--hairline); padding: 48px 0 40px; }
.foot-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 26px; flex-wrap: wrap; }
.foot-brand p { margin-top: 12px; font-size: 14px; color: var(--paper-faint); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { font-size: 14px; color: var(--paper-faint); transition: color var(--fast) var(--ease); }
.foot-links a:hover { color: var(--paper); }
.foot-fine { margin-top: 34px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--paper-faint); padding-bottom: env(safe-area-inset-bottom); }
.colophon { color: var(--paper-faint); }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .quotes { grid-template-columns: 1fr; }
  .learn-grid { grid-template-columns: 1fr 1fr; }
  .doors-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .map-stage { grid-template-columns: 1fr; }
  .verdict { position: static; }
  .disc-rail { grid-template-columns: 1fr; gap: 26px; padding-top: 0; padding-left: 38px; }
  .disc-line { display: none; }
  .d-stop::before { top: 4px; left: -32px; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .tl-line { display: none; }
  .tl-stop::before { position: static; display: inline-block; margin-bottom: 8px; }
}

@media (max-width: 760px) {
  :root { --sect: clamp(80px, 11vh, 120px); }
  .nav-links, .nav-signin { display: none; }
  .hero { height: 200vh; }
  .film-scrim { background:
    radial-gradient(120% 55% at 50% 52%, rgba(12, 14, 18, 0.78) 0%, rgba(12, 14, 18, 0.45) 60%, transparent 85%),
    linear-gradient(180deg, rgba(12, 14, 18, 0.72) 0%, rgba(12, 14, 18, 0.35) 30%, rgba(12, 14, 18, 0.38) 68%, var(--ink) 100%); }
  .loop-hold { height: 300vh; }
  .loop-figure { width: 112vw; }
  .station[data-st="1"] { transform: translate(-74%, -50%); }
  .station[data-st="3"] { transform: translate(-26%, -50%); }
  .station .st-sub { display: none; }
  .st-card { min-height: 190px; padding: 18px 18px 20px; }
  .learn-grid { grid-template-columns: 1fr; }
  .admission .wrap { padding-left: 0; }
  .admission .thread, .tools .thread, .proof .thread, .doors .thread { display: none; }
  .stat-row { gap: 26px; }
  .timeline { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 60ms !important; }
  .fade { opacity: 1; transform: none; }
  path.draw { stroke-dashoffset: 0 !important; stroke-dasharray: none !important; }
  .tip { display: none; }
  .station { opacity: 1; }
  .d-stop, .tl-stop { opacity: 1; transform: none; }
  .hero { height: auto; }
  .hero .hold { position: relative; height: 100svh; }
  .loop-hold { height: auto; padding: 60px 0; }
  .loop-stage { position: relative; height: auto; min-height: 640px; }
}

/* earned emphasis when the loop closes */
#finalCta { transition: box-shadow 700ms var(--ease), background var(--fast) var(--ease), transform var(--base) var(--ease); }
#finalCta.lit { box-shadow: 0 0 0 5px var(--marker-soft), 0 10px 44px rgba(255, 90, 45, 0.28); }


/* the (AI) bracket accent */
.ai-br { color: var(--marker); }

/* tray divider for the AI group */
.tray-div {
  font-family: var(--font-hand); font-weight: 600; font-size: 19px;
  color: var(--marker); transform: rotate(-2deg);
  align-self: center; margin: 0 4px 0 10px;
}

/* AI section */
.aisect .wrap { text-align: center; }
.aisect .lede { margin: 0 auto; max-width: 720px; }
.learn-grid.ai-grid { grid-template-columns: repeat(3, 1fr); margin-top: 52px; text-align: left; }

/* founders */
.founders .wrap { text-align: center; }
.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; text-align: left; }
.founder {
  display: flex; gap: 22px; align-items: flex-start;
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  background: var(--ink-2); padding: 26px;
}
.founder img { width: 96px; height: 96px; border-radius: var(--r-pill); object-fit: cover; flex: none; border: 2px solid var(--hairline-emph); }
.founder h3 { font-family: var(--font-display); font-weight: 640; font-size: 22px; color: var(--paper); letter-spacing: -0.01em; margin-bottom: 2px; }
.founder-sub { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-faint); margin-bottom: 10px; }
.founder div p:last-child { font-size: 15px; color: var(--paper-dim); }
.founders-close { margin: 34px auto 0; }

@media (max-width: 900px) {
  .learn-grid.ai-grid { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; }
  .founder { flex-direction: column; }
}

/* footer additions for the myicor.com migration */
.foot-col { display: grid; gap: 9px; align-content: start; }
.foot-col .mono-label { margin-bottom: 4px; }
.cookie-settings-btn {
  text-align: left; padding: 0; font-size: 14px; color: var(--paper-faint);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
  transition: color var(--fast) var(--ease);
}
.cookie-settings-btn:hover { color: var(--paper); }
.foot-row { align-items: flex-start; }
@media (max-width: 900px) { .foot-row { flex-direction: column; } }

/* force the AI group onto its own row, led by the divider */
.tray-break { flex-basis: 100%; height: 0; }


/* the ring in the room: gradient light, marker glow, a floor to sit on */
path.draw.loop-path {
  stroke: url(#loopSheen);
  stroke-width: 3;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.4))
          drop-shadow(0 16px 26px rgba(0, 0, 0, 0.45))
          drop-shadow(0 0 20px rgba(255, 90, 45, 0.10));
}
.loop-floor { fill: rgba(0, 0, 0, 0.5); filter: blur(15px); }
.loop-figure::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 115%; height: 130%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(55% 55% at 50% 46%, rgba(255, 90, 45, 0.06), rgba(246, 243, 236, 0.03) 45%, transparent 72%);
}
@media (prefers-reduced-motion: reduce) { path.draw.loop-path { filter: none; } }

/* stations must track the SAME box the svg renders in (figure), not the
   legacy 980px anchor — final override, wins cascade */
.loop-anchor { position: absolute; inset: 0; left: 0; top: 0; width: 100%; height: 100%; transform: none; aspect-ratio: auto; }

/* ---------- trailer lightbox ---------- */

.trailer-box {
  border: 0; padding: 0; background: transparent;
  max-width: none; max-height: none; overflow: visible;
  margin: auto; /* restore UA centering — the page's universal reset zeroes it */
}
.trailer-box::backdrop {
  /* near-opaque ink scrim, no blur-glass; color-mix keeps it token-driven
     where ::backdrop custom-property inheritance is supported */
  background: rgba(12, 14, 18, 0.96);
  background: color-mix(in srgb, var(--ink) 96%, transparent);
}
.trailer-box[open] { animation: trailer-in var(--slow) var(--ease); }
.trailer-box[open]::backdrop { animation: trailer-fade var(--slow) var(--ease); }
@keyframes trailer-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes trailer-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .trailer-box[open], .trailer-box[open]::backdrop { animation: none; }
}
.trailer-frame { position: relative; }
.trailer-video {
  display: block;
  width: min(1080px, 92vw, calc(82svh * (16 / 9)));
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid var(--hairline-emph);
  border-radius: var(--r-lg);
}
.trailer-close {
  position: absolute; top: -46px; right: -2px;
  width: 36px; height: 36px; padding: 0; border-radius: var(--r-pill);
  color: var(--paper-dim);
  transition: color var(--fast) var(--ease);
}
.trailer-close:hover { color: var(--marker); }
.trailer-close svg { width: 18px; height: 18px; display: block; margin: 0 auto; }
.trailer-close path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
