:root {
  --ink: #dce1e5;
  --paper: #080a0d;
  --muted: #9da6ad;
  --edge: clamp(24px, 4.5vw, 84px);
  background: var(--paper);
  color: var(--ink);
  color-scheme: dark;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overscroll-behavior: none; touch-action: pan-y; }
body { margin: 0; overflow-x: clip; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: pan-y; overscroll-behavior: none; }
body * { touch-action: pan-y; -webkit-touch-callout: none; }
img, video { -webkit-user-drag: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--paper); color: var(--ink); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 5px; }
.skip-link { position: fixed; z-index: 200; top: -100px; left: 20px; padding: 12px 16px; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 20px; }

.prelude { display: none; }
.js .prelude { display: block; position: fixed; z-index: 90; inset: 0; overflow: hidden; background: transparent; color: var(--ink); pointer-events: none; }
.prelude::before, .prelude::after { content: ""; position: absolute; z-index: 0; left: 0; right: 0; height: 100%; background: #000; opacity: 1; transition: opacity 1.45s cubic-bezier(.4,0,.2,1) .08s; }
.prelude::before { top: 0; }
.prelude::after { display: none; }
.intro-transition .prelude::before { opacity: 0; }
.prelude-loading { position: absolute; z-index: 4; left: var(--edge); right: var(--edge); bottom: calc(28px + env(safe-area-inset-bottom,0px)); display: flex; align-items: center; gap: 24px; transition: opacity .45s; }
.prelude-count { font: 500 10px ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .07em; color: var(--muted); }
.prelude-actions { display: flex; gap: 16px; pointer-events: auto; }
.prelude-actions button { border: 0; background: none; padding: 8px 0; min-height: 44px; font-size: 11px; text-decoration: underline; text-underline-offset: 5px; }
.intro-transition .prelude-loading { opacity: 0; pointer-events: none; }
.intro-done .prelude { opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; }
.intro-done .intro-skip { display: none; }
.intro-fast .prelude::before { transition-duration: .38s; transition-delay: 0s; }


[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-rail { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; height: 98px; display: flex; align-items: center; gap: clamp(20px,3vw,52px); padding: 0 var(--edge); pointer-events: none; transition: opacity .35s; color: var(--ink); }
.site-rail.over-footer { opacity: 0; visibility: hidden; }
.site-rail > * { pointer-events: auto; }
.rail-logo { display: block; width: 78px; flex: 0 0 78px; line-height: 0; }
.rail-logo img { width: 100%; opacity: .9; }
.rail-description, .rail-button, .rail-link, .scroll-link, .channels-head, .channels-end { font-size: 11px; font-weight: 500; letter-spacing: .04em; }
.rail-description { color: #9da6ad; white-space: nowrap; }
.scene-nav { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.scene-nav a { position: relative; display: grid; place-items: center; min-width: 44px; min-height: 44px; color: #9da6ad; text-decoration: none; font-size: 10px; transition: color .25s; }
.scene-nav a::after { content: ''; position: absolute; bottom: 6px; left: 18px; right: 18px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .3s; }
.scene-nav a.active, .scene-nav a:hover { color: var(--ink); }
.scene-nav a.active::after { transform: scaleX(1); }
.rail-button { min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0; border: 0; background: transparent; }
.rail-button:disabled { cursor: default; color: #9da6ad; }
.motion-icon { display: block; width: 8px; height: 10px; border-left: 1px solid currentColor; border-right: 1px solid currentColor; }
.motion-toggle[aria-pressed='true'] .motion-icon { height: 7px; border: 1px solid currentColor; }
.rail-link { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.rail-link .ui-icon { transition: transform .25s; }
.rail-link:hover .ui-icon { transform: translate(2px,-2px); }
.site-rail > :not(.intro-skip) { transition: opacity .6s, transform .8s cubic-bezier(.2,.7,.1,1); }
.js:not(.intro-reveal):not(.intro-done) .site-rail > :not(.intro-skip):not(.rail-logo) { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.js:not(.intro-logo-arrived):not(.intro-done) .rail-logo { opacity: 0; pointer-events: none; }
.intro-reveal .rail-description { transition-delay: 0s; }
.intro-reveal .scene-nav { transition-delay: .1s; }
.intro-reveal .motion-toggle { transition-delay: .18s; }
.intro-reveal .rail-link { transition-delay: .25s; }
.intro-skip { position: absolute; right: var(--edge); top: calc(27px + env(safe-area-inset-top,0px)); transition: opacity .3s; }
.intro-reveal .intro-skip { opacity: 0; pointer-events: none; }
.intro-fast .site-rail > :not(.intro-skip) { transition-duration: .22s; transition-delay: 0s; }
.scene { position: relative; }
.scene-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; isolation: isolate; }
.scene-instrument { height: 190vh; height: 190svh; }
.kinetic-stage { background: var(--paper); touch-action: pan-y; }
.js:not(.intro-reveal):not(.intro-done) .kinetic-tools { opacity: 0; pointer-events: none; }
.kinetic-tools { transition: opacity .6s, transform .8s cubic-bezier(.2,.7,.1,1); }
.js:not(.intro-reveal):not(.intro-done) .kinetic-tools { transform: translateY(8px); }
.intro-reveal .kinetic-tools { transition-delay: .2s; }
.intro-fast .kinetic-tools { transition-duration: .22s; transition-delay: 0s; }
.kinetic-tools { position: absolute; z-index: 10; bottom: 22px; left: var(--edge); display: flex; align-items: center; gap: 16px; }
.scroll-link { display: inline-flex; align-items: center; gap: 22px; min-height: 44px; margin-left: 20px; text-decoration: none; }
.scroll-link .ui-icon { transition: transform .3s; }
.scroll-link:hover .ui-icon { transform: translateY(4px); }
.past-sculpture .kinetic-tools { visibility: hidden; }
.scene-channels { position: relative; z-index: 20; min-height: 100svh; padding: clamp(80px,14vh,140px) var(--edge) 80px; background: var(--paper); color: var(--ink); }
.scene-channels :focus-visible { outline-color: var(--ink); }
.channels-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 45px; color: var(--muted); }
.channels-head a { display: grid; place-items: center; width: 44px; height: 44px; font-size: 18px; text-decoration: none; }
.channels-list { border-top: 1px solid #363b38; }
.channels-list a { position: relative; display: grid; grid-template-columns: 12% 1fr auto; align-items: center; gap: 14px; min-height: clamp(104px,11vw,142px); border-bottom: 1px solid #363b38; padding: 0 4px; text-decoration: none; overflow: hidden; transition: padding .35s; }
.channels-list a::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform: translateY(102%); transition: transform .4s cubic-bezier(.2,.65,.2,1); }
.channels-list a:hover::before, .channels-list a:focus-visible::before { transform: translateY(0); }
.channels-list a:hover, .channels-list a:focus-visible { color: var(--paper); padding: 0 18px; }
.channels-list a > * { position: relative; z-index: 1; }
.channels-list a > span:nth-child(2) { font-size: clamp(34px,5.3vw,76px); font-weight: 400; line-height: 1; letter-spacing: -.055em; }
.channel-number { font-size: 10px; color: var(--muted); }
.channels-list a:hover .channel-number, .channels-list a:focus-visible .channel-number { color: #454c48; }
.channels-end { margin-top: clamp(60px,12vh,140px); color: var(--muted); }
@media (max-width:900px) {
  .rail-description { display: none; }
  .site-rail { gap: 22px; }
}
@media (max-width:600px) {
  :root { --edge: 22px; }
  .site-rail { height: 78px; gap: 18px; }
  .rail-logo { width: 64px; flex-basis: 64px; }
  .scene-nav { display: none; }
  .motion-toggle { margin-left: auto; }
  .rail-link { gap: 8px; }
  .scene-stage { min-height: 440px; }
  .kinetic-tools { bottom: 80px; gap: 12px; }
  .scroll-link { margin-left: 6px; gap: 20px; }
  .scene-channels { padding-top: 80px; }
  .channels-head { margin-bottom: 24px; }
  .channels-list a { grid-template-columns: 8% 1fr auto; min-height: 106px; gap: 14px; }
  .channels-list a > span:nth-child(2) { font-size: clamp(30px,9.1vw,48px); }
  .channels-end { margin-top: 76px; font-size: 9px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .js .prelude { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.motion-still { scroll-behavior: auto; }
.motion-still .prelude { display: none; }
.motion-still *, .motion-still *::before, .motion-still *::after { animation: none !important; transition: none !important; }

/* One monochrome field, with vector icons on every platform. */
.ui-icon { width: 18px; height: 18px; display: block; flex-shrink: 0; }
.rail-logo img { filter: invert(1); }
.site-rail { padding-top: env(safe-area-inset-top,0px); }
.channels-list .ui-icon { width: 28px; height: 28px; }
@media (max-width:600px) {
  :root { --edge: 20px; }
  .site-rail { height: calc(76px + env(safe-area-inset-top,0px)); gap: 16px; }
  .rail-logo { width: 62px; flex-basis: 62px; }
  .rail-button, .rail-link, .scroll-link { font-size: 12px; letter-spacing: .01em; }
  .kinetic-tools { left: var(--edge); right: var(--edge); bottom: calc(24px + env(safe-area-inset-bottom,0px)); justify-content: space-between; }
  .scroll-link { margin-left: auto; gap: 12px; }
}
@media (max-height:500px) and (orientation:landscape) {
  .scene-stage { min-height: 280px; }
  .site-rail { height: 60px; }
  .kinetic-tools { bottom: 8px; }
}

.prelude-identity { position: absolute; z-index: 2; left: 50%; top: 48%; width: min(52vw,600px); overflow: visible; transform: translate(-50%,-50%); transform-origin: center; transition: transform 1.3s cubic-bezier(.76,0,.15,1), opacity .15s; }
.intro-transition .prelude-identity { transform: translate(calc(-50% + var(--logo-dx,0px)),calc(-50% + var(--logo-dy,0px))) scale(var(--logo-scale,1)); }
.intro-logo-arrived .prelude-identity { opacity: 0; }
.intro-fast .prelude-identity { transition-duration: .32s; }
.intro-letter { animation: identity-letter .65s cubic-bezier(.2,.7,.1,1) 1.25s both; }
.intro-x { transform-box: fill-box; transform-origin: center; }
.intro-x-one { animation: identity-x-one 1.6s cubic-bezier(.25,.7,.1,1) both; }
.intro-x-two { animation: identity-x-two 1.6s cubic-bezier(.25,.7,.1,1) both; }
@keyframes identity-x-one { 0% { transform: translate(var(--x-one-start,-1800px),-90px) scale(2.5); opacity: 1; } 45%,65% { transform: translate(-240px,-90px) scale(2.5); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes identity-x-two { 0% { transform: translate(var(--x-two-start,1800px),-90px) scale(2.5); opacity: 1; } 45%,65% { transform: translate(-63.5px,-90px) scale(2.5); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes identity-letter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media(max-width:600px) { .prelude-identity { width: 76vw; } }
.intro-done .prelude-identity { opacity: 0; }
.js:not(.intro-building):not(.intro-done) .intro-letter, .js:not(.intro-building):not(.intro-done) .intro-x { animation-play-state: paused; }

.intro-karm-letter { animation-name: identity-karm-letter; }
#intro-karm-k { animation-delay: 1.35s; }
#intro-karm-a { animation-delay: 1.47s; }
#intro-karm-r { animation-delay: 1.59s; }
#intro-karm-m { animation-delay: 1.71s; }
#intro-kt-a-small { animation-delay: 1.37s; }
#intro-kt-r-small { animation-delay: 1.51s; }
#intro-kt-t { animation-delay: 1.65s; }
#intro-underline { animation-delay: 1.8s; }
@keyframes identity-karm-letter { from { opacity: 0; transform: translateX(-9px); } to { opacity: 1; transform: none; } }

@media(max-width:600px) { .intro-skip { top: calc(16px + env(safe-area-inset-top,0px)); } }
