:root {
  --ink: #0b0a0f;
  --ink-2: #121118;
  --ink-3: #1a1822;
  --paper: #ece8e1;
  --paper-2: #e2ddd4;

  --fg: #eeeaf4;
  --fg-muted: #8f8aa2;
  --fg-faint: #5d586e;
  --line: rgba(238, 234, 244, 0.1);
  --line-strong: rgba(238, 234, 244, 0.18);

  --on-paper: #121016;
  --on-paper-muted: #5f5a68;
  --line-paper: rgba(18, 16, 22, 0.14);

  --accent: #9d7cff;
  --accent-hot: #bba5ff;
  --accent-ink: #120a24;
  --live: #7cf29a;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

  --f-sans: "Inter Tight", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }

a, button, summary { touch-action: manipulation; }
.btn, .orb, summary, .wa-float, .nav a { user-select: none; -webkit-user-select: none; }

:focus-visible { outline: 2px solid var(--accent-hot); outline-offset: 4px; border-radius: 6px; }

::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

em.serif { color: var(--accent-hot); }
.section--paper em.serif { color: #6a43e8; }

.label { color: var(--fg-muted); }
.section--paper .label { color: var(--on-paper-muted); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 14px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.skip:focus { top: 16px; }

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

.h2 {
  margin-top: 18px;
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.h2 em { letter-spacing: -0.02em; }

.body {
  margin-top: 24px;
  max-width: 520px;
  font-size: 17px;
  color: var(--fg-muted);
}
.section--paper .body { color: var(--on-paper-muted); }

.section { position: relative; padding: clamp(96px, 13vw, 168px) 0; }
.section--paper { background: var(--paper); color: var(--on-paper); }

.head { max-width: 900px; margin-bottom: clamp(48px, 7vw, 88px); }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn > span, .btn > svg { pointer-events: none; }
.btn:active { transform: scale(0.97); }

.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--light { background: var(--fg); color: var(--ink); }
.btn--line { border-color: var(--line-strong); color: var(--fg); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 14px; }

.btn__arrow { width: 18px; height: 18px; transition: transform 220ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover { background: var(--accent-hot); }
  .btn--light:hover { background: #fff; }
  .btn--line:hover { border-color: rgba(238, 234, 244, 0.4); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
}

[data-magnetic] { will-change: transform; }

.header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform 280ms var(--ease-out), background-color 240ms ease, border-color 240ms ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(11, 10, 15, 0.72);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--line);
}
.header.is-hidden { transform: translateY(-100%); }

.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: baseline; gap: 12px; }
.brand__name { font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.brand__tag { color: var(--fg-muted); font-size: 12px; }

.brand { padding-block: 9px; }

.nav { display: flex; gap: 28px; }
.nav a {
  position: relative;
  padding-block: 14px;
  color: var(--fg-muted); font-size: 12.5px;
  transition: color 150ms ease;
}

.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 6px;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--accent-hot);
  opacity: 0; transform: scale(0.5);
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
}
.nav a[aria-current="true"] { color: var(--fg); }
.nav a[aria-current="true"]::after { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--fg); } }

.header__actions { display: flex; align-items: center; gap: 10px; }

.menu-btn {
  display: none;
  position: relative;
  width: 44px; height: 44px; padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.menu-btn:active { transform: scale(0.94); }
.menu-btn span {
  position: absolute; left: 50%; top: 50%;
  width: 16px; height: 1.5px; margin-left: -8px;
  border-radius: 2px; background: currentColor;
}
.menu-btn span:first-child { transform: translateY(-3.5px); }
.menu-btn span:last-child { transform: translateY(3.5px); }
.menu-btn.is-close span:first-child { transform: rotate(45deg); }
.menu-btn.is-close span:last-child { transform: rotate(-45deg); }

html:has(.menu[open]) { overflow: hidden; }
.menu {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--fg);
  transition: display 220ms allow-discrete, overlay 220ms allow-discrete;
}
.menu::backdrop { background: transparent; }
.menu__inner {
  height: 100%;
  display: grid; grid-template-rows: auto 1fr auto; gap: 24px;
  padding:
    env(safe-area-inset-top, 0px) max(var(--gutter), env(safe-area-inset-right, 0px))
    max(28px, env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--ink);
  transform: translateY(-100%);
  transition: transform 220ms var(--ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu[open] .menu__inner { transform: none; transition: transform 380ms cubic-bezier(0.32, 0.72, 0, 1); }
@starting-style { .menu[open] .menu__inner { transform: translateY(-100%); } }

.menu__top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.menu__top .menu-btn { display: block; }

.menu__nav { display: flex; flex-direction: column; justify-content: center; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(30px, 8.5vw, 44px);
  font-weight: 600; letter-spacing: -0.04em; line-height: 1.1;
}
.menu__nav a .mono { color: var(--fg-muted); font-weight: 400; letter-spacing: 0.02em; }
.menu__nav a[aria-current="true"] { color: var(--accent-hot); }

.menu__foot { display: grid; gap: 14px; justify-items: start; }
.menu__foot .btn { width: 100%; }
.menu__ig { color: var(--fg-muted); padding-block: 12px; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px 0 56px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  
  content: ""; position: absolute; z-index: -2; inset: -30% -20% auto auto;
  width: 90vw; height: 90vw; max-width: 1200px; max-height: 1200px;
  background: radial-gradient(closest-side, rgba(157, 124, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.hero::after {
  
  content: ""; position: absolute; z-index: -2; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.45;
  mask-image: radial-gradient(80% 70% at 60% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 70% at 60% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero__spot {
  position: absolute; z-index: -1; top: 0; left: 0;
  width: 560px; height: 560px; margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(187, 165, 255, 0.16), transparent 72%);
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
  will-change: transform;
}
.hero.has-spot .hero__spot { opacity: 1; }

.hero__inner { position: relative; }

.hero__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-muted);
}

.status { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.status__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(124, 242, 154, 0.16);
}

.hero__title {
  margin: clamp(28px, 4vw, 48px) 0 0;
  font-size: clamp(54px, 10.4vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 600;
}
.hero__title em { color: var(--accent-hot); letter-spacing: -0.035em; padding-right: 0.06em; }

.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line__in { display: block; }

.pill {
  display: inline-block;
  width: 1.42em;
  height: 0.74em;
  margin: 0 0.04em 0 0.02em;
  border-radius: 999px;
  overflow: hidden;
  vertical-align: 0.02em;
  background: var(--ink-3);
  box-shadow: 0 0 0 1px var(--line-strong);
}
.pill img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  filter: saturate(0.9);
}

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 40px 64px;
  align-items: end;
  margin-top: clamp(36px, 5vw, 64px);
}

.hero__sub { max-width: 520px; font-size: 18px; color: var(--fg-muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: none; align-items: center; gap: 10px; color: var(--fg-muted);
}

.lab {
  margin: 0;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(26, 24, 34, 0.86), rgba(18, 17, 24, 0.86));
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.lab__head { display: flex; justify-content: space-between; gap: 12px; color: var(--fg-muted); margin-bottom: 18px; }
.lab__live { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }

.lab__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.lab__label { font-size: 14px; color: var(--fg-muted); grid-column: 1 / -1; }
.lab__label b {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; margin-right: 8px;
  border-radius: 6px; border: 1px solid var(--line-strong);
  font-size: 12px; color: var(--fg);
}
.lab__row--win .lab__label { color: var(--fg); }
.lab__row--win .lab__label b { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.lab__bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; align-self: center; }
.lab__fill {
  display: block; height: 100%; border-radius: inherit;
  background: var(--fg-faint);
  transform-origin: left center;
  transform: scaleX(var(--w));
}
.lab__row--win .lab__fill { background: linear-gradient(90deg, var(--accent), var(--accent-hot)); }
.lab__val { color: var(--fg-muted); font-size: 12px; }
.lab__row--win .lab__val { color: var(--fg); }

.lab__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.lab__win { color: var(--live); font-size: 12px; }
.lab__note { color: var(--fg-muted); font-size: 12px; }

@keyframes lineUp   { from { transform: translateY(105%); } to { transform: none; } }
@keyframes riseIn   { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes settleIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes growBar  { from { transform: scaleX(0.02); } to { transform: scaleX(var(--w)); } }

.js .line__in    { animation: lineUp 1000ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
.js .hero-rise   { animation: riseIn 700ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
.js .hero-fade   { animation: fadeIn 600ms ease both; animation-delay: var(--d, 0ms); }
.js .hero-settle { animation: settleIn 900ms var(--ease-out) both; animation-delay: var(--d, 0ms); transform-origin: 50% 100%; }
.js .lab__fill   { animation: growBar 1100ms var(--ease-out) both; animation-delay: var(--bd, 900ms); }
.js .lab__win    { animation: fadeIn 400ms ease both; animation-delay: 1800ms; }

.marquee {
  overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: var(--ink-2);
}
.marquee__track {
  display: flex; align-items: center; gap: 36px;
  width: max-content;
  font-size: clamp(30px, 4.4vw, 60px);
  font-weight: 500;
  letter-spacing: -0.035em;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.marquee__track .serif { color: var(--accent-hot); font-size: 1.06em; }
.marquee__track i { font-style: normal; font-size: 0.4em; color: var(--fg-faint); }
.marquee.is-paused .marquee__track { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(-50%); } }

.manifesto { padding-block: clamp(96px, 14vw, 180px); }
.manifesto__text {
  margin-top: 28px;
  max-width: 1120px;
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.manifesto__text .w { opacity: 0.16; transition: opacity 200ms ease; }
.manifesto__text .w.serif { color: var(--accent-hot); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 112px); align-items: center; }

.ticks { margin: 36px 0 0; padding: 0; list-style: none; display: grid; }
.ticks li {
  display: flex; gap: 18px; align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks .mono { color: var(--accent-hot); }

.loop { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; margin-inline: auto; }
.loop__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loop__ring circle { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.loop__ring .loop__ring-dash { stroke: var(--line); stroke-dasharray: 2 8; transform: scale(0.82); transform-origin: center; }

.loop__orbit { position: absolute; inset: 12.5%; animation: orbit 9s linear infinite; }
.loop__comet {
  position: absolute; top: -6px; left: 50%;
  width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 0 6px rgba(187, 165, 255, 0.16), 0 0 30px 6px rgba(157, 124, 255, 0.55);
}
@keyframes orbit { to { transform: rotate(360deg); } }

.loop__node {
  position: absolute;
  display: grid; gap: 2px; justify-items: center;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink-3);
  border: 1px solid var(--line-strong);
  font-weight: 600; font-size: 17px; letter-spacing: -0.02em;
  transform: translate(-50%, -50%);
}
.loop__node .mono { font-size: 12px; color: var(--fg-muted); font-weight: 400; }

.loop__node::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  border: 1px solid rgba(187, 165, 255, 0.75);
  box-shadow: 0 0 40px -8px rgba(157, 124, 255, 0.75);
  opacity: 0;
  animation: nodeGlow 9s linear infinite;
  animation-delay: inherit;
  pointer-events: none;
}

.loop__node--1 { top: 12.5%; left: 50%; animation-delay: 0s; }
.loop__node--2 { top: 68.75%; left: 82.5%; animation-delay: -6s; }
.loop__node--3 { top: 68.75%; left: 17.5%; animation-delay: -3s; }

@keyframes nodeGlow {
  0%   { opacity: 1; }
  14%  { opacity: 0; }
  96%  { opacity: 0; }
  100% { opacity: 1; }
}

.loop__core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 2px; text-align: center;
}
.loop__core .mono { color: var(--fg-muted); }
.loop__core b { font-size: clamp(30px, 3.6vw, 44px); line-height: 1; color: var(--fg); }

.loop.is-paused .loop__orbit,
.loop.is-paused .loop__node::after { animation-play-state: paused; }

.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-paper); }

.row {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-areas: "num title desc" "num title tags";
  gap: 6px 40px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line-paper);
  isolation: isolate;
}

.row::before {
  content: ""; position: absolute; z-index: -1; inset: 0 calc(var(--gutter) * -1);
  background: var(--on-paper);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 420ms var(--ease-out);
}

.row__num { grid-area: num; padding-top: 10px; color: var(--on-paper-muted); transition: color 200ms ease; }
.row__title {
  grid-area: title;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: -0.04em;
  transition: color 200ms ease, transform 420ms var(--ease-out);
}
.row__desc { grid-area: desc; color: var(--on-paper-muted); font-size: 16px; max-width: 460px; transition: color 200ms ease; }
.row__tags { grid-area: tags; color: var(--on-paper-muted); font-size: 12px; margin-top: 10px; transition: color 200ms ease; }

@media (hover: hover) and (pointer: fine) {
  .row:hover::before { clip-path: inset(0 0 0 0); }
  .row:hover .row__title { color: var(--paper); transform: translateX(12px); }
  .row:hover .row__desc,
  .row:hover .row__tags { color: rgba(236, 232, 225, 0.66); }
  .row:hover .row__num { color: #a88cff; }
}

.method { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(48px, 7vw, 112px); align-items: start; }
.method__aside { position: sticky; top: 120px; }

.steps { position: relative; margin: 0; padding: 0 0 0 44px; list-style: none; }
.steps__rail {
  position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px;
  background: var(--line-strong);
}
.steps__fill {
  position: absolute; inset: 0;
  background: linear-gradient(var(--accent-hot), var(--accent));
  transform-origin: top center;
  transform: scaleY(0);
}

.step { position: relative; padding: 0 0 72px; opacity: 0.38; transition: opacity 400ms ease; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: -44px; top: 6px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--line-strong);
  transition: background-color 300ms ease, border-color 300ms ease;
}
.step.is-active { opacity: 1; }
.step.is-active::before { background: var(--accent); border-color: var(--accent); }

.step__num { color: var(--accent-hot); }
.step h3 { margin-top: 12px; font-size: clamp(26px, 2.8vw, 38px); letter-spacing: -0.035em; line-height: 1.05; }
.step p { margin-top: 12px; max-width: 460px; color: var(--fg-muted); font-size: 16.5px; }

.projects { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.project--offset { margin-top: clamp(0px, 10vw, 140px); }

.project__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
}
.project__art {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  transition: transform 700ms var(--ease-out);
}

.project__badge {
  width: min(66%, 340px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 40px 70px -24px rgba(0, 0, 0, 0.7);
  transition: transform 500ms var(--ease-out);
}

.project__media--a .project__art {
  background:
    radial-gradient(50% 40% at 50% 50%, rgba(214, 178, 106, 0.2), transparent 70%),
    radial-gradient(120% 90% at 50% 0%, #1d2d5c, #0a1128 72%);
}

.project__media--b .project__art {
  background:
    radial-gradient(50% 40% at 50% 50%, rgba(226, 112, 84, 0.24), transparent 70%),
    radial-gradient(120% 90% at 50% 0%, #1f5a4d, #0b1f1b 72%);
}

@media (hover: hover) and (pointer: fine) {
  .project:hover .project__badge { transform: scale(1.04); }
}

.project__info { padding-top: 24px; }
.project__info .mono { color: var(--fg-muted); }
.project__info h3 { margin-top: 10px; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.035em; }
.project__info p { margin-top: 10px; color: var(--fg-muted); max-width: 480px; }

.link-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; margin-top: 10px; padding: 0 18px 0 12px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--fg); cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.link-btn svg { width: 16px; height: 16px; color: var(--accent-hot); }
.link-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .link-btn:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.36); }
}

#sobre { overflow-x: clip; }
.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(48px, 7vw, 112px); align-items: center; }

.specimen {
  margin: 0;
  position: relative;
  width: min(100%, 440px);
  justify-self: center;
  padding: 0 0 56px;
  isolation: isolate;
}

.specimen::before {
  content: ""; position: absolute; z-index: -2;
  inset: -12% -18% 4%;
  background: radial-gradient(closest-side, rgba(157, 124, 255, 0.32), transparent 72%);
  pointer-events: none;
}
.specimen__ring {
  position: absolute; z-index: -1;
  top: -5%; left: 50%;
  width: 112%; aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid var(--line-paper);
  pointer-events: none;
}

.specimen__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 28px 28px;
  overflow: hidden;
  background: #17141f;
  box-shadow: 0 50px 90px -40px rgba(42, 20, 110, 0.55);
}

.specimen__photo {
  position: absolute; inset: -5%;
  will-change: transform;
}
.specimen__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: saturate(0.9) contrast(1.04);
}
.specimen__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(157, 124, 255, 0.1), transparent 30%),
    linear-gradient(180deg, transparent 62%, rgba(11, 10, 15, 0.4));
  pointer-events: none;
}

.specimen__badge {
  position: absolute;
  top: 9%; right: -9%;
  width: clamp(112px, 30%, 136px); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 24px 40px -18px rgba(11, 10, 15, 0.6);
}
.specimen__badge-text {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  animation: spin 22s linear infinite;
}
.specimen__badge-text text {
  fill: currentColor;
  font-family: var(--f-mono);
  font-size: 12.5px;
  text-transform: uppercase;
}
.specimen__badge-core { font-size: 26px; color: var(--accent-hot); }
.specimen__badge.is-paused .specimen__badge-text { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }

.specimen__tag {
  position: absolute; left: -7%; bottom: 0;
  width: min(82%, 300px);
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px;
  padding: 14px 16px 16px;
  border-radius: 14px;
  background: #f6f3ee;
  color: var(--on-paper);
  font-size: 12px;
  rotate: -3deg;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 24px 44px -22px rgba(11, 10, 15, 0.5);
}
.specimen__tag-head {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 8px; margin-bottom: 2px;
  border-bottom: 1px dashed var(--line-paper);
  color: var(--on-paper) !important;
}
.specimen__tag span { color: var(--on-paper-muted); }
.specimen__tag b { font-weight: 500; text-align: right; }

.faq { max-width: 980px; }
.faq__list { border-top: 1px solid var(--line); }

.qa { border-bottom: 1px solid var(--line); }

.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 0;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 500; letter-spacing: -0.02em;
  cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }

.qa summary i { position: relative; flex: none; width: 18px; height: 18px; }
.qa summary i::before,
.qa summary i::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; margin-top: -0.75px;
  background: currentColor; border-radius: 2px;
  transition: transform 260ms var(--ease-out);
}
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0deg); }

.qa::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 260ms var(--ease-out), content-visibility 260ms allow-discrete;
}
.qa[open]::details-content { block-size: auto; }

.qa__body { padding: 0 48px 28px 0; color: var(--fg-muted); font-size: 16.5px; max-width: 720px; }

@media (hover: hover) and (pointer: fine) {
  .qa summary span { transition: transform 260ms var(--ease-out); }
  .qa summary:hover span { transform: translateX(6px); }
}

.cta { padding: clamp(96px, 13vw, 168px) 0; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; left: 50%; top: 40%; z-index: -1;
  width: 900px; height: 900px; margin: -450px 0 0 -450px;
  background: radial-gradient(closest-side, rgba(157, 124, 255, 0.2), transparent 70%);
  pointer-events: none;
}
.cta__inner { display: grid; justify-items: center; text-align: center; }
.cta__title {
  margin-top: 20px;
  font-size: clamp(64px, 13vw, 200px);
  line-height: 0.88;
  letter-spacing: -0.06em;
}
.cta__title em { color: var(--accent-hot); letter-spacing: -0.035em; padding-right: 0.05em; }
.cta__sub { margin-top: 28px; max-width: 520px; color: var(--fg-muted); font-size: 18px; }

.orb {
  position: relative;
  display: grid; place-items: center; align-content: center; gap: 10px;
  width: 168px; height: 168px; margin-top: 48px;
  border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  text-align: center; font-weight: 600; font-size: 15px; line-height: 1.2;
  transition: background-color 200ms ease;
}
.orb > * { pointer-events: none; }
.orb__arrow { width: 22px; height: 22px; transition: transform 260ms var(--ease-out); }
.orb:active .orb__label { transform: scale(0.96); }
.orb__label { transition: transform 160ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .orb:hover { background: var(--accent-hot); }
  .orb:hover .orb__arrow { transform: translate(3px, -3px); }
}

.footer { padding: 56px 0 calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0; padding: 0; list-style: none; }
.footer__links a, .footer__top-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--fg-muted); transition: color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .footer__links a:hover, .footer__top-link:hover { color: var(--fg); }
}

.footer__word {
  margin: clamp(40px, 6vw, 72px) 0 0;
  font-size: clamp(76px, 21.5vw, 330px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.07em;
  color: var(--ink-3);
  -webkit-text-stroke: 1px var(--line-strong);
  white-space: nowrap;
}
.footer__word .serif { color: var(--accent); -webkit-text-stroke: 0; }
.footer__copy { margin-top: 28px; color: var(--fg-muted); }

.wa-float {
  position: fixed; z-index: 50;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.55);
  transition: transform 160ms var(--ease-out), opacity 300ms ease;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:active { transform: scale(0.94); }
.js .wa-float { opacity: 0; pointer-events: none; }
.js .wa-float.is-visible { opacity: 1; pointer-events: auto; }
@media (hover: hover) and (pointer: fine) { .wa-float:hover { transform: scale(1.05); } }

.footer__aux { display: flex; gap: 24px; }
button.footer__top-link { padding: 0; border: 0; background: none; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }

.consent {
  position: fixed; z-index: 70;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(440px, calc(100vw - 32px));
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(26, 24, 34, 0.94);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  
  transition: transform 320ms var(--ease-out), opacity 320ms ease;
}
@starting-style { .consent { transform: translateY(calc(100% + 24px)); opacity: 0; } }
.consent.is-leaving { transform: translateY(calc(100% + 24px)); opacity: 0; transition-duration: 200ms; }
.consent p { color: var(--fg-muted); font-size: 14.5px; }
.consent__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
@media (prefers-reduced-motion: reduce) {
  .consent, .consent.is-leaving { transition: opacity 200ms ease; transform: none; }
}

.reels {
  --reel-w: clamp(240px, 21vw, 300px);
  --reel-gap: clamp(16px, 2vw, 28px);
  --rail-pad: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  overflow: hidden;
}

.reels__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.reels__head > div:first-child { max-width: 720px; }
.reels__nav { display: flex; gap: 10px; flex: none; }

.round-btn {
  display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, opacity 200ms ease;
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn:active { transform: scale(0.94); }
.round-btn:disabled { opacity: 0.3; cursor: default; }
.round-btn--light { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); }
@media (hover: hover) and (pointer: fine) {
  .round-btn:not(:disabled):hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.36); }
}

.rail {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rail-pad);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }

.rail__track {
  display: flex; align-items: flex-start; gap: var(--reel-gap);
  width: max-content;
  margin: 0; padding: 0 var(--rail-pad) 8px;
  list-style: none;
}

.reel { width: var(--reel-w); flex: none; scroll-snap-align: start; }
.reel--wide { width: calc(var(--reel-w) * 2 + var(--reel-gap)); }

.reel__card {
  display: block; width: 100%;
  padding: 0; border: 0; background: none; color: inherit; text-align: left;
  border-radius: 22px;
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.reel__card:active { transform: scale(0.98); }

.reel__media {
  position: relative; display: block;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  background: var(--ink-3);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  isolation: isolate;
}
.reel--wide .reel__media { aspect-ratio: 16 / 9; }

.reel__media img,
.reel__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.reel__media video { opacity: 0; transition: opacity 400ms ease, transform 700ms var(--ease-out); }
.reel__media.is-playing video { opacity: 1; }

.reel__media::after {
  
  content: ""; position: absolute; inset: 55% 0 0; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(11, 10, 15, 0.7));
  pointer-events: none;
}

.reel__play {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px 9px 11px;
  border-radius: 999px;
  background: rgba(11, 10, 15, 0.62);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--fg);
  font-size: 12px;
  transition: background-color 200ms ease, color 200ms ease;
}
.reel__play svg { width: 16px; height: 16px; }

.reel__time {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  padding: 4px 8px; border-radius: 8px;
  background: rgba(11, 10, 15, 0.55);
  color: var(--fg); font-size: 12px;
}

@media (hover: hover) and (pointer: fine) {
  .reel__card:hover .reel__media img,
  .reel__card:hover .reel__media video { transform: scale(1.03); }
  .reel__card:hover .reel__play { background: var(--accent); color: var(--accent-ink); }
}

.reel__info { padding-top: 18px; }
.reel__info .mono { color: var(--fg-muted); }
.reel__info h3 { margin-top: 8px; font-size: 22px; letter-spacing: -0.03em; line-height: 1.15; }
.reel__info p { margin-top: 8px; color: var(--fg-muted); font-size: 15px; }
.reel__info .reel__roles { display: block; margin-top: 12px; color: var(--accent-hot); }

.rail__progress {
  height: 2px; margin-top: 40px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.rail__progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
  transform-origin: left center;
  transform: scaleX(0.2);
}

html:has(.player[open]) { overflow: hidden; }

.player {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent;
  color: var(--fg);
  
  transition: display 180ms allow-discrete, overlay 180ms allow-discrete;
}
.player::backdrop {
  background: rgba(6, 5, 9, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 180ms ease, display 180ms allow-discrete, overlay 180ms allow-discrete;
}
.player[open]::backdrop { opacity: 1; transition-duration: 250ms; }
@starting-style { .player[open]::backdrop { opacity: 0; } }

.player__inner {
  position: relative;
  height: 100%;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 16px;
  padding:
    max(24px, env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px))
    max(20px, env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 180ms ease, transform 180ms var(--ease-out);
}
.player[open] .player__inner { opacity: 1; transform: none; transition-duration: 250ms; }
@starting-style { .player[open] .player__inner { opacity: 0; transform: scale(0.97); } }

.player__stage { min-height: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.player__stage video {
  display: block;
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
}

.player__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; max-width: 900px; margin-inline: auto;
}
.player__meta .mono { color: var(--fg-muted); }
.player__meta strong { display: block; margin-top: 4px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.player__controls { display: flex; align-items: center; gap: 12px; flex: none; }
.player__count { color: var(--fg-muted); min-width: 44px; text-align: center; }

.player__close { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); z-index: 2; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.js [data-reveal="clip"] {
  opacity: 1;
  transform: translateY(24px);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1000ms var(--ease-out), transform 1000ms var(--ease-out);
}

.js [data-reveal="media"] {
  opacity: 1;
  transform: none;
  clip-path: inset(100% 0 0 0 round 20px);
  transition: clip-path 1100ms var(--ease-in-out);
}
.js [data-reveal="media"] .project__art,
.js [data-reveal="media"] .specimen__photo img { transform: scale(1.12); transition: transform 1400ms var(--ease-out); }

.js [data-reveal="fade"] { transform: scale(0.92); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }

.js [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(-10% -10% -10% -10%); }
.js [data-reveal="media"].is-in { clip-path: inset(0 0 0 0 round 20px); }
.js [data-reveal="media"].is-in .project__art,
.js [data-reveal="media"].is-in .specimen__photo img { transform: none; }

@media (min-width: 1100px) {
  .hero__scroll { display: inline-flex; }
  .hero__scroll i { width: 1px; height: 28px; background: linear-gradient(var(--fg-faint), transparent); }
}

@media (min-width: 1001px) and (max-height: 880px) {
  .hero { padding: 96px 0 32px; }
  .hero__meta { padding-bottom: 14px; }
  .hero__title { margin-top: 24px; font-size: clamp(54px, min(10.4vw, 16vh), 168px); }
  .hero__bottom { margin-top: 28px; }
  .hero__ctas { margin-top: 24px; }
  .lab { padding: 18px 20px; }
  .lab__head { margin-bottom: 10px; }
  .lab__row { padding: 10px 0; }
  .lab__foot { padding-top: 12px; }
  .hero__scroll { display: none; }
}

@media (max-width: 1000px) {
  .nav, .brand__tag { display: none; }
  .menu-btn { display: block; }
  .hero__bottom { grid-template-columns: 1fr; }
  .lab { max-width: 460px; }
  .split, .method, .about { grid-template-columns: 1fr; }
  .method__aside { position: static; }
  .loop { max-width: 420px; }
  .row { grid-template-columns: 48px 1fr; grid-template-areas: "num title" "num desc" "num tags"; gap: 10px 16px; }
  .about .specimen { width: min(100%, 400px); }
}

@media (max-width: 720px) {
  .hero { padding: 104px 0 40px; justify-content: flex-start; }
  .hero__meta { flex-direction: column; gap: 8px; }
  .hero__sub { font-size: 17px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .projects { grid-template-columns: 1fr; }
  .project--offset { margin-top: 0; }
  .loop__node { padding: 9px 13px; font-size: 15px; }
  .lab { padding: 18px; }
  .lab__head { font-size: 11.5px; flex-wrap: wrap; row-gap: 4px; }
  .lab__foot { flex-wrap: wrap; row-gap: 6px; }
  .qa__body { padding-right: 0; }
  .orb { width: 148px; height: 148px; }
  .specimen__badge { right: -3%; width: 104px; }
  .specimen__tag { left: -2%; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .reels { --reel-w: 66vw; }
  .reel--wide { width: 88vw; }
  .reels__nav { display: none; }
  .player__meta strong { font-size: 17px; }
  .player__inner { padding-top: calc(80px + env(safe-area-inset-top, 0px)); }
  .player__bar { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .line__in { animation: fadeIn 400ms ease both; }
  .js .hero-rise, .js .hero-settle { animation-name: fadeIn; animation-duration: 400ms; }
  .js .lab__fill { animation: none; }
  .marquee__track { animation: none; }
  .loop__orbit { animation: none; }
  .specimen__badge-text { animation: none; }
  .reel__media img, .reel__media video { transition: none; }
  .player__inner, .player::backdrop { transition-duration: 0ms; }
  .loop__comet { display: none; }
  .loop__node::after { animation: none; }
  .js [data-reveal], .js [data-reveal="clip"], .js [data-reveal="media"] {
    transform: none; clip-path: none; transition: opacity 400ms ease; transition-delay: 0ms;
  }
  .js [data-reveal="clip"], .js [data-reveal="media"] { opacity: 0; }
  .js [data-reveal].is-in { opacity: 1; }
  .js [data-reveal="media"] .project__art, .js [data-reveal="media"] .specimen__photo img { transform: none; }
  .manifesto__text .w { opacity: 1 !important; transition: none; }
  .row__title, .header { transition: none; }
  .btn:active, .wa-float:active { transform: none; }
}
