:root {
  --bg: #0b0b0c;
  --card: #161618;
  --card-inset: #1e1e21;
  --ink: #f0f0f2;
  --muted: #85858c;
  --line: #26262a;
  --green: #96d600;
  --blue: #6ea8ff;
  --radius: 18px;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Archivo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* runway takeoff loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  gap: 14px;
  background: var(--bg);
  overflow: hidden;
  transition: opacity 400ms ease, visibility 400ms;
}

.loader.done { opacity: 0; visibility: hidden; }

.tarmac {
  position: relative;
  width: min(380px, 78vw);
  height: 46px;
}

/* runway centerline */
.tarmac::before {
  content: "";
  position: absolute;
  inset: auto 0 8px;
  border-bottom: 2px dashed var(--line);
}

.jet {
  position: absolute;
  left: 0;
  bottom: 12px;
  color: var(--ink);
  /* svg points north: 90deg for the ground roll, then the nose eases up */
  animation: takeoff 1.5s cubic-bezier(0.5, 0, 0.85, 0.6) forwards;
}

@keyframes takeoff {
  0%   { transform: translate(0, 0) rotate(90deg); }
  60%  { transform: translate(230px, 0) rotate(90deg); }
  100% { transform: translate(430px, -64px) rotate(66deg); }
}

.loader-label {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
}

/* floating nav dock */
.dock {
  position: fixed;
  top: 20px;
  left: 50%;
  translate: -50% 0;
  z-index: 10;
  display: flex;
  gap: 4px;
  padding: 6px;
  background: var(--card);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 40%);
}

.dock a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color 150ms;
  white-space: nowrap;
}

.dock a:hover { color: var(--ink); }

.dock a.active {
  background: var(--ink);
  color: var(--card);
}

/* hanging signboard cards */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.sign {
  position: relative;
  scroll-margin-top: 84px;   /* keep headings clear of the fixed dock */
  margin-top: 96px;
  padding: 40px 36px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgb(0 0 0 / 30%);
}

/* steel hanger poles */
.sign::before,
.sign::after {
  content: "";
  position: absolute;
  top: -76px;
  width: 7px;
  height: 80px;
  background: linear-gradient(90deg, #55555c, #8a8a92 45%, #46464c);
  border-radius: 2px;
  z-index: -1;
}

.sign::before { left: 22%; }
.sign::after { right: 22%; }

.sign .lead {
  margin: 0 0 28px;
  padding: 16px 20px;
  background: var(--card-inset);
  border-radius: 12px;
  color: var(--muted);
  font-size: 15px;
}

.sign .lead strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  margin-bottom: 2px;
}

/* hero split-flap board */
.hero { padding: 64px 36px 32px; }

.hero-eyebrow {
  margin: 0 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.board {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 28px;
}

.board span {
  display: grid;
  place-items: center;
  position: relative;
  width: clamp(52px, 14vw, 96px);
  aspect-ratio: 4 / 5;
  background: var(--card-inset);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: clamp(44px, 12vw, 84px);
  font-weight: 800;
  overflow: hidden;
}

/* the flap seam */
.board span::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: rgb(0 0 0 / 55%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 6%);
}

.hero-sub {
  margin: 0 auto 8px;
  max-width: 480px;
  text-align: center;
  color: var(--muted);
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 40px;
}

.btn {
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: var(--card);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn { transition: opacity 200ms, translate 200ms ease; }
.btn:hover { opacity: 0.85; translate: 0 -1.5px; }
.btn:active { translate: 0 0; }

.btn-ghost {
  background: var(--card-inset);
  color: var(--ink);
  border: 1px solid var(--line);
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.status-row span:last-child { text-align: right; }

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% { opacity: 0.4; }
}

/* departures board */
.departures {
  background: #101012;
}

.departures .lead { background: #1b1b1e; }

.fboard { font-size: 13px; }

/* one flight row: flight no / destination / gate / status / caret */
.frow {
  display: grid;
  grid-template-columns: 64px 1fr 44px 104px 14px;
  gap: 10px;
  align-items: baseline;
  padding: 13px 8px;
  border-bottom: 1px solid #1d1d20;
  letter-spacing: 0.04em;
  text-align: left;
}

.fhead {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
}

.frow a { text-decoration: none; }
.frow a:hover { text-decoration: underline; }

.frow .status { font-weight: 700; }
.st-green { color: var(--green); animation: pulse 1.4s infinite; }
.st-blue { color: var(--blue); }
.st-muted { color: var(--muted); animation: none; }

/* expandable flights */
details.flight summary {
  list-style: none;
  cursor: pointer;
}

details.flight summary::-webkit-details-marker { display: none; }

.frow { transition: background 150ms; }
details.flight summary:hover .frow { background: #141416; }

/* detail block unfolds gently when a flight opens */
details.flight[open] .fdetail { animation: unfold 260ms ease; }

@keyframes unfold {
  from { opacity: 0; translate: 0 -6px; }
}

.caret { color: var(--muted); transition: rotate 200ms; }
details.flight[open] .caret { rotate: 90deg; }

.fdetail {
  padding: 6px 8px 20px;
  border-bottom: 1px solid #1d1d20;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 14.5px;
  letter-spacing: 0;
}

.fdetail dt {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.fdetail dd { margin: 4px 0 0; }
.fdetail dl { margin: 0; }

.fdetail .stack {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.fdetail .repo {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
}

.fdetail .repo:hover { text-decoration: underline; }

/* skills modules */
.modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.module {
  padding: 16px 20px;
  background: var(--card-inset);
  border-radius: 12px;
  transition: background 200ms;
}

.module:hover { background: #232327; }

.module h3 { display: flex; align-items: center; gap: 7px; }
.module .mi { opacity: 0.85; }

.module h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.module ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.module li {
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

.module li:first-child { border-top: 0; }

/* rows (about / credentials) */
.rows { border-top: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: 110px 1.6fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.row .muted { font-size: 13.5px; }

.section-label {
  margin: 32px 0 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.row a {
  text-decoration: none;
  font-weight: 500;
}

.row a:hover { text-decoration: underline; }

#about a { color: var(--blue); }

/* contact form */
form { display: grid; gap: 12px; }

input, textarea, select {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-inset);
  color: var(--ink);
  font: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--ink);
  outline-offset: -1px;
}

textarea { min-height: 130px; resize: vertical; }

form button {
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: var(--card);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

form button { transition: opacity 200ms, translate 200ms ease; }
form button:hover { opacity: 0.85; translate: 0 -1.5px; }

.clearance {
  padding: 18px 20px;
  border: 1px solid var(--green);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.7;
}

.clearance strong { color: var(--green); letter-spacing: 0.08em; }
.clearance a { color: var(--blue); }

/* signs drift up as they enter the viewport (class added by script.js) */
.reveal { opacity: 0; translate: 0 16px; transition: opacity 600ms ease, translate 600ms ease; }
.reveal.in { opacity: 1; translate: 0 0; }

.jet-tiny { display: inline-block; rotate: 45deg; }

footer {
  padding: 40px 0 80px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .dock { max-width: calc(100vw - 16px); overflow-x: auto; }
  .dock a { padding: 8px 10px; font-size: 13px; }
  .sign { padding: 28px 20px; }
  .hero { padding-top: 44px; }
  .gate-col { display: none; }
  .frow { grid-template-columns: 56px 1fr 88px 14px; }
  .row { grid-template-columns: 1fr auto; }
  .row .role { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot, .st-green { animation: none; }
  .loader { display: none; }
  .jet, details.flight[open] .fdetail { animation: none; }
  .reveal { opacity: 1; translate: 0 0; transition: none; }
}
