/* =========================================================================
   SEλENE — Neuromorphic Lunar Landing-Site Assessment
   Post-event closing page. Dark, flush-left, hairline-rule aesthetic
   matching the spirit of neurotum.com/hackathon. One accent colour
   (OHB_SKY) used only as a line, a label, or a glow — never as a fill.
   ========================================================================= */

:root {
  --bg:          #0a0c0e;
  --bg-alt:      #101317;
  --bg-raised:   #14181d;
  --fg:          #e9e7e2;
  --fg-dim:      #a3a6a8;
  --fg-faint:    #6c6f72;

  --ohb-dark:    #003d61;
  --ohb-light:   #609ab4;
  --ohb-sky:     #93d5f2;

  --accent:      var(--ohb-sky);
  --accent-dim:  rgba(147, 213, 242, 0.35);
  --accent-glow: rgba(147, 213, 242, 0.18);

  --hairline:    rgba(233, 231, 226, 0.1);

  --font-sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --content-max: 780px;
  --wide-max: 1240px;
  --side-pad: clamp(20px, 6vw, 96px);

  --header-h: 56px;

  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---------- grain overlay (static, rendered once per viewport size) ---------- */
.grain-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  pointer-events: none;
}

/* ---------- page-wide ambient background canvas (slow, sparse snow) ---------- */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ---------- fixed brand header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--side-pad);
  background: rgba(10, 12, 14, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-header-logo { display: flex; align-items: center; }
.site-header-logo img {
  display: block;
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}
.site-header-sep { color: var(--accent); opacity: 0.7; }
.site-header-tag { color: var(--fg-dim); }
.site-header-link {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--fg-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-header-link:hover { color: var(--accent); border-color: var(--accent-dim); }

/* ---------- sky-blue glow sources (accent used only as light) ---------- */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  mix-blend-mode: screen;
  z-index: -1;
}
.glow--a {
  width: 560px; height: 560px;
  top: -160px; right: -120px;
  background: radial-gradient(circle, rgba(147,213,242,0.32) 0%, rgba(147,213,242,0) 70%);
}
.glow--b {
  width: 380px; height: 380px;
  bottom: -140px; left: -110px;
  background: radial-gradient(circle, rgba(147,213,242,0.18) 0%, rgba(147,213,242,0) 70%);
}
@media (max-width: 700px) {
  .glow--a { width: 340px; height: 340px; }
  .glow--b { width: 240px; height: 240px; }
}

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

a { color: var(--accent); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

img, canvas { max-width: 100%; }

/* ---------- utility: skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-raised);
  color: var(--fg);
  padding: 12px 18px;
  z-index: 1000;
  border: 1px solid var(--accent-dim);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- noscript ---------- */
.noscript-banner {
  background: var(--bg-raised);
  color: var(--fg-dim);
  border-bottom: 1px solid var(--accent-dim);
  padding: 14px var(--side-pad);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-top: var(--header-h);
}
.noscript-banner a { color: var(--accent); }

/* ---------- eyebrow ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

/* =========================================================================
   HERO — the whole page
   ========================================================================= */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* vertical padding follows viewport height so the footer stays on a
     typical laptop screen without scrolling */
  padding: calc(var(--header-h) + clamp(32px, 7vh, 88px)) var(--side-pad) clamp(40px, 7vh, 88px);
  overflow: hidden;
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.85;
}

.hero-inner { max-width: var(--content-max); }

.hero-title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(3.2rem, 11vw, 7rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 18px;
  color: var(--fg);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--fg-dim);
  margin: 0 0 28px;
  font-weight: 400;
}

/* "Mission complete" — a lit indicator, steady rather than pulsing, since
   nothing on this page is live any more. */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 6px 14px 6px 12px;
  border: 1px solid rgba(147, 213, 242, 0.28);
  border-radius: 999px;
  background: rgba(147, 213, 242, 0.04);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
}
.hero-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--accent-glow), 0 0 3px var(--accent);
}

.hero-statement {
  max-width: 620px;
  font-size: 1.05rem;
  color: var(--fg);
  border-left: 2px solid var(--accent-dim);
  padding-left: 18px;
  margin: 0 0 24px;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
  text-transform: uppercase;
  margin: 0 0 36px;
}

/* ---------- calls to action ---------- */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin: 0 0 56px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 24px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--accent-dim);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(147, 213, 242, 0.09), rgba(147, 213, 242, 0.02));
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.cta:hover,
.cta:focus-visible {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(147, 213, 242, 0.14), rgba(147, 213, 242, 0.04));
  box-shadow: 0 0 36px var(--accent-glow);
}
.cta-arrow {
  color: var(--accent);
  font-size: 1.05em;
  transition: transform 0.25s ease;
}
.cta:hover .cta-arrow,
.cta:focus-visible .cta-arrow { transform: translate(2px, -2px); }

.hero-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hero-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .cta, .cta-arrow, .hero-link, .site-header-link { transition: none; }
}

/* ---------- compact quick-facts strip ---------- */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  max-width: var(--wide-max);
}
.hero-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(233,231,226,0.14);
  min-width: 150px;
}
.hero-fact-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.hero-fact-value {
  font-size: 0.86rem;
  color: var(--fg-dim);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px var(--side-pad) 26px;
  border-top: 1px solid var(--hairline);
  background: rgba(10, 12, 14, 0.6);
}
.footer-brand-logo {
  display: block;
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-brand-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
}

/* =========================================================================
   responsive floor
   ========================================================================= */
@media (max-width: 400px) {
  :root { --side-pad: 16px; }
  .hero-statement { padding-left: 12px; }
  .cta { width: 100%; justify-content: space-between; }
}

/* ---------------------------------------------------------------------------
   Seλene wordmark. The lambda rides slightly small and tight against the
   surrounding lowercase, so it gets a small optical correction rather than
   being left to fend for itself at display size. Colour is inherited on
   purpose: the glyph is the flourish, tinting it too would be two.
   --------------------------------------------------------------------------- */
.brand-lam {
  font-size: 1.05em;
  letter-spacing: 0.01em;
  font-style: normal;
}
