@font-face {
  font-family: Syne;
  src: url("../fonts/syne-variable.woff2") format("woff2-variations"),
       url("../fonts/syne-variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07080c;
  --bg-elev: #101218;
  --text: #f3efe6;
  --muted: #b7b1a6;
  --faint: #8a857c;
  --accent: #d8bc86;
  --accent-deep: #a8894e;
  --line: rgba(243, 239, 230, 0.1);
  --focus: #f0e0b0;
  --display: Syne, "Segoe UI", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --page: 76rem;
  --measure: 40rem;
  --gutter: clamp(1.2rem, 4.5vw, 3.5rem);
  --header-h: 4.25rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-fog,
  .hero-fog span,
  .hero-stage { animation: none !important; transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg { display: block; max-width: 100%; height: auto; }

picture { width: 100%; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--text); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0.7rem;
  z-index: 200;
  padding: 0.5rem 0.9rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* Atmospheric grain — CSS-only fallback plus a tiny tiled texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.07;
  background-image: url("../images/grain.webp");
  background-size: 128px 128px;
  mix-blend-mode: overlay;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1.5rem;
  min-height: var(--header-h);
  padding: 0.85rem var(--gutter);
  background: linear-gradient(to bottom, rgba(7, 8, 12, 0.72), rgba(7, 8, 12, 0.28) 70%, transparent);
  backdrop-filter: blur(8px);
}

.wordmark {
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.wordmark:hover { color: var(--accent); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--text); }

/* ——— Hero ——— */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--text);
}

.hero-stage {
  position: absolute;
  inset: -12% 0 -8% 0;
  z-index: 0;
  will-change: transform;
}
.hero-stage picture,
.hero-stage img {
  width: 100%;
  height: 100%;
}
.hero-stage img {
  object-fit: cover;
  object-position: center 62%;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, #07080c 0%, rgba(7, 8, 12, 0.82) 22%, rgba(7, 8, 12, 0.35) 48%, rgba(7, 8, 12, 0.12) 70%, transparent 86%),
    radial-gradient(ellipse at 50% 40%, transparent 35%, rgba(7, 8, 12, 0.55) 100%);
}

.hero-fog {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.hero-fog span {
  position: absolute;
  display: block;
  width: 70vw;
  height: 50vh;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(200, 220, 230, 0.16), transparent 70%);
  filter: blur(40px);
  opacity: 0.45;
  animation: fog-drift 36s ease-in-out infinite alternate;
}
.hero-fog span:nth-child(1) { top: 8%; left: -10%; animation-duration: 42s; }
.hero-fog span:nth-child(2) { top: 30%; right: -15%; width: 55vw; animation-duration: 30s; animation-delay: -12s; opacity: 0.28; }
.hero-fog span:nth-child(3) { bottom: 15%; left: 20%; width: 40vw; height: 30vh; animation-duration: 48s; animation-delay: -20s; }

@keyframes fog-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6%, -4%, 0) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(2.5rem, 7vh, 5rem);
}

.kicker {
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--display); font-weight: 750; letter-spacing: -0.035em; }

h1 {
  margin: 0 0 1.15rem;
  max-width: 20ch;
  font-size: clamp(3rem, 9.2vw, 8rem);
  line-height: 0.9;
  font-weight: 800;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.button {
  display: inline-block;
  padding: 0.85rem 1.35rem;
  background: var(--accent);
  color: #1a160e;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
}
.button:hover { color: #1a160e; filter: brightness(1.08); }

.scroll-hint {
  position: absolute;
  right: var(--gutter);
  bottom: 1.6rem;
  z-index: 3;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.scroll-hint:hover { color: var(--text); }

/* ——— Layout ——— */
.section {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.section-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.prose { max-width: var(--measure); }

h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.05;
}

.section p {
  margin: 0 0 1rem;
  color: var(--muted);
}
.section p:last-child { margin-bottom: 0; }

.feature-list {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.4rem 2rem;
}
@media (min-width: 760px) {
  .feature-list { grid-template-columns: 1fr 1fr; }
}
.feature-list li {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.feature-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
}
.feature-list p { margin: 0; font-size: 0.98rem; }

/* Reveals */
.reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Full-bleed stills */
.bleed {
  margin: 0;
  width: 100%;
}
.bleed picture,
.bleed img { width: 100%; }
.bleed img {
  height: auto;
  object-fit: cover;
}
.bleed.tall img {
  max-height: 92vh;
  width: 100%;
  object-fit: cover;
}
.caption {
  max-width: var(--page);
  margin: 0.8rem auto 0;
  padding: 0 var(--gutter);
  color: var(--faint);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.pair {
  display: grid;
  gap: 0.6rem;
}
@media (min-width: 800px) {
  .pair { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}
.pair figure { margin: 0; }
.pair .caption { padding: 0.7rem var(--gutter) 0; margin: 0; }

.overlay-band {
  position: relative;
  isolation: isolate;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.overlay-band .bleed,
.overlay-band picture,
.overlay-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.overlay-band img { object-fit: cover; }
.overlay-band .shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(7, 8, 12, 0.92) 0%, rgba(7, 8, 12, 0.35) 45%, rgba(7, 8, 12, 0.2) 100%);
}
.overlay-band .copy {
  position: relative;
  z-index: 2;
  max-width: var(--page);
  width: 100%;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}
.overlay-band .copy h2,
.overlay-band .copy p { color: var(--text); }
.overlay-band .copy p { color: var(--muted); max-width: var(--measure); }

.planet-void {
  position: relative;
  background: #000;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  overflow: hidden;
  padding: calc(var(--header-h) + 0.75rem) 0 2rem;
}
@media (min-width: 800px) {
  .planet-void {
    flex-direction: row;
    align-items: center;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding: 0;
    gap: 0;
  }
}
.planet-void .copy {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 38rem;
  padding: 0 var(--gutter) 0.5rem;
}
@media (min-width: 800px) {
  .planet-void .copy {
    flex: 1 1 42%;
    padding: 0 2rem 0 calc(var(--gutter) + 0.5rem);
  }
}
.planet-globe {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
}
@media (min-width: 800px) {
  .planet-globe {
    flex: 1 1 58%;
    padding: 0 var(--gutter) 0 0;
  }
}
.planet-globe picture,
.planet-globe img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 36vh;
  object-fit: contain;
}
@media (min-width: 800px) {
  .planet-globe picture,
  .planet-globe img { max-height: 64vh; }
}
.planet-void .caption,
.planet-globe .caption {
  position: static;
  text-align: center;
  margin: 0.7rem 0 0;
  padding: 0;
}

/* Ground strip */
.ground-grid {
  display: grid;
  gap: 0.6rem;
}
@media (min-width: 800px) {
  .ground-grid { grid-template-columns: 1fr 1fr; }
}
.ground-grid figure { margin: 0; }
.ground-grid .wide { grid-column: 1 / -1; }
.ground-grid .caption { padding: 0.7rem var(--gutter) 0; margin: 0; }

/* Development */
.dev {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.dev-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 800px) {
  .dev-grid { grid-template-columns: repeat(3, 1fr); gap: 2.2rem; }
}
.dev-item h3 {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.dev-item p { margin: 0; }

/* Follow */
.follow {
  padding: clamp(4.5rem, 11vw, 8.5rem) 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(216, 188, 134, 0.08), transparent 50%),
    var(--bg);
}
.follow .section-inner { max-width: 34rem; }
.follow h2 { margin-bottom: 0.7rem; }

.form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.6rem;
}
.form label { font-weight: 650; font-size: 0.95rem; }
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}
.form input[type="email"] {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0c0d12;
  color: var(--text);
  font: inherit;
}
.form input[type="email"]::placeholder { color: var(--faint); }
.form .button { flex: 0 0 auto; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0.4rem 0 0;
  min-height: 1.4em;
  font-size: 0.92rem;
}
.form-status[data-state="success"] { color: var(--accent); }
.form-status[data-state="error"] { color: #e8b4a8; }
.form-status[data-state="pending"] { color: var(--muted); }

.site-footer {
  padding: 2.4rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
}
.site-footer .section-inner { padding: 0; }
.site-footer p {
  margin: 0 0 0.35rem;
  color: var(--faint);
  font-size: 0.88rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dev h2:not(.visually-hidden) {
  margin: 0 0 2rem;
}

@media (max-width: 699px) {
  .scroll-hint { display: none; }
}

@media (max-width: 759px) {
  :root { --header-h: 5.4rem; }
  .site-nav { gap: 0.35rem 1rem; font-size: 0.86rem; }
}
@media (max-width: 439px) {
  :root { --header-h: 5.6rem; }
  .site-nav a[href="#follow"] { display: none; }
}
@media (max-width: 359px) {
  :root { --header-h: 5.6rem; }
  .site-nav {
    flex-wrap: nowrap;
    gap: 0.45rem 0.55rem;
    width: 100%;
    justify-content: flex-start;
  }
  .site-nav a {
    font-size: 0.72rem;
    letter-spacing: 0;
    white-space: nowrap;
  }
  h1 { font-size: clamp(2.45rem, 12.5vw, 3rem); }
  .lede { font-size: 1rem; margin-bottom: 1.25rem; }
  .hero-content { padding-top: calc(var(--header-h) + 0.35rem); }
}
