/* ---------------------------------------------------------------
   One Sky Ally — homepage
   --------------------------------------------------------------- */

/* Night sky canvas sits behind everything */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
}

/* Header --------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}

.wordmark svg {
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.8rem);
  font-size: 0.88rem;
  color: var(--text-soft);
}

.site-nav a {
  transition: color 0.2s ease;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--gold);
}

@media (max-width: 640px) {
  .site-nav .hide-mobile {
    display: none;
  }

  .wordmark {
    font-size: 1rem;
  }

  .site-nav {
    font-size: 0.82rem;
    gap: 0.85rem;
  }
}

/* Hero ----------------------------------------------------------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 7rem 4rem;
  position: relative;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}

.hero__title {
  font-size: clamp(2.6rem, 7.5vw, 5.4rem);
  font-weight: 480;
  max-width: 15ch;
}

.hero__title em {
  font-style: italic;
  font-variation-settings: 'SOFT' 60, 'WONK' 1;
  color: var(--gold);
}

.hero__sub {
  margin-top: 1.8rem;
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: var(--text-soft);
}

/* The three stars — constellation nav */

.constellation-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.2rem, 4vw, 3rem);
  margin-top: clamp(2.6rem, 6vh, 4.4rem);
}

.constellation-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  padding-block: 0.35rem;
  transition: color 0.25s ease;
}

.constellation-nav a:hover {
  color: var(--text);
}

.constellation-nav .star {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--star-color);
  box-shadow: 0 0 14px 3px color-mix(in srgb, var(--star-color) 55%, transparent);
  animation: star-breathe 4.5s ease-in-out infinite;
  animation-delay: var(--star-delay, 0s);
}

@keyframes star-breathe {
  0%,
  100% {
    box-shadow: 0 0 10px 2px color-mix(in srgb, var(--star-color) 45%, transparent);
  }
  50% {
    box-shadow: 0 0 18px 5px color-mix(in srgb, var(--star-color) 70%, transparent);
  }
}

.hero__scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.4rem;
  animation: cue-drift 2.6s ease-in-out infinite;
}

@keyframes cue-drift {
  0%,
  100% {
    transform: translate(-50%, 0);
    opacity: 0.55;
  }
  50% {
    transform: translate(-50%, 8px);
    opacity: 1;
  }
}

/* Ethos ---------------------------------------------------------- */

.ethos {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-elevated) 55%, transparent), transparent 70%);
}

.ethos__line {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 450;
  line-height: 1.35;
  max-width: 28ch;
}

.ethos__line em {
  font-style: italic;
  color: var(--gold);
}

.ethos__words {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.4rem;
  margin-top: 2.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ethos__words li::before {
  content: '✦';
  color: var(--gold);
  margin-right: 0.7rem;
  font-size: 0.7rem;
  vertical-align: 2px;
}

/* Project sections — shared shape ------------------------------- */

.project {
  --accent-dot: var(--accent);
  --accent-glow: var(--accent-soft);
}

.project__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.project__grid--flip .project__visual {
  order: -1;
}

@media (max-width: 820px) {
  .project__grid {
    grid-template-columns: 1fr;
  }

  .project__grid--flip .project__visual {
    order: 0;
  }
}

.project__title {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
}

.project__tagline {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  color: var(--accent);
}

.project__body {
  margin-top: 1.4rem;
  color: var(--text-soft);
  max-width: 52ch;
}

.project__body + .project__body {
  margin-top: 1rem;
}

.project__body strong {
  color: var(--text);
}

.project__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.1rem;
  align-items: center;
}

.project__note {
  margin-top: 0.9rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* FIOH ----------------------------------------------------------- */

.project--fioh {
  --accent: var(--fioh);
  --accent-soft: var(--fioh-soft);
}

/* Project logos — real marks, framed like record sleeves */

.project-logo {
  display: block;
  width: min(100%, 400px);
  height: auto;
  margin-inline: auto;
  border-radius: 22px;
}

.project-logo--fioh {
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 60px rgba(242, 169, 59, 0.14);
}

.project-logo--earclef {
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 60px rgba(242, 169, 59, 0.14);
}

.project-logo--pastime {
  width: min(100%, 360px);
  border: 1px solid var(--border);
  background: #0d0d0d;
  box-shadow: 0 0 50px rgba(127, 212, 193, 0.12);
}

.event-card {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  margin-top: 2.2rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid color-mix(in srgb, var(--fioh) 35%, transparent);
  background: var(--fioh-soft);
  border-radius: 14px;
  max-width: 30rem;
}

.event-card__date {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--fioh);
  white-space: nowrap;
}

.event-card__what {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Ear Clef -------------------------------------------------------- */

.project--earclef {
  --accent: var(--earclef);
  --accent-soft: var(--gold-soft);
}

.manifesto-link {
  display: block;
  margin-top: 2.1rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--bg-card);
  max-width: 34rem;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.manifesto-link:hover {
  border-color: var(--gold);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

.manifesto-link__kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.manifesto-link__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-top: 0.4rem;
}

.manifesto-link__cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Playful Pastime ------------------------------------------------- */

.project--pastime {
  --accent: var(--pastime);
  --accent-soft: var(--pastime-soft);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--pastime) 45%, transparent);
  background: var(--pastime-soft);
  color: var(--pastime);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pastime);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

/* Footer ---------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 3.2rem 3.6rem;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-elevated) 60%, transparent));
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.5rem;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-soft);
  border-bottom: 1px solid var(--border-strong);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.site-footer .sep {
  margin-inline: 0.55rem;
  color: var(--border-strong);
}
