/* =========================================================
   STYLES FOR YOUR WEBSITE
   ---------------------------------------------------------
   This one file controls how every page looks.

   Sections (search for the number to jump there):
     1. Brand settings  <-- colours, fonts, spacing. START HERE.
     2. Reset & base
     3. Layout helpers
     4. Labels, buttons & links
     5. Header & navigation
     6. Footer
     7. Home page hero (the big video at the top)
     8. Section headings & page headers
     9. Project cards & Work filters
    10. Services list, quote & call-to-action
    11. Project detail pages
    12. Services page
    13. About page & testimonials
    14. Contact form
    15. Lightbox (pop-up video / photo viewer)
    16. Smaller screens (tablets & phones)
    17. "Who I work with" doors & monthly retainers
    18. YouTube videos (hero background, players, video grids)
    19. Vertical videos (reels) & pop-up sizing
   ========================================================= */


/* ---------------------------------------------------------
   1. BRAND SETTINGS
   Change a value here and it changes everywhere on the site.
   --------------------------------------------------------- */
:root {
  /* Colours */
  --bg: #0c0c0b;            /* page background (near black) */
  --surface: #161614;       /* cards, form fields */
  --surface-2: #1f1f1c;     /* hover state for cards */
  --text: #ece7df;          /* main text (warm off-white) */
  --muted: #a19b91;         /* secondary text */
  --line: rgba(236, 231, 223, 0.14); /* thin divider lines */
  --accent: #84d47f;        /* highlight colour (fresh green) */
  --accent-ink: #0b1a0a;    /* text that sits ON the accent colour */
  --rec: #ef4444;           /* the little red "recording" dot */

  /* Fonts (loaded from Google Fonts in each page's <head>) */
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Spacing & sizes */
  --container: 1280px;                  /* max content width */
  --gutter: clamp(16px, 4vw, 48px);     /* space at the screen edges */
  --section: clamp(72px, 10vw, 144px);  /* space between sections */
  --radius: 4px;                        /* corner rounding on images */
  --header-h: 72px;                     /* height of the top bar */
}


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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle film grain over the whole site. Delete this block to remove it. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
/* Italic words in headings get the accent colour: <h1>Hello <em>there</em></h1> */
h1 em, h2 em, h3 em { color: var(--accent); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Hidden visually, still read by screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

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


/* ---------------------------------------------------------
   3. LAYOUT HELPERS
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--line { border-top: 1px solid var(--line); }
.section-end { padding-bottom: var(--section); } /* space under the last block on a page */

.prose { max-width: 65ch; }
.prose h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
}


/* ---------------------------------------------------------
   4. LABELS, BUTTONS & LINKS
   --------------------------------------------------------- */
/* Small all-caps "timecode style" text, e.g. <p class="label">01 — Work</p> */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Blinking red dot, like a camera that's recording */
.rec-dot {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--rec);
  animation: rec-blink 1.6s ease-in-out infinite;
}
@keyframes rec-blink { 50% { opacity: 0.2; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.6em;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 0.9375rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--text); border-color: var(--text); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--text); color: var(--bg); }

.btn--small { padding: 0.7em 1.15em; font-size: 0.875rem; }

.btn-icon { font-size: 0.7em; }

/* Text link with an arrow, e.g. "All work →" */
.link-arrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }

/* A link with no underline, e.g. "← Work" at the top of project pages */
.plain-link { text-decoration: none; transition: color 0.2s; }
.plain-link:hover { color: var(--accent); }


/* ---------------------------------------------------------
   5. HEADER & NAVIGATION
   --------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
}
/* The blurred background that fades in after you scroll */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(12, 12, 11, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.3s;
}
.site-header.is-scrolled::before { opacity: 1; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-decoration: none;
}
.logo-name { font-family: var(--font-display); font-size: 1.5rem; }
.logo-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
}
.site-nav a:not(.btn) {
  position: relative;
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
}

/* Hamburger button: hidden on big screens, shown in section 16 */
.nav-toggle { display: none; }


/* ---------------------------------------------------------
   6. FOOTER
   --------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(56px, 8vw, 104px) 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.9vw, 2.5rem);
  line-height: 1.1;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}
.footer-email:hover { color: var(--accent); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-bottom--solo { margin-top: 0; padding-top: 0; border-top: 0; } /* short footer on thanks.html */


/* ---------------------------------------------------------
   7. HOME PAGE HERO
   --------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Dark gradient so the white text is always readable over the video */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(12, 12, 11, 0.96) 0%, rgba(12, 12, 11, 0.55) 42%, rgba(12, 12, 11, 0.25) 75%, rgba(12, 12, 11, 0.55) 100%);
}
.hero-content { padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(36px, 6vw, 72px); }
.hero-content .label { color: var(--text); }
.hero-title {
  font-size: clamp(2.9rem, 7.4vw, 7rem);
  max-width: 13ch;
  margin-bottom: 0.35em;
}
.hero-lede {
  max-width: 44ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  color: rgba(236, 231, 223, 0.84);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero-footer {
  display: flex;
  justify-content: space-between;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.hero-footer .label { margin: 0; }


/* ---------------------------------------------------------
   8. SECTION HEADINGS & PAGE HEADERS
   --------------------------------------------------------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.section-title { font-size: clamp(2.25rem, 5vw, 4.25rem); max-width: 16ch; margin: 0; }

/* The top of inner pages (Work, Services, About, Contact) */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 128px));
  padding-bottom: clamp(40px, 6vw, 80px);
}
.page-hero h1 { font-size: clamp(3.25rem, 9vw, 7.5rem); max-width: 14ch; margin-bottom: 0.3em; }
/* A slightly smaller headline (used on the About page) */
.page-hero--compact h1 { font-size: clamp(2.75rem, 7vw, 5.75rem); }


/* ---------------------------------------------------------
   9. PROJECT CARDS & WORK FILTERS
   --------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(16px, 2.5vw, 32px);
}
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { display: block; text-decoration: none; }
.card[hidden] { display: none; }

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}
.card-media img,
.card-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s;
}
.card:hover .card-media img,
.card:hover .card-media video { transform: scale(1.035); }
/* The hover preview video fades in on top of the still image */
.card-media video { opacity: 0; }
.card.is-playing .card-media video { opacity: 1; }

/* Little "▶ Film" / "Photo" tag in the corner of each card */
.card-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(12, 12, 11, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 16px;
}
.card-title { font-size: clamp(1.5rem, 2.4vw, 2.125rem); margin: 0; transition: color 0.2s; }
.card:hover .card-title { color: var(--accent); }
.card-info {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
/* In the 3-column Work grid there's less room, so the info sits under the title */
.cards--3 .card-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
.cards--3 .card-info { text-align: left; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 48px); }
.filter {
  padding: 0.75em 1.25em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.filter:hover { color: var(--text); border-color: var(--muted); }
.filter[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }


/* ---------------------------------------------------------
   10. SERVICES LIST, QUOTE & CALL-TO-ACTION (home page)
   --------------------------------------------------------- */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1.6fr) auto;
  gap: 24px;
  align-items: baseline;
  padding-block: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.service-num, .service-price {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.service-price { white-space: nowrap; }
.service-name { font-family: var(--font-display); font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.1; transition: color 0.2s; }
.service-desc { color: var(--muted); }
.service-row:hover .service-name { color: var(--accent); }

.quote { margin: 0; max-width: 30ch; }
.quote blockquote { margin: 0; }
.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.8vw, 3.25rem);
  line-height: 1.15;
  text-indent: -0.4em;
}
.quote figcaption { margin-top: 1.5rem; }
.quote-mark { color: var(--accent); }

.cta { text-align: center; border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 96px); }
.cta .label { justify-content: center; }
.cta h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); max-width: 24ch; margin-inline: auto; }
.cta .btn { margin-top: 0.5rem; }


/* ---------------------------------------------------------
   11. PROJECT DETAIL PAGES
   --------------------------------------------------------- */
.project-hero { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px)); }

.project-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.project-title { font-size: clamp(3.25rem, 9vw, 7.5rem); margin: 0 0 0.2em; }

/* Video player box (works for Cloudinary <video> or a Vimeo/YouTube <iframe>) */
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}
.player video, .player iframe { width: 100%; height: 100%; border: 0; object-fit: cover; }

.wide-image { border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; background: var(--surface); }
.wide-image img { width: 100%; height: 100%; object-fit: cover; }

/* Facts list: Client / Role / Year ... */
.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin: 0;
}
.meta-list dt,
.credits dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.meta-list dd, .credits dd { margin: 0; }

.project-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 72px);
}

/* Row of still frames under a film */
.stills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stills a { display: block; overflow: hidden; border-radius: var(--radius); }
.stills img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s; }
.stills a:hover img { transform: scale(1.04); }

/* Photo gallery (masonry-style columns) */
.gallery { columns: 3 260px; column-gap: 12px; }
.gallery a {
  display: block;
  margin-bottom: 12px;
  break-inside: avoid;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}
.gallery img { width: 100%; transition: transform 0.6s, opacity 0.3s; }
.gallery a:hover img { transform: scale(1.03); }

.credits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px 28px;
  margin: 0;
}

.next-project {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  text-decoration: none;
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
.next-project .next-title { font-family: var(--font-display); font-size: clamp(2.5rem, 7vw, 5.5rem); line-height: 1; transition: color 0.2s; }
.next-project .next-arrow { font-size: clamp(2rem, 5vw, 4rem); line-height: 1; transition: transform 0.3s; }
.next-project:hover .next-title { color: var(--accent); }
.next-project:hover .next-arrow { transform: translateX(8px); }


/* ---------------------------------------------------------
   12. SERVICES PAGE
   --------------------------------------------------------- */
.packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.package {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.package--featured { border-color: var(--accent); }
.package-badge {
  position: absolute;
  top: -12px;
  left: clamp(26px, 3vw, 40px);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.package h2 { font-size: clamp(2rem, 3vw, 2.5rem); margin-bottom: 0.3em; }
.package-desc { color: var(--muted); }
.price { margin: 1.5rem 0 0; font-family: var(--font-display); font-size: 3.25rem; line-height: 1; }
.price small {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.includes { list-style: none; margin: 1.75rem 0 2rem; padding: 0; }
.includes li { display: flex; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.includes li::before { content: "✓"; color: var(--accent); flex: none; }
.package .btn { margin-top: auto; align-self: flex-start; }

.addons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.addon { background: var(--bg); padding: 24px; }
.addon h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 0.4em; }
.addon p { color: var(--muted); font-size: 0.9375rem; margin-bottom: 0.8em; }
.addon .service-price { color: var(--text); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.step-num { display: block; font-family: var(--font-display); font-size: 3.5rem; line-height: 1; color: var(--accent); margin-bottom: 12px; }
.steps h3 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.4em; }
.steps p { color: var(--muted); font-size: 0.9375rem; }

/* FAQ (uses <details>, so it opens and closes with no JavaScript) */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); max-width: 65ch; padding-bottom: 22px; margin: 0; }


/* ---------------------------------------------------------
   13. ABOUT PAGE & TESTIMONIALS
   --------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about-photo figcaption { margin-top: 12px; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.facts h2 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1em; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

.testimonials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  margin: 0;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.testimonial blockquote { margin: 0; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.25; }
.testimonial figcaption { font-size: 0.875rem; color: var(--muted); }
.testimonial figcaption strong { display: block; color: var(--text); font-weight: 600; }


/* ---------------------------------------------------------
   14. CONTACT FORM
   --------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field .optional { text-transform: none; letter-spacing: 0; opacity: 0.7; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(132, 212, 127, 0.25);
}
.form-note { font-size: 0.875rem; color: var(--muted); }
.form .btn { justify-self: start; }

.contact-aside { display: grid; gap: 32px; padding-top: 4px; }
.contact-aside .label { margin-bottom: 0.5rem; }
.contact-aside a { text-decoration: none; }
.contact-aside a:hover { color: var(--accent); }
.contact-aside ol { margin: 0; padding-left: 1.2em; color: var(--muted); display: grid; gap: 6px; }


/* ---------------------------------------------------------
   15. LIGHTBOX (pop-up viewer made by js/main.js)
   --------------------------------------------------------- */
.lightbox {
  width: min(1200px, 92vw);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.92); }
.lightbox-media video,
.lightbox-media img {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: #000;
}
.lightbox-media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.lightbox-close {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--text); color: var(--bg); }


/* ---------------------------------------------------------
   16. SMALLER SCREENS
   --------------------------------------------------------- */
/* Tablets */
@media (max-width: 960px) {
  .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .packages, .testimonials { grid-template-columns: 1fr; max-width: 640px; }
  .addons, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-head, .project-body, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .service-row { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .service-desc { grid-column: 2 / -1; }
}

/* Phones */
@media (max-width: 760px) {
  /* Hamburger button */
  .nav-toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    cursor: pointer;
  }
  .nav-toggle-bar { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform 0.3s; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  /* Full-screen menu */
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    padding: var(--gutter);
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) { font-family: var(--font-display); font-size: 3rem; line-height: 1.1; color: var(--text); }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--accent); }
  .site-nav .btn { margin-top: 20px; }
  body.nav-open { overflow: hidden; }

  .cards, .cards--3 { grid-template-columns: 1fr; }
  .form-row, .meta-list, .facts { grid-template-columns: 1fr; }
  .stills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .addons, .steps { grid-template-columns: 1fr; }
  .wide-image { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .service-row { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .service-num { display: none; }
  .service-desc { grid-column: 1 / -1; }
  .hero-footer .label:last-child { display: none; }
}


/* ---------------------------------------------------------
   17. "WHO I WORK WITH" DOORS & MONTHLY RETAINERS
   --------------------------------------------------------- */
.section-intro { max-width: 40ch; margin: 0; color: var(--muted); }

.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); }
.audience {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.audience:hover { border-color: var(--accent); background: var(--surface-2); }
.audience-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.audience-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.audience:hover .audience-media img { transform: scale(1.035); }
.audience-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3vw, 36px); }
.audience-body h3 { font-size: clamp(1.75rem, 2.3vw, 2.25rem); }
.audience-body p:not(.label) { color: var(--muted); margin-bottom: 1.75rem; }
.audience-body .link-arrow { margin-top: auto; }

/* "Quoted per project" line on the services page */
.price-note {
  margin: 1.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.retainer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.retainer .includes { margin-bottom: 0; }
.retainer-note { margin-top: 1.5rem; font-size: 0.9375rem; color: var(--muted); }
.retainer .btn { margin-top: 1.75rem; }

@media (max-width: 960px) {
  .retainer { grid-template-columns: 1fr; }
  .audiences { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 760px) {
  .audiences { grid-template-columns: 1fr; }
}


/* ---------------------------------------------------------
   18. YOUTUBE VIDEOS
   --------------------------------------------------------- */
/* Home page background video (a muted, looping YouTube player) */
.hero-video--yt {
  overflow: hidden;
  container-type: size;
  background: #000 center / cover no-repeat;
  pointer-events: none;
}
.hero-video--yt iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* The film covers the whole hero (like object-fit: cover) at its natural
     size. The player is 200px taller than the film, so YouTube puts its title
     bar and logo in black strips above and below the film, and those strips
     sit just outside the hero where nobody sees them. */
  width: max(100cqw, 177.78cqh);
  height: calc(max(100cqh, 56.25cqw) + 200px);
  max-width: none; /* lets the player be wider than the screen when needed */
  transform: translate(-50%, -50%);
  border: 0;
  opacity: 0;
  transition: opacity 1s ease 1.5s;
}
.hero-video--yt.is-loaded iframe { opacity: 1; }

/* Click-to-play player on project pages */
.player--facade { display: block; cursor: pointer; }
.player--facade img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s, opacity 0.3s; }
.player--facade:hover img { transform: scale(1.02); opacity: 0.85; }
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(64px, 8vw, 96px);
  aspect-ratio: 1;
  padding-left: 0.15em;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
  transition: transform 0.3s, background-color 0.2s;
}
.player--facade:hover .play-btn { background: var(--text); transform: translate(-50%, -50%) scale(1.08); }

/* Facts in one row under the video */
.meta-list--row { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* Grid of extra videos (opens each in the pop-up player) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 36px) clamp(12px, 2vw, 20px);
}
.video-thumb { display: block; text-decoration: none; }
.video-thumb-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.video-thumb-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.video-thumb:hover .video-thumb-media img { transform: scale(1.04); }
.video-thumb-media::after {
  content: "▶";
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(12, 12, 11, 0.75);
  font-size: 0.75rem;
}
.video-thumb-title { margin: 14px 0 4px; font-weight: 500; line-height: 1.35; transition: color 0.2s; }
.video-thumb:hover .video-thumb-title { color: var(--accent); }
.video-thumb .card-info { text-align: left; white-space: normal; }

@media (max-width: 960px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .video-grid { grid-template-columns: 1fr; }
}


/* ---------------------------------------------------------
   19. VERTICAL VIDEOS (REELS) & POP-UP SIZING
   --------------------------------------------------------- */
/* A grid of tall 9:16 videos, like an Instagram grid.
   6 across on big screens, 3 on medium, 2 on phones, so 6 videos
   always fill whole rows. */
.reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 16px);
}
@media (min-width: 1100px) {
  .reels { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.reel .card-media { aspect-ratio: 9 / 16; }

/* The pop-up keeps tall videos and photos their own shape, centred */
.lightbox-media { display: flex; justify-content: center; }
.lightbox-media video,
.lightbox-media img { width: auto; max-width: 100%; }

@media (max-width: 760px) {
  .reels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Four tall videos: 4 across, or 2 across on phones */
.reels--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1000px; }
@media (min-width: 1100px) {
  .reels--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .reels--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
