:root {
  --bg: #0d0f0f;
  --panel: #131616;
  --panel-2: #171a1a;
  --ink: #f3f1e8;
  --muted: #9d9f99;
  --line: rgba(243, 241, 232, 0.16);
  --line-strong: rgba(243, 241, 232, 0.32);
  --accent: #c7ff45;
  --orange: #ff7a1a;
  --blue: #7bb7ff;
  --shadow: rgba(0, 0, 0, 0.3);
  --font-sans: "Geist", "Inter", "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1500px;
}

:root[data-mode="paper"] {
  --bg: #ece9df;
  --panel: #f5f2e9;
  --panel-2: #e4e0d5;
  --ink: #111313;
  --muted: #62645f;
  --line: rgba(17, 19, 19, 0.15);
  --line-strong: rgba(17, 19, 19, 0.32);
  --accent: #1f5cff;
  --orange: #e65a00;
  --blue: #005ac8;
  --shadow: rgba(40, 35, 25, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.45;
  transition: background-color .35s ease, color .35s ease;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 78% 11%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 22%);
  z-index: -1;
}
::selection { background: var(--accent); color: #0d0f0f; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--accent);
  color: #090b0b;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.page-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 16px auto;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  box-shadow: 0 28px 90px var(--shadow);
}

.site-header {
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line-strong);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
}
.brand-mark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: .08em;
  font-size: 13px;
}
.brand-mark__glyph {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
  background: var(--ink);
  color: var(--bg);
}
.header-nav { display: flex; gap: 28px; }
.header-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  transition: color .2s ease;
}
.header-nav a:hover, .header-nav a:focus-visible { color: var(--ink); }
.mode-switch {
  justify-self: end;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.mode-switch span:first-child { font-size: 18px; }

.hero {
  min-height: min(820px, calc(100vh - 100px));
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 330px;
  border-bottom: 1px solid var(--line-strong);
  position: relative;
  overflow: hidden;
}
.rail-label {
  font-family: var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 10px;
}
.hero__meta {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 18px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 78px clamp(32px, 5.5vw, 94px);
  position: relative;
}
.eyebrow {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}
.hero h1 {
  margin: 0;
  max-width: 1040px;
  font-size: clamp(55px, 7.7vw, 128px);
  line-height: .88;
  letter-spacing: -.065em;
  font-weight: 610;
}
.hero h1 span { display: block; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  font-weight: 770;
}
.hero__lede {
  max-width: 640px;
  margin: 40px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  width: fit-content;
}
.text-link--strong {
  font-size: 13px;
  font-weight: 700;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
}
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translate(3px, 3px); }
.status-dot {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status-dot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 12%, transparent);
}

.hero__instrument {
  border-left: 1px solid var(--line);
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 26px;
  background: color-mix(in srgb, var(--panel) 54%, transparent);
}
.hero__instrument p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  line-height: 1.8;
}
.hero__instrument strong { color: var(--ink); font-weight: 600; }
.scope {
  aspect-ratio: 1;
  width: 100%;
  position: relative;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: var(--panel);
  box-shadow: inset 0 0 70px color-mix(in srgb, var(--accent) 7%, transparent);
}
.scope::before, .scope::after {
  content: "";
  position: absolute;
  background: var(--line);
}
.scope::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.scope::after { top: 50%; left: 0; right: 0; height: 1px; }
.scope__grid {
  position: absolute;
  inset: 18%;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
}
.scope__orbit {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.scope__orbit--one { inset: 28%; animation: pulseOrbit 5s ease-in-out infinite; }
.scope__orbit--two { inset: 39%; border-color: var(--accent); animation: pulseOrbit 4s ease-in-out infinite reverse; }
.scope__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent);
}
.scope__tick {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
}
.scope__tick--a { top: 12%; left: 16%; }
.scope__tick--b { top: 20%; right: 15%; }
.scope__tick--c { bottom: 17%; right: 19%; }
@keyframes pulseOrbit { 50% { transform: scale(1.08); opacity: .45; } }

.duck-trigger {
  position: absolute;
  left: calc(116px + 24px);
  bottom: 20px;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  border-radius: 50%;
  cursor: crosshair;
}
.duck-trigger:hover { border-color: var(--accent); color: var(--accent); }

.work { border-bottom: 1px solid var(--line-strong); }
.section-kicker,
.lab__intro {
  display: grid;
  grid-template-columns: 116px 1fr;
  min-height: 240px;
  border-bottom: 1px solid var(--line-strong);
}
.section-kicker > .rail-label,
.lab__intro > .rail-label {
  border-right: 1px solid var(--line);
  padding: 28px 18px;
}
.section-kicker > div,
.lab__intro > div {
  padding: 50px clamp(32px, 5.5vw, 94px);
}
.section-kicker h2,
.lab__intro h2,
.about h2,
.contact-band h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 74px);
  line-height: .98;
  letter-spacing: -.05em;
  font-weight: 590;
}
.specimen-list { display: grid; }
.specimen {
  display: grid;
  grid-template-columns: 116px 1fr;
  min-height: 430px;
  border-bottom: 1px solid var(--line-strong);
  transition: background .25s ease;
}
.specimen:last-child { border-bottom: 0; }
.specimen:hover { background: color-mix(in srgb, var(--panel) 76%, transparent); }
.specimen__index {
  border-right: 1px solid var(--line);
  padding: 24px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.specimen__body {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(420px, 1.3fr);
  grid-template-rows: auto 1fr auto;
}
.specimen__topline {
  grid-column: 1 / 2;
  padding: 28px 34px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.specimen__topline h3 {
  margin: 0;
  font-size: clamp(32px, 4vw, 62px);
  letter-spacing: -.05em;
  line-height: 1;
}
.tag {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 7px 8px;
  white-space: nowrap;
}
.specimen__pitch {
  grid-column: 1 / 2;
  padding: 28px 34px 34px;
  margin: 0;
  align-self: end;
  max-width: 520px;
  font-size: clamp(18px, 2.1vw, 30px);
  line-height: 1.14;
  letter-spacing: -.025em;
}
.specimen__visual {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  border-left: 1px solid var(--line);
  min-height: 360px;
  position: relative;
  overflow: hidden;
  background: var(--panel);
}
.specimen__footer {
  grid-column: 1 / -1;
  min-height: 52px;
  border-top: 1px solid var(--line);
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .08em;
}
.visual-klock {
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), var(--line) calc(50% - .5px), var(--line) calc(50% + .5px), transparent calc(50% + .5px)),
    repeating-linear-gradient(0deg, transparent 0 47px, var(--line) 48px),
    var(--panel);
}
.klock-ring {
  position: absolute;
  width: min(280px, 48%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 22px color-mix(in srgb, var(--blue) 5%, transparent), 0 0 0 54px color-mix(in srgb, var(--blue) 3%, transparent);
}
.klock-ring::before,
.klock-ring::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform-origin: 0 0;
  width: 1px;
  background: var(--ink);
}
.klock-ring::before { height: 32%; transform: rotate(25deg); }
.klock-ring::after { height: 22%; transform: rotate(126deg); }
.klock-ring span {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  right: 11%;
  top: 18%;
  box-shadow: 0 0 24px var(--accent);
}
.klock-line {
  position: absolute;
  height: 1px;
  background: var(--blue);
  opacity: .8;
}
.klock-line--1 { left: 8%; right: 58%; top: 26%; }
.klock-line--2 { left: 64%; right: 8%; top: 66%; }
.klock-line--3 { left: 10%; right: 68%; top: 77%; }
.klock-now {
  position: absolute;
  right: 18px;
  top: 16px;
  font: 9px var(--font-mono);
  color: var(--blue);
}

.visual-still {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 72% 28%, color-mix(in srgb, var(--orange) 12%, transparent), transparent 24%),
    var(--panel);
}
.still-board {
  width: min(310px, 62%);
  aspect-ratio: 1;
  position: relative;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    color-mix(in srgb, var(--panel-2) 78%, transparent);
  background-size: 20% 20%;
  border: 1px solid var(--line-strong);
  box-shadow: 16px 16px 0 color-mix(in srgb, var(--ink) 4%, transparent);
}
.puck, .target {
  position: absolute;
  width: 13%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.puck { border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 7px color-mix(in srgb, var(--bg) 78%, transparent); }
.puck--a { left: 30%; top: 30%; }
.puck--b { left: 70%; top: 50%; background: var(--orange); }
.puck--c { left: 50%; top: 70%; background: var(--accent); }
.target { border: 1px dashed var(--muted); border-radius: 50%; }
.target--a { left: 70%; top: 30%; }
.target--b { left: 30%; top: 50%; border-color: var(--orange); }
.target--c { left: 30%; top: 70%; border-color: var(--accent); }
.still-note {
  position: absolute;
  bottom: 16px;
  right: 18px;
  font: 9px var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.visual-noctane {
  padding: clamp(44px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  background:
    linear-gradient(90deg, transparent 0 30px, color-mix(in srgb, var(--accent) 18%, transparent) 30px 31px, transparent 31px),
    var(--panel);
}
.terminal-line {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.35vw, 18px);
  color: var(--ink);
}
.prompt { color: var(--accent); padding-right: 12px; }
.term-fade { color: var(--muted); }
.cursor {
  display: inline-block;
  width: 10px;
  height: 1em;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.terminal-status {
  margin-top: 30px;
  font: 9px var(--font-mono);
  color: var(--muted);
  letter-spacing: .11em;
}

.lab { border-bottom: 1px solid var(--line-strong); }
.principles {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.principles li {
  min-height: 330px;
  padding: 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.principles li:last-child { border-right: 0; }
.principle__num {
  font: 10px var(--font-mono);
  color: var(--muted);
}
.principles h3 {
  margin: auto 0 14px;
  font-size: 28px;
  letter-spacing: -.035em;
}
.principles p {
  margin: 0;
  color: var(--muted);
  max-width: 260px;
  font-size: 14px;
}
.principles li:nth-child(2) h3 { color: var(--accent); }
.principles li:nth-child(3) { background: color-mix(in srgb, var(--panel) 60%, transparent); }

.about {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  min-height: 590px;
  border-bottom: 1px solid var(--line-strong);
}
.about__stamp {
  display: grid;
  place-content: center;
  border-right: 1px solid var(--line);
  position: relative;
  font-size: clamp(160px, 20vw, 300px);
  font-weight: 800;
  line-height: .7;
  letter-spacing: -.1em;
  color: color-mix(in srgb, var(--ink) 7%, transparent);
  overflow: hidden;
}
.about__stamp small {
  position: absolute;
  right: 22%;
  bottom: 22%;
  font: 11px var(--font-mono);
  color: var(--accent);
  letter-spacing: .08em;
}
.about__copy {
  padding: clamp(46px, 7vw, 108px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about__copy > p:not(.eyebrow):not(.about__aside) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
  margin: 34px 0 0;
}
.about__aside {
  margin: 54px 0 0;
  font: 10px var(--font-mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-band { overflow: hidden; }
.marquee {
  border-bottom: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  background: var(--accent);
  color: #0b0d0d;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  width: max-content;
  padding: 11px 0;
  font: 10px var(--font-mono);
  letter-spacing: .1em;
  animation: marquee 24s linear infinite;
}
@keyframes marquee { to { transform: translateX(-25%); } }
.contact-band__inner {
  padding: clamp(70px, 10vw, 150px) clamp(34px, 8vw, 118px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
}
.contact-band__inner .eyebrow,
.contact-band__inner h2 { grid-column: 1 / -1; }
.contact-band__inner h2 { font-size: clamp(70px, 12vw, 190px); }
.contact-band__note {
  justify-self: end;
  margin: 0;
  font: 9px var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
}
.site-footer {
  min-height: 70px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  font: 9px var(--font-mono);
  color: var(--muted);
  letter-spacing: .08em;
}

.duck {
  position: fixed;
  z-index: 80;
  bottom: 20px;
  left: -260px;
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--orange);
  transition: left 1s cubic-bezier(.16,.75,.25,1);
  pointer-events: none;
  filter: drop-shadow(0 8px 20px var(--shadow));
}
.duck.is-out { left: 24px; }
.duck__body { font-size: 52px; transform: rotate(-6deg); }
.duck__beak { font-size: 27px; margin-left: -12px; color: var(--accent); }
.duck__message {
  margin-left: 10px;
  background: var(--ink);
  color: var(--bg);
  font: 9px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 8px 10px;
}

@media (max-width: 1050px) {
  .hero { grid-template-columns: 82px 1fr; }
  .hero__meta { grid-row: 1; }
  .hero__instrument { grid-column: 2; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; align-items: center; }
  .scope { width: 220px; }
  .duck-trigger { left: 100px; }
  .section-kicker, .lab__intro, .specimen { grid-template-columns: 82px 1fr; }
  .specimen__body { grid-template-columns: 1fr; }
  .specimen__topline, .specimen__pitch { grid-column: 1; }
  .specimen__visual { grid-column: 1; grid-row: auto; border-left: 0; border-top: 1px solid var(--line); }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principles li:nth-child(2) { border-right: 0; }
  .principles li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about { grid-template-columns: 1fr; }
  .about__stamp { min-height: 330px; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .page-shell { width: calc(100% - 16px); margin: 8px auto; }
  .site-header { grid-template-columns: 1fr auto; min-height: 60px; padding: 0 16px; }
  .header-nav { display: none; }
  .mode-switch__label { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__meta { display: none; }
  .hero__content { padding: 72px 22px 58px; }
  .hero h1 { font-size: clamp(52px, 18vw, 90px); }
  .hero__lede { margin-top: 28px; font-size: 16px; }
  .hero__instrument { grid-column: 1; grid-template-columns: 140px 1fr; padding: 24px 22px; }
  .scope { width: 140px; }
  .duck-trigger { left: auto; right: 16px; bottom: 10px; }
  .section-kicker, .lab__intro, .specimen { grid-template-columns: 1fr; }
  .section-kicker > .rail-label, .lab__intro > .rail-label, .specimen__index { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 20px; }
  .section-kicker > div, .lab__intro > div { padding: 40px 22px; }
  .specimen__topline { padding: 24px 22px 0; align-items: center; }
  .specimen__pitch { padding: 28px 22px; }
  .specimen__footer { padding: 0 22px; flex-direction: column; justify-content: center; align-items: flex-start; }
  .specimen__visual { min-height: 300px; }
  .principles { grid-template-columns: 1fr; }
  .principles li { min-height: 240px; border-right: 0; border-bottom: 1px solid var(--line); }
  .principles li:last-child { border-bottom: 0; }
  .about__copy { padding: 54px 22px; }
  .contact-band__inner { grid-template-columns: 1fr; padding: 72px 22px; }
  .contact-band__inner h2 { font-size: clamp(72px, 26vw, 130px); }
  .contact-band__note { justify-self: start; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Mobile type safety: keep long display words inside the instrument frame. */
@media (max-width: 720px) {
  .hero h1 {
    font-size: clamp(46px, 15vw, 64px);
    overflow-wrap: anywhere;
  }
  .contact-band__inner h2 {
    font-size: clamp(58px, 17vw, 74px);
    overflow-wrap: anywhere;
  }
}
