:root {
  --ink: #f7f4ec;
  --muted: #bdb7ad;
  --soft: #d8d0c3;
  --navy: #07142c;
  --navy-2: #0b1e3f;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.16);
  --orange: #ff7a1a;
  --orange-2: #ffb15f;
  --white: #fff8ef;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 28px;

  --origin: #fff8ef;
  --craft: #82c7ff;
  --home: #b8d88b;
  --work: #bfa3ff;
  --connection: #ffc0dd;
  --loss: #a9b0bd;
  --rebuild: #ffb15f;
  --project: #64e5c1;
  --identity: #ff7a1a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 122, 26, 0.22), transparent 30%),
    radial-gradient(circle at 85% 0%, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(140deg, #07142c 0%, #0b1e3f 42%, #050914 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a { color: inherit; }
button { font: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 40px)); }
.section { padding: 90px 0; position: relative; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--orange);
  color: #101010;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 100;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  background: rgba(5, 9, 20, 0.72);
}
.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.mark-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255,122,26,0.16), 0 0 30px rgba(255,122,26,0.8);
}
.site-header nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}
.site-header nav a:hover { color: var(--white); }

.hero { padding-top: 120px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 44px;
  align-items: center;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--soft);
  background: rgba(255,255,255,0.06);
  font-size: 0.86rem;
}
.status span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 18px rgba(255,122,26,0.9);
}
.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--orange-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  font-size: 0.78rem;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 14px;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.86;
  letter-spacing: -0.09em;
}
h1 span { color: var(--orange); }
.tagline {
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: -0.04em;
  font-weight: 750;
}
.intro {
  max-width: 660px;
  color: var(--soft);
  font-size: 1.08rem;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
}
.button.primary {
  background: var(--orange);
  color: #150900;
  box-shadow: 0 16px 40px rgba(255,122,26,0.28);
}
.button.secondary {
  border: 1px solid var(--line);
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.signal-card,
.connect-card,
.project-card,
.map-shell {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.05));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.signal-card { overflow: hidden; }
.terminal-bar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.22);
}
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.terminal-bar span:first-child { background: var(--orange); }
.terminal-body { padding: 24px; font-family: "JetBrains Mono", ui-monospace, monospace; }
.terminal-body p { color: var(--muted); font-size: 0.9rem; }
.prompt { color: var(--orange-2); }
dl { margin: 20px 0 0; display: grid; gap: 14px; }
dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(255,255,255,0.15);
}
dt { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; }
dd { margin: 0; color: var(--white); text-align: right; }

.story-section { background: rgba(0,0,0,0.14); }
h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
  margin-bottom: 26px;
}
.story-copy {
  color: var(--soft);
  font-size: 1.11rem;
  line-height: 1.82;
}
.story-copy p:first-child {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.45;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}
.section-heading p { color: var(--muted); line-height: 1.65; margin-bottom: 0; }

.map-shell { padding: 24px; overflow: hidden; }
.map-year-row {
  position: relative;
  height: 30px;
  min-width: 1280px;
  margin: 0 48px;
  color: rgba(255,255,255,0.48);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
}
.map-year-row span {
  position: absolute;
  top: 0;
  translate: -50% 0;
  white-space: nowrap;
}
.rail-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 70px 48px 86px;
  scrollbar-color: var(--orange) rgba(255,255,255,0.08);
  scrollbar-width: thin;
  outline: none;
}
.rail-viewport:focus-visible { box-shadow: 0 0 0 3px rgba(255,122,26,0.45) inset; border-radius: 18px; }
.rail {
  position: relative;
  min-width: 1280px;
  height: 132px;
}
.rail::before,
.rail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  border-radius: 999px;
}
.rail::before {
  top: 64px;
  height: 16px;
  background: rgba(255,255,255,0.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.rail::after {
  top: 69px;
  height: 6px;
  background: linear-gradient(90deg, var(--origin), var(--craft), var(--home), var(--work), var(--connection), var(--loss), var(--rebuild), var(--project), var(--identity));
  box-shadow: 0 0 24px rgba(255,122,26,0.22);
}
.station {
  position: absolute;
  top: 72px;
  translate: -50% -50%;
  z-index: 3;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.station-dot {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--station-color, var(--orange));
  border: 4px solid var(--navy);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.52), 0 0 22px rgba(255,122,26,0.35);
}
.station:hover .station-dot,
.station:focus-visible .station-dot {
  transform: scale(1.18);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.75), 0 0 28px rgba(255,122,26,0.65);
}
.station:focus-visible { outline: none; }
.station-label {
  position: absolute;
  width: 168px;
  left: 50%;
  translate: -50% 0;
  color: var(--soft);
  font-size: 0.74rem;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}
.station-label strong {
  display: block;
  color: var(--white);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  margin-bottom: 3px;
}
.station.above .station-label { bottom: 36px; }
.station.below .station-label { top: 36px; }
.station.origin { --station-color: var(--origin); }
.station.craft { --station-color: var(--craft); }
.station.home { --station-color: var(--home); }
.station.work { --station-color: var(--work); }
.station.connection { --station-color: var(--connection); }
.station.loss { --station-color: var(--loss); }
.station.rebuild { --station-color: var(--rebuild); }
.station.project { --station-color: var(--project); }
.station.identity { --station-color: var(--identity); }
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 16px 4px 0;
  border-top: 1px solid var(--line);
}
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: currentColor; }
.legend-dot.origin { background: var(--origin); }
.legend-dot.craft { background: var(--craft); }
.legend-dot.home { background: var(--home); }
.legend-dot.work { background: var(--work); }
.legend-dot.connection { background: var(--connection); }
.legend-dot.loss { background: var(--loss); }
.legend-dot.rebuild { background: var(--rebuild); }
.legend-dot.project { background: var(--project); }
.legend-dot.identity { background: var(--identity); }

.timeline-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.filter-button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.055);
  color: var(--soft);
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
  cursor: pointer;
}
.filter-button:hover,
.filter-button.active {
  background: var(--orange);
  color: #160a00;
  border-color: transparent;
}
.timeline-list { display: grid; gap: 13px; }
.timeline-item {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.065);
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.timeline-item.is-highlighted {
  border-color: rgba(255,122,26,0.86);
  background: rgba(255,122,26,0.12);
  transform: translateY(-2px);
}
.timeline-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  align-items: center;
  text-align: left;
  background: transparent;
  color: inherit;
  border: 0;
  padding: 18px;
  cursor: pointer;
}
.timeline-toggle:hover { background: rgba(255,255,255,0.045); }
.timeline-year {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--orange-2);
  font-weight: 700;
}
.timeline-main { display: grid; gap: 4px; }
.timeline-title { font-weight: 800; letter-spacing: -0.02em; }
.timeline-summary { color: var(--muted); line-height: 1.45; }
.timeline-category {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.timeline-detail {
  border-top: 1px solid var(--line);
  padding: 0 18px 18px 132px;
  color: var(--soft);
  line-height: 1.72;
}
.timeline-detail p { margin: 14px 0 0; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.project-card { padding: 22px; min-height: 220px; }
.project-status {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--orange-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 24px;
}
.project-card h3 { font-size: 1.25rem; letter-spacing: -0.04em; }
.project-card p { color: var(--muted); line-height: 1.62; }

.connect-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
}
.connect-card p { color: var(--soft); line-height: 1.65; max-width: 680px; }
.connect-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.connect-links a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px 0 38px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

@media (max-width: 920px) {
  .hero-grid,
  .section-heading,
  .connect-card { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-wrap { align-items: flex-start; flex-direction: column; padding: 16px 0; }
  .hero { padding-top: 70px; }
}

@media (max-width: 640px) {
  .wrap, .narrow { width: min(100% - 28px, 1120px); }
  .section { padding: 64px 0; }
  h1 { font-size: clamp(3.4rem, 20vw, 5rem); }
  .timeline-toggle { grid-template-columns: 1fr; gap: 10px; }
  .timeline-detail { padding: 0 18px 18px; }
  .project-grid { grid-template-columns: 1fr; }
  .rail-viewport { padding-left: 24px; padding-right: 24px; }
  .map-year-row { margin: 0 24px; }
}
.project-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.project-link:hover {
  text-decoration: none;
}

.project-card {
  transition: transform 0.15s ease;
}

.project-card:hover {
  transform: translateY(-3px);
}
