/* ---------- Theme (pulled from the bridge photo) ---------- */
:root {
  --bg: #0d1014;          /* underside-of-the-bridge blue-black */
  --text: #e6e4df;        /* overcast off-white */
  --muted: #8a929b;       /* cloud gray */
  --steel: #5f84aa;       /* painted steel blue */
  --steel-dim: rgb(95 132 170 / 0.35);
  --river: #8c8558;       /* murky river olive */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --measure: min(100%, 1040px);
  --font-display: "Jost", "Futura", "Avenir Next", system-ui, sans-serif; /* matches the logo */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 clamp(1rem, 5vw, 3rem);
  background-color: var(--bg);
  color: var(--text);
  font: 400 clamp(1rem, 0.95rem + 0.2vw, 1.125rem)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
  overflow-x: hidden;
}

/* film grain over everything — a little dirt on the lens */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Hero photo ---------- */
.hero {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  z-index: -1;
}

.hero picture,
.hero-img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-img {
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(0.35) contrast(1.15) brightness(0.6);
  transform-origin: 50% 20%;
  animation: settle 14s var(--ease) both;
}

/* fade the photo down into the page */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgb(13 16 20 / 0.35) 0%, transparent 25%, transparent 45%, var(--bg) 100%),
    linear-gradient(to right, rgb(13 16 20 / 0.55), transparent 60%);
}

@keyframes settle {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

/* ---------- Entrance ---------- */
.reveal,
.site-header,
.site-footer {
  animation: rise 1.1s var(--ease) both;
}
.site-header { animation-delay: 0.2s; }
main > :nth-child(1) { animation-delay: 0.45s; }
main > :nth-child(2) { animation-delay: 0.6s; }
main > :nth-child(3) { animation-delay: 0.72s; }
main > :nth-child(4) { animation-delay: 0.84s; }
main > :nth-child(5) { animation-delay: 0.96s; }
.site-footer { animation-delay: 1.1s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ---------- Header ---------- */
.site-header {
  width: var(--measure);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: clamp(1.25rem, 3vw, 2rem) 0;
}

/* the home page's <h1> is the logo itself */
.wordmark-h1 { margin: 0; width: 100%; font: inherit; }

/* ---------- Wordmark (inline logo SVG, one <path> per letter piece) ---------- */
.wordmark {
  display: block;
  padding-block: 0.6rem;
  line-height: 0;
  color: var(--text);
}

.wordmark-svg {
  display: block;
  width: 7.5rem;
  height: auto;
  overflow: visible;
}

.wordmark-svg g { stroke-width: 1.8; stroke-linejoin: miter; } /* thickens the logo's strokes */

.wordmark-svg .ink { fill: currentColor; stroke: currentColor; }


/* on the home page the header fills the photo and the name sits across the middle of it */
.home .site-header {
  min-height: min(88svh, 900px);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

@media (max-width: 600px) and (orientation: portrait) {
  .home .site-header { min-height: 70svh; }
}

.home .site-header { animation: none; } /* a transform/filter here would isolate the blend below */

/* nearly edge to edge, and blended into the photo
   so the trusses and sky show through the letters */
.home .wordmark {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-inline: clamp(1rem, 4vw, 3.5rem);
  padding-block: 0;
  position: relative;
}
.home .wordmark-svg { width: 100%; }

/* the blended copy: steel and sky show through the letters */
.home .wordmark > .wordmark-svg {
  mix-blend-mode: difference; /* try color-dodge for a brighter, electric look */
}

/* a faint plain copy on top evens out the brightness between
   the letters over dark steel and the letters over light sky */
.wordmark-wash {
  position: absolute;
  inset: 0;
  padding-inline: inherit;
  opacity: 0.6;
  pointer-events: none;
}

/* the name comes up out of the haze as one piece */
.home .wordmark-svg {
  animation: arrive 1.8s var(--ease) 0.3s both;
}

@keyframes arrive {
  from { opacity: 0; filter: blur(14px); transform: translateY(3%) scale(1.02); }
  to   { opacity: 1; filter: none; transform: none; }
}

.home nav {
  position: absolute;
  top: clamp(1.25rem, 3vw, 2rem);
  right: clamp(1rem, 5vw, 3rem);
}

nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }

nav a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.4s var(--ease);
}

nav a:hover,
nav a[aria-current="page"] { color: var(--text); }

/* ---------- Main ---------- */
main {
  width: var(--measure);
  flex: 1;
  padding-bottom: clamp(3rem, 10vh, 6rem);
  counter-reset: section;
}

/* "01 | LATEST RELEASE", like a tracklist */
.eyebrow {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  counter-increment: section;
  content: counter(section, decimal-leading-zero);
  margin-right: 1.1em;
  padding-right: 1.1em;
  border-right: 1px solid var(--steel-dim);
  color: var(--steel);
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  background: #000;
  /* a second frame knocked slightly out of place */
  box-shadow: clamp(6px, 1.2vw, 12px) clamp(6px, 1.2vw, 12px) 0 var(--steel-dim);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}

/* promo link under the video */
.single-cta {
  display: inline-block;
  text-wrap: balance;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-bottom: 0.3em;
  border-bottom: 2px solid var(--steel);
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.4s var(--ease);
}

.single-cta span {
  display: inline-block;
  margin-left: 0.4em;
  color: var(--steel);
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}

.single-cta:hover { color: #fff; }
.single-cta:hover span {
  color: #fff;
  transform: translateX(0.3em);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 0.95em 1.6em;
  border: 1px solid var(--text);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.button:hover {
  background: var(--text);
  color: var(--bg);
}

.hero-button {
  align-self: center;
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  /* rises out of the haze with the logo, a beat behind it */
  animation: arrive 1.1s var(--ease) 0.6s both;
}

/* ---------- Link groups: flowing type, not buttons ---------- */
.link-group {
  margin-top: clamp(3rem, 9vh, 5.5rem);
}

.link-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em 0;
}

.link-group--md li:not(:last-child)::after {
  content: "/";
  margin: 0 0.5em;
  color: var(--steel-dim);
  font-weight: 300;
}

.link-group a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  transition: color 0.5s var(--ease), opacity 0.5s var(--ease);
}

.link-group--lg ul {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 5.5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.link-group--md ul {
  font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

/* underline that sweeps in */
.link-group a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.04em;
  height: max(2px, 0.06em);
  background: var(--steel);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}

.link-group a:hover { color: #fff; }

.link-group a:hover::after,
.link-group a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* dim siblings so the hovered link steps forward */
.link-group ul:hover a:not(:hover) { opacity: 0.4; }

:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 4px;
}

/* ---------- Newsletter ---------- */
.newsletter {
  margin-top: clamp(3rem, 9vh, 5.5rem);
  scroll-margin-top: 2rem;
}

.newsletter-blurb {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 34rem;
}

.newsletter-form input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.85em 0;
  border: 0;
  border-bottom: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  transition: border-color 0.3s var(--ease);
}

.newsletter-form input[type="email"]::placeholder { color: var(--muted); opacity: 0.7; }
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--steel); }

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

/* "Or follow along on Instagram" under the signup form */
.newsletter-follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.75rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.newsletter-follow a {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.newsletter-follow a:hover { color: var(--steel); }

.newsletter-follow .icon {
  width: 1.25em;
  height: 1.25em;
}

/* ---------- Markdown pages ---------- */
.prose { padding-top: 1rem; }
.prose > * { max-width: 70ch; }
.prose h1, .prose h2, .prose h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.prose h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); margin: 0 0 1.5rem; }
.prose a { color: var(--steel); }
.prose img { max-width: 100%; height: auto; border-radius: 3px; }

/* ---------- Footer ---------- */
.site-footer {
  width: var(--measure);
  padding: 2rem 0 2.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}
