:root {
  --bg: #0f1114;
  --chrome: #161a1f;
  --chrome-2: #1c2229;
  --border: #2a323c;
  --text: #e8ecef;
  --muted: #9aa3ad;
  --teal: #7bcbbf;
  --teal-dim: rgba(123, 203, 191, 0.15);
  --warn: #e8b86d;
  --danger: #e07a7a;
  --radius: 10px;
  --max: 960px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* —— Project banner —— */
.project-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0f2a26;
  color: var(--teal);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid #1e4a42;
  line-height: 1.35;
}

.estimate-note {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: rgba(232, 184, 109, 0.1);
  border: 1px solid rgba(232, 184, 109, 0.4);
  border-left: 4px solid var(--warn);
  border-radius: 6px;
  color: var(--warn);
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 42rem;
}

.estimate-note strong { color: #f0c888; font-weight: 700; }

/* —— Gate —— */
#gate {
  min-height: calc(100vh - 2.2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.gate-card {
  background: var(--chrome);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.gate-card img {
  height: 48px;
  width: auto;
  margin-bottom: 1.25rem;
}

.gate-card h1 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.gate-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.gate-card label {
  display: block;
  text-align: left;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.gate-card input[type="password"],
.gate-card input[type="text"] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.85rem;
  box-sizing: border-box;
}

.gate-card input:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.gate-card button {
  width: 100%;
  padding: 0.7rem;
  border: none;
  border-radius: 6px;
  background: var(--teal);
  color: #0f1114;
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
}

.gate-card button:hover { filter: brightness(1.05); }

.gate-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
  min-height: 1.2em;
}

/* —— App shell —— */
#app { display: none; }

#app.is-open { display: block; }

.site-header {
  position: relative;
  z-index: 50;
  background: var(--chrome);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.25rem;
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img { height: 36px; width: auto; }

.brand-text {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.3;
}

.brand-text strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}

nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  text-decoration: none;
}

nav a:hover,
nav a.is-active {
  color: var(--teal);
  background: var(--teal-dim);
  text-decoration: none;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

section {
  margin-bottom: 3rem;
  scroll-margin-top: 3rem;
}

section h2 {
  font-size: 1.35rem;
  font-weight: 650;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

section h2 .accent { color: var(--teal); }

.lead {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
  max-width: 42rem;
}

.home-legal {
  color: var(--muted);
  font-size: 0.85rem;
  margin: -0.35rem 0 1rem;
  letter-spacing: 0.01em;
}


/* —— Timeline —— */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline li {
  position: relative;
  padding: 0 0 1.35rem 2.5rem;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline .dot {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--chrome-2);
  border: 2px solid var(--teal);
}

.timeline .phase-title {
  font-weight: 600;
  font-size: 0.98rem;
  margin: 0 0 0.2rem;
}

.timeline .phase-date {
  font-size: 0.8rem;
  color: var(--muted);
}

.timeline .phase-date span {
  display: inline-block;
  background: var(--chrome-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  font-variant-numeric: tabular-nums;
}


.timeline .phase-copy {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.sched-sub {
  margin: 1.75rem 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text);
}


/* —— Team contacts (under schedule) —— */
.team-contacts {
  margin: 1.5rem 0 2rem;
  padding: 1.15rem 1.25rem;
  background: var(--chrome);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.team-contacts-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 650;
}

.team-contacts-phone {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.team-contacts-phone a {
  font-weight: 700;
  text-decoration: none;
}

.team-contacts-lead {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.team-contacts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.team-contacts-list li {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 0.15rem 1rem;
  padding: 0.7rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  align-items: baseline;
}

.team-contacts-list li .tc-name {
  font-weight: 650;
  grid-column: 1;
  grid-row: 1;
}

.team-contacts-list li .tc-role {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 0.8rem;
  color: var(--muted);
}

.team-contacts-list li .tc-email {
  grid-column: 2;
  grid-row: 1;
  color: var(--teal);
  text-decoration: none;
  word-break: break-all;
  justify-self: start;
}

.team-contacts-list li .tc-email:hover {
  text-decoration: underline;
}


.team-contacts-site {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.team-contacts-site a {
  color: var(--teal);
  word-break: break-all;
}

@media (max-width: 640px) {
  .team-contacts {
    padding: 1rem;
  }
  .team-contacts-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .team-contacts-list li .tc-name,
  .team-contacts-list li .tc-email,
  .team-contacts-list li .tc-role {
    grid-column: 1;
    grid-row: auto;
  }
}

.sched-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--chrome);
  margin: 0 0 0.5rem;
}

table.sched {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 0;
}

table.sched th,
table.sched td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.sched th {
  background: var(--chrome-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

table.sched tr:last-child td { border-bottom: none; }

table.sched td:first-child {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.est-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warn);
  background: rgba(232, 184, 109, 0.12);
  border: 1px solid rgba(232, 184, 109, 0.4);
  border-radius: 4px;
  padding: 0.12rem 0.4rem;
  margin-right: 0.35rem;
  vertical-align: middle;
}

/* —— Nav toggle (mobile) —— */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--chrome-2);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--teal);
  box-shadow: 0 5px 0 var(--teal), 0 -5px 0 var(--teal);
}

/* —— Channel cards —— */

.channel-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .channel-grid { grid-template-columns: 1fr 1fr; }
}

.channel-card {
  background: var(--chrome);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.channel-card .num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f1114;
  background: var(--teal);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  margin-bottom: 0.55rem;
}

.channel-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 600;
}

.channel-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.rails {
  margin-top: 1.25rem;
  background: var(--chrome-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}

.rails h3 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rails ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.rails li { margin-bottom: 0.35rem; }
.rails li:last-child { margin-bottom: 0; }
.rails strong { color: var(--text); }

/* —— Inventory —— */
.inv-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.inv-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--chrome);
}

table.inv {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

table.inv th,
table.inv td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table.inv th {
  background: var(--chrome-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

table.inv tr:last-child td { border-bottom: none; }

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 650;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(224, 122, 122, 0.18);
  color: var(--danger);
  border: 1px solid rgba(224, 122, 122, 0.35);
}

/* —— Next —— */
.next-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.next-list li {
  background: var(--chrome);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1.15rem;
  margin-bottom: 0.65rem;
  display: grid;
  gap: 0.25rem;
}

@media (min-width: 560px) {
  .next-list li {
    grid-template-columns: 9.5rem 1fr;
    gap: 1rem;
    align-items: baseline;
  }
}

.next-list .when {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--teal);
}

.next-list .what {
  font-size: 0.92rem;
  color: var(--muted);
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--chrome);
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
}

.site-footer p {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.site-footer .legal {
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
  margin-top: 1rem;
}

.hidden { display: none !important; }


.status-banner {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #7bcbbf;
  border-left-width: 4px;
  background: rgba(123, 203, 191, 0.08);
  color: #e8eeec;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.45;
}
.inv-sub { margin: 1.5rem 0 0.6rem; font-size: 1.05rem; color: #7bcbbf; }
.inv-sub .count { color: #9aa7a3; font-weight: 500; }
.inv-empty { color: #9aa7a3; font-size: 0.95rem; }
.inv th:nth-child(1), .inv td:nth-child(1) { width: 2.5rem; }


/* —— Inventory asset register —— */
.inventory-slider.asset-register {
  margin-top: 1rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #1a1f26 0%, var(--chrome) 42%);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.asset-register-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem 0.7rem;
  border-bottom: 1px solid var(--border);
}

.asset-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.asset-group-heading {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

.asset-position {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.asset-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.asset-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--chrome-2);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.asset-chip-warn {
  border-color: rgba(232, 184, 109, 0.45);
  background: rgba(232, 184, 109, 0.12);
  color: var(--warn);
}

.asset-tabs {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--border);
  background: #14181e;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.asset-tab {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  min-width: 8.5rem;
  padding: 0.65rem 0.9rem 0.7rem;
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: #b7c0c8;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.asset-tab:last-child { border-right: none; }

.asset-tab:hover {
  color: var(--text);
  background: rgba(123, 203, 191, 0.06);
}

.asset-tab[aria-selected="true"] {
  color: #0f1114;
  background: var(--teal);
  font-weight: 650;
}

.asset-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #0f1114;
  opacity: 0.35;
}

.asset-tab-label {
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.2;
}

.asset-tab-meta {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
}

.asset-tab[aria-selected="false"] .asset-tab-meta {
  color: #8f9aa4;
}

.asset-tab[aria-selected="true"] .asset-tab-meta {
  color: rgba(15, 17, 20, 0.78);
}

.asset-panels {
  position: relative;
  padding: 0.75rem 0.9rem 0.25rem;
  min-height: 10.5rem;
}

.asset-panel {
  display: none;
}

.asset-panel.is-active {
  display: block;
}

.asset-panel.is-entering {
  animation: asset-panel-in 220ms ease both;
}

.asset-panel[hidden] { display: none !important; }

@keyframes asset-panel-in {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .asset-panel.is-entering { animation: none; }
  .asset-tab,
  .asset-nav-btn {
    transition: none;
  }
}

.asset-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin: 0 0 0.55rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--chrome-2);
  color: var(--muted);
  font-size: 0.78rem;
}

.asset-summary-strip strong {
  color: var(--teal);
  font-weight: 700;
}

.asset-summary-strip span:not(:last-child)::after {
  content: "·";
  margin-left: 0.85rem;
  color: #5d6772;
}

.inventory-slider .inv-table-wrap {
  border-radius: 8px;
}

.asset-panel table.inv {
  min-width: 860px;
  font-size: 0.82rem;
}

.asset-panel table.inv th,
.asset-panel table.inv td {
  padding: 0.48rem 0.7rem;
}

.inv-empty-card {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  margin: 0.25rem 0 0.65rem;
  padding: 1.6rem 1.2rem;
  border: 1px solid rgba(123, 203, 191, 0.28);
  border-radius: 10px;
  background:
    radial-gradient(circle at top right, rgba(123, 203, 191, 0.12), transparent 48%),
    var(--chrome-2);
  text-align: center;
  min-height: 11rem;
  place-content: center;
}

.inv-empty-icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 0.25rem;
  border-radius: 50%;
  border: 1px solid rgba(123, 203, 191, 0.35);
  background: rgba(123, 203, 191, 0.08);
  color: var(--teal);
}

.inv-empty-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.inv-empty-copy {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.inv-empty-status {
  margin: 0.35rem 0 0;
  display: inline-flex;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 184, 109, 0.4);
  background: rgba(232, 184, 109, 0.12);
  color: var(--warn);
  font-size: 0.75rem;
  font-weight: 650;
}

.asset-register-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem 0.85rem;
  border-top: 1px solid var(--border);
  background: #14181e;
}

.asset-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.6rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--chrome-2);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.asset-nav-btn:hover {
  border-color: var(--teal);
  background: rgba(123, 203, 191, 0.1);
}

.asset-nav-next {
  justify-content: flex-end;
  text-align: right;
}

.asset-nav-arrow {
  flex: 0 0 auto;
  color: var(--teal);
  font-size: 1.05rem;
  font-weight: 700;
}

.asset-nav-text {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.asset-nav-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}

.asset-nav-dest {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inventory-slider.asset-register:focus-visible,
.asset-tab:focus-visible,
.asset-nav-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .asset-register-header {
    flex-direction: column;
    align-items: stretch;
  }

  .asset-chips { justify-content: flex-start; }

  .asset-tab {
    flex: 0 0 auto;
    min-width: 10rem;
  }

  .asset-register-nav {
    grid-template-columns: 1fr;
  }

  .asset-nav-next {
    justify-content: space-between;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .asset-group-heading { font-size: 1.15rem; }
  .asset-panels { padding: 0.8rem 0.75rem 0.25rem; }
  .asset-register-nav { padding: 0.75rem; }
  .asset-summary-strip span:not(:last-child)::after { display: none; }
}

.badge-rolling {
  background: rgba(123, 203, 191, 0.18);
  color: #7bcbbf;
  border: 1px solid rgba(123, 203, 191, 0.45);
}

.badge-treaty {
  background: rgba(180, 190, 200, 0.12);
  color: #c5d0d8;
  border: 1px solid rgba(180, 190, 200, 0.35);
}

/* —— Full inventory email CTA (shown when total > 20) —— */
.inv-full-cta {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--teal-dim);
  border: 1px solid rgba(123, 203, 191, 0.35);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.inv-full-cta-copy {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  flex: 1 1 220px;
}

.inv-full-cta-btn {
  display: inline-block;
  background: var(--teal);
  color: #0f1114;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.inv-full-cta-btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.inv-note code {
  font-size: 0.85em;
  color: var(--teal);
}

/* —— Home stats —— */
.home-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}
.home-stat {
  background: var(--chrome);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 0.9rem;
  text-align: center;
}
.home-stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--teal);
  font-weight: 700;
  line-height: 1.2;
}
.home-stat span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.channel-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.channel-units {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.channel-units li { margin: 0.25rem 0; }
.channel-units strong { color: var(--text); font-weight: 600; }


/* —— Mobile / Edge phone layout —— */
@media (max-width: 768px) {
  .project-banner {
    font-size: 0.72rem;
    padding: 0.5rem 0.75rem;
  }

  .site-header {
    padding: 0.7rem 0.85rem;
  }

  .site-header-inner {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand img { height: 32px; }

  .brand-text { font-size: 0.78rem; }
  .brand-text strong { font-size: 0.9rem; }

  .nav-toggle { display: inline-flex; }

  #site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.25rem;
    padding-top: 0.25rem;
  }

  #site-nav.is-open { display: flex; }

  #site-nav a {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
    border-radius: 8px;
  }

  main {
    padding: 1.25rem 0.85rem 2.5rem;
  }

  section {
    margin-bottom: 2.25rem;
    scroll-margin-top: 5.5rem;
  }

  section h2 {
    font-size: 1.2rem;
  }

  .lead {
    font-size: 0.92rem;
    max-width: none;
  }

  .estimate-note {
    max-width: none;
    font-size: 0.85rem;
  }

  .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-grid-3 {
    grid-template-columns: 1fr;
  }

  .channel-card,
  .rails,
  .next-list li,
  .inv-full-cta {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .inv-full-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .inv-full-cta-btn {
    text-align: center;
    white-space: normal;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  table.sched {
    font-size: 0.82rem;
  }

  table.sched th,
  table.sched td {
    padding: 0.6rem 0.65rem;
  }

  table.sched td:first-child {
    white-space: normal;
  }

  .next-list li {
    grid-template-columns: 1fr;
  }

  .asset-nav-btn {
    min-height: 48px;
  }

  .gate-card {
    padding: 1.5rem 1.15rem;
    max-width: 100%;
  }

  #gate {
    padding: 1.25rem 0.85rem;
    min-height: calc(100vh - 2.8rem);
  }
}

@media (max-width: 480px) {
  .project-banner {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }

  .home-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .home-stat {
    padding: 0.7rem 0.55rem;
  }

  .home-stat strong { font-size: 1.2rem; }
  .home-stat span { font-size: 0.7rem; }

  .asset-tab {
    min-width: 8.25rem;
    padding: 0.7rem 0.75rem;
  }

  .asset-tab-label { font-size: 0.82rem; }

  .asset-panel table.inv {
    min-width: 640px;
    font-size: 0.78rem;
  }

  .asset-panel table.inv th,
  .asset-panel table.inv td {
    padding: 0.45rem 0.5rem;
  }

  .inv-table-wrap {
    margin: 0 -0.15rem;
  }

  .timeline li {
    padding-left: 2.15rem;
  }

  .sched-table-wrap {
    /* stack-like: keep horizontal scroll inside wrap only */
    border-radius: 8px;
  }

  table.sched thead { display: none; }

  table.sched,
  table.sched tbody,
  table.sched tr,
  table.sched td {
    display: block;
    width: 100%;
  }

  table.sched tr {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--border);
  }

  table.sched tr:last-child { border-bottom: none; }

  table.sched td {
    border: none;
    padding: 0.2rem 0;
  }

  table.sched td:first-child {
    color: var(--teal);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
  }

  table.sched td:nth-child(2) {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }

  table.sched td:nth-child(3) {
    color: var(--muted);
    font-size: 0.85rem;
  }
}

@media (max-width: 390px) {
  main { padding: 1rem 0.7rem 2rem; }
  .brand-text { max-width: 11rem; }
  .gate-card h1 { font-size: 1.05rem; }
  .gate-card p { font-size: 0.85rem; }
}
