/* ==========================================================================
   ELEVATION SPORTS MEDIA — Main stylesheet
   One shared stylesheet for every page (EN + FR).
   Mobile-first: base styles are for phones, then @media (min-width) adds
   tablet / desktop layouts.

   CONTENTS
   01. Fonts (self-hosted Google Fonts: Barlow + Barlow Condensed)
   02. Brand tokens (colours, spacing, type)  ← edit colours here only
   03. Base / reset
   04. Utilities (container, section, eyebrow, visually-hidden, reveal)
   05. Buttons & links
   06. Header / navigation / language switch / mobile menu
   07. Hero (homepage slideshow) + page hero (inner pages)
   08. Sports strip
   09. Services (What we do)
   10. Why us
   11. Featured work mosaic
   12. Client logo wall
   13. About
   14. Testimonial
   15. Contact + quote form
   16. Work page (projects + YouTube click-to-load)
   17. Gallery page (filters, grid, lightbox)
   18. Footer, back-to-top, cookie banner
   19. 404 page
   20. Reduced motion
   ========================================================================== */


/* 01. FONTS ----------------------------------------------------------------
   Barlow & Barlow Condensed from Google Fonts, self-hosted in /assets/fonts/
   (same files, served from our own server: faster, preloadable, and no call to
   Google before the visitor gives cookie consent). Licence: SIL OFL 1.1. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }


/* 02. BRAND TOKENS ----------------------------------------------------------
   Brand colours taken from the logo. Change a colour here and it updates
   everywhere on the site. */
:root {
  /* Brand colours */
  --red:        #FF0000;  /* primary accent: buttons, highlights, "ELEVATION" red */
  --red-deep:   #870707;  /* hover states, dark red accents (also red text on light bg) */
  --black:      #161616;  /* main background */
  --surface:    #1F1F1F;  /* cards, alternate dark sections */
  --charcoal:   #2D2D2D;  /* borders, dividers */
  --grey:       #646464;  /* "SPORTS" grey, secondary elements */
  --grey-light: #898989;  /* muted text on dark */
  --light:      #EFEFEF;  /* light sections background */
  --white:      #F5F5F5;  /* main text on dark */

  /* Supporting tones used by the approved design */
  --text-soft:  #D4D4D4;  /* lead paragraphs on dark */
  --text-muted: #B3B3B3;  /* body copy on dark */
  --text-dark-muted: #4D4D4D; /* muted text on light sections */
  --field-bg:   #161616;
  --field-line: #3B3B3B;

  /* Typography */
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1320px;
  --gutter: 20px;
  --section-y: 88px;
  --radius: 4px;
  --header-h: 72px;

  /* Focus ring colour (switched to dark on light sections) */
  --focus: #FFFFFF;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --section-y: 112px; --header-h: 84px; }
}
@media (min-width: 1100px) {
  :root { --section-y: 128px; }
}


/* 03. BASE / RESET --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px); /* anchors land below the sticky header */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -.005em;
}

p { margin: 0; }

a { color: var(--white); text-underline-offset: .18em; }
a:hover { color: #FFFFFF; }

input, select, textarea, button { font: inherit; }

/* Visible keyboard focus on every interactive element */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--red); color: #FFFFFF; }


/* 04. UTILITIES ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }

/* Dark alternate band (Why us, testimonial) */
.section--surface {
  background: var(--surface);
  border-top: 1px solid var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
}

/* Light band (Featured work, logo wall) */
.section--light {
  background: var(--light);
  color: var(--black);
  --focus: var(--black);
}
.section--light a { color: var(--black); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Small red kicker above headings */
.eyebrow {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--red);
}
.section--light .eyebrow { color: var(--red-deep); } /* keeps AA contrast on light grey */

/* Big section title (What we do, Featured work, Who we are…) */
.section-title {
  font-size: clamp(44px, 9vw, 88px);
  line-height: .92;
}

.lead { font-size: 19px; color: var(--text-muted); }

/* Heading + intro side by side on desktop */
.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: 48px;
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: end; margin-bottom: 64px; }
  .section-head .lead { max-width: 520px; }
}

/* Clearly visible placeholder text: replace every [BRACKETED] item with real content */
.placeholder { font-style: italic; } /* kept at full contrast (WCAG AA) */

/* Reveal-on-scroll: only hidden when JS is running (html.js) and motion is allowed */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }


/* 05. BUTTONS & LINKS ------------------------------------------------------
   Buttons: red background, white bold uppercase text ≥ 19px (large-text
   contrast rule keeps white on #FF0000 accessible). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--red); color: #FFFFFF; }
.btn--primary:hover { background: var(--red-deep); color: #FFFFFF; }

.btn--outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn--outline:hover { background: var(--white); color: var(--black); }

.btn--lg { min-height: 56px; padding: 16px 30px; }

/* "View all projects →" style link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.link-arrow svg { width: 20px; height: 20px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }


/* 06. HEADER / NAVIGATION -------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--white);
  color: var(--black);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--black); }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  /* Transparent-ish over the hero, solid once the page is scrolled */
  background: linear-gradient(to bottom, rgba(22,22,22,.85), rgba(22,22,22,0));
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: rgba(22,22,22,.97);
  border-bottom-color: var(--charcoal);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
/* Note: no backdrop-filter here on purpose — it would trap the fixed mobile menu inside the header. */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
  transition: height .3s var(--ease);
}
.site-header.is-scrolled .nav { height: 64px; }

.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img {
  height: 40px;
  width: auto;
  transition: height .3s var(--ease);
}
@media (min-width: 768px) { .nav__logo img { height: 48px; } }
.site-header.is-scrolled .nav__logo img { height: 38px; }

/* Main links (desktop). On mobile they live in the slide-down menu. */
.nav__menu {
  position: fixed;
  inset: 0;
  top: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: var(--black);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s, transform .25s var(--ease), visibility 0s linear .25s;
}
.nav__menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .25s, transform .25s var(--ease), visibility 0s;
}
.nav__links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
}
.nav__links a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--charcoal);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
}
.nav__links a.is-active,
.nav__links a[aria-current="page"] { color: var(--red); }

.nav__menu-extra { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.nav__menu-extra .btn { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__actions .btn { display: none; } /* header Get a Quote shows from tablet up */

/* Language switch: EN / FR */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-muted);
}
.lang-switch a, .lang-switch span[aria-current] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 4px;
  text-decoration: none;
  color: var(--text-muted);
  border-radius: var(--radius);
}
.lang-switch span[aria-current] { color: var(--white); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.lang-switch a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav__menu .lang-switch { font-size: 18px; }

/* Hamburger button */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  background: rgba(22,22,22,.6);
  color: var(--white);
  cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s var(--ease), background-color .2s;
  content: "";
  position: relative;
}
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after  { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 640px) {
  .nav__actions .btn { display: inline-flex; min-height: 44px; padding: 10px 20px; }
}

/* Desktop navigation */
@media (min-width: 1140px) {
  .nav-toggle, .nav__menu-extra { display: none; }
  .nav__menu {
    position: static;
    z-index: auto;
    flex-direction: row;
    padding: 0;
    background: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav__links { flex-direction: row; align-items: center; gap: 30px; }
  .nav__links a {
    position: relative;
    padding: 8px 0;
    border: 0;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: .12em;
  }
  .nav__links a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 2px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .nav__links a:hover::after,
  .nav__links a.is-active::after,
  .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
  .nav__links a.is-active,
  .nav__links a[aria-current="page"] { color: var(--white); }
  .nav__actions { gap: 18px; }
}


/* 07. HERO ------------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #242424;
  isolation: isolate;
}
@media (min-height: 1000px) and (min-width: 1100px) { .hero { min-height: 860px; height: 100svh; } }

/* Background: poster photo (always) + YouTube video on top once it plays */
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__poster { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.hero__yt {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;           /* the video can't be clicked: it's decoration */
  opacity: 0;
  transition: opacity 1.2s ease;
  container-type: size;           /* lets the iframe "cover" the hero like a photo */
}
.hero.is-video-playing .hero__yt { opacity: 1; }
.hero__yt iframe {
  position: absolute;
  top: 50%; left: 50%;
  border: 0;
  /* 16:9 player stretched to cover the whole hero, then scaled a little
     so YouTube's title bar and logo stay out of view */
  width: 100vw; height: 56.25vw; min-height: 100vh; min-width: 177.78vh;
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); min-width: 0; min-height: 0;
  transform: translate(-50%, -50%) scale(1.18);
}
/* Portrait screens: text sits over more of the image, so darken it a bit more */
@media (max-aspect-ratio: 1/1) {
  .hero::before {
    background:
      linear-gradient(to top, rgba(22,22,22,.97) 0%, rgba(22,22,22,.8) 40%, rgba(22,22,22,.35) 75%, rgba(22,22,22,.45) 100%);
  }
}

/* Dark gradients so the headline always stays readable */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(22,22,22,.97) 0%, rgba(22,22,22,.75) 30%, rgba(22,22,22,.15) 70%, rgba(22,22,22,.35) 100%),
    linear-gradient(to right, rgba(22,22,22,.55), rgba(22,22,22,0) 65%);
}

.hero__content {
  width: 100%;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 104px;
}
.hero__content .eyebrow { margin-bottom: 18px; }
.hero__title {
  font-size: clamp(60px, min(16vw, 18vh), 168px);  /* also scales with screen height so the buttons stay visible */
  line-height: .88;
  letter-spacing: -.01em;
}
/* Longer headline (French) gets a slightly smaller size */
.hero__title--long { font-size: clamp(50px, min(9.5vw, 14vh), 132px); }
.hero__title span { display: block; }
.hero__lead {
  margin-top: 24px;
  max-width: 620px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-soft);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
@media (min-width: 768px) {
  .hero__lead { font-size: 20px; margin-top: 28px; }
  .hero__actions { margin-top: 40px; }
  .hero__content { padding-bottom: 96px; }
}

/* Background video pause/play button (bottom right) */
.hero__controls {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  display: flex;
  align-items: center;
}
.hero__pause {
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid rgba(245,245,245,.4);
  border-radius: 50%;
  background: rgba(22,22,22,.5);
  color: var(--white);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.hero__pause svg { width: 14px; height: 14px; }
.hero__pause:hover { border-color: var(--white); }
.hero__pause .icon-play { display: none; }
.hero__pause[aria-pressed="true"] .icon-play { display: block; }
.hero__pause[aria-pressed="true"] .icon-pause { display: none; }

/* Inner page hero (Work, Gallery) */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 420px;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 64px;
  overflow: hidden;
  background: var(--surface);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(22,22,22,.98) 5%, rgba(22,22,22,.7) 55%, rgba(22,22,22,.55));
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(56px, 12vw, 128px); line-height: .88; }
.page-hero p { margin-top: 20px; max-width: 640px; font-size: 19px; color: var(--text-soft); }
@media (min-width: 768px) { .page-hero { min-height: 520px; padding-bottom: 80px; } }


/* 08. SPORTS STRIP --------------------------------------------------------- */
.sports-strip { background: var(--red); color: #FFFFFF; overflow: hidden; }
.sports-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 0 auto;
  padding: 16px var(--gutter);
  max-width: var(--container);
  list-style: none;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sports-strip ul { gap: 6px 22px; }
.sports-strip .sep { display: none; opacity: .9; }  /* dots only on wide screens (no orphan dots when wrapping) */
@media (min-width: 900px) {
  .sports-strip ul { justify-content: space-between; gap: 12px 24px; font-size: 22px; padding-top: 18px; padding-bottom: 18px; }
  .sports-strip .sep { display: list-item; list-style: none; }
}


/* 09. SERVICES ---------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin: 0; padding: 0;
  list-style: none;
  background: var(--charcoal);
  border: 1px solid var(--charcoal);
}
@media (min-width: 700px)  { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 28px 40px;
  background: var(--black);
  transition: background-color .3s;
}
.service-card:hover { background: #1B1B1B; }
@media (min-width: 768px) { .service-card { padding: 40px 36px 44px; } }
.service-card__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .1em;
  color: var(--red);
}
.service-card h3 { font-size: 32px; line-height: 1; }
@media (min-width: 768px) { .service-card h3 { font-size: 34px; } }
.service-card p { color: var(--text-muted); }

/* 7th service: full-width highlighted card (Athlete Brand Management) */
.service-card--feature {
  grid-column: 1 / -1;
  gap: 20px;
  background: linear-gradient(120deg, #1F1F1F 0%, #161616 60%);
  border-left: 4px solid var(--red);
}
.service-card--feature:hover { background: linear-gradient(120deg, #232323 0%, #1B1B1B 60%); }
.service-card__head { display: flex; flex-direction: column; gap: 14px; }
.service-card__tag {
  align-self: flex-start;
  padding: 4px 12px;
  border: 1px solid var(--red);
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
}
.service-card__body { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.service-card--feature p { font-size: 19px; color: var(--text-soft); max-width: 620px; }
@media (min-width: 900px) {
  .service-card--feature {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
    padding: 48px 48px 52px;
  }
  .service-card--feature h3 { font-size: 44px; }
  .service-card__head { flex: 0 0 38%; }
  .service-card__body { flex: 1; }
}


/* 10. WHY US ----------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}
@media (min-width: 900px) { .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; } }
.why-item { display: flex; flex-direction: column; gap: 14px; }
.why-item::before { content: ""; width: 48px; height: 4px; background: var(--red); }
.why-item h3 { font-size: 30px; line-height: 1.05; }
@media (min-width: 768px) { .why-item h3 { font-size: 32px; } }
.why-item p { color: var(--text-muted); }


/* 11. FEATURED WORK MOSAIC ------------------------------------------------- */
.work-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}
@media (min-width: 768px) { .work-head { margin-bottom: 56px; } }

.mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 200px;
  gap: 10px;
  margin: 0; padding: 0;
  list-style: none;
}
.mosaic__item--feature { grid-column: span 2; grid-row: span 2; }
.mosaic__item--wide { grid-column: span 2; }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 260px; gap: 12px; }
}

.mosaic__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #DCDCDC;
}
.mosaic__item > a { position: absolute; inset: 0; display: block; color: #FFFFFF; text-decoration: none; }
.mosaic__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 40%);
  transition: transform .6s var(--ease);
}
.mosaic__item > a:hover img, .mosaic__item > a:focus-visible img { transform: scale(1.05); }
.mosaic__item > a:focus-visible { outline-offset: -4px; outline-color: #FFFFFF; }
.mosaic__item::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(22,22,22,.8), rgba(22,22,22,0) 55%);
}
.mosaic__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 16px 18px;
  color: #FFFFFF;
}
.mosaic__caption strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
}
.mosaic__caption span { display: block; margin-top: 6px; font-size: 14px; color: #E0E0E0; }
.mosaic__item--feature .mosaic__caption { padding: 24px; }
.mosaic__item--feature .mosaic__caption strong { font-size: 30px; }

/* Red round play badge (highlight reel tile + video posters) */
.play-badge {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 1;
  width: 72px; height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: var(--red);
  color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
  transition: transform .25s var(--ease), background-color .2s;
}
.play-badge svg { width: 26px; height: 26px; margin-left: 4px; }
a:hover .play-badge, button:hover .play-badge { transform: scale(1.08); background: var(--red-deep); }


/* 12. CLIENT LOGO WALL ---------------------------------------------------- */
.logo-wall-section { border-top: 1px solid #D4D4D4; }
.logo-wall-section .container { padding-top: 72px; padding-bottom: 88px; }
@media (min-width: 768px) { .logo-wall-section .container { padding-top: 88px; padding-bottom: 104px; } }
.logo-wall__title {
  margin-bottom: 36px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
}
/* Client logos are round badges, shown in full colour.
   Phones: 3 per row · tablets and up: 2 rows of 5 */
.logo-wall {
  --cols: 3;
  --gap: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  max-width: 920px;
  margin: 0 auto; padding: 0;
  list-style: none;
}
@media (min-width: 640px)  { .logo-wall { --cols: 5; --gap: 32px; } }
@media (min-width: 1100px) { .logo-wall { --gap: 48px; } }
.logo-wall li {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  max-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-wall img {
  width: 100%;
  height: auto;
  border-radius: 50%;              /* every logo is a round badge */
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
  transition: transform .3s var(--ease);
}
.logo-wall li:hover img { transform: translateY(-4px) scale(1.04); }


/* 13. ABOUT ----------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) { .about { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; } }
.about__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: #242424;
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__media::after { /* thin red accent line */
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 96px; height: 6px;
  background: var(--red);
}
.about__body { display: flex; flex-direction: column; gap: 24px; }
.about__body .lead { color: var(--text-soft); }
.about__body p:not(.lead) { color: var(--text-muted); }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 0; padding: 0;
  list-style: none;
}
.audience-grid li { border-top: 1px solid var(--charcoal); padding-top: 16px; }
.audience-grid strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.1;
  text-transform: uppercase;
}
.audience-grid span { font-size: 15px; color: #A3A3A3; }


/* 14. TESTIMONIALS ----------------------------------------------------------- */
.testimonials__title {
  margin-bottom: 40px;
  text-align: center;
  font-size: clamp(40px, 7vw, 64px);
}
.testimonials {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: 0; padding: 0;
  list-style: none;
}
@media (min-width: 1000px) { .testimonials { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.testimonial-card figure {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 28px 28px;
  background: var(--black);
  border: 1px solid var(--charcoal);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
}
.testimonial__mark {
  display: block;
  height: 36px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 80px;
  line-height: .9;
  color: var(--red);
}
.testimonial-card blockquote { margin: 0; flex: 1; }
.testimonial-card blockquote p { font-size: 18px; line-height: 1.6; color: var(--text-soft); font-style: italic; }
.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--charcoal);
}
.testimonial-card figcaption img { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; background: #000; }
.testimonial-card figcaption strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.testimonial-card figcaption span span { display: block; font-size: 14px; color: #A3A3A3; line-height: 1.4; }


/* 15. CONTACT + QUOTE FORM -------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
@media (min-width: 1000px) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } }
.contact__intro { display: flex; flex-direction: column; gap: 24px; }
.contact__intro .lead { color: var(--text-soft); max-width: 480px; }

.contact-list { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { border-top: 1px solid var(--charcoal); padding-top: 16px; }
.contact-list .label {
  display: block;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #A3A3A3;
}
.contact-list .value { font-size: 20px; overflow-wrap: anywhere; }
.contact-list a.value { text-decoration: none; }
.contact-list a.value:hover { text-decoration: underline; }
.social-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 18px; }

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--charcoal);
  border-radius: 6px;
}
@media (min-width: 600px) { .quote-form { padding: 40px; } }
.quote-form__title { font-size: 30px; line-height: 1; }
.quote-form__note { font-size: 14px; color: var(--text-muted); }

.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field-legend { font-size: 15px; color: var(--text-muted); }
.req { color: var(--red); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  background: var(--field-bg);
  color: var(--white);
  font-size: 16px; /* ≥16px prevents iOS zoom on focus */
  transition: border-color .2s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F5F5F5' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field input::placeholder, .field textarea::placeholder { color: #8A8A8A; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--grey); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--white); }

.field-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-legend { padding: 0; margin-bottom: 10px; }
.checks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 16px; }
@media (min-width: 480px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.check { display: flex; align-items: center; gap: 12px; min-height: 40px; font-size: 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--red); cursor: pointer; }

/* Validation states */
.field-error { font-size: 14px; color: #FF8A8A; min-height: 0; }
.field-error:empty { display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #FF5C5C; }
.field-group.has-error .field-legend { color: #FF8A8A; }

/* Cloudflare Turnstile check (usually invisible; shows a box only when needed) */
.turnstile:empty { display: none; }
.turnstile iframe { max-width: 100%; }

/* Honeypot: hidden from people, visible to spam bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 500;
}
.form-status:empty { display: none; }
.form-status.is-success { background: rgba(46, 160, 67, .15); border: 1px solid #2EA043; color: #C9F2D0; }
.form-status.is-error   { background: rgba(255, 0, 0, .12); border: 1px solid #FF5C5C; color: #FFC9C9; }

.quote-form .btn[type="submit"] { width: 100%; min-height: 56px; font-size: 20px; font-weight: 800; }
.quote-form .btn[aria-busy="true"] { opacity: .7; cursor: progress; }


/* 16. WORK PAGE --------------------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin: 0; padding: 0;
  list-style: none;
}
@media (min-width: 800px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; } }
.video-grid .video-card--featured { grid-column: 1 / -1; }

.video-card h3 { margin-top: 18px; font-size: 26px; line-height: 1.05; }
.video-card p { margin-top: 8px; color: var(--text-muted); }
.section--light .video-card p { color: var(--text-dark-muted); }

/* Click-to-load YouTube embed: poster + play button, iframe only after click */
.yt {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}
.yt__btn {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  color: #FFFFFF;
  cursor: pointer;
}
.yt__btn img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .6s var(--ease); }
.yt__btn:hover img { opacity: 1; transform: scale(1.03); }
.yt__btn:focus-visible { outline-offset: -4px; }
.yt__btn[disabled] { cursor: default; }
.yt__btn[disabled] .play-badge { background: var(--grey); }
.yt__label {
  position: absolute;
  left: 12px; bottom: 12px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: var(--radius);
  background: rgba(22,22,22,.85);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.project-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin: 0; padding: 0;
  list-style: none;
  background: var(--charcoal);
  border: 1px solid var(--charcoal);
}
@media (min-width: 700px)  { .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .project-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.project-card { display: flex; flex-direction: column; background: var(--black); }
.project-card__media { aspect-ratio: 4 / 5; overflow: hidden; background: #EDEDED; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 35%); }
.project-card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 28px; }
.project-card__meta { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.project-card h3 { font-size: 26px; line-height: 1.02; }
.project-card p { color: var(--text-muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.tag-list li {
  padding: 4px 10px;
  border: 1px solid var(--charcoal);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Closing call-to-action band */
.cta-band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.cta-band h2 { font-size: clamp(40px, 7vw, 72px); }
.cta-band .btn { flex-shrink: 0; }
@media (min-width: 900px) {
  .cta-band { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}


/* 17. GALLERY PAGE ------------------------------------------------------------ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.filter-btn {
  min-height: 44px;
  padding: 8px 20px;
  border: 1px solid var(--charcoal);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.filter-btn:hover { border-color: var(--white); }
.filter-btn[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #FFFFFF; }
.filter-count { margin-left: 2px; } /* same size/weight as the label: keeps white-on-red contrast accessible */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
  gap: 8px;
  margin: 0; padding: 0;
  list-style: none;
}
@media (min-width: 700px)  { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 180px; gap: 10px; } }
@media (min-width: 1100px) { .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 12px; } }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); background: #242424; }
.gallery-item--portrait { grid-row: span 2; }
.gallery-item--landscape { grid-column: span 2; grid-row: span 2; }
.gallery-item[hidden] { display: none; }
.gallery-item button {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  padding: 0; border: 0;
  background: none;
  cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 40%); transition: transform .6s var(--ease), opacity .3s; }
.gallery-item button:hover img { transform: scale(1.04); }
.gallery-item button:focus-visible { outline-offset: -4px; }
.gallery-empty { padding: 48px 0; color: var(--text-muted); font-size: 19px; }

/* Lightbox (native <dialog>: focus trap + Esc handled by the browser) */
.lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgba(10,10,10,.97);
  color: var(--white);
}
.lightbox::backdrop { background: rgba(10,10,10,.9); }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 12px 12px;
  touch-action: pan-y pinch-zoom;
}
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter) 20px;
  font-size: 15px;
  color: var(--text-muted);
}
.lightbox__caption { flex: 1; }
.lightbox__counter { font-family: var(--font-head); font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.lightbox__btn {
  position: absolute;
  z-index: 2;
  width: 52px; height: 52px;
  padding: 0;
  border: 1px solid rgba(245,245,245,.25);
  border-radius: 50%;
  background: rgba(22,22,22,.7);
  color: var(--white);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.lightbox__btn:hover { background: var(--red); border-color: var(--red); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 599px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; }
}
@media (min-width: 900px) {
  .lightbox__stage { padding: 72px 96px 12px; }
  .lightbox__close { top: 20px; right: 20px; }
  .lightbox__prev { left: 24px; }
  .lightbox__next { right: 24px; }
}


/* 18. FOOTER / BACK-TO-TOP / COOKIE BANNER --------------------------------- */
.site-footer { border-top: 1px solid var(--charcoal); }
.footer-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 48px;
  padding-bottom: 32px;
}
@media (min-width: 900px) {
  .footer-main { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-main img { height: 56px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.footer-links a { color: var(--text-muted); text-decoration: none; display: inline-block; padding: 6px 0; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  padding-bottom: 32px;
  position: relative;
  font-size: 14px;
  color: #A3A3A3;
}
.footer-bottom a, .footer-bottom button {
  color: #A3A3A3;
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.footer-bottom a:hover, .footer-bottom button:hover { color: var(--white); }
.footer-bottom p { line-height: 1.8; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--charcoal); }
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.back-to-top {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 90;
  width: 48px; height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #FFFFFF;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s var(--ease), visibility 0s linear .25s, background-color .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease), visibility 0s, background-color .2s; }
.back-to-top:hover { background: var(--red-deep); }
.back-to-top svg { width: 22px; height: 22px; }
body.cookie-open .back-to-top { bottom: calc(var(--cookie-h, 200px) + 28px); }

.cookie-banner {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 200;
  max-width: 560px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--charcoal);
  border-top: 3px solid var(--red);
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.cookie-banner[hidden] { display: none; }
@media (min-width: 600px) { .cookie-banner { left: auto; right: 24px; bottom: 24px; padding: 24px; } }
.cookie-banner h2 { font-size: 24px; margin-bottom: 8px; }
.cookie-banner p { font-size: 15px; color: var(--text-muted); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cookie-banner__actions .btn { min-height: 44px; padding: 10px 20px; flex: 1 1 auto; }


/* 19. 404 PAGE ------------------------------------------------------------ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
}
.error-page__code {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(120px, 30vw, 260px);
  line-height: .8;
  color: var(--red);
}
.error-page__grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .error-page__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.error-page h1, .error-page h2 { font-size: clamp(36px, 6vw, 56px); margin: 16px 0; }
.error-page p { color: var(--text-muted); margin-bottom: 24px; }


/* 20. REDUCED MOTION --------------------------------------------------------
   Visitors who ask their device for less motion get no animations. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
