:root {
  --ink: #05070b;
  --ink-soft: #0b1118;
  --paper: #f4f1ea;
  --muted: #a5adb8;
  --line: rgba(255, 255, 255, 0.16);
  --blue: #8cc9ff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

body.intro-active {
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }

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

.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(22, 54, 81, 0.42), transparent 37%),
    #020407;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-stars,
.intro-stars::before,
.intro-stars::after {
  position: absolute;
  inset: -30%;
  content: "";
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(140,201,255,.7) 0 1px, transparent 1.5px);
  background-position: 0 0, 42px 78px;
  background-size: 145px 145px, 205px 205px;
  opacity: 0;
  animation: stars-in 2.5s ease forwards, drift 28s linear infinite;
}

.intro-stars::before {
  transform: rotate(18deg) scale(1.2);
  animation-delay: .6s;
}

.intro-stars::after {
  transform: rotate(-12deg) scale(.9);
  animation-delay: 1.1s;
}

.intro-constellation {
  position: absolute;
  width: min(52vw, 640px);
  opacity: .92;
}

.constellation-lines path {
  fill: none;
  stroke: rgba(178, 220, 255, .7);
  stroke-width: 1.5;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-line 3.8s 1.4s ease forwards;
}

.constellation-stars circle {
  fill: #fff;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(140,201,255,.9));
  animation: star-pop .6s ease forwards;
}

.constellation-stars circle:nth-child(1) { animation-delay: 1.2s; }
.constellation-stars circle:nth-child(2) { animation-delay: 1.6s; }
.constellation-stars circle:nth-child(3) { animation-delay: 2s; }
.constellation-stars circle:nth-child(4) { animation-delay: 2.4s; }
.constellation-stars circle:nth-child(5) { animation-delay: 2.8s; }
.constellation-stars circle:nth-child(6) { animation-delay: 3.2s; }
.constellation-stars circle:nth-child(7) { animation-delay: 3.6s; }

.intro-wordmark {
  z-index: 2;
  margin-top: 255px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  animation: wordmark-in 1.6s 4.4s ease forwards;
}

.intro-wordmark span,
.intro-wordmark small,
.intro-wordmark em {
  display: block;
}

.intro-wordmark span {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 8vw, 7rem);
  letter-spacing: .22em;
  line-height: .85;
}

.intro-wordmark small {
  margin-top: 1.2rem;
  font-size: .72rem;
  letter-spacing: .68em;
}

.intro-wordmark em {
  margin-top: 1.25rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  letter-spacing: .08em;
}

.skip-intro {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.55);
  font: inherit;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem clamp(1.2rem, 4vw, 4rem);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}

.site-header.scrolled {
  background: rgba(5, 7, 11, .72);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: .25em;
}

.brand small {
  margin-top: .35rem;
  font-size: .52rem;
  letter-spacing: .55em;
}

.site-nav {
  display: flex;
  gap: 2.2rem;
  font-size: .72rem;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  color: rgba(255,255,255,.8);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -.5rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transition: transform .25s ease;
}

.site-nav a:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: white;
  padding: .6rem .85rem;
  font: inherit;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(7rem, 12vw, 11rem) clamp(1.5rem, 8vw, 8rem) clamp(5rem, 9vw, 8rem);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: url("assets/vela-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  animation: hero-breathe 18s ease-in-out infinite alternate;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(2,4,7,.9) 0%, rgba(2,4,7,.25) 48%, rgba(2,4,7,.58) 100%),
    linear-gradient(to right, rgba(2,4,7,.82) 0%, rgba(2,4,7,.18) 58%, rgba(2,4,7,.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow,
.section-label {
  margin: 0 0 1.2rem;
  color: var(--blue);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: .98;
}

h1 {
  margin-bottom: 1.6rem;
  font-size: clamp(3.7rem, 8vw, 8.5rem);
  letter-spacing: -.035em;
}

.hero-copy {
  max-width: 590px;
  color: rgba(255,255,255,.75);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 1.4rem;
  border: 1px solid rgba(255,255,255,.28);
  font-size: .69rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.button-primary {
  background: var(--paper);
  color: var(--ink);
}

.button-primary:hover { background: white; }

.button-ghost:hover {
  border-color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.08);
}

.scroll-cue {
  position: absolute;
  right: clamp(1.5rem, 4vw, 4rem);
  bottom: 2rem;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: .65rem;
  color: rgba(255,255,255,.5);
  font-size: .55rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.scroll-cue span {
  width: 1px;
  height: 54px;
  background: linear-gradient(to bottom, transparent, white);
  animation: pulse-line 2s ease-in-out infinite;
}

.manifesto,
.films,
.journal,
.contact {
  padding: clamp(5.5rem, 10vw, 10rem) clamp(1.5rem, 8vw, 8rem);
}

.manifesto {
  background:
    radial-gradient(circle at 15% 20%, rgba(35, 74, 103, .22), transparent 34%),
    var(--ink);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 8vw, 8rem);
}

.manifesto h2,
.section-heading h2,
.journal h2,
.contact h2 {
  font-size: clamp(2.9rem, 5vw, 5.8rem);
}

.manifesto-copy {
  color: rgba(255,255,255,.67);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
}

.manifesto-copy p + p { margin-top: 1.4rem; }

.films {
  border-top: 1px solid var(--line);
  background: var(--ink-soft);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
}

.section-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.film-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.film-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}

.film-image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}

.film-image.mountain {
  background-image:
    linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.05)),
    url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1500&q=85");
}

.film-image.ocean {
  background-image:
    linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.05)),
    url("https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=1500&q=85");
}

.film-image.forest {
  background-image:
    linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.05)),
    url("https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1500&q=85");
}

.film-card:hover .film-image { transform: scale(1.04); }

.film-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 2rem;
}

.film-overlay p {
  margin-bottom: .7rem;
  color: var(--blue);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.film-overlay h3 {
  margin-bottom: .7rem;
  font-size: clamp(2.2rem, 3vw, 3.6rem);
}

.film-overlay span {
  color: rgba(255,255,255,.55);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.statement {
  display: grid;
  min-height: 60vh;
  place-items: center;
  padding: 4rem 1.5rem;
  background:
    linear-gradient(rgba(5,7,11,.35), rgba(5,7,11,.78)),
    url("https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=2200&q=85") center/cover fixed;
  text-align: center;
}

.statement p {
  max-width: 1000px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: .98;
}

.journal {
  display: grid;
  grid-template-columns: 1.2fr .8fr auto;
  align-items: end;
  gap: 3rem;
  border-top: 1px solid var(--line);
}

.journal p {
  color: rgba(255,255,255,.65);
}

.journal > a {
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--blue);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.contact {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(50, 93, 126, .22), transparent 38%),
    #06090e;
}

.contact p {
  max-width: 670px;
  margin-right: auto;
  margin-bottom: 2rem;
  margin-left: auto;
  color: rgba(255,255,255,.67);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem clamp(1.5rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  color: rgba(255,255,255,.5);
  font-size: .66rem;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  color: white;
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: .25em;
}

.footer-brand span {
  font-size: .48rem;
  letter-spacing: .55em;
}

.footer-social {
  text-align: right;
}

.footer-social > span {
  display: block;
  margin-bottom: .55rem;
  color: rgba(255,255,255,.42);
  font-family: var(--serif);
  font-size: .88rem;
  font-style: italic;
  letter-spacing: .04em;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.footer-links a {
  transition: color .25s ease;
}

.footer-links a:hover {
  color: var(--blue);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s ease, transform .9s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes stars-in {
  to { opacity: .42; }
}

@keyframes drift {
  to { transform: translate3d(4%, 3%, 0) rotate(4deg); }
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes star-pop {
  from { opacity: 0; transform: scale(.25); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes wordmark-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-breathe {
  to { transform: scale(1.085); }
}

@keyframes pulse-line {
  0%, 100% { opacity: .25; transform: scaleY(.65); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    inset: 72px 1rem auto;
    display: none;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid var(--line);
    background: rgba(5,7,11,.96);
  }

  .site-nav.open { display: flex; }
  .menu-toggle { display: block; }

  .manifesto-grid,
  .journal {
    grid-template-columns: 1fr;
  }

  .film-grid {
    grid-template-columns: 1fr;
  }

  .film-card { min-height: 430px; }

  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-brand { margin: auto; }

  .intro-wordmark { margin-top: 220px; }
}

@media (max-width: 560px) {
  .brand img { width: 36px; height: 36px; }
  .brand strong { font-size: 1.15rem; }

  .hero {
    align-items: flex-end;
    padding-bottom: 5rem;
  }

  .hero-backdrop { background-position: 58% center; }

  .scroll-cue { display: none; }

  .intro-constellation {
    width: 95vw;
    transform: translateY(-20px);
  }

  .intro-wordmark {
    margin-top: 180px;
  }

  .intro-wordmark span {
    font-size: 3.3rem;
  }

  .intro-wordmark small {
    letter-spacing: .45em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .intro { display: none; }
  body { overflow: auto; }
}
