/* =========================================================
   LEARY FILMS — learyfilms.com
   Brand: Leary Black, Platinum, Steel; Flare Amber/Gold only as light.
   Type: Poppins (Light 300 / Regular 400 / Medium 500)
   ========================================================= */

@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/poppins-light.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-regular.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-medium.woff") format("woff"); }

:root {
  --black: #000;
  --ink: #08090a;          /* page */
  --ink-2: #0f1011;        /* alternate section */
  --charcoal: #17181a;     /* panels */
  --line: #2a2b2e;
  --line-soft: #1f2022;
  --platinum: #e5e3e2;     /* brand Platinum: headings, primary text */
  --silver: #cbc9c7;       /* brand gradient mid: body text */
  --steel: #a3a29f;        /* brand Steel, lifted slightly for small-text contrast */
  --amber: #cb7019;        /* brand Flare Amber (light only) */
  --gold: #fdf1b3;         /* brand Flare Gold (light only) */
  --flare: linear-gradient(90deg, rgba(203,112,25,0) 0%, #cb7019 30%, #f2c46f 70%, #fdf1b3 100%);
  --focus: #f0c477;

  --max: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 92px;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--silver);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { color: var(--platinum); font-weight: 500; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 1px; }

.wrap { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--platinum); color: var(--black); padding: 10px 16px; font-weight: 500;
}
.skip:focus { top: 12px; }

/* ---------- shared type ---------- */
.label {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--platinum);
  margin-bottom: 22px;
}
.label::before { /* the "flare": brand gold used only as light */
  content: ""; width: 38px; height: 1px; background: var(--flare); flex: none;
}
.section h2 { font-size: clamp(2.1rem, 4.4vw, 3.9rem); line-height: 1.08; max-width: 18ch; }
.intro { color: var(--steel); max-width: 44ch; }
.meta {
  margin-top: 18px; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel);
}
.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--platinum);
  padding: 8px 0; border-bottom: 1px solid rgba(229,227,226,.45);
  transition: border-color .2s, color .2s;
}
.text-link:hover { border-color: var(--gold); color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--black); background: var(--platinum); border: 1px solid var(--platinum);
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--platinum); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s, box-shadow .3s;
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)) no-repeat;
}
.site-header.is-solid {
  background: rgba(8,9,10,.92);
  box-shadow: 0 1px 0 var(--line-soft);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  backdrop-filter: saturate(120%) blur(10px);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 220px; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.site-nav a {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--platinum);
  padding: 10px 0; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--flare); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 640px; height: 100vh; height: 100svh; max-height: 1080px;
  display: flex; align-items: flex-end; overflow: hidden; background: var(--black);
}
.hero-media, .hero-media > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media > img, .hero-media > video, .hero-noscript { object-fit: cover; }
.hero-photo { object-position: 50% 38%; }
.hero-still, .hero-video { object-position: 50% 50%; }
.hero-video { opacity: 0; transition: opacity .8s ease; }
.hero-video.is-playing { opacity: 1; }
html[data-hero="photo"] .hero-still,
html[data-hero="photo"] .hero-video,
html[data-hero="photo"] .hero-credit--motion,
html[data-hero="motion"] .hero-photo,
html[data-hero="motion"] .hero-credit--photo { display: none; }
.hero-noscript { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero::after { /* legibility only where the text sits (lower left); the centre and top of the frame stay clean */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 72% 80% at 0% 100%, rgba(4,5,6,.74) 0%, rgba(4,5,6,.4) 42%, rgba(4,5,6,0) 74%),
    linear-gradient(0deg, rgba(8,9,10,.96) 0%, rgba(8,9,10,.5) 18%, rgba(8,9,10,0) 40%),
    linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 18%);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(52px, 8vh, 96px); }
.hero-inner::before { /* soft scrim that follows the text block, so the rest of the frame stays bright */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: calc(-1 * var(--gutter) - 6%); bottom: -4%; width: min(1180px, 100%); height: 118%;
  background: radial-gradient(ellipse 62% 58% at 34% 60%, rgba(4,5,6,.6) 0%, rgba(4,5,6,.42) 45%, rgba(4,5,6,.14) 75%, rgba(4,5,6,0) 100%);
}
.kicker, .hero-title, .hero-lede { text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 4px 30px rgba(0,0,0,.5); }
.kicker {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--platinum);
}
.kicker .dot { color: var(--steel); padding: 0 .35em; }
.hero-title {
  margin: 18px 0 22px; max-width: 11.5em;
  font-size: clamp(2.5rem, 4.5vw, 4.75rem);
  line-height: 1.02; letter-spacing: -0.03em; font-weight: 500;
}
.hero-title span { white-space: nowrap; }
.hero-lede { max-width: 34rem; font-size: clamp(1rem, 1.25vw, 1.15rem); color: var(--platinum); opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 34px; }
.hero-credit {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 28px; margin: 0;
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(229,227,226,.72);
}
.hero-credit i { font-style: normal; }
.hero-pause {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(229,227,226,.35); display: grid; place-items: center;
  opacity: .55; transition: opacity .2s;
}
.hero-pause:hover, .hero-pause:focus-visible { opacity: 1; }
.hero-pause[hidden] { display: none; }
.i-pause { width: 9px; height: 10px; border-left: 3px solid var(--platinum); border-right: 3px solid var(--platinum); }
.hero-pause.is-paused .i-pause { width: 0; height: 0; border: 0; border-left: 9px solid var(--platinum); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
@media (min-width: 701px) { .hero-pause { bottom: 62px; } }

/* portrait tablets: the loop's action sits right of centre in most shots */
@media (min-width: 701px) and (max-aspect-ratio: 1/1) {
  .hero-still, .hero-video { object-position: 60% 50%; }
}

/* ---------- sections ---------- */
.section { padding: clamp(84px, 11vw, 150px) 0; }
.section-head { margin-bottom: clamp(36px, 4.5vw, 56px); }
.section-head--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 24px 64px; align-items: end; }

/* ---------- film ---------- */
.film { background: var(--ink); padding-top: clamp(72px, 9vw, 120px); }
.player {
  position: relative; aspect-ratio: 16 / 9; background: var(--black);
  border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(0,0,0,.5);
  overflow: hidden;
}
.player-start { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.player-start img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, filter .4s; filter: brightness(.86); }
.player-start:hover img { transform: scale(1.015); filter: brightness(.95); }
.player-start::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,.45) 100%);
}
.play {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(68px, 8vw, 104px); aspect-ratio: 1; display: grid; place-items: center;
}
.play-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(229,227,226,.85); background: rgba(8,9,10,.35);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: border-color .25s, background .25s;
}
.player-start:hover .play-ring, .player-start:focus-visible .play-ring { border-color: var(--gold); background: rgba(8,9,10,.55); }
.play-tri { position: relative; width: 0; height: 0; margin-left: 6px; border-left: 20px solid var(--platinum); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.play-label {
  position: absolute; z-index: 2; left: 24px; bottom: 20px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--platinum);
}
.play-label span { color: var(--steel); margin-left: 10px; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.film-notes {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 48px;
  margin-top: 30px;
}
.film-notes p { max-width: 54ch; color: var(--steel); }

/* ---------- gallery (rows of equal height, photos never cropped) ---------- */
.photography { background: var(--ink-2); border-top: 1px solid var(--line-soft); }
.gallery { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.g-row { display: flex; gap: clamp(14px, 1.6vw, 22px); }
.g-item { flex: var(--ar) 1 0; min-width: 0; margin: 0; }
.g-open { display: block; width: 100%; aspect-ratio: var(--ar); overflow: hidden; background: var(--charcoal); cursor: zoom-in; }
.g-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease, opacity .3s; }
.g-open:hover img { transform: scale(1.02); }
.g-item figcaption {
  margin-top: 12px; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel);
}

/* ---------- about ---------- */
.about { background: var(--ink); border-top: 1px solid var(--line-soft); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px clamp(40px, 7vw, 120px); align-items: start; }
.about-photo { margin: 44px 0 0; aspect-ratio: 4 / 5; max-width: 420px; overflow: hidden; background: var(--charcoal); border: 1px solid var(--line); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-body { padding-top: 6px; }
.about-body p + p { margin-top: 1.1em; }
.about-lead { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.55; color: var(--platinum); font-weight: 300; }
.facts { margin: 44px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel); padding-top: 3px; }
.facts dd { margin: 0; color: var(--platinum); }

/* ---------- contact ---------- */
.contact {
  background:
    radial-gradient(ellipse 70% 90% at 88% 110%, rgba(203,112,25,.16) 0%, rgba(203,112,25,0) 60%),
    var(--ink-2);
  border-top: 1px solid var(--line-soft);
}
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 7vw, 120px); align-items: end; }
.contact .intro { margin-top: 24px; }
.contact-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-links a {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  transition: color .2s, padding .25s;
}
.cl-kind { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel); }
.cl-value { font-size: clamp(1.1rem, 1.9vw, 1.6rem); color: var(--platinum); overflow-wrap: anywhere; }
.cl-arrow { color: var(--platinum); font-size: 1.2rem; transition: transform .25s, color .25s; }
.contact-links a:hover .cl-arrow, .contact-links a:focus-visible .cl-arrow { transform: translateX(4px); color: var(--gold); }

/* ---------- footer ---------- */
.site-footer { background: var(--black); border-top: 1px solid var(--line-soft); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; }
.footer-inner p { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
.footer-mark { width: 40px; height: auto; }
.site-footer .text-link { font-size: 0.75rem; border-bottom-color: transparent; }

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(4,5,6,.97); color: var(--platinum);
}
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox[open] { display: grid; place-items: center; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 64px 84px 28px; max-width: 100%; max-height: 100%; }
.lb-img { max-width: min(100%, 2048px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; }
.lb-caption { display: flex; gap: 24px; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel); }
.lb-btn {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid rgba(229,227,226,.35); border-radius: 50%; font-size: 1.2rem; color: var(--platinum);
  background: rgba(8,9,10,.6); transition: border-color .2s;
}
.lb-btn:hover { border-color: var(--gold); }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 20px; top: 20px; font-size: 1.5rem; }

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .section-head--split { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 360px; }
  .contact-grid { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .brand img { width: 150px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px 0 14px;
    font-size: 0.78rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--platinum);
  }
  .menu-icon { position: relative; width: 22px; height: 12px; border-top: 1px solid var(--platinum); border-bottom: 1px solid var(--platinum); transition: border-color .2s; }
  .menu-toggle[aria-expanded="true"] .menu-icon { border-color: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before,
  .menu-toggle[aria-expanded="true"] .menu-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--platinum); }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px; background: rgba(8,9,10,.98); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 16px 0; font-size: 0.9rem; border-bottom: 1px solid var(--line-soft); }
  .site-nav a::after { display: none; }
  .site-header.menu-open { background: rgba(8,9,10,.98); }
}

@media (max-width: 700px) {
  body { font-size: 1rem; }
  .hero { min-height: 620px; height: 100svh; max-height: 900px; background: var(--ink); }
  /* phones: picture fills the top of the screen, text sits below the peak on a dark fade */
  .hero-media { bottom: auto; height: 62%; }
  .hero-photo { object-position: 57% 50%; }
  .hero-still, .hero-video { object-position: 42% 50%; }
  .hero-still.is-portrait { object-position: 50% 0%; }
  .hero::after {
    background:
      linear-gradient(0deg, rgba(8,9,10,1) 0%, rgba(8,9,10,1) 38%, rgba(8,9,10,.78) 50%, rgba(8,9,10,.4) 64%, rgba(8,9,10,.12) 80%, rgba(8,9,10,0) 100%),
      linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 20%);
  }
  .hero-inner { padding-bottom: 76px; }
  .hero-title { font-size: clamp(2.6rem, 12.5vw, 3.6rem); margin: 18px 0 20px; }
  .kicker { font-size: 0.75rem; letter-spacing: 0.2em; }
  .btn { width: 100%; }
  .hero-credit { left: var(--gutter); right: auto; bottom: 24px; }
  .section h2 { font-size: clamp(1.9rem, 8.6vw, 2.5rem); }
  .player { margin-inline: calc(-1 * var(--gutter)); border-left: 0; border-right: 0; }
  .play-label { display: none; }
  .film-notes { margin-top: 24px; }
  .g-row { flex-direction: column; }
  .g-item { flex: none; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .contact-links a { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
  .cl-kind { grid-column: 1 / -1; }
  .lb-figure { padding: 70px 0 90px; }
  .lb-img { max-height: calc(100dvh - 200px); }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

@media (max-width: 700px) and (max-height: 720px) {
  .hero-title { font-size: 2.35rem; margin: 14px 0 16px; }
  .hero-lede { font-size: 0.95rem; line-height: 1.6; }
  .hero-actions { margin-top: 24px; }
  .hero-inner { padding-bottom: 64px; }
}

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