/* DV Media — homepage (light editorial redesign)
   Loads AFTER dv-pages.css: shared chrome (footer, glow buttons) comes from
   there; everything page-specific lives here. Palette mirrors the DV
   newsletter: cream paper, near-black ink, warm amber accent. Display face
   is Fraunces (serif); labels stay Inter, letter-spaced uppercase. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,340;9..144,420;9..144,560&family=Inter:wght@400;500;600&display=swap');

:root {
  --cream: #f2efe9;
  --cream-2: #eae5da;
  --paper: #faf8f3;
  --ink: #26221c;
  --ink-soft: rgba(38, 34, 28, 0.82);
  --ink-muted: rgba(38, 34, 28, 0.66);
  --ink-faint: rgba(38, 34, 28, 0.14);
  --amber: #b45309;
  --hero-ink: #0d0c0a;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html.dv-home, .dv-home body {
  background: var(--hero-ink);
  color: var(--ink);
}

/* ── Type helpers ─────────────────────────────────────────────────────── */
.h-display {
  font-family: var(--serif);
  font-weight: 420;
  letter-spacing: -0.015em;
  line-height: 1.04;
  margin: 0;
}
.h-eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.1rem;
}
.h-sub {
  font-family: var(--sans);
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.65;
  margin: 0;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn-ink, .btn-ghost, .btn-cream {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.95rem 1.9rem;
  transition: transform 0.25s var(--ease-out), background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { transform: translateY(-2px); background: #16130f; }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { transform: translateY(-2px); background: #fff; }
.btn-ghost { border-color: var(--ink-faint); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.link-amber {
  color: var(--amber);
  font-weight: 500;
  border-bottom: 1px solid rgba(180, 83, 9, 0.35);
  transition: border-color 0.2s;
}
.link-amber:hover { border-bottom-color: var(--amber); }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem clamp(1.25rem, 4vw, 3rem);
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
  color: var(--cream);
}
.nav-brand {
  display: flex;
  align-items: center;
  color: inherit;
}
.nav-brand img {
  display: block;
  height: 1.05rem;
  width: auto;
  /* White over the hero video; inverts to black when the nav flips to the
     cream pill on scroll (same .scrolled trigger as the nav colour). */
  transition: filter 0.35s;
}
.nav.scrolled .nav-brand img { filter: brightness(0); }
/* Phone: wordmark 20% smaller (desktop size is kept). */
@media (max-width: 600px) { .nav-brand img { height: 0.84rem; } }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.6rem);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.nav-links a { opacity: 0.75; transition: opacity 0.2s; color: inherit; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  opacity: 1 !important;
}
.nav.scrolled {
  background: rgba(242, 239, 233, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--ink-faint);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ── Fixed hero ───────────────────────────────────────────────────────── */
/* ── Hero: fixed full-bleed video. No borders, no zoom — it barely appears
   to change; the cream page slides up over it from the bottom. ────────── */
.hero-fixed {
  /* inset:0 keeps the box bottom-anchored to the LIVE viewport, so it never
     extends past the fold and adds no phantom scroll on mobile. */
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--hero-ink);
}
.hero-fixed video {
  width: 100%;
  /* The VIDEO is pinned to the large viewport (stable height), so it never
     rescales when the mobile URL bar retracts — no zoom. The inset:0 container
     clips it. */
  height: 100vh;
  height: 100lvh;
  object-fit: cover;
  display: block;
}

/* SCROLL indicator: a label above a hairline down which a bright segment
   travels. The only thing over the video at rest; fades on scroll. */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.9rem;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(242, 239, 233, 0.72);
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.hero-scroll-label {
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.hero-scroll-line {
  position: relative;
  width: 1px;
  height: 46px;
  background: rgba(242, 239, 233, 0.22);
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 45%;
  background: rgba(242, 239, 233, 0.92);
  animation: heroScrollPulse 1.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes heroScrollPulse {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(240%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line::after { animation: none; height: 100%; opacity: 0.5; }
}

/* ── The cream page slides up over the fixed video from the bottom ────── */
.page-over {
  position: relative;
  z-index: 2;
  margin-top: 100svh;
  background: var(--cream);
}

/* White header — centered, minimal. The first section of the rising page;
   it comes up from the bottom (the .rv reveal fades it up as it enters). */
.hero-band {
  max-width: 60rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(4rem, 9vh, 6.5rem) clamp(1.5rem, 6vw, 4rem) clamp(3rem, 7vh, 5rem);
}
.hero-band-title {
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
  line-height: 1.05;
  color: var(--ink);
  max-width: 18ch;
  margin: 0;
}
.hero-band-title em { font-style: italic; font-weight: 340; }
.hero-band-sub {
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
  max-width: 46ch;
  margin: 1.15rem auto 0;
}
.hero-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.9rem;
}
.section {
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 5vw, 4rem);
  max-width: 90rem;
  margin: 0 auto;
}
/* Anchored sections land clear of the fixed nav (native smooth scroll). */
#work, #services, #clients, #about, #contact { scroll-margin-top: 4.5rem; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 4rem); }
.section-title { font-size: clamp(1.9rem, 4vw, 3.1rem); color: var(--ink); }

/* ── Reveal animation ─────────────────────────────────────────────────── */
.js .rv {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--rv-delay, 0s);
}
.js .rv.in { opacity: 1; transform: none; }

/* ── Featured reels row ───────────────────────────────────────────────── */
.reels-row {
  display: flex;
  gap: clamp(0.9rem, 1.8vw, 1.5rem);
  width: 108%;
  margin-left: -4%;
}
.reel {
  flex: 1 1 0;
  min-width: 0;
}
.reel-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 1.1rem;
  overflow: hidden;
  background: var(--cream-2);
}
.reel-frame video, .reel-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-meta { padding: 0.95rem 0.25rem 0; }
.reel-title {
  font-family: var(--serif);
  font-weight: 480;
  font-size: 1.02rem;
  color: var(--ink);
  margin: 0 0 0.25rem;
}
.reel-outcome {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0;
}
/* Mobile: the section pins for the row's overflow distance and vertical
   scroll translates the row sideways — page-scrolls through the reels
   instead of a side-scrollbar. Heights + transform driven by dv-home.js. */
@media (max-width: 860px) {
  .reels-sticky {
    position: sticky;
    top: 0;
    height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  .reels-section { width: 100%; padding-top: 4.5rem; padding-bottom: 1.5rem; }
  .reels-section .section-head { margin-bottom: 1.5rem; }
  .reels-row {
    width: max-content;
    margin-left: 0;
    will-change: transform;
  }
  .reel { flex: 0 0 62vw; max-width: 280px; }
}

/* ── Selected Work (pinned carousel) ──────────────────────────────────── */
/* 230vh: enough travel for three slides without the section overstaying. */
.work-pin { position: relative; height: 275vh; }
.work-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.work-inner {
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  padding: clamp(4.5rem, 8vh, 6rem) clamp(1.25rem, 5vw, 4rem) clamp(2rem, 5vh, 3rem);
}
.work-counter {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}
.work-slides { position: relative; min-height: min(62vh, 34rem); }
.work-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  pointer-events: none;
}
.work-slide.active { opacity: 1; transform: none; pointer-events: auto; }
.work-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--cream-2);
}
.work-media video, .work-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-copy .h-eyebrow { margin-bottom: 0.8rem; }
.work-slide-title {
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  margin-bottom: 0.9rem;
}
.work-outcome {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0 0 1.4rem;
}
@media (max-width: 860px) {
  .work-pin { height: auto; }
  .work-sticky { position: static; height: auto; overflow: visible; display: block; }
  .work-slides { min-height: 0; }
  .work-slide {
    position: static;
    grid-template-columns: 1fr;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-bottom: 3rem;
  }
  .work-counter { display: none; }
}

/* ── Services ─────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  /* Column counts that divide 6 exactly — the 1px-gap grid trick shows grey
     filler cells on any ragged last row. */
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-faint);
  border-top: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
}
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--cream);
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  display: block;
  transition: background 0.25s;
}
.service-card:hover { background: var(--paper); }
.service-num {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--amber);
  display: block;
  margin-bottom: 0.9rem;
}
.service-name {
  font-family: var(--serif);
  font-weight: 480;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0 0 0.55rem;
}
.service-desc { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.6; margin: 0; }

/* ── Clients marquee ──────────────────────────────────────────────────── */
.clients-band {
  border-top: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
  padding: 2.1rem 0;
  overflow: hidden;
}
.marquee { display: flex; width: max-content; animation: dvHomeMarquee 36s linear infinite; }
.marquee span {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 420;
  color: var(--ink-muted);
  padding: 0 1.9rem;
  white-space: nowrap;
}
.marquee span::after { content: '·'; color: var(--amber); margin-left: 3.8rem; }
@keyframes dvHomeMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } }

/* ── Audiences ────────────────────────────────────────────────────────── */
.aud-list { display: grid; gap: 1px; background: var(--ink-faint); border-top: 1px solid var(--ink-faint); border-bottom: 1px solid var(--ink-faint); }
.aud-row {
  background: var(--cream);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
  transition: background 0.25s;
}
.aud-row:hover { background: var(--paper); }
.aud-name { display: flex; align-items: baseline; gap: 1rem; }
.aud-name .service-num { margin: 0; }
.aud-name h3 { font-family: var(--serif); font-weight: 480; font-size: clamp(1.25rem, 2.2vw, 1.7rem); color: var(--ink); margin: 0; }
.aud-body p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.7; margin: 0 0 0.9rem; }
.aud-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.aud-tags span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--ink-faint);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}
@media (max-width: 780px) { .aud-row { grid-template-columns: 1fr; gap: 0.9rem; } }

/* ── Classroom band ───────────────────────────────────────────────────── */
.classroom-band {
  background: var(--hero-ink);
  color: var(--cream);
  border-radius: 1.5rem;
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.classroom-band .h-eyebrow { color: #d97706; }
.classroom-band .h-display { color: var(--cream); font-size: clamp(1.6rem, 3vw, 2.4rem); }
.classroom-band p { color: rgba(242, 239, 233, 0.72); font-size: 0.95rem; line-height: 1.7; }
.classroom-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.classroom-list li { display: flex; gap: 0.7rem; font-size: 0.9rem; color: rgba(242, 239, 233, 0.78); line-height: 1.6; }
.classroom-list li::before { content: '✓'; color: #d97706; font-weight: 600; }
@media (max-width: 780px) { .classroom-band { grid-template-columns: 1fr; } }

/* ── Reviews: continuously gliding Google-review feed ─────────────────── */
.reviews-feed { max-width: none; padding-left: 0; padding-right: 0; }
.reviews-feed .section-head { padding: 0 clamp(1.25rem, 5vw, 4rem); margin-left: auto; margin-right: auto; }
.reviews-marquee {
  overflow: hidden;
  /* soften the edges so cards fade in/out of the frame */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.reviews-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  padding: 0.25rem clamp(1.25rem, 5vw, 4rem);
  will-change: transform;
}
/* The strip is driven by dv-home.js: it duplicates the cards, then translates
   the track with requestAnimationFrame and EASES the speed. Hover (desktop) or
   touch (mobile) smoothly slows it to a crawl instead of an abrupt stop, and
   releases back to full speed. Content is doubled so the wrap is seamless.
   No-JS / reduced-motion leaves a static row. */
/* Reviews are plain text (no card), separated by a 1px hairline that fades out
   to nothing at its top and bottom tips. */
.review-card {
  position: relative;
  flex: 0 0 auto;
  max-width: clamp(220px, 18vw, 250px);
  margin: 0 1.9rem;
  text-align: center;
}
/* The divider sits half a margin to the LEFT of each review, i.e. exactly in
   the middle of the fixed gap between two reviews. */
.review-card::before {
  content: '';
  position: absolute;
  left: -1.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: clamp(5.5rem, 12vw, 8rem);
  background: linear-gradient(to bottom, transparent, rgba(38, 34, 28, 0.28), transparent);
}
.review-stars { display: block; color: var(--amber); letter-spacing: 0.18em; font-size: 0.8rem; margin-bottom: 0.85rem; }
.review-quote { font-family: var(--serif); font-weight: 380; font-size: 0.95rem; line-height: 1.55; color: var(--ink); margin: 0 0 0.85rem; }
.review-who { font-size: 0.78rem; color: var(--ink-muted); }
.review-who strong { display: block; color: var(--ink); font-weight: 600; }
/* Phone: tighter columns, shorter divider, quote capped to 6 lines. */
@media (max-width: 600px) {
  .review-card { max-width: 66vw; margin: 0 1.35rem; }
  .review-card::before { left: -1.35rem; height: clamp(4.5rem, 18vw, 6rem); }
  .review-quote {
    font-size: 0.85rem; line-height: 1.5; margin-bottom: 0.7rem;
    display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
  }
  .review-stars { font-size: 0.7rem; letter-spacing: 0.14em; margin-bottom: 0.7rem; }
  .review-who { font-size: 0.72rem; }
}

/* ── About + stats ────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.about-copy p { font-size: 1rem; color: var(--ink-soft); line-height: 1.75; margin: 0; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-faint); border: 1px solid var(--ink-faint); border-radius: 1.25rem; overflow: hidden; margin-top: clamp(2rem, 4vw, 3rem); }
.stat { background: var(--cream); padding: clamp(1.4rem, 2.5vw, 2.2rem); text-align: center; }
.stat b { display: block; font-family: var(--serif); font-weight: 480; font-size: clamp(1.7rem, 3.5vw, 2.6rem); color: var(--ink); }
.stat span { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }
@media (max-width: 780px) { .about-grid { grid-template-columns: 1fr; } }

/* ── Contact ──────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); }
.dv-home-form { display: grid; gap: 0.9rem; }
.dv-home-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.dv-home-form input, .dv-home-form select, .dv-home-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink-faint);
  border-radius: 0.8rem;
  padding: 0.9rem 1.05rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.dv-home-form input:focus, .dv-home-form select:focus, .dv-home-form textarea:focus { border-color: var(--amber); }
.dv-home-form textarea { resize: vertical; min-height: 8.5rem; }
.dv-home-form label.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.8rem; color: var(--ink-muted); line-height: 1.55; cursor: pointer; }
.dv-home-form label.check input { width: auto; margin-top: 0.2rem; accent-color: var(--amber); }
.form-fineprint { font-size: 0.72rem; color: var(--ink-muted); line-height: 1.6; margin: 0; }
.form-fineprint a { color: var(--ink-soft); border-bottom: 1px solid var(--ink-faint); }
.form-status { font-size: 0.85rem; color: var(--ink-soft); min-height: 1.2rem; margin: 0; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } .dv-home-form .row-2 { grid-template-columns: 1fr; } }

/* ── Newsletter band ──────────────────────────────────────────────────── */
.newsletter-band {
  border-top: 1px solid var(--ink-faint);
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 2rem);
}
.newsletter-band .h-display { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.newsletter-band p { color: var(--ink-muted); font-size: 0.92rem; margin: 0.8rem auto 1.8rem; max-width: 30rem; }

@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .work-slide { transition: none; }
}
