/* ============================================================
   STARK VIDEO PRODUCTIONS — screening-room aesthetic
   Palette drawn from the logo: deep crimson #710108,
   warm near-black, ivory. Anton display / Newsreader body.
   ============================================================ */

:root {
  --ink: oklch(0.16 0.012 25);          /* warm near-black */
  --ink-deep: oklch(0.12 0.01 25);
  --ivory: oklch(0.96 0.008 85);        /* warm off-white */
  --ivory-dim: oklch(0.78 0.012 70);
  --crimson: oklch(0.38 0.155 22);      /* logo #710108 family */
  --crimson-bright: oklch(0.52 0.19 25);
  --hairline: oklch(0.32 0.02 25);
  --font-display: "Anton", sans-serif;
  --font-body: "Newsreader", georgia, serif;
  --font-label: "Archivo", sans-serif;
  --measure: 62ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--crimson); color: var(--ivory); }

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

a { color: inherit; }

/* ---- letterhead band (light strip carrying the logo) ---- */
.letterhead {
  background: var(--ivory);
  color: var(--ink);
  padding: 0.9rem clamp(1.25rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.letterhead .logo { height: clamp(56px, 8vw, 84px); width: auto; }

.letterhead nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.letterhead nav a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 160ms ease-out;
}

.letterhead nav a:hover,
.letterhead nav a:focus-visible { border-color: var(--crimson); }

/* ---- hero ---- */
.hero {
  padding: clamp(4.5rem, 12vh, 9rem) clamp(1.25rem, 5vw, 4rem) clamp(3rem, 8vh, 6rem);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
  /* set photo fades into the ink base so the headline owns the left side */
  background:
    linear-gradient(to right,
      var(--ink) 0%,
      oklch(0.16 0.012 25 / 0.92) 30%,
      oklch(0.16 0.012 25 / 0.35) 62%,
      oklch(0.16 0.012 25 / 0.15) 100%),
    linear-gradient(to top, var(--ink) 0%, transparent 28%),
    url("assets/images/hero.jpg") right center / cover no-repeat;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 10vw, 8.5rem);
  line-height: 0.94;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  max-width: 12ch;
  position: relative;
}

.hero h1 em {
  font-style: normal;
  color: var(--crimson-bright);
}

.hero .tagline {
  margin-top: 2.2rem;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-style: italic;
  max-width: 30ch;
  color: var(--ivory-dim);
  position: relative;
}

.hero .tagline strong { color: var(--ivory); font-weight: 500; }

/* ---- section scaffolding ---- */
section { padding: clamp(3.5rem, 9vh, 7rem) clamp(1.25rem, 5vw, 4rem); }

.kicker {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crimson-bright);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.kicker::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--crimson-bright);
}

/* ---- about: asymmetric two-column ---- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(2rem, 6vw, 6rem);
  border-bottom: 1px solid var(--hairline);
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about .lede {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.45;
  max-width: var(--measure);
}

.about-side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(320px, 34vw, 460px);
  overflow: hidden;
  isolation: isolate;
}

.about-side .about-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.about-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink) 0%, oklch(0.16 0.012 25 / 0.78) 38%, transparent 78%);
  z-index: -1;
}

.about .script-to-screen {
  color: var(--ivory-dim);
  max-width: 44ch;
  border-left: 1px solid var(--crimson-bright);
  margin: clamp(1.5rem, 3vw, 2rem);
  padding-left: 1.25rem;
}

/* ---- credits marquee band ---- */
.credits {
  padding-top: clamp(2.5rem, 6vh, 4rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
  border-bottom: 1px solid var(--hairline);
  background: var(--ink-deep);
}

.credits p.note {
  font-style: italic;
  color: var(--ivory-dim);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.marquee {
  --m-gap: clamp(2.5rem, 6vw, 5rem);
  display: flex;
  gap: var(--m-gap);
  overflow: hidden;
  /* soft fade at both edges of the strip */
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.credits ul.network-logos {
  list-style: none;
  display: flex;
  flex-shrink: 0;
  min-width: max-content;
  align-items: center;
  gap: var(--m-gap, clamp(2rem, 5vw, 4.5rem));
}

@media (prefers-reduced-motion: no-preference) {
  .marquee ul { animation: marquee-drift 36s linear infinite; }
  .marquee:hover ul { animation-play-state: paused; }
  @keyframes marquee-drift {
    to { transform: translateX(calc(-100% - var(--m-gap))); }
  }
}

/* reduced motion: hide the duplicate strip, let the first wrap statically */
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; }
  .marquee ul[aria-hidden="true"] { display: none; }
  .credits ul.network-logos { flex-wrap: wrap; min-width: 0; }
}

.credits .network-logos img {
  height: clamp(30px, 4.5vw, 46px);
  width: auto;
  /* render trademarked marks as a uniform ivory tone on the dark band */
  filter: brightness(0) invert(0.93) sepia(0.06);
  opacity: 0.85;
  transition: opacity 160ms ease-out;
}

.credits .network-logos li:hover img { opacity: 1; }

/* stacked marks (flag/box above wordmark) need extra height to stay legible */
.credits .network-logos img.logo-stacked { height: clamp(52px, 7vw, 78px); }

/* knockout marks (light text inside a solid box) can't be flattened to one
   tone — grayscale + brighten keeps the text/box contrast intact */
.credits .network-logos img.logo-knockout {
  filter: grayscale(1) brightness(1.9);
}

/* ---- services: two stacked panels, offset ---- */
.services { border-bottom: 1px solid var(--hairline); }

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.5rem, 6vh, 4.5rem) 0;
  align-items: start;
}

.service + .service { border-top: 1px solid var(--hairline); }

.service:nth-of-type(2) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.service:nth-of-type(2) .service-head { order: 2; }
.service:nth-of-type(2) .service-head-content { align-items: flex-end; text-align: right; }
.service:nth-of-type(2) p { order: 1; }

.service-head {
  position: relative;
  min-height: clamp(300px, 34vw, 420px);
  overflow: hidden;
  isolation: isolate;
}

.service-head .service-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.service-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink) 0%, oklch(0.16 0.012 25 / 0.75) 42%, transparent 80%);
  z-index: -1;
}

.service-head-content {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.service-icon {
  width: clamp(34px, 4vw, 46px);
  height: clamp(34px, 4vw, 46px);
  color: var(--crimson-bright);
}

.service h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.6rem);
  text-transform: uppercase;
  line-height: 1;
}

.service h3 span { color: var(--crimson-bright); display: block; font-size: 0.55em; letter-spacing: 0.08em; }

.service p {
  align-self: center;
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  line-height: 1.6;
  color: var(--ivory-dim);
  max-width: 50ch;
}

/* ---- brands + contact: shared asymmetric row ---- */
.brands-contact {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 6rem);
  border-bottom: 1px solid var(--hairline);
}

.brands p { max-width: var(--measure); color: var(--ivory-dim); }

.brands .marks {
  margin-top: 1.25rem;
  font-family: var(--font-label);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.brands .marks a,
.brands .marks span {
  border: 1px solid var(--hairline);
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 160ms ease-out, color 160ms ease-out;
}

.brands .marks a:hover { border-color: var(--crimson-bright); color: var(--crimson-bright); }

/* ---- contact ---- */
.contact .big-link {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.15;
  display: inline-block;
  border-bottom: 3px solid var(--crimson);
  transition: color 160ms ease-out, border-color 160ms ease-out;
  word-break: break-word;
}

.contact .big-link:hover { color: var(--crimson-bright); border-color: var(--crimson-bright); }

.contact .details {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  font-family: var(--font-label);
  font-size: 0.95rem;
  color: var(--ivory-dim);
}

.contact .details a { color: var(--ivory); text-decoration-color: var(--crimson); }
.contact .details .label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson-bright);
  margin-bottom: 0.35rem;
}

/* ---- footer / disclaimer ---- */
footer {
  background: var(--ink-deep);
  border-top: 1px solid var(--hairline);
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1.25rem, 5vw, 4rem);
  font-family: var(--font-label);
  font-size: 0.85rem;
  color: var(--ivory-dim);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem clamp(2.5rem, 6vw, 5rem);
}

.footer-primary {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

footer nav a { text-decoration: none; border-bottom: 1px solid var(--hairline); padding-bottom: 2px; }
footer nav a:hover { border-color: var(--crimson-bright); color: var(--ivory); }

footer .legal-line { font-size: 0.8rem; }
footer .legal-line strong { color: var(--ivory); }

footer .disclaimer {
  max-width: 46ch;
  flex: 1 1 320px;
  margin-left: auto;
  font-size: 0.75rem;
  line-height: 1.65;
  text-align: right;
}

/* ---- legal pages ---- */
.legal-page {
  max-width: 76ch;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.25rem, 5vw, 4rem) clamp(4rem, 10vh, 7rem);
}

.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.legal-page .edition {
  font-family: var(--font-label);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson-bright);
  margin-bottom: 3rem;
}

.legal-page h2 {
  font-family: var(--font-label);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 2.5rem 0 0.75rem;
}

.legal-page p { color: var(--ivory-dim); margin-bottom: 1rem; }
.legal-page p strong { color: var(--ivory); }
.legal-page address { font-style: normal; color: var(--ivory-dim); line-height: 1.8; }
.legal-page hr { border: none; border-top: 1px solid var(--hairline); margin: 3rem 0; }

/* ---- motion: staggered page-load reveal ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .reveal:nth-child(2) { animation-delay: 0.12s; }
  .reveal:nth-child(3) { animation-delay: 0.24s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---- responsive ---- */
@media (max-width: 720px) {
  .about, .service, .service:nth-of-type(2), .brands-contact { grid-template-columns: 1fr; }
  .service:nth-of-type(2) .service-head { order: 0; }
  .service:nth-of-type(2) .service-head-content { text-align: left; align-items: flex-start; }
  footer { flex-direction: column; }
  footer .disclaimer { margin-left: 0; max-width: none; text-align: left; }
}

/* ---- scroll reveals (classes applied by index.html script) ---- */
@media (prefers-reduced-motion: no-preference) {
  .sr {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .sr-in { opacity: 1; transform: none; }
}

/* ---- tactile press feedback ---- */
.letterhead nav a,
footer nav a,
.brands .marks a,
.contact .details a { display: inline-block; }

.letterhead nav a:active,
footer nav a:active,
.brands .marks a:active,
.contact .details a:active { transform: translateY(1px) scale(0.99); }

.contact .big-link:active { transform: translateY(2px) scale(0.995); }

/* ---- keyboard focus mirrors hover on dark sections ---- */
:focus-visible {
  outline: 2px solid var(--crimson-bright);
  outline-offset: 3px;
  border-radius: 1px;
}

footer nav a:focus-visible { border-color: var(--crimson-bright); color: var(--ivory); }
.brands .marks a:focus-visible { border-color: var(--crimson-bright); color: var(--crimson-bright); }
.contact .big-link:focus-visible { color: var(--crimson-bright); border-color: var(--crimson-bright); }
