:root {
  --bg: #05070b;
  --bg-soft: #0a111c;
  --panel: rgba(11, 17, 28, 0.76);
  --panel-strong: rgba(13, 21, 34, 0.9);
  --text: #f4f7fb;
  --muted: rgba(226, 233, 243, 0.72);
  --quiet: rgba(226, 233, 243, 0.52);
  --line: rgba(178, 204, 240, 0.14);
  --line-strong: rgba(178, 204, 240, 0.22);
  --accent: #6ea8ff;
  --accent-fill: rgba(110, 168, 255, 0.12);
  --sun: #ead027;
  --radius-xl: 28px;
  --radius-md: 14px;
  --content-width: 1790px;
  --page-gutter: clamp(24px, 2.4vw, 54px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(82, 139, 222, 0.14), transparent 32%),
    radial-gradient(circle at 78% 24%, rgba(234, 208, 39, 0.055), transparent 22%),
    linear-gradient(180deg, #09111d 0%, var(--bg) 52%, #070b12 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
}

.site-header,
.page-section,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(75vw, 1320px);
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 0 6px;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  flex: 0 0 42px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  color: var(--quiet);
  font-size: 12px;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  text-decoration: none;
  padding: 9px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.page-section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 18px var(--page-gutter);
}

.home-map-section {
  max-width: var(--content-width);
  padding: clamp(16px, 2.4vw, 30px) var(--page-gutter) clamp(22px, 3.2vw, 38px);
}

.home-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(75vw, 1320px);
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(8, 13, 22, 0.72);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
  position: relative;
}

.home-map::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 88% 16%, rgba(110, 168, 255, 0.08), transparent 26%);
  opacity: 0.55;
}

.home-map-panel {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(18px, 2.4vw, 30px);
  text-align: left;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.014);
  transition: background 0.2s ease, border-color 0.2s ease;
  position: relative;
  z-index: 1;
}

.home-map-panel:hover {
  background: rgba(255, 255, 255, 0.026);
}

.home-map-main {
  grid-column: 1 / -1;
  min-height: 240px;
  border-bottom: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
  gap: 0;
  align-items: center;
  overflow: hidden;
}

.home-main-copy {
  max-width: 660px;
  position: relative;
  z-index: 2;
}

.home-main-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 50%;
  min-width: 260px;
  overflow: hidden;
  z-index: 1;
  opacity: 0.94;
}

.home-main-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(10, 15, 24, 0.98) 0%, rgba(10, 15, 24, 0.78) 18%, rgba(10, 15, 24, 0.34) 44%, rgba(10, 15, 24, 0.08) 70%, rgba(10, 15, 24, 0.16) 100%),
    linear-gradient(180deg, rgba(10, 15, 24, 0.08), rgba(10, 15, 24, 0.42));
  pointer-events: none;
}

.home-main-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-map-child + .home-map-child {
  border-left: 1px solid var(--line-strong);
}

.home-map h1,
.home-map h2 {
  margin: 8px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.home-map h1 {
  font-size: clamp(1.95rem, 2.55vw, 3.05rem);
}

.home-map h2 {
  font-size: clamp(1.3rem, 1.62vw, 1.85rem);
  max-width: 11ch;
}

.home-map p {
  max-width: 62ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(0.86rem, 0.68vw, 0.93rem);
  line-height: 1.5;
}

.home-map-main p {
  max-width: 64ch;
  font-size: clamp(0.88rem, 0.72vw, 0.96rem);
  line-height: 1.54;
}

.home-map-child {
  min-height: 176px;
  justify-content: space-between;
  overflow: hidden;
}

.home-child-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100%;
  max-width: 62%;
  flex-direction: column;
}

.home-child-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 54%;
  overflow: hidden;
  opacity: 0.9;
  z-index: 1;
}

.home-child-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(10, 15, 24, 0.98) 0%, rgba(10, 15, 24, 0.78) 22%, rgba(10, 15, 24, 0.36) 50%, rgba(10, 15, 24, 0.1) 76%, rgba(10, 15, 24, 0.18) 100%),
    linear-gradient(180deg, rgba(10, 15, 24, 0.1), rgba(10, 15, 24, 0.52));
  pointer-events: none;
}

.home-child-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.radflow-card .home-child-media img {
  object-position: 42% center;
}

.institute-card .home-child-media img {
  object-position: 50% center;
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.home-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.home-proof-row span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(178, 204, 240, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 13px;
}

.panel-link {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.panel-link::after {
  content: ">";
  margin-left: 9px;
  color: var(--sun);
}

.home-map .button {
  align-self: flex-start;
  margin-top: 14px;
}

.band-section {
  min-height: 28vh;
}

.band-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
}

.band-label,
.band-panel,
.footer-shell,
.hero-copy,
.feature-card,
.statement-card {
  border: 1px solid var(--line);
}

.band-label,
.band-panel {
  border-radius: var(--radius-xl);
  background: var(--panel);
}

.band-label {
  min-height: 230px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.band-panel {
  padding: 30px;
}

.eyebrow,
.footer-label,
.mini-label {
  display: inline-flex;
  color: var(--quiet);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.band-label h1,
.band-label h2,
.footer-company h3,
.hero-copy h1,
.section-heading h2,
.statement-card h2,
.feature-card h3,
.detail-card h3 {
  margin: 18px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  letter-spacing: -0.04em;
  line-height: 1;
}

.band-label h1 {
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

.band-label h2 {
  font-size: clamp(2.1rem, 4vw, 4.2rem);
}

.band-kicker {
  max-width: 28ch;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.band-label-meta,
.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.band-label-meta span,
.signal-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--muted);
  font-size: 13px;
}

.panel-lead {
  max-width: 64ch;
  margin: 0 0 16px;
  color: var(--text);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.band-panel p,
.footer-company p,
.footer-note,
.form-note,
.hero-copy p,
.section-heading p,
.feature-card p,
.statement-card p,
.detail-card p {
  max-width: 72ch;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: transparent;
  background: var(--text);
  color: var(--bg);
}

.button.secondary,
.button.tertiary {
  background: rgba(255, 255, 255, 0.03);
}

.site-footer {
  padding: 0 var(--page-gutter) 22px;
}

.footer-shell {
  width: min(75vw, 1320px);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(14px, 1.8vw, 22px);
  border-radius: 22px;
  background: var(--panel-strong);
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr);
  gap: 0;
  overflow: hidden;
  position: relative;
}

.footer-contact-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  max-width: 620px;
}

.footer-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 52%;
  overflow: hidden;
  opacity: 0.88;
  z-index: 1;
}

.footer-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(13, 21, 34, 0.98) 0%, rgba(13, 21, 34, 0.78) 20%, rgba(13, 21, 34, 0.36) 48%, rgba(13, 21, 34, 0.08) 75%, rgba(13, 21, 34, 0.18) 100%),
    linear-gradient(180deg, rgba(13, 21, 34, 0.1), rgba(13, 21, 34, 0.52));
  pointer-events: none;
}

.footer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.footer-company {
  max-width: 620px;
}

.footer-company h3 {
  font-size: clamp(1rem, 1.18vw, 1.3rem);
  letter-spacing: -0.025em;
}

.footer-company p {
  max-width: 58ch;
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.45;
}

.footer-eyebrow {
  margin-bottom: 8px;
}

.footer-meta,
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.footer-column,
.footer-links > div {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.footer-column a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-column a:hover,
.footer-links a:hover {
  color: var(--text);
}

.footer-form {
  display: grid;
  gap: 9px;
}

.field-row {
  display: grid;
  gap: 9px;
}

.field-row.two-up,
.panel-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label span {
  display: block;
  margin-bottom: 4px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

select option {
  background: #0d1522;
  color: #f4f7fb;
}

select option:checked,
select option:hover {
  background: #1a2d4a;
  color: #f4f7fb;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.button:disabled {
  cursor: wait;
  opacity: 0.66;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(110, 168, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(110, 168, 255, 0.1);
}

textarea {
  min-height: 72px;
  resize: vertical;
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero-section {
  padding-top: 36px;
}

.hero-copy,
.feature-card,
.statement-card,
.detail-card {
  border-radius: var(--radius-xl);
  background: var(--panel);
}

.hero-copy {
  max-width: 920px;
  padding: 30px;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.55rem);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading h2,
.statement-card h2 {
  font-size: clamp(1.55rem, 2.45vw, 2.35rem);
}

.panel-grid,
.detail-grid,
.hero-grid {
  display: grid;
  gap: 14px;
}

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

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

.hero-aside {
  display: grid;
  gap: 14px;
}

.metric-card,
.feature-card,
.detail-card,
.statement-card {
  padding: 22px;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.metric-card strong {
  display: block;
  margin: 9px 0;
}

.feature-card h3,
.detail-card h3 {
  font-size: 1.35rem;
}

.band-footer-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-top: 24px;
}

.footer-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.footer-mark {
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .band-layout,
  .home-map,
  .footer-shell,
  .footer-meta,
  .footer-links,
  .field-row.two-up,
  .panel-grid.two-up,
  .panel-grid.three-up,
  .detail-grid,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .home-map,
  .footer-shell {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
  }

  .footer-contact-content {
    max-width: none;
  }

  .footer-media {
    position: relative;
    inset: auto;
    order: -1;
    width: calc(100% + clamp(28px, 3.6vw, 44px));
    height: clamp(120px, 28vw, 210px);
    margin: calc(clamp(14px, 1.8vw, 22px) * -1) calc(clamp(14px, 1.8vw, 22px) * -1) 16px;
    opacity: 0.78;
  }

  .footer-media::before {
    background:
      linear-gradient(180deg, rgba(13, 21, 34, 0.04) 0%, rgba(13, 21, 34, 0.18) 48%, rgba(13, 21, 34, 0.92) 100%),
      linear-gradient(90deg, rgba(13, 21, 34, 0.18), rgba(13, 21, 34, 0.12));
  }

  .band-label {
    min-height: 0;
  }

  .band-footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-map-main {
    grid-column: auto;
  }

  .home-map-main,
  .home-map-child {
    min-height: auto;
  }

  .home-map-child {
    padding-top: 0;
  }

  .home-map-main {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .home-main-copy {
    max-width: none;
  }

  .home-main-media {
    position: relative;
    inset: auto;
    order: -1;
    width: calc(100% + clamp(36px, 4.8vw, 60px));
    min-width: 0;
    height: clamp(150px, 34vw, 240px);
    margin: 0 calc(clamp(18px, 2.4vw, 30px) * -1) 18px;
    opacity: 0.72;
  }

  .home-main-media::before {
    background:
      linear-gradient(180deg, rgba(10, 15, 24, 0.08) 0%, rgba(10, 15, 24, 0.2) 48%, rgba(10, 15, 24, 0.92) 100%),
      linear-gradient(90deg, rgba(10, 15, 24, 0.28), rgba(10, 15, 24, 0.12));
  }

  .home-child-copy {
    max-width: none;
  }

  .home-child-media {
    position: relative;
    inset: auto;
    order: -1;
    width: calc(100% + clamp(36px, 4.8vw, 60px));
    height: clamp(120px, 26vw, 190px);
    margin: 0 calc(clamp(18px, 2.4vw, 30px) * -1) 18px;
    opacity: 0.78;
  }

  .home-child-media::before {
    background:
      linear-gradient(180deg, rgba(10, 15, 24, 0.06) 0%, rgba(10, 15, 24, 0.18) 48%, rgba(10, 15, 24, 0.9) 100%),
      linear-gradient(90deg, rgba(10, 15, 24, 0.2), rgba(10, 15, 24, 0.14));
  }

  .home-map h2 {
    max-width: none;
  }

  .home-map h1 {
    font-size: clamp(2.05rem, 10vw, 3.2rem);
  }

  .home-map h2 {
    font-size: clamp(1.55rem, 8vw, 2.35rem);
  }

  .home-map-child + .home-map-child {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-top: 16px;
  }

  .header-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .page-section,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-header {
    width: auto;
    max-width: none;
    padding-left: 18px;
    padding-right: 18px;
  }

  .home-map-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .band-label,
  .band-panel,
  .footer-shell,
  .hero-copy,
  .feature-card,
  .statement-card,
  .detail-card {
    border-radius: 22px;
    padding: 22px;
  }

  .site-nav a,
  .button {
    width: 100%;
  }

  /* page-wrap used on all content pages — go full width on mobile */
  .page-wrap {
    width: 100%;
    max-width: none;
  }

  /* strap bar padding matches page-section */
  .strap-bar {
    padding-left: 18px;
    padding-right: 18px;
  }

  /* data-sources footnote on radflow */
  .data-sources {
    padding-left: 18px;
    padding-right: 18px;
  }
}
