/* =====================================================================
   REMIFLICKZ — SHARED STYLES
   Change the look of the whole site from the variables below.
   ===================================================================== */

:root {
  /* ---- Colors ---- */
  --bg:        #ffffff;               /* page background (white) */
  --bg-2:      #f5f5f3;               /* alternate sections */
  --surface:   #f1f1ef;               /* cards, form */
  --text:      #0a0a0a;               /* main text */
  --muted:     rgba(10, 10, 10, .64);
  --faint:     rgba(10, 10, 10, .12); /* thin lines */
  --line:      rgba(10, 10, 10, .28); /* outlines on buttons and inputs */
  --tint:      rgba(10, 10, 10, .05); /* hover backgrounds */

  --accent:    #DAE1D5;               /* accent: used on the dark header, hero and footer */
  --accent-rgb: 218, 225, 213;        /* same color as R, G, B (soft glows) */
  --accent-hover: #eef2ea;
  --highlight: #7f8a78;               /* highlighted word in headings on white (deeper shade of the accent so it stays readable) */

  --btn-bg:    #0a0a0a;               /* main buttons on white sections */
  --btn-ink:   #ffffff;
  --btn-hover: #2b2b2b;

  --rec:       #E8382E;               /* REC red: cursor and recording dots */
  --rec-rgb:   232, 56, 46;
  --focus:     #0a0a0a;               /* keyboard focus ring */
  --error:     #c42b22;

  /* ---- Fonts ---- (also update the Google Fonts <link> in each page) */
  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif:   "Cormorant Garamond", "Georgia", serif;

  /* ---- Layout ---- */
  --gutter:  clamp(16px, 4vw, 48px);
  --max:     1320px;
  --radius:  16px;
  --header-h: 76px;
  --ease:    cubic-bezier(.2, .7, .2, 1);
}

/* Dark areas: the hero once a video is playing, the media viewer, text on top of images */
.hero.has-video, .lightbox, .poster-info, .masonry-item figcaption {
  --bg:        #0a0a0a;
  --bg-2:      #111111;
  --surface:   #171717;
  --text:      #f4f1ea;
  --muted:     rgba(244, 241, 234, .7);
  --faint:     rgba(244, 241, 234, .14);
  --line:      rgba(244, 241, 234, .45);
  --tint:      rgba(244, 241, 234, .08);
  --highlight: var(--accent);
  --btn-bg:    var(--accent);
  --btn-ink:   #0a0a0a;
  --btn-hover: var(--accent-hover);
  --focus:     var(--accent);
  color: var(--text);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
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;
  animation: page-in .5s var(--ease) both;
}
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
html.is-leaving body { opacity: 0; transition: opacity .22s ease; }

img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 10vw, 150px); }
.section--tight { padding-block: clamp(56px, 7vw, 100px); }
.section--alt { background: var(--bg-2); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  color: var(--highlight);        /* every big heading is one solid green */
  font-weight: 400;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .01em;
  font-size: clamp(2.5rem, 6.4vw, 5.75rem);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.display--xl { font-size: clamp(1.15rem, 2.2vw, 1.9rem); line-height: 1; letter-spacing: .06em; white-space: nowrap; }  /* hero headline: small, one line, so the video is the star */
.display--md { font-size: clamp(2rem, 4.2vw, 3.6rem); }
.accent { color: var(--highlight); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--font-body); font-size: .75rem; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); flex: none;
}
@media (max-width: 480px) { .eyebrow { letter-spacing: .2em; font-size: .7rem; } }
.eyebrow--live::before { animation: rec-pulse 1.6s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(var(--rec-rgb), .6); }
@keyframes rec-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(var(--rec-rgb), .55); }
  50%      { opacity: .45; box-shadow: 0 0 0 6px rgba(var(--rec-rgb), 0); }
}

.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 500; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head .display { max-width: 16ch; }
.text-link {
  font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  border-bottom: 1px solid var(--faint); padding-bottom: 4px; transition: color .2s, border-color .2s;
  display: inline-flex; min-height: 44px; align-items: center;
}
.text-link:hover { color: var(--highlight); border-color: var(--highlight); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 28px; border-radius: 999px;
  font-size: .8rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn--primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn--primary:hover { background: var(--btn-hover); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line); color: var(--text); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--text); background: var(--tint); transform: translateY(-2px); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .72rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.play-icon { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ---------- Image treatment: soft vignette (no film grain) ---------- */
.fx { position: relative; overflow: hidden; isolation: isolate; }
.fx > img, .fx > video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .6s var(--ease); filter: brightness(.88) saturate(.95); }
.fx::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%);
  opacity: .9;
  mix-blend-mode: normal;
}
.fx::after { background-blend-mode: normal; }
.fx--grain-soft::after { opacity: .55; }
.zoomable:hover .fx > img, .zoomable:focus-visible .fx > img,
.fx.zoomable:hover > img, .fx.zoomable:focus-visible > img { transform: scale(1.06); filter: brightness(1.05) saturate(1.05); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .35s, backdrop-filter .35s, border-color .35s;
  border-bottom: 1px solid transparent;
  background: var(--bg);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-color: var(--faint);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.logo img { width: clamp(132px, 14vw, 190px); height: auto; }
/* The logo file is a white wordmark. On the white site it is shown black, and the REC dot is redrawn in red on top. */
.logo-mark { position: relative; display: inline-block; line-height: 0; }
.logo-mark img { filter: brightness(0); }
.logo-mark::after { content: ""; position: absolute; left: 94.9%; top: 5.3%; width: 3.95%; aspect-ratio: 1; border-radius: 50%; background: var(--rec); }
.logo-text {
  font-family: var(--font-body); font-weight: 900; font-size: 1.6rem; letter-spacing: -.03em; text-transform: lowercase; position: relative; padding-right: 14px;
}
.logo-text::after { content: ""; position: absolute; right: 0; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--rec); }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 12px; min-height: 44px;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rec); }
.socials { display: flex; gap: 4px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); transition: color .2s, background .2s; }
.socials a:hover { color: var(--text); background: var(--tint); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 50%; position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-toggle span:nth-child(3) { top: 29px; }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1099px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: block; z-index: 2; }
  .main-nav {
    position: fixed; inset: 0; z-index: 1; margin: 0;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 36px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
    overflow-y: auto;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  /* a blurred header would trap the fixed menu inside it, so drop the blur while the menu is open */
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; transition: none; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 11vw, 3.6rem); letter-spacing: .02em; color: var(--text); padding: 4px 0; }
  .nav-links a[aria-current="page"]::before { width: 12px; height: 12px; }
  .logo { position: relative; z-index: 2; }
  .nav-open { overflow: hidden; }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { border-top: 1px solid var(--faint); padding-block: clamp(64px, 8vw, 110px) 32px; background: var(--bg); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.footer-logo .logo-mark { width: min(100%, 420px); }
.footer-logo img { width: 100%; height: auto; }
.footer-logo .logo-text { font-size: clamp(2.6rem, 8vw, 4.5rem); padding-right: 26px; }
.footer-logo .logo-text::after { width: 16px; height: 16px; top: 10px; }
.footer-motto { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.4rem); margin-top: 18px; color: var(--text); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 24px; }
.footer-nav a { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.footer-nav a:hover { color: var(--highlight); }
.footer-socials { justify-content: flex-end; margin-top: 12px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--faint); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: .85rem; color: var(--muted); }
.footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-bottom a:hover { color: var(--highlight); }
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-nav, .footer-socials { justify-content: flex-start; }
}

/* =====================================================================
   HOME — HERO
   ===================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; display: flex; align-items: flex-end; overflow: hidden; background: var(--bg); }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { display: none; }
.hero.has-video .hero-media::after {
  display: block;
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10, 10, 10, .9) 0%, rgba(10, 10, 10, .35) 25%, rgba(10, 10, 10, 0) 50%, rgba(10, 10, 10, .3) 100%),
    radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, .55) 100%);
}
.hero-content { position: relative; z-index: 2; padding-bottom: clamp(88px, 12vh, 140px); }
.hero h1 { margin-bottom: 24px; }
.hero h1 span { display: inline; }
.hero .lead { color: rgba(244, 241, 234, .82); margin-bottom: 32px; }
.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 44px;
  font-size: .68rem; font-weight: 700; letter-spacing: .32em; color: var(--muted);
}
.scroll-cue::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--text), transparent); transform-origin: top; animation: scroll-line 2s var(--ease) infinite; }
@keyframes scroll-line { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.video-toggle {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 24px;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(244, 241, 234, .4); background: rgba(10, 10, 10, .35); backdrop-filter: blur(6px);
}
.video-toggle:hover { border-color: var(--text); }
.video-toggle svg { width: 16px; height: 16px; fill: var(--text); }
@media (max-width: 560px) { .scroll-cue { display: none; } .hero .btn-row .btn { flex: 1 1 100%; } }

/* =====================================================================
   HOME — TRUSTED BY
   ===================================================================== */
.trusted { padding-block: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--faint); }
.trusted .eyebrow { display: flex; justify-content: center; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: clamp(48px, 7vw, 96px); padding-right: clamp(48px, 7vw, 96px); }
@keyframes marquee { to { transform: translateX(-50%); } }
.brand-item { display: inline-flex; align-items: center; min-height: 64px; color: var(--muted); transition: color .3s; white-space: nowrap; }
.brand-item img { height: 72px; width: auto; max-width: 150px; object-fit: contain; transition: transform .35s var(--ease); }
.brand-item:hover img, .brand-item:focus-visible img { transform: scale(1.06); }
.brand-item img.is-round { border-radius: 0; }   /* logos float with no box or circle */
.brand-item img.is-boxed { border-radius: 12px; }   /* logos that keep their white box (box: true in content.js) */
.brand-item:hover, .brand-item:focus-visible { color: var(--text); }
.brand-item.is-missing { display: none; }   /* no logo file yet: hide it completely */
/* Black & white logos (turned on with logoStyle: "bw" in content.js); full color on hover */
.marquee.is-bw .brand-item img { filter: grayscale(1) contrast(1.1); transition: filter .35s, transform .35s var(--ease); }
.marquee.is-bw .brand-item:hover img, .marquee.is-bw .brand-item:focus-visible img { filter: none; }
/* Swipeable logo row (script.js → swipeLogos) and the "See all" grid */
.marquee.is-swipe { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; }
.marquee.is-swipe::-webkit-scrollbar { display: none; }
.marquee.is-swipe.is-dragging { cursor: grabbing; user-select: none; }
.marquee.is-swipe .marquee-track { animation: none; }
.logos-more { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: clamp(20px, 3vw, 32px); }
.logos-hint { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.logos-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px clamp(32px, 5vw, 64px); margin-top: clamp(20px, 3vw, 32px); }
.logos-grid[hidden], .marquee[hidden] { display: none; }
.logos-grid.is-bw .brand-item img { filter: grayscale(1) contrast(1.1); transition: filter .35s, transform .35s var(--ease); }
.logos-grid.is-bw .brand-item:hover img { filter: none; }
@media (hover: hover) { .logos-hint { display: none; } }
.brand-name { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: .08em; text-transform: uppercase; }
.award {
  display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center;
  margin: clamp(28px, 4vw, 44px) auto 0; max-width: 60ch;
  font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.35; color: var(--text);
}
.award::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rec); flex: none; }
.award--left { justify-content: flex-start; text-align: left; margin: 0 0 24px; }
.bio .award--left { color: var(--text); font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
.people { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px clamp(28px, 5vw, 64px); margin-top: clamp(40px, 5vw, 64px); }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 120px; }
.person img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; filter: grayscale(1); transition: filter .35s, transform .35s var(--ease); border: 1px solid var(--faint); }
.person:hover img, .person:focus-visible img { filter: none; transform: scale(1.05); }
.person-name { font-weight: 700; font-size: .95rem; }
.person-role { font-size: .68rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* =====================================================================
   FEATURED PROJECT
   ===================================================================== */
.feature { position: relative; display: flex; align-items: flex-end; min-height: min(78vh, 760px); border-radius: calc(var(--radius) + 8px); }
.feature .fx { position: absolute; inset: 0; border-radius: inherit; }
.feature::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; background: linear-gradient(90deg, rgba(10, 10, 10, .92) 0%, rgba(10, 10, 10, .55) 45%, rgba(10, 10, 10, 0) 80%), linear-gradient(to top, rgba(10, 10, 10, .8), transparent 50%); pointer-events: none; }
.feature-body { position: relative; z-index: 3; padding: clamp(28px, 5vw, 72px); max-width: 640px; }
.badge { display: inline-block; background: var(--accent); color: var(--accent-ink); font-size: .68rem; font-weight: 800; letter-spacing: .2em; padding: 6px 12px; border-radius: 6px; text-transform: uppercase; margin-bottom: 18px; }
.meta { font-size: .72rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.feature h3 { margin-bottom: 16px; }
.feature p { color: rgba(244, 241, 234, .82); margin-bottom: 28px; max-width: 48ch; }
@media (max-width: 640px) { .feature { min-height: 560px; } .feature::before { background: linear-gradient(to top, rgba(10, 10, 10, .95) 15%, rgba(10, 10, 10, .4) 70%, rgba(10, 10, 10, .1)); } }

/* =====================================================================
   POSTER CARDS + CAROUSEL
   ===================================================================== */
.poster { position: relative; display: block; width: 100%; text-align: left; border-radius: var(--radius); container-type: inline-size; transition: transform .45s var(--ease); }
.poster .fx { display: block; aspect-ratio: 2 / 3; border-radius: inherit; background: var(--surface); }
.poster-info { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 18px; background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, 0)); border-radius: 0 0 var(--radius) var(--radius); padding-top: 64px; }
.poster-tag { display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--text); background: rgba(10, 10, 10, .55); border: 1px solid rgba(244, 241, 234, .28); padding: 5px 9px; border-radius: 999px; margin-bottom: 10px; backdrop-filter: blur(4px); }
.poster-title {
  display: block; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: 1;
  font-size: clamp(1.1rem, 12cqi, 2.1rem); letter-spacing: .01em;
  overflow-wrap: normal; word-break: keep-all; hyphens: none; text-wrap: balance;
}
.poster:hover, .poster:focus-visible { transform: translateY(-6px); }
.poster:focus-visible { outline-offset: 4px; border-radius: var(--radius); }

.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(190px, 21vw, 290px); gap: clamp(14px, 1.6vw, 22px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 12px var(--gutter) 24px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-end { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; aspect-ratio: 2 / 3; border-radius: var(--radius); border: 1px solid var(--faint); padding: 24px; background: radial-gradient(circle at 30% 30%, rgba(var(--accent-rgb), .18), transparent 60%), var(--surface); transition: border-color .3s, transform .45s var(--ease); }
.rail-end:hover, .rail-end:focus-visible { border-color: var(--text); transform: translateY(-6px); }
.rail-end .display { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.rail-nav { display: flex; gap: 10px; }
.rail-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: border-color .2s, background .2s, opacity .2s; }
.rail-btn:hover { border-color: var(--text); background: var(--tint); }
.rail-btn:disabled { opacity: .3; cursor: default; }
.rail-btn svg { width: 18px; height: 18px; stroke: var(--text); fill: none; stroke-width: 2; }
@media (min-width: 1368px) { .rail { padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); } }

/* =====================================================================
   SERVICES PREVIEW (home) + CTA
   ===================================================================== */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--faint); transition: border-color .3s, transform .45s var(--ease); min-height: 260px; }
.service-card:hover, .service-card:focus-visible { border-color: var(--line); transform: translateY(-6px); }
.service-num { font-family: var(--font-display); color: var(--highlight); font-size: 1.1rem; letter-spacing: .1em; }
.service-card h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1; }
.service-card p { color: var(--muted); }
.service-card .text-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .service-cards { grid-template-columns: 1fr; } .service-card { min-height: 0; } }

.cta { position: relative; text-align: center; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: -20% -10%; background: radial-gradient(ellipse at 50% 60%, rgba(var(--accent-rgb), .16), transparent 60%); pointer-events: none; }
.cta .container { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta .display { margin-bottom: 20px; }
.cta .lead { margin: 0 auto 36px; text-align: center; }

/* =====================================================================
   PAGE INTRO (Portfolio / About / Contact)
   ===================================================================== */
.page-intro { position: relative; display: flex; align-items: flex-end; overflow: hidden; padding-top: calc(var(--header-h) + clamp(56px, 9vw, 120px)); border-bottom: 1px solid var(--faint); }
.page-intro .fx { display: none; }  /* banner image hidden for the all-white look; delete this line to bring it back */
.page-intro .fx > img { filter: brightness(.7); }
.page-intro::after { content: none; }
.page-intro .container { position: relative; z-index: 2; padding-bottom: clamp(40px, 6vw, 72px); }
.page-intro .display { font-size: clamp(3.2rem, 11vw, 9rem); line-height: .9; }
.page-intro .lead, .page-intro .serif-line { margin-top: 18px; }
.serif-line { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: var(--text); }

/* =====================================================================
   PORTFOLIO
   ===================================================================== */
.tabs-bar { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--faint); }
.tabs { display: flex; gap: 8px; padding-block: 12px; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--faint); font-size: .75rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: all .25s; }
.tab:hover { color: var(--text); border-color: var(--line); }
.tab[aria-current="true"] { color: var(--bg); background: var(--text); border-color: var(--text); }
#films, #stills, #stories { scroll-margin-top: calc(var(--header-h) + 80px); }

.stories { display: flex; flex-direction: column; gap: clamp(72px, 10vw, 140px); }
.story { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.story:nth-child(even) .story-media { order: 2; }
.story-media { border-radius: calc(var(--radius) + 4px); aspect-ratio: 4 / 3; }
.story h3 { margin-bottom: 18px; }
.story p { color: var(--muted); margin-bottom: 24px; }
.pull-quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.35; border-left: 2px solid var(--highlight); padding-left: 20px; margin: 0 0 28px; color: var(--text); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story:nth-child(even) .story-media { order: 0; } }

.film-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(14px, 1.8vw, 24px); }
@media (max-width: 520px) { .film-grid { grid-template-columns: repeat(2, 1fr); } .poster-info { padding: 12px; padding-top: 48px; } .poster-tag { font-size: .55rem; letter-spacing: .14em; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--faint); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); transition: all .25s; }
.filter:hover { color: var(--text); border-color: var(--line); }
.filter[aria-pressed="true"] { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.masonry { columns: 3 300px; column-gap: 16px; }
.masonry-item { break-inside: avoid; margin-bottom: 16px; display: block; width: 100%; border-radius: 12px; }
.masonry-item .fx { border-radius: inherit; background: var(--surface); }
.masonry-item[hidden] { display: none; }
.masonry-item figcaption { position: absolute; left: 14px; bottom: 12px; z-index: 2; font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.masonry-item:hover figcaption, .masonry-item:focus-visible figcaption { opacity: 1; transform: none; }

/* =====================================================================
   LIGHTBOX (video + photo)
   ===================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 72px clamp(12px, 5vw, 80px); background: rgba(5, 5, 5, .94); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-stage { width: 100%; max-width: 1280px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lightbox-video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.lightbox-video iframe, .lightbox-video video { width: 100%; height: 100%; border: 0; }
.lightbox-img { max-height: calc(100vh - 180px); max-height: calc(100svh - 180px); width: auto; border-radius: 8px; touch-action: pan-y; user-select: none; }
.lightbox-caption { font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; color: var(--muted); text-align: center; }
.lightbox-soon { display: grid; place-items: center; text-align: center; gap: 10px; padding: 24px; height: 100%; background: radial-gradient(circle at 50% 40%, rgba(var(--accent-rgb), .16), transparent 60%), #0d0d0d; }
.lightbox-soon .display { font-size: clamp(1.8rem, 4vw, 3rem); }
.lightbox-soon p { color: var(--muted); max-width: 40ch; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(244, 241, 234, .08); border: 1px solid rgba(244, 241, 234, .2); transition: background .2s, border-color .2s; }
.lb-btn:hover { background: rgba(244, 241, 234, .16); border-color: var(--text); }
.lb-btn svg { width: 20px; height: 20px; stroke: var(--text); stroke-width: 2; fill: none; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: clamp(8px, 2vw, 24px); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(8px, 2vw, 24px); top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 28px; left: 24px; font-size: .75rem; letter-spacing: .24em; color: var(--muted); }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); } }

/* =====================================================================
   ABOUT
   ===================================================================== */
.bio { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.bio-portrait { border-radius: calc(var(--radius) + 4px); aspect-ratio: 4 / 5; }
/* real portrait: show it clean, without the vignette effect */
.bio-portrait::after { display: none; }
.bio-portrait > img { filter: none; object-position: center top; }
.bio-portrait:hover > img { transform: none; }
.bio h2 { margin-bottom: 8px; }
.bio-title { font-size: .75rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--highlight); margin-bottom: 28px; }
.bio p { color: var(--muted); margin-bottom: 18px; max-width: 62ch; }
.bio p:first-of-type { color: var(--text); font-size: 1.15rem; }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; } .bio-portrait { max-width: 480px; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); max-width: 1040px; margin-inline: auto; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); }
.stat { padding: clamp(28px, 4vw, 48px) 16px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--faint); }
.stat-num { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; display: block; }
.stat-num .accent { font-size: .7em; }
.stat-label { font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 10px; display: block; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--faint); } }

.bts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bts .fx { aspect-ratio: 1; border-radius: 12px; }
@media (max-width: 760px) { .bts { grid-template-columns: 1fr 1fr; } }

.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 6vw, 96px); counter-reset: svc; }
.service-row { display: grid; grid-template-columns: 2.4rem 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--faint); }
.service-row .service-num { font-size: 1.4rem; padding-top: 4px; }
.service-row h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.05; margin-bottom: 8px; }
.service-row p { color: var(--muted); }
@media (max-width: 860px) { .service-list { grid-template-columns: 1fr; } }

.testimonials { max-width: 980px; margin-inline: auto; text-align: center; }
.t-stage { display: grid; }
.t-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.t-slide.is-active { opacity: 1; visibility: visible; }
.t-slide blockquote { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.25; margin-bottom: 28px; }
.t-slide blockquote::before { content: "\201C"; display: block; font-size: 1.8em; line-height: .6; color: var(--highlight); margin-bottom: 16px; }
.t-name { font-weight: 700; letter-spacing: .02em; }
.t-company { font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.t-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; }
.t-dots { display: flex; gap: 4px; }
.t-dot { width: 32px; height: 44px; display: grid; place-items: center; }
.t-dot::before { content: ""; width: 24px; height: 3px; border-radius: 3px; background: var(--faint); transition: background .3s; }
.t-dot[aria-current="true"]::before { background: var(--text); }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact-info h2 { margin-bottom: 28px; }
.info-list { display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px; }
.info-label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.info-value { font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere; }
a.info-value { border-bottom: 1px solid var(--faint); transition: color .2s, border-color .2s; }
a.info-value:hover { color: var(--highlight); border-color: var(--highlight); }
.reply-note { font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; margin-top: 28px; color: var(--text); }
.contact-info .socials { margin-left: -10px; }

.form { background: var(--surface); border: 1px solid var(--faint); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 4vw, 48px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field label .opt { text-transform: none; letter-spacing: 0; font-weight: 500; opacity: .8; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 12px;
  background: #ffffff; color: var(--text); border: 1px solid var(--line);
  font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
  color-scheme: light;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%230a0a0a' stroke-width='1.6'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(10, 10, 10, .1); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field-error { font-size: .85rem; color: var(--error); min-height: 0; }
.field-error:empty { display: none; }
.form-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form-status { font-size: .95rem; color: var(--muted); }
.form-status.is-error { color: var(--error); }
.form-success { text-align: center; padding: clamp(32px, 6vw, 64px) 12px; }
.form-success .display { margin: 16px 0 12px; }
.form-success p { color: var(--muted); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-actions .btn { width: 100%; } }

.faq { max-width: 880px; }
.faq-item { border-top: 1px solid var(--faint); }
.faq-item:last-child { border-bottom: 1px solid var(--faint); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; min-height: 44px; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.25rem, 2.4vw, 1.75rem); letter-spacing: .01em; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-body); font-weight: 300; font-size: 1.8rem; color: var(--highlight); transition: transform .3s var(--ease); flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding: 0 0 26px; max-width: 64ch; }

/* =====================================================================
   SCROLL REVEALS (content is visible by default; JS opts in)
   ===================================================================== */
html.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js-reveal .reveal.is-in { opacity: 1; transform: none; }
html.js-reveal .reveal-photo { transform: translateY(40px) scale(.98); }
html.js-reveal .reveal-photo.is-in { transform: none; }

/* =====================================================================
   REC-DOT CUSTOM CURSOR (desktop, fine pointer only)
   ===================================================================== */
.rec-cursor { display: none; }
html.has-rec-cursor, html.has-rec-cursor * { cursor: none !important; }
html.has-rec-cursor input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
html.has-rec-cursor textarea { cursor: text !important; }
html.has-rec-cursor select { cursor: default !important; }
html.has-rec-cursor .rec-cursor {
  display: grid; place-items: center;
  position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--rec); border: 2px solid var(--rec);
  will-change: transform;
  transition: width .22s var(--ease), height .22s var(--ease), margin .22s var(--ease), background-color .22s, opacity .2s;
}
html.has-rec-cursor .rec-cursor.is-hover { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: transparent; }
html.has-rec-cursor .rec-cursor.is-play { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(var(--rec-rgb), .14); }
.rec-cursor-label { font: 800 9px/1 var(--font-body); letter-spacing: .14em; color: var(--rec); opacity: 0; transition: opacity .15s; padding-left: .14em; }
.rec-cursor.is-play .rec-cursor-label { opacity: 1; }
html.has-rec-cursor .rec-cursor.is-hidden { opacity: 0; }

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .eyebrow--live::before { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; }
  .marquee-group { flex-wrap: wrap; justify-content: center; padding: 0; gap: 24px 48px; }
  .marquee-group[aria-hidden="true"] { display: none; }
  html.js-reveal .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   ROWS WITH "VIEW ALL" (Portfolio films + stills)
   ===================================================================== */
.rail-controls { display: flex; align-items: center; gap: 20px; }
.rail-controls .text-link { cursor: pointer; }
.rail-wrap.is-all .rail {
  grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  overflow: visible; scroll-snap-type: none;
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
}
@media (max-width: 520px) { .rail-wrap.is-all .rail { grid-template-columns: repeat(2, 1fr); } }

/* Hover slideshow layers (stacked on top of the cover photo) */
.fx > img.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease, transform .8s var(--ease), filter .6s var(--ease); }
.fx > img.slide.on { opacity: 1; }
.album .poster-tag { letter-spacing: .16em; }

/* =====================================================================
   HOME — MIXED-SHAPE PHOTO GRID (tall, wide, square, big)
   ===================================================================== */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 240px); grid-auto-flow: dense; gap: 14px; }
.mosaic-tile { position: relative; margin: 0; border-radius: 14px; overflow: hidden; }
.mosaic-tile .fx { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border-radius: inherit; background: var(--surface); }
.mosaic-tile:nth-child(6n+1), .mosaic-tile:nth-child(6n+5) { grid-row: span 2; }               /* tall */
.mosaic-tile:nth-child(6n+2) { grid-column: span 2; }                                          /* wide */
.mosaic-tile:nth-child(6n+4) { grid-column: span 2; grid-row: span 2; }                        /* big square */
.tile-album {
  position: absolute; left: 50%; top: 50%; z-index: 2; pointer-events: none; text-align: center; max-width: calc(100% - 24px);
  font: 700 .7rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: #fff;
  background: transparent; border: 1px solid rgba(255, 255, 255, .75); padding: 8px 12px; border-radius: 999px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
  opacity: 0; transform: translate(-50%, -40%); transition: opacity .3s, transform .3s;
}
.mosaic-tile:hover .tile-album, .mosaic-tile:focus-within .tile-album { opacity: 1; transform: translate(-50%, -50%); }
@media (hover: none) { .tile-album { opacity: 1; transform: translate(-50%, -50%); } }
@media (max-width: 700px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; } .tile-album { max-width: calc(100% - 16px); font-size: .56rem; letter-spacing: .12em; padding: 6px 9px; line-height: 1.2; } }

/* =====================================================================
   AUTO-SCROLLING ROWS (Recent work, Films, Stills) — like the logo strip
   ===================================================================== */
.rail.is-marquee {
  display: block; overflow-x: auto; overflow-y: hidden; padding: 12px 0 24px; scroll-snap-type: none; scrollbar-width: none; cursor: grab; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.rail-track { display: flex; width: max-content; }
.rail.is-marquee.is-dragging { cursor: grabbing; }
.rail.is-marquee img { -webkit-user-drag: none; pointer-events: none; }
.rail-controls { display: flex; align-items: center; gap: 20px; }
.section-head > .rail-nav, .rail-controls > .rail-nav { display: flex; gap: 10px; }
.rail.is-marquee:hover .rail-track, .rail.is-marquee:focus-within .rail-track { animation-play-state: paused; }
.rail-group { display: flex; gap: clamp(14px, 1.6vw, 22px); padding-right: clamp(14px, 1.6vw, 22px); }
.rail-group > * { flex: none; width: clamp(190px, 21vw, 290px); }
.rail-group .poster:hover, .rail-group .poster:focus-visible { transform: none; }  /* no lift while the row moves */

/* Page banner with a background photo (Portfolio) */
.page-intro--photo {
  min-height: 62vh; min-height: 62svh; border-bottom: 0;
  --text: #f4f1ea; --muted: rgba(244, 241, 234, .78); --highlight: var(--accent); --rec: #E8382E;
  color: var(--text);
}
.page-intro--photo .fx { display: block; position: absolute; inset: 0; }
.page-intro--photo .fx > img { filter: brightness(.82); object-position: 40% 35%; }
.page-intro--photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10, 10, 10, .8) 0%, rgba(10, 10, 10, .35) 50%, rgba(10, 10, 10, .15) 100%); }

/* Portfolio banner: show almost the whole photo, slow zoom in and out */
.page-intro--photo { min-height: min(94vh, 72vw); min-height: min(94svh, 72vw); }
.page-intro--photo .fx > img { object-position: 50% 55%; transform: scale(1.06); transform-origin: 50% 0; will-change: transform; transition: none; }  /* moved by script.js as you scroll */
@keyframes banner-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
@media (max-width: 700px) { .page-intro--photo { min-height: 70svh; } }

/* Portfolio banner photo: show only the top half (faces, smiles and the handshake) */
.page-intro--photo { min-height: min(84vh, 46vw); min-height: min(84svh, 46vw); }
.page-intro--photo .fx > img { object-position: 46% 0%; }
@media (max-width: 700px) { .page-intro--photo { min-height: 62svh; } }

/* Arrows on the left and right edges of each moving row */
.rail-stage { position: relative; }
.rail-side {
  position: absolute; top: 50%; z-index: 5; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--faint); box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
  transition: transform .2s, background .2s;
}
.rail-side:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.rail-side svg { width: 20px; height: 20px; stroke: #0a0a0a; stroke-width: 2.2; fill: none; }
.rail-side--prev { left: clamp(10px, 2vw, 28px); }
.rail-side--next { right: clamp(10px, 2vw, 28px); }
.rail-side-nav[hidden] { display: none; }
@media (max-width: 560px) { .rail-side { width: 42px; height: 42px; } }

/* Album view: all photos of an album in a grid */
.album-view { position: fixed; inset: 0; z-index: 400; background: var(--bg); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.album-view.is-open { opacity: 1; visibility: visible; }
.album-view__bar { position: sticky; top: 0; z-index: 2; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--faint); }
.album-view__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; }
.album-view__head .eyebrow { margin-bottom: 6px; }
.album-view__close { position: static; background: var(--tint); border-color: var(--line); }
.album-view__close svg { stroke: var(--text); }
.album-view__grid { columns: 3 280px; column-gap: 14px; padding-block: 28px 64px; }
.album-view__item { display: block; width: 100%; margin: 0 0 14px; padding: 0; border-radius: 12px; break-inside: avoid; background: var(--surface); }
.album-view__item > img { height: auto; }

/* =====================================================================
   BLACK THEME (theme: "dark" in content.js, or ?theme=dark in the link)
   ===================================================================== */
html.theme-dark {
  --bg: #0a0a0a; --bg-2: #121212; --surface: #181818;
  --text: #f4f1ea; --muted: rgba(244, 241, 234, .7); --faint: rgba(244, 241, 234, .14);
  --line: rgba(244, 241, 234, .4); --tint: rgba(244, 241, 234, .08);
  --highlight: var(--accent);
  --btn-bg: var(--accent); --btn-ink: #0a0a0a; --btn-hover: var(--accent-hover);
  --focus: var(--accent);
  color-scheme: dark;
}
html.theme-dark .site-header.is-scrolled,
html.theme-dark .tabs-bar,
html.theme-dark .album-view__bar { background: rgba(10, 10, 10, .88); }
html.theme-dark .logo-mark img { filter: none; }           /* the logo file is already white with a red dot */
html.theme-dark .logo-mark::after { display: none; }
html.theme-dark .field input, html.theme-dark .field select, html.theme-dark .field textarea { background: #0e0e0e; color-scheme: dark; }
html.theme-dark .field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23f4f1ea' stroke-width='1.6'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; }
html.theme-dark .field input:focus, html.theme-dark .field select:focus, html.theme-dark .field textarea:focus { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25); }
html.theme-dark .rail-side { background: rgba(10, 10, 10, .75); border-color: rgba(244, 241, 234, .3); }
html.theme-dark .rail-side:hover { background: rgba(10, 10, 10, .95); }
html.theme-dark .rail-side svg { stroke: #f4f1ea; }
html.theme-dark .album-view__close { background: rgba(244, 241, 234, .08); }
html.theme-dark .page-intro--photo { --bg: #0a0a0a; }

/* Header floating over a photo banner (Portfolio) until you scroll past it */
html:not(.nav-open) .site-header.has-photo-intro:not(.is-scrolled) {
  background: linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0));
  border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  --text: #f4f1ea; --muted: rgba(244, 241, 234, .82); --tint: rgba(244, 241, 234, .1);
  --btn-bg: var(--accent); --btn-ink: #0a0a0a; --btn-hover: var(--accent-hover); --focus: var(--accent);
}
html:not(.nav-open) .site-header.has-photo-intro:not(.is-scrolled) .logo-mark img { filter: none; }
html:not(.nav-open) .site-header.has-photo-intro:not(.is-scrolled) .logo-mark::after { display: none; }
.page-intro--photo { padding-top: var(--header-h); }

/* Home: header floats see-through over the hero until you scroll past it */
html:not(.nav-open) .site-header.has-hero-intro:not(.is-scrolled) {
  background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
}

/* Home photo grid: fixed spots (home: 1-7 in content.js); 6 = big square bottom right */
.mosaic {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, clamp(150px, 17vw, 240px));
  grid-auto-rows: clamp(150px, 17vw, 240px);
  grid-template-areas: "a b b c" "a d f f" "g e f f" "h i i j" "h k k j";
}
.mosaic-tile { grid-row: auto !important; grid-column: auto !important; }
.mosaic-tile:nth-child(1) { grid-area: a !important; }
.mosaic-tile:nth-child(2) { grid-area: b !important; }
.mosaic-tile:nth-child(3) { grid-area: c !important; }
.mosaic-tile:nth-child(4) { grid-area: d !important; }
.mosaic-tile:nth-child(5) { grid-area: e !important; }
.mosaic-tile:nth-child(6) { grid-area: f !important; }
.mosaic-tile:nth-child(7) { grid-area: g !important; }
.mosaic-tile:nth-child(8) { grid-area: h !important; }
.mosaic-tile:nth-child(9) { grid-area: i !important; }
.mosaic-tile:nth-child(10) { grid-area: j !important; }
.mosaic-tile:nth-child(11) { grid-area: k !important; }
@media (max-width: 700px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 150px; grid-template-areas: "a b" "a c" "d e" "f f" "f f" "g g" "h i" "h j" "k k"; }
}

/* About opens straight into the bio: leave room for the fixed header */
.about-first { padding-top: calc(var(--header-h) + clamp(32px, 5vw, 64px)); }

/* Contact: the form sits on its own, right under the page title */
.contact-single { max-width: 860px; }
.contact-single .eyebrow { margin-bottom: 18px; }

/* Home tile that plays a photo-burst clip (video: in content.js): fills the tile */
.mosaic-tile.is-video .fx { background: #000; }
.mosaic-tile.is-video .fx > video { object-fit: cover; filter: none; }

/* Hide the phone's own big play button in the middle of the hero video;
   the small play/pause button in the bottom-right corner is the only control. */
.hero video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero video::-webkit-media-controls-overlay-play-button { display: none !important; }
.hero video::-webkit-media-controls { display: none !important; }
.hero video { pointer-events: none; }


/* Location under "Book a shoot" on the Home video */
.hero-loc-wrap { position: relative; display: inline-flex; }
.hero-loc { position: absolute; top: calc(100% + 12px); left: 0; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(244, 241, 234, .9); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.hero-loc svg { width: 14px; height: 14px; fill: none; stroke: #E8382E; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Film cards: red play button, bottom right */
.poster-play { position: absolute; right: 14px; bottom: 18px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: #E8382E; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); transition: transform .3s var(--ease), background .3s; }
.poster-play svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }
.poster:hover .poster-play, .poster:focus-visible .poster-play { transform: scale(1.12); background: #ff4a3f; }
.poster .poster-info { padding-right: 70px; }
@container (max-width: 180px) { .poster-play { width: 36px; height: 36px; right: 10px; bottom: 14px; } .poster-play svg { width: 16px; height: 16px; } .poster .poster-info { padding-right: 54px; } }

/* Hide the floating Netlify badge (credit is in the footer instead) */
#nl-badge-frame, iframe[id^="nl-badge"] { display: none !important; }
