/* ============================================================
   Overt Creative - v3 stylesheet
   Condensed uppercase display, text links, generous air.
   Pages still on styles.css are untouched until converted.
   ============================================================ */

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

:root {
  --red: #D42B2B;
  --red-dark: #b01c1c;
  --black: #0D0D0D;
  --mid: #141414;
  --mid2: #1A1A1A;
  --white: #FFFFFF;
  --dim: #C4C4C4;
  --muted-2: #A6A6A6;
  --muted: #8E8E8E;
  --line: #232323;
  --line-soft: #1A1A1A;
  --wrap: 1180px;
  --gut: 48px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ---- type ---- */
.display {
  font-family: 'Bebas Neue', Impact, sans-serif;
  letter-spacing: 0.012em;
  line-height: 0.88;
  font-weight: 400;
}
.accent { color: var(--red); }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
  color: var(--muted); text-transform: uppercase;
}
h1.display { font-size: clamp(56px, 10.6vw, 136px); }
h2.display { font-size: clamp(42px, 6vw, 76px); line-height: 0.92; }
h3.display { font-size: clamp(26px, 2.7vw, 34px); line-height: 1; letter-spacing: 0.02em; }

/* ---- text link with arrow ---- */
.tlink {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid #3A3A3A;
  padding-bottom: 6px;
  transition: color .18s, border-color .18s;
}
.tlink:hover, .tlink:focus-visible { color: var(--red); border-bottom-color: var(--red); }
.tlink.is-accent { color: var(--red); }
.tlink.is-accent:hover { color: var(--white); border-bottom-color: var(--white); }

/* ---- buttons (also used by the popup + contact form) ---- */
.btn {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 19px 34px; text-align: center; border: 1px solid transparent;
  cursor: pointer; font-family: inherit; transition: background .18s, color .18s;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: var(--dim); }
.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--black); }

/* ---- nav ---- */
.site-nav { position: relative; z-index: 60; }
.site-nav .wrap { display: flex; align-items: center; padding-top: 28px; padding-bottom: 28px; }
.nav-logo img { width: 92px; height: auto; }
.nav-spacer { flex-grow: 1; }
.nav-menu { display: flex; align-items: center; }
.nav-link {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 14px 18px; transition: color .18s;
}
.nav-link:hover { color: var(--red); }
.nav-cta { padding-right: 0; color: var(--red); }
.nav-cta:hover { color: var(--white); }
.nav-burger {
  display: none; background: none; border: 0; color: var(--white);
  cursor: pointer; padding: 8px; margin-left: auto;
}

/* ---- hero ---- */
.hero { text-align: center; padding-top: 88px; }
.hero h1 { margin-top: 28px; }
.hero-sub {
  margin: 32px auto 0; max-width: 620px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
  line-height: 1.9; color: var(--muted-2); text-transform: uppercase;
}
.hero-cta { margin-top: 34px; }

/* ---- showreel ---- */
.reel-holder { margin-top: 72px; display: flex; justify-content: center; }
.reel { width: min(480px, 100%); }
.reel-frame {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden;
  background: var(--mid2); border-radius: 4px;
}
.reel-frame video { width: 100%; height: 100%; object-fit: cover; }
.reel-tag {
  position: absolute; left: 0; top: 0; z-index: 2;
  background: rgba(13,13,13,0.82); color: var(--muted);
  font-size: 9px; font-weight: 700; letter-spacing: 0.18em;
  padding: 7px 11px; text-transform: uppercase;
}
.reel-btn {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.reel-play {
  display: flex; align-items: center; justify-content: center;
  width: 100px; height: 100px; border-radius: 999px; background: var(--red);
  transition: transform .2s, background .2s;
}
.reel-btn:hover .reel-play { transform: scale(1.07); background: var(--red-dark); }
.reel-sound {
  display: none; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px;
  background: rgba(13,13,13,0.86); border: 1px solid var(--white);
  color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
}
.reel.is-playing .reel-play { display: none; }
.reel.is-playing .reel-tag { display: none; }
.reel.is-playing .reel-sound { display: flex; }
.reel.is-playing .reel-btn { align-items: flex-end; justify-content: flex-start; padding: 16px; }
.reel-cap {
  margin-top: 14px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase;
}

/* ---- sections ---- */
.section { padding-top: 112px; }
.section-rule { border-top: 1px solid var(--line); padding-top: 52px; }

/* ---- services ---- */
.svc-row {
  display: flex; gap: 56px; align-items: flex-start;
  padding: 36px 0; border-top: 1px solid var(--line);
}
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-mark { width: 12px; height: 12px; background: var(--red); flex-shrink: 0; margin-top: 7px; }
.svc-row h3 { width: 340px; flex-shrink: 0; }
.svc-row p { color: var(--muted-2); max-width: 480px; }

/* ---- client list ---- */
.clients {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px 48px; max-width: 980px;
}
.clients div {
  font-size: 15px; font-weight: 500; padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.clients .more { color: var(--muted); }

/* ---- proof ---- */
.proof { display: flex; gap: 72px; align-items: flex-start; }
.proof-num {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(84px, 10.6vw, 136px); line-height: 0.82; color: var(--red);
}
.proof-num small { font-size: 0.56em; }
.proof-label { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--muted); margin-top: 14px; text-transform: uppercase; }
.proof-body { padding-top: 10px; }
.proof-body p { color: var(--muted-2); font-size: 17px; line-height: 1.7; max-width: 540px; margin-top: 16px; }

/* ---- about ---- */
.about { display: flex; gap: 48px; align-items: flex-start; }
.about img { width: 128px; height: 128px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.about p { font-size: 18px; line-height: 1.7; color: var(--dim); max-width: 680px; margin-top: 16px; }

/* ---- cta ---- */
.cta-band {
  background: var(--red); padding: 72px 56px;
  display: flex; align-items: center; gap: 48px; margin-top: 120px;
}
.cta-band h2 { margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; }
.cta-actions .btn { white-space: nowrap; }

/* ---- footer ---- */
.site-footer { padding-top: 56px; padding-bottom: 48px; }
.footer-top {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.footer-top img { width: 78px; height: auto; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.footer-links a:hover { color: var(--red); }
.footer-base {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 22px; font-size: 12px; color: var(--muted);
}

/* ---- form status (used by main.js) ---- */
.form-status:empty { display: none; }
.form-status.ok { color: #4ccf7a; font-weight: 600; }
.form-status.err {
  color: var(--white); background: rgba(212,43,43,0.12);
  border: 1px solid var(--red); padding: 0.75rem 0.9rem;
}
.form-status.err a { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---- lead popup (ported, must keep working) ---- */
.lead-pop {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 330px; max-width: calc(100vw - 36px);
  background: var(--mid); border: 1px solid rgba(212,43,43,0.5);
  padding: 1.3rem 1.3rem 1.1rem;
  box-shadow: 0 12px 44px rgba(0,0,0,0.6);
  opacity: 0; transform: translateY(24px); transition: all .35s ease;
}
.lead-pop.on { opacity: 1; transform: translateY(0); }
.lead-pop h4 { font-size: 1.05rem; color: var(--white); margin: 0 0 0.35rem; }
.lead-pop p { color: var(--muted-2); font-size: 0.87rem; margin: 0 0 0.8rem; line-height: 1.5; }
.lead-pop input {
  display: block; width: 100%; margin-bottom: 0.6rem; padding: 0.6rem 0.75rem;
  background: var(--mid2); color: var(--white); border: 1px solid var(--line);
  font: inherit; font-size: 0.9rem;
}
.lead-pop input:focus { outline: none; border-color: var(--red); }
.lead-pop button { width: 100%; cursor: pointer; border: none; font: inherit; font-weight: 700; }
.lead-pop button[disabled] { opacity: 0.65; cursor: default; }
.lead-pop .lp-x {
  position: absolute; top: 8px; right: 12px; background: none; border: none;
  color: var(--muted); font-size: 1.3rem; width: auto; cursor: pointer;
  line-height: 1; padding: 4px;
}
.lead-pop .lp-x:hover { color: var(--white); }

/* ---- focus visibility ---- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--red); outline-offset: 3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1040px) {
  :root { --gut: 32px; }
  .svc-row { gap: 32px; }
  .svc-row h3 { width: 260px; }
  .proof { gap: 44px; }
}

@media (max-width: 820px) {
  .nav-burger { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--mid); border-top: 1px solid var(--line);
    padding: 8px 0;
  }
  .site-nav.open .nav-menu { display: flex; }
  .nav-link { padding: 16px var(--gut); border-bottom: 1px solid var(--line-soft); }
  .nav-cta { padding-right: var(--gut); }
  .nav-spacer { display: none; }

  .section { padding-top: 80px; }
  .hero { padding-top: 56px; }
  .reel-holder { margin-top: 48px; }

  .svc-row { flex-direction: column; gap: 14px; }
  .svc-row h3 { width: auto; }
  .svc-mark { margin-top: 0; }

  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 32px; }

  .proof { flex-direction: column; gap: 24px; }
  .about { flex-direction: column; gap: 24px; }

  .cta-band { flex-direction: column; align-items: stretch; padding: 48px 32px; gap: 32px; margin-top: 80px; }
  .cta-actions { flex-direction: column; }
}

@media (max-width: 560px) {
  :root { --gut: 20px; }
  .clients { grid-template-columns: 1fr; }
  .footer-links { gap: 18px; }
  .footer-base { flex-direction: column; gap: 8px; }
  .reel-play { width: 76px; height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================================
   INNER PAGES
   ============================================================ */

/* ---- page hero ---- */
.page-hero { padding-top: 72px; }
.page-hero h1 { margin-bottom: 20px; }
.page-hero .lede { font-size: 19px; line-height: 1.65; color: var(--muted-2); max-width: 640px; }
.crumbs { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-top: 28px; }
.crumbs a:hover { color: var(--red); }
.crumbs span { margin: 0 8px; }

/* ---- prose ---- */
.prose { max-width: 680px; }
.prose p { color: var(--dim); font-size: 17px; line-height: 1.75; margin-top: 18px; }
.prose h2 { margin-top: 48px; }
.prose h3 { font-size: 20px; font-weight: 600; margin-top: 34px; }
.prose ul { margin: 18px 0 0 20px; color: var(--dim); }
.prose li { margin-top: 10px; line-height: 1.7; }
.prose strong { color: var(--white); }

/* ---- work grid ---- */
.work-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px; margin-top: 40px;
}
.piece.wide { grid-column: span 2; }
.piece-frame {
  position: relative; width: 100%; aspect-ratio: 9 / 16;
  background: var(--mid2); overflow: hidden; border-radius: 3px;
  border: 0; padding: 0; cursor: pointer; display: block;
}
.piece.wide .piece-frame { aspect-ratio: 16 / 9; }
.piece-frame img, .piece-frame video { width: 100%; height: 100%; object-fit: cover; }
.piece-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 999px; background: var(--red);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, background .2s; pointer-events: none;
}
.piece-frame:hover .piece-play { transform: translate(-50%, -50%) scale(1.09); background: var(--red-dark); }
.piece-frame.is-live .piece-play { display: none; }
.piece h3 { font-size: 15px; font-weight: 600; margin-top: 12px; }
.piece p { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---- case study ---- */
.case { background: var(--mid); padding: 48px; margin-top: 48px; }
.case-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 32px; }
.case-stat .n { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 62px; line-height: 0.9; color: var(--red); }
.case-stat .l { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---- brand strip ----
   Logos are a mix: some white line art, some dark-on-transparent, some
   full-colour on white. A white tile is the only background all of them
   read against. Belleville is white line art, so it gets inverted. */
.brands { display: flex; gap: 16px; align-items: stretch; flex-wrap: wrap; margin-top: 28px; }
.brand-chip {
  background: #FFFFFF; border-radius: 4px; padding: 14px 22px;
  display: flex; align-items: center; justify-content: center;
  min-height: 108px; min-width: 164px; flex: 0 0 auto;
}
.brand-chip img { max-height: 76px; max-width: 190px; width: auto; height: auto; opacity: 1; }
.brand-chip.invert img { filter: invert(1); }

/* ---- cards (blog, industries) ---- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.card { border: 1px solid var(--line); padding: 32px; transition: border-color .18s; display: block; }
.card:hover { border-color: var(--red); }
.card h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--muted-2); font-size: 15px; line-height: 1.65; }
.card .meta { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 40px; align-items: start; }
.enquiry-form label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 7px; margin-top: 20px;
}
.enquiry-form input, .enquiry-form textarea {
  display: block; width: 100%; padding: 13px 15px;
  background: var(--mid2); color: var(--white); border: 1px solid var(--line);
  font: inherit; font-size: 15px;
}
.enquiry-form input:focus, .enquiry-form textarea:focus { outline: none; border-color: var(--red); }
.enquiry-form textarea { min-height: 130px; resize: vertical; }
.enquiry-form button { margin-top: 26px; width: 100%; }
.enquiry-form button[disabled] { opacity: 0.65; cursor: default; }
.contact-aside p { color: var(--muted-2); font-size: 16px; line-height: 1.7; margin-top: 14px; }
.contact-aside a.inline { color: var(--red); border-bottom: 1px solid var(--red); }

/* ---- faq ---- */
.faq-item { border-top: 1px solid var(--line); padding: 26px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 18px; font-weight: 600; }
.faq-item p { color: var(--muted-2); margin-top: 10px; line-height: 1.7; }

@media (max-width: 1040px) {
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr; }
  .case { padding: 32px 24px; }
  .case-stats { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; }
  .piece.wide { grid-column: span 1; }
}

/* ---- safety net: headings that arrive without a class ---- */
.page-hero h1, .prose h2, .page-hero h2 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  letter-spacing: 0.012em; line-height: 0.92; font-weight: 400;
}
.page-hero h1 { font-size: clamp(44px, 6.4vw, 80px); }
.prose h2, .page-hero h2 { font-size: clamp(32px, 4vw, 48px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.enquiry-form select {
  display: block; width: 100%; padding: 13px 15px; background: var(--mid2);
  color: var(--white); border: 1px solid var(--line); font: inherit; font-size: 15px;
}
.enquiry-form select:focus { outline: none; border-color: var(--red); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---- case study with its video alongside ---- */
.case-grid { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: start; }
.case-video .piece-frame { aspect-ratio: 9 / 16; }
@media (max-width: 820px) {
  .case-grid { grid-template-columns: 1fr; gap: 32px; }
  .case-video { max-width: 260px; }
}

/* ============================================================
   TOUCH TARGETS
   Phones need a 44px minimum tap area. Desktop layout unchanged:
   links that carry an underline get the hit area expanded with a
   pseudo-element so the rule stays tight against the text.
   ============================================================ */

@media (max-width: 820px) {
  .eyebrow, .reel-cap { font-size: 12px; }

  /* footer: 18px tall, padded out */
  .footer-links { gap: 2px 24px; }
  .footer-links a { display: inline-block; padding: 13px 0; font-size: 12px; }

  /* breadcrumbs: 13px tall, padded out */
  .crumbs { padding-top: 16px; font-size: 12px; }
  .crumbs a { display: inline-block; padding: 13px 0; }

  /* underlined links: expand the hit area, keep the rule tight */
  .tlink, .contact-aside a.inline {
    position: relative;
  }
  .tlink::after, .contact-aside a.inline::after {
    content: ""; position: absolute; left: 0; right: 0;
    top: 50%; transform: translateY(-50%);
    height: 44px;
  }

  .nav-logo { display: inline-block; padding: 4px 0; }
  .piece h3 { font-size: 16px; }
  .piece p, .case-stat .l { font-size: 14px; }
  .footer-base { font-size: 13px; }
}

/* ---- standalone link rows lifted from the old chip strips ---- */
.chip-row { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 26px; }
