:root {
  --ink: #071833;
  --deep: #06162f;
  --night: #091016;
  --graphite: #15191d;
  --steel: #66717d;
  --mist: #eef2f0;
  --paper: #f8f5ee;
  --line: rgba(211, 198, 171, 0.28);
  --gold: #d6aa4f;
  --gold-soft: #f5d99b;
  --copper: #9b6b3f;
  --green: #4f8065;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.site-header {
  position: relative;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 52px);
  color: #fff;
  background: var(--deep);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-bottom: 1px solid rgba(245, 217, 155, 0.16);
  background: rgba(6, 22, 47, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(214, 170, 79, 0.72);
  border-radius: 6px;
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  letter-spacing: 0.08em;
  font-size: 0.88rem;
}

.brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.header-meta {
  padding: 10px 14px;
  border: 1px solid rgba(214, 170, 79, 0.5);
  border-radius: 6px;
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero {
  position: relative;
  display: grid;
  min-height: 0;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-atmosphere {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-atmosphere { display: none; }
}

.hero-media {
  z-index: -2;
  background-image: url("assets/atlantis-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 9, 14, 0.94) 0%, rgba(5, 9, 14, 0.72) 36%, rgba(5, 9, 14, 0.14) 74%),
    linear-gradient(180deg, rgba(4, 8, 14, 0.2), rgba(4, 8, 14, 0.86));
}

.hero-content {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
  padding: 20px 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 6rem;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.2rem;
  line-height: 1.65;
}

.intro-band {
  background: var(--deep);
  color: #fff;
}

.intro-grid {
  display: grid;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  gap: 48px;
  padding: 22px 0;
  align-items: center;
}

.intro-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.55;
}

dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}

dt {
  margin-bottom: 8px;
  color: rgba(245, 217, 155, 0.74);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: #fff;
  font-size: 0.92rem;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(76px, 9vw, 122px) 0;
}

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

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  color: inherit;
  font-size: 1.08rem;
}

.mandate-layout {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  gap: 54px;
}

.lead {
  color: #4f5a63;
  font-size: 1.12rem;
  line-height: 1.75;
}

.principles,
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.principles article,
.platform-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(7, 24, 51, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
}

.principles span,
.platform-grid p {
  display: block;
  margin-bottom: 48px;
  color: var(--copper);
  font-size: 0.8rem;
  font-weight: 800;
}

.principles p,
.platform-grid span,
.governance-copy p,
.governance-copy li,
.presence-copy p {
  color: #53606a;
  line-height: 1.68;
}

.platform-band {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  background: #e8ebe5;
}

.platform-grid {
  grid-template-columns: repeat(4, 1fr);
}

.platform-grid article {
  background: #f7f3ea;
}

.governance-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 58px;
  align-items: center;
}

.control-panel {
  padding: 26px;
  border: 1px solid rgba(245, 217, 155, 0.28);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(6, 22, 47, 0.96), rgba(18, 22, 25, 0.96)),
    var(--deep);
  box-shadow: 0 24px 70px rgba(7, 24, 51, 0.22);
}

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

.panel-topline {
  margin-bottom: 32px;
  color: var(--gold-soft);
  font-weight: 800;
}

.panel-topline strong {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(214, 170, 79, 0.5);
  border-radius: 6px;
}

.metric-row {
  padding: 18px 0;
  border-top: 1px solid rgba(245, 217, 155, 0.15);
}

.metric-row span {
  color: rgba(255, 255, 255, 0.62);
}

.metric-row strong {
  color: #fff;
}

.chart-lines {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.chart-lines i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), rgba(245, 217, 155, 0.12));
}

.chart-lines i:nth-child(2) {
  width: 78%;
  background: linear-gradient(90deg, var(--green), rgba(79, 128, 101, 0.1));
}

.chart-lines i:nth-child(3) {
  width: 88%;
}

.chart-lines i:nth-child(4) {
  width: 64%;
  background: linear-gradient(90deg, var(--steel), rgba(102, 113, 125, 0.12));
}

.governance-copy ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.governance-copy li {
  padding-left: 20px;
  border-left: 2px solid var(--gold);
}

.presence-band {
  display: grid;
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
  gap: 52px;
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 22, 47, 0.97), rgba(22, 27, 29, 0.98)),
    var(--deep);
}

.presence-band h2,
.contact-section h2 {
  color: inherit;
}

.presence-copy {
  max-width: 760px;
}

.presence-copy p {
  color: rgba(255, 255, 255, 0.7);
}

.presence-list {
  display: grid;
  gap: 12px;
  align-self: end;
}

.presence-list span {
  padding: 18px 20px;
  border: 1px solid rgba(245, 217, 155, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
}

.contact-section {
  display: flex;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(68px, 8vw, 108px) 0;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.contact-details {
  display: grid;
  gap: 10px;
  min-width: min(100%, 340px);
}

.contact-details span {
  padding: 16px 18px;
  border: 1px solid rgba(7, 24, 51, 0.15);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  font-weight: 700;
}

.site-footer {
  text-align: left;
  padding: 22px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #bcc3cd;
  background: var(--night);
  font-size: 0.8rem;
  line-height: 1.55;
}

.footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  align-items: center;
  gap: 40px;
}

.footer-identity {
  color: #f1f3f6;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-address, .footer-contact {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.footer-contact {
  justify-self: end;
}

.footer-caption {
  color: #8e99a7;
  font-size: 0.75rem;
}

@media (max-width: 920px) {
  .intro-grid,
  .mandate-layout,
  .governance-layout,
  .presence-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    gap: 24px;
  }

  .platform-grid,
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-section {
    display: grid;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .header-meta {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 0;
  }

  .hero-content {
    width: min(100% - 32px, var(--max));
  }

  .intro-grid,
  .section,
  .contact-section {
    width: min(100% - 32px, var(--max));
  }

  dl,
  .platform-grid,
  .principles {
    grid-template-columns: 1fr;
  }

  .principles article,
  .platform-grid article {
    min-height: 0;
  }

  .principles span,
  .platform-grid p {
    margin-bottom: 28px;
  }

  .site-footer {
    display: grid;
  }
}

main {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.site-footer address {
  font-style: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 920px) {
  h1 { font-size: 4rem; }
  .intro-grid { gap: 12px; padding: 16px 0; }
}

@media (max-width: 640px) {
  h1 { font-size: 3rem; margin-bottom: 16px; }
  .hero-copy { font-size: 1rem; line-height: 1.5; margin-bottom: 0; }
  .hero-content { padding: 12px 0; }
  .intro-grid p { font-size: 0.85rem; line-height: 1.45; }
  dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  dd { font-size: 0.75rem; }
  dt { font-size: 0.65rem; margin-bottom: 4px; }
  .site-footer { padding: 12px 16px; font-size: 0.72rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 8px 12px; align-items: start; }
  .footer-identity { grid-column: 1 / -1; font-size: 0.85rem; }
  .footer-address { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; justify-self: start; }
  .footer-address, .footer-contact { grid-template-columns: 54px minmax(0, 1fr); gap: 8px; }
  .footer-contact { grid-template-columns: minmax(0, 1fr); }
  .footer-caption { font-size: 0.7rem; }
}

@media (max-height: 700px) {
  h1 { font-size: 3rem; margin-bottom: 12px; }
  .eyebrow { margin-bottom: 10px; }
  .hero-content { padding: 8px 0; }
  .hero-copy { font-size: 0.95rem; line-height: 1.45; margin-bottom: 0; }
  .intro-grid { padding: 12px 0; }
}

@media (max-height: 500px) and (min-width: 641px) {
  .site-header { min-height: 52px; padding-top: 6px; padding-bottom: 6px; }
  .brand-mark { width: 34px; height: 34px; }
  .intro-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .intro-grid p, dd { font-size: 0.75rem; }
  .site-footer { padding: 8px 20px; font-size: 0.75rem; }
  h1 { font-size: 2.5rem; }
}

@media (max-width: 640px) and (max-height: 650px) {
  h1 { font-size: 2.4rem; margin-bottom: 8px; }
  .hero-copy { font-size: 0.85rem; line-height: 1.4; }
  .intro-grid { gap: 8px; padding: 8px 0; }
  .intro-grid p { font-size: 0.8rem; }
  .site-footer { padding-top: 8px; padding-bottom: 8px; }
  .footer-inner { row-gap: 5px; }
}
