:root {
  --pearl: #f1f0ea;
  --ink: #08080c;
  --blue: #3d7bff;
  --violet: #a07cff;
  --muted: #8a8a93;
  --line: rgba(241,240,234,.16);
  --fg: var(--pearl);
  --sans: 'Manrope', 'Manrope Fallback', system-ui, sans-serif;
  --serif: 'Manrope', 'Manrope Fallback', system-ui, sans-serif;
  --mono: 'Manrope', 'Manrope Fallback', system-ui, sans-serif;
  --stretch: 1;
  --mblur: 0px;
  --gutter: clamp(20px, 4vw, 64px);
}
html.light { --fg: var(--ink); --muted: #5c5c66; --line: rgba(8,8,12,.14); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--ink); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: auto; }
body { overflow-x: hidden; cursor: none; }
@media (hover: none) { body { cursor: auto; } }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--blue); color: #fff; }
#sizer { width: 1px; pointer-events: none; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
#maskLayer { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; display: none; }
#grid { position: fixed; inset: 0 var(--gutter); z-index: 1; pointer-events: none; display: grid; grid-template-columns: repeat(3, 1fr); opacity: .5; }
#grid i { border-left: 1px solid var(--line); }
#grid i:last-child { border-right: 1px solid var(--line); }
.ch { position: fixed; inset: 0; z-index: 2; pointer-events: none; visibility: hidden; }
.ch.on { visibility: visible; }
.ia { pointer-events: auto; }
.mono { font-family: var(--mono); font-weight: 400; font-variant-numeric: tabular-nums; }
.label {
  font-family: var(--mono); font-weight: 400; font-variant-numeric: tabular-nums; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; gap: .9em; align-items: center; white-space: nowrap;
}
.label::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.ch-char { display: inline-block; will-change: transform, filter, opacity; }
.ch-char.sp { width: .26em; }
.big {
  font-weight: 500; letter-spacing: -.035em; line-height: .8;
  transform: scaleY(var(--stretch)); transform-origin: 50% 100%;
  
}
.serif { font-family: var(--serif); font-style: normal; font-weight: 300; letter-spacing: -.025em; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg); background: transparent; transition: background .35s, color .35s, border-color .35s;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); display: inline-block; }
.pill:hover { background: var(--fg); color: var(--pearl); border-color: var(--fg); }
html.light .pill:hover { color: var(--pearl); }
html:not(.light) .pill:hover { color: var(--ink); }

/* nav */
#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 6;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--gutter); pointer-events: none;
}
#nav .wordmark { pointer-events: auto; font-weight: 500; font-size: 18px; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 9px; justify-self: start; }
#nav .wordmark i { width: 10px; height: 10px; border-radius: 50%; background: conic-gradient(from 200deg, var(--blue), var(--violet), #fff, var(--blue)); display: inline-block; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#nav .links { display: flex; gap: 34px; pointer-events: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
#nav .links a { position: relative; display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 0; }
#nav .links a sup { font-size: 8px; color: var(--muted); letter-spacing: 0; }
#nav .links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s cubic-bezier(.7,0,.2,1); }
#nav .links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
#nav .right { justify-self: end; display: flex; align-items: center; gap: 22px; pointer-events: auto; }
#nav .menu-btn { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
#nav .menu-btn b { position: relative; width: 24px; height: 10px; display: block; }
#nav .menu-btn b::before, #nav .menu-btn b::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform .5s cubic-bezier(.7,0,.2,1), top .5s cubic-bezier(.7,0,.2,1);
}
#nav .menu-btn b::before { top: 0; } #nav .menu-btn b::after { top: 8px; }
html.menu #nav .menu-btn b::before { top: 4px; transform: rotate(45deg); }
html.menu #nav .menu-btn b::after { top: 4px; transform: rotate(-45deg); }
html.menu #nav { --fg: var(--pearl); color: var(--pearl); }
html.menu #nav .links { opacity: 0; pointer-events: none; }

/* menu panel */
#panel {
  position: fixed; inset: 0; z-index: 5; background: #0b0b0d; color: #f2f1ec;
  clip-path: circle(0px at calc(100% - var(--gutter) - 12px) 41px);
  transition: clip-path .95s cubic-bezier(.75,0,.2,1);
  pointer-events: none; display: grid; grid-template-columns: 1.2fr 1fr; align-items: end;
  padding: 0 var(--gutter) 8vh;
}
html.menu #panel { clip-path: circle(160vmax at calc(100% - var(--gutter) - 12px) 41px); pointer-events: auto; }
#panel .links { display: grid; gap: .04em; }
#panel .links a {
  font-weight: 500; font-size: clamp(44px, 7.6vw, 112px); letter-spacing: -.035em; line-height: 1;
  display: inline-flex; align-items: baseline; gap: .25em; width: max-content;
  transform: translateY(40px); opacity: 0; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .6s, color .3s;
}
#panel .links a small { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .14em; color: #8a8a93; }
#panel .links a:hover { color: #bdb4ff; }
html.menu #panel .links a { transform: none; opacity: 1; }
html.menu #panel .links a:nth-child(2) { transition-delay: .06s; }
html.menu #panel .links a:nth-child(3) { transition-delay: .12s; }
html.menu #panel .links a:nth-child(4) { transition-delay: .18s; }
#panel .meta { justify-self: end; text-align: right; font-size: 13px; line-height: 1.75; color: #8a8a93; max-width: 32ch; display: grid; gap: 22px; }
#panel .meta b { color: #f2f1ec; font-weight: 500; display: block; }
#panel .meta .mono { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

/* cursor */
#cursor, #ring {
  position: fixed; left: 0; top: 0; z-index: 10; pointer-events: none; border-radius: 50%;
  mix-blend-mode: difference; will-change: transform;
}
#cursor { width: 7px; height: 7px; background: #fff; margin: -3.5px 0 0 -3.5px; }
#ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid #fff;
  display: flex; align-items: center; justify-content: center;
  transition: width .35s, height .35s, margin .35s, background .35s;
  font-family: var(--mono); font-size: 9px; letter-spacing: .18em; color: #fff;
}
#ring span { opacity: 0; transition: opacity .25s; }
#ring.link { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
#ring.drag, #ring.view, #ring.push { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: rgba(255,255,255,.12); }
#ring.drag span, #ring.view span, #ring.push span { opacity: 1; }
@media (hover: none) { #cursor, #ring { display: none; } }

/* rail + status */
#rail { position: fixed; right: calc(var(--gutter) - 2px); top: 50%; transform: translateY(-50%); z-index: 6; height: 30vh; width: 1px; background: var(--line); }
#rail i { position: absolute; left: -2.5px; width: 6px; height: 6px; border-radius: 50%; background: var(--fg); transform: translateY(-50%); transition: background .3s; }
#rail s { position: absolute; left: -1px; width: 3px; height: 3px; border-radius: 50%; background: var(--muted); opacity: .7; text-decoration: none; transform: translateY(-50%); }
#status {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 20px; z-index: 6; pointer-events: none;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
#status .chap b { color: var(--fg); font-weight: 500; }
#status .chap { display: inline-flex; gap: 10px; align-items: center; }
#status .chap .name { display: inline-flex; overflow: hidden; height: 1.3em; }
#status .chap .name span { display: block; transition: transform .6s cubic-bezier(.2,.75,.2,1), opacity .4s; }
#status .scroll { display: inline-flex; gap: 10px; align-items: center; opacity: 1; transition: opacity .6s; }
#status .scroll i { width: 1px; height: 22px; background: currentColor; display: block; transform-origin: top; animation: hint 2.2s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top } 45% { transform: scaleY(1); transform-origin: top } 46% { transform-origin: bottom } 100% { transform: scaleY(0); transform-origin: bottom } }
#status .clock { justify-self: end; display: inline-flex; gap: 10px; }
#status .clock b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }

/* hero */
#ch-hero .label { position: absolute; left: var(--gutter); top: 13vh; opacity: 0; color: var(--fg); }
#ch-hero .meta { position: absolute; right: var(--gutter); top: 13vh; display: flex; gap: 44px; opacity: 0; }
#ch-hero .meta div { display: grid; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
#ch-hero .meta span { color: var(--muted); }
#ch-hero .meta b { font-weight: 500; color: var(--fg); display: inline-flex; align-items: center; gap: 8px; }
#ch-hero .meta b i { width: 6px; height: 6px; border-radius: 50%; background: #5cff9a; box-shadow: 0 0 0 0 rgba(92,255,154,.6); animation: live 2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(92,255,154,.55); } 70% { box-shadow: 0 0 0 7px rgba(92,255,154,0); } 100% { box-shadow: 0 0 0 0 rgba(92,255,154,0); } }
#ch-hero h1 { position: absolute; left: calc(var(--gutter) - .04em); bottom: 12vh; font-size: clamp(56px, min(12.5vw, 24vh), 188px); display: grid; gap: 0; }
#ch-hero .l1, #ch-hero .l2 { display: block; overflow: hidden; padding: .06em 0 .04em; margin: -.06em 0 -.04em; line-height: .8; }
#ch-hero .l1 .in { display: inline-block; transform: translateY(112%); }
#ch-hero .l2 .in { display: inline-block; transform-origin: 0 50%; transform: scaleX(1.7); opacity: 0; }
#ch-hero .l3 { display: block; font-size: .56em; line-height: 1; margin-top: .14em; clip-path: inset(-10% 100% -10% 0); color: var(--fg); letter-spacing: -.03em; }
#ch-hero .l3 em { font-style: normal; color: #bdb4ff; }
html.light #ch-hero .l3 em { color: var(--blue); }
#ch-hero .side { position: absolute; right: var(--gutter); bottom: 12vh; width: min(36ch, 38vw); display: grid; gap: 28px; justify-items: end; text-align: right; opacity: 0; }
#ch-hero .side p { font-size: clamp(16px, 1.32vw, 20px); line-height: 1.5; color: #c3c3cc; font-weight: 400; letter-spacing: -.005em; text-shadow: 0 1px 18px rgba(0,0,0,.6), 0 0 2px rgba(0,0,0,.5); }
#ch-hero .label, #ch-hero .meta { text-shadow: 0 1px 14px rgba(0,0,0,.6); }
#ch-hero .side p b { color: var(--fg); font-weight: 500; }
#ch-hero .side .cta { font-size: 12px; }
#ch-hero .hint { position: absolute; left: 50%; bottom: 12vh; transform: translateX(-50%); display: none; }
.mag { display: inline-flex; align-items: center; gap: .6em; font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.mag .ch-char { will-change: transform; }
.mag .arrow { display: inline-block; transform-origin: 0 50%; font-family: var(--sans); }
.ul { position: relative; }
.ul svg { position: absolute; left: 0; right: 0; bottom: -6px; width: 100%; height: 8px; overflow: visible; }
.ul svg path { fill: none; stroke: currentColor; stroke-width: 1.2; }

/* manifesto */
#ch-thesis { color: var(--pearl); }
#ch-thesis .label { position: absolute; left: var(--gutter); top: 13vh; color: #8a8a93; }
#ch-thesis .line {
  position: absolute; left: 0; width: 100%; text-align: center; white-space: nowrap;
  font-size: min(12.8vw, 20vh); will-change: transform; opacity: 0;
}
#ch-thesis .line1 { top: 9vh; }
#ch-thesis .line2 { top: 33vh; }
#ch-thesis .note { position: absolute; left: var(--gutter); bottom: 7.5vh; max-width: 30ch; display: grid; gap: 10px; }
#ch-thesis .note .q { font-family: var(--serif); font-style: normal; font-weight: 300; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; color: var(--pearl); }
#ch-thesis .note p { font-size: 13px; line-height: 1.6; color: #8a8a93; }
#ch-thesis .side { position: absolute; right: var(--gutter); bottom: 7.5vh; text-align: right; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8a8a93; line-height: 2; }
#ch-thesis .side b { color: var(--pearl); font-weight: 500; }
#maskLayer text { font-family: var(--sans); font-weight: 500; letter-spacing: -.035em; }

/* gallery */
#ch-gallery .idx { position: absolute; left: var(--gutter); top: 13vh; display: flex; align-items: baseline; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.counter { display: inline-flex; height: 1.1em; overflow: hidden; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--fg); font-weight: 500; }
.counter .col { display: inline-block; transition: transform .7s cubic-bezier(.2,.75,.2,1); }
.counter .col span { display: block; height: 1.1em; }
#ch-gallery .tags { position: absolute; right: var(--gutter); top: 13vh; text-align: right; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.9; }
#ch-gallery .tags b { color: var(--fg); font-weight: 500; }
#ch-gallery .title { position: absolute; left: calc(var(--gutter) - .04em); bottom: 17vh; font-size: clamp(48px, min(8.8vw, 17vh), 136px); }
#ch-gallery .kind { position: absolute; left: var(--gutter); bottom: calc(17vh + clamp(48px, min(8.8vw, 17vh), 136px) * .9); font-size: clamp(20px, 2.6vw, 38px); color: var(--muted); }
#ch-gallery .desc { position: absolute; right: var(--gutter); bottom: 18vh; width: min(34ch, 36vw); font-size: 14.5px; line-height: 1.6; color: var(--muted); }
#ch-gallery .desc .mag { margin-top: 24px; color: var(--fg); }
#ch-gallery .gnav { position: absolute; left: 50%; bottom: 8vh; transform: translateX(-50%); display: flex; gap: 28px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
#ch-gallery .gnav button { position: relative; padding: 8px 0; color: inherit; transition: color .3s; display: inline-flex; gap: 8px; }
#ch-gallery .gnav button i { font-style: normal; opacity: .5; }
#ch-gallery .gnav button::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s cubic-bezier(.7,0,.2,1); }
#ch-gallery .gnav button.on { color: var(--fg); }
#ch-gallery .gnav button.on::after { transform: scaleX(1); }
#ch-gallery .dragzone { position: absolute; inset: 22vh 0 24vh 0; }
.detail {
  position: absolute; top: 0; right: 0; height: 100%; width: min(46vw, 640px);
  background: rgba(242,241,236,.86); backdrop-filter: blur(28px) saturate(1.2); -webkit-backdrop-filter: blur(28px) saturate(1.2);
  border-left: 1px solid var(--line); padding: 12vh var(--gutter) 8vh;
  transform: translateX(104%); transition: transform .85s cubic-bezier(.75,0,.2,1);
  display: flex; flex-direction: column; gap: 22px; color: var(--ink);
}
.detail.open { transform: none; }
.detail .top { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6f6f78; }
.detail h3 { font-size: clamp(38px, 4.4vw, 60px); font-weight: 500; letter-spacing: -.03em; line-height: .98; }
.detail p { font-size: 14.5px; line-height: 1.65; color: #6f6f78; max-width: 44ch; }
.detail .specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; border-top: 1px solid rgba(11,11,13,.14); padding-top: 18px; font-size: 13px; }
.detail .specs b { display: block; font-weight: 500; margin-bottom: 3px; }
.detail .specs span { color: #6f6f78; font-family: var(--mono); font-size: 11.5px; }
.detail .fig {
  position: relative; height: 30vh; min-height: 200px; border-radius: 6px; overflow: hidden;
  clip-path: inset(0 100% 0 0); transition: clip-path 1s cubic-bezier(.75,0,.2,1) .25s;
  background: radial-gradient(120% 110% at 28% 18%, color-mix(in srgb, var(--accent, #3b6cff) 42%, #0b0b10) 0%, #0b0b10 70%);
}
.detail.open .fig { clip-path: inset(0 0 0 0); }
.detail .fig canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.detail .fig .hud { position: absolute; left: 14px; bottom: 12px; right: 14px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(242,241,236,.55); pointer-events: none; }

/* capabilities */
#ch-caps .label { position: absolute; left: var(--gutter); top: 13vh; }
#ch-caps h2 { position: absolute; left: calc(var(--gutter) - .04em); top: 19vh; font-size: clamp(36px, min(6.2vw, 12.5vh), 92px); line-height: .92; }
#ch-caps h2 em { font-style: normal; font-weight: 300; font-family: var(--serif); color: var(--muted); }
#ch-caps .rows { position: absolute; left: var(--gutter); top: 34vh; width: min(58vw, 780px); list-style: none; border-top: 1px solid var(--line); }
#ch-caps .rows li {
  display: grid; grid-template-columns: 64px 1fr 1.15fr; gap: 24px; align-items: baseline;
  padding: 16px 0 14px; border-bottom: 1px solid var(--line); position: relative;
  opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1), color .35s;
  color: var(--muted);
}
#ch-caps.go .rows li { opacity: 1; transform: none; }
#ch-caps.go .rows li:nth-child(2) { transition-delay: .08s; } #ch-caps.go .rows li:nth-child(3) { transition-delay: .16s; } #ch-caps.go .rows li:nth-child(4) { transition-delay: .24s; }
#ch-caps .rows li .n { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; }
#ch-caps .rows li .t { font-size: clamp(18px, min(2.1vw, 4vh), 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1; transition: transform .6s cubic-bezier(.2,.7,.2,1); display: block; gap: 14px; }
#ch-caps .rows li .d { font-size: 13.5px; line-height: 1.55; max-width: 40ch; }
#ch-caps .rows li::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s cubic-bezier(.7,0,.2,1); }
#ch-caps .rows li.on { color: var(--fg); }
#ch-caps .rows li.on .d { color: var(--muted); }
#ch-caps .rows li.on::before { transform: scaleX(1); }
#ch-caps .rows li.on .t { transform: translateX(8px); }
#ch-caps .capnote { position: absolute; right: var(--gutter); bottom: 13vh; text-align: right; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.9; }
#ch-caps .capnote b { color: var(--fg); font-weight: 500; display: block; }
#ch-caps .zone { position: absolute; inset: 0; }

/* typography */
#ch-typo { color: var(--pearl); }
#ch-typo .word {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  perspective: 1400px; perspective-origin: 50% 50%; opacity: 0;
  font-weight: 500; font-size: clamp(72px, min(21vw, 36vh), 340px); letter-spacing: -.035em; line-height: 1;
}
#ch-typo .word .stage { transform-style: preserve-3d; display: flex; will-change: transform; }
#ch-typo .word .ch-char { transform-style: preserve-3d; }
#ch-typo .label { position: absolute; left: var(--gutter); top: 13vh; color: #8a8a93; }
#ch-typo .note { position: absolute; right: var(--gutter); top: 13vh; text-align: right; font-size: 13px; line-height: 1.65; color: #8a8a93; max-width: 28ch; }
#ch-typo .note b { color: var(--pearl); font-weight: 500; }
#ch-typo .idx { position: absolute; left: var(--gutter); bottom: 10vh; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: #8a8a93; display: flex; gap: 18px; }
#ch-typo .idx span { transition: color .3s; }
#ch-typo .idx span.on { color: var(--pearl); }

/* physics */
#ch-physics .label { position: absolute; left: var(--gutter); top: 13vh; }
#ch-physics h2 { position: absolute; left: calc(var(--gutter) - .04em); top: 19vh; font-size: clamp(40px, min(6.6vw, 13.5vh), 100px); line-height: .92; }
#ch-physics h2 em { font-style: normal; font-weight: 300; font-family: var(--serif); color: var(--muted); }
#ch-physics .stats { position: absolute; right: var(--gutter); bottom: 12vh; display: flex; gap: 48px; text-align: right; }
#ch-physics .stats .v { font-weight: 500; font-size: clamp(30px, min(3.8vw, 7vh), 56px); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
#ch-physics .stats .k { margin-top: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
#ch-physics .hint { position: absolute; left: var(--gutter); bottom: 12vh; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: grid; gap: 6px; }
#ch-physics .hint b { color: var(--fg); font-weight: 500; }
#ch-physics .zone { position: absolute; inset: 0; }

/* final */
#ch-final { color: var(--pearl); }
#ch-final h2 { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); text-align: center; white-space: nowrap; font-size: clamp(36px, min(7.8vw, 16vh), 128px); }
#ch-final h2 .serif { color: #bdb4ff; }
#ch-final .label { position: absolute; left: 50%; top: 13vh; transform: translateX(-50%); color: #8a8a93; }

/* footer */
#ch-footer { color: var(--pearl); display: grid; grid-template-rows: auto 1fr auto; padding: 0 var(--gutter) 60px; }
#ch-footer .outro { padding-top: 15vh; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: end; opacity: 0; }
#ch-footer .outro .label { margin-bottom: 26px; color: #8a8a93; }
#ch-footer .outro h2 { font-size: clamp(36px, min(6.6vw, 12vh), 100px); line-height: .92; }
#ch-footer .outro h2 .serif { color: #bdb4ff; }
#ch-footer .outro-cta { justify-self: end; display: grid; gap: 18px; justify-items: end; text-align: right; padding-bottom: .4em; }
#ch-footer .outro-cta p { font-size: 14px; color: #8a8a93; }
#ch-footer .outro-cta .ul { color: #f2f1ec; }
#ch-footer .cols { align-self: end; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding-bottom: 5vh; }
#ch-footer .cols h4 { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #8a8a93; margin-bottom: 16px; }
#ch-footer .cols a { display: block; font-size: 15px; line-height: 1.9; width: max-content; }
#ch-footer .cols p { font-size: 14.5px; line-height: 1.7; color: #8a8a93; max-width: 30ch; }
#ch-footer .mark { font-weight: 500; font-size: clamp(72px, min(19vw, 34vh), 310px); letter-spacing: -.045em; line-height: .82; display: block; white-space: nowrap; margin-left: -.03em; }
#ch-footer .legal .top { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--pearl); }
#ch-footer .legal .top:hover { color: #bdb4ff; }
#ch-footer .legal { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: #8a8a93; letter-spacing: .12em; text-transform: uppercase; padding-top: 18px; margin-top: 8px; border-top: 1px solid rgba(242,241,236,.14); }

/* loader */
#stats { position: fixed; left: var(--gutter); top: 72px; z-index: 30; font: 11px/1.7 var(--mono); color: #5cff9a; background: rgba(5,5,8,.72); padding: 8px 12px; border-radius: 6px; pointer-events: none; white-space: pre; letter-spacing: .04em; }
#loader { position: fixed; inset: 0; z-index: 20; background: var(--ink); color: var(--pearl); display: flex; align-items: center; justify-content: center; transition: opacity .7s ease, visibility .7s; }
#loader.off { opacity: 0; visibility: hidden; }
#loader .lwrap { display: grid; gap: 18px; justify-items: center; }
#loader .lmark { font-weight: 500; font-size: 18px; letter-spacing: -.02em; display: inline-flex; gap: 9px; align-items: center; background: linear-gradient(100deg, var(--pearl) 40%, #bdb4ff 50%, var(--pearl) 60%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 1.6s linear infinite; }
@keyframes shine { from { background-position: 120% 0; } to { background-position: -130% 0; } }
#loader .lmark i { width: 10px; height: 10px; border-radius: 50%; background: conic-gradient(from 200deg, var(--blue), var(--violet), #fff, var(--blue)); animation: spin 2s linear infinite; }
#loader .lnum { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: #8a8a93; font-variant-numeric: tabular-nums; }
#loader .lbar { width: 160px; height: 1px; background: rgba(242,241,236,.14); position: relative; overflow: hidden; }
#loader .lbar i { position: absolute; inset: 0; background: var(--pearl); transform-origin: 0 50%; transform: scaleX(0); }

html.no-module .ch { visibility: visible; position: static; padding: 8vh var(--gutter); }
html.no-module #gl, html.no-module #loader, html.no-module #cursor, html.no-module #ring, html.no-module #status { display: none; }
html.no-module #ch-hero h1 .in { transform: none; opacity: 1; }
html.no-module #ch-hero .l3 { clip-path: none; }
html.no-module #ch-hero .label, html.no-module #ch-hero .side, html.no-module #ch-hero .meta { opacity: 1; }

@media (max-width: 900px) {
  #nav .links { display: none; }
  #nav { grid-template-columns: 1fr auto; }
  #nav .right .pill { display: none; }
  #status { grid-template-columns: 1fr auto; }
  #status .scroll { display: none; }
  #grid { grid-template-columns: repeat(1, 1fr); }
  #ch-hero h1 { bottom: 16vh; font-size: clamp(56px, 17vw, 120px); }
  #ch-hero .side { right: auto; left: var(--gutter); bottom: 8vh; width: 80vw; justify-items: start; text-align: left; gap: 16px; }
  #ch-hero .side p { display: none; }
  #ch-hero .meta { display: none; }
  #ch-thesis .side { display: none; }
  #ch-gallery .desc { right: auto; left: var(--gutter); bottom: 6vh; width: 84vw; font-size: 13px; }
  #ch-gallery .desc p { display: none; }
  #ch-gallery .title { bottom: 24vh; }
  #ch-gallery .kind { bottom: calc(24vh + clamp(52px, 8.8vw, 136px) * .96); }
  #ch-gallery .gnav { display: none; }
  #ch-gallery .tags { display: none; }
  .detail { width: 100%; }
  #ch-caps .rows { width: calc(100vw - 2 * var(--gutter)); top: 34vh; }
  #ch-caps .rows li { grid-template-columns: 40px 1fr; }
  #ch-caps .rows li .d { display: none; }
  #ch-caps .capnote { display: none; }
  #ch-typo .note { display: none; }
  #ch-physics .stats { left: var(--gutter); right: auto; bottom: 8vh; text-align: left; gap: 28px; }
  #ch-physics .hint { bottom: 22vh; }
  #ch-footer .cols { grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 3vh; }
  #ch-footer .cols > div:first-child { display: none; }
  #ch-footer .outro { grid-template-columns: 1fr; padding-top: 12vh; gap: 20px; }
  #ch-footer .outro h2 { font-size: clamp(34px, 9.5vw, 60px); }
  #ch-footer .outro-cta { justify-self: start; justify-items: start; text-align: left; padding-bottom: 0; }
  #panel { grid-template-columns: 1fr; }
  #panel .meta { justify-self: start; text-align: left; margin-top: 30px; }
  #rail { display: none; }
}
@media (max-width: 600px) {
  #ch-hero .side { bottom: 7vh; }
  #ch-hero .side .cta { font-size: 11px; }
  #ch-thesis .note { max-width: 24ch; bottom: 9vh; }
  #ch-thesis .note .q { font-size: 22px; }
  #ch-footer .legal { flex-wrap: wrap; gap: 10px 18px; }
}
@media (min-width: 601px) and (max-width: 900px) {
  #ch-hero h1 { bottom: 25vh; }
  #ch-hero .side { bottom: 7vh; }
  #nav .right .pill { display: inline-flex; }
  #ch-hero .side p { display: block; font-size: 14px; }
  #ch-hero .side { width: min(36ch, 70vw); }
  #ch-caps .rows li { grid-template-columns: 48px 1fr 1fr; }
  #ch-caps .rows li .d { display: block; font-size: 12.5px; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  #nav .links { gap: 22px; }
  #ch-gallery .desc { width: min(30ch, 34vw); font-size: 13.5px; }
  #ch-caps .rows { width: 60vw; }
  #ch-caps .rows li .d { font-size: 12.5px; }
  #ch-hero .side { width: min(30ch, 34vw); }
}
@media (max-height: 720px) {
  #ch-hero .label, #ch-hero .meta, #ch-thesis .label, #ch-gallery .idx, #ch-gallery .tags, #ch-caps .label, #ch-typo .label, #ch-typo .note, #ch-physics .label, #ch-final .label { top: 11vh; }
  #ch-hero h1 { bottom: 11vh; }
  #ch-caps h2, #ch-physics h2 { top: 17vh; }
  #ch-caps .rows { top: 30vh; }
  #ch-caps .rows li { padding: 12px 0 10px; }
  #ch-caps .rows li .d { font-size: 12.5px; line-height: 1.45; }
  #ch-footer .outro { padding-top: 12vh; }
  #ch-footer .cols { padding-bottom: 3vh; }
  #ch-footer .cols a { line-height: 1.7; font-size: 14px; }
  #ch-footer .cols p { font-size: 13.5px; line-height: 1.6; }
}
@media (max-height: 560px) {
  #ch-caps .rows li .d { display: none; }
  #ch-caps .rows li { grid-template-columns: 48px 1fr; padding: 10px 0; }
  #ch-footer .cols { display: none; }
  #ch-hero .side p { display: none; }
}
@media (prefers-reduced-motion: reduce) { #status .scroll i, #nav .wordmark i, #loader .lmark, #ch-hero .meta b i { animation: none; } }

.reveal .ch-char { opacity: 0; transform: translateY(.38em) rotate(2.5deg); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1); }
.reveal.in .ch-char { opacity: 1; transform: none; }
#ch-hero h1 .ch-char { opacity: 0; transform: translateY(.18em) rotate(4deg); transition: opacity .5s ease, transform .85s cubic-bezier(.2,.8,.2,1); }
#ch-hero h1.go .ch-char { opacity: 1; transform: none; }
#ch-hero h1.go .l1 .in { transform: none; transition: transform 1s cubic-bezier(.2,.85,.2,1); }
#ch-hero h1.go .l2 .in { transform: scaleX(1); opacity: 1; transition: transform 1.15s cubic-bezier(.2,.9,.2,1) .55s, opacity .5s ease .55s; }
#ch-hero h1.go .l3 { clip-path: inset(-10% 0 -10% 0); transition: clip-path 1.25s cubic-bezier(.75,0,.2,1) 1.35s; }
#ch-hero.go .label, #ch-hero.go .side, #ch-hero.go .meta { opacity: 1; transition: opacity 1s ease 2.05s; }
#ch-hero.settled .label, #ch-hero.settled .side, #ch-hero.settled .meta, #ch-hero.settled h1 .ch-char, #ch-hero.settled .l1 .in, #ch-hero.settled .l2 .in, #ch-hero.settled .l3 { transition: none; }
#ch-gallery .glow { position: absolute; left: 50%; top: 50%; width: 120vmax; height: 120vmax; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, var(--accent, #3b6cff) 0%, transparent 42%); opacity: 0; transition: opacity 1.2s, background 1.2s; pointer-events: none; }
#ch-gallery.lit .glow { opacity: .10; }
#ch-gallery .title, #ch-gallery .kind, #ch-gallery .desc p, #ch-gallery .tags { transition: opacity .35s, transform .5s cubic-bezier(.2,.7,.2,1); }
#ch-gallery.swap .title, #ch-gallery.swap .kind, #ch-gallery.swap .desc p, #ch-gallery.swap .tags { opacity: 0; transform: translateY(14px); }
body[data-capture] *, body[data-capture] *::before, body[data-capture] *::after { transition: none !important; animation: none !important; }
#ch-typo .label, #ch-typo .note, #ch-typo .idx, #ch-physics .label, #ch-physics .hint, #ch-physics .stats, #phH2,
#finalH2, #ch-final .label, #ch-footer .cols, #ch-footer .legal, #ch-gallery .title, #ch-gallery .kind, #ch-gallery .desc,
#ch-gallery .gnav, #ch-gallery .idx, #ch-gallery .tags, #ch-thesis .note, #ch-thesis .side, #ch-thesis .label,
#ch-caps .label, #ch-caps h2, #ch-caps .capnote { opacity: 0; }


/* AXIS additions. The skip link, the two devices that replaced a dash separator, the
   footer column that carries plain text beside links, and the reduced motion cover for
   every hover transform on the page. */
.skip {
  position: absolute; left: var(--gutter); top: 0; z-index: 400;
  transform: translateY(-140%);
  padding: .7rem 1.1rem; border-radius: 999px;
  background: var(--blue); color: #fff;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-decoration: none;
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.skip:focus { transform: translateY(14px); outline: 2px solid var(--pearl); outline-offset: 2px; }
#ch-gallery .tags .gtag {
  margin-left: .62em; padding-left: .62em;
  border-left: 1px solid var(--line);
  color: var(--muted); font-weight: 500; letter-spacing: .2em;
}
.detail .top .dkind {
  margin-left: .62em; padding-left: .62em;
  border-left: 1px solid var(--line);
  color: var(--muted);
}
#ch-footer .cols .plain {
  display: block; margin: 0; max-width: none;
  font-family: var(--sans); font-size: 15px; line-height: 1.9;
  color: var(--fg);
}
@media (prefers-reduced-motion: reduce) {
  .pill:hover, .skip:focus, #nav .wordmark:hover i { transform: none; }
  .reveal .ch-char, #ch-hero h1 .ch-char { transition: none; }
  #loader .lmark i, #loader .lmark, #nav .wordmark i, #status .scroll i, #ch-hero .meta b i { animation: none; }
}
