/* POV Brand Management: shared styles for every page.
   Mobile-first: base rules target phones; min-width queries scale up.
   Breakpoints (media queries can't read custom properties, so they're literal):
     md = 47.5rem (760px)   lg = 56.25rem (900px) */

:root {
  /* Color */
  --ink: #0a0a0a;
  --paper: #ffffff;
  --mid: #8a8a8a;
  --hairline-dark: rgba(10, 10, 10, 0.14);
  --hairline: rgba(255, 255, 255, 0.14);
  --ink-soft: rgba(10, 10, 10, 0.72);
  --ink-muted: rgba(10, 10, 10, 0.62);
  --on-dark: #ffffff;
  --on-dark-soft: rgba(255, 255, 255, 0.82);
  --on-dark-muted: rgba(255, 255, 255, 0.65);
  --on-dark-faint: rgba(255, 255, 255, 0.4);
  --tile-bg: #111111;
  --backdrop: rgba(0, 0, 0, 0.88);

  /* Type: swap brand fonts here (and in the Google Fonts <link> on each page) */
  --font-display: "Playfair Display", serif;
  --font-body: "DM Sans", sans-serif;
  --font-label: var(--font-body); /* small caps-style labels, filter tabs */

  /* Layout */
  --gutter: 1.5rem;
}

@media (min-width: 47.5rem) {
  :root { --gutter: 3.5rem; }
}

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

/* Author display rules (e.g. .work-tile { display:flex }) would otherwise beat the hidden attribute */
[hidden] { display: none !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100dvh;
  overflow-x: hidden;
}

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

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.caps { font-family: var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; }

/* ============ HERO ============ */
#home {
  position: relative;
  min-height: 82dvh;
  display: flex;
  flex-direction: column;
  color: var(--on-dark);
  overflow: hidden;
}

/* Smaller hero file for phones; the full-size one only above md */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../img/hero-800.webp");
  background-size: cover;
  background-position: center 22%;
}
@media (min-width: 47.5rem) {
  .hero-photo { background-image: url("../img/hero-1400.webp"); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.7) 100%);
}

.corner {
  position: absolute;
  z-index: 5;
  width: 1.625rem;
  height: 1.625rem;
  border-color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
.corner.tl { top: 1.5rem; left: 1.5rem; border-top: 1.5px solid; border-left: 1.5px solid; }
.corner.tr { top: 1.5rem; right: 1.5rem; border-top: 1.5px solid; border-right: 1.5px solid; }
.corner.bl { bottom: 1.5rem; left: 1.5rem; border-bottom: 1.5px solid; border-left: 1.5px solid; }
.corner.br { bottom: 1.5rem; right: 1.5rem; border-bottom: 1.5px solid; border-right: 1.5px solid; }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.25rem var(--gutter) 0;
}
.site-logo { height: 2.5rem; width: auto; }

.social-links { display: flex; gap: 0.875rem; align-items: center; }
.social-links a {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.social-links a:hover { color: var(--on-dark); }
/* Separator dots only where there's room for them */
.social-dot { display: none; width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
@media (min-width: 47.5rem) {
  .site-logo { height: 3.25rem; }
  .social-links { gap: 1.5rem; }
  .social-dot { display: block; }
}

.hero-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5.5rem 2.5rem 3rem;
}
.eyebrow { font-size: 0.6875rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 1.5rem; }
.h-display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.hero-content .lede {
  max-width: 32.5rem;
  margin-top: 1.25rem;
  color: var(--on-dark-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.prompt { margin-top: 1rem; font-size: 0.75rem; color: rgba(255, 255, 255, 0.55); }

.paths {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 20rem;
}
.path-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  padding: 1.125rem 2rem;
  background: #000;
  color: var(--on-dark);
  border: 1px solid var(--on-dark-faint);
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease;
}
.path-btn:hover { background: #1a1a1a; }
.path-btn .title { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.path-btn .sub { font-size: 0.78125rem; color: rgba(255, 255, 255, 0.55); line-height: 1.4; }
@media (min-width: 47.5rem) {
  .paths { flex-direction: row; flex-wrap: wrap; justify-content: center; width: auto; max-width: none; }
  .path-btn { width: 15rem; }
}

/* ============ MARQUEE ============ */
.marquee-section {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-dark);
}
.marquee-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  max-width: 7rem;
  padding: 0 1rem;
  border-right: 1px solid var(--hairline-dark);
  background: var(--paper);
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  z-index: 2;
}
@media (min-width: 47.5rem) {
  .marquee-label { max-width: none; min-width: 12.5rem; padding: 0 2rem; font-size: 0.6875rem; }
}
.marquee-viewport { flex: 1; overflow: hidden; padding: 1.5rem 0; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-duration, 60s) linear infinite;
}
.marquee-section:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; list-style: none; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-left: 2.5rem;
  white-space: nowrap;
}
/* One-color logos at rest (brightness(0) flattens every pixel to black), full color on hover */
.marquee-item img {
  width: auto;
  filter: grayscale(100%) brightness(0);
  opacity: 0.85;
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.logo { display: block; }
.logo:hover img { filter: none; opacity: 1; }
/* Badge logos: the one-color file at rest, the original color file stacked on top on hover */
.logo-swap { display: grid; }
.logo-swap > img { grid-area: 1 / 1; }
.marquee-item .logo-color { filter: none; opacity: 0; }
.logo-swap:hover .logo-mono { opacity: 0; }
.logo-swap:hover .logo-color { opacity: 1; }
.marquee-text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}
.marquee-text:hover { opacity: 1; }
.marquee-item .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--mid); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Dark variant on inner pages, so the bar contrasts with the white page below it */
.marquee-section.marquee-dark { background: var(--ink); color: var(--paper); border-bottom-color: var(--hairline); }
.marquee-dark .marquee-label { background: var(--ink); border-right-color: var(--hairline); }
.marquee-dark .marquee-item .dot { background: var(--on-dark-faint); }
/* invert(1) after brightness(0) turns the flattened black logo white */
.marquee-dark .marquee-item img { filter: grayscale(100%) brightness(0) invert(1); }
.marquee-dark .marquee-item .logo-color,
.marquee-dark .logo:hover img { filter: none; }
/* Hover shows full color on a white chip, since many brand colors (navy, dark green)
   disappear against black. The chip is a pseudo-element behind the logo (isolation keeps
   z-index -1 inside the wrapper), positioned out of flow so nothing in the bar shifts.
   It fades and scales up, which animates smoothly on the compositor */
.marquee-dark .logo { position: relative; isolation: isolate; }
.marquee-dark .logo::before {
  content: "";
  position: absolute;
  inset: -0.625rem;
  z-index: -1;
  border-radius: 0.5rem;
  background: var(--paper);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.marquee-dark .logo:hover::before { opacity: 1; transform: scale(1); }

/* Reduced motion: no auto-scroll; the bar becomes a manually scrollable strip */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee-viewport { overflow-x: auto; }
  .marquee-set[aria-hidden="true"] { display: none; }
}

/* ============ INNER PAGES ============ */
main.pages { position: relative; z-index: 10; padding: 0 var(--gutter); }
.subpage {
  min-height: 100dvh;
  padding: 5.5rem 0 6.25rem;
  background: var(--paper);
  color: var(--ink);
  animation: fadeIn 0.35s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .subpage { animation: none; }
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-label);
  font-size: 0.75rem;
  color: var(--mid);
  text-decoration: none;
}
.back:hover { color: var(--ink); }

.sub-tag {
  margin-top: 2.25rem;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  color: var(--mid);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.h-section {
  max-width: 45rem;
  margin-top: 0.875rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.375rem);
  letter-spacing: -0.01em;
}
.subpage .lede { max-width: 35rem; margin-top: 1.25rem; color: var(--ink-muted); font-size: 1rem; line-height: 1.6; }

.block-row { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 3.5rem; }
@media (min-width: 47.5rem) {
  .block-row { gap: 4rem; }
}
.block { max-width: 25rem; }
.block .num { margin-bottom: 0.625rem; font-family: var(--font-label); font-size: 0.6875rem; color: var(--mid); }
.block h3 { margin-bottom: 0.625rem; font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: 1.3125rem; }
.block p { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.6; }
.block-link {
  display: inline-block;
  margin-top: 0.625rem;
  font-size: 0.78125rem;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-label {
  margin-top: 3.5rem;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--mid);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-label + .block-row { margin-top: 1.125rem; }

.fit-list { display: flex; flex-direction: column; gap: 1.375rem; max-width: 41.25rem; margin-top: 1.125rem; }
.fit-item { display: flex; gap: 1rem; align-items: flex-start; }
.fit-item .mark { flex-shrink: 0; padding-top: 0.1875rem; font-family: var(--font-label); font-size: 0.75rem; color: var(--mid); }
.fit-item p { font-size: 0.9375rem; line-height: 1.65; color: var(--ink-soft); }

.cta-row { margin-top: 3.5rem; padding-top: 2.25rem; border-top: 1px solid var(--hairline-dark); }
.cta-btn-group { display: flex; flex-wrap: wrap; gap: 0.875rem; }
.cta-btn {
  display: inline-block;
  padding: 1rem 1.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #000;
  color: var(--on-dark);
  text-decoration: none;
}
.cta-btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.cta-btn-outline:hover { background: var(--ink); color: var(--on-dark); }
.fine { max-width: 26.25rem; margin-top: 1rem; font-size: 0.6875rem; color: var(--mid); }

/* Brand page: who-it's-for list beside services + CTA on wide screens */
.brand-layout { display: grid; grid-template-columns: 1fr; gap: 2.75rem; margin-top: 1rem; align-items: start; }
.brand-layout .section-label { margin-top: 2.75rem; }
.block-stack { display: flex; flex-direction: column; gap: 2rem; margin-top: 1.125rem; }
.block-stack .block { max-width: none; }
@media (min-width: 56.25rem) {
  .brand-layout { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* Creator page: apply button floats to the right of the intro on wide screens */
.creator-intro { position: relative; }
.top-cta-link {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 1rem 2.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  background: #000;
  color: var(--on-dark);
  text-decoration: none;
}
@media (min-width: 56.25rem) {
  .top-cta-link { position: absolute; top: 13.125rem; left: 83.333%; margin-top: 0; transform: translateX(-50%); }
}

/* ============ WORK GRID / GALLERY ============ */
/* Clips are vertical phone video, so tiles match their 9:16 shape instead of cropping them.
   Real gutters and captions below the video (not over it) keep the grid from reading as
   one wall of footage, since most clips already have text burned in. */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 0.75rem;
  margin-top: 1.25rem;
}
@media (min-width: 47.5rem) {
  .work-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem 1.25rem; }
}
/* Wide screens: the six featured clips sit in one row; the gallery gets denser */
@media (min-width: 56.25rem) {
  .work-grid--featured { grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
  .work-grid--gallery { grid-template-columns: repeat(5, 1fr); }
}

.work-tile {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
}
.work-tile-media {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--tile-bg);
}
.work-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.work-tile:hover video { transform: scale(1.03); }
.work-tile-cap { display: flex; flex-direction: column; gap: 0.25rem; }
.work-tile-title { font-size: 0.8125rem; font-weight: 500; line-height: 1.35; color: var(--ink); }
.work-tile-type {
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}
@media (prefers-reduced-motion: reduce) {
  .work-tile video { transition: none; }
  .work-tile:hover video { transform: none; }
}

.work-more { display: inline-block; margin-top: 2rem; }

.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; }
.filter-btn {
  padding: 0.625rem 1.125rem;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.filter-btn[aria-pressed="true"], .filter-btn:hover { background: var(--ink); color: var(--on-dark); }
.filter-count { opacity: 0.6; }

/* ============ VIDEO PLAYER ============ */
.player {
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
}
.player::backdrop { background: var(--backdrop); }
.player-frame { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.player-video {
  height: min(80dvh, 160vw);
  aspect-ratio: 9 / 16;
  background: #000;
}
.player-close {
  padding: 0.5rem 0;
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--on-dark);
  cursor: pointer;
}
.player-title { align-self: flex-start; font-size: 0.875rem; color: var(--on-dark-soft); }

/* ============ FOOTER ============ */
.site-footer {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1.875rem var(--gutter) 2.75rem;
  font-size: 0.6875rem;
  color: var(--mid);
  border-top: 1px solid var(--hairline-dark);
}
