/* =====================================================
   The AI Operator by 187N · production website
   White brand canon · #173EF5 · PP NeueBit / Mondwest /
   Space Mono / Inter
   ===================================================== */

@font-face { font-family: 'PP NeueBit'; src: url('assets/fonts/ppneuebit-bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'PP Mondwest'; src: url('assets/fonts/ppmondwest-regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('assets/fonts/SpaceMono-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('assets/fonts/SpaceMono-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --bg: #FFFFFF;
  --ink: #121212;
  --ink-2: #7E7E7E;
  --ink-3: #AAAAAA;
  --blue: #173EF5;
  --blue-08: rgba(23, 62, 245, 0.08);
  --blue-15: rgba(23, 62, 245, 0.15);
  --band: #F8F8F8;
  --line: #E8E8EC;
  --display: 'PP NeueBit', 'Space Mono', 'Courier New', monospace;
  --pixelserif: 'PP Mondwest', Georgia, serif;
  --mono: 'Space Mono', 'Courier New', monospace;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* clip doesn't create a scroll container, keeps position:sticky working */
}
img { max-width: 100%; display: block; }
a { color: inherit; }
section { scroll-margin-top: 96px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 720px; }

.section { position: relative; padding: 112px 0; }
.section--band { background: var(--band); }
body:is([data-page="index"], [data-page="selfpaced"], [data-page="bwm"], [data-page="enterprise"]) .section--band {
  background: #fff;
}

.hl { color: var(--blue); }
.hl-lavender,
.hl-blue {
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hl-lavender {
  padding: 0 0.12em;
  background: #E8E8FF;
}
.hl-lavender--nowrap { white-space: nowrap; }
.hl-blue { padding: 0.02em 0.12em 0.06em; background: var(--blue); color: #fff; }
.dmd { color: var(--blue); font-size: 0.7em; margin-right: 8px; vertical-align: 1px; }

/* ---------- section heads ---------- */
.sec-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue); display: inline-block; margin-bottom: 20px;
}
.eyebrow::after {
  content: '▮'; margin-left: 6px; animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  line-height: 0.95; letter-spacing: 0.01em; color: var(--ink);
}
.lead { margin-top: 24px; font-size: 1.08rem; color: var(--ink-2); }
.prose p { margin-bottom: 16px; color: var(--ink-2); font-size: 1.02rem; }
.prose strong { color: var(--ink); }

/* ---------- reveal ---------- */
.rev { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rev.in { opacity: 1; transform: none; }

/* ---------- crosses (moving accents) ---------- */
.cross {
  position: absolute; font-family: var(--mono); color: var(--blue);
  font-size: 1.1rem; opacity: 0.5; pointer-events: none; z-index: 1;
  animation: crosspulse 5s ease-in-out infinite;
}
@keyframes crosspulse {
  0%, 100% { opacity: 0.18; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.65; transform: scale(1.25) rotate(90deg); }
}
.cross--a { top: 18%; left: 5%; }
.cross--b { top: 68%; left: 46%; animation-delay: 1.4s; }
.cross--c { top: 24%; right: 6%; animation-delay: 2.6s; }
.cross--d { top: 64px; right: 8%; animation-delay: 0.8s; }
.cross--e { top: 80px; left: 6%; animation-delay: 2s; }
.cross--f { bottom: 90px; right: 10%; animation-delay: 1.1s; }
.cross--g { top: 70px; left: 8%; animation-delay: 3s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none;
  padding: 13px 26px; border-radius: 4px; cursor: pointer; border: 0;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn--raised {
  background: #FFFFFF; color: var(--ink);
  border: 1px solid #CCCCCC;
  box-shadow: inset -2px -2px 0 0 #E3E3E3;
}
.btn--raised:active { box-shadow: inset 2px 2px 0 0 #E3E3E3; }
.btn--blue {
  background: var(--blue); color: #FFFFFF;
  box-shadow: inset -2px -2px 0 0 rgba(0, 0, 0, 0.28);
}
.btn--blue:active { box-shadow: inset 2px 2px 0 0 rgba(0, 0, 0, 0.28); }
.btn--blue:hover { transform: translateY(-1px); }
.btn--lg { padding: 16px 30px; font-size: 0.82rem; }
.btn--sm { padding: 9px 18px; font-size: 0.68rem; }
.btn--full { width: 100%; }

/* letter-roll hover */
.rl { display: inline-block; overflow: hidden; height: 1.25em; vertical-align: bottom; }
.rl i {
  display: block; font-style: normal;
  transition: transform 0.34s var(--ease);
  transition-delay: calc(var(--i) * 16ms);
}
.rl i::after { content: attr(data-c); display: block; }
[data-roll]:hover .rl i, [data-roll]:focus-visible .rl i { transform: translateY(-50%); }

/* ---------- nav (square full-width bar, per the deposit-model build) ---------- */
.pillnav {
  position: fixed; top: 0; left: 0; right: 0; width: 100%;
  z-index: 100; display: flex; align-items: center; gap: 16px;
  padding: 13px max(20px, calc((100% - 1120px) / 2));
  background: #fff; color: var(--ink);
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
  transition: box-shadow 0.28s ease;
}
.pillnav.is-scrolled { box-shadow: 0 6px 22px rgba(0, 0, 0, 0.1); }
.pillnav__brand {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem;
  text-decoration: none; letter-spacing: 0.02em; line-height: 1;
  white-space: nowrap; flex-shrink: 0;
}
.pillnav__links {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 24px;
}
.pillnav__links a {
  font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; text-decoration: none; color: var(--ink-2);
  transition: color 0.25s; white-space: nowrap;
}
.pillnav__links a:hover { color: var(--blue); }
.pillnav > .btn { margin-left: auto; flex-shrink: 0; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 190px 0 120px; overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(23, 62, 245, 0.13) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 0%, transparent 68%);
  animation: griddrift 24s linear infinite;
}
@keyframes griddrift { to { background-position: 26px 26px; } }
.hero__row { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; position: relative; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; margin-bottom: 30px; background: #fff;
}
.livedot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
  display: inline-block; animation: livedot 1.6s ease-in-out infinite;
}
.livedot--lg { width: 11px; height: 11px; }
@keyframes livedot {
  0%, 100% { box-shadow: 0 0 0 0 var(--blue-15); }
  55% { box-shadow: 0 0 0 7px rgba(23, 62, 245, 0); }
}
.hero__headline {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(3.2rem, 6.6vw, 5.9rem);
  line-height: 0.92; letter-spacing: 0.005em; margin-bottom: 26px;
}
.hero__nowrap { white-space: nowrap; }
.hero__hl { color: var(--blue); }
.hero__sub { max-width: 520px; color: var(--ink-2); font-size: 1.06rem; margin-bottom: 34px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.hero__micro { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3); letter-spacing: 0.03em; }
.rev { will-change: transform; }
.hero__copy .rev { transition-delay: 0s; }

.hero__ascii { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__media {
  width: min(560px, 100%);
  aspect-ratio: 0.747;
  isolation: isolate;
  will-change: transform, opacity;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block; object-fit: contain;
  background: transparent;
  mix-blend-mode: multiply;
  pointer-events: none;
  will-change: opacity;
}
.hero__video--idle { z-index: 1; opacity: 1; }
.hero__video--deconstruct { z-index: 2; opacity: 0; }
#torus { width: min(460px, 100%); aspect-ratio: 1; cursor: crosshair; }
.hero__hint {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}
/* touch devices can't hover — the interaction prompts are noise there */
@media (hover: none) {
  .hero__hint { display: none; }
}

/* ---------- hero scroll scene (index) ----------
   The hero pins for the length of .heroScene while pages.js scrubs the
   highlight → squiggle → Hermes-crash timeline off scroll position. */
.heroScene { height: 380vh; }
.heroScene .hero {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  padding: 90px 0 40px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: clip; /* flying letters + oversized Hermes clip at the viewport edge */
}
.heroScene .hero__copy { position: relative; z-index: 5; }
.heroScene .hero__ascii { position: relative; z-index: 1; will-change: transform; transform-origin: 50% 50%; }
.heroScene .hero__media.is-transitioning { z-index: 4; }
/* full-viewport zoom overlay: the crash/consume stages re-rasterise the brain
   here at native resolution so it resolves into real ASCII glyphs as it grows */
.heroZoom { position: absolute; inset: 0; z-index: 1; display: none; pointer-events: none; }
.heroScene .hero__headline { position: relative; }
/* while scrubbing: entrance transitions off, Hermes untouchable (its hover lens
   reads untransformed coords), hint hidden */
.heroScene .hero.scene-live .rev { transition: none; opacity: 1; transform: none; }
.heroScene .hero.scene-live .hero__ascii { pointer-events: none; }
.heroScene .hero.scene-live .hero__hint { opacity: 0; }
.hero__hint { transition: opacity 0.3s ease; }

.hl-sweep {
  /* --hla fades the wash out when the letters explode */
  background-image: linear-gradient(rgba(207, 214, 255, var(--hla, 1)), rgba(207, 214, 255, var(--hla, 1)));
  background-repeat: no-repeat;
  background-position: 0 58%;
  background-size: var(--hlw, 0%) 72%;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* tablet: Hermes stacks above the copy — cap by height, keep it as large as fits
   (canvas grid density is set from its CSS size at init: bigger = more detail) */
@media (max-width: 960px) and (min-width: 761px) {
  .heroScene .hero .hero__media { width: min(400px, 44vw, 38svh); }
}

/* shorter laptop windows: compact the hero so the scene still fits one screen */
@media (min-width: 761px) and (max-height: 850px) {
  .heroScene .hero { padding: 72px 0 20px; }
  .heroScene .hero__headline { font-size: clamp(2.8rem, 5.2vw, 4.6rem); margin-bottom: 18px; }
  .heroScene .hero__badge { margin-bottom: 18px; }
  .heroScene .hero__sub { font-size: 0.95rem; margin-bottom: 22px; }
  .heroScene .hero .hero__media { width: min(520px, 34vw, 64svh); }
}
@media (min-width: 761px) and (max-height: 700px) {
  .heroScene .hero__headline { font-size: clamp(2.4rem, 4.2vw, 3.6rem); }
  .heroScene .hero__sub { max-width: 460px; }
  .heroScene .hero .hero__media { width: min(520px, 34vw, 60svh); }
}

/* fallback: reduced motion / no sticky / hero taller than the viewport */
.heroScene.scene-off { height: auto; }
.heroScene.scene-off .hero { position: relative; height: auto; padding: 190px 0 120px; overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .hl-sweep { background-size: 100% 72%; }
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 18px 0; background: #fff; white-space: nowrap;
}
.marquee__label {
  display: block; text-align: center; font-family: var(--mono); font-size: 0.64rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3);
  padding-bottom: 16px;
}
.marquee__track { display: inline-flex; animation: marq 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.marquee__set {
  display: inline-flex; align-items: center; gap: 34px; padding-right: 34px;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.marquee__set em { font-style: normal; color: var(--ink-3); }
.marquee__set b { font-weight: 400; color: var(--ink); }
.marquee__set i { font-style: normal; color: var(--blue); font-size: 0.6rem; }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none; }
}

/* ---------- mac window / demo ---------- */
.macwin {
  max-width: 880px; margin: 0 auto; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; overflow: hidden;
  box-shadow: 0 24px 60px rgba(18, 18, 18, 0.07);
}
.macwin__bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: var(--band);
}
.macwin__bar span { width: 11px; height: 11px; border-radius: 50%; border: 1px solid #CFCFCF; background: #fff; }
.macwin__bar span:first-child { background: var(--blue); border-color: var(--blue); }
.macwin__bar em {
  font-style: normal; font-family: var(--mono); font-size: 0.68rem;
  color: var(--ink-3); margin-left: 10px; letter-spacing: 0.08em;
}
.macwin__body { padding: 28px; }

.caret {
  display: inline-block; width: 9px; height: 1.1em; background: var(--blue);
  vertical-align: text-bottom; animation: blink 1s steps(1) infinite; margin-left: 2px;
}
.caret--on { width: 12px; height: 1.4em; }

#difference,
#difference * { font-family: var(--body); }
#difference .sec-head h2 {
  font-weight: 700; line-height: 1.05; letter-spacing: -0.04em;
}
#difference .eyebrow { font-weight: 600; }
#difference .macwin__bar em { color: #666; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; }
.demo__thread {
  display: flex; flex-direction: column; gap: 12px; min-height: 624px;
}
.demo__meta {
  text-align: center; color: #666; font-size: 0.72rem;
  font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
}
.demo__bubble {
  max-width: 76%; padding: 12px 15px; border: 1px solid var(--line);
  border-radius: 11px; color: var(--ink); font-size: 0.92rem; line-height: 1.5;
}
.demo__bubble--user {
  align-self: flex-end; background: var(--band); border-bottom-right-radius: 3px;
}
.demo__bubble--assistant {
  align-self: flex-start; background: var(--blue-08); border-color: var(--blue-15);
  border-bottom-left-radius: 3px;
}
.demo__typing {
  align-self: flex-start; display: none; gap: 5px; padding: 12px 15px;
  background: var(--blue-08); border: 1px solid var(--blue-15);
  border-radius: 11px 11px 11px 3px;
}
.demo__typing.on { display: inline-flex; }
.demo__typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
  opacity: 0.35; animation: demoTyping 1.1s ease-in-out infinite;
}
.demo__typing i:nth-child(2) { animation-delay: 0.18s; }
.demo__typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes demoTyping { 45% { opacity: 1; transform: translateY(-3px); } }
.demo__event {
  align-self: flex-start; width: 86%; display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 3px 0 var(--band);
}
.demo__number {
  display: grid; place-items: center; width: 32px; height: 32px;
  background: var(--blue); color: #fff; font-size: 0.68rem; font-weight: 600;
}
.demo__eventcopy { min-width: 0; }
.demo__eventcopy strong {
  display: block; color: var(--ink); font-size: 0.82rem; font-weight: 700;
  line-height: 1.25; text-transform: uppercase; letter-spacing: 0.02em;
}
.demo__eventcopy strong span { color: var(--ink-2); font-weight: 500; }
.demo__eventcopy small {
  display: block; margin-top: 3px; color: #666; font-size: 0.76rem; line-height: 1.35;
}
.demo__event > em {
  color: var(--blue); font-size: 0.66rem; font-style: normal;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.demo__tools { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.demo__tool {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px;
  background: var(--band); border: 1px solid var(--line); border-radius: 5px;
  color: #666; font-size: 0.68rem; line-height: 1;
}
.demo__tool img { width: 16px; height: 16px; object-fit: contain; flex: 0 0 auto; }
[data-demo-step] {
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}
[data-demo-step].on { opacity: 1; transform: none; }
.demo__replay {
  margin: 12px auto 0; display: block; font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3);
  background: none; border: 0; cursor: pointer; padding: 4px 0;
  transition: color 0.25s;
}
.demo__replay:hover { color: var(--blue); }
.demo__replay:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

/* ---------- feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 26px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(18, 18, 18, 0.08); border-color: var(--blue-15); }
.card h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 700; line-height: 1; margin-bottom: 10px; }
.card p { font-size: 0.92rem; color: var(--ink-2); }
.card__viz {
  height: 76px; border-radius: 6px; background: var(--band);
  border: 1px dashed var(--line); margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  overflow: hidden; position: relative;
  font-family: var(--mono);
}
/* course: equalizer bars */
.card__viz--course span {
  width: 7px; background: var(--blue); border-radius: 2px; opacity: 0.75;
  animation: eq 1.4s ease-in-out infinite;
}
.card__viz--course span:nth-child(1) { height: 22px; animation-delay: 0s; }
.card__viz--course span:nth-child(2) { height: 38px; animation-delay: 0.15s; }
.card__viz--course span:nth-child(3) { height: 28px; animation-delay: 0.3s; }
.card__viz--course span:nth-child(4) { height: 44px; animation-delay: 0.45s; }
.card__viz--course span:nth-child(5) { height: 18px; animation-delay: 0.6s; }
@keyframes eq { 50% { transform: scaleY(0.45); } }
/* live */
.card__viz--live b { font-size: 0.85rem; letter-spacing: 0.3em; color: var(--blue); }
/* experts: orbiting diamonds */
.card__viz--experts span { color: var(--blue); animation: floaty 3s ease-in-out infinite; font-size: 0.8rem; }
.card__viz--experts span:nth-child(2) { animation-delay: 0.6s; font-size: 1.1rem; }
.card__viz--experts span:nth-child(3) { animation-delay: 1.2s; }
@keyframes floaty { 50% { transform: translateY(-9px); } }
/* library counter */
.card__viz--library b { font-size: 1.7rem; color: var(--blue); font-weight: 700; }
.card__viz--library span { font-size: 0.62rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; }
/* community: pulsing dots */
.card__viz--community span {
  width: 9px; height: 9px; border-radius: 50%; background: var(--blue);
  opacity: 0.25; animation: popdot 2.8s ease-in-out infinite;
}
.card__viz--community span:nth-child(odd) { animation-delay: 0.7s; }
.card__viz--community span:nth-child(3n) { animation-delay: 1.5s; }
@keyframes popdot { 50% { opacity: 0.9; transform: scale(1.3); } }
/* keep: big caret */
.card__viz--keep .caret--on { animation: blink 0.9s steps(1) infinite; }

/* ---------- layers (mechanism) ---------- */
.layers { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: stretch; }
.layers__list { display: flex; flex-direction: column; gap: 10px; }
.layer {
  text-align: left; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 18px 20px 14px; cursor: pointer;
  font-family: var(--body); transition: border-color 0.3s, background 0.3s;
  position: relative; overflow: hidden;
}
.layer:hover { border-color: var(--blue-15); }
.layer__num {
  display: block; font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.16em; color: var(--ink-3); margin-bottom: 6px;
}
.layer__name { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 700; line-height: 1; }
.layer__name em { font-style: normal; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-left: 8px; }
.layer__body {
  display: block; font-size: 0.9rem; color: var(--ink-2);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.6s var(--ease), opacity 0.6s var(--ease), margin 0.6s var(--ease);
}
.layer__body strong { color: var(--ink); }
.layer.is-on { border-color: var(--blue); }
.layer.is-on .layer__num { color: var(--blue); }
.layer.is-on .layer__body { max-height: 200px; opacity: 1; margin-top: 10px; }
.layer__bar { display: block; height: 2px; background: var(--line); border-radius: 2px; margin-top: 14px; overflow: hidden; }
.layer__bar i { display: block; height: 100%; width: 0%; background: var(--blue); }
.layer.is-on .layer__bar i { animation: layerbar 6s linear forwards; }
@keyframes layerbar { from { width: 0%; } to { width: 100%; } }
.layers__viz {
  position: relative; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; overflow: hidden; min-height: 380px;
}
#layerViz { position: absolute; inset: 0; width: 100%; height: 100%; }
.layers__vizlabel {
  position: absolute; bottom: 14px; left: 16px; font-family: var(--mono);
  font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.layers__close { max-width: 680px; margin: 48px auto 0; text-align: center; color: var(--ink-2); }
.layers__close strong { color: var(--ink); }

/* ---------- office hours ---------- */
.office { display: grid; grid-template-columns: 2fr 1fr; gap: 34px; align-items: start; }
.office__card {
  border: 0; border-radius: 0; background: transparent; overflow: visible;
  box-shadow: none;
}
.office__cardtop {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; border-bottom: 1px solid var(--line); color: var(--ink);
}
.office__cardbody { padding: 18px; font-family: var(--mono); font-size: 0.74rem; color: var(--ink-2); line-height: 1.9; }

/* ---------- testimonials ---------- */
.quotes { columns: 2; column-gap: 18px; max-width: 920px; margin: 0 auto; }
.quote {
  break-inside: avoid; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 26px; margin-bottom: 18px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.quote:hover { transform: translateY(-3px); border-color: var(--blue-15); box-shadow: 0 16px 40px rgba(18, 18, 18, 0.07); }
.quote blockquote p {
  font-family: var(--body); font-size: 0.95rem; line-height: 1.65;
  color: var(--ink); margin-bottom: 12px;
}
.quote blockquote p::first-letter { }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote figcaption img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.quote__review-avatar {
  display: block; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
  background-image: var(--review-avatar); background-repeat: no-repeat;
  background-size: 570px auto; background-position: -23px -23px;
  border: 1px solid var(--line);
}
.quote__initials {
  display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px;
  border-radius: 50%; background: var(--blue-08); color: var(--blue);
  border: 1px solid var(--blue-15);
  font-family: var(--mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
}
.quote__trustmark {
  display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px;
  border-radius: 50%; background: #00b67a; color: #fff; font-size: 1rem;
}
.quote figcaption b { display: block; font-size: 0.86rem; }
.quote figcaption em { display: block; font-style: normal; font-family: var(--mono); font-size: 0.64rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* ---------- scramble divider ---------- */
.scramline { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
#scramline { display: block; width: 100%; height: 44px; cursor: crosshair; }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; max-width: 860px; margin: 0 auto; }
.tier {
  background: #fff; border: 2px solid var(--line); border-radius: 8px; padding: 30px;
  display: flex; flex-direction: column; gap: 0;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tier:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(18, 18, 18, 0.08); }
.tier--main { border-color: var(--blue); box-shadow: 0 20px 56px rgba(23, 62, 245, 0.12); }
.tier .btn { min-height: 54px; }
.tier__tag {
  align-self: flex-start; font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue);
  background: var(--blue-08); border-radius: 3px; padding: 4px 9px; margin-bottom: 18px;
}
.tier__tag--vip { color: var(--ink); background: var(--band); border: 1px solid var(--line); }
.tier__name { font-family: var(--display); font-size: 2.1rem; font-weight: 700; line-height: 1; margin-bottom: 12px; }
.tier__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.tier__price b { font-family: var(--display); font-size: 2.9rem; font-weight: 700; line-height: 1; color: var(--blue); }
.tier__price span { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.tier__seats { font-size: 0.84rem; color: var(--ink-2); margin-bottom: 20px; }
.dlist { list-style: none; margin-bottom: 26px; flex: 1; }
.dlist li {
  position: relative; padding: 8px 0 8px 22px; font-size: 0.88rem;
  color: var(--ink-2); border-top: 1px dashed var(--line);
}
.dlist li::before {
  content: '◆'; position: absolute; left: 0; top: 9px;
  color: var(--blue); font-size: 0.58rem;
}
.tier__sub {
  margin-top: 12px; font-family: var(--mono); font-size: 0.64rem;
  color: var(--ink-3); text-align: center; letter-spacing: 0.04em;
}
.tiers--compact .tier { padding: 22px; }
.tiers--compact .tier__tag { margin-bottom: 12px; }
.tiers--compact .tier__name { font-size: 1.8rem; margin-bottom: 9px; }
.tiers--compact .tier__price { margin-bottom: 12px; }
.tiers--compact .tier__price b,
.tiers--compact .tier--main .tier__price b { font-size: 2.5rem; }
.tier__summary {
  min-height: 3.1em;
  margin: 0 0 14px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.tier--main .tier__summary { color: rgba(255, 255, 255, 0.88); }
.tiers--compact .dlist { margin-bottom: 18px; }
.tiers--compact .dlist li { padding-top: 6px; padding-bottom: 6px; font-size: 0.8rem; }
.tiers--compact .dlist li::before { top: 7px; }
.tier__action { margin-top: auto; display: flex; flex-direction: column; }
.tiers--compact .tier .btn { min-height: 46px; }
.tiers--compact .tier__sub { height: 3.3em; margin-top: 9px; }

/* ---------- guarantee ---------- */
.guarantee { text-align: center; position: relative; padding: 24px 0; }
.guarantee__stamp {
  display: inline-block; font-family: var(--mono); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.22em; color: var(--blue); border: 2px dashed var(--blue);
  border-radius: 6px; padding: 10px 20px; margin-bottom: 30px;
  transform: rotate(-3deg); animation: stampwobble 6s ease-in-out infinite;
}
@keyframes stampwobble {
  0%, 100% { transform: rotate(-3deg) scale(1); }
  50% { transform: rotate(2deg) scale(1.03); }
}
.guarantee h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; }
.guarantee .prose { max-width: 560px; margin: 0 auto; text-align: left; }
/* the circular seal is the mobile stamp treatment (mobile.css shows it) */
.guarantee__seal { display: none; }
.guarantee__seal text { font-family: var(--mono); fill: currentColor; }

/* ---------- footer: blue band + sand, same design as the live site ---------- */
.foot { position: relative; overflow: hidden; background: var(--blue); padding: 72px 24px 76px; min-height: 0; }
.foot__inner {
  position: relative; z-index: 1; max-width: 1060px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center;
}
.foot__brand img { display: block; width: 220px; height: auto; filter: brightness(0) invert(1); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; }
.foot__nav a {
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.88); text-decoration: none;
}
.foot__nav a:hover { color: #fff; text-decoration: underline; }
.foot__contact { font-size: 0.9375rem; line-height: 1.7; color: rgba(255, 255, 255, 0.82); max-width: 480px; margin: 0; }
.foot__contact a { color: #fff; text-decoration: underline; }
.foot__legal {
  font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6); display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}
.foot__legal a { color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.foot__legal a:hover { color: #fff; text-decoration: underline; }
.foot__tag { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.foot__sand { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none; line-height: 0; overflow: hidden; }
.foot__sand img {
  display: block; width: 100%; height: auto; margin-top: -3%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
}

/* The reserve heading keeps the reference's letter-by-letter energy without
   ever leaving glyphs clipped or unreadable. */
#reserve h2.swaphead .swl b::after { display: none; }
#reserve h2.swaphead.go .swl b {
  transform: none;
  animation: reserve-letter-in .42s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(var(--d, 0ms) * .2);
}
@keyframes reserve-letter-in {
  from { opacity: 0; transform: translateY(.3em); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__row { grid-template-columns: 1fr; }
  .hero__ascii { order: -1; }
  #torus { width: min(320px, 80vw); }
  .hero { padding-top: 150px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .layers { grid-template-columns: 1fr; }
  .layers__viz { min-height: 260px; }
  .tiers { grid-template-columns: 1fr; }
  .office { grid-template-columns: 1fr; }
  .quotes { columns: 1; }
  .pillnav__links { display: none; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .hero { padding: 130px 0 70px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .rev { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =====================================================
   PERKS TAB — persistent lavender square highlight in the nav
   (the perks / software-deals lead magnet)
   ===================================================== */
.pillnav__perks {
  background: #EAE4FF;
  color: var(--blue) !important;
  padding: 5px 11px;
  border-radius: 3px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.pillnav__perks:hover { background: #DBD0FF; transform: translateY(-1px); color: var(--blue) !important; }
.pillnav__perks.is-active { background: #DED4FF; box-shadow: inset 0 0 0 1px rgba(23, 62, 245, 0.28); }
.mmenu__perks {
  color: var(--blue) !important;
  background: #EAE4FF;
  border-radius: 3px;
  padding: 5px 10px;
  display: inline-block;
}

/* ======================= MEMBER PERKS (logo rails) ======================= */
.perksrow__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.perksrow__txt h2 { margin: 0; }
.perksrow__txt .lead { margin-top: 18px; }
.perksrow__cap {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3); margin: 14px 0 26px;
}
.perksrow__rails { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; min-width: 0; }
.perksrow__rail { min-width: 0; max-width: 100%; }
/* each rail fades in at its right edge and out at its left */
.perksrow__rail {
  overflow-x: clip;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
}
/* two identical sets per track, sliding exactly one set width per cycle -
   the loop is continuous with no visible restart */
.perksrow__track { display: flex; width: max-content; will-change: transform; animation: perksRail 30s linear infinite; }
.perksrow__rail--r .perksrow__track { animation-direction: reverse; }
.perksrow__rail:nth-child(1) .perksrow__track { animation-duration: 34s; }
.perksrow__rail:nth-child(2) .perksrow__track { animation-duration: 42s; }
.perksrow__rail:nth-child(3) .perksrow__track { animation-duration: 28s; }
.perksrow__set { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.perksrow__set img { height: 32px; width: auto; border-radius: 7px; }
@keyframes perksRail {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (max-width: 900px) {
  .perksrow__grid { grid-template-columns: 1fr; gap: 30px; }
  .perksrow__txt { text-align: center; }
  .perksrow__txt .lead { margin-left: auto; margin-right: auto; }
  .perksrow__rails { gap: 18px; }
  .perksrow__rail {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  }
  .perksrow__set { gap: 30px; padding-right: 30px; }
  .perksrow__set img { height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .perksrow__track { animation: none; }
}

/* ---------- members (proof wall) ---------- */
/* four full-bleed rows of member faces at full strength, drifting in
   alternating directions, with the centred copy on its own solid box */
.members {
  /* fills the viewport below the fixed nav: 96px matches this site's
     scroll-margin-top clearance, so the wall's bottom edge lands exactly on
     the viewport's bottom edge and #inside never peeks in behind it */
  min-height: calc(100svh - 96px);
  padding: 56px 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.members__wall, .members__over { grid-area: 1 / 1; }
.members__wall {
  min-width: 0;
  display: grid;
  gap: 24px;
  align-content: center;
}
/* each row starts at a different offset so the faces never line up in columns */
.members__row { min-width: 0; }
.members__row:nth-child(2) { margin-left: -34px; }
.members__row:nth-child(3) { margin-left: -62px; }
.members__row:nth-child(4) { margin-left: -18px; }
/* two identical sets per track; one cycle slides exactly one of them,
   so the loop never shows a seam. A set is wider than the viewport, so the
   same face is never on screen twice */
.members__track {
  display: flex; width: max-content; will-change: transform;
  animation: membersRoll 62s linear infinite;
}
.members__row--r .members__track { animation-direction: reverse; }
.members__row:nth-child(2) .members__track { animation-duration: 74s; }
.members__row:nth-child(3) .members__track { animation-duration: 58s; }
.members__row:nth-child(4) .members__track { animation-duration: 68s; }
.members__set { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.members__face {
  position: relative; flex: 0 0 auto;
  width: 80px; height: 80px; border-radius: 50%;
  border: 1px solid var(--line); overflow: hidden;
  background: var(--band);
}
.members__face img { width: 100%; height: 100%; object-fit: cover; }
@keyframes membersRoll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
/* copy sits on a compact solid-white box, snug to the text, with a hard
   30px feather on each edge (no visible edge, no oversized halo) */
.members__over {
  display: grid; place-items: center;
  padding: 0 24px; pointer-events: none; z-index: 3;
}
.members__over .sec-head {
  margin: 0; max-width: 760px; padding: 48px 64px;
  background: #fff;
  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent),
    linear-gradient(180deg, transparent, #000 30px, #000 calc(100% - 30px), transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent),
    linear-gradient(180deg, transparent, #000 30px, #000 calc(100% - 30px), transparent);
  mask-composite: intersect;
}
.members__over .eyebrow { margin-bottom: 18px; }
.members__over .lead { margin-top: 20px; }
@media (max-width: 900px) {
  .members { padding: 44px 0; }
  .members__wall { gap: 16px; }
  .members__set { gap: 18px; padding-right: 18px; }
  .members__face { width: 56px; height: 56px; }
  .members__row:nth-child(2) { margin-left: -22px; }
  .members__row:nth-child(3) { margin-left: -40px; }
  .members__row:nth-child(4) { margin-left: -12px; }
  .members__over .sec-head { padding: 40px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .members__track { animation: none; }
}

/* ---------- sales sticker (early-bird price cut) ---------- */
.sticker {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  background: #fff; border: 1px solid var(--ink); border-radius: 4px;
  box-shadow: 4px 4px 0 var(--blue);
  padding: 10px 16px 11px; text-align: center;
  transform: rotate(-2deg); pointer-events: none; z-index: 6;
}
.sticker--ink { box-shadow: 4px 4px 0 var(--ink); }
.sticker__tag {
  font-family: var(--mono); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--blue); color: #fff; border-radius: 2px; padding: 3px 8px;
}
.sticker__old {
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3);
  text-decoration: line-through; margin-top: 3px;
}
.sticker__new {
  font-family: var(--display); font-size: 2.3rem; font-weight: 700;
  line-height: 0.9; color: var(--ink);
}
.sticker__micro {
  font-family: var(--mono); font-size: 0.55rem; color: var(--ink-2);
  letter-spacing: 0.02em; margin-top: 3px; white-space: nowrap;
}
/* on a card: pinned to the top-right corner (put .has-sticker on the card) */
.has-sticker { position: relative; }
.sticker--pin { position: absolute; top: -44px; right: -12px; padding: 8px 12px 9px; }
.sticker--pin .sticker__new { font-size: 1.9rem; }
.sticker--pin .sticker__old { font-size: 0.7rem; margin-top: 2px; }
.sticker--pin .sticker__micro { font-size: 0.5rem; }
/* above a price table: sits in-flow, right-aligned, lapping the table edge */
.stickerwrap { display: flex; flex-direction: column; position: relative; }
.stickerwrap .sticker { align-self: flex-end; margin: 0 26px -14px 0; position: relative; }
/* variant that hugs the centered 760px ptable (self-paced reserve) */
.stickerwrap--ptable { max-width: 760px; margin: 44px auto 0; }
.stickerwrap--ptable > .ptable { margin: 0; }
/* hero feature variant (self-paced): big, slapped over the corner of the hero art */
.sticker--hero {
  position: absolute; top: calc(100% - 96px); right: -6px; z-index: 7;
  padding: 13px 20px 15px; border-radius: 5px; gap: 3px;
  box-shadow: 6px 6px 0 var(--blue);
  transform: rotate(-5deg);
}
.sticker--hero .sticker__tag { font-size: 0.66rem; padding: 4px 11px; letter-spacing: 0.16em; }
.sticker--hero .sticker__old { font-size: 0.9rem; margin-top: 4px; }
.sticker--hero .sticker__new { font-size: 2.9rem; }
.sticker--hero .sticker__micro { font-size: 0.6rem; margin-top: 4px; }
/* stacked hero (art above copy): sticker anchors at the art's bottom-right */
@media (max-width: 960px) {
  .sticker--hero { position: static; order: 2; align-self: flex-end; margin: -30px 10px 0 0; }
}

/* inline strike + chip for spots too tight for the full sticker */
.savechip {
  display: inline-block; font-family: var(--mono); font-size: 0.85em; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--blue); color: #fff; border-radius: 2px;
  padding: 1px 6px 2px; vertical-align: 1px;
}
@media (max-width: 760px) {
  .sticker { padding: 8px 12px 9px; }
  .sticker__new { font-size: 1.8rem; }
  .sticker__micro { font-size: 0.5rem; }
  .sticker--pin { top: -16px; right: 6px; }
  .stickerwrap .sticker { margin: 0 10px -6px 0; }
  .sticker--hero { margin: -14px 4px 0 0; padding: 11px 16px 12px; box-shadow: 5px 5px 0 var(--blue); }
  .sticker--hero .sticker__tag { font-size: 0.6rem; }
  .sticker--hero .sticker__old { font-size: 0.85rem; }
  .sticker--hero .sticker__new { font-size: 2.5rem; }
  .sticker--hero .sticker__micro { font-size: 0.52rem; }
}
