:root {
  --background: #efe6d7;
  --background-deep: #d8e0dc;
  --surface: rgba(255, 250, 241, 0.8);
  --foreground: #1b2428;
  --muted: #5b6a70;
  --line: rgba(27, 36, 40, 0.12);
  --accent: #0b615a;
  --accent-strong: #083f39;
  --danger: #922f2f;
  --highlight: #c88b3f;
  --shadow: 0 24px 60px rgba(27, 36, 40, 0.12);
}

body[data-theme="harbor"] {
  --background: #efe6d7;
  --background-deep: #d8e0dc;
  --surface: rgba(255, 250, 241, 0.8);
  --foreground: #1b2428;
  --muted: #5b6a70;
  --line: rgba(27, 36, 40, 0.12);
  --accent: #0b615a;
  --accent-strong: #083f39;
  --danger: #922f2f;
  --highlight: #c88b3f;
  --shadow: 0 24px 60px rgba(27, 36, 40, 0.12);
}

body[data-theme="midnight"] {
  --background: #10181d;
  --background-deep: #1e2a33;
  --surface: rgba(18, 29, 36, 0.82);
  --foreground: #eef4f6;
  --muted: #9cb0b8;
  --line: rgba(220, 231, 236, 0.1);
  --accent: #5bc0be;
  --accent-strong: #9ad1d4;
  --danger: #ff8c8c;
  --highlight: #f4b860;
  --shadow: 0 28px 70px rgba(4, 9, 14, 0.35);
}

body[data-theme="atlas"] {
  --background: #f1dfc4;
  --background-deep: #d6b384;
  --surface: rgba(255, 246, 232, 0.82);
  --foreground: #2c221c;
  --muted: #6d5d4c;
  --line: rgba(44, 34, 28, 0.1);
  --accent: #8f5f24;
  --accent-strong: #573817;
  --danger: #9e4238;
  --highlight: #d8a34b;
  --shadow: 0 24px 60px rgba(72, 42, 17, 0.16);
}

body[data-theme="arctic"] {
  --background: #e6f1f8;
  --background-deep: #c2dbe7;
  --surface: rgba(250, 253, 255, 0.84);
  --foreground: #152730;
  --muted: #58727e;
  --line: rgba(21, 39, 48, 0.1);
  --accent: #0a6e86;
  --accent-strong: #064757;
  --danger: #8f3d48;
  --highlight: #6fb4c8;
  --shadow: 0 24px 60px rgba(20, 52, 67, 0.12);
}

body[data-theme="terminal"] {
  --background: #dde4d0;
  --background-deep: #a7b88f;
  --surface: rgba(247, 251, 240, 0.82);
  --foreground: #1d2718;
  --muted: #59684f;
  --line: rgba(29, 39, 24, 0.11);
  --accent: #3b6a36;
  --accent-strong: #203d1e;
  --danger: #8a3a28;
  --highlight: #d39b2e;
  --shadow: 0 24px 60px rgba(29, 39, 24, 0.14);
}

body[data-theme="dockside"] {
  --background: #f8dfd6;
  --background-deep: #cfe6ee;
  --surface: rgba(255, 251, 247, 0.88);
  --foreground: #22212c;
  --muted: #6e6b7c;
  --line: rgba(34, 33, 44, 0.1);
  --accent: #1b7f91;
  --accent-strong: #144d59;
  --danger: #a24c51;
  --highlight: #f0a46b;
  --shadow: 0 22px 56px rgba(57, 73, 88, 0.12);
}

body[data-theme="monsoon"] {
  --background: #18232c;
  --background-deep: #2c4654;
  --surface: rgba(18, 39, 49, 0.74);
  --foreground: #edf5f7;
  --muted: #a7bac4;
  --line: rgba(237, 245, 247, 0.1);
  --accent: #4aa4b5;
  --accent-strong: #7ac2cf;
  --danger: #ff9d8c;
  --highlight: #d7b57d;
  --shadow: 0 30px 70px rgba(5, 11, 15, 0.35);
}

body[data-theme="ledger"] {
  --background: #f5efdf;
  --background-deep: #e6dbc3;
  --surface: rgba(255, 252, 245, 0.88);
  --foreground: #30281f;
  --muted: #71675a;
  --line: rgba(48, 40, 31, 0.12);
  --accent: #8b4e2d;
  --accent-strong: #4f2b17;
  --danger: #9a4138;
  --highlight: #c69855;
  --shadow: 0 16px 34px rgba(82, 64, 40, 0.09);
}

body[data-theme="runway"] {
  --background: #eef1f4;
  --background-deep: #d5dbe2;
  --surface: rgba(255, 255, 255, 0.9);
  --foreground: #192028;
  --muted: #69737d;
  --line: rgba(25, 32, 40, 0.09);
  --accent: #23607d;
  --accent-strong: #133748;
  --danger: #9e4a4f;
  --highlight: #89b7c7;
  --shadow: 0 14px 30px rgba(45, 64, 80, 0.08);
}

body[data-theme="foundry"] {
  --background: #231c1d;
  --background-deep: #4b3634;
  --surface: rgba(33, 25, 26, 0.9);
  --foreground: #f4efea;
  --muted: #c0b1a5;
  --line: rgba(244, 239, 234, 0.11);
  --accent: #c05a31;
  --accent-strong: #f08b59;
  --danger: #ff9b7e;
  --highlight: #d9a25c;
  --shadow: 0 28px 70px rgba(8, 4, 4, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--foreground);
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(200, 139, 63, 0.24), transparent 24%),
    radial-gradient(circle at top right, rgba(11, 97, 90, 0.14), transparent 28%),
    linear-gradient(180deg, var(--background) 0%, #f7f2e9 42%, var(--background-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 80%);
}

body[data-theme="midnight"]::before {
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

body[data-theme="midnight"] {
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(91, 192, 190, 0.16), transparent 22%),
    radial-gradient(circle at bottom right, rgba(244, 184, 96, 0.1), transparent 24%),
    linear-gradient(180deg, #0d1418 0%, #152028 44%, #1b2730 100%);
}

body[data-theme="atlas"] {
  font-family: "Gill Sans", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(216, 163, 75, 0.26), transparent 24%),
    linear-gradient(180deg, #ecd8b8 0%, #f5e7cf 46%, #d5b78e 100%);
}

body[data-theme="arctic"] {
  font-family: "Verdana", "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, #edf7fc 0%, #f8fcff 42%, #dbeaf2 100%);
}

body[data-theme="terminal"] {
  font-family: "Arial", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(211, 155, 46, 0.18), transparent 18%),
    linear-gradient(180deg, #d8e0c8 0%, #edf2e4 42%, #b7c59d 100%);
}

body[data-theme="dockside"] {
  font-family: "Gill Sans", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(240, 164, 107, 0.24), transparent 22%),
    radial-gradient(circle at bottom right, rgba(27, 127, 145, 0.16), transparent 28%),
    linear-gradient(180deg, #f9e6dd 0%, #fff7f0 40%, #d7ebf1 100%);
}

body[data-theme="monsoon"] {
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(74, 164, 181, 0.18), transparent 20%),
    radial-gradient(circle at 80% 15%, rgba(215, 181, 125, 0.14), transparent 18%),
    linear-gradient(180deg, #16212a 0%, #1d3340 44%, #355260 100%);
}

body[data-theme="ledger"] {
  font-family: "Georgia", "Times New Roman", serif;
  background:
    linear-gradient(180deg, #f9f4e8 0%, #f4eddc 42%, #e1d7bf 100%);
}

body[data-theme="runway"] {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, #f7f9fb 0%, #eff2f6 40%, #dde4ea 100%);
}

body[data-theme="foundry"] {
  font-family: "Segoe UI", "Arial", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(192, 90, 49, 0.18), transparent 18%),
    linear-gradient(180deg, #241d1e 0%, #2b2122 44%, #4f3c39 100%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

body[data-theme="midnight"] h1,
body[data-theme="midnight"] h2,
body[data-theme="midnight"] h3,
body[data-theme="midnight"] h4 {
  font-family: "Georgia", "Times New Roman", serif;
}

body[data-theme="atlas"] h1,
body[data-theme="atlas"] h2,
body[data-theme="atlas"] h3,
body[data-theme="atlas"] h4 {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

body[data-theme="arctic"] h1,
body[data-theme="arctic"] h2,
body[data-theme="arctic"] h3,
body[data-theme="arctic"] h4 {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

body[data-theme="terminal"] h1,
body[data-theme="terminal"] h2,
body[data-theme="terminal"] h3,
body[data-theme="terminal"] h4 {
  font-family: "Arial Narrow", "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body[data-theme="dockside"] h1,
body[data-theme="dockside"] h2,
body[data-theme="dockside"] h3,
body[data-theme="dockside"] h4 {
  font-family: "Georgia", "Palatino Linotype", serif;
}

body[data-theme="monsoon"] h1,
body[data-theme="monsoon"] h2,
body[data-theme="monsoon"] h3,
body[data-theme="monsoon"] h4 {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

body[data-theme="ledger"] h1,
body[data-theme="ledger"] h2,
body[data-theme="ledger"] h3,
body[data-theme="ledger"] h4 {
  font-family: "Times New Roman", Georgia, serif;
  letter-spacing: -0.02em;
}

body[data-theme="runway"] h1,
body[data-theme="runway"] h2,
body[data-theme="runway"] h3,
body[data-theme="runway"] h4 {
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  letter-spacing: -0.03em;
}

body[data-theme="foundry"] h1,
body[data-theme="foundry"] h2,
body[data-theme="foundry"] h3,
body[data-theme="foundry"] h4 {
  font-family: "Arial Narrow", "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 1rem 0 0;
}

.header-frame,
.page-shell,
.dashboard-shell,
.auth-shell,
.footer-shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.header-frame {
  background: rgba(255, 250, 241, 0.74);
  border: 1px solid rgba(27, 36, 40, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 0.85rem 1rem;
}

body[data-theme="midnight"] .header-frame,
body[data-theme="midnight"] .hero-copy,
body[data-theme="midnight"] .hero-card,
body[data-theme="midnight"] .service-card,
body[data-theme="midnight"] .statement-card,
body[data-theme="midnight"] .contact-form,
body[data-theme="midnight"] .auth-panel,
body[data-theme="midnight"] .submission-card,
body[data-theme="midnight"] .empty-state,
body[data-theme="midnight"] .detail-card,
body[data-theme="midnight"] .network-map-card,
body[data-theme="midnight"] .contact-detail-card,
body[data-theme="midnight"] .overview-card,
body[data-theme="midnight"] .cta-banner,
body[data-theme="midnight"] .theme-card {
  background: rgba(14, 24, 31, 0.88);
  border-color: rgba(154, 209, 212, 0.16);
}

body[data-theme="atlas"] .header-frame,
body[data-theme="atlas"] .hero-copy,
body[data-theme="atlas"] .hero-card,
body[data-theme="atlas"] .service-card,
body[data-theme="atlas"] .statement-card,
body[data-theme="atlas"] .contact-form,
body[data-theme="atlas"] .auth-panel,
body[data-theme="atlas"] .submission-card,
body[data-theme="atlas"] .empty-state,
body[data-theme="atlas"] .detail-card,
body[data-theme="atlas"] .network-map-card,
body[data-theme="atlas"] .contact-detail-card,
body[data-theme="atlas"] .overview-card,
body[data-theme="atlas"] .cta-banner,
body[data-theme="atlas"] .theme-card {
  background: rgba(255, 248, 236, 0.9);
  border-color: rgba(143, 95, 36, 0.18);
  box-shadow: 0 18px 44px rgba(109, 70, 26, 0.12);
}

body[data-theme="arctic"] .header-frame,
body[data-theme="arctic"] .hero-copy,
body[data-theme="arctic"] .hero-card,
body[data-theme="arctic"] .service-card,
body[data-theme="arctic"] .statement-card,
body[data-theme="arctic"] .contact-form,
body[data-theme="arctic"] .auth-panel,
body[data-theme="arctic"] .submission-card,
body[data-theme="arctic"] .empty-state,
body[data-theme="arctic"] .detail-card,
body[data-theme="arctic"] .network-map-card,
body[data-theme="arctic"] .contact-detail-card,
body[data-theme="arctic"] .overview-card,
body[data-theme="arctic"] .cta-banner,
body[data-theme="arctic"] .theme-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(10, 110, 134, 0.12);
  box-shadow: 0 16px 38px rgba(41, 93, 112, 0.08);
}

body[data-theme="terminal"] .header-frame,
body[data-theme="terminal"] .hero-copy,
body[data-theme="terminal"] .hero-card,
body[data-theme="terminal"] .service-card,
body[data-theme="terminal"] .statement-card,
body[data-theme="terminal"] .contact-form,
body[data-theme="terminal"] .auth-panel,
body[data-theme="terminal"] .submission-card,
body[data-theme="terminal"] .empty-state,
body[data-theme="terminal"] .detail-card,
body[data-theme="terminal"] .network-map-card,
body[data-theme="terminal"] .contact-detail-card,
body[data-theme="terminal"] .overview-card,
body[data-theme="terminal"] .cta-banner,
body[data-theme="terminal"] .theme-card {
  background: rgba(245, 249, 236, 0.9);
  border-color: rgba(32, 61, 30, 0.16);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(29, 39, 24, 0.08);
}

body[data-theme="dockside"] .header-frame,
body[data-theme="dockside"] .hero-copy,
body[data-theme="dockside"] .hero-card,
body[data-theme="dockside"] .service-card,
body[data-theme="dockside"] .statement-card,
body[data-theme="dockside"] .contact-form,
body[data-theme="dockside"] .auth-panel,
body[data-theme="dockside"] .submission-card,
body[data-theme="dockside"] .empty-state,
body[data-theme="dockside"] .detail-card,
body[data-theme="dockside"] .network-map-card,
body[data-theme="dockside"] .contact-detail-card,
body[data-theme="dockside"] .overview-card,
body[data-theme="dockside"] .cta-banner,
body[data-theme="dockside"] .theme-card {
  background: rgba(255, 252, 248, 0.9);
  border-color: rgba(27, 127, 145, 0.1);
  border-radius: 30px;
  box-shadow: 0 22px 52px rgba(84, 116, 131, 0.1);
}

body[data-theme="monsoon"] .header-frame,
body[data-theme="monsoon"] .hero-copy,
body[data-theme="monsoon"] .hero-card,
body[data-theme="monsoon"] .service-card,
body[data-theme="monsoon"] .statement-card,
body[data-theme="monsoon"] .contact-form,
body[data-theme="monsoon"] .auth-panel,
body[data-theme="monsoon"] .submission-card,
body[data-theme="monsoon"] .empty-state,
body[data-theme="monsoon"] .detail-card,
body[data-theme="monsoon"] .network-map-card,
body[data-theme="monsoon"] .contact-detail-card,
body[data-theme="monsoon"] .overview-card,
body[data-theme="monsoon"] .cta-banner,
body[data-theme="monsoon"] .theme-card {
  background: rgba(18, 39, 49, 0.72);
  border-color: rgba(122, 194, 207, 0.18);
  backdrop-filter: blur(20px);
}

body[data-theme="ledger"] .header-frame,
body[data-theme="ledger"] .hero-copy,
body[data-theme="ledger"] .hero-card,
body[data-theme="ledger"] .service-card,
body[data-theme="ledger"] .statement-card,
body[data-theme="ledger"] .contact-form,
body[data-theme="ledger"] .auth-panel,
body[data-theme="ledger"] .submission-card,
body[data-theme="ledger"] .empty-state,
body[data-theme="ledger"] .detail-card,
body[data-theme="ledger"] .network-map-card,
body[data-theme="ledger"] .contact-detail-card,
body[data-theme="ledger"] .overview-card,
body[data-theme="ledger"] .cta-banner,
body[data-theme="ledger"] .theme-card {
  background: rgba(255, 252, 245, 0.88);
  border-color: rgba(48, 40, 31, 0.14);
  border-radius: 10px;
  box-shadow: none;
}

body[data-theme="runway"] .header-frame,
body[data-theme="runway"] .hero-copy,
body[data-theme="runway"] .hero-card,
body[data-theme="runway"] .service-card,
body[data-theme="runway"] .statement-card,
body[data-theme="runway"] .contact-form,
body[data-theme="runway"] .auth-panel,
body[data-theme="runway"] .submission-card,
body[data-theme="runway"] .empty-state,
body[data-theme="runway"] .detail-card,
body[data-theme="runway"] .network-map-card,
body[data-theme="runway"] .contact-detail-card,
body[data-theme="runway"] .overview-card,
body[data-theme="runway"] .cta-banner,
body[data-theme="runway"] .theme-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(35, 96, 125, 0.08);
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(72, 91, 108, 0.06);
}

body[data-theme="foundry"] .header-frame,
body[data-theme="foundry"] .hero-copy,
body[data-theme="foundry"] .hero-card,
body[data-theme="foundry"] .service-card,
body[data-theme="foundry"] .statement-card,
body[data-theme="foundry"] .contact-form,
body[data-theme="foundry"] .auth-panel,
body[data-theme="foundry"] .submission-card,
body[data-theme="foundry"] .empty-state,
body[data-theme="foundry"] .detail-card,
body[data-theme="foundry"] .network-map-card,
body[data-theme="foundry"] .contact-detail-card,
body[data-theme="foundry"] .overview-card,
body[data-theme="foundry"] .cta-banner,
body[data-theme="foundry"] .theme-card {
  background: rgba(36, 29, 30, 0.9);
  border-color: rgba(240, 139, 89, 0.14);
  border-radius: 8px;
}

.header-top,
.header-bottom,
.hero,
.hero-metrics,
.dashboard-header,
.dashboard-overview,
.submission-topline,
.submission-meta,
.submission-actions,
.split-section,
.contact-layout,
.network-panel,
.cta-banner,
.footer-shell,
.footer-columns {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

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

.logo-mark {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 70%);
  color: white;
  font-weight: 800;
  letter-spacing: 0.12em;
}

body[data-theme="midnight"] .logo-mark {
  border-radius: 0.8rem;
  box-shadow: 0 0 0 1px rgba(154, 209, 212, 0.18), 0 12px 30px rgba(6, 15, 20, 0.35);
}

body[data-theme="atlas"] .logo-mark {
  border-radius: 0.6rem;
  transform: rotate(-8deg);
  box-shadow: 0 10px 18px rgba(111, 72, 29, 0.16);
}

body[data-theme="arctic"] .logo-mark {
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #0a6e86 0%, #6fb4c8 100%);
}

body[data-theme="terminal"] .logo-mark {
  border-radius: 0.2rem;
  background: linear-gradient(135deg, #2d5529 0%, #203d1e 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

body[data-theme="dockside"] .logo-mark {
  border-radius: 1.4rem;
  background: linear-gradient(135deg, #1b7f91 0%, #f0a46b 100%);
  box-shadow: 0 12px 24px rgba(101, 144, 160, 0.18);
}

body[data-theme="monsoon"] .logo-mark {
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #4aa4b5 0%, #254755 100%);
  box-shadow: 0 0 0 1px rgba(122, 194, 207, 0.14), 0 16px 28px rgba(5, 14, 20, 0.22);
}

body[data-theme="ledger"] .logo-mark {
  border-radius: 0;
  background: linear-gradient(135deg, #8b4e2d 0%, #4f2b17 100%);
}

body[data-theme="runway"] .logo-mark {
  border-radius: 0.35rem;
  background: linear-gradient(135deg, #23607d 0%, #89b7c7 100%);
}

body[data-theme="foundry"] .logo-mark {
  border-radius: 0.25rem;
  background: linear-gradient(135deg, #c05a31 0%, #6d3017 100%);
  box-shadow: 0 12px 26px rgba(17, 7, 7, 0.24);
}

.brand-copy {
  display: grid;
  gap: 0.16rem;
}

.brand-copy strong {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.brand-copy span,
.contact-label,
.nav-note,
.service-kicker,
.footer-label {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-contact,
.header-cta-group,
.main-nav,
.mobile-nav,
.mobile-menu-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.header-contact {
  justify-content: flex-end;
}

.mobile-menu {
  display: none;
}

.mobile-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(11, 97, 90, 0.18);
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu[open] summary {
  background: color-mix(in srgb, var(--accent) 14%, white);
}

.mobile-menu-panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: min(320px, calc(100vw - 1.5rem));
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 250, 241, 0.96);
  border: 1px solid rgba(27, 36, 40, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.mobile-nav {
  flex-direction: column;
  align-items: stretch;
}

.mobile-nav a {
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.mobile-nav a.active {
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: var(--accent-strong);
}

.mobile-menu-meta {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(27, 36, 40, 0.08);
  flex-direction: column;
  align-items: flex-start;
}

.mobile-menu-meta > div {
  display: grid;
  gap: 0.15rem;
}

.header-contact > div {
  display: grid;
  gap: 0.15rem;
}

.main-nav a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.main-nav a.active,
.main-nav a:hover {
  background: color-mix(in srgb, var(--accent) 10%, white);
}

.page-shell,
.dashboard-shell,
.auth-shell {
  padding: 2rem 0 4rem;
}

.hero,
.split-section,
.contact-layout,
.network-panel {
  align-items: stretch;
}

.hero {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.85fr);
  padding: 2.8rem 0 1.8rem;
}

.hero-copy,
.hero-card,
.service-card,
.statement-card,
.contact-form,
.auth-panel,
.submission-card,
.empty-state,
.detail-card,
.network-map-card,
.contact-detail-card,
.overview-card,
.cta-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: 28px;
}

.hero-copy,
.hero-card,
.statement-card,
.contact-detail-card,
.network-map-card,
.auth-panel {
  padding: 1.6rem;
}

.hero-copy h1,
.page-hero h1,
.auth-panel h1 {
  margin: 0;
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
}

.hero-card h2,
.section-heading h2,
.statement-card h2,
.detail-card h2,
.cta-banner h2,
.network-copy h2,
.dashboard-header h1 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
}

.hero-card p,
.lead,
.section-heading p,
.service-card p,
.statement-card p,
.detail-card p,
.contact-detail-card p,
.submission-card p,
.auth-panel p,
.network-copy p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 800;
}

.hero-metrics {
  margin-top: 1.25rem;
  justify-content: flex-start;
}

.hero-metrics > div {
  min-width: 180px;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(27, 36, 40, 0.08);
}

.hero-metrics span,
.overview-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-metrics strong,
.overview-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.05rem;
}

.standout {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--highlight) 28%, transparent) 0%, transparent 32%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 94%, transparent) 0%, color-mix(in srgb, var(--accent-strong) 92%, transparent) 100%);
  color: white;
}

.standout .eyebrow,
.standout p {
  color: rgba(255, 255, 255, 0.8);
}

.services-section,
.contact-section,
.page-hero,
.card-grid,
.cta-banner,
.dashboard-overview {
  margin-top: 2rem;
}

.section-heading,
.page-hero {
  max-width: 760px;
}

.section-heading {
  width: 100%;
}

.page-hero.compact {
  max-width: 700px;
}

.service-grid,
.submission-list,
.card-grid.three-up {
  display: grid;
  gap: 1rem;
}

.service-grid,
.card-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.submission-card,
.empty-state,
.detail-card,
.overview-card,
.contact-form {
  padding: 1.35rem;
}

.service-card h3,
.submission-card h2,
.contact-detail-card h2 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.28rem;
}

.detail-card h2 {
  margin: 0.4rem 0 0.6rem;
}

.statement-card,
.contact-detail-card {
  flex: 1 1 320px;
}

.statement-card.accent,
.contact-detail-card {
  background: linear-gradient(180deg, rgba(215, 235, 231, 0.88), rgba(255, 250, 241, 0.86));
}

.bullet-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--foreground);
  line-height: 1.7;
}

.contact-form,
.login-form {
  display: grid;
  gap: 1rem;
}

.contact-form {
  flex: 1 1 540px;
  width: 100%;
}

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

label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(27, 36, 40, 0.12);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.9rem 0.95rem;
  color: var(--foreground);
}

select {
  appearance: none;
}

textarea {
  resize: vertical;
}

.primary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.92rem;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

body[data-theme="midnight"] .primary-button,
body[data-theme="midnight"] .ghost-button,
body[data-theme="midnight"] .danger-button {
  border-radius: 14px;
}

body[data-theme="atlas"] .primary-button,
body[data-theme="atlas"] .ghost-button,
body[data-theme="atlas"] .danger-button {
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(124, 83, 35, 0.12);
}

body[data-theme="arctic"] .primary-button,
body[data-theme="arctic"] .ghost-button,
body[data-theme="arctic"] .danger-button {
  border-radius: 10px;
}

body[data-theme="terminal"] .primary-button,
body[data-theme="terminal"] .ghost-button,
body[data-theme="terminal"] .danger-button {
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
}

body[data-theme="dockside"] .primary-button,
body[data-theme="dockside"] .ghost-button,
body[data-theme="dockside"] .danger-button {
  border-radius: 999px;
}

body[data-theme="monsoon"] .primary-button,
body[data-theme="monsoon"] .ghost-button,
body[data-theme="monsoon"] .danger-button {
  border-radius: 14px;
  box-shadow: 0 12px 20px rgba(8, 16, 20, 0.16);
}

body[data-theme="ledger"] .primary-button,
body[data-theme="ledger"] .ghost-button,
body[data-theme="ledger"] .danger-button {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

body[data-theme="runway"] .primary-button,
body[data-theme="runway"] .ghost-button,
body[data-theme="runway"] .danger-button {
  border-radius: 4px;
}

body[data-theme="foundry"] .primary-button,
body[data-theme="foundry"] .ghost-button,
body[data-theme="foundry"] .danger-button {
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.primary-button {
  background: var(--accent);
  color: white;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.38);
  color: var(--accent-strong);
  border-color: rgba(11, 97, 90, 0.22);
}

.danger-button {
  background: rgba(146, 47, 47, 0.12);
  color: var(--danger);
  border-color: rgba(146, 47, 47, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.status,
.inline-error {
  margin: 0;
  border-radius: 16px;
}

.status {
  padding: 0.9rem 1rem;
}

.status.success {
  background: rgba(11, 97, 90, 0.12);
  color: var(--accent-strong);
}

.status.error,
.inline-error {
  background: rgba(146, 47, 47, 0.1);
  color: var(--danger);
}

.inline-error {
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
}

.auth-shell {
  min-height: 72vh;
  display: grid;
  place-items: center;
}

.auth-panel {
  width: min(520px, 100%);
}

.dashboard-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.dashboard-overview {
  align-items: stretch;
}

.overview-card {
  flex: 1 1 220px;
}

.submission-list {
  margin-top: 1.5rem;
}

.submission-card {
  display: grid;
  gap: 0.85rem;
}

.submission-topline span,
.submission-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.submission-meta {
  justify-content: flex-start;
}

.submission-actions {
  justify-content: flex-start;
}

.theme-panel {
  margin-top: 1.5rem;
}

.theme-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.theme-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.theme-card.selected {
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}

.theme-copy h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.theme-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.theme-swatch {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.55rem;
  height: 78px;
}

.theme-swatch span {
  display: block;
  border-radius: 16px;
}

.theme-harbor span:nth-child(1) { background: #0b615a; }
.theme-harbor span:nth-child(2) { background: #f4efe4; }
.theme-harbor span:nth-child(3) { background: #c88b3f; }

.theme-signal span:nth-child(1) { background: #17130f; }
.theme-signal span:nth-child(2) { background: #ffb84f; }
.theme-signal span:nth-child(3) { background: #b95f1d; }

.theme-echelon span:nth-child(1) { background: #d9e6ef; }
.theme-echelon span:nth-child(2) { background: #ffffff; }
.theme-echelon span:nth-child(3) { background: #5d819b; }

.theme-mercantile span:nth-child(1) { background: #8b4e2d; }
.theme-mercantile span:nth-child(2) { background: #f5efdf; }
.theme-mercantile span:nth-child(3) { background: #c69855; }

.theme-vector span:nth-child(1) { background: #23607d; }
.theme-vector span:nth-child(2) { background: #eef3f8; }
.theme-vector span:nth-child(3) { background: #89b7c7; }

.theme-arctic span:nth-child(1) { background: #0a6e86; }
.theme-arctic span:nth-child(2) { background: #edf8fd; }
.theme-arctic span:nth-child(3) { background: #6fb4c8; }

.theme-terminal span:nth-child(1) { background: #3b6a36; }
.theme-terminal span:nth-child(2) { background: #f0f6e4; }
.theme-terminal span:nth-child(3) { background: #d39b2e; }

.theme-dockside span:nth-child(1) { background: #1b7f91; }
.theme-dockside span:nth-child(2) { background: #fff5ef; }
.theme-dockside span:nth-child(3) { background: #f0a46b; }

.theme-monsoon span:nth-child(1) { background: #203a46; }
.theme-monsoon span:nth-child(2) { background: #4aa4b5; }
.theme-monsoon span:nth-child(3) { background: #d7b57d; }

.theme-ledger span:nth-child(1) { background: #8b4e2d; }
.theme-ledger span:nth-child(2) { background: #faf4e8; }
.theme-ledger span:nth-child(3) { background: #c69855; }

.theme-runway span:nth-child(1) { background: #23607d; }
.theme-runway span:nth-child(2) { background: #ffffff; }
.theme-runway span:nth-child(3) { background: #89b7c7; }

.theme-foundry span:nth-child(1) { background: #c05a31; }
.theme-foundry span:nth-child(2) { background: #241d1e; }
.theme-foundry span:nth-child(3) { background: #d9a25c; }

body[data-theme="harbor"] .theme-card,
body[data-theme="midnight"] .theme-card,
body[data-theme="atlas"] .theme-card,
body[data-theme="runway"] .theme-card,
body[data-theme="foundry"] .theme-card {
  position: relative;
  overflow: hidden;
}

body[data-theme="harbor"] .theme-card::after,
body[data-theme="midnight"] .theme-card::after,
body[data-theme="atlas"] .theme-card::after,
body[data-theme="runway"] .theme-card::after,
body[data-theme="foundry"] .theme-card::after {
  content: "";
  position: absolute;
  inset: auto 1.2rem 1.2rem auto;
  width: 78px;
  height: 78px;
  opacity: 0.08;
  pointer-events: none;
  background: linear-gradient(135deg, var(--accent), var(--highlight));
}

body[data-theme="midnight"] .hero {
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.15fr);
}

body[data-theme="midnight"] .hero-copy {
  order: 2;
}

body[data-theme="midnight"] .hero-card,
body[data-theme="midnight"] .service-card,
body[data-theme="midnight"] .detail-card {
  box-shadow: 0 20px 40px rgba(6, 14, 18, 0.35);
}

body[data-theme="midnight"] .service-card,
body[data-theme="midnight"] .detail-card {
  position: relative;
  overflow: hidden;
}

body[data-theme="midnight"] .service-card::before,
body[data-theme="midnight"] .detail-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
}

body[data-theme="atlas"] .hero-card,
body[data-theme="atlas"] .statement-card.accent,
body[data-theme="atlas"] .contact-detail-card {
  background:
    linear-gradient(180deg, rgba(255, 246, 230, 0.96), rgba(245, 227, 195, 0.86));
}

body[data-theme="atlas"] .service-card,
body[data-theme="atlas"] .detail-card {
  border-style: solid;
  border-width: 1px;
  position: relative;
}

body[data-theme="atlas"] .service-card::after,
body[data-theme="atlas"] .detail-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(143, 95, 36, 0.12);
  border-radius: 20px;
  pointer-events: none;
}

body[data-theme="arctic"] .header-frame,
body[data-theme="arctic"] .theme-card,
body[data-theme="arctic"] .service-card,
body[data-theme="arctic"] .detail-card,
body[data-theme="arctic"] .contact-form,
body[data-theme="arctic"] .submission-card {
  backdrop-filter: none;
}

body[data-theme="arctic"] .hero {
  gap: 1rem;
}

body[data-theme="arctic"] .hero-card,
body[data-theme="arctic"] .service-card,
body[data-theme="arctic"] .detail-card {
  border-left: 4px solid color-mix(in srgb, var(--accent) 45%, white);
}

body[data-theme="terminal"]::before {
  background-size: 26px 26px;
}

body[data-theme="terminal"] .hero-card,
body[data-theme="terminal"] .service-card,
body[data-theme="terminal"] .detail-card,
body[data-theme="terminal"] .submission-card,
body[data-theme="terminal"] .theme-card {
  position: relative;
}

body[data-theme="terminal"] .hero-card::before,
body[data-theme="terminal"] .service-card::before,
body[data-theme="terminal"] .detail-card::before,
body[data-theme="terminal"] .submission-card::before,
body[data-theme="terminal"] .theme-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent), var(--highlight));
}

body[data-theme="terminal"] .hero-metrics > div {
  border-radius: 6px;
}

body[data-theme="dockside"] .hero {
  grid-template-columns: 1fr;
  text-align: center;
}

body[data-theme="dockside"] .hero-copy {
  max-width: 860px;
  margin: 0 auto;
}

body[data-theme="dockside"] .hero-metrics {
  justify-content: center;
}

body[data-theme="dockside"] .service-grid,
body[data-theme="dockside"] .card-grid.three-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-theme="monsoon"] .hero {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.15fr);
}

body[data-theme="monsoon"] .hero-copy {
  order: 2;
}

body[data-theme="monsoon"] .hero-card,
body[data-theme="monsoon"] .service-card,
body[data-theme="monsoon"] .detail-card {
  position: relative;
  overflow: hidden;
}

body[data-theme="monsoon"] .hero-card::after,
body[data-theme="monsoon"] .service-card::after,
body[data-theme="monsoon"] .detail-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
}

body[data-theme="ledger"] .page-shell,
body[data-theme="ledger"] .dashboard-shell,
body[data-theme="ledger"] .auth-shell,
body[data-theme="ledger"] .footer-shell {
  width: min(1040px, calc(100% - 2rem));
}

body[data-theme="ledger"] .hero {
  grid-template-columns: 1fr;
}

body[data-theme="ledger"] .hero-copy {
  border-bottom: 2px solid rgba(48, 40, 31, 0.16);
}

body[data-theme="ledger"] .service-grid,
body[data-theme="ledger"] .card-grid.three-up {
  grid-template-columns: 1fr 1fr;
}

body[data-theme="ledger"] .service-card,
body[data-theme="ledger"] .detail-card,
body[data-theme="ledger"] .submission-card {
  border-left: 3px solid rgba(139, 78, 45, 0.22);
}

body[data-theme="runway"] .hero {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

body[data-theme="runway"] .hero-copy {
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
}

body[data-theme="runway"] .hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

body[data-theme="runway"] .hero-metrics > div,
body[data-theme="runway"] .overview-card {
  border-radius: 6px;
}

body[data-theme="runway"] .service-card,
body[data-theme="runway"] .detail-card {
  border-top: 4px solid rgba(35, 96, 125, 0.18);
}

body[data-theme="foundry"] .hero {
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
}

body[data-theme="foundry"] .hero-copy {
  order: 2;
}

body[data-theme="foundry"] .hero-card,
body[data-theme="foundry"] .service-card,
body[data-theme="foundry"] .detail-card,
body[data-theme="foundry"] .submission-card {
  position: relative;
  overflow: hidden;
}

body[data-theme="foundry"] .hero-card::before,
body[data-theme="foundry"] .service-card::before,
body[data-theme="foundry"] .detail-card::before,
body[data-theme="foundry"] .submission-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent), var(--highlight));
}

.concept-home {
  display: grid;
  gap: 2rem;
}

.concept-section,
.concept-hero {
  position: relative;
}

.concept-hero {
  display: grid;
  gap: 1.1rem;
  align-items: stretch;
  padding-top: 1rem;
}

.concept-panel,
.concept-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.concept-panel {
  padding: 1.45rem;
}

.concept-panel h1,
.concept-panel h2,
.concept-panel h3,
.concept-tile h2,
.concept-tile h3,
.route-card h2 {
  margin: 0;
}

.concept-panel p,
.concept-tile p,
.route-card p {
  color: var(--muted);
  line-height: 1.7;
}

.concept-panel .lead {
  margin-top: 0.9rem;
}

.concept-section-head {
  max-width: 720px;
}

.concept-section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.02;
}

.concept-section-head p,
.concept-section-head + p {
  color: var(--muted);
}

.concept-kpi-grid,
.concept-service-columns,
.concept-route-grid,
.concept-runway-grid,
.concept-foundry-grid {
  display: grid;
  gap: 1rem;
}

.concept-kpi-grid {
  margin-top: 1.35rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.concept-kpi-grid div,
.concept-number-strip div {
  padding: 1rem 1.05rem;
}

.concept-kpi-grid span,
.concept-number-strip span,
.manifest-list span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.concept-kpi-grid strong,
.concept-number-strip strong,
.manifest-list strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1rem;
}

.manifest-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.manifest-list li {
  padding: 1rem 1.05rem;
}

.concept-band,
.concept-shared-story {
  display: grid;
  gap: 1.1rem;
}

.concept-service-columns,
.concept-foundry-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.concept-route-grid {
  grid-template-columns: 1.25fr 0.95fr;
}

.concept-runway-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.concept-tile {
  padding: 1.3rem;
}

.concept-home .statement-card,
.concept-home .contact-form {
  box-shadow: var(--shadow);
}

.concept-harbor-hero {
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
}

.concept-harbor-services .service-grid {
  margin-top: 1rem;
}

.concept-midnight-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.concept-midnight-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 80%, white), transparent);
}

.concept-ops-panel,
.concept-log-panel,
.route-card,
.minimal-panel,
.foundry-panel,
.stack-card {
  height: 100%;
}

.concept-ops-panel {
  border-radius: 28px 28px 10px 28px;
}

.concept-log-panel {
  border-radius: 10px 28px 28px 28px;
}

.concept-log-panel .eyebrow {
  margin-bottom: 1rem;
}

.concept-log-panel .manifest-list li,
.concept-kpi-grid div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid color-mix(in srgb, var(--line) 75%, white 25%);
  border-radius: 14px;
}

.concept-atlas-hero {
  padding: 2.2rem 0 0.4rem;
}

.concept-centerpiece {
  padding: 2.1rem;
  background:
    radial-gradient(circle at top right, rgba(216, 163, 75, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(255, 246, 232, 0.88), rgba(248, 235, 211, 0.74));
  border: 1px solid rgba(143, 95, 36, 0.14);
  box-shadow: var(--shadow);
  text-align: center;
  border-radius: 40px;
}

.concept-centerpiece .hero-metrics {
  justify-content: center;
}

.route-card {
  border-radius: 26px;
  padding: 1.6rem;
}

.accent-card {
  background:
    linear-gradient(180deg, rgba(249, 238, 216, 0.92), rgba(238, 214, 172, 0.72));
}

.concept-runway-hero {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
}

.minimal-panel {
  border-radius: 10px;
  padding: 2rem;
}

.concept-number-strip {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.concept-number-strip div {
  background: rgba(255, 255, 255, 0.72);
  border-right: 1px solid var(--line);
}

.concept-number-strip div:last-child {
  border-right: 0;
}

.concept-number-strip strong {
  margin-top: 0;
  font-size: 2rem;
  line-height: 0.95;
}

.minimal-tile {
  border-radius: 8px;
}

.concept-foundry-hero {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
}

.foundry-panel {
  border-radius: 8px;
  padding: 1.7rem;
}

.concept-stack {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stack-card {
  border-radius: 4px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.foundry-tile {
  border-radius: 4px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

body[data-theme="harbor"] .concept-panel,
body[data-theme="harbor"] .concept-tile {
  border-radius: 30px;
}

body[data-theme="harbor"] .concept-harbor-hero .concept-panel:last-child {
  background:
    radial-gradient(circle at top right, rgba(200, 139, 63, 0.24), transparent 30%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 94%, transparent) 0%, color-mix(in srgb, var(--accent-strong) 92%, transparent) 100%);
  color: white;
}

body[data-theme="harbor"] .concept-harbor-hero .concept-panel:last-child p,
body[data-theme="harbor"] .concept-harbor-hero .concept-panel:last-child .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

body[data-theme="midnight"] .concept-home {
  gap: 2.3rem;
}

body[data-theme="midnight"] .concept-panel,
body[data-theme="midnight"] .concept-tile,
body[data-theme="midnight"] .concept-number-strip {
  background: rgba(14, 24, 31, 0.88);
  border-color: rgba(154, 209, 212, 0.16);
  border-radius: 14px;
}

body[data-theme="midnight"] .concept-midnight-hero::after {
  content: "";
  position: absolute;
  inset: 1.2rem auto 1.2rem calc(100% - 320px);
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(154, 209, 212, 0.24), transparent);
}

body[data-theme="midnight"] .concept-kpi-grid div,
body[data-theme="midnight"] .manifest-list li {
  background: rgba(7, 14, 18, 0.72);
}

body[data-theme="midnight"] .concept-tile {
  position: relative;
  overflow: hidden;
}

body[data-theme="midnight"] .concept-tile::before,
body[data-theme="midnight"] .route-card::before,
body[data-theme="midnight"] .stack-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
}

body[data-theme="atlas"] .concept-home {
  gap: 2.4rem;
}

body[data-theme="atlas"] .concept-panel,
body[data-theme="atlas"] .concept-tile {
  background: rgba(255, 248, 236, 0.9);
  border-color: rgba(143, 95, 36, 0.18);
  border-radius: 30px;
  box-shadow: 0 18px 44px rgba(109, 70, 26, 0.12);
}

body[data-theme="atlas"] .concept-centerpiece {
  position: relative;
}

body[data-theme="atlas"] .concept-centerpiece::after,
body[data-theme="atlas"] .route-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(143, 95, 36, 0.12);
  border-radius: inherit;
  pointer-events: none;
}

body[data-theme="atlas"] .route-card {
  position: relative;
}

body[data-theme="atlas"] .route-card h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
}

body[data-theme="runway"] .concept-home {
  gap: 1.6rem;
}

body[data-theme="runway"] .concept-panel,
body[data-theme="runway"] .concept-tile,
body[data-theme="runway"] .concept-number-strip {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(35, 96, 125, 0.08);
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(72, 91, 108, 0.06);
}

body[data-theme="runway"] .concept-runway-hero {
  gap: 1rem;
}

body[data-theme="runway"] .concept-number-strip strong {
  color: var(--accent);
}

body[data-theme="runway"] .concept-tile {
  border-top: 4px solid rgba(35, 96, 125, 0.18);
}

body[data-theme="foundry"] .concept-home {
  gap: 2rem;
}

body[data-theme="foundry"] .concept-panel,
body[data-theme="foundry"] .concept-tile,
body[data-theme="foundry"] .concept-number-strip {
  background: rgba(36, 29, 30, 0.9);
  border-color: rgba(240, 139, 89, 0.14);
  border-radius: 8px;
}

body[data-theme="foundry"] .concept-panel,
body[data-theme="foundry"] .concept-tile {
  position: relative;
  overflow: hidden;
}

body[data-theme="foundry"] .concept-panel::before,
body[data-theme="foundry"] .concept-tile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent), var(--highlight));
}

body[data-theme="foundry"] .stack-card {
  min-height: 190px;
}

.submission-meta span,
.submission-topline span,
.nav-note,
.brand-copy span,
.contact-detail-card p,
.service-card p,
.statement-card p,
.detail-card p,
.submission-card p,
.hero-card p,
.lead {
  overflow-wrap: anywhere;
}

.cta-banner {
  padding: 1.35rem 1.5rem;
}

.network-map-card {
  position: relative;
  min-height: 320px;
  flex: 1 1 420px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(200, 139, 63, 0.42), transparent 22%),
    linear-gradient(180deg, rgba(23, 60, 59, 0.96), rgba(11, 97, 90, 0.92));
  color: white;
}

.network-map-card strong {
  position: absolute;
  left: 1.4rem;
  bottom: 3.8rem;
  font-size: 1.2rem;
}

.network-map-card p {
  position: absolute;
  left: 1.4rem;
  bottom: 1.4rem;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.82);
}

.map-dot,
.map-line {
  position: absolute;
  display: block;
}

.map-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--highlight);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.1);
}

.dot-1 { top: 26%; left: 22%; }
.dot-2 { top: 38%; left: 58%; }
.dot-3 { top: 62%; left: 46%; }

.map-line {
  height: 2px;
  background: rgba(255, 255, 255, 0.42);
  transform-origin: left center;
}

.line-1 { top: 29%; left: 23%; width: 210px; transform: rotate(10deg); }
.line-2 { top: 43%; left: 47%; width: 100px; transform: rotate(86deg); }

.network-copy {
  flex: 1 1 280px;
  padding: 1rem 0;
}

.site-footer {
  padding: 0 0 2rem;
}

.footer-shell {
  padding: 1.6rem;
  background: color-mix(in srgb, var(--accent-strong) 94%, black 6%);
  color: white;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.footer-shell h2 {
  margin: 0;
  max-width: 540px;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.footer-columns {
  align-items: flex-start;
}

.footer-columns > div {
  display: grid;
  gap: 0.35rem;
}

.footer-label,
.footer-shell .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .site-header {
    position: sticky;
    top: 0;
    padding-top: 0.75rem;
  }

  .header-top {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }

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

  .hero,
  .service-grid,
  .card-grid.three-up {
    grid-template-columns: 1fr;
  }

  .header-frame {
    position: relative;
  }

  .header-contact,
  .header-bottom {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .nav-note {
    width: 100%;
  }

  .network-map-card,
  .network-copy,
  .contact-detail-card,
  .contact-form,
  .statement-card,
  .overview-card,
  .theme-card {
    flex-basis: 100%;
  }

  .mobile-menu-panel {
    width: min(340px, calc(100vw - 2rem));
  }

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

  .concept-harbor-hero,
  .concept-midnight-hero,
  .concept-route-grid,
  .concept-foundry-hero {
    grid-template-columns: 1fr;
  }

  .concept-service-columns,
  .concept-runway-grid,
  .concept-foundry-grid,
  .concept-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-theme="midnight"] .concept-midnight-hero::after {
    display: none;
  }
}

@media (max-width: 760px) {
  body::before {
    display: none;
  }

  .site-header {
    top: env(safe-area-inset-top, 0px);
    padding-top: calc(env(safe-area-inset-top, 0px) + 0.35rem);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

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

  .header-frame,
  .page-shell,
  .dashboard-shell,
  .auth-shell,
  .footer-shell {
    width: min(100% - 1rem, 1160px);
  }

  .header-frame {
    border-radius: 18px;
    padding: 0.85rem;
    position: relative;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 250, 241, 0.96);
  }

  .page-shell,
  .dashboard-shell,
  .auth-shell {
    padding-top: 1rem;
  }

  .page-shell,
  .dashboard-shell,
  .auth-shell {
    padding: 1.25rem 0 3rem;
  }

  .header-top,
  .header-bottom,
  .dashboard-header,
  .dashboard-overview,
  .submission-topline,
  .submission-meta,
  .contact-layout,
  .network-panel,
  .cta-banner,
  .footer-shell,
  .footer-columns {
    gap: 0.8rem;
  }

  .brand {
    width: auto;
  }

  .brand-copy strong {
    font-size: 0.98rem;
  }

  .brand-copy span {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  .header-top {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-menu-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 250, 241, 0.98);
  }

  .hero {
    padding: 1.2rem 0 1rem;
    gap: 1rem;
  }

  .hero-copy,
  .hero-card,
  .statement-card,
  .contact-detail-card,
  .network-map-card,
  .auth-panel,
  .service-card,
  .submission-card,
  .detail-card,
  .overview-card,
  .contact-form,
  .cta-banner,
  .empty-state {
    border-radius: 22px;
    padding: 1.15rem;
  }

  .hero-copy h1,
  .page-hero h1,
  .auth-panel h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1;
  }

  .hero-card h2,
  .section-heading h2,
  .statement-card h2,
  .detail-card h2,
  .cta-banner h2,
  .network-copy h2,
  .dashboard-header h1 {
    font-size: clamp(1.35rem, 6vw, 2rem);
    line-height: 1.08;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-metrics > div {
    min-width: 0;
  }

  .page-hero,
  .section-heading {
    margin-top: 1.25rem;
  }

  .service-grid,
  .submission-list,
  .card-grid.three-up,
  .split-section {
    gap: 0.85rem;
  }

  .concept-home {
    gap: 1.2rem;
  }

  .concept-hero,
  .concept-service-columns,
  .concept-route-grid,
  .concept-runway-grid,
  .concept-foundry-grid,
  .concept-stack,
  .concept-kpi-grid,
  .concept-number-strip {
    grid-template-columns: 1fr;
  }

  .concept-panel,
  .concept-tile,
  .concept-centerpiece {
    border-radius: 22px;
  }

  .minimal-panel,
  .foundry-panel,
  .stack-card,
  .foundry-tile {
    min-height: 0;
  }

  .contact-form .primary-button,
  .login-form .primary-button,
  .submission-actions .danger-button,
  .submission-actions,
  .cta-banner .primary-button,
  .cta-banner .ghost-button {
    width: 100%;
  }

  .submission-topline,
  .submission-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .network-map-card {
    min-height: 260px;
  }

  .network-map-card strong {
    left: 1rem;
    right: 1rem;
    bottom: 3.4rem;
    font-size: 1.05rem;
  }

  .network-map-card p {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }

  .footer-shell {
    padding: 1.15rem;
  }
}

@media (max-width: 420px) {
  html {
    scroll-padding-top: 6.25rem;
  }

  .header-frame,
  .page-shell,
  .dashboard-shell,
  .auth-shell,
  .footer-shell {
    width: min(100% - 0.75rem, 1160px);
  }

  .logo-mark {
    width: 2.9rem;
    height: 2.9rem;
    font-size: 0.82rem;
  }

  .mobile-menu summary {
    padding: 0.72rem 0.9rem;
  }

  .hero-copy h1,
  .page-hero h1,
  .auth-panel h1 {
    font-size: 1.85rem;
  }

  .primary-button,
  .ghost-button,
  .danger-button {
    padding: 0.78rem 1rem;
  }
}
