/* =========================================================
   Tokens
   ========================================================= */
:root {
  /* The palette: 4 colours. Everything else is a tint of these. */
  --bg: #01080c;      /* black: page, header, footer, dark text on gold */
  --accent: #ffb000;  /* golden hour */
  --text: #f3f3f3;    /* white: headings, main text */
  --soft: #c9c9c9;    /* grey: body text, secondary text */

  /* Derived (not new colours) */
  --ink: var(--bg);
  --accent-dim: #9a6a00;               /* darker gold, gradients only */
  --olive: #4a3300;                    /* darkest gold, gradients only */
  --line: rgba(255, 176, 0, .35);     /* gold hairline */
  --field: rgba(201, 201, 201, .35);   /* grey hairline */

  --font: "Krona One", "Arial Black", system-ui, sans-serif;
  --script: "Yellowtail", cursive;

  --header-h: 84px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
.site-header { view-transition-name: header; }

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--soft);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { flex: 1; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
em { font-style: normal; color: var(--accent); }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.accent { color: var(--accent); }
.up { text-transform: uppercase; }

/* Film grain over everything */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 90;
  opacity: .075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .8s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-2%, 3%); } 50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); } 100% { transform: translate(0, 0); }
}

/* Entrance animations */
.fade { animation: rise .9s var(--ease) both; }
.fade:nth-child(2) { animation-delay: .08s; } .fade:nth-child(3) { animation-delay: .16s; } .fade:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  max-width: 2400px; /* full width like the reference; capped only on ultra-wide screens */
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 16px; margin-right: auto; min-width: 0; }
.brand-avatar {
  flex: none; width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(201, 201, 201, .12) center/cover no-repeat;
  display: grid; place-items: center;
  color: var(--accent); font-size: .9rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-size: 1.25rem; color: var(--accent); text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-role { font-size: .82rem; color: var(--text); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav > a:not(.cta), .dropdown-toggle {
  font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .2s;
}
.nav > a:not(.cta):hover, .dropdown-toggle:hover, .nav .active, .dropdown.active > .dropdown-toggle { color: var(--accent); }
.dropdown-toggle svg { width: 10px; height: 7px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .25s; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 18px); left: -18px;
  min-width: 220px;
  background: var(--ink);
  border-top: 3px solid var(--accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  padding: 10px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -21px; height: 18px; }
.dropdown-menu a { display: block; padding: 10px 20px; font-size: .78rem; color: var(--text); text-transform: uppercase; letter-spacing: .04em; transition: color .2s, background-color .2s; }
.dropdown-menu a:hover, .dropdown-menu a.active { color: var(--accent); background: rgba(255, 176, 0, .05); }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu, .dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown:hover .dropdown-toggle svg, .dropdown.open .dropdown-toggle svg { transform: rotate(180deg); }

.cta {
  background: var(--accent); color: var(--ink);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .02em;
  padding: 11px 16px; line-height: 1.1;
  transition: background-color .2s, transform .2s;
}
.cta:hover { background: var(--text); }
.nav .cta.active { color: var(--ink); box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--accent); }

.menu-toggle { display: none; width: 46px; height: 46px; position: relative; border: 1px solid var(--line); }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--accent); transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 15px; } .menu-toggle span:nth-child(2) { top: 22px; } .menu-toggle span:nth-child(3) { top: 29px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Buttons
   ========================================================= */
.btn-box {
  display: inline-block;
  border: 3px solid var(--soft);
  color: var(--soft);
  padding: .3em .6em;
  font-size: clamp(.8rem, 1vw, 1.2rem); line-height: 1.3; /* grows on big screens (19px at 1920 wide, like the reference) */
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn-box:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.btn-box.filled { background: var(--soft); color: var(--ink); }
.btn-box.filled:hover { background: var(--accent); border-color: var(--accent); }

/* =========================================================
   Info strip (Home)
   ========================================================= */
.strip {
  position: relative; z-index: 2;
  /* three columns spread across the page (like the reference), evenly from edge to edge */
  display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between;
  column-gap: clamp(30px, 6vw, 110px); row-gap: 18px;
  padding: 30px calc(var(--gutter) + clamp(0px, 6vw - 60px, 60px)) 36px; /* extra side room only on big screens */
  max-width: 2400px; margin: 0 auto; width: 100%;
}
.strip div { display: grid; gap: 2px; line-height: 1.4; white-space: nowrap; }
.strip small { font-size: clamp(.62rem, .8vw, .96rem); text-transform: uppercase; color: var(--accent); letter-spacing: .02em; }
.strip a, .strip span { font-size: clamp(.86rem, 1vw, 1.2rem); color: var(--text); }
.strip a:hover { color: var(--accent); }

/* =========================================================
   HOME
   ========================================================= */
.home { position: relative; display: flex; flex-direction: column; min-height: calc(100svh - var(--header-h)); isolation: isolate; overflow: hidden; }
.home-bg { position: absolute; inset: 0; z-index: -1; background: #0b0f10; }
.home-bg video, .home-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(6px) brightness(.42) saturate(.9); transform: scale(1.06); }
.home-bg.page-bg { position: fixed; z-index: -1; }
.home-bg .bg-video { opacity: 0; transition: opacity 1.2s ease; }
.home-bg .bg-video.on { opacity: 1; }
.home-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1, 8, 12, .2), rgba(1, 8, 12, .55) 70%, rgba(1, 8, 12, .9)); }
.home-bg-ph {
  position: absolute; inset: -10%;
  background:
    radial-gradient(40% 50% at 30% 40%, rgba(120, 40, 30, .55), transparent 70%),
    radial-gradient(35% 45% at 70% 60%, rgba(160, 50, 40, .45), transparent 70%),
    radial-gradient(30% 40% at 55% 20%, rgba(70, 90, 110, .5), transparent 70%),
    radial-gradient(50% 60% at 85% 85%, rgba(30, 60, 70, .6), transparent 70%),
    #121517;
  filter: blur(30px);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(3%, -2%, 0) scale(1.06); } }

/* Portrait + intro sit together as one block, centred on the page, with equal
   space above (to the header) and below (to the contact strip, whose own 30px
   top padding is why the bottom padding here is 30px smaller). */
.home-hero {
  flex: 1;
  position: relative;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(32px, 4.5vw, 60px);
  padding: 40px calc(var(--gutter) + 50px) 10px;
}
.home-photo {
  flex: none;
  width: clamp(260px, 28vw, 580px);
  animation: rise 1s var(--ease) both;
}
.home-photo img {
  width: 100%; height: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  /* thin gold frame set slightly away from the photo, like a viewfinder */
  outline: 1px solid var(--accent);
  outline-offset: 10px;
}
.home-photo { margin: 11px; } /* room for the frame, so spacing stays symmetric */
.home-copy { display: grid; gap: 14px; flex: 0 1 clamp(560px, 48vw, 1000px); min-width: 0; }
.side-socials { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); }

/* No portrait: the intro itself is centred, text and all. */
.home-hero.no-photo { flex-direction: column; text-align: center; }
.home-hero.no-photo .home-photo { display: none; }
.home-hero.no-photo .home-copy { flex: none; width: 100%; max-width: 640px; justify-items: center; }
.home-hero.no-photo .hi { justify-content: center; }
.home-hero.no-photo .home-bio { margin-left: auto; margin-right: auto; }
.home-hero.no-photo .home-btns { justify-content: center; }
/* Sizes grow with the screen; at 1920 wide they match the reference (69 / 134 / 35 / 19 px). */
.hi { font-size: clamp(2rem, 3.6vw, 4.4rem); font-weight: 400; color: var(--text); line-height: 1.1; letter-spacing: -.02em; display: flex; align-items: baseline; gap: .25em; flex-wrap: wrap; }
.script {
  font-family: var(--script);
  font-size: 1.85em;
  line-height: 1;
  letter-spacing: 0;
  background: linear-gradient(170deg, var(--text) 15%, var(--soft) 60%, rgba(201, 201, 201, .75));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* Extra padding gives the swashes room so the gradient doesn't clip them;
     negative margins cancel it out so the line spacing stays the same. */
  display: inline-block;
  padding: .3em .2em .35em .25em;
  margin: -.3em -.12em -.35em -.17em;
}
.tagline { font-size: clamp(1rem, 1.8vw, 2.2rem); color: var(--text); line-height: 1.4; margin-top: -2px; }
.home-bio { font-size: clamp(.8rem, 1vw, 1.2rem); line-height: 2.1; color: var(--soft); margin-top: 2em; max-width: 54ch; }
.home-btns { display: flex; flex-wrap: wrap; gap: 14px clamp(24px, 2.2vw, 44px); margin-top: clamp(36px, 2.6vw, 54px); align-items: center; }

.side-socials { display: grid; gap: 14px; }
.side-socials a, .social-row a {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  color: var(--soft);
  transition: color .2s, transform .2s var(--ease);
}
.side-socials a:hover, .social-row a:hover { color: var(--accent); transform: scale(1.12); }
@media (min-width: 1600px) {
  .side-socials { gap: 18px; }
  .side-socials a { width: 38px; height: 38px; }
  .side-socials svg { width: 22px !important; height: 22px !important; }
}
.side-socials svg, .social-row svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   EDITOR
   ========================================================= */
.editor-intro { padding: clamp(60px, 12vh, 130px) var(--gutter) clamp(60px, 10vh, 120px); text-align: center; }
.editor-intro h1 { font-weight: 400; font-size: clamp(.82rem, .9vw, 1.15rem); line-height: 1.6; color: var(--text); max-width: 72ch; margin: 0 auto; }

/* Full width like the reference site: only the gutter at the sides (capped for ultra-wide screens). */
.work-list { max-width: 2400px; margin: 0 auto; padding: 0 var(--gutter) clamp(100px, 14vw, 180px); display: grid; gap: clamp(70px, 11vw, 150px); }
.work-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); align-items: center; gap: 0; }
.work-item.flip { grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); }
.work-text {
  container-type: inline-size;
  display: grid; justify-items: end; text-align: right; gap: 16px;
  padding-right: clamp(14px, 2vw, 26px);
  min-width: 0;
  position: relative; z-index: 1;
}
.work-item.flip .work-text { order: 2; justify-items: start; text-align: left; padding: 0 0 0 clamp(14px, 2vw, 26px); }
.work-title {
  font-weight: 400; text-transform: uppercase;
  line-height: .86; letter-spacing: -.045em;
  font-size: min(10rem, calc(100cqi / (var(--chars, 8) * .9)));
  background: linear-gradient(90deg, var(--olive) 0%, var(--accent-dim) 30%, var(--accent) 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .05em;
}
.work-item.flip .work-title { background-image: linear-gradient(90deg, var(--accent) 25%, var(--accent-dim) 70%, var(--olive) 100%); }
.work-name { font-size: .78rem; color: var(--text); line-height: 1.5; }
.work-name .sep { color: var(--accent); margin: 0 .5em; }
/* Laurels + "streaming on" badge under the roles (Editor / DOP pages) */
.work-extras { display: grid; justify-items: end; gap: 12px; margin-top: 6px; }
/* Laurels come in centred rows of 3 (5 -> 3 + 2, 6 -> 3 + 3). All share one height and keep their own width,
   so wide laurel files and 4:3 ones show their wreaths at the same size. */
.work-extras .laurels { display: grid; justify-items: center; gap: 6px; margin: 0 -10px 0 0; }
.work-extras .laurel-row { display: flex; justify-content: center; align-items: center; gap: 8px; }
.work-extras .laurel { width: auto; height: 66px; }
.work-extras svg.laurel { width: 88px; }
.work-item.flip .work-extras { justify-items: start; }
.work-item.flip .work-extras .laurels { margin: 0 0 0 -10px; }
.roles { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; }
.work-item.flip .roles { justify-content: flex-start; }
.roles .cproj-role { margin-top: 0; } /* outlined role box, shared style with the Colorist page */
.roles .up-tag { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
/* Large screens: details grow with the full-width layout so they don't look tiny next to the big videos */
@media (min-width: 1600px) {
  .work-name { font-size: .95rem; }
  .work-item .cproj-role { font-size: .8rem; padding: 4px 11px; }
  .work-extras .laurel { height: 88px; }
  .work-extras svg.laurel { width: 117px; }
  .media-links .streaming { padding-block: 14px; }
  .media-links .streaming small { font-size: .68rem; }
  .media-links .streaming .logo-text { font-size: 1.25rem; }
  .media-links .streaming svg { width: 14px; height: 14px; }
}

.player { position: relative; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .9); overflow: hidden; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.player-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; filter: brightness(.9); }
.player-poster:hover img { transform: scale(1.035); filter: brightness(1); }
.play {
  position: absolute; left: 18px; bottom: 16px;
  width: 58px; height: 38px;
  background: rgba(1, 15, 21, .85);
  display: grid; place-items: center;
  transition: background-color .2s;
}
.play svg { width: 16px; height: 16px; fill: var(--text); }
.player-poster:hover .play { background: var(--accent); }
.player-poster:hover .play svg { fill: var(--ink); }

.placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(90% 80% at var(--px, 30%) var(--py, 30%), hsla(var(--h, 30), 40%, 26%, .9), transparent 65%),
    linear-gradient(160deg, #141a1c, #050809);
}
.placeholder::before, .placeholder::after { content: ""; position: absolute; left: 0; right: 0; height: 10%; background: #000; }
.placeholder::before { top: 0; } .placeholder::after { bottom: 0; }
.placeholder span { position: relative; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
/* Image shown in the video box before the video is added */
.poster-only { position: absolute; inset: 0; }
.poster-only img { width: 100%; height: 100%; object-fit: cover; }
.poster-only .soon-tag {
  position: absolute; left: 14px; bottom: 12px;
  background: rgba(1, 8, 12, .8); color: var(--text);
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px;
}

.work-item .work-text { opacity: 0; transform: translateX(-30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.work-item.flip .work-text { transform: translateX(30px); }
.work-item .work-media { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease) .1s, transform 1s var(--ease) .1s; }
.work-item.in .work-text, .work-item.in .work-media { opacity: 1; transform: none; }
/* Video box + "Now streaming on" badge underneath, same width as the video */
.work-media { display: grid; gap: 10px; min-width: 0; }
/* Buttons under the video: they split the video's width equally (1 button = full width, 2 = half each) */
.media-links { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.media-links .streaming { justify-content: center; min-width: 0; gap: 6px; padding-inline: 8px; }
.media-links .streaming .logo-text { font-size: .95rem; }
.media-links .streaming small { letter-spacing: .08em; }
/* keep "Prime Video" / "streaming on" on one line each */
.streaming .logo-text, .streaming small { white-space: nowrap; }
.streaming.imdb .logo-text { font-weight: 800; letter-spacing: -.01em; }
/* Stack the two buttons whenever their row is too narrow for "Now streaming on Prime Video" (phones, tight tablet layouts). */
.work-media { container-type: inline-size; }
@container (max-width: 420px) { .media-links { grid-auto-flow: row; } }

/* =========================================================
   COLORIST
   ========================================================= */
.colorist { position: relative; }

/* Reel banner: muted looping clip across the top of the Colorist page */
.reel-hero {
  position: relative;
  height: min(56.25vw, calc(100svh - var(--header-h) - 40px));
  min-height: 260px;
  overflow: hidden;
  background: #000;
  margin-bottom: 3px;
}
.reel-media { position: absolute; inset: 0; }
.reel-media video, .reel-media img { width: 100%; height: 100%; object-fit: cover; }
.reel-media img { animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.reel-media::after { /* gentle darkening so the centred button and bottom title stay readable */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(40% 45% at 50% 50%, rgba(1, 8, 12, .35), transparent 70%),
    linear-gradient(180deg, rgba(1, 8, 12, .15) 0%, transparent 35%, rgba(1, 8, 12, .4) 80%, rgba(1, 8, 12, .8) 100%);
}
/* Play button in the middle, title centred just below it */
.reel-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(16px, 2.2vw, 30px); }
.reel-title {
  order: 2; /* below the play button */
  width: fit-content; /* keeps the gold gradient on the text itself */
  padding-bottom: .08em;
  font-weight: 400; text-transform: uppercase;
  /* one line; "COLORIST SHOWREEL" is about 13.9em wide, so it always fits between the side margins */
  white-space: nowrap;
  font-size: min(2.6rem, calc((100vw - 2 * var(--gutter)) / 16)); line-height: .95; letter-spacing: -.03em;
  background: linear-gradient(90deg, var(--olive) 0%, var(--accent-dim) 30%, var(--accent) 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1s var(--ease) both;
}
.reel-hero.thumb-only .reel-title { width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Centred "Watch showreel" button: gold play circle (no text label) */
.reel-btn {
  display: grid; justify-items: center; gap: 14px;
  color: var(--text);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  animation: rise 1s .12s var(--ease) both;
}
.reel-btn-icon {
  position: relative;
  width: clamp(64px, 8vw, 92px); height: clamp(64px, 8vw, 92px);
  border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  transition: transform .3s var(--ease), background-color .2s;
}
.reel-btn-icon::before { /* soft pulsing ring */
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(255, 176, 0, .55);
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
/* The triangle's centre of mass sits exactly in the middle of the circle (it looks centred that way). */
.reel-btn svg { width: 50%; height: 50%; display: block; fill: currentColor; }
.reel-btn-label { text-shadow: 0 2px 12px rgba(0, 0, 0, .8); padding: 2px 6px; }
.reel-btn:hover .reel-btn-icon { transform: scale(1.08); background: var(--text); }
.reel-btn:hover .reel-btn-label { color: var(--accent); }

/* Full reel playing in place of the loop (no popup) */
.reel-player { display: none; }
.reel-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.reel-hero.playing { height: auto; min-height: 0; background: var(--bg); }
.reel-hero.playing .reel-player {
  display: block;
  width: min(100%, calc((100svh - var(--header-h) - 56px) * 16 / 9));
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  background: #000;
}
.reel-hero.playing .reel-media, .reel-hero.playing .reel-overlay { display: none; }
/* Slim bar under the video ("Sound on" / "Close reel"), clear of YouTube's own buttons */
.reel-bar {
  display: flex; align-items: center; justify-content: flex-end; gap: 22px;
  height: 56px; padding: 0 var(--gutter);
}
.reel-bar[hidden] { display: none; }
.reel-close {
  display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 4px;
  color: var(--soft); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  transition: color .2s;
}
.reel-close span { font: 400 1.5rem/1 system-ui, sans-serif; }
.reel-close[hidden], .reel-sound[hidden] { display: none; }
.reel-close:hover { color: var(--accent); }
.reel-sound {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--ink);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  padding: 9px 16px;
  transition: background-color .2s, transform .2s var(--ease);
}
.reel-sound:hover { background: var(--text); transform: translateY(-1px); }
.reel-sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reel-sound svg path:first-child { fill: currentColor; stroke: none; }
.reel-sound .wave { display: none; }
.reel-sound[aria-pressed="true"] .wave { display: block; }
.reel-sound[aria-pressed="true"] .mute { display: none; }
.reel-sound[aria-pressed="true"] { background: transparent; color: var(--soft); outline: 1px solid rgba(201, 201, 201, .35); }
/* ---------- Colorist projects ---------- */
.cprojects { max-width: 2400px; margin: 0 auto; padding: clamp(60px, 9vw, 110px) var(--gutter) clamp(100px, 14vw, 180px); display: grid; gap: clamp(80px, 11vw, 140px); }
.cproj { display: grid; gap: 22px; position: relative; }
.cproj + .cproj::before { /* thin gold separator between projects */
  content: ""; position: absolute; top: calc(clamp(80px, 11vw, 140px) / -2); left: 0; width: 40%; height: 1px;
  background: linear-gradient(90deg, rgba(255, 176, 0, .5), transparent);
}
.cproj-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px 40px; }
.cproj-title {
  font-weight: 400; text-transform: uppercase;
  font-size: clamp(2rem, 5.4vw, 4.4rem); line-height: .88; letter-spacing: -.04em;
  background: linear-gradient(90deg, var(--olive) 0%, var(--accent-dim) 30%, var(--accent) 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .04em;
}
.cproj-meta { margin-top: 12px; font-size: .78rem; color: var(--text); line-height: 1.6; }
.cproj-meta .sep { color: var(--accent); margin: 0 .5em; }
.cproj-role { display: inline-block; margin-top: 10px; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); border: 1px solid rgba(201, 201, 201, .35); padding: 3px 9px; line-height: 1.6; }

.cproj-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: stretch; }
/* the streaming badge next to the watch buttons: same height as them */
.cproj-links .streaming { padding: 0 12px; gap: 10px; }
.cproj-links .streaming small { font-size: .5rem; }
.cproj-links .streaming .logo-slot { height: 22px; }
.cproj-links .streaming .logo-text { font-size: .9rem; }
.watch {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; line-height: 1.3;
  padding: 10px 15px; transition: background-color .2s, color .2s, outline-color .2s, transform .2s var(--ease);
}
.watch svg { width: 12px; height: 12px; fill: currentColor; flex: none; }
.watch.primary { background: var(--accent); color: var(--ink); }
.watch.primary:hover { background: var(--text); transform: translateY(-2px); }
.watch.ghost { color: var(--text); outline: 1px solid rgba(201, 201, 201, .4); outline-offset: -1px; }
.watch.ghost:hover { color: var(--accent); outline-color: var(--accent); }

.cproj-badges { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.laurels { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-left: -14px; }
.laurel { width: 170px; height: 94px; color: #fff; }
/* Drawn laurels use a narrow bold sans, like real festival laurels, so long names stay readable. */
.laurel text { font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif; font-weight: 700; fill: currentColor; }
img.laurel { object-fit: contain; opacity: 1; }

/* "Now streaming on" badge (uses the platform's official badge image when provided) */
.streaming { display: inline-flex; align-items: center; gap: 14px; padding: 10px 16px 10px 14px; border: 1px solid rgba(201, 201, 201, .28); background: rgba(243, 243, 243, .03); transition: border-color .2s, background-color .2s; }
a.streaming:hover { border-color: var(--accent); background: rgba(255, 176, 0, .05); } /* only real links react; labels (no link) stay still */
.streaming small { display: grid; font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); line-height: 1.5; }
.streaming small b { font-weight: 400; color: var(--accent); }
.streaming .logo-slot { height: 30px; display: flex; align-items: center; }
.streaming .logo-slot img { height: 100%; width: auto; }
.streaming .logo-text { font-family: system-ui, sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--text); }
.streaming svg { width: 12px; height: 12px; fill: var(--soft); }

/* Platform brand colours for the streaming button */
.streaming.platform-prime-video { --brand: #00a8e1; background: var(--brand); border-color: var(--brand); }   /* Prime Video blue */
.streaming.platform-prime-video:hover { background: #0096c9; border-color: #0096c9; }
.streaming.platform-prime-video small,
.streaming.platform-prime-video small b,
.streaming.platform-prime-video .logo-text { color: #fff; }
.streaming.platform-prime-video small { opacity: .9; }
.streaming.platform-prime-video svg { fill: #fff; }

/* Story TV magenta (from their app icon), white bold-italic uppercase wordmark like their logo */
.streaming.platform-story-tv { background: #da028f; border-color: #da028f; }
a.streaming.platform-story-tv:hover { background: #c0007d; border-color: #c0007d; }
.streaming.platform-story-tv small,
.streaming.platform-story-tv small b { color: #fff; }
.streaming.platform-story-tv small { opacity: .9; }
.streaming.platform-story-tv .logo-text { color: #fff; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.02em; }
.streaming.platform-story-tv svg { fill: #fff; }
.streaming.no-link { cursor: default; }

/* IMDb yellow, with black text (as IMDb uses it) */
.streaming.imdb { background: #f5c518; border-color: #f5c518; }
.streaming.imdb:hover { background: #e2b616; border-color: #e2b616; }
.streaming.imdb small,
.streaming.imdb small b,
.streaming.imdb .logo-text { color: #000; }
.streaming.imdb small { opacity: .8; }
.streaming.imdb svg { fill: #000; }

/* Stills: an even grid, 3 per row, edge to edge (no gaps) */
.cproj-stills { display: grid; grid-template-columns: repeat(var(--still-cols, 3), minmax(0, 1fr)); gap: 0; }
.cproj-stills figure { position: relative; overflow: hidden; background: #000; cursor: zoom-in; aspect-ratio: var(--still-ratio, 16 / 9); }
.cproj-stills img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cproj-stills figure:hover img { transform: scale(1.04); }
/* A trailer playing in place of the wide still */
.cproj-stills figure.is-playing { aspect-ratio: 16 / 9; cursor: default; }
.cproj-stills figure.is-playing iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(1, 8, 12, .94); display: grid; place-items: center; padding: 50px 70px; }
.lightbox[hidden] { display: none; }
/* always fits the screen, for wide and tall (vertical) stills alike */
.lightbox img { max-width: 100%; max-height: calc(100dvh - 100px); width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .8); animation: rise .35s var(--ease); }
.lightbox button { position: absolute; color: var(--text); font-size: 2.4rem; line-height: 1; width: 52px; height: 52px; display: grid; place-items: center; transition: color .2s; font-family: system-ui, sans-serif; }
.lightbox button:hover { color: var(--accent); }
.lb-close { top: 12px; right: 14px; }
.lb-prev { left: 10px; top: 50%; margin-top: -26px; }
.lb-next { right: 10px; top: 50%; margin-top: -26px; }

/* =========================================================
   SERVICES + QUOTE
   ========================================================= */
.split-page {
  max-width: 2400px; margin: 0 auto; width: 100%;
  padding: clamp(50px, 12vh, 120px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); /* 40 / 60 like the reference */
  align-items: center; gap: clamp(28px, 3vw, 60px);
}
.split-copy { text-align: right; display: grid; gap: 16px; }
.split-copy h1, .split-copy p { font-weight: 400; font-size: clamp(.82rem, .95vw, 1.2rem); line-height: 1.75; color: var(--text); }
.split-copy a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Contact page: three framed cards (WhatsApp, call, email) */
.contact-cards { display: grid; gap: clamp(22px, 2vw, 34px); max-width: 1100px; }
.contact-card {
  position: relative; display: flex; align-items: center; gap: 4cqi;
  container-type: inline-size;
  aspect-ratio: 5.6 / 1; min-height: 92px;
  padding: 0 5cqi;
  background: rgba(201, 201, 201, .04);
  border: 2px solid rgba(201, 201, 201, .14);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .45), 0 18px 40px -16px rgba(0, 0, 0, .9);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s, background-color .3s;
  animation: rise .8s var(--ease) both;
}
.contact-card:nth-child(2) { animation-delay: .08s; } .contact-card:nth-child(3) { animation-delay: .16s; }
.contact-card:hover { transform: translateX(-6px); border-color: var(--accent); background: rgba(255, 176, 0, .05); box-shadow: 0 0 0 4px rgba(255, 176, 0, .08), 0 18px 40px -16px rgba(0, 0, 0, .9); }
.cc-icon { flex: none; display: grid; place-items: center; width: clamp(44px, 11cqi, 110px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: var(--ink); }
.cc-icon svg { width: 52%; height: 52%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cc-text { display: grid; gap: .5em; min-width: 0; }
.cc-text small { font-size: clamp(.62rem, 2.2cqi, 1.1rem); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.cc-text b { font-weight: 400; font-size: clamp(.9rem, 3.7cqi, 2.4rem); color: var(--text); letter-spacing: -.02em; line-height: 1.15; overflow-wrap: break-word; }
.cc-go { margin-left: auto; font: 300 clamp(1.6rem, 6cqi, 4rem)/1 system-ui, sans-serif; color: var(--soft); transition: color .2s, transform .3s var(--ease); }
.contact-card:hover .cc-go { color: var(--accent); transform: translateX(4px); }
.contact-picked { color: var(--text); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); padding: 18px var(--gutter); text-align: center; font-size: .66rem; color: var(--text); line-height: 1.6; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1240px) {
  .brand-name { font-size: 1.05rem; }
  .nav { gap: 22px; }
}

@media (max-width: 920px) {
  :root { --header-h: 70px; }
  .brand-name { font-size: 1.2rem; }
  .menu-toggle { display: block; }
  .brand-avatar { width: 46px; height: 46px; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    height: calc(100svh - var(--header-h));
    flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 28px var(--gutter);
    background: var(--ink);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav > a:not(.cta), .dropdown-toggle { font-size: 1.15rem; padding: 10px 0; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--accent); padding: 0; margin: 4px 0 8px 4px; display: none; min-width: 0; }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown:hover .dropdown-toggle svg { transform: none; }
  .dropdown.open .dropdown-toggle svg { transform: rotate(180deg); }
  .dropdown-menu a { font-size: .95rem; padding: 10px 16px; }
  .cta { margin-top: 18px; font-size: .9rem; padding: 14px 20px; }
}

@media (max-width: 920px) {
  /* Tablet & phone: photo on top, everything stacked and centred. */
  .home-hero { flex-direction: column; text-align: center; gap: 28px; padding: 40px var(--gutter) 10px; }
  .home-photo { width: min(380px, 70vw); }
  .home-copy { flex: none; width: 100%; max-width: 640px; justify-items: center; }
  .hi { justify-content: center; }
  .home-bio { margin-left: auto; margin-right: auto; }
  .home-btns { justify-content: center; }
  .side-socials { position: static; transform: none; display: flex; gap: 10px; }
  .split-page { grid-template-columns: 1fr; }
  .split-copy { text-align: left; }
  .contact-cards { max-width: 520px; }
}

@media (max-width: 700px) {
  .header-inner { gap: 14px; }
  .brand { gap: 12px; }
  .brand-avatar { width: 42px; height: 42px; }
  .brand-name { font-size: min(1.1rem, calc((100vw - 170px) / 17.6)); }
  .brand-role { font-size: .64rem; }

  .home-hero { gap: 22px; }
  .home-photo { width: min(320px, calc(100vw - 2 * var(--gutter) - 24px)); }
  .home-bio { margin-top: 12px; }
  .home-btns { margin-top: 20px; gap: 12px; }
  .strip { grid-template-columns: 1fr; }


  .work-item, .work-item.flip { grid-template-columns: 1fr; gap: 18px; }
  .work-item .work-text, .work-item.flip .work-text { order: 0; justify-items: start; text-align: left; padding: 0; transform: translateY(20px); }
  .work-item .roles, .work-item.flip .roles { justify-content: flex-start; }
  .work-item .work-extras { justify-items: start; }
  .work-item .work-extras .laurels { margin: 0 0 0 -10px; }
  .work-extras .laurel { height: 54px; }
  .work-extras svg.laurel { width: 72px; }
  .work-item.flip .work-title { background-image: linear-gradient(90deg, var(--olive) 0%, var(--accent-dim) 30%, var(--accent) 75%); }

  .cproj-head { grid-template-columns: 1fr; }
  .cproj-links { justify-content: flex-start; }
  .laurel { width: 140px; height: 77px; }
  .cproj-stills { grid-template-columns: repeat(var(--still-cols-phone, 2), minmax(0, 1fr)); } /* phones: 2 per row so stills aren't tiny */
  .lightbox { padding: 60px 12px; }
  .lightbox img { max-height: calc(100dvh - 120px); }
  .lb-prev, .lb-next { top: auto; bottom: 8px; margin: 0; }

  .contact-card { aspect-ratio: auto; padding: 18px 16px; gap: 16px; }
  .cc-icon { width: 48px; }
  .cc-text small { font-size: .62rem; }
  .cc-text b { font-size: 1rem; }
  .cc-go { font-size: 1.8rem; }
}

@media (max-width: 400px) {
  .brand-avatar { display: none; }
  .brand-name { font-size: calc((100vw - 104px) / 17.6); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .work-item .work-text, .work-item .work-media { opacity: 1; transform: none; }
}
