:root { color-scheme: dark; background: #010203; --ink: #e1e6ec; --muted: #a0a8b2; --faint: #838c97; --line: #c3cbd326; --gutter: 6vw; }
* { box-sizing: border-box; }
html { margin: 0; width: 100%; scroll-behavior: smooth; }
body { margin: 0; width: 100%; background: #010203; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
#universe { position: fixed; z-index: 0; inset: 0; overflow: hidden; isolation: isolate; background: #010203; }
canvas, #still { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#space, #fallback { opacity: 0; }
#space.visible, #fallback.visible { opacity: 1; }
#probe { position: absolute; left: 42%; top: 48%; width: clamp(18px, 1.5vw, 23px); aspect-ratio: 100 / 72; opacity: .73; transform: rotate(-17deg); transform-origin: center; will-change: transform; pointer-events: none; }
#probe svg { display: block; width: 100%; height: 100%; filter: brightness(.44) drop-shadow(.4px -.15px .25px #ffe3cc99); }
/* Pure CSS first paint. The baked WebGL still added below is the no-JS final
   safety net and uses exactly the same camera, without a duplicated probe. */
#still { --radius: 32vh; --cx: 91%; --cy: 43%; background: #010203; }
.still-halo { position: absolute; left: var(--cx); top: var(--cy); width: calc(var(--radius)*3.4); height: calc(var(--radius)*4.8); transform: translate(-50%,-50%) rotate(-16deg); border-radius: 50%; background: radial-gradient(ellipse, transparent 40%, #edd0c370 43%, #fff0e2 49%, #d0947950 60%, transparent 71%); clip-path: polygon(0 0,100% 0,100% 50%,0 56%); filter: blur(5px); }
.still-hole { position: absolute; left: var(--cx); top: var(--cy); width: calc(var(--radius)*2); height: calc(var(--radius)*2); transform: translate(-50%,-50%); border-radius: 50%; background: #000; }
.still-disk { position: absolute; left: var(--cx); top: calc(var(--cy) + 10vh); width: 180vh; height: 28vh; transform: translate(-50%,-50%) rotate(-16deg); border-radius: 50%; background: radial-gradient(ellipse, #fff0e3 10%, #f2d8cc 22%, #c28a7050 46%, transparent 71%); filter: blur(6px); }
/* Generated locally by validation/v2/bake_fallbacks.py. The synthetic CSS
   geometry remains underneath if even the local still cannot be decoded. */
#still::after { content: ''; position: absolute; inset: 0; background: url('assets/gargantua-wide.webp') right center / cover no-repeat; }
@media (max-aspect-ratio: 1.65/1) { #still::after { background-image: url('assets/gargantua-landscape.webp'); } }
@media (orientation: portrait) {
  #probe { left: 26%; top: 37%; width: 15px; }
  #still { --radius: 35.5vw; --cx: 105.5%; --cy: 39.5%; }
  #still::after { background-image: url('assets/gargantua-portrait.webp'); }
}
@media (min-aspect-ratio: 1/1) and (max-aspect-ratio: 1.65/1) { #probe { left: 38%; } }
@media (prefers-reduced-motion: reduce) { #probe { will-change: auto; } }

/* The homepage lives above the original, fixed V2 scene. Only links capture
   pointer events; empty layout and scrims leave the scene's input unobstructed. */
a { color: inherit; text-decoration: none; pointer-events: auto; touch-action: manipulation; }
a:focus-visible { outline: 2px solid #e1e6ec; outline-offset: 6px; border-radius: 1px; }
p, h1, h2, h3 { margin: 0; }
.site-header, #content { position: relative; z-index: 1; pointer-events: none; }
.site-header { position: absolute; top: 35px; left: var(--gutter); right: var(--gutter); display: flex; align-items: center; gap: clamp(64px, 7vw, 112px); }
.brand { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 48px; }
.brand-name { font-size: 24px; font-weight: 600; letter-spacing: .22em; line-height: 1.1; }
.brand-label { margin-top: 8px; color: var(--muted); font-size: 8px; letter-spacing: .23em; }
nav { display: flex; gap: 28px; }
nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 44px; color: #b3bbc5; font-size: 12px; transition: color .2s; }
nav a:hover { color: #fff; }
.skip-link { position: fixed; z-index: 5; top: 16px; left: var(--gutter); padding: 14px 20px; background: #10151b; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
#content { outline: none; }
.hero { position: relative; min-height: 760px; height: 100svh; padding: 30svh var(--gutter) 130px; }
.hero-copy { position: relative; width: min(620px, 48vw); }
.eyebrow { font-size: 10px; line-height: 1.5; font-weight: 500; letter-spacing: .18em; color: var(--muted); }
.eyebrow span { margin: 0 9px; color: var(--faint); }
/* Leave room for the probe's existing 19px parallax travel at 1440px. */
h1 { margin-top: 24px; font-size: clamp(44px, 3.65vw, 62px); font-weight: 400; line-height: 1.09; letter-spacing: -.055em; }
h1 span { display: block; }
.hero-subtitle { margin-top: 25px; font-size: 14px; line-height: 1.9; letter-spacing: .025em; color: #aab3bf; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 46px; font-size: 12px; }
.button { padding: 0 19px; border: 1px solid #c3cbd347; background: #080d1438; transition: background .2s, border-color .2s; }
.button:hover { background: #ccd8e212; border-color: #c3cbd380; }
.text-link { gap: 20px; color: #b7c0cb; }
.text-link:hover, .inline-link:hover { color: #fff; }
.button span, .text-link span, .inline-link span { color: #a1abb7; font-size: 15px; }
.scroll-cue { position: absolute; bottom: 40px; left: var(--gutter); display: flex; min-height: 44px; align-items: center; gap: 13px; color: #a3adb9; font-size: 10px; letter-spacing: .08em; }
.scroll-line { width: 32px; height: 1px; background: #a3adb966; }
.scroll-cue > span:last-child { margin-left: 10px; }
.scene-caption { position: absolute; right: var(--gutter); bottom: 58px; color: #949da9; font-size: 8px; letter-spacing: .16em; }
.scene-caption span { margin: 0 12px; }
.below-fold { position: relative; padding: 110px var(--gutter) 0; }
.below-fold::before { content: ""; position: absolute; z-index: -1; inset: -200px 0 0; background: linear-gradient(to bottom, transparent, #030609b8 240px, #030609ed 600px, #030609f2 100%); pointer-events: none; }
.content-section { max-width: 1280px; margin: 0 auto; padding: 0 0 148px; scroll-margin-top: 68px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 46px; }
h2 { margin-top: 16px; font-size: clamp(32px, 3vw, 46px); font-weight: 400; line-height: 1.14; letter-spacing: -.045em; }
.section-intro { padding-bottom: 5px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.project-list, .notes-list, .experiment-list { list-style: none; margin: 0; padding: 0; }
.project-row { display: grid; grid-template-columns: 58px 1fr 1fr; gap: 24px; padding: 36px 0 38px; border-top: 1px solid var(--line); }
.project-row:last-child { border-bottom: 1px solid var(--line); }
.row-index { padding-top: 7px; color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.project-title h3 { font-size: clamp(23px, 2.15vw, 32px); font-weight: 400; letter-spacing: -.035em; line-height: 1.25; }
.tags { display: flex; gap: 20px; margin-top: 18px; color: #929ca8; font-size: 10px; letter-spacing: .03em; }
.tags span::before { content: "/"; margin-right: 20px; color: #67717d; }
.project-description { padding-top: 5px; font-size: 14px; line-height: 1.7; }
.project-description .detail { max-width: 420px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.inline-link { display: inline-flex; align-items: center; min-height: 44px; gap: 24px; margin-top: 12px; font-size: 11px; }
.experiment-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.experiment-list li { border-top: 1px solid var(--line); padding-top: 24px; }
.experiment-index { font-size: 10px; color: var(--faint); }
.experiment-list h3 { margin-top: 22px; font-size: 18px; font-weight: 400; line-height: 1.5; letter-spacing: -.025em; }
.experiment-list p { margin-top: 12px; max-width: 220px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.notes-list li { display: grid; grid-template-columns: 130px 160px minmax(0, 1fr); gap: 28px; align-items: baseline; border-top: 1px solid var(--line); padding: 28px 0; }
.notes-list li:last-child { border-bottom: 1px solid var(--line); }
.notes-list time { font-size: 10px; color: var(--faint); letter-spacing: .06em; }
.notes-list h3 { font-size: 19px; font-weight: 400; line-height: 1.5; letter-spacing: -.02em; }
.note-category { font-size: 11px; color: var(--muted); }
.draft-note { margin-top: 20px; font-size: 11px; line-height: 1.8; color: var(--faint); }
.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: 82px; padding-bottom: 110px; }
.about-copy > p:first-child { font-size: 23px; font-weight: 400; line-height: 1.65; letter-spacing: -.025em; }
.about-signature { margin-top: 25px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.contact-placeholder { margin-top: 40px; color: var(--faint); font-size: 9px; letter-spacing: .12em; }
.contact-placeholder span { margin-left: 20px; color: var(--muted); font-size: 12px; letter-spacing: 0; }
.site-footer { max-width: 1280px; margin: auto; padding: 26px 0 30px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 10px; color: var(--muted); }
.site-footer p span { margin-left: 22px; color: var(--faint); }
.site-footer a { display: inline-flex; align-items: center; gap: 22px; min-height: 44px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: arrive 1.2s .1s both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 1100px) and (orientation: landscape) {
  .hero-copy { width: 49vw; }
  h1 { font-size: clamp(32px, 4vw, 44px); }
  .hero-subtitle { max-width: 340px; font-size: 12px; }
  .hero { min-height: 630px; }
}
@media (max-width: 900px) {
  .project-row { grid-template-columns: 34px 1fr 1fr; gap: 18px; }
  .experiment-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px; }
  .notes-list li { grid-template-columns: 90px minmax(0, 1fr); gap: 16px; }
  .notes-list h3 { grid-column: 2; }
  .note-category { grid-column: 2; }
  .about-section { gap: 45px; }
}
@media (orientation: portrait) {
  :root { --gutter: 6vw; }
  .site-header { top: max(22px, env(safe-area-inset-top)); justify-content: space-between; gap: 20px; }
  /* A local top fade keeps navigation legible over the bright portrait arc. */
  .site-header::before { content: ""; position: absolute; z-index: -1; top: calc(-1 * max(22px, env(safe-area-inset-top))); left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); height: calc(145px + env(safe-area-inset-top)); background: linear-gradient(#010203e6, #010203b3 38%, transparent); pointer-events: none; }
  .brand-name { font-size: 21px; }
  .brand-label { font-size: 7px; letter-spacing: .18em; }
  nav { gap: 18px; }
  nav a { font-size: 11px; }
  .hero { height: auto; min-height: 100svh; padding-top: 58svh; padding-bottom: 125px; }
  .hero-copy { width: min(100%, 580px); }
  .hero .eyebrow { font-size: 9px; }
  h1 { margin-top: 18px; font-size: clamp(34px, 9.1vw, 54px); line-height: 1.1; letter-spacing: -.05em; }
  .hero-subtitle { max-width: 340px; margin-top: 21px; font-size: 12px; line-height: 1.9; }
  .hero-actions { gap: 26px; margin-top: 25px; }
  .button, .text-link { font-size: 11px; }
  .button { padding: 0 16px; gap: 20px; }
  .text-link { gap: 16px; }
  .scroll-cue { bottom: 25px; font-size: 9px; }
  .scene-caption { display: none; }
  .below-fold { padding-top: 70px; }
  .below-fold::before { top: -110px; background: linear-gradient(to bottom, transparent, #030609d9 210px, #030609f2 600px); }
}
@media (max-width: 600px) {
  nav { gap: 15px; }
  .content-section { padding-bottom: 90px; scroll-margin-top: 35px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-intro { margin-top: 17px; font-size: 12px; }
  h2 { margin-top: 14px; font-size: 32px; }
  .project-row { grid-template-columns: 26px minmax(0, 1fr); gap: 14px; padding: 28px 0; }
  .project-title h3 { font-size: 25px; }
  .project-description { grid-column: 2; padding-top: 0; font-size: 13px; }
  .project-description .detail { font-size: 12px; }
  .tags { margin-top: 12px; }
  .experiment-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .experiment-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px 14px; padding: 24px 0; }
  .experiment-list li:last-child { border-bottom: 1px solid var(--line); }
  .experiment-index { grid-row: 1 / span 2; padding-top: 6px; }
  .experiment-list h3 { font-size: 18px; margin-top: 0; }
  .experiment-list p { grid-column: 2; max-width: none; margin-top: 0; font-size: 12px; }
  .notes-list li { grid-template-columns: 1fr 1fr; gap: 12px; padding: 25px 0; }
  .notes-list h3 { grid-column: 1 / -1; grid-row: 2; font-size: 19px; }
  .note-category { grid-column: 2; grid-row: 1; text-align: right; font-size: 10px; }
  .about-section { display: block; }
  .about-copy { margin-top: 28px; }
  .about-copy > p:first-child { font-size: 20px; }
  .about-signature { font-size: 12px; }
  .site-footer { gap: 16px; font-size: 9px; }
  .site-footer p span { display: block; margin: 7px 0 0; }
}
@media (max-width: 360px) {
  nav { gap: 12px; }
  nav a { font-size: 10px; }
  .hero-actions { gap: 20px; }
  h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
