:root {
  --blue: #0A2A43;
  --blue-2: #0F3B5C;
  --ink: #1E1E1E;
  --muted: #6A6A6A;
  --line: #E6E6E6;
  --wash: #F7F9FA;
  --red: #B3261E;
  --green: #1E7F4F;
  --white: #FFFFFF;
  --shadow: 0 18px 48px rgba(10, 42, 67, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--wash);
  line-height: 1.5;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(230, 230, 230, 0.9);
  background: rgba(247, 249, 250, 0.94);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--blue);
}
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 8px 24px rgba(10,42,67,.16); }
.brand span { display: grid; }
.brand strong { font-size: 0.98rem; }
.brand small { color: var(--muted); font-size: .74rem; }

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: var(--blue);
  padding: .55rem .7rem;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 650;
}
.nav a:hover, .nav a:focus { background: rgba(10,42,67,.08); outline: none; }
.nav a.nav-primary { background: var(--blue); color: white; }

.main { padding: 42px 0 64px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  gap: 1.4rem;
  align-items: stretch;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.hero-card { padding: clamp(1.4rem, 3.5vw, 3.1rem); }
.side-card { padding: 1.25rem; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(30,127,79,.12);
}

h1, h2, h3 { color: var(--blue); line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.25rem, 5vw, 5.25rem); letter-spacing: -.055em; max-width: 12ch; }
h2 { font-size: clamp(1.55rem, 2.5vw, 2.5rem); letter-spacing: -.035em; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
.lead { color: #35536A; font-size: clamp(1rem, 1.5vw, 1.18rem); max-width: 68ch; margin-top: 1.2rem; }
.muted { color: var(--muted); }
.mono { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; align-items: center; }
.button, .primary-cta, .secondary-cta, .ghost-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  border-radius: 999px;
  padding: .75rem 1rem;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.button:hover, .primary-cta:hover, .secondary-cta:hover, .ghost-cta:hover { transform: translateY(-1px); }
.primary-cta { background: var(--blue); color: var(--white); box-shadow: 0 10px 30px rgba(10,42,67,.22); }
.secondary-cta { background: var(--white); border-color: var(--blue); color: var(--blue); }
.ghost-cta { background: rgba(10,42,67,.06); border-color: rgba(10,42,67,.12); color: var(--blue); }
button.primary-cta, button.secondary-cta, button.ghost-cta { border-radius: 999px; }
.operator-note { margin-top: 0.85rem; max-width: 46rem; font-size: 0.92rem; color: var(--muted); }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.metric { padding: .85rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.metric span { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 750; }
.metric strong { display: block; color: var(--blue); font-size: .98rem; margin-top: .25rem; }

.status-stack { display: grid; gap: .75rem; }
.status-tile { padding: 1rem; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, #fff, #fbfcfd); }
.status-tile strong { display: block; color: var(--blue); margin-bottom: .25rem; }
.status-tile p { color: var(--muted); font-size: .9rem; }
.status-tag { display: inline-block; padding: .28rem .55rem; border-radius: 999px; margin-bottom: .7rem; background: rgba(30,127,79,.12); color: var(--green); font-weight: 760; font-size: .75rem; }

.section { margin-top: 1.25rem; }
.section-pad { padding: clamp(1.25rem, 3vw, 2.2rem); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.card { padding: 1.15rem; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.card p { margin-top: .55rem; color: var(--muted); font-size: .94rem; }

.operator-access-card {
  border: 1px solid rgba(10,42,67,.34);
  background: linear-gradient(135deg, #fff, #F7F9FA);
  padding: 1.25rem;
  margin: 1.2rem 0;
  border-radius: 22px;
}
.operator-access-card .eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 800;
}
.operator-access-card h2 { margin: 0 0 0.65rem; }
.operator-access-card p { max-width: 52rem; color: #35536A; }

.route-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; }
.route-node { border: 1px solid var(--line); border-radius: 18px; padding: 1rem; background: #fff; }
.route-node b { display: inline-flex; width: 30px; height: 30px; border-radius: 999px; align-items: center; justify-content: center; background: var(--blue); color: #fff; font-size: .8rem; margin-bottom: .65rem; }
.route-node strong { display: block; color: var(--blue); }
.route-node p { color: var(--muted); margin-top: .35rem; font-size: .9rem; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.form-full { grid-column: 1 / -1; }
label { display: grid; gap: .35rem; color: var(--blue); font-size: .88rem; font-weight: 750; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cfd8df;
  background: #fff;
  border-radius: 14px;
  padding: .78rem .85rem;
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(10,42,67,.14); border-color: var(--blue); }
.message { margin-top: 1rem; padding: .9rem; border-radius: 16px; background: rgba(10,42,67,.06); color: var(--blue); }
.message.ok { background: rgba(30,127,79,.12); color: var(--green); }
.message.err { background: rgba(179,38,30,.1); color: var(--red); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: .78rem .85rem; vertical-align: top; }
th { color: var(--blue); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; background: #fbfcfd; }
td { color: #385269; font-size: .92rem; }

.boundary { border-left: 5px solid var(--red); padding: 1rem 1.15rem; background: #fff; color: #4a4a4a; border-radius: 16px; }

.console-layout { display: grid; grid-template-columns: 340px 1fr; gap: 1rem; align-items: start; }
.console-sidebar { position: sticky; top: 92px; }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .55rem; border-radius: 999px; background: rgba(10,42,67,.08); color: var(--blue); font-size: .76rem; font-weight: 760; }
.badge.ok { background: rgba(30,127,79,.13); color: var(--green); }
.badge.warn { background: rgba(179,38,30,.1); color: var(--red); }
.list { display: grid; gap: .7rem; margin-top: .8rem; }
.list-item { padding: .8rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.list-item strong { color: var(--blue); }
.list-item small { color: var(--muted); display: block; margin-top: .25rem; }

.footer { border-top: 1px solid var(--line); padding: 1.4rem 0 2rem; color: var(--muted); }
.footer-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer a { color: var(--blue); font-weight: 700; text-decoration: none; }

@media (max-width: 920px) {
  .topbar-inner { align-items: flex-start; padding: .8rem 0; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .hero, .grid-2, .grid-3, .grid-4, .console-layout, .route-band { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-sidebar { position: static; }
}

@media (max-width: 560px) {
  .shell, .topbar-inner, .footer-inner { width: min(100% - 20px, 1180px); }
  .nav a { font-size: .78rem; padding: .45rem .55rem; }
  .metrics, .form-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.35rem; }
}

/* v3.3 rollback: restore original public-page structure; keep only a minimal operator sign-in link. */
.original-public-page .hero { align-items: stretch; }
.original-hero-card h1 { max-width: 14ch; }
.title-lockup { margin: .25rem 0 1.1rem; }
.brandline { color: var(--blue); font-size: clamp(1.05rem, 1.6vw, 1.35rem); font-weight: 650; letter-spacing: -.02em; }
.brandline span { margin-right: .25rem; }
.brandline strong { font-weight: 850; }
.edition { color: var(--muted); margin-top: .3rem; font-size: .92rem; }
.section-label { display: inline-block; margin: .35rem 0 .95rem; color: var(--blue); font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; font-weight: 760; }
.meta-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; margin: .2rem 0 1rem; }
.meta-strip span { border: 1px solid var(--line); border-radius: 14px; padding: .65rem .75rem; background: #fff; color: #35536A; font-size: .86rem; }
.status-line { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 1rem; }
.status-line span { display: inline-flex; padding: .32rem .6rem; border-radius: 999px; background: rgba(30,127,79,.12); color: var(--green); font-weight: 760; font-size: .78rem; }
.support-line { color: #35536A; margin-top: 1rem; }
.route-note { margin-top: 1.25rem; }
.route-node small { display: block; color: var(--muted); margin-top: .35rem; font-size: .86rem; line-height: 1.45; }
.access-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 1rem; align-items: start; }
.existing-operator-line { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.15rem 0 0; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.existing-operator-line strong { color: var(--blue); display: block; }
.existing-operator-line span { color: var(--muted); display: block; font-size: .9rem; margin-top: .15rem; }
.secondary-cta.compact { min-height: 38px; padding: .55rem .8rem; }
.contact-card { border: 1px solid var(--line); border-radius: 22px; background: #fff; padding: 1rem; }
.contact-card dl { margin: 0; display: grid; gap: .65rem; }
.contact-card dt { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 800; }
.contact-card dd { margin: .12rem 0 0; color: var(--blue); font-weight: 700; word-break: break-word; }
.contact-card .boundary { margin-top: 1rem; }
@media (max-width: 920px) {
  .meta-strip, .access-layout { grid-template-columns: 1fr; }
  .existing-operator-line { align-items: flex-start; flex-direction: column; }
}

/* Institutional threshold hero — public front door visual */
.tvg-threshold-hero {
  position: relative;
  width: 100vw;
  min-height: clamp(420px, 66vh, 780px);
  margin: clamp(34px, 6vw, 58px) calc(50% - 50vw) 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 253, 246, 0.18);
  border-bottom: 1px solid rgba(10, 42, 67, 0.42);
  background: #111;
  isolation: isolate;
}
.tvg-threshold-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(0.55) contrast(1.04) brightness(0.88);
}
.tvg-threshold-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 7, 9, 0.42) 0%, rgba(5, 7, 9, 0.08) 28%, rgba(5, 7, 9, 0.08) 72%, rgba(5, 7, 9, 0.42) 100%),
    linear-gradient(180deg, rgba(5, 7, 9, 0.66) 0%, rgba(5, 7, 9, 0.30) 46%, rgba(5, 7, 9, 0.70) 100%);
  pointer-events: none;
}
.tvg-threshold-hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 1;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 253, 246, 0.28), transparent);
  pointer-events: none;
}
.tvg-threshold-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 0;
  padding: clamp(24px, 5vw, 72px);
  text-align: center;
}
.tvg-threshold-caption span {
  max-width: 980px;
  color: #f4f1e8;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5.6vw, 78px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.tvg-threshold-caption small {
  display: block;
  margin-top: clamp(12px, 1.8vw, 22px);
  color: rgba(244, 241, 232, 0.86);
  font-family: var(--mono, "JetBrains Mono", "SFMono-Regular", Consolas, monospace);
  font-size: clamp(12px, 1.45vw, 18px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-wrap: balance;
}
.tvg-threshold-authority {
  width: min(1120px, calc(100% - 48px));
  margin: 16px auto 0;
  color: rgba(10, 42, 67, 0.72);
  font-family: var(--mono, "JetBrains Mono", "SFMono-Regular", Consolas, monospace);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tvg-threshold-authority strong { color: rgba(10, 42, 67, 0.92); }
@media (max-width: 760px) {
  .tvg-threshold-hero {
    min-height: clamp(520px, 72vh, 720px);
  }
  .tvg-threshold-hero img {
    object-position: center 50%;
  }
  .tvg-threshold-caption span {
    font-size: clamp(32px, 12vw, 56px);
  }

  .tvg-threshold-caption small {
    font-size: clamp(11px, 3.4vw, 15px);
    letter-spacing: 0.055em;
  }
  .tvg-threshold-authority {
    width: min(100% - 28px, 1120px);
    font-size: 10px;
    letter-spacing: 0.065em;
  }
}

