/* ============================================================
   Endura Holdings — deep-space landing
   ============================================================ */
:root {
  --bg: #07091a;
  --bg-alt: #0c0f25;
  --ink: #e4e6ef;
  --ink-soft: #6a6e80;
  --rule: #171a2e;
  --accent: #b04848;
  --nebula-a: rgba(110, 80, 160, 0.08);
  --nebula-b: rgba(80, 100, 170, 0.06);

  --serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --sans: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad: clamp(22px, 3.4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 360ms ease, color 360ms ease;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
#root { height: 100%; }

.page {
  position: relative;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  isolation: isolate;
}

/* ---------- DEEP-SPACE LAYERS ---------- */
/* Particle canvas: animated stars + lattice */
.particle-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

/* Nebula glow: soft, off-center radial color washes */
.nebula {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 55% at 18% 78%, var(--nebula-a), transparent 70%),
    radial-gradient(ellipse 50% 45% at 82% 18%, var(--nebula-b), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 50%, transparent 0%, rgba(0,0,0,0.35) 100%);
  mix-blend-mode: screen;
  opacity: 0.7;
  transition: opacity 600ms ease;
}

/* Real content above */
.nav, .main, .foot { position: relative; z-index: 2; }

/* ---------- NAV ---------- */
.nav {
  padding: 22px clamp(12px, 1.6vw, 24px) 22px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; color: var(--ink); }
.logo { display: inline-flex; align-items: center; gap: 18px; }
.logo-mark { width: 84px; height: auto; color: var(--ink); }
.logo-word { display: inline-flex; flex-direction: column; align-items: stretch; line-height: 1; gap: 7px; }
.logo-endura {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--ink);
  /* offset trailing letter-spacing so the layout box matches the visible glyphs */
  padding-right: 0.26em;
  margin-right: -0.26em;
}
.logo-holdings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
}
.logo-holdings > span {
  display: inline-block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.loc { display: inline; }
@media (max-width: 720px) { .loc { display: none; } }
.contact-link {
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--rule);
  transition: color 180ms, border-color 180ms;
}
.contact-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- HERO ---------- */
.main {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 var(--pad);
  min-height: 0;
}
.hero {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: min(900px, 80vw);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.hero-headline {
  display: grid;
  gap: 22px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 5.2vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.024em;
  margin: 0;
  text-wrap: pretty;
  color: var(--ink);
}
.hl-intro {
  font-size: 0.55em;
  line-height: 1.2;
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 300;
  letter-spacing: -0.012em;
}
.hl-feature {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: clamp(16px, 1.8vw, 28px);
}
.hl-mark {
  width: clamp(28px, 3.4vw, 52px);
  height: 1px;
  background: var(--accent);
  opacity: 0.85;
  margin-top: 0.56em; /* aligns with x-height */
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 30%, transparent);
}
.hl-phrase {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.022em;
}

.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70%  { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
}

/* ---------- FOOTER ---------- */
.foot {
  padding: 18px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.foot-mid { opacity: 0.5; letter-spacing: 0.4em; }

.mission-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  padding: 6px 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: color 180ms;
  border-bottom: 1px solid var(--rule);
}
.mission-btn:hover { color: var(--accent); border-color: var(--accent); }
.mission-btn:hover .mission-mark { color: var(--accent); }
.mission-mark {
  display: inline-flex;
  color: var(--ink-soft);
  transition: color 180ms;
}

/* ---------- INFO OVERLAY ---------- */
.info-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 50;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease, visibility 0s linear 320ms;
}
.info-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 320ms ease, visibility 0s linear 0s;
}
.info-close {
  position: absolute;
  top: 22px;
  right: var(--pad);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  transition: color 180ms;
}
.info-close:hover { color: var(--accent); }
.info-content {
  margin: auto;
  padding: 0 var(--pad);
  max-width: 64ch;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.info-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(18px, 1.9vw, 28px);
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}
.info-word {
  opacity: 0;
  filter: blur(1.5px);
  transform: translateY(1px);
  transition:
    opacity 600ms cubic-bezier(0.22, 0.7, 0.36, 1),
    filter 350ms cubic-bezier(0.22, 0.7, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 0.7, 0.36, 1);
  white-space: pre-wrap;
}
.info-word.is-revealed {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* ---------- Mobile fallback ---------- */
@media (max-width: 720px) {
  body { overflow: auto; }
  .page { height: auto; min-height: 100vh; }
}

::selection { background: var(--accent); color: var(--bg); }
