:root {
  --bg: #07080a;
  --bg-grid: rgba(232, 228, 218, 0.035);
  --ink: #edeae2;
  --ink-muted: rgba(237, 234, 226, 0.54);
  --ink-faint: rgba(237, 234, 226, 0.22);
  --accent: #d8a657;
  --accent-soft: rgba(216, 166, 87, 0.26);
  --cyan: #6ec1c8;
  --font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-200-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-300-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-300-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto;
}

body {
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  min-height: 100vh;
}

body.home {
  min-height: 520vh;
}

#scroll-track {
  position: relative;
  height: 520vh;
  width: 100%;
}

.stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(18px, 3vw, 36px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(216, 166, 87, 0.055) 0%, rgba(110, 193, 200, 0.025) 34%, transparent 68%),
    linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
  background-position: center center;
}

.chrome-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 10;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.filler-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.centerpiece {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.vitruvian-svg {
  width: min(74vmin, 600px);
  height: min(74vmin, 600px);
  overflow: visible;
  filter: drop-shadow(0 0 28px rgba(216, 166, 87, 0.07));
}

.copy-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  padding: 0 clamp(16px, 6vw, 80px);
}

.beat {
  position: absolute;
  max-width: 780px;
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  will-change: transform, opacity, letter-spacing, filter;
}

.beat-0 {
  opacity: 1;
  transform: translateY(0);
}

.hero-name {
  font-size: clamp(26px, 4.6vw, 54px);
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.15;
}

.tagline {
  font-size: clamp(22px, 3.8vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.tagline .machine {
  color: var(--cyan);
  font-weight: 300;
}

.tagline .human {
  color: var(--accent);
  font-weight: 600;
}

.thesis {
  font-size: clamp(16px, 2.25vw, 25px);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 680px;
  background: radial-gradient(circle, rgba(7, 8, 10, 0.84) 20%, rgba(7, 8, 10, 0.35) 75%, transparent 100%);
  padding: 20px 24px;
  border-radius: 8px;
}

.thesis em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.contact-beat {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background: radial-gradient(circle, rgba(7, 8, 10, 0.88) 35%, transparent 100%);
  padding: 28px 36px;
}

.contact-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.contact-link {
  font-size: clamp(16px, 2.3vw, 24px);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid rgba(216, 166, 87, 0.5);
  background: rgba(7, 8, 10, 0.72);
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(216, 166, 87, 0.18);
  outline: none;
}

.rail {
  position: fixed;
  right: clamp(16px, 2.6vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  height: 160px;
  width: 2px;
  background: var(--ink-faint);
  z-index: 10;
}

.rail-fill {
  width: 100%;
  height: 0%;
  background: var(--accent);
}

.scroll-cue {
  position: absolute;
  bottom: clamp(58px, 8vh, 88px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.scroll-cue .pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.chrome-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  z-index: 10;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  border-top: 1px solid rgba(237, 234, 226, 0.08);
  padding-top: 14px;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.legal-links a {
  color: var(--ink-muted);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  outline: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 7, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  padding: 24px;
  z-index: 50;
}

.modal-backdrop[data-open="true"] {
  display: grid;
}

.modal-card {
  max-width: 560px;
  width: 100%;
  background: #0d0f13;
  border: 1px solid var(--ink-faint);
  padding: 28px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.7;
  font-weight: 300;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(237, 234, 226, 0.1);
}

.modal-header h2 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.modal-close {
  background: none;
  border: 1px solid var(--ink-faint);
  color: var(--ink);
  font-family: var(--font);
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.modal-body p + p {
  margin-top: 12px;
}

.modal-muted {
  color: rgba(237, 234, 226, 0.58);
}

.modal-full a {
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.modal-full a:hover,
.modal-full a:focus-visible {
  text-decoration: underline;
  outline: none;
}

/* Editorial pages: /privacy, /terms, 404 */
.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(18px, 3vw, 36px);
  background:
    radial-gradient(circle at 50% 18%, rgba(216, 166, 87, 0.05) 0%, rgba(110, 193, 200, 0.02) 34%, transparent 68%),
    linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
}

.page-main {
  max-width: 720px;
  width: 100%;
  margin: clamp(48px, 10vh, 96px) auto;
  color: var(--ink);
}

.page-main h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--ink);
}

.page-meta {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 36px;
}

.page-main h2 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 32px 0 12px;
}

.page-main p,
.page-main li {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink);
}

.page-main p + p {
  margin-top: 14px;
}

.page-main ul {
  margin: 12px 0 0 1.2em;
  display: grid;
  gap: 10px;
}

.page-main a {
  color: var(--cyan);
  text-decoration: none;
}

.page-main a:hover,
.page-main a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  outline: none;
}

.page-main code {
  font-family: var(--font);
  font-size: 0.95em;
  color: var(--accent);
}

.not-found {
  text-align: center;
  margin-top: clamp(80px, 18vh, 160px);
}

.not-found .code {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.not-found h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  margin-bottom: 28px;
}

.not-found-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.page .chrome-bottom {
  position: relative;
}

@media (max-width: 640px) {
  .chrome-bottom {
    font-size: 10px;
  }
}

/* No-JS and reduced-motion: present all beats readable */
@media (prefers-reduced-motion: reduce) {
  body.home,
  #scroll-track {
    min-height: 100vh;
    height: auto;
  }

  .stage {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100vh;
  }

  .centerpiece {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 24px 0 48px;
  }

  .copy-layer {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 36px;
    pointer-events: auto;
    width: 100%;
  }

  .beat {
    position: static;
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
  }

  .rail,
  .scroll-cue {
    display: none;
  }

  #human-axes {
    opacity: 0.85 !important;
  }
}

html.no-js body.home,
html.reduced-motion body.home {
  min-height: 100vh;
}

html.no-js #scroll-track,
html.reduced-motion #scroll-track {
  height: auto;
  min-height: 0;
}

html.no-js .stage,
html.reduced-motion .stage {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 100vh;
}

html.no-js .centerpiece,
html.reduced-motion .centerpiece {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 24px 0 48px;
}

html.no-js .copy-layer,
html.reduced-motion .copy-layer {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 36px;
  pointer-events: auto;
  width: 100%;
}

html.no-js .beat,
html.reduced-motion .beat {
  position: static;
  opacity: 1 !important;
  transform: none !important;
  will-change: auto;
}

html.no-js .rail,
html.no-js .scroll-cue,
html.reduced-motion .rail,
html.reduced-motion .scroll-cue {
  display: none;
}

html.no-js #human-axes,
html.reduced-motion #human-axes {
  opacity: 0.85 !important;
}

noscript .noscript-note {
  display: block;
}

/* Stable SVG coordinate-space pivots, never animated as numeric CSS tweens. */
#degree-ring, #orbit-group, #vitruvian-circle, #vitruvian-square, #human-axes {
  transform-origin: 300px 282px;
}
#morph-figure, #machine-lattice { transform-origin: 300px 300px; }

/* Static accessibility modes show a complete, intentionally drawn emblem. */
html.no-js #vitruvian-circle, html.no-js #vitruvian-square, html.no-js .draw-line,
html.reduced-motion #vitruvian-circle, html.reduced-motion #vitruvian-square, html.reduced-motion .draw-line {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: reduce) {
  #vitruvian-circle, #vitruvian-square, .draw-line {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}
