/* ==========================================================================
   Anthony Azeir — site styles
   Dark cinematic one-page layout. Brand lime comes from the logo (#A5BB29).
   ========================================================================== */

:root {
  --bg: #0b0b0c;
  --bg-2: #111113;
  --surface: #18181b;
  --line: rgba(255, 255, 255, .09);
  --text: #f3f3ef;
  --muted: #a3a39c;
  --lime: #a5bb29;
  --lime-2: #bfd63c;
  --radius: 6px;
  --max: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --header-h: 76px;
  --display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
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, p, ul, dl, dd, figure { margin: 0; }
ul { list-style: none; padding: 0; }
::selection { background: var(--lime); color: var(--bg); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--bg); padding: 10px 16px; font-weight: 600; border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.eyebrow {
  font: 500 13px/1 var(--body);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 18px;
}
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-title {
  font: 500 clamp(2.2rem, 5vw, 3.6rem)/1.05 var(--display);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.section-note { color: var(--muted); font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: 999px;
  font: 600 14px/1 var(--body);
  letter-spacing: .08em; text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--lime); color: #0b0b0c; }
.btn-primary:hover { background: var(--lime-2); transform: translateY(-1px); }
.btn-primary .icon { fill: currentColor; stroke: none; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .35); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, .06); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 11, 12, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand span { font: 500 20px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a {
  font: 500 13px/1 var(--body); letter-spacing: .18em; text-transform: uppercase;
  color: rgba(243, 243, 239, .78); position: relative; padding: 6px 0;
  transition: color .2s;
}
.site-nav a:hover { color: var(--text); }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--text); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; margin-right: -10px; }
.nav-toggle .icon { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: #000 url(../images/posters/showreel-loop.jpg) center / cover no-repeat;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 12, .55) 0%, rgba(11, 11, 12, 0) 28%),
    linear-gradient(0deg, rgba(11, 11, 12, 1) 0%, rgba(11, 11, 12, .55) 38%, rgba(11, 11, 12, .1) 70%);
}
.hero-content { position: relative; padding-bottom: clamp(64px, 11vh, 120px); text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.hero-content .eyebrow { text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.hero-actions .btn { text-shadow: none; }
.hero-title {
  font: 600 clamp(3.6rem, 13vw, 10.5rem)/.9 var(--display);
  text-transform: uppercase; letter-spacing: -.005em;
  margin-bottom: 26px;
}
.hero-lede { max-width: 520px; color: rgba(243, 243, 239, .82); font-size: clamp(16px, 1.6vw, 19px); margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue {
  position: absolute; right: var(--pad); bottom: clamp(64px, 11vh, 120px);
  width: 1px; height: 72px; background: rgba(255, 255, 255, .25); overflow: hidden;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--lime); animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

/* ---------- Work grid ---------- */
.work { background: var(--bg); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.card { position: relative; }
.card-media {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius);
  background: var(--surface);
}
.card-media img, .card-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), opacity .4s var(--ease), filter .4s var(--ease);
}
.card-media img { filter: saturate(.85) brightness(.82); }
.card-media video { opacity: 0; }
.card-media.is-previewing video { opacity: 1; }
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .45), transparent 55%);
  pointer-events: none;
}
.card-play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(11, 11, 12, .45); border: 1px solid rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transform: scale(.9); opacity: .9;
  transition: transform .35s var(--ease), background .35s var(--ease), opacity .35s, border-color .35s;
}
.card-play .icon { width: 20px; height: 20px; fill: currentColor; stroke: none; margin-left: 3px; }
.card-tag {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  font: 500 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 999px; background: rgba(11, 11, 12, .6); color: var(--text);
}
.card-media:hover img, .card-media:focus-visible img { transform: scale(1.045); filter: saturate(1) brightness(1); }
.card-media:hover video { transform: scale(1.045); }
.card-media:hover .card-play, .card-media:focus-visible .card-play {
  transform: scale(1); background: var(--lime); border-color: var(--lime); color: #0b0b0c; opacity: 1;
}
.card-media.is-previewing .card-play { opacity: 0; }
.card-info { display: flex; gap: 16px; align-items: baseline; padding: 18px 2px 0; }
.card-num { font: 500 13px/1 var(--display); color: var(--lime); letter-spacing: .06em; }
.card-info h3 { font: 500 22px/1.15 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.card-info p { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- About ---------- */
.about { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 80% at 50% 35%, rgba(165, 187, 41, .16), rgba(165, 187, 41, 0) 60%), var(--surface);
  display: grid; place-items: center;
}
.about-portrait img { width: 52%; height: auto; }
/* When a real photo is used: <figure class="about-portrait has-photo"> */
.about-portrait.has-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait::after {
  content: ""; position: absolute; inset: 14px; border: 1px solid var(--line); border-radius: 3px; pointer-events: none;
}
.about-text .section-title { margin-bottom: 28px; }
.about-text p { color: rgba(243, 243, 239, .8); max-width: 600px; }
.about-text p + p { margin-top: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 20px 56px; margin: 44px 0 40px; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { font: 500 clamp(2.6rem, 5vw, 3.6rem)/1 var(--display); color: var(--lime); }
.stats dt { color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-top: 10px; }
.label { font: 500 12px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: rgba(243, 243, 239, .88); }
.tags + .label { margin-top: 28px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); }
.contact-intro .section-title { margin-bottom: 22px; }
.contact-intro > p { color: rgba(243, 243, 239, .8); max-width: 420px; }
.contact-list { margin: 40px 0; display: grid; gap: 6px; }
.contact-list a, .contact-list span {
  display: flex; align-items: center; gap: 14px; padding: 10px 0; font-size: 17px;
}
.contact-list .icon { color: var(--lime); }
.contact-list a:hover { color: var(--lime); }
.social { display: flex; gap: 10px; }
.social a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: rgba(243, 243, 239, .85);
  transition: background .25s var(--ease), color .25s, border-color .25s;
}
.social a:hover { background: var(--lime); border-color: var(--lime); color: #0b0b0c; }
.social .icon { width: 19px; height: 19px; }

.contact-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: clamp(24px, 4vw, 44px);
  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: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius);
  padding: 14px 16px; font: 400 16px/1.5 var(--body);
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6c6c67; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); background: #0e0e10; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-foot small { color: var(--muted); font-size: 13px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: var(--radius); font-size: 15px; }
.form-status[hidden] { display: none; }
.form-status-success { background: rgba(165, 187, 41, .14); color: var(--lime-2); border: 1px solid rgba(165, 187, 41, .35); }
.form-status-error { background: rgba(220, 70, 80, .12); color: #ff9aa2; border: 1px solid rgba(220, 70, 80, .35); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--text); }
.site-footer .credit a { color: var(--text); }

/* ---------- Video player (pop-up) ---------- */
.player {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(5, 5, 6, .96); color: var(--text);
}
.player::backdrop { background: rgba(0, 0, 0, .7); }
.player[open] { display: flex; flex-direction: column; animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px var(--pad); }
.player-meta { color: var(--lime); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 6px; }
.player-title { font: 500 clamp(20px, 2.4vw, 28px)/1.1 var(--display); text-transform: uppercase; }
.player-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .22); transition: background .2s, color .2s, border-color .2s;
}
.player-btn:hover { background: var(--lime); border-color: var(--lime); color: #0b0b0c; }
.player-btn .icon { width: 22px; height: 22px; }
.player-stage {
  flex: 1; min-height: 0; display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr);
  align-items: center; gap: 16px;
  padding: 0 var(--pad) clamp(18px, 4vh, 40px);
}
/* Video fills the available height, keeps its shape (set by JS), and never overflows */
.player-stage video {
  justify-self: center; align-self: center;
  height: 100%; width: auto; max-width: 100%;
  aspect-ratio: 16 / 9;
  background: #000; border-radius: 4px;
}
.player-stage video.is-vertical { aspect-ratio: 9 / 16; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 11, 12, .97); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .site-nav a { font-size: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .site-header.menu-open { background: rgba(11, 11, 12, .97); }
  .brand span { font-size: 17px; }
  .brand img { height: 34px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 420px; aspect-ratio: 4 / 3; }
  .about-portrait img { width: 32%; }
  .scroll-cue { display: none; }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .contact-form { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, auto); gap: 24px 40px; }
  .btn { height: 48px; padding: 0 22px; }
  .player-stage { grid-template-columns: 1fr; padding: 0 0 16px; }
  .player-stage .player-btn { display: none; }
  .player-stage video { border-radius: 0; }
}
.on-touch { display: none; }
@media (hover: none) {
  .card-media img { filter: none; }
  .on-hover { display: none; }
  .on-touch { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
