/* synchrofilmltd.com
   Palette from the Synchrofilm logo: reel yellow + logo ink.
   Type: League Gothic (display), Libre Franklin (text), DM Mono (labels, runtimes). */

:root {
  --yellow: #f4b606;
  --ink: #1b1c1b;
  --ink-soft: #3a3000;
  --screen: #0e0e0d;
  --paper: #f6f1e3;
  --paper-soft: #b9b3a3;

  --display: "League Gothic", "Oswald", Impact, sans-serif;
  --body: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--yellow);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.wrap { max-width: 1480px; margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 12px; }
.skip:focus { left: 16px; z-index: 20; background: var(--ink); color: var(--yellow); padding: 10px 14px; }

/* labels shared by nav, meta, buttons */
nav, .eyebrow, .hero-when, .film-meta, .group-label, .section-sub, .notes-label,
.watch, .pill, .textlink, .tile-title, .tc, .player-meta, .foot {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ---------- header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: clamp(16px, 2.4vw, 30px);
}
.brand { display: block; flex: none; }
.brand img { height: clamp(32px, 3.8vw, 54px); width: auto; }
nav { display: flex; flex-wrap: wrap; gap: 6px clamp(16px, 2.2vw, 34px); font-size: 13px; font-weight: 500; }
nav a { text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
nav a:hover { border-color: currentColor; }

/* ---------- reel (the logo's "o", used as the play control) */
.reel { display: block; width: 100%; height: 100%; overflow: visible; }
.reel-ring { opacity: .45; }
@keyframes spin { to { transform: rotate(360deg); } }

.watch {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 13px; font-weight: 500; line-height: 1;
}
.watch .reel { width: 46px; height: 46px; flex: none; }
.watch:hover .reel, .watch:focus-visible .reel { animation: spin 1.8s linear infinite; }
.watch .tc { opacity: .72; letter-spacing: .04em; }

.pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 500;
  background: var(--yellow); color: var(--ink);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.pill:hover { background: var(--paper); }
.pill--ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(246, 241, 227, .55); }
.pill--ghost:hover { background: transparent; box-shadow: inset 0 0 0 1.5px var(--paper); }
.pill--ink { background: var(--ink); color: var(--yellow); }
.pill--ink:hover { background: #000; }
.pill--ink-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.pill--ink-ghost:hover { background: var(--ink); color: var(--yellow); }

.textlink { font-size: 13px; font-weight: 500; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.textlink:hover { text-decoration-thickness: 3px; }

/* ---------- hero */
.hero-frame { position: relative; overflow: hidden; background: var(--screen); color: var(--paper); }
.hero-img {
  width: 100%; height: clamp(540px, 80vh, 880px);
  object-fit: cover; object-position: 66% 50%;
}
.hero-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 10, 9, .9) 0%, rgba(10, 10, 9, .6) 34%, rgba(10, 10, 9, 0) 62%),
    linear-gradient(0deg, rgba(10, 10, 9, .75) 0%, rgba(10, 10, 9, 0) 46%);
}
.hero-text {
  position: absolute; z-index: 1;
  left: clamp(20px, 4vw, 64px); right: clamp(20px, 4vw, 64px); bottom: clamp(24px, 4.5vw, 72px);
  max-width: 720px;
}
.eyebrow { margin: 0 0 18px; font-size: 12.5px; font-weight: 500; letter-spacing: .14em; color: var(--yellow); }
.hero-title { margin: 0 0 22px; line-height: 0; }
.hero-title img { width: clamp(260px, 34vw, 540px); height: auto; }
.hero-logline { margin: 0 0 14px; max-width: 38ch; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; }
.hero-when { margin: 0 0 24px; font-size: 13px; color: var(--paper-soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.watch--hero { color: var(--yellow); margin-right: 10px; }
.watch--hero .watch-label { color: var(--paper); }
.watch--hero .tc { color: var(--paper-soft); opacity: 1; }

/* ---------- section heads */
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(72px, 10vw, 136px); padding-bottom: 12px;
  border-bottom: 3px solid var(--ink);
}
.section-head h2 { margin: 0; font: 400 clamp(64px, 9vw, 136px)/.82 var(--display); text-transform: uppercase; }
.section-sub { margin: 0; font-size: 13px; }

.group-label {
  margin: clamp(36px, 4vw, 52px) 0 0; padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px; font-weight: 500; letter-spacing: .14em;
}

/* ---------- films */
.film {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(20px, 3.2vw, 52px); align-items: start;
  padding-block: clamp(24px, 3vw, 44px);
  border-bottom: 1px solid rgba(27, 28, 27, .3);
}
.film-still {
  display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  overflow: hidden; background: var(--screen); cursor: pointer;
}
.film-still img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.film-still:hover img { transform: scale(1.03); }
.film-still:focus-visible { outline-offset: 4px; }

.film-title { margin: 0 0 10px; font: 400 clamp(46px, 5.4vw, 88px)/.86 var(--display); text-transform: uppercase; }
.film-meta { margin: 0 0 18px; font-size: 13px; color: var(--ink-soft); }
.logline { margin: 0 0 16px; max-width: 46ch; }
.credits { list-style: none; margin: 0 0 18px; padding: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.notes { margin: 0 0 20px; }
.notes-label { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: .14em; color: var(--ink-soft); }
.notes ul { list-style: none; margin: 6px 0 0; padding: 0; font-size: 15px; line-height: 1.5; }
.film-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 6px; }

/* features run full width, with the text split into two columns below the still */
.film--feature { grid-template-columns: minmax(0, 1fr); }
.film--feature .film-still { aspect-ratio: 2.39 / 1; }
.film--feature .film-text {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(16px, 3.2vw, 52px);
}
.film--feature .film-title { font-size: clamp(56px, 7vw, 116px); }

/* ---------- commercial */
.commercial {
  margin-top: clamp(80px, 11vw, 150px);
  padding-bottom: clamp(56px, 8vw, 112px);
  background: var(--ink); color: var(--paper);
}
.commercial .section-head { margin-top: 0; padding-top: clamp(48px, 6vw, 84px); border-color: var(--yellow); }
.commercial .section-head h2 { color: var(--yellow); }
.commercial .section-sub { color: var(--paper-soft); }
.commercial :focus-visible { outline-color: var(--yellow); }

/* the reel sits big above the commercial tiles */
.reel-feature { margin-top: 32px; }
.reel-still {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; border: 0; overflow: hidden; background: #000; cursor: pointer;
}
.reel-still img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.reel-still:hover img { transform: scale(1.02); }
.reel-still-play {
  position: absolute; left: clamp(16px, 2.6vw, 36px); bottom: clamp(16px, 2.6vw, 36px);
  width: clamp(56px, 6vw, 88px); height: clamp(56px, 6vw, 88px); color: var(--yellow);
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .45));
}
.reel-still:hover .reel-still-play .reel, .reel-still:focus-visible .reel-still-play .reel { animation: spin 1.8s linear infinite; }
.reel-caption {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 16px; padding-bottom: 28px; border-bottom: 1px solid rgba(246, 241, 227, .22);
}
.reel-title { margin: 0; font: 400 clamp(44px, 5vw, 80px)/.86 var(--display); text-transform: uppercase; color: var(--yellow); }
.reel-caption .watch { color: var(--yellow); }
.reel-caption .watch-label { color: var(--paper); }
.reel-caption .watch .tc { color: var(--paper-soft); opacity: 1; }

.tiles {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 20px;
}
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.tile-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-reel {
  position: absolute; left: 12px; bottom: 12px; width: 38px; height: 38px;
  color: var(--yellow); opacity: 0; transition: opacity .2s;
}
.tile:hover .tile-reel, .tile:focus-visible .tile-reel { opacity: 1; }
.tile:hover .tile-reel .reel, .tile:focus-visible .tile-reel .reel { animation: spin 1.8s linear infinite; }
@media (hover: none) { .tile-reel { opacity: 1; } }
.tile-title { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 500; line-height: 1.35; }
.tile .tc { margin-left: 10px; font-size: 12px; color: var(--paper-soft); }

/* ---------- about */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(20px, 4vw, 64px); align-items: start; margin-top: 32px;
}
.about-photo { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-text p { margin: 0 0 1em; max-width: 62ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; }

/* ---------- contact */
.contact-email {
  display: inline-block; margin-top: 28px; max-width: 100%;
  font: 400 clamp(40px, 9vw, 150px)/.92 var(--display);
  text-decoration: none; overflow-wrap: anywhere;
  border-bottom: 4px solid var(--ink);
}
.contact-email:hover { border-bottom-width: 8px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- footer */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: clamp(80px, 10vw, 140px); padding-block: 22px 40px;
  border-top: 1px solid var(--ink); font-size: 12px;
}
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- player */
.player {
  width: min(1280px, calc(100vw - 2 * var(--gutter))); max-width: none; max-height: none;
  padding: 0; border: 0; background: var(--screen); color: var(--paper);
}
.player::backdrop { background: rgba(8, 8, 7, .92); }
.player-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 16px; }
.player-title { margin: 0; font: 400 clamp(28px, 3vw, 40px)/.95 var(--display); text-transform: uppercase; color: var(--yellow); }
.player-meta { margin: 6px 0 0; font-size: 12px; color: var(--paper-soft); }
.player-close {
  flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(246, 241, 227, .55);
  font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em;
}
.player-close:hover { box-shadow: inset 0 0 0 1.5px var(--paper); }
.player-screen { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--yellow); }
.player-loading .reel { width: 72px; height: 72px; animation: spin 1.4s linear infinite; }
.player.is-loaded .player-loading { display: none; }
.player :focus-visible { outline-color: var(--yellow); }

/* ---------- smaller screens */
@media (max-width: 900px) {
  .film, .film--feature .film-text { grid-template-columns: minmax(0, 1fr); }
  .film--feature .film-still { aspect-ratio: 16 / 9; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-photo { max-width: 340px; }
}
@media (max-width: 760px) {
  .hero-img { height: auto; aspect-ratio: 4 / 3; object-position: 72% 50%; }
  .hero-frame::after { display: none; }
  .hero-text { position: static; max-width: none; padding: 24px 20px 28px; }
  .hero-title img { width: min(78vw, 360px); }
}
@media (max-width: 560px) {
  .top { flex-direction: column; align-items: flex-start; gap: 12px; }
  nav { gap: 6px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
