:root {
  color-scheme: light;
  --ink: #112a35;
  --ink-2: #1b3a46;
  --navy: #0b2733;
  --navy-2: #123845;
  --paper: #edf2ef;
  --surface: #ffffff;
  --surface-2: #f5f8f6;
  --line: #d5e0db;
  --line-strong: #b9cbc5;
  --teal: #0a6f6d;
  --teal-dark: #075755;
  --teal-soft: #dceee9;
  --amber: #e9b55f;
  --muted: #5d737b;
  --ok: #2f7a5b;
  --danger: #a64336;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font: 16px/1.55 "Aptos", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: var(--teal-dark);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  background: var(--amber);
  color: var(--navy);
  padding: 10px 16px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

/* Rail */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 28px 20px 22px;
  background: var(--navy);
  color: #e4f1ee;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  flex: none;
}

.brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.brand-sub {
  color: #89acac;
  font-size: 0.72rem;
  letter-spacing: 0.015em;
}

.rail-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding: 10px 12px;
  border: 1px solid #214754;
  border-radius: 9px;
  background: #0f303c;
  color: #bad3d0;
  font-size: 0.78rem;
}

.rail-status i {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(233, 181, 95, 0.13);
}

.rail-status.is-ready i {
  background: #72d2a7;
  box-shadow: 0 0 0 4px rgba(114, 210, 167, 0.12);
}

nav {
  display: grid;
  gap: 3px;
}

.nav-label {
  margin: 24px 0 5px;
  padding-left: 12px;
  color: #6f9699;
  font-size: 0.7rem;
  font-weight: 650;
}

.nav-link {
  display: block;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 7px 7px 0;
  color: #b9d1d0;
  font-size: 0.88rem;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible {
  border-left-color: var(--amber);
  background: #123a46;
  color: #ffffff;
}

.sidebar-bottom {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid #214754;
}

.rail-badge {
  color: #93b4b3;
  font-size: 0.72rem;
  line-height: 1.4;
}

.rail-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #4d777b;
  vertical-align: 1px;
}

.rail-button {
  width: 100%;
  border: 1px solid #2c505c;
  background: transparent;
  color: #c9ddda;
  font-size: 0.78rem;
  padding: 8px 10px;
}

.rail-button:hover {
  background: #163b47;
  color: #ffffff;
}

/* Main frame */
main {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 3.6vw, 56px) 34px;
}

.topline {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(237, 242, 239, 0.94);
  backdrop-filter: blur(10px);
}

.topline-title {
  min-width: 0;
}

.eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.topline h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.status-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.status-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--line-strong);
}

.status-chip.is-on::before {
  background: var(--ok);
}

.status-chip.is-warn::before {
  background: var(--amber);
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: center;
  gap: 30px;
  margin: 24px 0 18px;
  padding: clamp(28px, 4vw, 46px);
  overflow: hidden;
  border-radius: 20px 20px 8px 20px;
  background: var(--navy);
  color: #f3fbf8;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -62%;
  width: 420px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(10, 111, 109, 0.4), transparent 68%);
  pointer-events: none;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #9bd2ca;
  font-size: 0.76rem;
  font-weight: 650;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #72d2a7;
  box-shadow: 0 0 0 4px rgba(114, 210, 167, 0.14);
}

.hero h2 {
  margin: 0 0 15px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero-note {
  max-width: 54ch;
  margin: 0;
  color: #b7d2ce;
  font-size: 0.9rem;
}

.hero-mode {
  display: inline-flex;
  margin: 18px 0 0;
  padding: 5px 10px;
  border: 1px solid #2b5963;
  border-radius: 999px;
  background: #123b47;
  color: #e9d1a2;
  font-size: 0.72rem;
}

.hero-signal {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 16px;
}

.signal-badge {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border: 1px solid #315964;
  border-radius: 26px;
  background: #0f303c;
  box-shadow: inset 0 0 0 8px #0b2733, 0 20px 60px rgba(0, 0, 0, 0.22);
  color: var(--amber);
  font-family: var(--display);
  font-size: 2.45rem;
  font-weight: 600;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 52px;
}

.waveform i {
  display: block;
  width: 5px;
  height: 22%;
  min-height: 6px;
  border-radius: 999px;
  background: linear-gradient(#e9b55f, #3a8f89);
  opacity: 0.92;
}

.waveform i:nth-child(2) { height: 46%; }
.waveform i:nth-child(3) { height: 72%; }
.waveform i:nth-child(4) { height: 38%; }
.waveform i:nth-child(5) { height: 88%; }
.waveform i:nth-child(6) { height: 56%; }
.waveform i:nth-child(7) { height: 100%; }
.waveform i:nth-child(8) { height: 64%; }
.waveform i:nth-child(9) { height: 82%; }
.waveform i:nth-child(10) { height: 44%; }
.waveform i:nth-child(11) { height: 68%; }
.waveform i:nth-child(12) { height: 30%; }
.waveform i:nth-child(13) { height: 50%; }

.signal-caption {
  color: #6f9b9b;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(170px, 0.9fr);
  margin: 0 0 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.stats article {
  display: grid;
  gap: 3px;
  padding: 17px 20px 15px;
}

.stats article + article {
  border-left: 1px solid var(--line);
}

.stats span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.stats strong {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.stats small {
  color: var(--muted);
  font-size: 0.68rem;
}

.stats small a {
  color: var(--teal);
  text-decoration: none;
}

.stats small a:hover {
  text-decoration: underline;
}

.stat-mode strong {
  font-family: inherit;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.stats-reset {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding: 7px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.stats-reset button {
  padding: 6px 10px;
  font-size: 0.72rem;
}

/* Panels */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.panel {
  grid-column: span 5;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  scroll-margin-top: 96px;
}

.panel-wide {
  grid-column: span 7;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.14rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.section-heading .outline {
  flex: none;
}

label {
  display: block;
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 0.79rem;
  font-weight: 650;
}

input:not([type="checkbox"]):not([type="radio"]),
select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #c8d8d3;
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
}

input:not([type="checkbox"]):not([type="radio"]):hover,
select:hover {
  border-color: var(--line-strong);
}

input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #55bdb5;
  outline-offset: 2px;
}

input::placeholder {
  color: #8a9ea2;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.field-grid .span-2 {
  grid-column: 1 / -1;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 550;
  line-height: 1.4;
}

.check input,
.radio input {
  flex: none;
  margin-top: 3px;
  accent-color: var(--teal);
}

.check small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 12px;
}

.checks .check {
  margin-top: 0;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  color: var(--ink-2);
  font-size: 0.79rem;
  font-weight: 650;
}

.radio-stack {
  display: grid;
  gap: 8px;
  margin-top: 9px;
}

.radio {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfdfc;
  cursor: pointer;
  font-weight: 550;
}

.radio:hover {
  border-color: var(--line-strong);
}

.radio:has(input:checked) {
  border-color: #8fc2bb;
  background: var(--teal-soft);
}

.radio span {
  display: grid;
  gap: 1px;
}

.radio small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
}

.note {
  margin: 14px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.note a {
  color: var(--teal);
}

.panel form button {
  margin-top: 16px;
}

/* Buttons */
button {
  border: 0;
  border-radius: 7px;
  background: var(--teal);
  color: #ffffff;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
}

button:hover {
  filter: brightness(0.94);
}

.outline,
.quiet {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--teal-dark);
  padding: 8px 12px;
  font-size: 0.76rem;
  white-space: nowrap;
}

.outline:hover,
.quiet:hover {
  border-color: #8fc2bb;
  background: var(--teal-soft);
  filter: none;
}

/* Logs */
.logs-panel {
  margin-top: 28px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #234754;
  border-radius: 16px;
  background: var(--navy);
  color: #dcecea;
  scroll-margin-top: 96px;
}

.logs-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #244854;
}

.logs-kicker {
  margin: 0 0 3px;
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 650;
}

.logs-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  color: #f3fbf9;
}

.logs-head p {
  margin: 5px 0 0;
  color: #9fbfbe;
  font-size: 0.8rem;
}

.logs-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #b9d4d1;
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
}

.switch input {
  accent-color: var(--amber);
}

.log-button {
  border: 1px solid #2d5a63;
  background: #123b47;
  color: #dff1ee;
  padding: 7px 11px;
  font-size: 0.74rem;
}

.log-button:hover {
  background: #1a4a56;
  filter: none;
}

.log-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 6px;
}

.log-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid #1f424d;
  border-radius: 9px;
  background: #0a222d;
}

.log-filter {
  padding: 6px 9px;
  border-radius: 6px;
  background: transparent;
  color: #9fbfbe;
  font-size: 0.71rem;
  font-weight: 600;
}

.log-filter span {
  margin-left: 3px;
  color: #6e9799;
  font-variant-numeric: tabular-nums;
}

.log-filter:hover {
  background: #173b46;
  color: #ffffff;
  filter: none;
}

.log-filter.is-active {
  background: #1c4b55;
  color: #ffffff;
}

.log-filter.is-active span {
  color: #d8ece8;
}

.log-updated {
  color: #7fa3a2;
  font-size: 0.68rem;
}

.audit {
  max-height: 430px;
  margin: 0;
  padding: 0;
  overflow: auto;
  border-top: 1px solid #244854;
  list-style: none;
  scrollbar-color: #315b64 #0b2733;
}

.audit li {
  display: grid;
  grid-template-columns: 108px 150px 104px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid #1c3d48;
  color: #b8d2d0;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.audit time {
  color: #7ea2a1;
  font-variant-numeric: tabular-nums;
}

.log-event {
  color: #e2f1ee;
  font-weight: 650;
}

.log-outcome {
  justify-self: start;
  padding: 2px 7px;
  border: 1px solid #2d5a63;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 650;
}

.log-outcome[data-outcome="ok"] {
  border-color: rgba(111, 208, 165, 0.34);
  background: rgba(111, 208, 165, 0.11);
  color: #8fe0bd;
}

.log-outcome[data-outcome="denied"] {
  border-color: rgba(233, 181, 95, 0.34);
  background: rgba(233, 181, 95, 0.1);
  color: #f0c986;
}

.log-outcome[data-outcome="failed"] {
  border-color: rgba(221, 128, 112, 0.34);
  background: rgba(221, 128, 112, 0.1);
  color: #eda194;
}

.log-detail {
  color: #8fb0af;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.6;
}

.log-empty {
  margin: 18px 0 4px;
  color: #8fb0af;
  font-size: 0.78rem;
}

/* Save bar */
.savebar {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -12px 30px rgba(17, 42, 53, 0.06);
  backdrop-filter: blur(10px);
}

.savebar-copy {
  display: grid;
  gap: 1px;
  margin-right: auto;
}

.savebar-copy strong {
  font-size: 0.8rem;
}

.savebar-copy span {
  color: var(--muted);
  font-size: 0.7rem;
}

#message {
  max-width: 38ch;
  margin: 0;
  color: var(--teal);
  font-size: 0.76rem;
}

/* Login */
.gate {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--navy);
}

.gate-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  width: min(980px, 100%);
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 40px 100px rgba(3, 18, 25, 0.42);
}

.gate-brand {
  display: flex;
  flex-direction: column;
  padding: 42px;
  background: var(--navy);
  color: #eefaf7;
}

.gate-brand .brand {
  margin-bottom: 40px;
}

.gate-brand h2 {
  max-width: 11ch;
  margin: auto 0 14px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.gate-brand p {
  max-width: 34ch;
  margin: 0;
  color: #a9cbc7;
  font-size: 0.86rem;
}

.gate-wave {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 54px;
  margin-top: 30px;
}

.gate-wave i {
  width: 5px;
  height: 30%;
  border-radius: 999px;
  background: linear-gradient(#e9b55f, #3a8f89);
}

.gate-wave i:nth-child(2) { height: 55%; }
.gate-wave i:nth-child(3) { height: 82%; }
.gate-wave i:nth-child(4) { height: 42%; }
.gate-wave i:nth-child(5) { height: 100%; }
.gate-wave i:nth-child(6) { height: 64%; }
.gate-wave i:nth-child(7) { height: 38%; }

.gate-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
}

.gate-panel h1 {
  margin: 0 0 5px;
  font-family: var(--display);
  font-size: 2.45rem;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.gate-panel #hint {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.gate-panel form button {
  width: 100%;
  margin-top: 22px;
  padding: 12px 16px;
}

.gate-panel small {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.gate-panel code {
  font-family: var(--mono);
  font-size: 0.7rem;
}

#message {
  min-height: 1.2em;
}

/* Responsive */
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 228px minmax(0, 1fr);
  }

  .panel,
  .panel-wide {
    grid-column: span 6;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .signal-badge {
    width: 96px;
    height: 96px;
    font-size: 2rem;
  }
}

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

  .sidebar {
    position: relative;
    height: auto;
    padding: 16px 18px;
  }

  .rail-status,
  .sidebar-bottom,
  .nav-label {
    display: none;
  }

  .brand {
    margin-bottom: 12px;
  }

  nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-link {
    flex: none;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: 6px 6px 0 0;
    padding: 8px 11px;
    font-size: 0.82rem;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    border-bottom-color: var(--amber);
  }

  .topline {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 0 16px;
  }

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

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-signal {
    display: none;
  }

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

  .stats article + article {
    border-left: 0;
  }

  .stats article:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .stats article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .stat-mode {
    grid-column: 1 / -1;
    border-left: 0 !important;
  }

  .panel,
  .panel-wide {
    grid-column: 1 / -1;
  }

  .logs-head {
    flex-direction: column;
  }

  .audit li {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 4px 10px;
  }

  .log-outcome {
    grid-column: 2;
    justify-self: start;
  }

  .log-detail {
    grid-column: 2;
  }

  .savebar {
    flex-wrap: wrap;
  }

  .savebar-copy {
    flex: 1 1 100%;
  }

  .gate-shell {
    grid-template-columns: 1fr;
  }

  .gate-brand {
    padding: 26px 28px;
  }

  .gate-brand .brand {
    margin: 0;
  }

  .gate-brand h2,
  .gate-brand p,
  .gate-wave {
    display: none;
  }

  .gate-panel {
    padding: 30px 28px;
  }
}

@media (max-width: 560px) {
  main {
    padding: 0 14px 28px;
  }

  .hero {
    padding: 26px 22px;
  }

  .hero h2 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .stats article {
    padding: 14px 15px;
  }

  .stats strong {
    font-size: 1.7rem;
  }

  .panel {
    padding: 20px;
  }

  .section-heading {
    flex-wrap: wrap;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-grid .span-2 {
    grid-column: auto;
  }

  .savebar button {
    width: 100%;
  }

  .gate {
    padding: 12px;
  }

  .gate-panel {
    padding: 26px 22px;
  }

  .gate-panel h1 {
    font-size: 2.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
