@import url("./assets/fonts/fonts.css");

:root {
  --bg:        #101416;
  --bg-deep:   #0a0d0e;
  --bg-panel:  #161b1e;
  --line:      #232b2f;
  --text:      #c8d2d4;
  --text-dim:  #7d8b8f;
  --text-hi:   #eef3f3;
  --red:       #ab1f1f;
  --red-hot:   #d12626;
  --mint:      #9ec8bb;

  --font-display: 'Oswald', 'Franklin Gothic Medium', 'Arial Narrow', sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
               Helvetica, Arial, sans-serif;

  --maxw: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--text-hi); text-decoration-color: rgba(171, 31, 31, .8); }
a:hover { color: #fff; text-decoration-color: var(--red-hot); }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- typography ---------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-hi);
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p, li { text-wrap: pretty; }

h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); }
h3 { font-size: 1.1rem; letter-spacing: .1em; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  color: var(--red);
  margin: 0 0 .9rem;
}

.eyebrow--mint { color: var(--mint); }

.section-head { max-width: 46rem; margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem); }
.section-head p { color: var(--text-dim); margin: 1rem 0 0; }

/* --- skip link ----------------------------------------------------------- */

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--red); color: #fff; padding: .75rem 1.25rem;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
}
.skip:focus { left: 0; }

/* --- site header --------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  transition: background-color .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  background: rgba(10, 13, 14, .92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(8px);
}

.nav__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4rem;
}

.nav__home { line-height: 0; flex: none; }
.nav__home img { height: 26px; width: auto; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__menu a {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
}
.nav__menu a:hover, .nav__menu a:focus-visible { color: var(--text-hi); }

.nav__menu .btn {
  padding: .55rem 1.1rem;
  font-size: .78rem;
  color: #fff;
}

.nav__toggle {
  display: none;
  position: relative;
  flex: none;
  width: 3rem;
  height: 3rem;
  margin-right: -.75rem;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav__toggle span {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 2px;
  margin-left: -12px;
  background: var(--text-hi);
  transition: transform .2s ease, opacity .2s ease;
}

.nav__toggle span:nth-child(1) { top: calc(50% - 8px); }
.nav__toggle span:nth-child(2) { top: 50%; }
.nav__toggle span:nth-child(3) { top: calc(50% + 8px); }

@media (max-width: 860px) {
  .nav { background: rgba(10, 13, 14, .92); border-bottom-color: var(--line); }

  .nav__toggle { display: block; }
  .nav__home,
  .nav__toggle { position: relative; z-index: 2; }

  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    padding: 6rem var(--gutter) 3rem;
    background: var(--bg-deep);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
  }

  .nav__menu a { font-size: 1.3rem; letter-spacing: .12em; color: var(--text-hi); }
  .nav__menu .btn { font-size: 1rem; padding: .8rem 1.6rem; margin-top: .5rem; }

  .nav.is-open .nav__menu { opacity: 1; visibility: visible; }
  .nav.is-open .nav__toggle span:nth-child(1) { top: 50%; transform: rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { top: 50%; transform: rotate(-45deg); }

  body.nav-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }
}

/* --- hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(6rem, 14vh, 9rem) clamp(3rem, 9vh, 5.5rem);
  isolation: isolate;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: image-set(
    url("./assets/web/hero-1920.jpg") 1x,
    url("./assets/web/hero-1920.jpg") 2x);
  background-color: #050708;
  background-size: cover;
  background-position: center 45%;
}

@media (max-width: 640px) {
  .hero__bg { background-position: 58% 45%; }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, .55) 0%,
    rgba(0, 0, 0, .5) 35%,
    rgba(0, 0, 0, .72) 70%,
    rgba(0, 0, 0, .88) 100%);
}

/* scanlines */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .035) 0px,
    rgba(255, 255, 255, .035) 1px,
    transparent 1px,
    transparent 3px);
  mix-blend-mode: soft-light;
  opacity: .9;
}

.hero__inner { position: relative; }

.hero__logo {
  width: min(560px, 82vw);
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .85));
}

.hero__tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.05rem, .85rem + 1.1vw, 1.6rem);
  letter-spacing: .04em;
  color: var(--text-hi);
  max-width: 34ch;
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .9);
}

.hero__tagline span,
.lines span { display: block; }

.hero__meta {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .7rem;
  color: var(--text-dim);
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
}

.hero__meta span { white-space: nowrap; }
.hero__meta span + span::before {
  content: "·";
  margin: 0 .6em;
  color: var(--red);
}

/* scroll hint */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  translate: -50% 0;
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, transparent, var(--red));
  opacity: .8;
}

/* --- buttons ------------------------------------------------------------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text-hi);
  --btn-bd: rgba(200, 214, 216, .4);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .18s ease;
}

.btn:hover, .btn:focus-visible {
  transform: translateY(-1px);
  color: #fff;
}

.btn--primary {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  --btn-bd: var(--red);
  box-shadow: 0 0 0 0 rgba(171, 31, 31, .55);
}
.btn--primary:hover, .btn--primary:focus-visible {
  --btn-bg: var(--red-hot);
  --btn-bd: var(--red-hot);
  box-shadow: 0 6px 28px -6px rgba(209, 38, 38, .8);
}

.btn--ghost:hover, .btn--ghost:focus-visible {
  --btn-bd: var(--mint);
  --btn-bg: rgba(158, 200, 187, .08);
}

.btn__icon { width: 1.05em; height: 1.05em; flex: none; fill: currentColor; }

/* --- sections ------------------------------------------------------------ */

.section {
  padding-block: clamp(2.5rem, 5.5vw, 4.5rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 4rem;
}

.section--panel { background: var(--bg-deep); }

/* --- trailer ------------------------------------------------------------- */

.player {
  border: 1px solid var(--line);
  background: #000;
  line-height: 0;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
}

/* the file carries 2.35:1 letterbox inside a 16:9 frame, so crop the bars off */
.player video {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 816;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .player {
    margin-inline: calc(var(--gutter) * -1);
    border-inline: 0;
  }
}

.player__meta {
  margin: 1.25rem 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .68rem;
  color: var(--text-dim);
}

/* --- features ------------------------------------------------------------ */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
}

.feature__no {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: .7rem;
  letter-spacing: .22em;
  color: var(--red);
  display: block;
  margin-bottom: .9rem;
}

.feature h3 { margin-bottom: .75rem; }
.feature p { margin: 0; color: var(--text-dim); font-size: .95rem; }

/* --- pescadero / incident report ----------------------------------------- */

.report {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
}

.report__seal {
  position: absolute;
  right: -3rem;
  top: 50%;
  translate: 0 -50%;
  width: min(26rem, 60%);
  opacity: .12;
  pointer-events: none;
  z-index: 0;
}

.report > *:not(.report__seal) { position: relative; z-index: 1; }

.report__stamp {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .68rem;
  color: var(--red);
  border: 1px solid rgba(171, 31, 31, .55);
  padding: .3rem .7rem;
  margin-bottom: 1.5rem;
}

.report__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1rem 2rem;
  margin: 0 0 2rem;
  padding: 0 0 1.75rem;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.report__meta dt,
.report__meta .k {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .65rem;
  color: var(--text-dim);
}

.report__meta dd {
  margin: 0;
}

.report__meta .v {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--text-hi);
  text-transform: uppercase;
  font-size: .95rem;
  margin-top: .3rem;
}

.report p { max-width: 78ch; }
.report p + p { margin-top: 1.25rem; }
.report strong { color: var(--text-hi); font-weight: 600; }

.report__note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--mint);
}

/* --- screenshots --------------------------------------------------------- */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(.6rem, 1.5vw, 1rem);
}

.shot {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  line-height: 0;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .4s ease, opacity .3s ease;
}

.shot:hover img, .shot:focus-visible img { transform: scale(1.03); opacity: .85; }

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color .2s ease;
}
.shot:hover::after, .shot:focus-visible::after { border-color: var(--red); }

/* --- press kit ----------------------------------------------------------- */

.press {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 62rem) {
  .press { grid-template-columns: 1.1fr .9fr; align-items: start; }
}

.press p { color: var(--text-dim); }
.press p:first-of-type { margin-top: 0; }

.facts {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .55rem 1.5rem;
  font-size: .9rem;
}

.facts dt {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .65rem;
  color: var(--text-dim);
  padding-top: .25rem;
}

.facts dd { margin: 0; color: var(--text); }

/* --- footer -------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer__brand { display: flex; align-items: center; gap: 1rem; }

.footer__mark {
  width: auto;
  height: 34px;
  flex: none;
}

.footer__copy {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  color: var(--text-dim);
}
.footer__copy strong { display: block; color: var(--text-hi); font-weight: 500; letter-spacing: .18em; }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links a {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  color: var(--text-dim);
  text-decoration: none;
}
.footer__links a:hover, .footer__links a:focus-visible { color: var(--text-hi); }

/* --- legal pages --------------------------------------------------------- */

.legal { padding-block: clamp(3rem, 8vw, 5.5rem); }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.05rem; letter-spacing: .12em; margin: 2.5rem 0 .75rem; }
.legal p, .legal li { color: var(--text-dim); }
.legal address { font-style: normal; color: var(--text); }
.legal a { color: var(--text-hi); }

.backlink {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 2.5rem;
}
.backlink:hover { color: var(--text-hi); }

.legal__updated {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
}

/* --- lightbox ------------------------------------------------------------ */

/* --- contact ------------------------------------------------------------- */

.section--top { padding-top: clamp(6rem, 12vh, 8rem); border-top: 0; }

.contact {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 62rem) {
  .contact { grid-template-columns: 1.15fr .85fr; }
}

.field { margin-bottom: 1.25rem; }

.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .65rem;
  color: var(--text-dim);
  margin-bottom: .5rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem .9rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  color: var(--text-hi);
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.5;
  border-radius: 0;
  transition: border-color .18s ease;
}

.field textarea { resize: vertical; min-height: 9rem; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--mint);
}

.form__note { min-height: 1.5rem; margin: 0 0 .75rem; font-size: .88rem; }
.form__note.is-ok { color: var(--mint); }
.form__note.is-error { color: var(--red-hot); }

.form__hint { margin-top: 1.5rem; font-size: .82rem; color: var(--text-dim); }

.contact__side h2 { font-size: 1.05rem; letter-spacing: .12em; margin-bottom: 1.25rem; }
.contact__side .facts { margin-bottom: 1.75rem; }
.contact__side p { color: var(--text-dim); font-size: .92rem; }

/* --- consent banner ------------------------------------------------------ */

.consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 45;
  background: rgba(10, 13, 14, .97);
  border-top: 1px solid var(--line);
  padding-block: 1.25rem;
  backdrop-filter: blur(8px);
}

.consent[hidden] { display: none; }

.consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.consent__text { max-width: 62ch; }
.consent__text p { margin: 0; font-size: .88rem; color: var(--text-dim); }

.consent__title {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .68rem;
  color: var(--red);
  margin-bottom: .4rem !important;
}

.consent__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.consent__actions .btn { padding: .7rem 1.4rem; font-size: .82rem; cursor: pointer; }

@media (max-width: 640px) {
  .consent__actions { width: 100%; }
  .consent__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* --- lightbox ------------------------------------------------------------ */

.lb {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(4, 6, 7, .94);
  border: 0;
}
.lb[open] { display: flex; }
.lb::backdrop { background: rgba(4, 6, 7, .94); }

.lb img {
  max-width: 100%;
  max-height: 86svh;
  object-fit: contain;
  border: 1px solid var(--line);
}

.lb__close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1;
  padding: .5rem .75rem;
  cursor: pointer;
}
.lb__close:hover { color: #fff; border-color: var(--red); }

.lb__nav {
  position: absolute;
  bottom: .9rem;
  left: 50%;
  translate: -50% 0;
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: .2em;
  font-size: .72rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* --- motion / print ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .shot:hover img { transform: none; }
  .btn:hover { transform: none; }
}
