/* Domain Developers — departures-board theme
   Amber dot-matrix signage on warm black, railway wayfinding throughout. */

@font-face {
  font-family: "Doto";
  src: url("fonts/doto.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800; font-display: swap;
}

:root {
  --bg:        #0e0d0b;
  --surface:   #16140f;
  --surface-2: #1c1913;
  --board:     #060504;
  --line:      #2a261e;
  --line-soft: #1f1c16;
  --text:      #f3eee3;
  --text-dim:  #a8a08f;
  --text-mute: #736b5c;
  --amber:     #ffb000;
  --amber-hi:  #ffc94d;
  --amber-glow: rgba(255, 176, 0, .45);
  --amber-wash: rgba(255, 176, 0, .08);
  --up:        #4fd66a;
  --slow:      #ffb000;
  --down:      #ff5a4e;
  --radius:    10px;
  --wrap:      1200px;
  --display:   "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --dot:       "Doto", "JetBrains Mono", ui-monospace, monospace;
  --mono:      "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--display);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.amber { color: var(--amber); }

.ic { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor;
      stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }
.ic-lg { width: 30px; height: 30px; stroke-width: 1.6; }
.ic-xl { width: 64px; height: 64px; stroke-width: 1.2; }

.skip {
  position: absolute; left: -9999px; z-index: 100;
  background: var(--amber); color: #120c00; padding: 10px 16px; font-weight: 700;
}
.skip:focus { left: 0; top: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

/* ---------- Status dots ---------- */

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-up      { background: var(--up);   box-shadow: 0 0 10px var(--up); }
.dot-slow    { background: var(--slow); box-shadow: 0 0 10px var(--slow); }
.dot-down    { background: var(--down); box-shadow: 0 0 10px var(--down); }
.dot-unknown { background: var(--text-mute); }
.dot-up { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- Wayfinding signs ---------- */

.sign {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 22px;
  font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim);
}
.sign-center { justify-content: center; }
.sign-num {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--amber); color: #120c00;
  font: 900 17px/1 var(--dot);
}

.section-title {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 32px;
  font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; letter-spacing: -.02em;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-note { max-width: 60ch; margin: -14px 0 28px; color: var(--text-dim); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 13, 11, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-tile { display: inline-flex; gap: 2px; }
.brand-tile span {
  position: relative; display: grid; place-items: center;
  width: 20px; height: 26px; border-radius: 3px;
  background: var(--board); border: 1px solid var(--line);
  color: var(--amber); font: 900 17px/1 var(--dot);
  text-shadow: 0 0 8px var(--amber-glow);
}
.brand-tile span::after {   /* split-flap seam */
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: rgba(0, 0, 0, .8);
}
.brand-text { font-size: 16px; color: var(--text-dim); letter-spacing: -.01em; white-space: nowrap; }
.brand-text strong { color: var(--text); font-weight: 700; }

.site-header nav { display: flex; gap: 22px; font-size: 14px; }
.site-header nav a { color: var(--text-dim); text-decoration: none; transition: color .15s; }
.site-header nav a:hover { color: var(--amber); }

.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  font: 500 12px/1 var(--mono); color: var(--text-dim); white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(56px, 9vw, 108px) 0 clamp(40px, 6vw, 64px);
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(255, 176, 0, .10), transparent 70%),
    radial-gradient(600px 400px at 0% 0%, rgba(255, 176, 0, .05), transparent 70%);
}
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 6.4vw, 76px); line-height: 1.02;
  letter-spacing: -.035em; font-weight: 700;
}
.lede { max-width: 64ch; margin: 0 0 44px; color: var(--text-dim); font-size: clamp(16px, 1.6vw, 19px); }

/* ---------- Departures board ---------- */

.board {
  position: relative; overflow: hidden;
  background:
    radial-gradient(rgba(255, 176, 0, .07) 1px, transparent 1.2px) 0 0 / 6px 6px,
    var(--board);
  border: 1px solid #2b2519;
  border-radius: 14px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), inset 0 0 0 6px #0b0a08, inset 0 0 0 7px #231f16;
  padding: 26px 30px 0;
  color: var(--amber);
  font-family: var(--dot); font-weight: 800;
  text-shadow: 0 0 10px var(--amber-glow);
}

.board-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; margin-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 176, 0, .25);
}
.board-title { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(22px, 3vw, 34px); letter-spacing: .04em; }
.board-title .ic { width: 1em; height: 1em; filter: drop-shadow(0 0 6px var(--amber-glow)); }
.board-clock { font-size: clamp(22px, 3vw, 34px); letter-spacing: .08em; }

.board-cols, .board-row {
  display: grid; align-items: center; gap: 18px;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) 56px 124px;
}
.board-cols {
  font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 176, 0, .55); text-shadow: none; padding: 6px 0 10px;
}

.board-rows { list-style: none; margin: 0; padding: 0; min-height: calc(7 * 40px); }
.board-row {
  height: 40px; font-size: clamp(15px, 1.6vw, 21px); letter-spacing: .03em;
  border-bottom: 1px solid rgba(255, 176, 0, .07);
}
.board-row > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.board-row.is-hidden { display: none; }
.board-row .c-dest { color: var(--amber-hi); opacity: .8; }
.c-plat { text-align: center; }
.c-exp  { text-align: right; }
.board-row.s-up   .c-exp { color: var(--amber); }
.board-row.s-slow .c-exp { color: #fff1c9; }
.board-row.s-down .c-exp { color: var(--down); text-shadow: 0 0 10px rgba(255, 90, 78, .55); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }

.board-row.flip { animation: flip .5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes flip {
  from { transform: perspective(400px) rotateX(-80deg); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.board-ticker {
  margin: 14px -30px 0; padding: 11px 0;
  background: rgba(255, 176, 0, .06);
  border-top: 1px solid rgba(255, 176, 0, .15);
  overflow: hidden; white-space: nowrap;
  font-size: 15px; letter-spacing: .06em;
}
.ticker-track { display: inline-flex; animation: ticker 90s linear infinite; }
.ticker-track span { padding-right: 1em; }
@keyframes ticker { to { transform: translateX(-50%); } }

.board-note {
  margin: 16px 0 0; font: 400 13px/1.6 var(--mono); color: var(--text-mute);
}
.board-note .ic { margin-right: 4px; }
.board-note em { color: var(--amber); font-style: normal; }

/* ---------- Screenshot reel ---------- */

.reel {
  padding: 28px 0 8px; overflow: hidden;
  display: grid; gap: 18px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.reel-row { overflow: hidden; }
.reel-track { display: flex; gap: 18px; width: max-content; animation: reel 110s linear infinite; }
.reel-rev .reel-track { animation-direction: reverse; animation-duration: 130s; }
.reel:hover .reel-track { animation-play-state: paused; }
@keyframes reel { to { transform: translateX(-50%); } }

.reel-shot {
  position: relative; flex: none; width: 300px;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .25s, border-color .25s;
}
.reel-shot img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; }
.reel-shot:hover { transform: translateY(-4px) rotate(-.6deg); border-color: var(--amber); }
.reel-cap {
  position: absolute; left: 8px; bottom: 8px;
  padding: 4px 8px; border-radius: 5px;
  background: rgba(6, 5, 4, .85); color: var(--amber);
  font: 500 11px/1 var(--mono);
}

/* ---------- How we work ---------- */

.how { padding: clamp(64px, 9vw, 110px) 0 clamp(48px, 7vw, 80px); }
.pillars { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pillar {
  padding: 28px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 3px solid var(--amber);
}
.pillar .ic-lg { color: var(--amber); margin-bottom: 18px; }
.pillar h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.01em; }
.pillar p { margin: 0; color: var(--text-dim); font-size: 15px; }
.pillar a { color: var(--amber); }

/* ---------- Stats band ---------- */

.stats-band {
  background: var(--board);
  border-block: 1px solid var(--line);
  padding: 36px 0;
}
.stats { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-n {
  font: 900 clamp(40px, 5vw, 60px)/1 var(--dot);
  color: var(--amber); text-shadow: 0 0 14px var(--amber-glow);
}
.stat-n small { font-size: .45em; margin-left: 4px; }
.stat-l { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); }

/* ---------- Work ---------- */

.work { padding: clamp(64px, 9vw, 110px) 0 clamp(40px, 6vw, 72px); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 8px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-dim);
  font: 500 14px/1 var(--display);
  transition: color .15s, border-color .15s, background .15s;
}
.filter:hover { color: var(--text); border-color: #4a4232; }
.filter.is-on { background: var(--amber); border-color: var(--amber); color: #120c00; }
.filter-n { font: 500 11px/1 var(--mono); opacity: .7; }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}
.card { display: flex; }
.card-link {
  display: flex; flex-direction: column; width: 100%;
  text-decoration: none; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 176, 0, .5);
  box-shadow: 0 20px 50px -20px rgba(255, 176, 0, .18);
}

.shot { position: relative; background: var(--board); border-bottom: 1px solid var(--line); }
.shot-bar {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 10px; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.shot-bar i { width: 8px; height: 8px; border-radius: 50%; background: #3a3428; }
.shot-bar span {
  margin-left: 8px; padding: 2px 10px; border-radius: 4px; flex: 1;
  background: var(--bg); color: var(--text-mute);
  font: 400 11px/1.6 var(--mono); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.shot img {
  width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: top;
  filter: saturate(.9); transition: filter .3s, transform .6s;
}
.card-link:hover .shot img { filter: saturate(1.05); }
.shot-empty { aspect-ratio: 8 / 5; display: grid; place-items: center; color: var(--amber); opacity: .6; }

.status {
  position: absolute; top: 44px; right: 10px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 10px; border-radius: 6px;
  background: rgba(6, 5, 4, .88); backdrop-filter: blur(4px);
  font: 800 13px/1 var(--dot); letter-spacing: .04em;
  border: 1px solid var(--line);
}
.status.s-up   { color: var(--amber); }
.status.s-slow { color: #fff1c9; }
.status.s-down { color: var(--down); border-color: rgba(255, 90, 78, .5); }

.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 18px; }
.card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.card-icon {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 9px;
  background: var(--amber-wash); color: var(--amber);
  border: 1px solid rgba(255, 176, 0, .2);
}
.card-icon .ic { width: 20px; height: 20px; }
.card-name { margin: 0 0 2px; font-size: 18px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.card-domain { margin: 0; font: 400 12.5px/1.4 var(--mono); color: var(--amber); word-break: break-all; }
.card-blurb { margin: 0 0 16px; font-size: 14.5px; color: var(--text-dim); flex: 1; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; }
.tags li {
  font: 400 11px/1 var(--mono); color: var(--text-mute);
  border: 1px solid var(--line); border-radius: 4px; padding: 5px 8px;
}

.card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px dashed var(--line);
}
.plat { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-mute); }
.card-go {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px;
  border: 1px solid var(--line); color: var(--text-dim);
  transition: background .2s, color .2s, border-color .2s;
}
.card-link:hover .card-go { background: var(--amber); border-color: var(--amber); color: #120c00; }

/* ---------- Pipeline ---------- */

.pipeline { padding: clamp(48px, 7vw, 90px) 0; }
.future {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.future li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 7px;
  background: var(--board); border: 1px solid var(--line-soft);
  font: 800 15px/1 var(--dot); color: rgba(255, 176, 0, .7);
}
.future-dest { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.future-st { color: var(--text-mute); font-size: 13px; }

/* ---------- Contact ---------- */

.contact {
  padding: clamp(64px, 9vw, 110px) 0;
  text-align: center;
  border-top: 1px solid var(--line-soft);
  background: radial-gradient(700px 320px at 50% 100%, rgba(255, 176, 0, .09), transparent 72%);
}
.contact h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; }
.contact p { margin: 0 auto; max-width: 50ch; color: var(--text-dim); }
.contact-actions { margin-top: 30px !important; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 9px;
  background: var(--amber); color: #120c00;
  font-weight: 700; font-size: 16px; text-decoration: none;
  box-shadow: 0 10px 30px -10px var(--amber-glow);
  transition: transform .15s, background .15s;
}
.btn:hover { background: var(--amber-hi); transform: translateY(-2px); }

/* ---------- Footer ---------- */

.rail {   /* two rails with sleepers */
  height: 14px;
  background:
    linear-gradient(var(--line), var(--line)) 0 2px / 100% 2px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 10px / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--line-soft) 0 6px, transparent 6px 22px);
}
.site-footer { font-size: 13px; color: var(--text-mute); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 26px; }
.footer-inner p { margin: 0; }
.site-footer a { color: var(--text-dim); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .site-header nav { display: none; }
}
@media (max-width: 640px) {
  .header-inner { gap: 12px; }
  .brand-text { font-size: 14px; }
  .board { padding: 18px 16px 0; }
  .board-ticker { margin-inline: -16px; }
  .board-cols, .board-row { grid-template-columns: minmax(0, 1fr) 36px 96px; gap: 10px; }
  .board-cols span:nth-child(2), .board-row .c-dest { display: none; }
  .grid { grid-template-columns: 1fr; }
  .reel-shot { width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reel-row { overflow-x: auto; }
}

.card-also { margin: 2px 0 0; font: 400 11px/1.4 var(--mono); color: var(--text-mute); word-break: break-all; }
