:root {
  color-scheme: dark;
  --ink: #07110f;
  --panel: #0b1714;
  --panel-2: #0e1d19;
  --line: rgba(213, 255, 232, 0.13);
  --line-strong: rgba(213, 255, 232, 0.24);
  --text: #edf8f2;
  --muted: #9bb2a8;
  --green: #5df2aa;
  --green-soft: #b5fbd7;
  --amber: #f4c66c;
  --blue: #78b7ff;
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(93, 242, 170, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 242, 170, 0.025) 1px, transparent 1px),
    var(--ink);
  background-size: 42px 42px;
  color: var(--text);
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 17, 15, 0) 62%, #07110f 96%);
  content: "";
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.page-glow {
  position: absolute;
  z-index: -1;
  top: -280px;
  left: 46%;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 225, 154, 0.12), transparent 67%);
  filter: blur(12px);
  pointer-events: none;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 13px; }

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  align-items: end;
  gap: 3px;
  width: 30px;
  height: 30px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(93, 242, 170, 0.06);
}

.brand-mark i { display: block; border-radius: 2px; background: var(--green); }
.brand-mark i:nth-child(1) { height: 8px; opacity: 0.55; }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3) { height: 12px; opacity: 0.75; }

.brand strong,
.brand small { display: block; }
.brand strong { font-size: 0.92rem; letter-spacing: 0.04em; }
.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.63rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

nav { display: flex; align-items: center; gap: 28px; }
nav a { color: var(--muted); font-size: 0.8rem; font-weight: 650; letter-spacing: 0.04em; }
nav a:hover { color: var(--green-soft); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.76fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
  min-height: 660px;
  padding: 84px 0 92px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 23px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 760;
  letter-spacing: -0.064em;
  line-height: 0.96;
}

h1 em { color: var(--green-soft); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

.hero-lede {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.75;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { border-color: var(--green); background: var(--green); color: #04100c; }
.button-primary:hover { background: #7ff6bc; }
.button-quiet { color: var(--green-soft); }
.button-quiet:hover { border-color: rgba(181, 251, 215, 0.5); background: rgba(181, 251, 215, 0.05); }

.route-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15, 31, 26, 0.96), rgba(8, 20, 17, 0.96));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.live-label { color: var(--green); }
.live-label i,
.status i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
}

.route-list { position: relative; z-index: 2; padding: 10px; }

.route-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: border-color 160ms ease, background 160ms ease;
}

.route-row + .route-row { border-top-color: var(--line); border-radius: 0; }
.route-row:hover { border-color: var(--line-strong); border-radius: 12px; background: rgba(181, 251, 215, 0.04); }
.route-home { background: rgba(93, 242, 170, 0.055); }
.route-index { color: #557068; font-family: ui-monospace, monospace; font-size: 0.66rem; }
.route-name strong { display: block; color: var(--green-soft); font-family: ui-monospace, monospace; font-size: 0.86rem; }
.route-name small { display: block; margin-top: 6px; color: var(--muted); font-size: 0.72rem; }
.route-state,
.lock {
  padding: 5px 7px;
  border: 1px solid rgba(93, 242, 170, 0.18);
  border-radius: 5px;
  color: var(--green);
  font-family: ui-monospace, monospace;
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.route-arrow { color: var(--green); }
.lock { border-color: rgba(244, 198, 108, 0.2); color: var(--amber); }

.panel-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
}
.panel-grid span { height: 3px; border-radius: 2px; background: rgba(93, 242, 170, 0.12); }
.panel-grid span:nth-child(2), .panel-grid span:nth-child(5) { background: rgba(93, 242, 170, 0.45); }

.projects-section { padding: 96px 0 110px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; gap: 48px; align-items: end; margin-bottom: 42px; }
.section-kicker { margin-bottom: 14px; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -0.045em; line-height: 1.05; }
.section-heading > p { max-width: 420px; margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-card { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); }
.project-visual { position: relative; height: 258px; overflow: hidden; border-bottom: 1px solid var(--line); }

.airport-visual {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(93, 242, 170, 0.12), transparent 48%),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(93, 242, 170, 0.045) 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(93, 242, 170, 0.045) 24px),
    #071410;
}

.runway {
  position: relative;
  width: 100px;
  height: 210px;
  border: 1px solid rgba(181, 251, 215, 0.3);
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  transform: perspective(340px) rotateX(34deg);
  box-shadow: 0 0 55px rgba(93, 242, 170, 0.07);
}
.centerline { position: absolute; top: 22px; bottom: 22px; left: 49px; border-left: 2px dashed rgba(237, 248, 242, 0.55); }
.threshold { position: absolute; left: 12px; right: 12px; height: 8px; border-block: 2px solid rgba(237,248,242,.7); }
.threshold-top { top: 13px; }
.threshold-bottom { bottom: 13px; }
.runway i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.l1,.l3,.l5 { left: -4px; } .l2,.l4,.l6 { right: -4px; }
.l1,.l2 { top: 28px; } .l3,.l4 { top: 100px; } .l5,.l6 { bottom: 28px; }

.visual-label {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  display: flex;
  justify-content: space-between;
  color: rgba(181, 251, 215, 0.55);
  font-family: ui-monospace, monospace;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.fantasy-visual {
  background:
    linear-gradient(115deg, rgba(244, 198, 108, 0.08), transparent 48%),
    repeating-linear-gradient(90deg, transparent 0 54px, rgba(181, 251, 215, 0.05) 55px),
    #0b161d;
}
.field-lines { position: absolute; inset: 32px 24px; border: 1px solid rgba(120, 183, 255, 0.17); border-block-width: 2px; }
.field-lines::before,
.field-lines::after { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(120,183,255,.15); content: ""; }
.field-lines::before { left: 33%; } .field-lines::after { right: 33%; }
.play-route { position: absolute; }
.play-route i { position: absolute; z-index: 2; width: 12px; height: 12px; border: 3px solid var(--amber); border-radius: 50%; background: #0b161d; }
.play-route span { position: absolute; height: 2px; background: var(--amber); transform-origin: left center; box-shadow: 0 0 9px rgba(244,198,108,.25); }
.route-a { left: 23%; bottom: 56px; }
.route-a span { top: 5px; left: 7px; width: 140px; transform: rotate(-32deg); }
.route-a span::after { position: absolute; top: -29px; right: -2px; width: 55px; height: 30px; border-top: 2px solid var(--amber); border-right: 2px solid var(--amber); border-radius: 0 25px 0 0; content: ""; transform: rotate(28deg); }
.route-b { left: 29%; top: 64px; }
.route-b i { border-color: var(--blue); }
.route-b span { top: 5px; left: 7px; width: 95px; background: var(--blue); transform: rotate(24deg); }
.score-chip { position: absolute; top: 29px; right: 30px; min-width: 108px; padding: 12px; border: 1px solid rgba(244,198,108,.24); border-radius: 9px; background: rgba(7,17,15,.72); }
.score-chip small, .score-chip strong { display: block; }
.score-chip small { color: var(--muted); font-family: ui-monospace, monospace; font-size: .5rem; letter-spacing: .08em; }
.score-chip strong { margin-top: 4px; color: var(--amber); font-family: ui-monospace, monospace; font-size: 1.26rem; }
.fantasy-visual .visual-label { color: rgba(120,183,255,.58); }

.project-body { padding: 28px 28px 30px; }
.project-meta { display: flex; align-items: center; justify-content: space-between; }
.project-number { color: #557068; font-family: ui-monospace, monospace; font-size: 0.68rem; }
.status { font-family: ui-monospace, monospace; font-size: 0.55rem; font-weight: 750; letter-spacing: 0.1em; }
.status-public { color: var(--green); }
.status-private { color: var(--amber); }
.project-card h3 { margin: 26px 0 12px; font-size: clamp(1.45rem, 2.5vw, 2rem); letter-spacing: -0.035em; }
.project-card p { min-height: 76px; margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.project-link { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--green-soft); font-size: 0.78rem; font-weight: 750; letter-spacing: .04em; }
.project-link span { color: var(--green); font-size: 1rem; transition: transform 150ms ease; }
.project-link:hover span { transform: translate(3px, -2px); }
.fantasy-card .project-link { color: #e6edf8; }
.fantasy-card .project-link span { color: var(--amber); }

footer { display: flex; justify-content: space-between; gap: 24px; padding: 32px 0 42px; border-top: 1px solid var(--line); color: #6f887e; font-family: ui-monospace, monospace; font-size: .62rem; letter-spacing: .04em; }
.footer-dot { margin: 0 5px; color: var(--green); }

.status-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.status-card { width: min(560px, 100%); padding: 34px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.status-card .eyebrow { margin-bottom: 20px; }
.status-card h1 { font-size: clamp(2.2rem, 9vw, 4rem); }
.status-card > p { margin: 22px 0 0; color: var(--muted); line-height: 1.7; }
.status-card .button { margin-top: 28px; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 70px; }
  .route-panel { width: min(590px, 100%); }
  .section-heading { align-items: start; flex-direction: column; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card p { min-height: auto; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 30px, 1180px); }
  .site-header { min-height: 76px; }
  nav { gap: 15px; }
  nav a:first-child { display: none; }
  .hero { gap: 48px; padding: 56px 0 70px; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.25rem); }
  .button { flex: 1 1 180px; }
  .route-row { grid-template-columns: 26px minmax(0, 1fr) auto; padding-inline: 9px; }
  .route-state { display: none; }
  .projects-section { padding: 74px 0 84px; }
  .project-visual { height: 220px; }
  .project-body { padding-inline: 22px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
