/* ──────────────────────────────────────────────────────────────────────────
   SPHERONIX — Corporate training
   Scroll-driven chapters over one WebGL world.
   ────────────────────────────────────────────────────────────────────────── */
:root {
  --black: #000;
  --white: #fff;
  --blue: #3d8bff;
  --blue-fill: #2271e3;
  --blue-700: #0f3bc4;
  --blue-300: #92c3ff;
  --grey-900: #0b0d11;
  --grey-800: #15181e;
  --grey-700: #23272f;
  --grey-600: #3a3f48;
  --grey-500: #5e646e;
  --grey-400: #8a909a;
  --grey-300: #b6bac2;
  --grey-200: #d9dce1;
  --grey-100: #f1f2f4;
  --font-sans: "42dot Sans", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --font-brand: "Geist", "42dot Sans", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 2px;
  --gutter: clamp(16px, 3vw, 40px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.mono { font-family: var(--font-mono); }
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
::selection { background: var(--blue-fill); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ── WebGL stage ──────────────────────────────────────────────────────────── */
.space-stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gutter);
  transition: color .5s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, .55), transparent); transition: opacity .5s;
}
.wordmark { font-family: var(--font-brand); font-size: 20px; font-weight: 700; letter-spacing: .01em; line-height: 1; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links__item { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; padding: 6px 0; }
.nav-links__plus {
  width: 16px; height: 16px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--grey-500); position: relative;
  transition: background .3s, box-shadow .3s, transform .4s var(--ease-out);
}
.nav-links__plus::before, .nav-links__plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%); }
.nav-links__plus::before { width: 7px; height: 1px; }
.nav-links__plus::after { width: 1px; height: 7px; }
.nav-links__item:hover .nav-links__plus { transform: rotate(90deg); }
.nav-links__item.is-active .nav-links__plus { background: var(--blue-fill); box-shadow: inset 0 0 0 1px var(--blue-fill); color: #fff; }
.site-header__right { display: flex; align-items: center; gap: 12px; }
body.is-light .site-header { color: var(--black); }
body.is-light .site-header::before { opacity: 0; }
body.is-light .nav-links__plus { box-shadow: inset 0 0 0 1px var(--grey-300); }

.menu-button { display: none; align-items: center; gap: 10px; height: 34px; }
.menu-button__tag { display: inline-flex; height: 26px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.menu-button__chip { background: var(--blue-fill); color: #fff; padding: 0 7px; display: grid; place-items: center; border-radius: 2px 0 0 2px; }
.menu-button__name { background: #fff; color: #000; padding: 0 8px; display: grid; place-items: center; border-radius: 0 2px 2px 0; }
.menu-button__bars { width: 34px; height: 34px; position: relative; background: rgba(0, 0, 0, .35); border-radius: 2px; box-shadow: inset 0 0 0 1px var(--grey-500); }
.menu-button__bars i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease-out); }
.menu-button__bars i:first-child { top: 13px; }
.menu-button__bars i:last-child { top: 19px; }
.menu-button[aria-expanded="true"] .menu-button__bars i:first-child { transform: translateY(3px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-button__bars i:last-child { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: flex-end; padding: 100px var(--gutter) 32px; color: #fff; }
.mobile-menu.is-closed { pointer-events: none; }
.mobile-menu__pixels { position: absolute; inset: 0; width: 100%; height: 100%; }
.mobile-menu__list { position: relative; list-style: none; margin: 0 0 36px; padding: 0; }
.mobile-menu__item { display: flex; align-items: baseline; gap: 14px; padding: 8px 0; border-top: 1px solid var(--grey-700); font-size: clamp(30px, 9vw, 44px); letter-spacing: -.04em; line-height: 1.15; }
.mobile-menu__item .mono { font-size: 11px; color: var(--blue); letter-spacing: .08em; }
.mobile-menu__list li, .mobile-menu__foot { opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .7s var(--ease-out); }
.mobile-menu:not(.is-closed) li, .mobile-menu:not(.is-closed) .mobile-menu__foot { opacity: 1; transform: none; }
.mobile-menu:not(.is-closed) li:nth-child(1) { transition-delay: .18s; }
.mobile-menu:not(.is-closed) li:nth-child(2) { transition-delay: .24s; }
.mobile-menu:not(.is-closed) li:nth-child(3) { transition-delay: .3s; }
.mobile-menu:not(.is-closed) li:nth-child(4) { transition-delay: .36s; }
.mobile-menu:not(.is-closed) .mobile-menu__foot { transition-delay: .42s; }
.mobile-menu__foot { position: relative; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 34px; padding: 0 12px; border-radius: var(--radius); font-size: 13px; font-weight: 500; line-height: 1;
  overflow: hidden; isolation: isolate; white-space: nowrap; transition: transform .4s var(--ease-out), box-shadow .3s, background .3s;
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .16); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.btn:hover::after { transform: scaleX(1); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--blue-fill); color: #fff; }
.btn--lg, .btn--ghost { height: 44px; padding: 0 16px; font-size: 15px; }
.btn--ghost { background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px var(--grey-500); color: #fff; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--grey-300); }
.btn--full { width: 100%; }

/* ── Labels ───────────────────────────────────────────────────────────────── */
.label { display: inline-flex; gap: 3px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; line-height: 1; text-transform: uppercase; }
.label__index { background: var(--blue-fill); color: #fff; padding: 7px 9px 6px; border-radius: 2px; }
.label__text { background: #fff; color: #000; padding: 7px 9px 6px; border-radius: 2px; }
.label__text--dark { background: #000; color: #fff; }

/* ── Scenes ───────────────────────────────────────────────────────────────── */
main { position: relative; z-index: 1; }
.scene { position: relative; }
.scene__frame { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scene__layer { position: absolute; inset: 0; will-change: opacity, transform, filter; }
.scene__layer[data-range] { opacity: 0; visibility: hidden; }
.scene__layer.is-live { visibility: visible; }
.scene__layer--center { display: flex; align-items: center; justify-content: center; text-align: center; }
.scene__layer--left { display: flex; align-items: center; }
.scene__layer--top { display: flex; justify-content: center; text-align: center; padding-top: calc(var(--header-h) + 7vh); }

/* hero */
.hero { display: flex; align-items: flex-end; padding-bottom: clamp(70px, 9vh, 110px); }
.hero__inner { display: flex; flex-direction: column; gap: 22px; }
.hero__slogan { font-size: 16px; font-weight: 500; letter-spacing: -.01em; color: var(--grey-200); max-width: 544px; }
.hero__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero__title { font-size: clamp(48px, 8vw, 128px); letter-spacing: -.045em; line-height: .95; max-width: 68vw; }
.hero__side { width: 380px; flex: none; color: var(--grey-300); display: flex; flex-direction: column; gap: 24px; }
.hero__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.emerge-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.emerge-line > span { display: inline-block; transform: translateY(105%); filter: blur(12px); opacity: 0; }
body.is-ready .emerge-line > span { animation: emerge 1.3s var(--ease-out) forwards; }
body.is-ready .emerge-line:nth-child(2) > span { animation-delay: .12s; }
@keyframes emerge { to { transform: none; filter: blur(0); opacity: 1; } }
.intro-in { opacity: 0; transform: translateY(18px); }
body.is-ready .intro-in { animation: introIn 1.1s var(--ease-out) var(--d, .3s) forwards; }
@keyframes introIn { to { opacity: 1; transform: none; } }

/* beats */
.beat { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.beat__title { font-size: clamp(40px, 7.6vw, 120px); letter-spacing: -.045em; line-height: .95; max-width: 83.6vw; }
.beat--sm .beat__title { font-size: clamp(36px, 5.4vw, 86px); }
.beat__line { display: block; }
.beat__intro { font-size: 18px; line-height: 1.55; color: var(--grey-200); max-width: 612px; }

/* focus text */
.focus-text { font-size: clamp(26px, 4.5vw, 70px); font-weight: 500; letter-spacing: -.03em; line-height: 1.48; max-width: 1200px; }
.focus-text__word { display: inline-block; white-space: pre; transition: opacity .25s, filter .25s; }
.focus-text__live { display: inline-block; position: relative; padding: .02em .12em; line-height: 1.3; margin: 0 .04em; }
.focus-text__live::before { content: ""; position: absolute; inset: 0; background: var(--blue-fill); transform-origin: left; transform: scaleX(var(--box, 0)); border-radius: 2px; z-index: -1; }
.focus-text__live span { opacity: var(--txt, 0); transition: opacity .25s; }
.focus-text__live, .focus-text__word { isolation: isolate; }

/* feature cards */
.feature-row { display: flex; align-items: center; justify-content: center; }
.feature-row__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 1340px; }
.feature-card {
  position: relative; perspective: 1400px; height: clamp(400px, 58vh, 470px);
  transform: perspective(1200px) translateY(var(--y, 0px)) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); opacity: var(--o, 1);
  transition: transform .45s var(--ease-out);
}
.feature-card__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--ease-out); }
.feature-card.is-flipped .feature-card__inner { transform: rotateY(180deg); }
.feature-card__face, .feature-card__back {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: rgba(255, 255, 255, var(--glass, 1)); color: #000; border-radius: 6px; padding: 8px 8px 18px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .42); display: flex; flex-direction: column; gap: 20px; text-align: left;
  backdrop-filter: blur(calc((1 - var(--glass, 1)) * 18px)); -webkit-backdrop-filter: blur(calc((1 - var(--glass, 1)) * 18px));
  transition: background .3s;
}
.feature-card__back { transform: rotateY(180deg); padding: 22px 20px; gap: 12px; }
.feature-card__visual {
  position: relative; height: 169px; flex: none; border-radius: 4px; display: grid; place-items: center;
  background:
    linear-gradient(rgba(34, 113, 227, .1) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(90deg, rgba(34, 113, 227, .1) 1px, transparent 1px) 0 0 / 18px 18px,
    #eef4ff;
}
.feature-card__index { position: absolute; left: 12px; top: 12px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--blue-700); }
.icon-tile {
  width: 64px; height: 64px; border-radius: 2px; background: var(--blue); display: grid; place-items: center; color: #fff;
  box-shadow: 0 18px 30px rgba(29, 92, 255, .38), inset 0 -4px 0 rgba(0, 0, 0, .14);
}
.icon-tile svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-tile--sm { width: 30px; height: 30px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14); }
.icon-tile--sm svg { width: 15px; height: 15px; }
.feature-card__words { padding: 0 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.feature-card__title { font-size: 24px; letter-spacing: -.03em; line-height: 1.1; }
.feature-card__body { font-size: 15px; line-height: 1.55; color: var(--grey-600); }
.feature-card__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.feature-card__tags span { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .06em; padding: 4px 6px 3px; background: #eef4ff; color: var(--blue-700); border-radius: 2px; }
.feature-card__more { margin: 0 14px; padding-top: 14px; border-top: 1px solid var(--grey-200); display: flex; justify-content: space-between; align-items: center; font-size: 14px; text-align: left; }
.feature-card__more svg { width: 16px; height: 16px; fill: none; stroke: var(--blue-fill); stroke-width: 1.5; transition: transform .4s var(--ease-out); }
.feature-card__more:hover svg { transform: translateX(3px); }
.feature-card__back h4 { margin: 0; font-size: 20px; font-weight: 400; letter-spacing: -.02em; }
.feature-card__back ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.feature-card__back li { counter-increment: m; display: grid; grid-template-columns: 42px 1fr; padding: 9px 0; border-top: 1px dashed var(--grey-200); font-size: 13.5px; color: var(--grey-600); line-height: 1.45; }
.feature-card__back li::before { content: "M0" counter(m); font-family: var(--font-mono); font-size: 10px; color: var(--blue-700); padding-top: 2px; }
.feature-card__cap { font-size: 13px; padding: 10px 12px; background: #eef4ff; border-radius: 2px; color: var(--grey-700); }
.feature-card__back .feature-card__more { margin: auto 0 0; }

/* work */
.work-award { display: flex; flex-direction: column; align-items: center; gap: 26px; color: #000; }
.work-award__title { font-size: clamp(30px, 4.6vw, 72px); letter-spacing: -.04em; line-height: 1.04; max-width: 83vw; }
.work-award__line { display: block; }
.grad-text { background: linear-gradient(90deg, var(--blue-700), var(--blue) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.work-award__box {
  width: min(760px, 100%); padding: 27px; border-radius: 2px; background: rgba(13, 16, 24, .94); color: #fff; text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px -40px rgba(4, 6, 14, .6);
  display: flex; flex-direction: column; gap: 22px; align-items: flex-start;
}
.work-award__q { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.work-award__about { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .78); min-height: 4.8em; }
.work-award__facts { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); }
.work-award__facts small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-400); margin-bottom: 4px; }
.work-award__facts b { font-weight: 400; }

.exhibit-layer { display: flex; align-items: center; pointer-events: none; }
.exhibit-layer.is-live { pointer-events: auto; }
.exhibit-copy { width: min(320px, 30vw); display: flex; flex-direction: column; gap: 16px; color: #000; }
.exhibit-copy__labels { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.award { display: inline-flex; gap: 3px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.award__mark { width: 26px; display: grid; place-items: center; background: var(--blue); color: #fff; border-radius: 2px; }
.award__mark svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.award__text { background: #000; color: #fff; padding: 6px 10px; border-radius: 2px; }
.award--blue .award__text { background: var(--blue-fill); }
.exhibit-copy__name { font-size: clamp(30px, 4vw, 60px); letter-spacing: -.04em; line-height: 1; }
.exhibit-copy__summary { font-size: 16px; line-height: 1.55; color: var(--grey-700); }
.exhibit-copy__meta { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-600); }
.exhibit-copy__link { align-self: flex-start; font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding-bottom: 2px; border-bottom: 1px solid currentColor; }
.exhibit-copy__link:hover { color: var(--blue-fill); }
.sample-note { position: absolute; right: var(--gutter); bottom: 20px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-500); }
.sample-note[hidden] { display: none; }

.decode-glyph { color: var(--blue); }

/* route */
.route { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.route__step { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; transform: translate(-50%, 16px); opacity: 0; transition: opacity .5s; }
.route__step.is-on { opacity: 1; }
.route__meta { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-200); background: rgba(4, 6, 12, .8); padding: 3px 5px 2px; border-radius: 2px; }

/* steps */
.step {
  width: min(460px, 100%); padding: 22px; border-radius: 2px; color: #000;
  background: rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 1px var(--grey-200);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; flex-direction: column; gap: 18px;
}
.step__title { font-size: clamp(30px, 4vw, 60px); letter-spacing: -.04em; line-height: 1; }
.step__body { color: var(--grey-500); }
.step.swap .step__title, .step.swap .step__body { animation: swap .7s var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } }
.type-lines { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-600); min-height: 4.4em; }
.type-lines__line { min-height: 1.5em; }
.type-lines__cursor { display: inline-block; width: 8px; height: 14px; background: var(--blue-fill); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.step__progress { display: flex; gap: 4px; height: 4px; }
.step__progress span { flex: 1; background: var(--grey-200); }
.step__progress i { display: block; height: 100%; width: 0; background: var(--blue-fill); }

/* statement */
.statement { display: inline-block; }
.statement__frame { position: relative; padding: .02em .04em .03em; box-shadow: 0 0 0 1px var(--blue); transform-origin: center; }
.statement__readout { position: absolute; left: -1px; bottom: calc(100% + 8px); font-size: 11px; font-weight: 500; letter-spacing: .08em; background: var(--blue-fill); color: #fff; padding: 4px 6px; border-radius: 2px; line-height: 1; }
.statement__handle { position: absolute; width: 9px; height: 9px; background: #fff; box-shadow: 0 0 0 1.5px var(--blue); }
.statement__text { font-size: clamp(40px, 9vw, 140px); letter-spacing: -.05em; line-height: .98; }
.statement__line { display: block; }

/* studio */
.studio-scene { display: flex; align-items: center; justify-content: center; padding-top: var(--header-h); }
.studio-scene__panel {
  width: min(1100px, 100%); padding: 31px; border-radius: 2px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
  background: rgba(8, 10, 16, .72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 120px -30px rgba(0, 0, 0, .7);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); text-align: left;
}
.layer-stack { position: relative; height: clamp(260px, 42vh, 380px); perspective: 1200px; }
.layer-stack__slot { position: absolute; left: 0; right: 0; top: 50%; height: 0; }
.layer-stack__plane {
  position: absolute; left: 4%; top: -80px; width: 58%; height: 160px;
  transform: rotateX(58deg) rotateZ(-34deg) translateZ(0); transform-style: preserve-3d;
  background:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 22px 22px,
    rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 16px;
}
.layer-stack__tile { aspect-ratio: 1; border-radius: 2px; background: var(--blue-fill); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2); opacity: var(--a, 1); transform: scale(var(--s, 1)); transition: transform .6s var(--ease-out), opacity .6s; }
.layer-stack__label { position: absolute; left: 66%; top: -18px; display: flex; flex-direction: column; gap: 8px; }
.layer-stack__label small { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--grey-300); }
.studio-scene__list { display: flex; flex-direction: column; }
.capability-row { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: clamp(7px, 1.4vh, 12px) 0; border-top: 1px solid rgba(255, 255, 255, .1); opacity: var(--o, 1); transform: translateY(var(--y, 0)); }
.capability-row:first-child { border-top: 0; }
.capability-row h4 { margin: 0 0 2px; font-size: 17px; font-weight: 400; letter-spacing: -.01em; }
.capability-row p { font-size: 14px; color: var(--grey-300); line-height: 1.5; }

/* contact */
.scene--contact .scene__frame { overflow: hidden; }
.contact { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: calc(var(--header-h) + 8vh); }
.contact__main { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 560px; }
.contact__title { font-size: clamp(34px, 4.6vw, 72px); letter-spacing: -.045em; line-height: 1; }
.contact__line { display: block; }
.contact__body { font-size: 18px; color: var(--grey-300); max-width: 540px; }
.company { display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 1.5; color: var(--grey-300); margin-top: 14px; }
.company a:hover { color: #fff; }
.contact__mark {
  font-family: var(--font-brand); font-weight: 700; font-size: 18.6vw; letter-spacing: -.06em; line-height: .74;
  margin: 0 0 -1.5vw -.06em; white-space: nowrap; color: #fff; user-select: none;
}

/* ── Indicator + chapter dots ─────────────────────────────────────────────── */
.indicator { position: fixed; left: 12px; bottom: 16px; z-index: 40; display: flex; gap: 2px; height: 46px; font-family: var(--font-mono); letter-spacing: .08em; pointer-events: none; }
.indicator__index { width: 38px; display: grid; place-items: center; background: var(--blue-fill); border-radius: 2px; font-size: 13px; font-weight: 500; }
.indicator__text { display: flex; flex-direction: column; justify-content: center; padding: 0 12px; background: #000; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--grey-700); text-transform: uppercase; }
.indicator__kicker { font-size: 10px; color: var(--grey-400); line-height: 1.4; }
.indicator__name { font-size: 12px; font-weight: 500; line-height: 1.5; }
.indicator.flip .indicator__index, .indicator.flip .indicator__name { animation: flipIn .55s var(--ease-out); }
@keyframes flipIn { from { transform: translateY(40%); opacity: 0; filter: blur(4px); } }

.chapter-dots { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 4px; }
.chapter-dots__item { position: relative; width: 20px; height: 20px; display: grid; place-items: center; }
.chapter-dots__mark { width: 6px; height: 6px; border-radius: 1px; background: rgba(255, 255, 255, .45); transition: height .4s var(--ease-out), background .3s; }
.chapter-dots__item.is-active .chapter-dots__mark { height: 18px; background: var(--blue); }
body.is-light .chapter-dots__mark { background: rgba(0, 0, 0, .3); }
body.is-light .chapter-dots__item.is-active .chapter-dots__mark { background: var(--blue-fill); }
.chapter-dots__name { position: absolute; right: 26px; top: 50%; transform: translate(6px, -50%); white-space: nowrap; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; background: #fff; color: #000; padding: 4px 6px; border-radius: 2px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease-out); }
.chapter-dots__item:hover .chapter-dots__name { opacity: 1; transform: translate(0, -50%); }

/* cursor CTA */
.cursor-cta { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; opacity: 0; transform: translate3d(-100px, -100px, 0); transition: opacity .3s; }
.cursor-cta.is-on { opacity: 1; }
.cursor-cta .btn { height: 44px; padding: 0 16px; font-size: 15px; transform: translate(14px, 14px) scale(var(--sc, .6)); transition: transform .4s var(--ease-out); }
.cursor-cta.is-on .btn { --sc: 1; }

/* ── Dialogs ──────────────────────────────────────────────────────────────── */
.contact-dialog { border: 0; padding: 0; background: transparent; color: #fff; width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 24px); }
.placements-dialog { width: min(1100px, calc(100% - 24px)); }
.contact-dialog::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.contact-dialog[open] { animation: dialogIn .6s var(--ease-out); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }
.contact-dialog__panel { background: rgba(13, 16, 24, .96); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); border-radius: 2px; padding: clamp(20px, 3vw, 32px); }
.contact-dialog__head { display: flex; justify-content: space-between; align-items: center; }
.contact-dialog__close { width: 34px; height: 34px; position: relative; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--grey-600); }
.contact-dialog__close span { position: absolute; left: 10px; right: 10px; top: 50%; height: 1.5px; background: currentColor; }
.contact-dialog__close span:first-child { transform: rotate(45deg); }
.contact-dialog__close span:last-child { transform: rotate(-45deg); }
.contact-dialog__title { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.04em; line-height: 1.05; margin: 20px 0 14px; }
.contact-chat { display: flex; flex-direction: column; gap: 4px; font-size: 12px; letter-spacing: .06em; color: var(--grey-300); text-transform: uppercase; margin-bottom: 22px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label, .form legend { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-400); }
.form input, .form select, .form textarea {
  font: 15px var(--font-sans); color: #fff; background: rgba(255, 255, 255, .04); border: 0; border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--grey-700); padding: 12px; width: 100%; text-transform: none; letter-spacing: 0;
  transition: box-shadow .2s;
}
.form select option { color: #000; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--blue); }
.form textarea { resize: vertical; }
.form em { font-style: normal; font-size: 11px; color: #ff6b6b; text-transform: none; letter-spacing: 0; }
.form__full, .form__programs { grid-column: 1 / -1; }
.form__programs { border: 0; margin: 0; padding: 0; }
.form__programs legend { margin-bottom: 6px; }
#programRadios { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; }
.radio span { display: block; padding: 11px 12px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--grey-700); font: 14px var(--font-sans); color: #fff; letter-spacing: 0; text-transform: none; transition: box-shadow .2s, background .2s; }
.radio input:checked + span { background: rgba(34, 113, 227, .18); box-shadow: inset 0 0 0 1px var(--blue); }
.radio input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; }
.form__status { font-size: 14px; min-height: 1.5em; margin: 16px 0 10px; color: var(--grey-300); }
.form__status.ok { color: #5fe3a1; }
.form__status.err { color: #ff6b6b; }

/* placements dialog */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--grey-700); border-bottom: 1px solid var(--grey-700); margin: 6px 0 20px; }
.stat { padding: 18px 16px 16px 0; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--grey-700); }
.stat b { display: block; font-size: clamp(28px, 3.4vw, 46px); font-weight: 400; letter-spacing: -.04em; line-height: 1; margin-bottom: 8px; }
.stat b i { font-style: normal; color: var(--blue); }
.stat > span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-400); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--grey-700); }
.chip.is-active { background: #fff; color: #000; box-shadow: none; }
.chip .n { opacity: .5; margin-left: 6px; }
.students { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.student { padding: 16px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--grey-700); background: rgba(255, 255, 255, .02); display: flex; flex-direction: column; gap: 12px; }
.student[hidden] { display: none; }
.student__top { display: flex; gap: 12px; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 2px; display: grid; place-items: center; font-weight: 600; flex: none; background: linear-gradient(145deg, var(--a), var(--b)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.student__name { font-size: 16px; line-height: 1.2; }
.student__role { font-size: 13px; color: var(--grey-400); }
.student__co { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px dashed var(--grey-700); font-size: 14px; }
.student__co .mono { font-size: 10px; letter-spacing: .08em; color: var(--blue); }
.student__quote { font-size: 13px; color: var(--grey-300); line-height: 1.5; }
.student__foot { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--grey-400); }
.student__foot b { color: var(--blue); font-weight: 500; }
.companies { margin-top: 22px; display: grid; gap: 8px; }
.companies__row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; padding-top: 8px; border-top: 1px solid var(--grey-700); font-size: 14px; color: var(--grey-200); }
.companies__row .mono { font-size: 10px; letter-spacing: .08em; color: var(--blue); }
.sample-note--inline { position: static; margin-top: 18px; }
.noscript { position: fixed; bottom: 0; inset-inline: 0; z-index: 100; padding: 12px; text-align: center; background: var(--blue-fill); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .feature-card__body { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 900px) {
  .nav-links, .site-header__right > .btn { display: none; }
  .menu-button { display: inline-flex; }
  .hero__heading { flex-direction: column; align-items: flex-start; gap: 26px; }
  .hero__title { max-width: none; font-size: clamp(54px, 15vw, 96px); }
  .hero__side { width: 100%; max-width: 420px; }
  .feature-row__cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature-card { height: clamp(250px, 38vh, 330px); }
  .feature-card__visual { height: 34%; }
  .feature-card__face { gap: 12px; }
  .feature-card__tags { display: none; }
  .feature-card__title { font-size: 18px; }
  .icon-tile { width: 46px; height: 46px; }
  .exhibit-layer { align-items: flex-end; padding-bottom: 80px; }
  .exhibit-copy { width: 100%; gap: 10px; }
  .exhibit-copy__summary { font-size: 14px; }
  .studio-scene__panel { grid-template-columns: 1fr; padding: 18px; gap: 8px; }
  .layer-stack { display: none; }
  .capability-row { padding: 8px 0; }
  .capability-row p { font-size: 12.5px; }
  .students { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--grey-700); }
  .chapter-dots { display: none; }
  .scene__layer--left { align-items: flex-start; padding-top: calc(var(--header-h) + 16px); }
}
@media (max-width: 600px) {
  .feature-row__cards { gap: 8px; }
  .feature-card__more { display: none; }
  .work-award__facts { grid-template-columns: 1fr; gap: 8px; }
  .work-award__box { padding: 18px; gap: 14px; }
  .work-award__about { font-size: 13.5px; }
  .students, .form__grid, #programRadios { grid-template-columns: 1fr; }
  .contact__body { font-size: 16px; }
  .beat__intro { font-size: 16px; }
  .route__meta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}
[data-range] { opacity: 0; }

/* ── Interactive tiles ────────────────────────────────────────────────────── */
body.tile-hover { cursor: pointer; }
.tile-tip { position: fixed; left: 0; top: 0; z-index: 61; pointer-events: none; opacity: 0; transition: opacity .25s; }
.tile-tip.is-on { opacity: 1; }
.tile-tip .label { transform: scale(.9); transform-origin: left top; transition: transform .35s var(--ease-out); }
.tile-tip.is-on .label { transform: none; }
.icon-tile { transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.feature-card:hover .icon-tile { transform: translateY(-8px) rotateX(16deg) rotateY(-16deg) scale(1.06); box-shadow: 0 26px 36px rgba(29, 92, 255, .5), inset 0 -4px 0 rgba(0, 0, 0, .14); }
.feature-card:active .icon-tile { transform: translateY(-2px) rotateY(180deg) scale(.98); }
.capability-row .icon-tile { transition: transform .5s var(--ease-out), background .3s; }
.capability-row:hover .icon-tile { transform: translateY(-2px) rotate(-8deg) scale(1.12); background: var(--blue-fill); }
.capability-row:hover h4 { color: var(--blue-300); }
.layer-stack__tile { display: grid; place-items: center; color: #fff; }
.layer-stack__tile svg { width: 58%; height: 58%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.layer-stack__slot:nth-child(odd) .layer-stack__tile:nth-child(even), .layer-stack__slot:nth-child(even) .layer-stack__tile:nth-child(odd) { background: #1b5fd0; }
.layer-stack__slot:hover .layer-stack__tile { animation: tilePop .6s var(--ease-out) var(--d) both; }
@keyframes tilePop { 40% { transform: translateZ(14px) scale(1.18); background: var(--blue); } }
.layer-stack__plane { transform-style: preserve-3d; }
.layer-stack__slot { transition: transform .2s linear; }
.award__mark, .label__index, .indicator__index { font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .feature-row { padding-bottom: 70px; padding-top: var(--header-h); }
  .scene__layer--center { padding-bottom: 40px; }
  .tile-tip { display: none; }
}

/* ── A day at Spheronix ───────────────────────────────────────────────────── */
.day { display: grid; grid-template-rows: auto 1fr auto; gap: 18px; padding-top: calc(var(--header-h) + 4vh); padding-bottom: 86px; }
.day__head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.day__clock { display: flex; align-items: flex-start; gap: 10px; margin: 0; line-height: .85; }
.day__clock b { font-weight: 300; font-size: clamp(64px, 10vw, 156px); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.day__clock .mono { font-size: 13px; letter-spacing: .1em; margin-top: .6em; color: var(--blue-300); }
.day__card { align-self: center; width: min(420px, 100%); padding: 22px; border-radius: 2px; color: #000; background: rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 1px var(--grey-200); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: 10px; }
.day__time { font-size: 11px; letter-spacing: .08em; color: var(--blue-fill); }
.day__card h3 { font-size: clamp(28px, 3.2vw, 46px); letter-spacing: -.04em; line-height: 1; }
.day__card p { color: var(--grey-500); }
.day__card.swap h3, .day__card.swap p { animation: swap .6s var(--ease-out); }
.day__track { position: relative; height: 70px; touch-action: none; cursor: grab; user-select: none; }
.day__track.is-dragging { cursor: grabbing; }
.day__rail { position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: rgba(255, 255, 255, .18); }
.day__rail i { display: block; height: 100%; width: 0; background: var(--blue); }
.day__ticks { position: absolute; inset: 0; pointer-events: none; }
.day__tick { position: absolute; top: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: auto; padding: 0 4px; }
.day__tick i { width: 10px; height: 10px; transform: rotate(45deg); background: var(--black); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); transition: background .3s, box-shadow .3s; margin-top: 3px; }
.day__tick span { font-size: 10px; letter-spacing: .06em; color: var(--grey-400); transition: color .3s; }
.day__tick.is-past i { background: var(--blue-fill); box-shadow: none; }
.day__tick.is-on i { background: #fff; box-shadow: 0 0 0 4px rgba(61, 139, 255, .45); }
.day__tick.is-on span { color: #fff; }
.day__tick:hover span { color: #fff; }
.day__handle { position: absolute; top: 31px; left: 0; width: 0; height: 0; pointer-events: none; }
.day__handle::before { content: ""; position: absolute; left: -1px; top: -18px; width: 2px; height: 36px; background: #fff; box-shadow: 0 0 12px rgba(61, 139, 255, .9); }
.day__handle span { position: absolute; bottom: 22px; left: 0; transform: translateX(-50%); font-size: 11px; background: var(--blue-fill); color: #fff; padding: 4px 6px; border-radius: 2px; letter-spacing: .06em; white-space: nowrap; }
.day__hint { position: absolute; right: 0; bottom: -6px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-500); }
.day__track:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }

/* ── Program finder ───────────────────────────────────────────────────────── */
.finder { display: flex; align-items: center; padding-top: var(--header-h); padding-bottom: 60px; }
.finder__panel {
  width: min(470px, 100%); padding: clamp(16px, 2.6vh, 26px); border-radius: 2px; display: flex; flex-direction: column; gap: clamp(10px, 1.8vh, 16px);
  background: rgba(8, 10, 16, .74); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 120px -40px rgba(0, 0, 0, .8);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.finder__panel[hidden] { display: none; }
.finder__result { animation: dialogIn .7s var(--ease-out); }
.finder__title { font-size: clamp(30px, min(3.6vw, 6vh), 56px); letter-spacing: -.045em; line-height: 1; }
.finder__intro { color: var(--grey-300); }
.finder__chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.finder__chip { display: flex; align-items: center; gap: 10px; padding: clamp(3px, .6vh, 6px) 10px clamp(3px, .6vh, 6px) 6px; border-radius: 2px; text-align: left; font-size: 13.5px; color: var(--grey-200); box-shadow: inset 0 0 0 1px var(--grey-700); transition: background .25s, box-shadow .25s, color .25s, transform .3s var(--ease-out); }
.finder__chip i { flex: none; width: clamp(22px, 3.2vh, 26px); height: clamp(22px, 3.2vh, 26px); border-radius: 2px; display: grid; place-items: center; background: var(--grey-800); transition: background .25s, transform .4s var(--ease-out); }
.finder__chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.finder__chip:hover { box-shadow: inset 0 0 0 1px var(--grey-400); color: #fff; }
.finder__chip[aria-pressed="true"] { background: rgba(34, 113, 227, .2); box-shadow: inset 0 0 0 1px var(--blue); color: #fff; }
.finder__chip[aria-pressed="true"] i { background: var(--blue-fill); transform: rotate(-8deg) scale(1.08); }
.finder__chip:active { transform: scale(.97); }
.finder__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.finder__count { font-size: 11px; letter-spacing: .08em; color: var(--grey-400); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.finder__meter { display: flex; flex-direction: column; gap: 8px; }
.finder__bar { display: grid; grid-template-columns: 120px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; color: var(--grey-400); }
.finder__track { height: 10px; position: relative; }
.finder__track i { position: absolute; inset: 0 auto 0 0; background: var(--grey-600); border-radius: 0 4px 4px 0; min-width: 2px; animation: grow 1s var(--ease-out) both; }
.finder__bar.is-best { color: #fff; }
.finder__bar.is-best .finder__track i { background: var(--blue); }
.finder__bar b { font-weight: 500; color: #fff; text-align: right; font-variant-numeric: tabular-nums; }
@keyframes grow { from { width: 0; } }

/* ── AI admissions assistant ──────────────────────────────────────────────── */
.ask {
  position: fixed; right: 16px; bottom: 16px; z-index: 55; display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 16px; border-radius: 2px; background: #fff; color: #000; font-size: 14px; font-weight: 500;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); transition: transform .4s var(--ease-out), background .3s;
}
.ask:hover { transform: translateY(-2px); }
.ask__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-fill); box-shadow: 0 0 0 0 rgba(34, 113, 227, .6); animation: askPing 2s infinite; }
@keyframes askPing { 70% { box-shadow: 0 0 0 8px rgba(34, 113, 227, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 113, 227, 0); } }
body.ask-open .ask { background: var(--blue-fill); color: #fff; }
body.ask-open .ask__dot { background: #fff; }
.ask-panel {
  position: fixed; right: 16px; bottom: 72px; z-index: 56; width: min(390px, calc(100vw - 32px)); max-height: min(620px, calc(100dvh - 140px));
  display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 2px;
  background: rgba(10, 13, 20, .94); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 120px -30px rgba(0, 0, 0, .85);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: dialogIn .5s var(--ease-out);
}
.ask-panel[hidden] { display: none; }
.ask-panel__head { display: flex; justify-content: space-between; align-items: center; }
.ask-panel__note { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-400); line-height: 1.5; }
.ask-panel__log { flex: 1; min-height: 160px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 4px; overscroll-behavior: contain; }
.ask-msg { max-width: 88%; padding: 10px 12px; border-radius: 2px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.ask-msg--assistant { align-self: flex-start; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.ask-msg--user { align-self: flex-end; background: var(--blue-fill); }
.ask-msg--error { box-shadow: inset 2px 0 0 #ff6b6b; color: var(--grey-200); }
.ask-msg.is-typing { min-width: 54px; min-height: 38px; background-image: radial-gradient(circle, #fff 2px, transparent 2.5px), radial-gradient(circle, #fff 2px, transparent 2.5px), radial-gradient(circle, #fff 2px, transparent 2.5px); background-size: 8px 8px; background-repeat: no-repeat; background-position: 14px 50%, 24px 50%, 34px 50%; animation: typing 1s infinite; }
@keyframes typing { 50% { opacity: .4; } }
.ask-panel__suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-panel__suggest[hidden] { display: none; }
.ask-panel__suggest button { font-size: 12.5px; padding: 7px 10px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--grey-600); color: var(--grey-200); text-align: left; }
.ask-panel__suggest button:hover { box-shadow: inset 0 0 0 1px var(--blue); color: #fff; }
.ask-panel__form { display: flex; gap: 6px; }
.ask-panel__form input { flex: 1; min-width: 0; font: 14px var(--font-sans); color: #fff; background: rgba(255, 255, 255, .05); border: 0; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--grey-700); padding: 0 12px; height: 40px; }
.ask-panel__form input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--blue); }
.ask-panel__form .btn { height: 40px; width: 44px; padding: 0; }
.cursor-cta, .tile-tip { z-index: 54; }

@media (max-width: 900px) {
  .day { padding-bottom: 76px; gap: 12px; }
  .day__card { align-self: end; padding: 16px; }
  .day__card h3 { font-size: 28px; }
  .day__card p { font-size: 14px; }
  .day__tick span { display: none; }
  .day__tick.is-on span { display: block; }
  .day__hint { display: none; }
  .finder { align-items: flex-end; padding-bottom: 70px; }
  .finder__panel { padding: 16px; gap: 10px; }
  .finder__title { font-size: 30px; }
  .finder__title br { display: none; }
  .finder__intro { font-size: 14px; }
  .finder__chips { grid-template-columns: repeat(8, 1fr); }
  .finder__chip { padding: 0; justify-content: center; aspect-ratio: 1; }
  .finder__chip span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .finder__chip i { width: 100%; height: 100%; }
  .ask span:last-child { display: none; }
  .ask { width: 46px; padding: 0; justify-content: center; bottom: 12px; right: 12px; }
  .ask-panel { right: 12px; bottom: 66px; }
}

/* ── Process: extra interactions ──────────────────────────────────────────── */
/* route stop cards */
.route__step { pointer-events: auto; cursor: pointer; }
.route__step .label { transition: transform .4s var(--ease-out); }
.route__step:hover .label, .route__step.is-open .label { transform: translateY(-2px); }
.route__step .label__index { position: relative; }
.route__step.is-on .label__index::after { content: ""; position: absolute; inset: -3px; border-radius: 3px; box-shadow: 0 0 0 1px var(--blue); animation: stopPing 2.2s var(--ease-out) infinite; }
@keyframes stopPing { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.8); } }
.route__card {
  position: absolute; top: calc(100% + 8px); left: 0; width: 250px; padding: 14px; border-radius: 2px; z-index: 3;
  display: flex; flex-direction: column; gap: 6px; text-align: left; pointer-events: none;
  background: rgba(10, 13, 22, .92); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 60px -20px rgba(0, 0, 0, .8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(8px) scale(.98); transform-origin: top left; transition: opacity .3s, transform .45s var(--ease-out);
}
.route__card .mono { font-size: 10px; letter-spacing: .08em; color: var(--blue); }
.route__card b { font-weight: 500; font-size: 18px; letter-spacing: -.02em; }
.route__card p { font-size: 13px; color: var(--grey-300); line-height: 1.5; }
.route__step:hover .route__card, .route__step.is-open .route__card, .route__step:focus-visible .route__card { opacity: 1; transform: none; }
.route__step[data-node="2"] .route__card { left: auto; right: 0; transform-origin: top right; }

/* steps panel: tilt, glare, shine on change, clickable segments */
.step { position: relative; overflow: hidden; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .45s var(--ease-out); }
.step::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(260px 200px at var(--gx, 50%) var(--gy, 0%), rgba(61, 139, 255, .14), transparent 70%); opacity: 0; transition: opacity .4s; }
.step:hover::before { opacity: 1; }
.step::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); transform: skewX(-18deg); opacity: 0; }
.step.swap::after { animation: shine .9s var(--ease-out); }
@keyframes shine { 0% { left: -60%; opacity: 1; } 100% { left: 130%; opacity: 0; } }
.step__progress { height: 4px; }
.step__progress button { flex: 1; position: relative; height: 4px; background: var(--grey-200); padding: 0; transition: transform .3s var(--ease-out), background .3s; }
.step__progress button::before { content: ""; position: absolute; inset: -10px 0; }
.step__progress button:hover { background: var(--grey-300); transform: scaleY(1.8); }
.step__progress button:focus-visible { outline-offset: 4px; }

/* statement: resize handles + collaborator cursors */
.statement__handle { cursor: nwse-resize; touch-action: none; transition: transform .25s var(--ease-out), background .2s; }
.statement__handle[data-h="ne"], .statement__handle[data-h="sw"] { cursor: nesw-resize; }
.statement__handle::before { content: ""; position: absolute; inset: -10px; }
.statement__handle:hover, .statement.is-resizing .statement__handle { transform: scale(1.5); background: var(--blue); }
.statement.is-resizing .statement__frame { box-shadow: 0 0 0 1.5px var(--blue), 0 0 40px rgba(61, 139, 255, .25); }
.statement__readout { transition: background .2s; }
.statement.is-resizing .statement__readout { background: var(--blue); }
.collab { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s; }
.statement.has-collab .collab { opacity: 1; }
.collab__cursor { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; gap: 2px; will-change: transform; }
.collab__cursor svg { width: 18px; height: 18px; fill: var(--blue-fill); stroke: #fff; stroke-width: 1.2; transition: transform .2s var(--ease-out); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.collab__cursor b { margin-top: 14px; font: 500 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 4px 6px; border-radius: 2px; background: var(--blue-fill); color: #fff; white-space: nowrap; }
.collab__cursor--alt svg { fill: #fff; stroke: var(--blue-fill); }
.collab__cursor--alt b { background: #fff; color: #000; }
.collab__cursor.is-click svg { transform: scale(.8); }
.collab__cursor::before { content: ""; position: absolute; left: -6px; top: -6px; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--blue); opacity: 0; }
.collab__cursor.is-click::before { animation: clickRing .5s var(--ease-out); }
@keyframes clickRing { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(2.2); } }

/* day: activity name on ticks, progress inside the activity */
.day__tick em { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translate(-50%, 4px); white-space: nowrap; font: 500 10px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; font-style: normal; background: #fff; color: #000; padding: 4px 6px; border-radius: 2px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease-out); }
.day__tick:hover em, .day__tick:focus-visible em { opacity: 1; transform: translate(-50%, 0); }
.day__tick:hover i { transform: rotate(45deg) scale(1.4); }
.day__tick i { transition: background .3s, box-shadow .3s, transform .3s var(--ease-out); }
.day__progress { height: 3px; background: var(--grey-200); margin-top: 4px; }
.day__progress i { display: block; height: 100%; width: 0; background: var(--blue-fill); }
@media (max-width: 900px) {
  .route__card { width: 200px; }
  .collab__cursor b { font-size: 9px; }
}
