@font-face {
  font-family: SG;
  src: url(fonts/space-grotesk-latin-500-normal.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: SG;
  src: url(fonts/space-grotesk-latin-600-normal.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: GS;
  src: url(fonts/geist-sans-latin-400-normal.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: GS;
  src: url(fonts/geist-sans-latin-500-normal.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0E1420;
  --ink-2: #121a2a;
  --panel: #152038;
  --line: #2a3754;
  --line-2: #3e4e6e;
  --solar: #E8A43D;
  --solar-soft: rgba(232, 164, 61, 0.14);
  --paper: #F7F3EA;
  --dawn: #7A9BB8;
  --text: #F7F3EA;
  --muted: #bcc9db;
  --faint: #8897ad;
  --display: SG, "Space Grotesk", system-ui, -apple-system, sans-serif;
  --body: GS, "Geist Sans", system-ui, -apple-system, sans-serif;
  --gutter: clamp(24px, 4.5vw, 64px);
}

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

html,
body {
  height: 100%;
  background: var(--ink);
  color: var(--text);
  font: 400 16.5px/1.52 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: auto;
}

@media (min-width: 961px) and (min-height: 720px) {
  html,
  body {
    overflow: hidden;
  }
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(122, 155, 184, 0.28) transparent;
}
*::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: rgba(122, 155, 184, 0.28);
  border-radius: 999px;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Layer 0a: Physical twilight observatory mountain backdrop */
#observatory {
  position: fixed;
  inset: 0;
  z-index: 0;
  transform-origin: 77% 35%;
  background: url(observatory.webp) center/cover no-repeat;
  transform: scale(1.025);
  filter: brightness(0.66) saturate(0.9);
}

#observatory::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78.5% 47%, rgba(232, 164, 61, 0.08), transparent 26%),
    linear-gradient(90deg, rgba(8, 15, 28, 0.96) 0%, rgba(8, 15, 28, 0.91) 46%, rgba(8, 15, 28, 0.34) 76%, rgba(8, 15, 28, 0.18) 100%),
    linear-gradient(0deg, rgba(9, 17, 29, 0.93) 0%, rgba(9, 17, 29, 0.24) 46%, rgba(9, 17, 29, 0.48) 100%);
}

/* Layer 0b & Layer 3: Starfield and Sentient Guiding Star canvases */
#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#storyInk {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* Single-viewport flex shell */
.viewport-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Top Header: Co-brand transition lockup + quiet Pause stars control */
.top {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--gutter) 12px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo {
  width: auto;
  flex-shrink: 0;
}

.logo-ep {
  height: 24.5px;
  transform: translateY(0.5px);
}

.logo-copernicus {
  height: 23px;
}

.brand-arrow {
  color: var(--solar);
  font: 500 16px/1 var(--display);
  opacity: 0.94;
  user-select: none;
}

.top-actions {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.motion-toggle {
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #7688a0;
  padding: 0 8px;
  font: 400 11.5px/1 var(--body);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.motion-toggle:hover {
  border-color: rgba(122, 155, 184, 0.45);
  color: #dce6f2;
  background: rgba(21, 32, 56, 0.5);
}

.motion-toggle:focus-visible {
  outline: 2px solid var(--solar);
  outline-offset: 3px;
}

/* Main Focal Area */
.bridge-main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 10px 0 16px;
}

.hero-copy {
  max-width: 800px;
}

.eyebrow {
  font: 500 12px/1.2 var(--body);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--dawn);
  margin-bottom: 12px;
}

h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 3.6vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.09;
  color: var(--paper);
}

h1 em {
  font-style: normal;
  color: var(--solar);
}

.em-line {
  display: inline-block;
}

.lede {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.54;
  color: var(--muted);
  max-width: 62ch;
  margin-top: 20px;
}

.domain-token {
  color: #e8f0fa;
  font-weight: 500;
}

/* Editorial Reassurance Strip ([data-star-cue] - non-button left-rule geometry) */
.reassurance-list {
  list-style: none;
  margin-top: 24px;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reassurance-item {
  position: relative;
  padding: 5px 14px 5px 18px;
  border-left: 2px solid rgba(122, 155, 184, 0.34);
  background: linear-gradient(90deg, rgba(15, 24, 42, 0.56) 0%, rgba(15, 24, 42, 0) 92%);
  font-size: 15px;
  line-height: 1.48;
  color: #cdd8e6;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.reassurance-item strong {
  color: var(--paper);
  font-weight: 500;
}

/* Guiding Star Active Discovery Illumination (-3px gold bar) */
.star-discovery {
  outline: none;
  border-left-color: var(--solar);
  background: linear-gradient(90deg, rgba(232, 164, 61, 0.12) 0%, rgba(20, 31, 54, 0.42) 55%, rgba(15, 24, 42, 0) 96%);
  box-shadow: -3px 0 0 rgba(232, 164, 61, 0.92);
}

/* Strictly Two Action Buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  /* Generous 42px top channel gives the settled Guiding Star open sky 16px above Primary CTA */
  margin-top: 42px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--solar);
  color: #0E1420;
  font: 500 15px/1.2 var(--body);
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1.5px solid var(--solar);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-domain {
  font-weight: 400;
  font-size: 13.5px;
  opacity: 0.84;
}

.btn-arrow {
  flex-shrink: 0;
  font-weight: 500;
}

.btn:hover {
  transform: translateY(-1px);
  background: #f0b24f;
  border-color: #f0b24f;
  box-shadow: 0 10px 28px rgba(232, 164, 61, 0.28);
}

.btn.star-settled {
  box-shadow: 0 6px 24px rgba(232, 164, 61, 0.18);
}

.btn.star-settled:hover {
  box-shadow: 0 10px 30px rgba(232, 164, 61, 0.32);
}

.btn:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.btn.ghost {
  background: rgba(14, 22, 38, 0.76);
  color: var(--text);
  border-color: var(--line-2);
}

.btn.ghost:hover {
  background: #1B2638;
  border-color: var(--dawn);
  box-shadow: none;
}

/* Quiet Footer */
.bridge-footer {
  padding: 8px 0 20px;
}

.footer-note {
  font: 400 12.5px/1.45 var(--body);
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.footer-note a {
  color: #afc1d6;
  text-decoration: none;
  border-bottom: 1px solid rgba(175, 193, 214, 0.3);
  transition: color 0.2s, border-color 0.2s;
}

.footer-note a:hover {
  color: var(--solar);
  border-color: var(--solar);
}

.footer-note a:focus-visible {
  outline: 2px solid var(--solar);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Compact Desktop Height Tuning (e.g. 1280x800) */
@media (max-height: 840px) and (min-width: 721px) {
  .top {
    padding: 16px var(--gutter) 8px;
  }
  .logo-ep {
    height: 22px;
  }
  .logo-copernicus {
    height: 20.5px;
  }
  .bridge-main {
    padding: 6px 0 10px;
  }
  .eyebrow {
    margin-bottom: 9px;
    font-size: 11.5px;
  }
  h1 {
    font-size: clamp(32px, 3.3vw, 45px);
  }
  .lede {
    margin-top: 15px;
    font-size: 16px;
  }
  .reassurance-list {
    margin-top: 18px;
    gap: 10px;
  }
  .reassurance-item {
    padding: 4px 12px 4px 16px;
    font-size: 14.3px;
  }
  .hero-actions {
    margin-top: 34px;
  }
  .btn {
    min-height: 46px;
    padding: 0 20px;
    font-size: 14.5px;
  }
  .btn-domain {
    font-size: 13px;
  }
  .bridge-footer {
    padding: 6px 0 15px;
  }
}

/* Mobile (e.g. 390x844) */
@media (max-width: 720px) {
  #observatory {
    background-position: 78% bottom;
    filter: brightness(0.32) saturate(0.8);
  }
  #observatory::after {
    background:
      linear-gradient(180deg, rgba(12, 18, 30, 0.97) 0%, rgba(12, 18, 30, 0.95) 68%, rgba(12, 18, 30, 0.96) 100%);
  }
  .top {
    padding: 15px 24px 8px;
    gap: 8px;
  }
  .brand-lockup {
    gap: 9px;
  }
  .logo-ep {
    height: 17px;
  }
  .logo-copernicus {
    height: 16px;
  }
  .brand-arrow {
    font-size: 13px;
  }
  .motion-toggle {
    height: 26px;
    padding: 0 8px;
    font-size: 10.5px;
  }
  .wrap {
    padding: 0 24px;
  }
  .bridge-main {
    align-items: center;
    padding: 12px 0;
  }
  .eyebrow {
    font-size: 11px;
    margin-bottom: 8px;
  }
  h1 {
    font-size: clamp(26.5px, 7.3vw, 30px);
    line-height: 1.13;
  }
  .lede {
    font-size: 14.5px;
    line-height: 1.48;
    margin-top: 13px;
  }
  .reassurance-list {
    margin-top: 17px;
    gap: 10px;
  }
  .reassurance-item {
    padding: 3px 4px 3px 14px;
    font-size: 13.5px;
    line-height: 1.44;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 38px;
  }
  .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    border-radius: 16px;
    padding: 10px 16px;
    min-height: 48px;
    font-size: 14.5px;
  }
  .btn-primary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 6px;
    row-gap: 2px;
    min-height: 54px;
  }
  .btn-primary .btn-title {
    order: 1;
  }
  .btn-primary .btn-arrow {
    order: 2;
  }
  .btn-primary .btn-domain {
    order: 3;
    flex-basis: 100%;
    font-size: 12px;
  }
  .bridge-footer {
    padding: 6px 0 16px;
  }
  .footer-note {
    font-size: 11.5px;
    line-height: 1.45;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .footer-note .sep {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .reassurance-item,
  .motion-toggle {
    transition: none !important;
  }
}
