/* Airport VIP Transfers — design system: The Private Departures Board (see DESIGN.md) */

:root {
  --onyx: #0B0B0D;
  --onyx-panel: #18181D;
  --onyx-panel-raised: #212127;
  --hairline: #33333B;
  --hairline-soft: #26262C;
  --gold: #C9A24B;
  --gold-bright: #E8C874;
  --gold-dim: #8C7038;
  --ivory: #F4EFE4;
  --ivory-muted: #A8A296;
  --status-live: #7FBF8F;
  --status-error: #C9705E;

  --font-display: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", "Segoe UI", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 96px;

  --container-max: 1280px;
  --edge: clamp(20px, 5vw, 96px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--onyx);
  color-scheme: dark;
}

body {
  position: relative;
  margin: 0;
  background: var(--onyx);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Grain texture — reads as ticket-stock paper, not decoration for its own sake */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-nav, main, footer { position: relative; z-index: 1; }

img, svg { display: block; max-width: 100%; }

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

/* ---------- Typography ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 6.5vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
  color: var(--ivory);
  margin: 0;
}

.display em,
.headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-bright);
}

.headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.08;
  color: var(--ivory);
  margin: 0;
}

.instrument {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

p.body-text {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ivory-muted);
  max-width: 68ch;
  margin: 0;
}

.label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 13, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline-soft);
  transition: box-shadow 0.3s var(--ease-out);
}

.site-nav.is-elevated {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  flex-wrap: nowrap;
  gap: var(--space-sm);
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 520;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--ivory);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.nav-brand .stars { color: var(--gold); font-size: 0.6rem; letter-spacing: 0.2em; }

.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
  border-radius: 4px;
}

.footer-brand .nav-logo-img { height: 64px; margin-bottom: var(--space-sm); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

.nav-links a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.lang-toggle {
  display: flex;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border: 1px solid var(--hairline);
}

.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--ivory-muted);
  padding: 6px 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}

.lang-toggle button.is-active {
  background: var(--gold);
  color: var(--onyx);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ivory);
  cursor: pointer;
  padding: 8px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 18px 32px;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--onyx);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold-bright);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-dim);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--onyx-panel-raised);
  color: var(--gold-bright);
  border-color: var(--gold);
}

.btn:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- Hero: departures board ---------- */

.hero {
  position: relative;
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--hairline-soft);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(201, 162, 75, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > .container { position: relative; z-index: 1; }

/* Page hero background photography — drop files at these exact paths and they activate
   automatically: assets/backgrounds/hero-<page>.jpg. No image yet = graceful fallback
   to the gold glow only, nothing breaks. */
.page-hero {
  background-size: cover;
  background-position: 70% 50%;
  background-repeat: no-repeat;
}

.hero-top {
  position: relative;
  background-size: cover;
  background-position: 38% 45%;
  background-repeat: no-repeat;
  border-radius: 2px;
  overflow: hidden;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  margin: calc(var(--space-lg) * -1) calc(var(--space-lg) * -1) 0;
}

.hero-top > * { position: relative; z-index: 1; }

.hero-top::after,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 11, 13, 0.25) 0%, rgba(11, 11, 13, 0.4) 42%, rgba(11, 11, 13, 0.85) 80%, var(--onyx) 100%),
    linear-gradient(90deg, var(--onyx) 0%, rgba(11, 11, 13, 0.5) 15%, rgba(11, 11, 13, 0.1) 38%, rgba(11, 11, 13, 0.05) 62%, rgba(11, 11, 13, 0.4) 88%, var(--onyx) 100%);
}

.page-hero { position: relative; overflow: hidden; }
.page-hero > .container { position: relative; z-index: 1; }

html[data-page="home"] .hero-top { background-image: url("../assets/backgrounds/hero-home.jpg"); }
html[data-page="fleet"] .page-hero { background-image: url("../assets/backgrounds/hero-fleet.jpg"); }
html[data-page="booking"] .page-hero { background-image: url("../assets/backgrounds/hero-booking.jpg"); }
html[data-page="about"] .page-hero { background-image: url("../assets/backgrounds/hero-about.jpg"); }
html[data-page="contact"] .page-hero { background-image: url("../assets/backgrounds/hero-contact.jpg"); }

/* Optional atmosphere texture — a second, quieter layer for the trust bar and footer.
   Drop assets/backgrounds/texture-1.jpg to activate; safe to leave absent. */
.trust-bar,
footer {
  position: relative;
}

.trust-bar::before,
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.1;
  background-image: url("../assets/backgrounds/texture-1.jpg");
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.hero-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: end;
  margin-bottom: var(--space-lg);
}

.hero-eyebrow {
  color: var(--gold);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--status-live);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(127, 191, 143, 0.2);
}

.hero-brand {
  letter-spacing: 0.01em;
}

.hero-brand em {
  color: inherit;
  font-weight: inherit;
}

.hero-tagline {
  margin-top: var(--space-sm);
  color: var(--ivory-muted);
  font-weight: 500;
}

.hero-tagline em {
  color: var(--gold-bright);
  font-style: italic;
}

.hero-sub {
  margin-top: var(--space-md);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: flex-end;
  text-align: right;
}

.hero-trust .stars { color: var(--gold); letter-spacing: 0.3em; font-size: 0.9rem; }

.hero-trust .license {
  color: var(--ivory-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* board module */

.board {
  border: 1px solid var(--hairline);
  background: var(--onyx-panel);
}

.board-header {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-sm);
  padding: 14px 24px;
  border-bottom: 1px solid var(--hairline);
  background: var(--onyx-panel-raised);
}

.board-header span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-muted);
}

.board-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-sm);
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--hairline-soft);
  border-left: 2px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.board-row:last-child { border-bottom: none; }

.board-row .instrument { color: var(--ivory); }

.board-row .route {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 460;
  color: var(--ivory);
}

.board-row .route .muted { color: var(--ivory-muted); font-size: 0.85em; }

.board-row .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.board-row.is-active {
  border-left-color: var(--gold);
  background: rgba(201, 162, 75, 0.05);
}

.board-row.is-active .status { color: var(--gold-bright); }

.board-row.is-confirmed .status { color: var(--status-live); }

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.flip {
  display: inline-block;
}

.flip.is-flipping {
  animation: flip-char 0.4s var(--ease-out);
}

@keyframes flip-char {
  0% { transform: rotateX(0deg); opacity: 1; }
  45% { transform: rotateX(-90deg); opacity: 0.3; }
  55% { transform: rotateX(90deg); opacity: 0.3; }
  100% { transform: rotateX(0deg); opacity: 1; }
}

.board-caption {
  padding: 14px 24px;
  color: var(--ivory-muted);
  font-size: 0.8125rem;
  border-top: 1px solid var(--hairline-soft);
}

/* ---------- Story section: full-bleed photo moment ---------- */

.story-section {
  position: relative;
  border-top: none !important;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  background-image: url("../assets/backgrounds/story-sf.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.story-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 13, 0.15) 0%, rgba(11, 11, 13, 0.55) 55%, var(--onyx) 96%),
    linear-gradient(90deg, var(--onyx) 0%, transparent 35%);
  pointer-events: none;
}

.story-section .container {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-xl);
}

.story-section .label { color: var(--gold); margin-bottom: var(--space-sm); }
.story-section .headline { max-width: 20ch; margin-bottom: var(--space-sm); }

/* ---------- Section rhythm ---------- */

section { padding: var(--space-xl) 0; }
section + section { border-top: 1px solid var(--hairline-soft); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.section-head .body-text { margin-top: var(--space-sm); }

/* ---------- How it works: numbered manifest rows ---------- */

.manifest {
  border-top: 1px solid var(--hairline);
}

.manifest-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.manifest-row .step-num {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 1rem;
}

.manifest-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--space-lg);
}

.manifest-row h3 {
  font-family: var(--font-display);
  font-weight: 460;
  font-size: 1.25rem;
  margin: 0;
  color: var(--ivory);
}

.manifest-row p { margin: 0; color: var(--ivory-muted); max-width: 55ch; }

/* ---------- Fleet: ticket stubs ---------- */

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

@media (max-width: 1180px) {
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
}

.ticket {
  background: var(--onyx-panel);
  border: 1px solid var(--hairline);
  padding: var(--space-md);
  position: relative;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

.ticket:hover {
  border-color: var(--gold-dim);
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.ticket-icon { transition: transform 0.4s var(--ease-out); }
.ticket:hover .ticket-icon { transform: scale(1.05) translateX(4px); }

.ticket-perforation {
  position: relative;
  height: 1px;
  margin: var(--space-md) -24px;
  border-top: 1px dashed var(--hairline);
}

.ticket-perforation::before,
.ticket-perforation::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 14px;
  height: 14px;
  background: var(--onyx);
  border-radius: 50%;
}

.ticket-perforation::before { left: -7px; }
.ticket-perforation::after { right: -7px; }

.ticket-class {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.ticket h3 {
  font-family: var(--font-display);
  font-weight: 460;
  font-size: 1.375rem;
  margin: 0 0 4px;
  color: var(--ivory);
}

.ticket .ticket-year {
  color: var(--ivory-muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.ticket-icon {
  width: 100%;
  height: 96px;
  margin: var(--space-sm) 0;
  color: var(--gold);
}

.ticket-photo-frame {
  position: relative;
  margin: var(--space-sm) -24px 0;
  overflow: hidden;
  aspect-ratio: 16 / 11;
}

.ticket-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.ticket:hover .ticket-photo-frame img { transform: scale(1.04); }

.ticket-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11, 11, 13, 0.55) 100%);
  pointer-events: none;
}

.ticket-photo-caption {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  opacity: 0.7;
  margin-top: 8px;
}

.ticket-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ticket-specs div {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--ivory-muted);
}

.ticket-specs span:last-child {
  font-family: var(--font-mono);
  color: var(--ivory);
}

/* ---------- Trust bar ---------- */

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hairline);
}

.trust-item {
  padding: var(--space-md);
  border-right: 1px solid var(--hairline-soft);
}

.trust-item:last-child { border-right: none; }

.trust-item .label { color: var(--gold); display: block; margin-bottom: 10px; }
.trust-item p { margin: 0; color: var(--ivory-muted); font-size: 0.9375rem; }
.trust-item strong { color: var(--ivory); font-weight: 500; }

/* ---------- Forms ---------- */

.form-panel {
  background: var(--onyx-panel);
  border: 1px solid var(--hairline);
  padding: var(--space-lg);
}

.field {
  margin-bottom: var(--space-md);
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ivory-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--onyx);
  border: 1px solid var(--hairline);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 14px 16px;
  border-radius: 0;
  transition: border-color 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.field-error {
  display: none;
  color: var(--status-error);
  font-size: 0.8125rem;
  margin-top: 6px;
}

.field.has-error input,
.field.has-error select {
  border-color: var(--status-error);
}

.field.has-error .field-error { display: block; }

.form-success {
  display: none;
  border: 1px solid var(--status-live);
  background: rgba(127, 191, 143, 0.08);
  padding: var(--space-md);
  color: var(--ivory);
}

.form-success.is-visible { display: block; }

.form-note {
  color: var(--ivory-muted);
  font-size: 0.8125rem;
  margin-top: var(--space-sm);
}

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

footer {
  border-top: 1px solid var(--hairline-soft);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand .nav-brand { margin-bottom: var(--space-sm); }
.footer-brand p { color: var(--ivory-muted); max-width: 40ch; }

.footer-col .label { color: var(--gold); display: block; margin-bottom: var(--space-sm); }
.footer-col a, .footer-col p { display: block; color: var(--ivory-muted); margin-bottom: 8px; font-size: 0.9375rem; }
.footer-col a:hover { color: var(--gold-bright); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--hairline-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ivory-muted);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ---------- Utility ---------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--hairline-soft);
}

.page-hero .body-text { margin-top: var(--space-md); }

.booking-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (max-width: 900px) {
  .booking-layout { grid-template-columns: 1fr; }
}

.breadcrumb {
  color: var(--ivory-muted);
  margin-bottom: var(--space-sm);
}

.breadcrumb a { color: var(--gold); }

/* ---------- Scroll reveal ---------- */

.fade-in {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
}
.fade-in.is-visible { opacity: 1; }

.rise-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.rise-in.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-in, .rise-in { opacity: 1; transform: none; transition: none; }
}

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

@media (max-width: 900px) {
  .hero-top { grid-template-columns: 1fr; gap: var(--space-md); }
  .hero-trust { align-items: flex-start; text-align: left; }
  .board-header, .board-row { grid-template-columns: 1.4fr 1fr 1fr; }
  .board-header span:last-child, .board-row .caption-col { display: none; }
  .fleet-grid { grid-template-columns: 1fr; }
  .trust-bar { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .manifest-body { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn { display: none; }

  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--onyx);
    padding: var(--space-lg) var(--edge);
    gap: var(--space-md);
    z-index: 49;
  }

  body.nav-open .nav-links a {
    font-family: var(--font-display);
    font-size: 1.75rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ivory);
  }
}

@media (max-width: 720px) {
  .board-header { display: none; }
  .board-row { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
  .trust-bar { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--hairline-soft); }
  .trust-item:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .nav-brand { font-size: 0.9rem; gap: 6px; white-space: nowrap; }
  .nav-brand .stars { font-size: 0.5rem; letter-spacing: 0.1em; }
  .lang-toggle button { padding: 6px 8px; }
}
