/* Anurag Mehra — site styles. Colours mirror the "Brand" variables in the Figma file. */
:root {
  --ink: #0e0d0c;
  --ink-2: #191715;
  --paper: #f3eee7;
  --stone: #e4ded5;
  --gold: #bc9d6b;
  --muted: #8f8880;
  --line: #383532;
  --placeholder: #2a2724;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --pad: clamp(16px, 8.3vw, 120px);
  --section-y: clamp(88px, 10vw, 140px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 300 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Type ---------- */
.kicker, .eyebrow, .tabs button, .filters button, .nav__links a, .btn, .stats dt, .credits__type, .brands h3, .contact__cols h3, .subhead, .clip__meta {
  font-family: var(--sans); font-weight: 500; text-transform: uppercase; letter-spacing: .16em; font-size: 12px;
}
.kicker { color: var(--gold); letter-spacing: .22em; font-size: 13px; margin: 0 0 20px; }
.eyebrow { display: flex; align-items: center; gap: 16px; color: var(--gold); letter-spacing: .18em; margin: 0 0 28px; }
.eyebrow i { width: 48px; height: 1px; background: currentColor; }
.eyebrow--center { justify-content: center; }
.h2 { font: 300 clamp(44px, 5vw, 72px)/1 var(--serif); margin: 0; letter-spacing: -.005em; }
.h2--md { font-size: clamp(40px, 4.2vw, 60px); line-height: 1.05; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 16px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 18px 32px; text-decoration: none; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.btn--primary { background: var(--paper); color: var(--ink); }
.btn--primary:hover { background: var(--gold); }
.btn--outline { border: 1px solid var(--paper); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 28px var(--pad); transition: background .3s, padding .3s; }
.nav.is-solid { background: rgba(14, 13, 12, .92); backdrop-filter: blur(10px); padding-top: 18px; padding-bottom: 18px; }
.nav__brand { font: 600 22px/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.nav__links { display: flex; gap: 40px; }
.nav__links a { text-decoration: none; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--gold); transition: right .25s; }
.nav__links a:hover::after { right: 0; }
.nav__toggle { display: none; width: 32px; height: 32px; position: relative; }
.nav__toggle span { position: absolute; left: 4px; right: 4px; height: 1px; background: var(--paper); transition: transform .25s, top .25s; }
.nav__toggle span:first-child { top: 12px; }
.nav__toggle span:last-child { top: 20px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 16px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 16px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero__media { position: absolute; inset: 0 0 0 auto; width: 62.5%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero::before { background: linear-gradient(90deg, var(--ink) 38%, rgba(14,13,12,.55) 52%, rgba(14,13,12,0) 70%); }
.hero::after { background: linear-gradient(180deg, rgba(14,13,12,.55) 0%, rgba(14,13,12,.1) 40%, rgba(14,13,12,.9) 100%); }
.hero__copy { position: relative; z-index: 2; padding-bottom: clamp(56px, 7vw, 96px); padding-top: 140px; }
.hero__name { font: 300 clamp(68px, 11.7vw, 168px)/.9 var(--serif); letter-spacing: -.012em; margin: 0 0 28px; }
.hero__lede { max-width: 640px; color: var(--stone); font-size: 18px; line-height: 1.6; margin: 0 0 40px; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; background: var(--ink); }
.section--alt { background: var(--ink-2); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.section > .wrap > .h2 { margin-bottom: 56px; }
.section__aside { margin: 0; color: var(--stone); max-width: 340px; line-height: 1.6; }
.subhead { color: var(--gold); margin: 96px 0 28px; letter-spacing: .18em; }

/* ---------- Showreel ---------- */
.tabs { display: flex; gap: 32px; flex-wrap: wrap; }
.tabs button { padding: 0 0 10px; color: var(--muted); border-bottom: 1px solid var(--line); letter-spacing: .12em; font-size: 13px; transition: color .2s; }
.tabs button[aria-selected="true"] { color: var(--paper); border-color: var(--gold); }
.tabs button:hover { color: var(--paper); }

.player, .clip__media { position: relative; aspect-ratio: 16 / 9; background: var(--placeholder); overflow: hidden; }
.player img, .clip__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.player iframe, .modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster { position: absolute; inset: 0; width: 100%; display: grid; place-items: center; }
.poster::before { content: ""; position: absolute; inset: 0; background: rgba(14,13,12,.35); transition: background .3s; z-index: 1; }
.poster:hover::before { background: rgba(14,13,12,.2); }
.poster img { position: absolute; inset: 0; }
.poster:hover img { transform: scale(1.02); }
.play { position: relative; z-index: 2; display: grid; justify-items: center; gap: 20px; }
.play svg { width: clamp(64px, 7vw, 96px); height: auto; }
.play span { font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.poster.is-empty { cursor: default; }
.poster.is-empty::before { background: rgba(14,13,12,.6); }
.poster.is-empty:hover img { transform: none; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 520fr) minmax(0, 584fr); gap: clamp(40px, 6.7vw, 96px); align-items: start; }
.about__photo { margin: 0; aspect-ratio: 520 / 680; background: var(--placeholder); overflow: hidden; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__copy .h2 { margin-bottom: 36px; }
.prose { color: var(--stone); font-size: 17px; line-height: 1.7; }
.prose p { margin: 0 0 1.2em; }
.stats { margin: 36px 0 40px; border-top: 1px solid var(--line); }
.stats div { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; text-align: right; font-weight: 400; }

/* ---------- Acting credits ---------- */
.credits { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.credits li { display: grid; grid-template-columns: 80px minmax(0, 1fr) 240px 220px; gap: 40px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); }
.credits__year { color: var(--gold); font-weight: 500; font-size: 13px; letter-spacing: .12em; }
.credits__title { font: 400 clamp(28px, 2.8vw, 40px)/1.1 var(--serif); }
.credits__title small { font-size: .6em; color: var(--muted); }
.credits__role { color: var(--stone); font-size: 15px; }
.credits__type { color: var(--muted); text-align: right; }

/* ---------- Video clip cards ---------- */
.clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#acting-clips { margin-top: 72px; }
.clip { display: grid; gap: 16px; }
.clip .play svg { width: 56px; }
.clip__title { font: 400 26px/1.15 var(--serif); margin: 0; }
.clip__meta { color: var(--muted); margin-top: -10px; letter-spacing: .14em; font-size: 11px; }

/* ---------- Brands ---------- */
.brands { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; align-items: start; }
.brands > div { border-top: 1px solid var(--gold); padding-top: 28px; }
.brands h3 { color: var(--gold); margin: 0 0 20px; font-weight: 600; letter-spacing: .18em; }
.brands ul { list-style: none; margin: 0; padding: 0; font: 400 24px/1.5 var(--serif); }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.filters button { color: var(--muted); padding: 4px 0; letter-spacing: .14em; transition: color .2s; }
.filters button[aria-pressed="true"] { color: var(--paper); box-shadow: inset 0 -1px var(--gold); }
.filters button:hover { color: var(--paper); }
.masonry { --gap: 24px; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.masonry__col { display: grid; gap: var(--gap); }
.masonry button { display: block; width: 100%; padding: 0; background: var(--placeholder); overflow: hidden; cursor: zoom-in; }
.masonry img { width: 100%; height: auto; transition: transform .6s ease, opacity .4s; }
.masonry button:hover img { transform: scale(1.03); }

/* ---------- Contact ---------- */
.contact { text-align: center; padding-bottom: 120px; }
.contact__title { font: italic 300 clamp(56px, 7.8vw, 112px)/1 var(--serif); margin: 0 0 40px; }
.contact__email { display: inline-block; font: 400 clamp(26px, 2.5vw, 36px)/1.2 var(--serif); color: var(--gold); text-decoration: none; margin-bottom: 64px; word-break: break-word; }
.contact__email:hover { color: var(--paper); }
.contact__cols { display: flex; justify-content: center; gap: 32px 96px; flex-wrap: wrap; margin-bottom: 56px; }
.contact__cols h3 { color: var(--muted); margin: 0 0 12px; }
.contact__cols p { margin: 0; color: var(--stone); font-size: 15px; line-height: 1.6; }
.contact__cols a { text-decoration: none; }
.contact__cols a:hover { color: var(--gold); }

.footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; color: var(--muted); font-size: 12px; letter-spacing: .1em; }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(8, 7, 6, .94); display: grid; place-items: center; padding: 64px 16px; }
.modal[hidden] { display: none; }
.modal__frame { position: relative; width: min(1280px, 100%); aspect-ratio: 16 / 9; }
.modal__close { position: absolute; top: 16px; right: 20px; font-size: 40px; line-height: 1; padding: 4px 10px; z-index: 2; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 128px); object-fit: contain; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font: 300 56px/1 var(--serif); padding: 16px; z-index: 2; }
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { gap: 28px; }
  .credits li { grid-template-columns: 64px minmax(0, 1fr) 180px; }
  .credits__type { display: none; }
  .brands { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
}
@media (max-width: 900px) {
  .nav__toggle { display: block; z-index: 2; }
  .nav__links { position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: center; gap: 28px; background: var(--ink); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .nav__links a { font-size: 15px; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav__brand { position: relative; z-index: 2; }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 520px; }
  .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masonry { --gap: 16px; }
}
@media (max-width: 720px) {
  .nav { padding-top: 20px; padding-bottom: 20px; }
  .nav__brand { font-size: 18px; }
  .hero { min-height: 100svh; }
  .hero__media { width: 100%; }
  .hero__media img { object-position: 72% 20%; }
  .hero::before { background: linear-gradient(180deg, rgba(14,13,12,0) 15%, rgba(14,13,12,.8) 38%, var(--ink) 62%); }
  .kicker { font-size: 11px; letter-spacing: .14em; }
  .hero__lede { font-size: 16px; }
  .section__head { margin-bottom: 40px; }
  .credits li { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .credits__year { font-size: 12px; }
  .clips { grid-template-columns: 1fr; }
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
  .brands ul { font-size: 20px; }
  .stats div { flex-direction: column; gap: 4px; }
  .stats dd { text-align: left; }
  .btn { padding: 16px 24px; }
  .footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
