/* ============================================================
   EDUSION — landing page
   ============================================================ */

/* ─────────────────────────────────────────────  atmosphere  */
.atmos {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.atmos__wash {
  position: absolute;
  left: 50%;
  top: -14%;
  width: min(1500px, 150vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(
      closest-side,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.5) 42%,
      rgba(255, 255, 255, 0) 72%
    ),
    radial-gradient(closest-side at 62% 38%, rgba(47, 107, 255, 0.075) 0%, rgba(47, 107, 255, 0) 66%);
}
.atmos__floor {
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(to bottom, rgba(231, 235, 242, 0) 0%, rgba(231, 235, 242, 0.85) 100%);
}
/* honest 4% grain */
.atmos__grain {
  position: absolute;
  inset: -50%;
  opacity: 0.042;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* concentric hairline rings */
.rings {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.rings circle {
  fill: none;
  stroke: rgba(11, 13, 18, 0.055);
  stroke-width: 1;
}
.rings circle:nth-child(even) {
  stroke: rgba(11, 13, 18, 0.032);
}

/* ═══════════════════════════════════════════════════  HERO  */
.hero {
  position: relative;
  background: linear-gradient(180deg, #eaeff7 0%, #f0f3f8 48%, var(--canvas) 100%);
  min-height: 100svh;
  padding-top: clamp(120px, 15vh, 168px);
  padding-bottom: clamp(48px, 7vh, 88px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  width: 100%;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

/* eyebrow tag: a small frosted pill (the .glass recipe) */
.chip-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 9px;
  border-radius: var(--r-pill);
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge), var(--glass-shadow);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  letter-spacing: -0.008em;
}
.chip-kicker .mark {
  width: 17px;
  height: 17px;
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 500;
  letter-spacing: -0.042em;
  line-height: 0.96;
  margin: 2px 0 0;
  max-width: 15ch;
}
.hero h1 .w {
  display: inline-block;
}
.hero h1 .soft {
  font-weight: 300;
  color: var(--ink-2);
}
.hero h1 .accent-chip {
  position: relative;
  display: inline-block;
  padding: 0 0.16em 0.03em;
  margin: 0 -0.04em;
  color: var(--accent-deep);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}
/* the accent word: a quiet blue-to-indigo ink (solid --accent-deep without clip support / in contrast modes) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  html:not([data-a11y-contrast]) .hero h1 .accent-chip {
    background-image: var(--grad-accent-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.hero h1 .accent-chip::before {
  content: '';
  position: absolute;
  inset: 0.1em 0 0.14em;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-hair);
  z-index: -1;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.hero__meta .sep {
  width: 1px;
  height: 12px;
  background: var(--hair-2);
}

/* word reveal — clip up + blur to sharp */
.reveal-w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.42em);
  filter: blur(7px);
}
.is-loaded .reveal-w {
  animation: wordUp 760ms var(--ease-out) forwards;
  animation-delay: var(--wd, 0ms);
}
@keyframes wordUp {
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
.fade-up {
  opacity: 0;
  transform: translateY(10px);
}
.is-loaded .fade-up {
  animation: fadeUp 620ms var(--ease-out) forwards;
  animation-delay: var(--wd, 0ms);
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ─────────────────────────────  hero orbital stage  */
.stage {
  position: relative;
  aspect-ratio: 1 / 0.92;
  display: grid;
  place-items: center;
}
.stage__rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(11, 13, 18, 0.06);
  animation: spin var(--dur, 32s) linear infinite;
}
.orbit:nth-child(2) {
  border-color: rgba(11, 13, 18, 0.04);
}
.stage:hover .orbit,
.stage:focus-within .orbit {
  animation-play-state: paused;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.orbit__node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a)));
  animation: spinBack var(--dur, 32s) linear infinite;
}
@keyframes spinBack {
  to {
    transform: translate(-50%, -50%) rotate(calc(var(--a) - 360deg)) translateX(var(--r))
      rotate(calc(360deg - var(--a)));
  }
}
.stage:hover .orbit__node,
.stage:focus-within .orbit__node {
  animation-play-state: paused;
}

.src-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--hair);
  box-shadow: var(--lift-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  cursor: default;
  transition: box-shadow var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out),
    border-color var(--t-fast) linear;
  opacity: 0;
  transform: scale(0.82);
}
.is-loaded .src-chip {
  animation: chipIn 640ms var(--ease-out) forwards;
  animation-delay: var(--cd, 900ms);
}
@keyframes chipIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.src-chip:hover {
  transform: scale(1.03);
  box-shadow: var(--lift-3);
  border-color: var(--hair-2);
  z-index: 5;
}
.src-chip svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--ink-3);
}
.src-chip .cap {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--ink-3);
  font-weight: 400;
  transition: max-width 420ms var(--ease-out), opacity 240ms linear, margin-left 420ms var(--ease-out);
  opacity: 0;
  margin-left: 0;
}
.src-chip:hover .cap {
  max-width: 220px;
  opacity: 1;
  margin-left: 2px;
}

/* ═══════════════════════  product preview (shared)  */
.app-preview {
  position: relative;
  z-index: 3;
  width: min(100%, 560px);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid var(--hair-2);
  box-shadow: var(--hi-inset-soft), var(--shadow-3);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
}
.is-loaded .app-preview {
  animation: cardRise 860ms var(--ease-out) 620ms forwards;
}
@keyframes cardRise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- hero product shot (.hp-*): flat, so text stays crisp; depth comes from layered shadow + surface */
.hero-shot {
  position: relative;
  z-index: 3;
  width: min(100%, 560px);
}
.hero-shot .app-preview {
  width: 100%;
}
.hp {
  border: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 253, 0.94) 100%);
  box-shadow: 0 0 0 1px rgba(11, 13, 18, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(11, 13, 18, 0.04),
    0 12px 28px -12px rgba(22, 34, 72, 0.16), 0 40px 80px -36px rgba(22, 34, 72, 0.3);
}
.hp-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
  box-shadow: inset 0 -1px 0 rgba(11, 13, 18, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.hp-bar__dots {
  display: flex;
  gap: 6px;
}
.hp-bar__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #eef0f4, #e2e5eb);
  box-shadow: inset 0 0 0 0.5px rgba(11, 13, 18, 0.14);
}
.hp-bar__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font: 500 12px/1.3 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--ink-2);
}
.hp-bar__count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font: 500 11px/1.3 var(--font-sans);
  white-space: nowrap;
}
.hp-body {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
}
.hp-rail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 10px;
  border-right: 1px solid rgba(11, 13, 18, 0.06);
  background: linear-gradient(180deg, rgba(246, 248, 251, 0.7), rgba(242, 244, 248, 0.5));
}
.hp-label {
  margin: 0 0 6px 4px;
  font: 600 10px/1.2 var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.hp-src {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 7px;
  padding: 6px;
  border-radius: 8px;
}
.hp-src:first-of-type {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(11, 13, 18, 0.05), 0 1px 2px rgba(11, 13, 18, 0.05);
}
.hp-src__badge {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.hp-src__badge--pdf {
  background: rgba(173, 95, 74, 0.12);
  color: var(--clay, #ad5f4a);
}
.hp-src__badge--yt {
  background: rgba(214, 48, 49, 0.1);
  color: #b4232a;
}
.hp-src__badge--img {
  background: rgba(94, 122, 99, 0.14);
  color: var(--sage, #5e7a63);
}
.hp-src__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 11.5px/1.3 var(--font-sans);
  color: var(--ink);
}
.hp-src__ok {
  color: var(--accent);
  stroke-width: 2.4;
}
.hp-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  padding: 7px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(11, 13, 18, 0.08);
  color: var(--ink-3);
  font: 500 11px/1.2 var(--font-sans);
}
.hp-main {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 14px 16px 16px;
}
.hp-seg {
  display: flex;
  gap: 1px;
  padding: 2px;
  margin-bottom: 4px;
  border-radius: 9px;
  background: rgba(118, 118, 128, 0.1);
  overflow: hidden;
}
.hp-seg span {
  flex: 1 1 auto;
  padding: 4px 7px;
  border-radius: 7px;
  text-align: center;
  font: 500 10.5px/1.3 var(--font-sans);
  color: var(--ink-3);
  white-space: nowrap;
}
.hp-seg span[data-on] {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.05);
}
.hp-kick {
  font: 600 10px/1.2 var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.hp-h {
  font: 600 15px/1.3 var(--font-sans);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hp-p {
  min-height: 3.2em;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
}
.hp-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hp-list li {
  position: relative;
  padding-left: 13px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2);
}
.hp-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
.hp-concept {
  margin-top: 3px;
  padding: 9px 11px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f6f8ff 0%, #eef2fd 100%);
  box-shadow: inset 0 0 0 1px rgba(47, 107, 255, 0.1);
}
.hp-concept__t {
  font: 600 11.5px/1.3 var(--font-sans);
  color: var(--accent-deep);
}
.hp-concept__d,
.hp-float__q {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.hp-concept__d {
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.hp-cheat {
  padding-top: 9px;
  border-top: 1px solid rgba(11, 13, 18, 0.06);
}
.hp-cheat .hp-label {
  margin: 0 0 3px;
}
.hp-cheat__line {
  font: italic 400 13px/1.45 var(--font-serif);
  color: var(--ink);
}
/* the window keeps a quiet band at the bottom for the flashcard to overlap, so it never covers text */
@media (min-width: 641px) {
  .hero-shot .hp-main {
    padding-bottom: 40px;
  }
}
/* one flashcard peeking out under the window, very quiet */
.hp-float {
  position: absolute;
  z-index: 4;
  right: -28px;
  bottom: -78px;
  width: 228px;
  padding: 11px 13px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px);
  box-shadow: 0 0 0 1px rgba(11, 13, 18, 0.07), inset 0 1px 0 #fff, 0 14px 30px -14px rgba(22, 34, 72, 0.3);
  opacity: 0;
  transform: translateY(10px);
}
.is-loaded .hp-float {
  animation: cardRise 760ms var(--ease-out) 1100ms forwards;
}
.hp-float__kick {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 600 10px/1.2 var(--font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.hp-float__q {
  margin-top: 6px;
  font: 500 12px/1.45 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hp-float__src {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--ink-3);
}
@media (max-width: 1099px) {
  .hp-float {
    right: -8px;
  }
}
@media (max-width: 640px) {
  .hp-body {
    grid-template-columns: 112px minmax(0, 1fr);
  }
  .hp-rail {
    padding: 12px 6px;
  }
  .hp-src {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 6px;
    padding: 5px;
  }
  .hp-src__badge {
    width: 20px;
    height: 20px;
  }
  .hp-src__ok {
    display: none;
  }
  .hp-main {
    padding: 12px 12px 14px;
  }
  .hp-seg span:nth-child(n + 4) {
    display: none;
  }
  .hp-bar__dots {
    display: none;
  }
  .hp-bar {
    grid-template-columns: 1fr auto;
  }
  .hp-bar__title {
    text-align: left;
  }
  .hp-cheat,
  .hp-float {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hp-float {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--hair);
  background: rgba(248, 249, 251, 0.75);
}
.app-bar__dots {
  display: flex;
  gap: 5px;
}
.app-bar__dots i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--hair-2);
}
.app-bar__title {
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.07em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.app-bar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

.app-body {
  display: grid;
  grid-template-columns: 152px 1fr;
  min-height: 320px;
}
.app-rail {
  border-right: 1px solid var(--hair);
  padding: 13px 11px;
  background: rgba(250, 251, 253, 0.6);
}
.app-rail__label {
  font-size: 9.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 10px;
  padding-left: 2px;
}
.src-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: var(--r-xs);
  font-size: 11.5px;
  color: var(--ink-2);
  transition: background var(--t-fast) linear;
}
.src-row:hover {
  background: rgba(11, 13, 18, 0.035);
}
.src-row svg {
  width: 12px;
  height: 12px;
  flex: none;
  color: var(--ink-4);
}
.src-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.src-row .dot {
  margin-left: auto;
}
.rail-btn {
  margin-top: 10px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: var(--r-xs);
  border: 1px dashed var(--hair-2);
  background: transparent;
  color: var(--ink-3);
  font-size: 11.5px;
  cursor: pointer;
  transition: border-color var(--t-fast) linear, color var(--t-fast) linear, background var(--t-fast) linear;
}
.rail-btn:hover {
  border-color: var(--accent-hair);
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.app-main {
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-tabs {
  display: flex;
  gap: 3px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--hair);
  overflow-x: auto;
  scrollbar-width: none;
}
.app-tabs::-webkit-scrollbar {
  display: none;
}
.app-tab {
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  color: var(--ink-3);
  border: 1px solid transparent;
  background: none;
  cursor: default;
  white-space: nowrap;
}
.app-tab[data-on] {
  background: var(--ink);
  color: #fff;
}
.doc-h {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.022em;
}
.doc-kick {
  font-size: 9.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.doc-p {
  font-size: 12.2px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 46ch;
}
.doc-li {
  display: flex;
  gap: 8px;
  font-size: 12.2px;
  line-height: 1.55;
  color: var(--ink-2);
}
.doc-li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 99px;
  background: var(--ink-4);
  margin-top: 7px;
  flex: none;
}
.skel {
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(11, 13, 18, 0.08), rgba(11, 13, 18, 0.045));
}
.caret {
  display: inline-block;
  width: 1.5px;
  height: 1em;
  background: var(--accent);
  vertical-align: -0.16em;
  margin-left: 1px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* floating badges around hero preview */
.float-badge {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--hair);
  box-shadow: var(--lift-3);
  font-size: 11.5px;
  font-weight: 500;
  animation: bob 7s var(--ease-io) infinite;
}
.float-badge svg {
  width: 13px;
  height: 13px;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 1099px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
  }
  .hero h1 {
    max-width: 18ch;
  }
  .stage {
    aspect-ratio: 1 / 1;
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }
}
@media (max-width: 640px) {
  .app-body {
    grid-template-columns: 116px 1fr;
    min-height: 250px;
  }
  .stage {
    aspect-ratio: 1 / 1.05;
  }
}

/* ═══════════════════════════════════  COMPRESSION  */
.compress {
  background: linear-gradient(to bottom, var(--canvas) 0%, var(--canvas-2) 100%);
  border-top: 1px solid var(--hair);
  overflow: hidden;
}
/* The finished state is the default, so the section is never blank (no JS,
   reduced motion, a11y "pause animations"). site.js adds .is-armed to hide the
   pieces, then .is-in to play; removing and re-adding .is-in replays it. */
.compress__stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(90px, 0.42fr) 1fr;
  gap: 0;
  align-items: center;
  margin-top: 12px;
}
.chaos {
  position: relative;
  height: clamp(330px, 34vw, 420px);
}
.chaos__item {
  position: absolute;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px solid var(--hair-2);
  box-shadow: var(--lift-2);
  overflow: hidden;
  opacity: 1;
  transform: translate(0, 0) rotate(var(--rot, 0deg)) scale(1);
  transition: opacity 700ms var(--ease-out) var(--cd, 0ms), transform 900ms var(--ease-out) var(--cd, 0ms);
}
.is-armed:not(.is-in) .chaos__item {
  opacity: 0;
  transform: translate(var(--tx0, 0), var(--ty0, 26px)) rotate(0deg) scale(0.94);
  transition: none;
}
.chaos__item:hover {
  z-index: 9;
}

.pdf-page {
  width: 43%;
  left: 4%;
  top: 6%;
  --rot: -7deg;
  padding: 13px 12px;
  aspect-ratio: 3/4;
}
.pdf-page .pl {
  height: 5px;
  border-radius: 99px;
  background: rgba(11, 13, 18, 0.07);
  margin-bottom: 7px;
}
.pdf-page .pl.t {
  height: 8px;
  width: 68%;
  background: rgba(11, 13, 18, 0.14);
  margin-bottom: 12px;
}
.pdf-corner {
  position: absolute;
  right: 0;
  top: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(225deg, var(--canvas-2) 50%, transparent 50%);
  border-left: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.yt-card {
  width: 46%;
  right: 2%;
  top: 2%;
  --rot: 6deg;
  aspect-ratio: 16/10;
  background: var(--dark);
  border-color: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
}
.yt-card .play {
  width: 34px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
}
.yt-card .play::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 8px solid rgba(255, 255, 255, 0.85);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 2px;
}
.ts-chip {
  position: absolute;
  bottom: 7px;
  right: 7px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}
.notes-card {
  width: 40%;
  left: 16%;
  bottom: 3%;
  --rot: 4.5deg;
  aspect-ratio: 4/3;
  background: #fdfcf8;
  padding: 12px 11px;
}
.notes-card .scribble {
  stroke: rgba(11, 13, 18, 0.3);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 8px 1px var(--accent-soft-2);
  opacity: 0;
}
.is-armed.is-in .notes-card .scanline {
  animation: scan 2.6s var(--ease-io) 1.1s 2;
}
@keyframes scan {
  0% {
    top: 0;
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  88% {
    opacity: 0.9;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}
.wall-card {
  width: 36%;
  right: 4%;
  bottom: 6%;
  --rot: -5deg;
  aspect-ratio: 1/1;
  padding: 11px 10px;
}
.wall-card .wl {
  height: 3.5px;
  border-radius: 99px;
  background: rgba(11, 13, 18, 0.09);
  margin-bottom: 5px;
}

/* the arc */
.arc {
  position: relative;
  height: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
}
.arc svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.arc .path {
  fill: none;
  stroke: var(--hair-3);
  stroke-width: 1.2;
  stroke-dasharray: 4 5;
  opacity: 1;
  transition: opacity 600ms linear 200ms;
}
/* while compressing, the dashed line turns accent and flows toward the brief */
.is-armed.is-in .arc .path {
  animation: arcFlow 2200ms linear 600ms 1;
}
@keyframes arcFlow {
  0% {
    stroke: var(--hair-3);
    stroke-dashoffset: 0;
  }
  12%,
  85% {
    stroke: var(--accent);
  }
  100% {
    stroke: var(--hair-3);
    stroke-dashoffset: -72;
  }
}
.arc__label {
  transition: opacity 600ms linear 200ms;
}
.is-armed:not(.is-in) :is(.arc .path, .arc__label) {
  opacity: 0;
  transition: none;
}
.arc__label {
  position: absolute;
  top: calc(50% - 46px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  white-space: nowrap;
}

/* the brief result card */
.result {
  position: relative;
  background: #fff;
  border: 1px solid var(--hair-2);
  border-radius: var(--r-lg);
  box-shadow: var(--lift-4);
  padding: 20px 22px;
  transition: opacity 760ms var(--ease-out) 500ms, transform 900ms var(--ease-out) 500ms;
}
.is-armed:not(.is-in) .result {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: none;
}
.result__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 15px;
}
.result__title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.024em;
}
.result__sec {
  margin-bottom: 15px;
  transition: opacity 500ms var(--ease-out) var(--sd, 0ms), transform 500ms var(--ease-out) var(--sd, 0ms);
}
.is-armed:not(.is-in) .result__sec {
  opacity: 0;
  transform: translateY(7px);
  transition: none;
}
.result__sec h4 {
  font-size: 9.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
  margin-bottom: 8px;
}
.cheat {
  border-left: 2px solid var(--accent);
  padding: 3px 0 3px 13px;
  background: linear-gradient(90deg, var(--accent-soft) 0%, transparent 60%);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
}
.cheat h4 {
  color: var(--accent-deep);
}
/* "Final cheat sheet": the serif accent instead of the small mono label */
.cheat h4.serif-accent,
.brief-body .cheat-block h4.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}
.brief-body .cheat-block h4.serif-accent {
  font-size: 1.25rem;
}

/* metric chips */
.metrics {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}
.metric {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--hair);
  box-shadow: var(--lift-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 560ms var(--ease-out) var(--md, 1200ms), transform 620ms var(--ease-out) var(--md, 1200ms);
}
.is-armed:not(.is-in) .metric {
  opacity: 0;
  transform: translateY(10px) scale(0.94);
  transition: none;
}
.metric b {
  font-weight: 500;
}
.metric .from {
  color: var(--ink-3);
  font-weight: 400;
}
.metric svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
}
.metric .check-dot {
  width: 16px;
  height: 16px;
}
.metric .check-dot svg {
  width: 10px;
  height: 10px;
  color: #fff;
}
.metric--1 {
  left: 30%;
  top: 4%;
}
.metric--2 {
  left: 42%;
  bottom: 15%;
}
.metric--3 {
  right: 6%;
  top: -1%;
}

.replay {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin: 26px auto 0;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair);
  background: transparent;
  color: var(--ink-3);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: color var(--t-fast) linear, border-color var(--t-fast) linear, background var(--t-fast) linear;
}
.replay:hover {
  color: var(--ink);
  border-color: var(--hair-3);
  background: rgba(255, 255, 255, 0.7);
}
.replay svg {
  width: 13px;
  height: 13px;
  transition: transform 520ms var(--ease-out);
}
.replay:hover svg {
  transform: rotate(-160deg);
}

@media (max-width: 940px) {
  .compress__stage {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .arc {
    min-height: 92px;
    transform: rotate(90deg);
    margin: 6px 0;
  }
  .metric--1 {
    left: auto;
    right: 2%;
    top: 1%;
  }
  .metric--2 {
    left: 2%;
    top: 40%;
    bottom: auto;
  }
  .metric--3 {
    right: 4%;
    top: auto;
    bottom: 24%;
  }
  .chaos {
    height: clamp(300px, 62vw, 380px);
  }
}

/* ═══════════════════════════════════  HOW IT WORKS  */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.step {
  position: relative;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--hair);
  box-shadow: var(--hi-inset-soft), var(--shadow-2);
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out),
    border-color var(--t-fast) linear, opacity var(--t-mid) linear;
}
.steps:hover .step {
  opacity: 0.8;
}
.steps .step:hover {
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: var(--hi-inset-soft), var(--shadow-3);
  border-color: var(--hair-2);
}
.step__kick {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.step__kick b {
  color: var(--ink);
  font-weight: 500;
}
.step h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.15;
}
.step p {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.55;
}
.step__mini {
  margin-top: auto;
  border-radius: var(--r-card);
  border: 1px solid var(--hair);
  background: rgba(252, 253, 255, 0.8);
  padding: 13px;
  min-height: 158px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
  overflow: hidden;
}

/* step 1 — dropzone */
.dropzone {
  flex: 1;
  border: 1px dashed var(--hair-2);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 12px;
  text-align: center;
  transition: border-color var(--t-fast) linear, background var(--t-fast) linear;
}
.step:hover .dropzone {
  border-color: var(--accent-hair);
  background: var(--accent-soft);
}
.dropzone .mark {
  width: 22px;
  height: 22px;
  opacity: 0.55;
}
.dropzone span {
  font-size: 11px;
  color: var(--ink-3);
}
.mini-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair);
  background: #fff;
  font-size: 10.5px;
  color: var(--ink-2);
}

/* step 2 — processing */
.proc-mark {
  display: grid;
  place-items: center;
  padding: 6px 0 2px;
}
.proc-mark .mark {
  width: 34px;
  height: 34px;
}
.step:hover .proc-mark .ring,
.step:focus-within .proc-mark .ring {
  animation: ringOnce 1200ms var(--ease-io) 1;
  transform-origin: 16px 16px;
}
@keyframes ringOnce {
  to {
    transform: rotate(180deg);
  }
}
.hairline-progress {
  height: 1px;
  background: var(--hair-2);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.hairline-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  animation: travel 2.4s var(--ease-io) infinite;
}
@keyframes travel {
  to {
    transform: translateX(100%);
  }
}
.proc-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* step 3 — tools unlock */
.tool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tool-pill {
  padding: 5px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair);
  background: #fff;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-2);
  opacity: 0.45;
  transform: translateY(4px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out), color var(--t-fast) linear,
    border-color var(--t-fast) linear;
}
.step.is-in .tool-pill {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i) * 70ms + 200ms);
}
.step:hover .tool-pill {
  border-color: var(--accent-hair);
  color: var(--accent-deep);
}
.brief-mini {
  border-radius: var(--r-sm);
  border: 1px solid var(--hair);
  background: #fff;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

/* ═══════════════════════════════════  THE BRIEF  */
.brief-sec {
  background: linear-gradient(to bottom, var(--canvas-2), var(--canvas));
  border-top: 1px solid var(--hair);
  overflow: hidden;
}
.brief-wrap {
  position: relative;
  display: grid;
  place-items: center;
}
.brief-doc {
  position: relative;
  z-index: 2;
  width: min(100%, 720px);
  background: #fff;
  border: 1px solid var(--hair-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: clamp(26px, 4vw, 48px) clamp(22px, 4vw, 52px) clamp(30px, 4vw, 48px);
}
.brief-doc__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 26px;
}
.brief-doc__meta .lockup .wordmark {
  font-size: 10px;
}
.brief-doc h3.subject,
.brief-doc h2.subject {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
  max-width: 26ch;
}
.brief-doc .subject em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.brief-doc .sub {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  margin-bottom: 28px;
}
.brief-body {
  max-width: 65ch;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.brief-body h4,
.brief-body h3 {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
  margin-bottom: 11px;
}
.brief-body p {
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--ink-2);
}
.brief-body strong {
  color: var(--ink);
  font-weight: 500;
}
.brief-body ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.brief-body li {
  display: flex;
  gap: 11px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.brief-body li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 99px;
  background: var(--ink-4);
  margin-top: 10px;
  flex: none;
}
.brief-body dl {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) 1fr;
  gap: 11px 20px;
  font-size: 0.9375rem;
}
.brief-body dt {
  color: var(--ink);
  font-weight: 500;
}
.brief-body dd {
  color: var(--ink-2);
  margin: 0;
  line-height: 1.6;
}
.brief-body .cheat-block {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
  background: linear-gradient(90deg, var(--accent-soft) 0%, transparent 70%);
  border-radius: 0 var(--r-card) var(--r-card) 0;
}
.brief-body .cheat-block h4 {
  color: var(--accent-deep);
}
.brief-body .cheat-block ol {
  counter-reset: c;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.brief-body .cheat-block li {
  counter-increment: c;
  font-size: 0.9375rem;
}
.brief-body .cheat-block li::before {
  content: counter(c);
  width: auto;
  height: auto;
  background: none;
  margin: 0;
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  padding-top: 5px;
  min-width: 14px;
}
.src-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-hair);
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  vertical-align: 1px;
}

/* faint annotations */
.annot {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  white-space: nowrap;
}
.annot .lead-line {
  width: 46px;
  height: 1px;
  background: var(--hair-2);
}
.annot--l {
  right: calc(50% + min(50%, 360px) + 18px);
  top: 22%;
  flex-direction: row-reverse;
}
.annot--r {
  left: calc(50% + min(50%, 360px) + 18px);
  top: 58%;
}
@media (max-width: 1180px) {
  .annot {
    display: none;
  }
}

/* ═══════════════════════════════════  BENTO  */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
}
.tile {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--surface);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--hair);
  box-shadow: var(--lift-2);
  padding: 19px 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  overflow: hidden;
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out),
    border-color var(--t-fast) linear, opacity var(--t-mid) linear;
}
.bento:hover .tile {
  opacity: 0.78;
}
.bento .tile:hover,
.bento .tile:focus-within {
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: var(--lift-3);
  border-color: var(--hair-2);
}
.tile__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.tile h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.024em;
}
.tile p {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  max-width: 40ch;
}
.tile__count {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--ink-4);
}
.t-flash {
  grid-column: span 5;
}
.t-quiz {
  grid-column: span 4;
}
.t-report {
  grid-column: span 3;
}
.t-map {
  grid-column: span 7;
}
.t-chat {
  grid-column: span 5;
}
@media (max-width: 1000px) {
  .t-flash,
  .t-quiz {
    grid-column: span 6;
  }
  .t-report {
    grid-column: span 12;
  }
  .t-map,
  .t-chat {
    grid-column: span 12;
  }
}
@media (max-width: 700px) {
  .tile {
    grid-column: span 12 !important;
  }
}

/* flashcard */
.flash-stage {
  margin-top: auto;
  perspective: 1200px;
  height: 172px;
}
.flash {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 500ms cubic-bezier(0.34, 1.4, 0.5, 1), box-shadow 500ms var(--ease-io);
  cursor: pointer;
  border: 0;
  padding: 0;
  background: none;
  border-radius: var(--r-card);
  display: block;
}
.flash[data-flipped='true'] {
  transform: rotateY(180deg);
}
.flash__face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--r-card);
  border: 1px solid var(--hair-2);
  background: #fff;
  box-shadow: var(--lift-2);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}
.flash__face--back {
  transform: rotateY(180deg);
  background: var(--dark);
  border-color: rgba(0, 0, 0, 0.5);
  color: #fff;
}
.flash__q {
  font-size: 0.9375rem;
  line-height 1.45;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.018em;
}
.flash__face--back .flash__q {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
}
.flash__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.flash__face--back .flash__foot {
  color: rgba(255, 255, 255, 0.42);
}

/* quiz */
.quiz {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.quiz__q {
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.45;
}
.quiz__opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--hair);
  background: #fff;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--t-fast) linear, background var(--t-fast) linear, color var(--t-fast) linear,
    transform var(--t-fast) var(--ease-out);
}
.quiz__opt:hover {
  border-color: var(--hair-3);
  transform: translateX(2px);
}
.quiz__opt i {
  width: 15px;
  height: 15px;
  border-radius: 99px;
  border: 1px solid var(--hair-2);
  flex: none;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--ink-4);
}
.quiz__opt[data-state='right'] {
  border-color: rgba(94, 122, 99, 0.5);
  background: rgba(94, 122, 99, 0.08);
  color: var(--sage);
}
.quiz__opt[data-state='right'] i {
  border-color: rgba(94, 122, 99, 0.55);
  color: var(--sage);
}
.quiz__opt[data-state='wrong'] {
  border-color: rgba(173, 95, 74, 0.45);
  background: rgba(173, 95, 74, 0.07);
  color: var(--clay);
}
.quiz__opt[data-state='wrong'] i {
  border-color: rgba(173, 95, 74, 0.5);
  color: var(--clay);
}
.quiz__fb {
  font-size: 11.5px;
  color: var(--ink-3);
  min-height: 17px;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity var(--t-mid) linear, transform var(--t-mid) var(--ease-out);
}
.quiz__fb.on {
  opacity: 1;
  transform: none;
}

/* report */
.report {
  margin-top: auto;
  position: relative;
  border-radius: var(--r-card);
  border: 1px solid var(--hair);
  background: #fff;
  padding: 15px 15px 0;
  height: 172px;
  overflow: hidden;
}
.report::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 78px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 82%);
}
.report h5 {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 9px;
}
.report .rl {
  height: 4px;
  border-radius: 99px;
  background: rgba(11, 13, 18, 0.075);
  margin-bottom: 6px;
}
.report .rk {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 12px 0 7px;
}

/* mind map */
.map-stage {
  margin-top: auto;
  position: relative;
  border-radius: var(--r-card);
  border: 1px solid var(--hair);
  background: linear-gradient(to bottom right, rgba(252, 253, 255, 0.9), rgba(244, 246, 250, 0.7));
  /* same shape as the map's viewBox, so the map fills the card instead of shrinking to fit a short box */
  aspect-ratio: 652 / 358;
  max-height: 360px;
  overflow: hidden;
}
.map-stage svg {
  display: block;
  width: 100%;
  height: 100%;
}
/* phones: keep the text readable and let the map scroll sideways */
@media (max-width: 620px) {
  .map-stage {
    aspect-ratio: auto;
    height: 300px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }
  .map-stage svg {
    width: 560px;
    max-width: none;
  }
}
.map-edge {
  fill: none;
  stroke: var(--hair-2);
  stroke-width: 1.2;
  stroke-dasharray: var(--len, 200);
  stroke-dashoffset: var(--len, 200);
  transition: stroke var(--t-fast) linear, stroke-width var(--t-fast) linear;
}
.tile.is-in .map-edge {
  animation: drawEdge 900ms var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 90ms + 120ms);
}
@keyframes drawEdge {
  to {
    stroke-dashoffset: 0;
  }
}
.map-edge.hot {
  stroke: var(--accent);
  stroke-width: 1.6;
}
.map-node {
  cursor: pointer;
}
.map-node rect {
  fill: #fff;
  stroke: var(--hair-2);
  stroke-width: 1;
  transition: stroke var(--t-fast) linear, filter var(--t-fast) linear;
}
.map-node text {
  font-family: var(--font-sans);
  font-size: 11px;
  fill: var(--ink-2);
  letter-spacing: 0;
  dominant-baseline: middle;
  pointer-events: none;
}
.map-node--root rect {
  fill: var(--dark);
  stroke: var(--dark);
}
.map-node--root text {
  fill: #fff;
  font-weight: 500;
}
.map-node:hover rect,
.map-node:focus-visible rect {
  stroke: var(--accent);
}
.map-node:hover text {
  fill: var(--ink);
}
/* nodes stay still: the edges are drawn to fixed points, so moving nodes pulled away from their lines */

/* chat */
.chat {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bubble {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.tile.is-in .bubble {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i) * 140ms + 160ms);
}
.bubble--me {
  align-self: flex-end;
  background: var(--dark);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.bubble--ai {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--hair);
  color: var(--ink-2);
  border-bottom-left-radius: 5px;
}
.bubble--ai b {
  color: var(--ink);
  font-weight: 500;
}
/* inline source citation (landing chat demo and the app chat): it sits on the text baseline after the
   sentence, so it stays an inline box (not flex) and the icon is nudged onto the x-height */
.cite-chip {
  display: inline;
  margin-left: 5px;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  background: rgba(47, 107, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(47, 107, 255, 0.14);
  color: var(--accent-deep);
  font: 500 0.84em/1 var(--font-sans);
  letter-spacing: 0;
  white-space: nowrap;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.cite-chip .cite-chip__ic {
  display: inline-block;
  width: 0.92em;
  height: 0.92em;
  margin-right: 4px;
  vertical-align: -0.1em;
  stroke-width: 2.2;
}
.cite-chip .cite-chip__ic--fill {
  fill: currentColor;
}
.chat__input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair-2);
  background: #fff;
  margin-top: 4px;
}
.chat__input input {
  flex: 1;
  border: 0;
  background: none;
  outline: none;
  font-size: var(--fs-sm);
  min-width: 0;
}
.chat__input input::placeholder {
  color: var(--ink-4);
}
.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 99px;
  border: 0;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast) linear;
}
.icon-btn:hover {
  transform: scale(1.06);
}
.icon-btn svg {
  width: 13px;
  height: 13px;
}

.bento-note {
  margin-top: 26px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
  max-width: 62ch;
}
.bento-note b {
  color: var(--ink-2);
  font-weight: 500;
}

/* ═══════════════════════════════════  MARQUEE  */
.marq {
  border-block: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.45);
  padding: 26px 0;
  overflow: hidden;
  position: relative;
}
.marq::before,
.marq::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(60px, 12vw, 180px);
  z-index: 2;
  pointer-events: none;
}
.marq::before {
  left: 0;
  background: linear-gradient(90deg, var(--canvas), transparent);
}
.marq::after {
  right: 0;
  background: linear-gradient(-90deg, var(--canvas), transparent);
}
.marq__track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marq 78s linear infinite;
}
.marq:hover .marq__track {
  animation-play-state: paused;
}
@keyframes marq {
  to {
    transform: translateX(-50%);
  }
}
.marq__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.marq__item svg {
  width: 15px;
  height: 15px;
  color: var(--ink-4);
}
.marq__item .fmt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 2px 6px;
  border: 1px solid var(--hair);
  border-radius: 5px;
  color: var(--ink-4);
}

/* ═══════════════════════════════════  USE CASES  */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.case {
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--hair);
  background: var(--surface);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--lift-2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out),
    border-color var(--t-fast) linear, opacity var(--t-mid) linear;
}
.cases:hover .case {
  opacity: 0.8;
}
.cases .case:hover {
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: var(--lift-3);
  border-color: var(--hair-2);
}
.case__who {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.case blockquote {
  font-size: 1.0625rem;
  line-height: 1.4;
  letter-spacing: -0.022em;
  color: var(--ink);
  font-weight: 400;
}
.case blockquote em {
  font-family: var(--font-serif);
  font-style: italic;
}
.case__ba {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--hair);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  flex-wrap: wrap;
}
.case__ba .before {
  color: var(--ink-3);
}
.case__ba .after {
  color: var(--ink);
  font-weight: 500;
}
.case__ba svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
  flex: none;
}
@media (max-width: 900px) {
  .cases {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════  ABOUT  */
.about {
  border-top: 1px solid var(--hair);
  background: linear-gradient(145deg, var(--canvas-2), #fff 62%, var(--accent-soft));
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
}
.about__intro {
  position: sticky;
  top: 112px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.about__intro .display {
  max-width: 12ch;
}
.about__intro > p:not(.lead) {
  max-width: 58ch;
  color: var(--ink-2);
  font-size: .9375rem;
  line-height: 1.7;
}
.about__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.about-card {
  min-height: 220px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.78);
  box-shadow: var(--lift-2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-card--wide {
  grid-column: 1 / -1;
  min-height: 0;
}
.about-card__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs) !important;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent-deep) !important;
}
.about-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -.025em;
}
.about-card > p:not(.about-card__label) {
  color: var(--ink-2);
  line-height: 1.65;
  font-size: var(--fs-sm);
}
.team-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 3px;
}
.team-list div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 13px;
  border-top: 1px solid var(--hair);
}
.team-list strong {
  font-size: .9375rem;
  font-weight: 500;
}
.team-list span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: .05em;
}
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__intro { position: static; }
}
@media (max-width: 580px) {
  .about__details { grid-template-columns: 1fr; }
  .about-card--wide { grid-column: auto; }
}

/* ═══════════════════════════════════  CTA BAND  */
.cta-band {
  position: relative;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(80px, 11vw, 148px);
  text-align: center;
  isolation: isolate;
}
.cta-band .rings circle {
  stroke: rgba(255, 255, 255, 0.05);
}
.cta-band .rings circle:nth-child(even) {
  stroke: rgba(255, 255, 255, 0.028);
}
.cta-band__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(900px, 110vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(47, 107, 255, 0.14), transparent 70%);
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.cta-band .lockup .wordmark {
  font-size: 12px;
}
.cta-band h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.03;
  max-width: 22ch;
}
.cta-band h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
}
/* on the dark band the headline ink runs white to pale slate; the second clause stays muted */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  html:not([data-a11y-contrast]) .cta-band h2.grad-text {
    background-image: linear-gradient(180deg, #ffffff 20%, #c3c9d4 100%);
  }
  html:not([data-a11y-contrast]) .cta-band h2.grad-text em {
    -webkit-text-fill-color: rgba(255, 255, 255, 0.66);
  }
}
/* on the dark band the accent pill drops a softer, deeper shadow (a bright blue glow would outline it) */
.cta-band .btn-primary {
  --btn-shadow: var(--hi-inset), 0 8px 20px -8px rgba(0, 0, 0, 0.55), 0 2px 6px -2px rgba(0, 0, 0, 0.3);
  --btn-shadow-hover: var(--hi-inset), 0 12px 26px -10px rgba(0, 0, 0, 0.6), 0 3px 8px -3px rgba(0, 0, 0, 0.32);
}
.cta-band p {
  color: var(--dark-ink-2);
  font-size: var(--fs-lead);
  max-width: 44ch;
}
.cta-band .btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.03);
  --btn-fg: #fff;
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px var(--dark-hair-2);
  --btn-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}
.cta-band .btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.07);
}

/* ============================================================
   Devanagari (hi / mr) — the display type on this page is set very
   tight, which clips matras above and below. Landing-only classes.
   ============================================================ */
:root:is([lang='hi'], [lang='mr']) .hero h1 {
  line-height: 1.24;
  letter-spacing: -0.01em;
}
:root:is([lang='hi'], [lang='mr']) .hero h1 .accent-chip {
  font-family: inherit;
  font-style: normal;
  letter-spacing: -0.01em;
}
:root:is([lang='hi'], [lang='mr']) .sec-head .display,
:root:is([lang='hi'], [lang='mr']) .about__intro .display {
  line-height: 1.28;
  letter-spacing: -0.012em;
}
:root:is([lang='hi'], [lang='mr']) .cta-band h2 {
  line-height: 1.3;
  letter-spacing: -0.012em;
}
:root:is([lang='hi'], [lang='mr']) .brief-doc h3.subject,
:root:is([lang='hi'], [lang='mr']) .brief-doc h2.subject {
  line-height: 1.4;
  letter-spacing: -0.008em;
}
:root:is([lang='hi'], [lang='mr']) .step h3,
:root:is([lang='hi'], [lang='mr']) .about-card h3,
:root:is([lang='hi'], [lang='mr']) .result__title,
:root:is([lang='hi'], [lang='mr']) .doc-h {
  line-height: 1.4;
  letter-spacing: -0.005em;
}
:root:is([lang='hi'], [lang='mr']) .map-node text {
  font-size: 10px;
}
