/* AI Mastermind — dark, quiet, one accent.
   Rule of the owner: every readable word is --fg. Hierarchy = size, weight, air — never grey.
   Grey (--deco) is only for hairlines, decorative number marks and input placeholders.
   Type scale: exactly four sizes — --t1 display, --t2 section, --t3 body, --t4 mono label. */

:root {
  --bg: #08090A;
  --fg: #EDEDEF;
  --deco: #8A8F98;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --accent: #8B8CF8;
  --accent-hi: #C3C4FF;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --t1: clamp(44px, 6.4vw, 92px);
  --t2: clamp(34px, 4.2vw, 60px);
  --t3: 18px;
  --t4: 13px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --max: 1200px;
  --gut: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 var(--t3)/1.6 var(--sans);
  letter-spacing: -.011em;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* barely-there grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--fg); text-underline-offset: 3px; text-decoration-color: var(--line-2); transition: text-decoration-color .2s; }
a:hover { text-decoration-color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.center { text-align: center; }

/* ---------- glass bar: transparent at the top, glass after scroll ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(8, 9, 10, .72);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s var(--ease);
}
.js .bar:not(.on) { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.bar-in { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-size: var(--t3); font-weight: 500; letter-spacing: -.02em; }
.brand b { font-weight: 600; }
.mark { width: 20px; height: 20px; fill: none; stroke: var(--fg); stroke-width: 1.4; stroke-linecap: round; }
.mark circle { fill: var(--accent); stroke: none; }
.test {
  display: inline-flex; align-items: center; gap: 8px;
  font: 400 var(--t4)/1 var(--mono); letter-spacing: .02em; color: var(--fg);
  border: 1px solid var(--line-2); border-radius: 99px; padding: 7px 12px;
}
.test::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--deco); }

/* ---------- shared type ---------- */
.label {
  display: flex; align-items: center; gap: 10px; margin: 0 0 28px;
  font: 400 var(--t4)/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg);
}
.label::before { content: ""; flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.center .label { justify-content: center; }
h2 { font-size: var(--t2); line-height: 1.05; letter-spacing: -.04em; max-width: 21ch; }
.center h2 { margin-left: auto; margin-right: auto; }
h3 { font-size: var(--t3); line-height: 1.4; font-weight: 600; letter-spacing: -.015em; }
.lead { max-width: 40ch; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  /* near-white only: a sheen, not a fade to grey */
  .grad, h1 .w {
    background: linear-gradient(180deg, #FFFFFF 20%, #DCDDE3 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .grad { padding-bottom: .1em; margin-bottom: -.1em; }
}

/* ---------- button: light, with an inner highlight and a sheen on hover ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; column-gap: 8px;
  min-height: 52px; padding: 13px 22px; border: 0; border-radius: 12px; cursor: pointer;
  font: 500 var(--t3)/1.3 var(--sans); letter-spacing: -.015em; color: #08090A; text-decoration: none;
  background: linear-gradient(180deg, #FFFFFF 0%, #D9DAE0 100%);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(255, 255, 255, .12), 0 10px 40px -10px rgba(139, 140, 248, .55);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .95) 50%, transparent 65%);
  transform: translateX(-110%); transition: transform .9s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(255, 255, 255, .2), 0 16px 48px -10px rgba(139, 140, 248, .75); }
.btn:hover::after { transform: translateX(110%); }
.btn:active { transform: translateY(0); }
.btn > span { white-space: nowrap; }
.btn small { font-size: inherit; font-weight: 400; color: #08090A; white-space: nowrap; }
.btn .arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-block { display: flex; width: 100%; }

/* ---------- 1. hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(112px, 13vh, 140px) 0 clamp(120px, 14vw, 200px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 55% at 50% 0%, #000 20%, transparent 75%);
}
.glow { position: absolute; pointer-events: none; }
.hero .glow {
  inset: -30% -20% auto; height: 1100px;
  background:
    radial-gradient(38% 42% at 68% 34%, rgba(139, 140, 248, .20), transparent 70%),
    radial-gradient(30% 34% at 22% 18%, rgba(255, 255, 255, .06), transparent 70%);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-5%, 4%, 0) scale(1.08); } }
.hero .wrap { position: relative; }
h1 { font-size: var(--t1); line-height: 1; letter-spacing: -.045em; max-width: 19ch; }
h1 .w { display: inline-block; padding-bottom: .08em; margin-bottom: -.08em; animation: word 1s var(--ease) both; animation-delay: calc(.12s + var(--i) * 55ms); }
@keyframes word { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } }
.fade { animation: rise 1s var(--ease) both; animation-delay: var(--dl, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }

.hero-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: 56px; align-items: start; }
.hero-side { grid-column: 1 / span 6; display: grid; justify-items: start; gap: 40px; padding-top: 8px; }

/* the hall */
.hall { grid-column: 7 / span 6; position: relative; margin: 0; }
.hall-frame {
  position: relative; padding: 14px; border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008));
  box-shadow: 0 50px 140px -50px rgba(139, 140, 248, .35);
}
.hall-frame::before { content: ""; position: absolute; top: -1px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgba(195, 196, 255, .6), transparent); }
.hall svg { width: 100%; height: auto; display: block; overflow: visible; }
.room { fill: rgba(255, 255, 255, .015); stroke: var(--line-2); stroke-width: 1; }
.rlabel { font: 400 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; fill: var(--fg); }
.link { fill: none; stroke: rgba(237, 237, 239, .22); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.link.hot { stroke: var(--accent); stroke-width: 1.6; filter: drop-shadow(0 0 4px rgba(139, 140, 248, .9)); }
.spark { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: .07 .93; opacity: 0; }
.ag { fill: #E4E5EA; opacity: .7; }
.ag.hot { fill: var(--accent-hi); opacity: 1; filter: drop-shadow(0 0 5px var(--accent)); }
.halo { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
/* plays once the hall is on screen (or right away without JS) */
.hall.in .link, html:not(.js) .hall .link { animation: draw 1.6s var(--ease) both; animation-delay: calc(.5s + var(--i) * 55ms); }
.hall.in .ag, html:not(.js) .hall .ag { animation: dot .7s var(--ease) both, breathe 4.2s ease-in-out calc(2.4s + var(--d)) infinite; animation-delay: calc(.1s + var(--i) * 12ms), calc(2.4s + var(--d)); }
.hall.in .halo, html:not(.js) .hall .halo { animation: ping 3.6s ease-out calc(2.8s + var(--d)) infinite; }
.hall.in .spark, html:not(.js) .hall .spark { animation: travel 3.2s ease-in-out 3s infinite; }
.hall.in .report, html:not(.js) .hall .report { animation: rise 1s var(--ease) 2.1s both; }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes dot { from { opacity: 0; } }
@keyframes breathe { 50% { opacity: .3; } }
@keyframes ping { 0% { opacity: .8; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(3.4); } }
@keyframes travel { 0% { stroke-dashoffset: 1; opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

.report {
  position: absolute; left: -48px; bottom: -36px; width: 272px; padding: 18px 20px 14px;
  border-radius: 16px; border: 1px solid var(--line-2);
  background: rgba(18, 19, 23, .78);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.report .rh { font: 400 var(--t4)/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.report .rh::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.report .rt { font-weight: 600; letter-spacing: -.02em; margin: 6px 0 8px; }
.report ul { margin: 0; padding: 0; list-style: none; }
.report li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.report li > span { font: 400 var(--t4)/1.4 var(--mono); letter-spacing: .02em; }
.report li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.report .ok { font-weight: 400; }
.caption { margin-top: 20px; text-align: right; font: 400 var(--t4)/1.5 var(--mono); letter-spacing: .02em; }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(104px, 14vw, 200px) 0; }
.sec::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(var(--max), 100% - 2 * var(--gut)); height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
@media (min-width: 1024px) { .sec { min-height: 92vh; display: flex; align-items: center; } }

/* scroll reveal — only hidden when JS has said it will reveal */
.js .rv { opacity: 0; transform: translateY(16px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js .rv.in { opacity: 1; transform: none; filter: none; }
.js .hall.rv { opacity: 1; transform: none; filter: none; } /* the hall animates its own parts */

/* 2. timeline */
.timeline { position: relative; list-style: none; padding: 0; margin: 96px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.timeline::before {
  content: ""; position: absolute; top: 20px; left: 20px; right: 0; height: 1px; transform-origin: left;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(139, 140, 248, .35) 45%, var(--line-2) 100%);
  transition: transform 1.8s var(--ease) .2s;
}
.js .timeline:not(.in)::before { transform: scaleX(0); }
.timeline li { position: relative; }
.node {
  position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line-2); box-shadow: 0 0 0 8px var(--bg);
}
.timeline li:first-child .node { border-color: rgba(139, 140, 248, .7); box-shadow: 0 0 0 8px var(--bg), 0 0 24px rgba(139, 140, 248, .35); }
.node svg { width: 18px; height: 18px; fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.num { display: block; margin: 32px 0 12px; font: 400 var(--t4)/1 var(--mono); letter-spacing: .08em; color: var(--deco); }
.timeline p { margin-top: 10px; max-width: 30ch; }
code { font: 400 var(--t4)/1.5 var(--mono); padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); white-space: normal; }

/* 3. what you get — three borderless columns, one big word each */
.gets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 96px; }
.get { position: relative; padding-top: 36px; border-top: 1px solid var(--line); }
.get::after { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 1px; background: var(--accent); box-shadow: 0 0 12px var(--accent); transform-origin: left; transition: transform 1.2s var(--ease) .3s; }
.js .get:not(.in)::after { transform: scaleX(0); }
.get h3 { font-size: var(--t2); font-weight: 500; line-height: 1.05; letter-spacing: -.04em; }
.get p { margin-top: 20px; max-width: 30ch; }

/* 4. school — one giant number */
.school { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.hundred {
  grid-column: 1 / span 5; justify-self: start;
  font-size: clamp(160px, 25vw, 360px); font-weight: 300; line-height: .8; letter-spacing: -.07em;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(195, 196, 255, .35) 55%, rgba(139, 140, 248, 0) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .05em; user-select: none;
}
.school-copy { grid-column: 7 / span 6; }
.school-copy .lead { margin-top: 32px; }
.clinic { display: flex; gap: 16px; align-items: flex-start; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.clinic svg { flex: 0 0 24px; width: 24px; height: 24px; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; }
.clinic b { font-weight: 600; }

/* 5. schedule — the rhythm drawn as a calendar */
.sched { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.sched-head { grid-column: 1 / span 7; }
.sched-head h2 { max-width: 13ch; }
.cal { display: grid; grid-template-columns: repeat(7, 36px); gap: 10px; margin-top: 64px; }
.cal span { font: 400 var(--t4)/1 var(--mono); text-align: center; color: var(--deco); padding-bottom: 4px; }
.cal i { display: block; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); }
.cal i.off { border-style: dashed; border-color: var(--line-2); }
.cal i.on { border-color: transparent; background: linear-gradient(180deg, var(--accent-hi), var(--accent)); box-shadow: 0 0 28px rgba(139, 140, 248, .55), inset 0 1px 0 rgba(255, 255, 255, .5); transition: transform .8s var(--ease), opacity .8s var(--ease); transition-delay: calc(.4s + var(--i) * 250ms); }
.js .cal:not(.in) i.on { opacity: 0; transform: scale(.6); }
.sched-items { grid-column: 9 / span 4; display: grid; }
.item { padding: 36px 0; border-top: 1px solid var(--line); }
.item:last-child { border-bottom: 1px solid var(--line); }
.item p { margin-top: 10px; }
.item-t { font-weight: 600; letter-spacing: -.02em; margin-top: 14px; }
.tag { display: inline-flex; align-items: center; gap: 8px; font: 400 var(--t4)/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--fg); }
.tag-a::before { border: 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* 6. safety — statement left, rules right */
.safety { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.safety > div { grid-column: 1 / span 5; }
.rules { grid-column: 7 / span 6; list-style: none; padding: 0; margin: 0; }
.rules li { display: grid; grid-template-columns: 24px 1fr; gap: 20px; padding: 32px 0; border-top: 1px solid var(--line); }
.rules li:last-child { border-bottom: 1px solid var(--line); }
.rules svg { width: 24px; height: 24px; margin-top: 2px; fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* 7. price — one glass card with a hairline gradient border */
.price-sec { overflow: hidden; }
.price-sec .glow { left: 50%; top: 55%; width: 900px; height: 700px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(139, 140, 248, .18), transparent); animation: breathe-glow 9s ease-in-out infinite alternate; }
@keyframes breathe-glow { to { opacity: .55; } }
.price-sec .wrap { position: relative; }
.price {
  position: relative; max-width: 500px; margin: 64px auto 0; padding: 44px 36px 32px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9);
}
.price::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(195, 196, 255, .7), rgba(255, 255, 255, .1) 35%, rgba(255, 255, 255, .04) 70%, rgba(139, 140, 248, .3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.price .was b { font-weight: 600; }
.price .now { font-size: var(--t1); font-weight: 500; line-height: 1; letter-spacing: -.05em; margin: 18px 0 14px; font-variant-numeric: tabular-nums; }
.price .now span { font-size: var(--t3); font-weight: 400; letter-spacing: -.01em; margin-left: 4px; }
.price .who { font: 400 var(--t4)/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.price ul { list-style: none; padding: 24px 0; margin: 28px 0 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }
.price li { display: inline-flex; align-items: center; gap: 8px; }
.price li svg { width: 16px; height: 16px; fill: none; stroke: var(--accent-hi); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fine { margin-top: 18px; font: 400 var(--t4)/1.5 var(--mono); letter-spacing: .02em; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; }
.foot p { font: 400 var(--t4)/1.7 var(--mono); letter-spacing: .02em; }

/* ---------- reserved page ---------- */
.solo { position: relative; overflow: hidden; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 120px; }
.solo .glow { inset: -30% -20% auto; height: 1000px; background: radial-gradient(36% 40% at 50% 30%, rgba(139, 140, 248, .18), transparent 70%); animation: drift 24s ease-in-out infinite alternate; }
.solo .wrap { position: relative; max-width: calc(960px + 2 * var(--gut)); }
.solo h1 { max-width: none; }
@media (min-width: 601px) { .solo h1 .nw { white-space: nowrap; } }
.solo .lead { margin-top: 32px; max-width: 46ch; }
.badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 32px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 99px; font: 400 var(--t4)/1 var(--mono); letter-spacing: .08em; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.form { display: flex; gap: 10px; flex-wrap: wrap; margin: 48px 0 16px; max-width: 560px; }
.form input {
  flex: 1 1 260px; min-height: 52px; padding: 0 18px; border-radius: 12px;
  font: 400 var(--t3)/1 var(--sans); letter-spacing: -.01em; color: var(--fg);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2);
  transition: border-color .2s, box-shadow .2s;
}
.form input::placeholder { color: var(--deco); }
.form input:focus { outline: none; border-color: rgba(139, 140, 248, .8); box-shadow: 0 0 0 4px rgba(139, 140, 248, .18); }
.note { margin-top: 12px; }
.okmsg { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.okmsg::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.back { margin-top: 40px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-side { grid-column: 1 / span 6; }
  .hall { grid-column: 7 / span 6; }
  .report { left: -24px; width: 256px; }
}
@media (max-width: 960px) {
  .hero-row, .school, .sched, .safety { grid-template-columns: 1fr; }
  .hero-side, .hall, .hundred, .school-copy, .sched-head, .sched-items, .safety > div, .rules { grid-column: 1 / -1; }
  .hero-side { max-width: 520px; }
  .hall { margin-top: 48px; }
  .report { position: relative; left: auto; bottom: auto; margin: -64px 12px 0 auto; }
  .caption { text-align: left; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 64px; }
  .timeline::before { display: none; }
  .gets { grid-template-columns: 1fr; gap: 56px; }
  .sched-items { margin-top: 56px; }
  .rules { margin-top: 48px; }
  .hundred { margin-bottom: 24px; }
}
@media (max-width: 600px) {
  :root { --gut: 20px; --t3: 17px; }
  .bar-in { height: 58px; }
  .hero { padding-top: 112px; }
  h1 { max-width: none; letter-spacing: -.04em; }
  .hero-row { margin-top: 36px; }
  .hero-side { gap: 32px; }
  .hero-side { justify-items: stretch; }
  .btn > span { white-space: normal; }
  .btn { width: 100%; min-height: 56px; flex-wrap: wrap; justify-content: center; text-align: center; }
  .btn small .sep { display: none; }
  .btn small { flex-basis: 100%; order: 1; font-size: var(--t4); font-family: var(--mono); letter-spacing: .02em; }
  .bar-in { gap: 8px; }
  .test { border: 0; padding: 0; white-space: nowrap; letter-spacing: 0; }
  .hall-frame { padding: 8px; border-radius: 16px; margin: 0 -6px; }
  .report { width: min(272px, 86%); margin-right: 0; }
  /* vertical timeline on the phone */
  .timeline { grid-template-columns: 1fr; gap: 48px; margin-top: 64px; }
  .timeline::before { display: block; top: 20px; bottom: 20px; left: 20px; right: auto; width: 1px; height: auto; transform-origin: top; background: linear-gradient(180deg, var(--accent), rgba(139, 140, 248, .3) 45%, var(--line-2)); }
  .js .timeline:not(.in)::before { transform: scaleY(0); }
  .timeline li { padding-left: 64px; }
  .node { position: absolute; left: 0; top: -8px; }
  .num { margin-top: 4px; }
  .gets { margin-top: 64px; }
  .cal { grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 48px; max-width: 335px; }
  .cal i { width: auto; aspect-ratio: 1; }
  .price { padding: 36px 22px 28px; margin-top: 48px; }
  .price ul { display: grid; justify-content: center; justify-items: start; }
  .form { flex-direction: column; }
  .form input { flex: 0 0 auto; }
  .solo { padding-top: 120px; align-items: flex-start; }
}

/* ---------- reduced motion: everything still, everything visible ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv, .js .cal:not(.in) i.on { opacity: 1; transform: none; filter: none; }
  .js .timeline:not(.in)::before, .js .get:not(.in)::after { transform: none; }
}

/* №858 Send this to your agent */
#ask-agent .askl { max-width: 560px; margin: 12px auto 0; }
.ask { max-width: 720px; margin: 28px auto 0; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.ask code { display: block; padding: 16px 18px; text-align: left; font-size: 15px; line-height: 1.55; width: 100%; box-sizing: border-box; }

/* №891 mission block */
#mission .lead { max-width: 640px; margin: 20px auto 0; }
#mission h2 { max-width: 22ch; }
.pillars { grid-template-columns: repeat(2, 1fr); margin-top: 64px; } .pillars .get p { max-width: 44ch; } @media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }
.pillars .get { text-align: left; } .center .lead { margin-left: auto; margin-right: auto; }
/* 4b. school catalog (№898) — columns by track, titles only; the open lesson is a link with an accent tag */
.cat-lead { margin-top: 24px; }
.cat { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px 32px; margin-top: 72px; }
.cat ul { list-style: none; margin: 18px 0 0; padding: 0; }
.cat li { padding: 12px 0; border-top: 1px solid var(--line); line-height: 1.4; }
.cat li.open a { text-decoration-color: var(--accent); }
.cat li.open .tag { margin-left: 6px; vertical-align: 1px; }

/* №899: личный код приглашения на странице брони */
.inv { margin-top: 40px; max-width: 720px; }
.invcode { margin: 8px 0 20px; font: 500 clamp(26px, 4vw, 38px)/1.2 var(--mono); letter-spacing: .02em; color: #fff; word-break: break-all; }
.inv .ask.inv-ask { margin: 16px 0 8px; align-items: flex-start; }
.inv .ask code { word-break: break-all; }

/* №905 — tribes in the hall: live counter under the networking timeline */
.tribes { margin-top: 96px; padding-top: 28px; border-top: 1px solid var(--line); }
.tribes-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 0; font: 400 var(--t4)/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tribes-tot b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tribes ul { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.tribes li { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; border-top: 1px solid var(--line); position: relative; }
.tribes li::after { content: ""; position: absolute; top: -1px; left: 0; width: 32px; height: 1px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.tribes li b { font-size: var(--t2); font-weight: 500; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.tribes li small { font: 400 var(--t4)/1.4 var(--mono); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.tribes-how { margin-top: 28px; max-width: 72ch; font: 400 var(--t4)/1.6 var(--mono); letter-spacing: .02em; }
/* before the first session: tribe names wait for the hall, no row of zeros */
.tribes-wait { display: none; }
.tribes.is-empty .tribes-tot, .tribes.is-empty li b, .tribes.is-empty li small { display: none; }
.tribes.is-empty .tribes-wait { display: inline; color: var(--accent); }
.tribes.is-empty li span { font-size: var(--t3, 1.25rem); }
@media (max-width: 800px) { .tribes ul { grid-template-columns: repeat(2, 1fr); } }
