@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;700;800&family=Sora:wght@300;400;500&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --void: #000;
  --star: #f3f1ff;
  --muted: rgba(226, 222, 255, 0.62);
  --dim: rgba(226, 222, 255, 0.34);
  --hot: #ff8a8a;
  --violet: #a58bff;
  --indigo: #4f46ff;
  --line: rgba(255, 255, 255, 0.1);
  --grad: linear-gradient(95deg, #ffb0a0 0%, #ff8a8a 22%, #b69cff 55%, #5b5bff 100%);
  --display: 'Syne', sans-serif;
  --body: 'Sora', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html,
body {
  background: var(--void);
  color: var(--star);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

html.entered {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto;
}

html.entered body {
  overflow-x: clip !important;
  overflow-y: visible !important;
  height: auto;
}

html:not(.entered) body {
  overflow: hidden;
  height: 100vh;
}

::selection {
  background: rgba(165, 139, 255, 0.4);
}

a {
  color: inherit;
  text-decoration: none;
}

.mono {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- World layers ---------- */

#blackhole {
  position: fixed;
  inset: 0;
  z-index: 0;
}

html.entered #blackhole .experience {
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.65) 100%);
}

/* ---------- Intro ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 1.5rem 9vh;
  pointer-events: none;
  transition: opacity 1.2s var(--ease), filter 1.2s var(--ease), transform 1.4s var(--ease);
}

.intro.gone {
  opacity: 0;
  filter: blur(14px);
  transform: scale(1.12);
}

.intro-inner {
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}

.intro.ready .intro-inner {
  opacity: 1;
  transform: none;
}

.intro-kicker {
  color: var(--violet);
  margin: 0 0 1rem;
}

.intro-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 6.5vw, 4.6rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 0 0 1rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(165, 139, 255, 0.35));
}

.intro-sub {
  color: var(--muted);
  font-weight: 300;
  margin: 0 auto 2rem;
  max-width: 30rem;
}

.btn-enter {
  pointer-events: auto;
  position: relative;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--star);
  background: rgba(10, 8, 30, 0.35);
  border: 1px solid rgba(182, 156, 255, 0.45);
  border-radius: 999px;
  padding: 1.15rem 2.6rem 1.15rem 3rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.btn-enter::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, #ff8a8a, #b69cff, transparent);
  animation: spin 3s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}

@property --a {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes spin {
  to { --a: 360deg; }
}

.btn-enter:hover {
  border-color: #b69cff;
  box-shadow: 0 0 60px rgba(165, 139, 255, 0.35), inset 0 0 30px rgba(165, 139, 255, 0.15);
}

.intro-hint {
  color: var(--dim);
  margin-top: 1.25rem;
}

.intro-loader {
  position: absolute;
  left: 50%;
  bottom: 4vh;
  transform: translateX(-50%);
  color: var(--dim);
  white-space: nowrap;
  transition: opacity 0.6s;
}

.intro.ready .intro-loader {
  opacity: 0;
}

.intro-loader span {
  color: var(--star);
  margin-left: 0.6em;
}

/* ---------- Chrome / HUD ---------- */

.chrome,
.rail,
.telemetry,
.scroll-hint {
  opacity: 0;
  transition: opacity 1.4s var(--ease) 0.6s, transform 1.4s var(--ease) 0.6s;
}

html.site-on .chrome,
html.site-on .rail,
html.site-on .telemetry,
html.site-on .scroll-hint {
  opacity: 1;
}

.chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.6rem clamp(1.25rem, 3.5vw, 3rem);
  transform: translateY(-12px);
}

html.site-on .chrome {
  transform: none;
}

.logo {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
}

.logo span {
  color: var(--hot);
}

.sector {
  color: var(--muted);
  text-align: center;
}

.sector #sector-code {
  color: var(--hot);
}

.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--muted);
  position: relative;
  cursor: pointer;
  transition: color 0.3s;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.nav a:hover {
  color: var(--star);
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.sound-btn {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
  width: 36px;
  justify-content: center;
  padding: 10px 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.sound-btn i {
  display: block;
  width: 2px;
  height: 3px;
  background: var(--star);
  border-radius: 2px;
  transition: height 0.3s;
}

html.sound-on .sound-btn i {
  animation: eq 1s ease-in-out infinite;
}

html.sound-on .sound-btn i:nth-child(2) { animation-delay: -0.3s; }
html.sound-on .sound-btn i:nth-child(3) { animation-delay: -0.6s; }
html.sound-on .sound-btn i:nth-child(4) { animation-delay: -0.15s; }

@keyframes eq {
  0%, 100% { height: 3px; }
  50% { height: 15px; }
}

.rail {
  position: fixed;
  left: clamp(1rem, 2.4vw, 2rem);
  top: 50%;
  z-index: 40;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rail-track {
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}

.rail-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #ff8a8a, #b69cff, #5b5bff);
  transform-origin: top;
  transform: scaleY(0);
}

.rail-dots {
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
  position: relative;
}

.rail-dot {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--dim);
}

.rail-dot::before {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--dim);
  background: #000;
  transition: all 0.5s var(--ease);
}

.rail-dot span {
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.5s var(--ease);
}

.rail-dot:hover span,
.rail-dot.active span {
  opacity: 1;
  transform: none;
}

.rail-dot.active {
  color: var(--star);
}

.rail-dot.active::before {
  border-color: #ff8a8a;
  background: #ff8a8a;
  box-shadow: 0 0 16px #ff8a8a, 0 0 40px rgba(255, 138, 138, 0.5);
}

.telemetry {
  position: fixed;
  left: clamp(1.25rem, 3.5vw, 3rem);
  bottom: 1.6rem;
  z-index: 40;
  display: flex;
  gap: 1.4rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.telemetry b {
  color: var(--star);
  font-weight: 500;
}

.scroll-hint {
  position: fixed;
  right: clamp(1.25rem, 3.5vw, 3rem);
  bottom: 1.6rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--dim);
}

.scroll-hint i {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, #b69cff);
  animation: drip 2.2s var(--ease) infinite;
  transform-origin: top;
}

@keyframes drip {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

html[data-sector='3'] .scroll-hint {
  opacity: 0;
}

/* ---------- Cursor ---------- */

#cursor-dot,
#cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
}

#cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: #fff;
}

#cursor-ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background 0.4s;
}

html.cursor-hot #cursor-ring {
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  background: rgba(255, 255, 255, 0.9);
}

@media (pointer: fine) {
  html.cosmos-ready,
  html.cosmos-ready * {
    cursor: none !important;
  }
}

@media (pointer: coarse) {
  #cursor-dot,
  #cursor-ring {
    display: none;
  }
}

/* ---------- Site ---------- */

.site {
  position: relative;
  z-index: 10;
  visibility: hidden;
}

html.site-on .site {
  visibility: visible;
}

.chapter {
  position: relative;
}

.chapter--sticky {
  height: 230vh;
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(1.5rem, 7vw, 8rem);
  will-change: transform, opacity, filter;
}

.stage--left {
  align-items: flex-start;
}

.stage--right {
  align-items: flex-end;
  text-align: left;
}

.stage--right > * {
  width: min(520px, 100%);
}

.kicker {
  color: var(--hot);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.kicker::before {
  content: '';
  width: 34px;
  height: 1px;
  background: currentColor;
}

/* hero */

.mega {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.2rem, 8.6vw, 9.5rem);
  line-height: 0.84;
  letter-spacing: -0.02em;
  margin: 0;
  white-space: nowrap;
}

.mega--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(243, 241, 255, 0.85);
  margin-bottom: 2rem;
}

.mega .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotateX(-80deg) scale(0.9);
  filter: blur(12px);
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease), filter 1.4s var(--ease), color 0.4s, -webkit-text-stroke-color 0.4s;
  transition-delay: calc(var(--i) * 55ms + 200ms);
  transform-origin: 50% 100%;
}

.mega.in .ch {
  opacity: 1;
  transform: none;
  filter: none;
}

.mega .ch:hover {
  color: #ff8a8a;
  -webkit-text-stroke-color: #ff8a8a;
  text-shadow: 0 0 40px rgba(255, 138, 138, 0.8);
  transition-delay: 0s;
  transition-duration: 0.15s;
}

.mega:not(.mega--outline) {
  background: linear-gradient(180deg, #fff 30%, rgba(200, 190, 255, 0.75));
  -webkit-background-clip: text;
  background-clip: text;
}

.mega:not(.mega--outline) .ch {
  -webkit-text-fill-color: transparent;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
}

.mega:not(.mega--outline) .ch:hover {
  -webkit-text-fill-color: #ff8a8a;
}

.lede {
  max-width: 30rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 300;
  line-height: 1.75;
  margin: 0 0 2.4rem;
}

.cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 1.05rem 1.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.45s var(--ease), box-shadow 0.45s, background 0.45s, color 0.45s, border-color 0.45s;
}

.btn--solid {
  color: #0b0716;
  background: var(--grad);
  box-shadow: 0 10px 50px rgba(165, 139, 255, 0.3);
}

.btn--solid:hover {
  box-shadow: 0 16px 70px rgba(255, 138, 138, 0.45);
}

.btn--line {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.btn--line:hover {
  border-color: #b69cff;
  color: #fff;
}

/* reveal primitive */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(8px);
  transition: opacity 1.3s var(--ease), transform 1.3s var(--ease), filter 1.3s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* about */

.glass {
  position: relative;
  padding: clamp(1.8rem, 3vw, 2.8rem);
  background: linear-gradient(160deg, rgba(20, 14, 50, 0.42), rgba(0, 0, 0, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.glass::before,
.glass::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid #b69cff;
}

.glass::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.glass::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}

.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
}

.body {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.8;
  margin: 0 0 1.2rem;
}

.body strong {
  color: var(--star);
  font-weight: 500;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.stat b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.stat span {
  color: var(--dim);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags li {
  list-style: none;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

/* works */

.chapter--works {
  padding: 40vh clamp(1.5rem, 7vw, 8rem) 30vh;
}

.works-head {
  max-width: 560px;
  margin-bottom: 3.5rem;
}

.works {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 900px;
  position: relative;
}

.works::before {
  content: '';
  position: absolute;
  inset: -4rem -40vw -4rem -12vw;
  z-index: -1;
  background: radial-gradient(ellipse 60% 70% at 30% 50%, rgba(0, 0, 0, 0.62), transparent 75%);
  pointer-events: none;
}

.work {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  align-items: center;
  gap: 1rem 1.4rem;
  padding: 1.35rem 0.4rem;
  border-top: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.work-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.work:last-child {
  border-bottom: 1px solid var(--line);
}

.work::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) 50%, rgba(165, 139, 255, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
}

.work::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease);
}

.work:hover::before {
  opacity: 1;
}

.work:hover::after {
  transform: scaleX(1);
}

.work-idx {
  color: var(--dim);
  transition: color 0.4s;
}

.work-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.7vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(243, 241, 255, 0.8);
  background: linear-gradient(95deg, #ffb0a0 0%, #ff8a8a 12%, #b69cff 30%, #5b5bff 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  transition: -webkit-text-stroke-color 0.5s, transform 0.7s var(--ease), background-position 0.9s var(--ease), filter 0.5s;
  overflow-wrap: anywhere;
}

.work-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.work-tag {
  color: var(--violet);
}

.work-arrow {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 1rem;
  transition: transform 0.6s var(--ease), background 0.4s, color 0.4s, border-color 0.4s;
}

.work-desc {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
  max-height: 0;
  opacity: 0;
  margin: 0;
  transform: translateY(-6px);
  transition: max-height 0.7s var(--ease), opacity 0.5s, transform 0.7s var(--ease);
}

.work:hover .work-idx {
  color: var(--hot);
}

.work:hover .work-name {
  -webkit-text-stroke-color: rgba(255, 176, 160, 0.4);
  background-position: 0 0;
  transform: translateX(0.6rem);
  filter: drop-shadow(0 0 24px rgba(255, 138, 138, 0.35));
}

.work:hover .work-arrow {
  transform: rotate(-45deg);
  background: #f3f1ff;
  color: #000;
  border-color: #f3f1ff;
}

.work:hover .work-desc {
  max-height: 4rem;
  opacity: 1;
  transform: none;
}

.work.reveal {
  transition-delay: calc(var(--i) * 90ms);
}

/* contact */

.chapter--contact {
  min-height: 170vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 clamp(1.25rem, 3.5vw, 3rem) 4.5rem;
}

.portal {
  width: min(760px, 100%);
  text-align: center;
  margin-bottom: 10vh;
}

.portal .kicker {
  justify-content: center;
}

.portal .kicker::after {
  content: '';
  width: 34px;
  height: 1px;
  background: currentColor;
}

.portal .body {
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.open-channel {
  margin: 0 auto 2rem;
  border: 0;
}

#typebot-container {
  width: 100%;
  height: 0;
  overflow: hidden;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.35);
  transition: height 1.2s var(--ease), border-color 1.2s, margin 1.2s;
}

#typebot-container.open {
  height: 460px;
  border-color: var(--line);
  margin-bottom: 1.8rem;
}

.links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 1400px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .sector { display: none; }
  .chrome { grid-template-columns: 1fr auto; }
  .telemetry span:nth-child(n + 4) { display: none; }
}

@media (max-width: 820px) {
  .chrome { padding: 1rem 1.25rem; }
  .chrome::before {
    content: '';
    position: absolute;
    inset: 0 0 -2rem;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.5) 60%, transparent);
  }
  .nav { gap: 1.1rem; font-size: 0.58rem; letter-spacing: 0.14em; }
  .nav a::after { bottom: -4px; }
  .rail { display: none; }
  .stage { justify-content: flex-end; padding-top: 4.5rem; padding-bottom: 14vh; }
  .stage--right { align-items: flex-start; justify-content: center; padding-bottom: 3.5rem; }
  .mega { font-size: clamp(2rem, 10.4vw, 6rem); }
  .glass {
    padding: 1.25rem 1.2rem;
    background: linear-gradient(160deg, rgba(14, 10, 36, 0.78), rgba(0, 0, 0, 0.7));
  }
  .h2 { font-size: clamp(1.6rem, 7.6vw, 2.4rem); margin-bottom: 0.9rem; }
  .glass .body { font-size: 0.88rem; line-height: 1.62; margin-bottom: 0.7rem; }
  .stats { margin: 1rem 0 0.9rem; padding-top: 0.9rem; gap: 0.6rem; }
  .stat b { font-size: 1.5rem; }
  .stat span { font-size: 0.56rem; }
  .tags { gap: 0.35rem; }
  .tags li { font-size: 0.54rem; padding: 0.32rem 0.6rem; }
  .kicker { margin-bottom: 0.9rem; }
  .work {
    grid-template-columns: 2.2rem 1fr auto;
    grid-template-areas: 'idx name arrow' '. tag tag' '. desc desc';
    gap: 0.4rem 0.75rem;
    padding: 1.1rem 0.2rem;
  }
  .chapter--works { padding-left: 1.25rem; padding-right: 1.25rem; }
  .works::before { inset: -2rem -1.25rem; background: linear-gradient(transparent, rgba(0, 0, 0, 0.55) 6%, rgba(0, 0, 0, 0.55) 94%, transparent); }
  .work-idx { grid-area: idx; }
  .work-name { grid-area: name; font-size: clamp(0.95rem, 4.3vw, 1.5rem); }
  .work-meta { display: contents; }
  .work-arrow { grid-area: arrow; width: 36px; height: 36px; }
  .work-tag { grid-area: tag; justify-self: start; text-align: left; font-size: 0.56rem; }
  .work-desc { grid-area: desc; max-height: none; opacity: 1; transform: none; font-size: 0.86rem; line-height: 1.55; }
  .telemetry { gap: 0.8rem; }
  .scroll-hint span { display: none; }
  .footer { flex-direction: column; gap: 0.5rem; align-items: center; }
}

@media (hover: none) {
  .work-name {
    -webkit-text-fill-color: var(--star);
    -webkit-text-stroke: 0;
  }
  .work-desc { max-height: none; opacity: 1; transform: none; }
  .work:active::before { opacity: 1; }
  .work:active .work-arrow {
    background: #f3f1ff;
    color: #000;
    border-color: #f3f1ff;
  }
}

@media (max-width: 360px) {
  .nav a { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .reveal, .mega .ch { transition-duration: 0.01s !important; transition-delay: 0s !important; }
}
