:root {
  --bg: #000000;
  --white: #f2f6f8;
  --muted: #8a8f93;
  --dim: #5e6367;
  --steel: #aebfc7; /* grey-blue */
  --line: #16181a;
  --line-2: #1f2325;
  --sans: 'Space Grotesk', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: #000;
  -webkit-text-size-adjust: 100%;
}
body {
  background: #000;
  color: var(--white);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection {
  background: var(--steel);
  color: #000;
}
.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 28px);
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 4rem 1.25rem 3rem;
  overflow: hidden;
}
.hero::after {
  /* faint icy breath behind the logo */
  content: '';
  position: absolute;
  width: min(560px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(174, 191, 199, 0.08), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.mark {
  position: relative;
  z-index: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: clamp(44px, 9vw, 96px);
  display: flex;
  align-items: center;
  gap: 0.06em;
}
.mark .star {
  display: inline-block;
  transform: translateY(-2%);
  font-size: 0.92em;
  line-height: 1;
}
.sub {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(12px, 2vw, 17px);
  letter-spacing: 0.85em;
  text-indent: 0.85em;
  font-weight: 500;
}

/* Scroll cue — a real button (click → smooth-scroll to the first section). */
.hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.22em;
  z-index: 1;
  /* button reset */
  border: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding: 6px 10px;
  transition: color 0.25s ease;
}
.hint:hover,
.hint:focus-visible {
  color: var(--steel);
}
.hint:focus-visible {
  outline: 1px solid var(--steel);
  outline-offset: 4px;
  border-radius: 4px;
}
.hint .arrow {
  display: inline-block;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(4px);
  }
}

/* ── SECTIONS ─────────────────────────────────────────── */
.sections {
  padding-block: 4vh 2vh;
}
.item {
  position: relative;
  padding: clamp(4rem, 10vh, 9rem) 0;
  border-top: 1px solid var(--line-2);
  overflow: hidden;
}
.ghost {
  position: absolute;
  top: 50%;
  right: -0.03em;
  transform: translateY(calc(-50% + var(--par, 0px)));
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(130px, 26vw, 300px);
  color: var(--steel);
  opacity: 0.1;
  letter-spacing: -0.04em;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}
.item:nth-child(even) .ghost {
  right: auto;
  left: -0.03em;
}
.item-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}
.item:nth-child(even) .item-inner {
  margin-left: auto;
  text-align: right;
}
.item h2 {
  font-size: clamp(26px, 4.6vw, 46px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.item p {
  color: var(--muted);
  font-size: clamp(15px, 1.9vw, 18px);
  line-height: 1.65;
}

/* ── CONTACT ──────────────────────────────────────────── */
.contact {
  border-top: 1px solid var(--line-2);
  padding-block: clamp(6rem, 14vh, 12rem) clamp(5rem, 12vh, 10rem);
  text-align: center;
}
.contact .label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--steel);
  margin-bottom: 26px;
}
.mail {
  display: inline-block;
  max-width: 100%;
  font-family: var(--mono);
  font-size: clamp(14px, 3vw, 26px);
  color: var(--white);
  text-decoration: none;
  padding: 18px clamp(20px, 5vw, 34px);
  border: 1px solid var(--steel);
  border-radius: 999px;
  word-break: break-word;
  box-shadow:
    0 0 22px rgba(174, 191, 199, 0.18),
    inset 0 0 14px rgba(174, 191, 199, 0.05);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
.mail:hover {
  box-shadow:
    0 0 36px rgba(174, 191, 199, 0.36),
    inset 0 0 16px rgba(174, 191, 199, 0.08);
  transform: translateY(-2px);
}

/* ── FOOTER RIBBON ────────────────────────────────────── */
/* A quiet grey marquee: AURORA SYSTEMS STACK GROUP · … repeated to fill the width.
   JS (main.js) fills it responsively and duplicates it for a seamless loop. */
.ribbon {
  border-top: 1px solid var(--line-2);
  overflow: hidden;
  padding: 16px 0;
  /* fade the two edges so the loop reads as endless */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.ribbon-track {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 42s linear infinite;
}
.ribbon-unit {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--dim);
  text-transform: uppercase;
}
.ribbon-unit .dot {
  color: var(--steel);
  margin: 0 1.1em;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ── Intro loader (first open of the session) ─────────── */
/* Hidden by default; shown only when the head gate sets `html.intro` (JS on, not
   seen this session, motion allowed). So no-JS / reduced-motion never see it. */
#loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #000;
  transition:
    transform 0.85s cubic-bezier(0.76, 0, 0.24, 1),
    opacity 0.5s ease 0.15s;
}
html.intro {
  overflow: hidden; /* lock scroll during the intro */
}
html.intro #loader {
  display: flex;
}
#loader.done {
  transform: translateY(-100%); /* curtain up, revealing the hero */
  opacity: 0;
}
.loader-star {
  font-size: 40px;
  line-height: 1;
  color: var(--steel);
  animation: loaderPulse 1.4s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(174, 191, 199, 0.35));
  }
  50% {
    opacity: 1;
    transform: scale(1.09);
    filter: drop-shadow(0 0 20px rgba(174, 191, 199, 0.6));
  }
}
.loader-bar {
  width: min(200px, 52vw);
  height: 1px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}
.loader-bar > i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--steel);
  box-shadow: 0 0 10px rgba(174, 191, 199, 0.6);
}
.loader-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--dim);
}

/* ── Reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.hero .mark,
.hero .sub {
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero .sub {
  animation-delay: 0.12s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

@media (max-width: 620px) {
  .item-inner,
  .item:nth-child(even) .item-inner {
    text-align: left;
    margin: 0;
  }
}
@media (max-width: 480px) {
  .ghost {
    opacity: 0.08;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  /* Ribbon stays as a static, filled strip (no marquee). */
  .ribbon-track {
    animation: none;
  }
}
