:root {
  color-scheme: dark;
  --coal: #090c08;
  --night: #11180f;
  --bush: #26341d;
  --leaf: #8f9d52;
  --gold: #e9b75b;
  --ember: #cf6336;
  --sand: #f4ead2;
  --muted: rgba(244, 234, 210, 0.72);
  --soft: rgba(244, 234, 210, 0.1);
  --line: rgba(244, 234, 210, 0.2);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--coal);
  color: var(--sand);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 12, 8, 0.92) 0%, rgba(9, 12, 8, 0.66) 38%, rgba(9, 12, 8, 0.34) 100%),
    linear-gradient(180deg, rgba(9, 12, 8, 0.1) 0%, rgba(9, 12, 8, 0.74) 100%);
}

.photo-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    url("/public/assets/overlanding-hero.png") center / cover no-repeat,
    linear-gradient(145deg, #10170d, #283419);
  transform: scale(1.02);
}

#heroCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
}

.shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 32px 0;
}

.hidden { display: none !important; }

.eyebrow,
.card-kicker {
  margin: 0 0 9px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  max-width: 820px;
  font-size: clamp(3rem, 11vw, 7.4rem);
  line-height: 0.84;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 6px;
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  line-height: 1;
  letter-spacing: 0;
}

.lede {
  max-width: 560px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.login-view {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: end;
  gap: 28px;
}

.hero-copy { padding-bottom: 7vh; }

.route-strip {
  width: min(680px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 234, 210, 0.12);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.route-strip span {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  background: rgba(10, 14, 9, 0.56);
  color: var(--sand);
  font-size: 0.84rem;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}

.login-card,
.panel,
.status-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(19, 26, 15, 0.84), rgba(9, 12, 8, 0.72));
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px) saturate(1.12);
}

.login-card {
  margin-bottom: 8vh;
  padding: 22px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--sand);
  font-weight: 850;
}

.gate-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input,
button,
.ghost {
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font: inherit;
}

input {
  width: 100%;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--sand);
  outline: none;
}

input:focus {
  border-color: rgba(233, 183, 91, 0.72);
  box-shadow: 0 0 0 4px rgba(233, 183, 91, 0.16);
}

button,
.ghost {
  padding: 0 16px;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  color: #1a1009;
  font-weight: 950;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ghost {
  background: rgba(255, 255, 255, 0.09);
  color: var(--sand);
}

.note {
  min-height: 21px;
  margin: 12px 0 0;
  color: var(--muted);
}

.topbar {
  min-height: 210px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  padding-top: 18px;
}

.topbar h1 {
  max-width: 720px;
  font-size: clamp(2.5rem, 8vw, 5.8rem);
}

.tabs {
  position: sticky;
  top: 10px;
  z-index: 3;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 12, 8, 0.72);
  backdrop-filter: blur(16px);
}

.tab {
  min-width: 116px;
  background: transparent;
  color: var(--sand);
}

.tab.active {
  background: linear-gradient(135deg, var(--leaf), var(--gold));
  color: #0f140c;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.status-grid article {
  min-height: 88px;
  padding: 16px;
}

.status-grid span,
.photo-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.status-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--sand);
  font-size: 1.02rem;
  line-height: 1.25;
}

.panel {
  padding: 18px;
  min-height: 63vh;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--gold);
  background: rgba(233, 183, 91, 0.08);
  white-space: nowrap;
}

.year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.year-tab {
  min-height: 42px;
  min-width: 94px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sand);
}

.year-tab.active {
  background: linear-gradient(135deg, var(--leaf), var(--gold));
  color: #0f140c;
}

.photo-grid {
  columns: 3 260px;
  column-gap: 14px;
}

.photo-card {
  break-inside: avoid;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.photo-card img,
.photo-card video {
  width: 100%;
  display: block;
}

.photo-card video {
  background: #050704;
}

.empty {
  min-height: 340px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(244, 234, 210, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(9, 12, 8, 0.28);
}

.empty strong {
  color: var(--sand);
  font-size: 1.35rem;
}

.pdf-frame {
  width: 100%;
  height: min(72vh, 820px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 820px) {
  .shell { padding: 18px 0; }
  .login-view {
    grid-template-columns: 1fr;
    align-items: end;
  }
  .hero-copy { padding: 16vh 0 0; }
  .login-card { margin-bottom: 0; }
  .route-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: clamp(2.55rem, 13vw, 4.25rem); line-height: 0.9; }
  .topbar,
  .panel-head,
  .status-grid { display: grid; grid-template-columns: 1fr; }
  .topbar { min-height: 160px; }
  .tabs { position: static; }
  .tab { flex: 1 1 130px; }
  .pdf-frame { height: 68vh; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 28px, 440px); }
  .gate-row { grid-template-columns: 1fr; }
  .route-strip { grid-template-columns: 1fr 1fr; }
  .route-strip span {
    min-height: 44px;
    padding: 0 4px;
    font-size: 0.68rem;
    white-space: normal;
  }
  h1 { font-size: clamp(2.35rem, 12vw, 3rem); }
  .lede {
    max-width: calc(100vw - 52px);
    font-size: 0.96rem;
  }
}
