:root {
  --ink: #08111a;
  --navy: #0b1a27;
  --navy-2: #122634;
  --slate: #243542;
  --paper: #f3efe6;
  --muted: #b4c0c7;
  --soft: rgba(243, 239, 230, 0.72);
  --line: rgba(196, 214, 224, 0.15);
  --accent: #9fb7c8;
  --accent-2: #d5e4ec;
  --max: 1480px;
  --gutter: clamp(1rem, 3vw, 3.2rem);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  transform: translateY(-150%);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  background: var(--accent-2);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-content: stretch;
  gap: 1.4rem;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid rgba(196, 214, 224, 0.11);
  background: rgba(8, 17, 26, 0.72);
  color: var(--paper);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(8, 17, 26, 0.92);
}

.wordmark {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: clamp(1.08rem, 1.45vw, 1.65rem);
  min-width: 0;
}

.wordmark-rule {
  flex: 0 0 auto;
  width: 0.24rem;
  height: 5.7rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-2), #6e8798);
}

.wordmark-text,
.wordmark span:not(.wordmark-rule) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  text-align: center;
  line-height: 0.9;
  text-transform: uppercase;
}

.wordmark-text em,
.wordmark-text strong {
  display: block;
  text-align: center;
}

.wordmark em {
  color: rgba(245, 240, 230, 0.68);
  font-size: clamp(1.22rem, 1.45vw, 1.55rem);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.wordmark strong {
  color: var(--paper);
  font-size: clamp(2.72rem, 3vw, 3.65rem);
  font-weight: 950;
  letter-spacing: 0;
}

.header-mail {
  transition: color 180ms ease;
}

.header-mail:hover {
  color: var(--paper);
}

.header-contact {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-mail {
  color: rgba(245, 240, 230, 0.86);
  font-size: 0.88rem;
  font-weight: 850;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(245, 240, 230, 0.18);
  border-radius: var(--radius);
  background: var(--accent-2);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  background: white;
}

.hero {
  min-height: 100vh;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(196, 214, 224, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(196, 214, 224, 0.032) 1px, transparent 1px),
    radial-gradient(circle at 76% 48%, rgba(112, 145, 164, 0.24), transparent 36rem),
    radial-gradient(circle at 12% 18%, rgba(213, 228, 236, 0.08), transparent 28rem),
    linear-gradient(135deg, #08111a 0%, #0d1d2a 48%, #172a38 100%);
  background-size: 132px 132px, 132px 132px, auto, auto, auto;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(112deg, rgba(213, 228, 236, 0.08) 0 16%, transparent 16.2%),
    linear-gradient(112deg, transparent 0 62%, rgba(213, 228, 236, 0.06) 62.2% 75%, transparent 75.2%);
}

.hero-shell {
  width: 100%;
  max-width: var(--max);
  min-height: 100vh;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
  padding: clamp(6rem, 8vw, 7.4rem) var(--gutter) clamp(2.5rem, 4vw, 4rem);
}

.hero-copy {
  min-width: 0;
}

.preline {
  max-width: 36rem;
  margin: 0 0 1.2rem;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
p {
  margin-top: 0;
}

h1 {
  max-width: 10.2ch;
  margin-bottom: 1.15rem;
  color: var(--paper);
  font-size: clamp(2.8rem, 4.25vw, 5.1rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.92;
  text-transform: uppercase;
}

.lead {
  max-width: 41rem;
  margin-bottom: 1.45rem;
  color: rgba(245, 240, 230, 0.72);
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.88rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border: 1px solid var(--accent-2);
  background: var(--accent-2);
  color: var(--ink);
}

.button-primary:hover {
  background: white;
  border-color: white;
}

.button-secondary {
  border: 1px solid rgba(245, 240, 230, 0.2);
  background: rgba(245, 240, 230, 0.06);
  color: var(--paper);
}

.button-secondary:hover {
  border-color: rgba(245, 240, 230, 0.4);
  background: rgba(245, 240, 230, 0.1);
}

.mail-strip {
  width: fit-content;
  margin-top: 1.45rem;
  padding-left: 0.95rem;
  border-left: 3px solid var(--accent);
}

.mail-strip span {
  display: block;
  color: rgba(245, 240, 230, 0.5);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.mail-strip a {
  display: block;
  color: var(--paper);
  font-weight: 950;
  overflow-wrap: anywhere;
}

.hero-visual {
  min-width: 0;
  display: grid;
  place-items: center end;
  transform: translate(1.25rem, -1.5rem);
}

.visual-frame {
  position: relative;
  width: min(100%, 720px, calc(100vh - 8.5rem));
  aspect-ratio: 1;
}

.visual-frame::before {
  content: "";
  position: absolute;
  inset: 4%;
  border: 1px solid rgba(196, 214, 224, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 110px rgba(89, 125, 148, 0.18),
    inset 0 0 60px rgba(196, 214, 224, 0.04);
}

.visual-frame::after {
  content: "";
  position: absolute;
  inset: 19% 11% auto auto;
  width: 31%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 214, 224, 0.24));
}

.globe-stage {
  position: absolute;
  inset: 2%;
  z-index: 1;
}

#earthGlobe {
  width: 100%;
  height: 100%;
  display: block;
}

.node-lines {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  fill: none;
  overflow: visible;
  stroke: rgba(196, 214, 224, 0.19);
  stroke-width: 0.85;
  stroke-dasharray: 4 9;
  pointer-events: none;
}

.globe-nodes {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.node {
  --node-x: 50%;
  --node-y: 50%;
  position: absolute;
  left: var(--node-x);
  top: var(--node-y);
  display: inline-flex;
  align-items: center;
  max-width: 12.5rem;
  padding: 0.5rem 0.66rem;
  border: 1px solid rgba(196, 214, 224, 0.18);
  border-radius: 999px;
  background: rgba(8, 17, 26, 0.58);
  color: rgba(243, 239, 230, 0.86);
  font-size: clamp(0.58rem, 0.95vw, 0.72rem);
  font-weight: 900;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.node::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.42rem;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 16px rgba(213, 228, 236, 0.4);
}

.node[data-slot="top-center"] {
  --node-x: 50%;
  --node-y: 5%;
}

.node[data-slot="right-top"] {
  --node-x: 88%;
  --node-y: 18%;
}

.node[data-slot="right-center"] {
  --node-x: 101%;
  --node-y: 50%;
}

.node[data-slot="right-bottom"] {
  --node-x: 88%;
  --node-y: 82%;
}

.node[data-slot="bottom-center"] {
  --node-x: 50%;
  --node-y: 95%;
}

.node[data-slot="left-bottom"] {
  --node-x: 13%;
  --node-y: 82%;
}

.node[data-slot="left-center"] {
  --node-x: 2%;
  --node-y: 50%;
}

.node[data-slot="left-top-safe"] {
  --node-x: 16%;
  --node-y: 18%;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem var(--gutter);
  border-top: 1px solid rgba(196, 214, 224, 0.14);
  background: #071019;
  color: rgba(243, 239, 230, 0.68);
  font-size: 0.84rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.site-footer a {
  color: rgba(243, 239, 230, 0.82);
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer a:hover {
  color: var(--accent-2);
}

.legal-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(196, 214, 224, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(196, 214, 224, 0.026) 1px, transparent 1px),
    linear-gradient(135deg, #08111a 0%, #0d1d2a 48%, #172a38 100%);
  background-size: 132px 132px, 132px 132px, auto;
}

.legal-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid rgba(196, 214, 224, 0.14);
  background: rgba(8, 17, 26, 0.82);
}

.back-link {
  color: rgba(243, 239, 230, 0.78);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.legal-main {
  width: min(100%, 1040px);
  margin-inline: auto;
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
}

.legal-kicker {
  margin: 0 0 1rem;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.legal-main h1 {
  max-width: 11ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  font-size: clamp(3rem, 7vw, 6rem);
}

.legal-card {
  display: grid;
  gap: 1.65rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid rgba(196, 214, 224, 0.16);
  border-radius: 18px;
  background: rgba(8, 17, 26, 0.58);
  color: rgba(243, 239, 230, 0.82);
  backdrop-filter: blur(14px);
}

.legal-section {
  max-width: 72ch;
}

.legal-section h2 {
  margin: 0 0 0.65rem;
  color: var(--paper);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.15;
  text-transform: uppercase;
}

.legal-section p,
.legal-section li {
  color: rgba(243, 239, 230, 0.78);
}

.legal-section p {
  margin: 0 0 0.75rem;
}

.legal-section ul {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
}

.legal-section a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    justify-content: center;
  }

  .wordmark {
    grid-column: auto;
  }

  .header-contact {
    display: none;
  }
}

@media (max-width: 1120px) {
  .header-contact {
    justify-self: end;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    padding-top: 8.5rem;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.75rem, 7.2vw, 4.95rem);
  }

  .hero-visual {
    place-items: center;
    transform: translateY(-1.5rem);
  }

  .visual-frame {
    width: min(100%, 720px);
  }
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
    grid-template-columns: 1fr;
    justify-items: center;
    justify-content: center;
    padding-block: 0.85rem;
  }

  .wordmark {
    grid-column: auto;
    justify-content: center;
    gap: clamp(0.82rem, 3.25vw, 1.12rem);
  }

  .wordmark-rule {
    width: 0.2rem;
    height: 4.75rem;
  }

  .wordmark-text,
  .wordmark span:not(.wordmark-rule) {
    gap: 0.1rem;
    line-height: 0.9;
  }

  .wordmark em {
    font-size: clamp(1.08rem, 3.75vw, 1.32rem);
  }

  .wordmark strong {
    font-size: clamp(2.36rem, 7.6vw, 2.82rem);
  }

  .header-contact {
    display: none;
  }

  .hero-shell {
    min-height: auto;
    padding-top: clamp(2rem, 7vw, 3rem);
  }

  h1 {
    max-width: none;
    font-size: clamp(2.45rem, 9.8vw, 3.85rem);
  }

  .hero-actions {
    display: grid;
    gap: 0.75rem;
  }

  .button-secondary {
    border-color: rgba(213, 228, 236, 0.34);
    background: rgba(9, 22, 34, 0.72);
    color: rgba(243, 239, 230, 0.94);
    box-shadow: inset 0 1px 0 rgba(243, 239, 230, 0.08);
  }

  .mail-strip {
    margin-top: 1.2rem;
  }

  .hero-visual {
    transform: none;
  }

}

@media (max-width: 768px) {
  .visual-frame {
    --mobile-globe: clamp(10rem, 41vw, 15rem);
    --mobile-chip: clamp(6.5rem, 28vw, 8rem);
    --mobile-chip-mid: clamp(7.1rem, 31vw, 8.8rem);
    --mobile-chip-wide: clamp(7.8rem, 34vw, 9.8rem);
    width: min(100%, 34rem);
    height: clamp(28rem, 118vw, 34.5rem);
    aspect-ratio: auto;
  }

  .visual-frame::before {
    inset: 27% 18%;
  }

  .visual-frame::after {
    inset: 27% 10% auto auto;
    width: 30%;
  }

  .globe-stage {
    position: absolute;
    inset: auto;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: var(--mobile-globe);
    height: var(--mobile-globe);
    transform: translate(-50%, -50%);
  }

  .node-lines {
    display: block;
    opacity: 0.38;
    stroke-width: 0.7;
    stroke-dasharray: 3 10;
  }

  .globe-nodes {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
  }

  .node {
    width: var(--mobile-chip);
    max-width: var(--mobile-chip);
    min-height: 2.2rem;
    justify-content: center;
    padding: 0.48rem 0.62rem;
    hyphens: auto;
    overflow-wrap: normal;
    text-align: center;
    text-wrap: balance;
    font-size: clamp(0.58rem, 2.45vw, 0.68rem);
    line-height: 1.12;
    white-space: normal;
  }

  .node::before {
    flex: 0 0 auto;
    width: 0.34rem;
    height: 0.34rem;
    margin-right: 0.34rem;
  }

  .node[data-slot="top-center"] {
    --node-x: 50%;
    --node-y: 8%;
    width: var(--mobile-chip-wide);
    max-width: var(--mobile-chip-wide);
  }

  .node[data-slot="right-top"] {
    --node-x: 82%;
    --node-y: 24%;
    width: var(--mobile-chip-mid);
    max-width: var(--mobile-chip-mid);
  }

  .node[data-slot="right-center"] {
    --node-x: 89.2%;
    --node-y: 50%;
  }

  .node[data-slot="right-bottom"] {
    --node-x: 82%;
    --node-y: 76%;
    width: var(--mobile-chip-mid);
    max-width: var(--mobile-chip-mid);
  }

  .node[data-slot="bottom-center"] {
    --node-x: 50%;
    --node-y: 92%;
    width: var(--mobile-chip-wide);
    max-width: var(--mobile-chip-wide);
  }

  .node[data-slot="left-bottom"] {
    --node-x: 18%;
    --node-y: 76%;
    width: var(--mobile-chip-mid);
    max-width: var(--mobile-chip-mid);
  }

  .node[data-slot="left-center"] {
    --node-x: 10.8%;
    --node-y: 50%;
  }

  .node[data-slot="left-top-safe"] {
    --node-x: 18%;
    --node-y: 24%;
    width: var(--mobile-chip-mid);
    max-width: var(--mobile-chip-mid);
  }
}

@media (max-width: 460px) {
  .site-header {
    padding-block: 0.72rem;
  }

  .wordmark-rule {
    height: 4.25rem;
  }
}

@media (max-width: 360px) {
  .visual-frame {
    --mobile-globe: clamp(10rem, 44vw, 11rem);
    --mobile-chip: clamp(6.05rem, 27vw, 6.35rem);
    --mobile-chip-mid: clamp(6.55rem, 30vw, 6.95rem);
    --mobile-chip-wide: clamp(7rem, 34vw, 7.6rem);
    height: clamp(26.5rem, 125vw, 30rem);
  }

  .node {
    min-height: 1.95rem;
    padding: 0.4rem 0.5rem;
    font-size: clamp(0.5rem, 2.15vw, 0.56rem);
  }

  .node[data-slot="right-center"] {
    --node-x: 89.5%;
  }

  .node[data-slot="left-center"] {
    --node-x: 10.5%;
  }

  .node-lines {
    opacity: 0.24;
  }

}
