@font-face { font-family: "Anton"; src: url("fonts/Anton-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 300; src: url("fonts/BarlowCondensed-Light.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; src: url("fonts/BarlowCondensed-Medium.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; src: url("fonts/BarlowCondensed-SemiBold.ttf") format("truetype"); font-display: swap; }

:root {
  --night: #141B30;
  --deep: #0F1526;
  --bezel: #262E49;
  --line: #313A5A;
  --phosphor: #EEF1F6;
  --text: #CDD2E0;
  --fog: #8F97B2;
  --accent: #EEF1F6;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Barlow Condensed", "Arial Narrow", sans-serif;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 500 1.25rem/1.5 var(--body);
  font-kerning: normal;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--phosphor); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
code { font: inherit; color: var(--phosphor); background: var(--bezel); padding: 0 0.3em; border-radius: 3px; }
p { margin: 0 0 1em; max-width: 34em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--phosphor); color: var(--night); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; }
.mark {
  font: 400 clamp(4.4rem, 19.5vw, 17.5rem)/0.8 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--phosphor);
  margin: 0 0 clamp(1.5rem, 4vw, 3rem) -0.04em;
  display: flex; flex-wrap: wrap;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 688px; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.hero-copy { padding-top: 0.5rem; }
.lede { font: 300 clamp(1.9rem, 3.4vw, 2.75rem)/1.12 var(--body); color: var(--phosphor); margin-bottom: 0.8em; max-width: 13em; }
.hero-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin-top: 2rem; font-weight: 600; letter-spacing: 0.02em; }

.device-wrap { width: 100%; }
.device {
  position: relative;
  padding: 24px 24px 24px 24px;
  border-radius: 20px;
  background: linear-gradient(160deg, #343a4a 0%, #1d212c 55%, #171a22 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -2px 0 rgba(0,0,0,0.4), 0 30px 60px -20px rgba(0,0,0,0.65);
}
.screen { position: relative; aspect-ratio: 4 / 3; width: 100%; max-width: 640px; background: #000; overflow: hidden; border-radius: 2px; box-shadow: 0 0 0 2px #0a0c10; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 700ms ease; }
.slide.is-on { opacity: 1; }
.slide img, .x2 { width: 100%; image-rendering: pixelated; }
.device-led { position: absolute; right: 10px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: #5fe39b; box-shadow: 0 0 6px #5fe39b; }
.device-caption { margin: 1rem 0 0.1rem; font-weight: 600; color: var(--phosphor); min-height: 1.5em; }
.device-note { font-size: 1rem; color: var(--fog); margin: 0; }

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); }
.section-road { background: var(--deep); }
.sec-h { font: 400 clamp(2.4rem, 5vw, 3.6rem)/1 var(--display); text-transform: uppercase; color: var(--phosphor); margin: 0 0 0.4em; }
.sec-intro { color: var(--fog); margin-bottom: 2.5rem; }

/* ---------- project rows ---------- */
.proj { padding: 1.5rem 0 1rem; }
.proj + .proj { border-top: 1px dashed var(--line); margin-top: 3rem; padding-top: 3rem; }
.proj-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; }
.proj-name { font: 400 clamp(3.4rem, 10vw, 8rem)/0.86 var(--display); text-transform: uppercase; margin: 0; }
.proj-name a, .p-name { color: var(--accent); text-decoration: none; }
.proj-name a:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 0.08em; }
.proj-meta { display: flex; gap: 1.2rem; margin: 0; color: var(--fog); font-size: 1.05rem; }
.status { font-weight: 600; color: var(--phosphor); }
.status::before { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.45em; background: var(--accent); vertical-align: 0.12em; }
.status-planned::before { background: transparent; box-shadow: inset 0 0 0 2px var(--fog); }
.proj-tagline { font: 300 clamp(1.5rem, 2.6vw, 2.1rem)/1.2 var(--body); color: var(--phosphor); margin: 0.8rem 0 2rem; max-width: 26em; }

.strip { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.strip img { width: 100%; box-shadow: 0 0 0 1px #000, 0 12px 24px -12px rgba(0,0,0,0.7); }

.proj-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem 4rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; margin-top: 1.75rem; }
.btn { display: inline-block; padding: 0.55rem 1.15rem; background: var(--accent); color: var(--night); font-weight: 600; text-decoration: none; border-radius: 3px; }
.btn:hover { filter: brightness(1.08); }
.btn-quiet { background: none; color: var(--phosphor); padding: 0.55rem 0; text-decoration: underline; text-underline-offset: 0.2em; }

.ticks, .plain { list-style: none; padding: 0; margin: 0; }
.ticks li, .plain li { padding: 0.45rem 0 0.45rem 1.3rem; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 6px; height: 6px; background: var(--accent); }
.plain li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 6px; height: 6px; box-shadow: inset 0 0 0 1.5px var(--fog); }

/* ---------- roadmap ---------- */
.road { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.road-col h3 { margin: 0 0 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--phosphor); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.road-when { font: 400 2rem/1 var(--display); text-transform: uppercase; color: var(--phosphor); }
.road-note { font-size: 1rem; font-weight: 500; color: var(--fog); }
.road-list { list-style: none; padding: 0; margin: 0; }
.road-item { padding: 1rem 0 1.1rem; border-bottom: 1px solid var(--line); }
.road-item h4 { font: 600 1.45rem/1.15 var(--body); color: var(--phosphor); margin: 0.35rem 0 0.3rem; }
.road-item p { margin: 0; color: var(--text); font-size: 1.15rem; }
.road-tag { font-size: 0.95rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.road-tag:hover { text-decoration: underline; }
.road-tag-new { color: var(--fog); }
.road-empty { color: var(--fog); padding: 1rem 0; }

/* ---------- hardware ---------- */
.hw { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; }
.hw .sec-h { grid-column: 1 / -1; }
.spec { margin: 0; }
.spec div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--fog); }
.spec dd { margin: 0; color: var(--phosphor); }
.add h3 { font: 600 1.6rem/1.2 var(--body); color: var(--phosphor); margin: 0.3rem 0 0.8rem; }
.add ol { margin: 0; padding-left: 1.3rem; }
.add li { padding: 0.3rem 0 0.3rem 0.3rem; }
.add li::marker { color: var(--fog); font-weight: 600; }

/* ---------- project page ---------- */
.p-hero { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem); }
.crumb { font-weight: 600; margin-bottom: 1.5rem; }
.p-name { font: 400 clamp(4rem, 14vw, 12rem)/0.82 var(--display); text-transform: uppercase; margin: 0; }
.p-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem 4rem; }
.p-copy p:first-child { font: 300 1.65rem/1.3 var(--body); color: var(--phosphor); }
.p-h { font: 600 1.4rem/1.2 var(--body); color: var(--phosphor); margin: 0 0 0.4rem; }
.p-h:not(:first-child) { margin-top: 2.2rem; }
.section-shots { background: var(--deep); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 2.5rem 2rem; }
.shot { margin: 0; }
.shot img { box-shadow: 0 0 0 1px #000, 0 20px 40px -18px rgba(0,0,0,0.8); max-width: 640px; }
.shot figcaption { margin-top: 0.7rem; color: var(--text); max-width: 34em; }
.plans { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 2rem; }
.plans li { border-top: 2px solid var(--phosphor); padding-top: 0.8rem; }
.plans h4 { font: 600 1.45rem/1.15 var(--body); color: var(--phosphor); margin: 0.2rem 0 0.3rem; }
.plans p { margin: 0; }
.plan-when { color: var(--accent); font-weight: 600; font-size: 1rem; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 3rem 0 4rem; color: var(--fog); font-size: 1.05rem; }
.foot-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: baseline; }
.foot-mark { font: 400 1.8rem/1 var(--display); text-transform: uppercase; margin: 0; }
.foot-mark a { text-decoration: none; }
.foot-small { font-size: 0.95rem; }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .hero-grid, .proj-body, .hw, .p-grid { grid-template-columns: 1fr; }
  .road { grid-template-columns: 1fr; gap: 3rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .device-wrap { width: 100%; max-width: 688px; }
}
@media (max-width: 640px) {
  body { font-size: 1.15rem; }
  .device { padding: 14px; border-radius: 14px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec div { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
}
