/* =====================================================
   The AI Course — Gamut-style branding exploration
   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;
}
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); }

.hl { color: var(--blue); }
.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 (Gamut signature) */
.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__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; }
#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);
}

/* ---------- 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; }

/* ---------- 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; }
.demo__prompt {
  display: flex; gap: 12px; font-family: var(--mono); font-size: 0.92rem;
  color: var(--ink); background: var(--band); border: 1px solid var(--line);
  border-radius: 6px; padding: 16px 18px; min-height: 76px; align-items: baseline;
}
.demo__chevron { color: var(--blue); font-weight: 700; }
/* the typed text + caret share one inline flow, so the caret always
   sits right behind the last character - never off in the corner */
.demo__line { flex: 1; min-width: 0; }
.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; }
.demo__assembled { margin-top: 24px; }
.demo__label {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px;
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.demo__assembled.play .demo__label { opacity: 1; }
.demo__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.demo__mod {
  border: 1px solid var(--line); border-radius: 6px; padding: 14px;
  background: #fff; opacity: 0; transform: translateY(14px) scale(0.98);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), border-color 0.55s;
  min-width: 0;
}
.demo__mod.on { opacity: 1; transform: none; border-color: var(--blue-15); }
.demo__modhead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.demo__modhead b { font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.demo__modhead span { font-family: var(--mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); }
.demo__row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: 0.72rem; color: var(--ink-2); padding: 5px 0;
  border-top: 1px dashed var(--line);
}
.demo__row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip {
  font-style: normal; font-family: var(--mono); font-size: 0.56rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue);
  background: var(--blue-08); border-radius: 3px; padding: 2px 6px; flex-shrink: 0;
}
.chip--live::before { content: '●'; margin-right: 4px; font-size: 0.5rem; animation: blink 1.5s steps(1) infinite; }
.chip--next { color: var(--ink-2); background: var(--band); }
.demo__result {
  margin-top: 22px; font-family: var(--pixelserif); font-size: 1.18rem;
  color: var(--ink); min-height: 3.4em; line-height: 1.45;
}
.demo__replay {
  margin-top: 8px; font-family: var(--mono); font-size: 0.66rem;
  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); }

/* ---------- 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: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden;
  box-shadow: 0 14px 40px rgba(18, 18, 18, 0.06);
}
.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(--pixelserif); font-size: 1.12rem; line-height: 1.5;
  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 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(3, 1fr); gap: 18px; align-items: stretch; }
.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;
}

/* ---------- 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; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-top: 48px; background: #fff; }
.foot__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding-bottom: 44px;
}
.foot__brand { font-family: var(--display); font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.foot__links { display: flex; gap: 22px; }
.foot__links a {
  font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-2); text-decoration: none;
}
.foot__links a:hover { color: var(--blue); }
.foot__tag { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.foot__dither {
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect x='0' y='0' width='1' height='1' fill='%23121212'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%23121212'/%3E%3C/svg%3E");
  opacity: 0.22;
}

/* ---------- 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; }
  .demo__grid { 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; }
  .demo__grid { 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; }
}
