/* ============================================================
   Shortbird — shortbird.dev
   Design philosophy: "Fast is the feature. Craft is the proof."
   Warm editorial-Swiss: paper background, ink type, one hot
   accent, monospace instrumentation. Restrained motion.
   ============================================================ */

:root {
  --paper: #faf6ef;
  --paper-raised: #fffdf8;
  --ink: #191512;
  --ink-soft: #5c5348;
  --line: #e3dccf;
  --accent: #e8490f;
  --accent-soft: #fbe3d8;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171310;
    --paper-raised: #201b17;
    --ink: #f2ece2;
    --ink-soft: #a99e90;
    --line: #322b24;
    --accent: #ff5a1f;
    --accent-soft: #3a2018;
  }
}

:root[data-theme="dark"] {
  --paper: #171310;
  --paper-raised: #201b17;
  --ink: #f2ece2;
  --ink-soft: #a99e90;
  --line: #322b24;
  --accent: #ff5a1f;
  --accent-soft: #3a2018;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; /* don't inflate text in iOS landscape */
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a, button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; /* no 300ms double-tap-zoom delay */
}

::selection { background: var(--accent); color: var(--paper); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.accent { color: var(--accent); }

.mono-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
}

.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 34em;
}
.lede strong { color: var(--ink); font-weight: 600; }

/* ---------- nav ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.navbar.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(25, 21, 18, 0.35);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.wordmark em { font-style: normal; color: var(--accent); }

.mark {
  width: 26px;
  height: 26px;
  fill: var(--accent);
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: visible;
}
.wordmark:hover .mark { transform: translateX(4px) translateY(-3px) rotate(6deg); }


.nav nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.8rem);
}
.nav nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav nav a:hover { color: var(--ink); }

.nav-cta {
  color: var(--ink) !important;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s !important;
}
.nav-cta:hover { background: var(--ink); color: var(--paper) !important; }

@media (max-width: 640px) {
  /* calm header: just the wordmark and the theme toggle */
  .nav { padding: 0.85rem var(--pad); }
  .nav nav a { display: none; }
  .theme-toggle { width: 40px; height: 40px; }
  /* desktop line-breaks off: let headlines flow naturally */
  h1 br, h2 br { display: none; }
  /* thumb-friendly full-width CTAs */
  .contact .btn-big { display: block; text-align: center; }
  .hero-actions .btn { flex: 1; text-align: center; }
  /* stack the timeline header labels */
  .jt-head { flex-direction: column; align-items: flex-start; gap: 0.4rem; margin-bottom: 1.8rem; }
}

/* ---------- theme toggle ---------- */

.theme-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}
.theme-toggle:hover { border-color: var(--ink); color: var(--ink); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Show the icon of the mode you'd switch TO */
.icon-sun, .icon-moon { display: none; }
html.mode-dark .icon-sun { display: block; }
html.mode-light .icon-moon { display: block; }

/* ---------- hero ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6.5rem) var(--pad) clamp(3rem, 7vh, 5.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--ink); }

.btn-ghost {
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-big {
  font-family: var(--mono);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  padding: 1.1rem 2.2rem;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
}

/* ---------- ship log ---------- */

.shiplog {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.5rem 1.1rem;
  box-shadow: 0 1px 2px rgba(25, 21, 18, 0.04), 0 12px 40px -18px rgba(25, 21, 18, 0.18);
}

.shiplog-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.shiplog-note { margin-left: auto; opacity: 0.75; }

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.shiplog-list {
  list-style: none;
}
.shiplog-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.shiplog-list li:last-child { border-bottom: none; }

.ship-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.ship-delta {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}

.shiplog-foot {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.65rem;
  text-align: center;
}

/* ---------- ticket timeline (the hero's proof) ---------- */

.journey-hero {
  grid-template-columns: 1fr;
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
}
.journey-hero .hero-copy { max-width: 44em; }

.journey {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(3.5rem, 8vh, 6rem);
}
.jt-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.6rem;
}

.jt { position: relative; }
.jt-nodes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0 1.4rem;
  border-top: 2px solid var(--line);
}
.jt-nodes li {
  position: relative;
  padding-top: 1.2rem;
}
.jt-nodes li::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink-soft);
}
.jt-nodes li.jt-live::before {
  background: var(--accent);
  border-color: var(--accent);
  animation: pulse 2.4s ease-out infinite;
}
.jt-time {
  display: block;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.jt-live .jt-time { color: var(--accent); }
.jt-nodes h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}
.jt-nodes p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.45;
  max-width: 16em;
}

/* the meandering flight path above the track */
.jt { padding-top: 112px; }
.jt-flight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 111px; /* trail end (y=113 of 120) maps onto the live dot at the track line */
  overflow: visible;
  pointer-events: none;
}
.jt-trail {
  fill: none;
  stroke: var(--accent);
  stroke-opacity: 0.4;
  stroke-width: 1.6;
  stroke-dasharray: 6 7;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.jt-flyer path { fill: var(--accent); }

@media (max-width: 820px) {
  .jt-flight { display: none; }
  .jt { padding-top: 0; }
  .jt-nodes {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: none;
    border-left: 2px solid var(--line);
  }
  .jt-nodes li {
    padding: 0 0 1.6rem 1.5rem;
    padding-top: 0;
  }
  .jt-nodes li:last-child { padding-bottom: 0.2rem; }
  .jt-nodes li::before { top: 0.25rem; left: -5px; }
}

/* ---------- stats ---------- */

.stats {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 2rem 1.2rem;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }

.stat-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-unit {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--accent);
  margin-left: 0.1em;
}
.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 780px) {
  /* stats as list rows: numeral left, label right-aligned */
  .stats { display: block; }
  .stat {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    padding: 1.05rem 0;
    border-left: none;
  }
  .stat + .stat { border-top: 1px solid var(--line); }
  .stat-num { font-size: 2rem; }
  .stat-unit { font-size: 1rem; }
  .stat-label {
    display: inline;
    margin-left: auto;
    padding-left: 1rem;
    font-size: 0.92rem;
    text-align: right;
    max-width: 62%;
  }
}

/* ---------- sections shared ---------- */

.process, .services, .work, .about, .principles {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 7rem) var(--pad) 0;
}

.process h2, .work h2, .about h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
  max-width: 18em;
}

/* ---------- process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.step { border-top: 2px solid var(--ink); padding-top: 1.3rem; }
.step-num { color: var(--accent); }
.step h3 { font-size: 1.35rem; margin: 0.7rem 0 0.7rem; }
.step p { font-size: 0.95rem; color: var(--ink-soft); }

@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- services ---------- */

.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.service-list li {
  background: var(--paper);
  padding: 1.5rem 1.25rem;
  transition: background 0.2s;
}
.service-list li:hover { background: var(--paper-raised); }
.service-list h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.service-list p { font-size: 0.86rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .service-list { grid-template-columns: 1fr 1fr; }
  .service-list li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .service-list { grid-template-columns: 1fr; }
}

/* ---------- work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.work-card {
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.work-media {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  transition: transform 0.25s ease;
}
.work-card:hover .work-media { transform: translateY(-4px); }
.work-media[data-tone="a"] { background: linear-gradient(135deg, var(--accent-soft), var(--paper-raised)); }
.work-media[data-tone="b"] { background: linear-gradient(135deg, #e7e3d6, var(--paper-raised)); }
.work-media[data-tone="c"] { background: linear-gradient(135deg, #ded9e8, var(--paper-raised)); }
@media (prefers-color-scheme: dark) {
  .work-media[data-tone="b"] { background: linear-gradient(135deg, #2a251d, var(--paper-raised)); }
  .work-media[data-tone="c"] { background: linear-gradient(135deg, #262233, var(--paper-raised)); }
}

.work-logo {
  max-width: 58%;
  max-height: 38%;
  object-fit: contain;
}
/* Dub's logo is pure black — invert it on dark backgrounds */
html.mode-dark .work-logo-dub { filter: invert(0.92); }
@media (prefers-color-scheme: dark) {
  html:not(.mode-light) .work-logo-dub { filter: invert(0.92); }
}

/* Sites & internal tools: line-drawn mockup */
.tools-mock { width: 68%; height: auto; }
.tools-mock .tm-frame {
  fill: var(--paper-raised);
  stroke: var(--ink-soft);
  stroke-width: 1.6;
}
.tools-mock .tm-raised { filter: drop-shadow(0 3px 6px rgba(25, 21, 18, 0.12)); }
.tools-mock .tm-line { stroke: var(--line); stroke-width: 2.4; stroke-linecap: round; }
.tools-mock .tm-dot { fill: var(--ink-soft); opacity: 0.55; }
.tools-mock .tm-bar { fill: var(--ink-soft); opacity: 0.45; }
.tools-mock .tm-bar.tm-accent { fill: var(--accent); opacity: 1; }
.tools-mock .tm-accent-line { stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.tools-mock .tm-prompt {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  fill: var(--accent);
}
.tools-mock .tm-gear circle { fill: none; stroke: var(--ink-soft); stroke-width: 1.6; }
.tools-mock .tm-gear .tm-gear-hub { fill: var(--paper-raised); }
.tools-mock .tm-gear line { stroke: var(--ink-soft); stroke-width: 1.6; stroke-linecap: round; }

.work-card h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.work-card p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.6rem; }

@media (max-width: 780px) {
  /* swipeable card carousel, edge-to-edge with a peek of the next card */
  .work-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--pad));
    padding: 0 var(--pad) 0.5rem;
    scroll-padding-left: var(--pad);
    scrollbar-width: none;
  }
  .work-grid::-webkit-scrollbar { display: none; }
  .work-card { scroll-snap-align: start; }
  .work-card:hover .work-media { transform: none; }
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about-bio p {
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 1.1rem;
}
.about-bio strong { color: var(--ink); font-weight: 600; }

.degree-list {
  list-style: none;
  margin-top: 1.8rem;
  border-top: 2px solid var(--ink);
}
.degree-list li {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.degree-list .mono-label {
  color: var(--accent);
  flex-shrink: 0;
  width: 6em;
}

/* Credentials card echoes the ship log */
.cred-stack {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.5rem 1.1rem;
  box-shadow: 0 1px 2px rgba(25, 21, 18, 0.04), 0 12px 40px -18px rgba(25, 21, 18, 0.18);
}

.cred-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.cred-note { margin-left: auto; opacity: 0.75; text-align: right; }

.cred-list { list-style: none; }
.cred-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.cred-list h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.cred-list span {
  display: block;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.cred-foot {
  padding-top: 0.9rem;
  font-size: 0.65rem;
  text-align: center;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- principles ---------- */

.principle-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem) clamp(2rem, 5vw, 5rem);
}

.principle h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  margin-bottom: 0.6rem;
}
.principle p { color: var(--ink-soft); font-size: 0.97rem; max-width: 30em; }

@media (max-width: 700px) {
  .principle-list { grid-template-columns: 1fr; }
}

/* ---------- reviews ---------- */

.reviews {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 7rem) var(--pad) 0;
}

.quote-featured blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 26em;
}
.quote-featured figcaption { margin-top: 1.4rem; }

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}

.quote {
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
}
.quote blockquote {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--ink);
}
.quote figcaption { margin-top: 0.9rem; }

@media (max-width: 780px) {
  .quote-featured blockquote { font-size: clamp(1.3rem, 5.5vw, 1.5rem); }
  /* swipeable quotes */
  .quote-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--pad));
    padding: 0 var(--pad) 0.5rem;
    scroll-padding-left: var(--pad);
    scrollbar-width: none;
  }
  .quote-grid::-webkit-scrollbar { display: none; }
  .quote { scroll-snap-align: start; }
}

/* ---------- contact ---------- */

.contact {
  max-width: var(--max);
  margin: clamp(4rem, 10vh, 7rem) auto 0;
  padding: clamp(4rem, 10vh, 6.5rem) var(--pad);
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact h2 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  margin-bottom: 1.2rem;
}
.contact .lede { margin: 0 auto 2.4rem; }

/* ---------- footer ---------- */

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.8rem var(--pad) 2.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.footer .mark { width: 18px; height: 18px; }
.footer-note { margin-left: auto; }
.footer-signin {
  text-decoration: none;
  transition: color 0.15s;
}
.footer-signin:hover { color: var(--ink); }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
  .jt-flyer { display: none; } /* SMIL ignores reduced-motion; the static trail stays */
  .jt-nodes li.jt-live::before { animation: none; }
}

/* ---------- recent ships (live data via Perch) ---------- */

.ships {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 7rem) var(--pad) 0;
}
.ships-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.ships-list {
  list-style: none;
  border-top: 2px solid var(--ink);
}
.ships-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.9rem 0.2rem;
  border-bottom: 1px solid var(--line);
}
.ships-list .ship-desc { color: var(--ink-soft); }
.ships-list .ship-delta {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}
.ships-stats { margin-top: 0.9rem; text-align: right; }
