/* ============================================================
   ELVIN KÖSE · editorial portfolio
   Type: Anton (display) · Libre Franklin (body, labels, nav at 900)
   Palette: bone, ink, crimson pulled from the hero photograph
   ============================================================ */

:root {
  --bone: #f3eee5;
  --bone-deep: #eae3d5;
  --ink: #211a14;
  --ink-soft: #4f463d;
  --accent: #8b1224;
  --accent-deep: #540118;
  --accent-bright: #980222;
  --accent-on-dark: #e8737f;
  --hairline: rgba(33, 26, 20, 0.18);
  --display: "Anton", "Arial Narrow", sans-serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --nav-h: 64px;
  --radius-card: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked, body.is-menu-open { overflow: hidden; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }

/* Grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* Shared label style: small, heavy, tracked */
.label,
.section__num,
.vitals dt,
.film__year,
.film__meta dt,
.skills__col h3,
.press__source,
.contact__block h3,
.g-block__label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(243, 238, 229, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--hairline);
}
.nav__brand {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav__links {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2rem);
}
.nav__links a {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 900; /* the owner asked for 950; Libre Franklin stops at 900 */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.nav__links a:hover,
.nav__links a.is-active { border-color: var(--accent); color: var(--accent); }

.nav__burger {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  z-index: 1;
  position: relative;
  cursor: pointer;
}
.nav__burger span {
  position: absolute; left: 8px; right: 8px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, top 0.3s ease;
}
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 26px; }
.nav__burger.is-open span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger.is-open span:last-child { top: 21px; transform: rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 1vh) var(--pad) calc(var(--pad) + 2rem);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero__stage {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
  height: calc(100svh - var(--nav-h) - 6vh);
  min-height: 520px;
  container-type: inline-size;
  /* the card is sized by the stage (cqw = one percent of the stage width) and capped by the viewport height */
  --hero-card-w: min(clamp(280px, 36cqw, 560px), 50svh);
}

/* The photo card: all four corners rounded, like zendaya.com */
.hero__card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--hero-card-w);
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--hero-card-w) * 0.09);
  overflow: hidden;
  z-index: 2;
  opacity: 0;
  animation: heroPhoto 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
  box-shadow: 0 30px 80px rgba(33, 26, 20, 0.18);
}
.hero__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes heroPhoto {
  from { opacity: 0; clip-path: inset(6% 6% 6% 6% round 12%); }
  to   { opacity: 1; clip-path: inset(0 0 0 0 round 0); }
}

/* Two identical type layers; each variant decides what each layer shows */
.hero__type {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__type--back { z-index: 1; }
.hero__type--front { z-index: 3; }
.hero__line {
  position: absolute;
  font-family: var(--display);
  font-weight: 400;
  /* Keep the name generous as the composition narrows. The portrait may
     cover more lettering instead of forcing the type into the side gutters. */
  font-size: clamp(7rem, min(26cqw, 41svh), 24rem);
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  animation: heroRise 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* On wide screens the names touch the card edges. Once either line reaches
   the stage edge it stays there, letting the portrait overlap more of the type. */
.hero__line--1 {
  /* Anton: ELVIN is about 2.03em wide; a sliver of its last letter (0.15em) tucks behind the card,
     and its baseline sits below the card's top edge */
  left: max(0px, calc(50% - var(--hero-card-w) / 2 - 1.88em));
  top: max(0px, calc(50% - var(--hero-card-w) * 0.625 - 0.58em));
  animation-delay: 0.15s;
}
.hero__line--2 {
  /* KÖSE is about 1.87em wide; a sliver of its first letter (0.15em) sits over the photograph,
     and its cap line sits above the card's bottom edge */
  right: max(0px, calc(50% - var(--hero-card-w) / 2 - 1.72em));
  bottom: max(2.5rem, calc(50% - var(--hero-card-w) * 0.625 - 0.58em));
  color: var(--accent);
  animation-delay: 0.32s;
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(0.4em); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Variant A (default): ELVIN behind the card, KÖSE in front, both crossing the card edges */
body[data-hero="a"] .hero__type--back .hero__line--2 { display: none; }
body[data-hero="a"] .hero__type--front .hero__line--1 { display: none; }

/* Variant B: the full name behind the card, Zendaya-like, set in Libre Franklin 900 */
body[data-hero="b"] .hero__type--front { display: none; }
body[data-hero="b"] .hero__type--back {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.18em;
  padding-top: 1vh;
  font-size: clamp(3rem, 12.6vw, 12.5rem);
}
body[data-hero="b"] .hero__line {
  position: static;
  font-family: var(--sans);
  font-weight: 900;
  font-size: inherit;
  line-height: 0.9;
  letter-spacing: -0.035em;
}
body[data-hero="b"] .hero__card {
  top: 13vh;
  transform: translateX(-50%);
}

/* Variant C: the name in front of the card, bone over the photograph, ink outside it.
   The front layer is clipped to the card's box by the script; the back layer shows the ink copy. */
body[data-hero="c"] .hero__type--front .hero__line { color: var(--bone); }
body[data-hero="c"] .hero__type--front { clip-path: inset(100% 0 0 0); }
body[data-hero="c"] .hero__card { box-shadow: none; }

.hero__sub {
  position: absolute;
  z-index: 4;
  bottom: calc(var(--pad) + 0.2rem);
  left: var(--pad);
  display: flex;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  animation: heroRise 1s ease 0.9s forwards;
}
.hero__dot { color: var(--accent); }

.hero__scroll {
  position: absolute;
  z-index: 4;
  bottom: var(--pad);
  right: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  opacity: 0;
  animation: heroRise 1s ease 1.1s forwards;
}
.hero__scroll svg { animation: drift 2.2s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============ Marquee ============ */
.marquee {
  overflow: hidden;
  padding: 0.85rem 0;
  background: var(--accent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee__track span {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bone);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ Sections (shared) ============ */
.section {
  padding: clamp(4.5rem, 10vw, 8.5rem) var(--pad);
  border-bottom: 1px solid var(--hairline);
}
.section__head {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section__num { color: var(--accent); padding-top: 0.2em; }
.section__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ About ============ */
.about__grid {
  display: grid;
  grid-template-columns: minmax(260px, 5fr) 7fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
.about__portrait { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.about__portrait img {
  border-radius: var(--radius-card);
  filter: saturate(0.95);
}
.about__portrait figcaption {
  margin-top: 0.7rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.about__lede {
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.22;
  margin-bottom: 1.6rem;
  max-width: 24ch;
}
.about__body p + p { margin-top: 1.1rem; }
.about__body em { font-style: italic; }

/* Button */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 0.85rem 1.4rem;
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { background: var(--ink); color: var(--bone); }
.btn--accent { border-color: var(--accent); color: var(--accent); }
.btn--accent:hover { background: var(--accent); color: var(--bone); }
.about__more { margin-top: 1.8rem; }

/* ============ Biography page ============ */
.page { padding-top: var(--nav-h); }
.bio { border-bottom: 0; }
.bio__grid {
  display: grid;
  grid-template-columns: minmax(240px, 4fr) 8fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
.bio__portrait { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.bio__portrait img { border-radius: var(--radius-card); filter: saturate(0.95); }
.bio__portrait figcaption {
  margin-top: 0.7rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.bio__body { max-width: 62ch; }
.bio__body p { font-size: 1.06rem; }
.bio__body p + p { margin-top: 1.2rem; }
.bio__body .bio__lede {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.22;
  margin-bottom: 1.8rem;
}
.bio__body em { font-style: italic; }
.bio__actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }

.vitals {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--hairline);
}
.vitals > div {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.vitals > div:nth-child(odd) { padding-right: 1.5rem; }
.vitals dt { color: var(--accent); font-size: 0.62rem; }
.vitals dd { font-size: 0.98rem; }

/* ============ Film & TV ============ */
/* The section title stays pinned under the nav while the three cards scroll past, and lets go when the section ends */
.film .section__head {
  position: sticky;
  top: var(--nav-h);
  z-index: 5;
  background: var(--bone);
  padding-top: 1rem;
}
.film__card {
  display: grid;
  grid-template-columns: minmax(260px, 5fr) 7fr;
  grid-template-areas:
    "poster info"
    "extra extra";
  gap: clamp(2rem, 5vw, 5rem);
  row-gap: clamp(1.6rem, 3vw, 2.6rem);
  align-items: center;
}
.film__card + .film__card {
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--hairline);
}
.film__card--flip {
  grid-template-columns: 7fr minmax(260px, 5fr);
  grid-template-areas:
    "info poster"
    "extra extra";
}
.film__poster { grid-area: poster; }
.film__info { grid-area: info; }
.film__media { grid-area: extra; }

.film__poster {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  justify-self: center;
}
.film__card--flip .film__poster { justify-self: center; }
.film__poster--7x10 { aspect-ratio: 7 / 10; }
.film__poster--3x4 { aspect-ratio: 3 / 4; }
.film__poster img { width: 100%; height: 100%; object-fit: cover; }

/* Typographic card for a title without artwork */
.film__poster--type {
  display: grid;
  place-items: center;
  color: var(--bone);
}
.film__poster--tv {
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(152, 2, 34, 0.55), transparent 60%),
    linear-gradient(160deg, #2c1a22 0%, #3b1f2b 55%, #1d1417 100%);
}
.film__poster-inner {
  position: absolute;
  inset: 0;
  text-align: left;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.4rem;
}
.film__poster-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.75;
}
.film__poster-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.film__poster-note {
  width: 100%;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.85;
  padding-top: 1rem;
  border-top: 1px solid rgba(243, 238, 229, 0.35);
}

.film__year { color: var(--accent); }
.film__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0.5rem 0 0.7rem;
}
.film__credit-line {
  font-style: italic;
  font-size: 1.12rem;
  margin-bottom: 1.6rem;
}
.film__original { font-style: normal; color: var(--ink-soft); font-size: 0.95rem; }
.film__meta {
  border-top: 1px solid var(--hairline);
  margin-bottom: 1.6rem;
}
.film__meta > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--hairline);
}
.film__meta dt { color: var(--ink-soft); padding-top: 0.25rem; font-size: 0.62rem; }
.film__blurb { max-width: 54ch; color: var(--ink-soft); }

/* Media tiles under a film card: a trailer facade and a hosted clip */
.film__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
  cursor: pointer;
  text-align: left;
}
.tile__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(0.9);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}
.tile:hover .tile__thumb { transform: scale(1.04); filter: brightness(0.72) saturate(1); }
.tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1rem, 2vw, 1.6rem);
}
.tile__play {
  width: 58px; height: 58px;
  border: 1px solid rgba(243, 238, 229, 0.7);
  border-radius: 50%;
  display: grid;
  place-items: center;
  backdrop-filter: blur(3px);
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.tile__play svg { margin-left: 3px; }
.tile:hover .tile__play { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.tile__label strong,
.tile__caption strong,
.player figcaption strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tile__label span,
.tile__caption span,
.player figcaption span {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}
.tile--video { cursor: default; background: #000; }
.tile--video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.tile__caption {
  position: absolute;
  left: clamp(1rem, 2vw, 1.6rem);
  bottom: clamp(1rem, 2vw, 1.6rem);
  pointer-events: none;
  transition: opacity 0.3s ease;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.tile--video.is-playing .tile__caption { opacity: 0; }
.tile iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.film__trailer { margin-top: 1.8rem; max-width: 640px; }


/* ============ Theatre ============ */
.theatre { position: relative; }
.theatre__list { list-style: none; border-top: 1px solid var(--hairline); }
.theatre__row {
  display: grid;
  grid-template-columns: 6.5rem 1.6fr 1fr 1.5fr;
  gap: 1.2rem;
  align-items: baseline;
  padding: 1.15rem 0.2rem;
  border-bottom: 1px solid var(--hairline);
  transition: background 0.3s ease, padding-left 0.3s ease;
}
.theatre__row:hover { background: var(--bone-deep); padding-left: 0.9rem; }
.theatre__year {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.theatre__title {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.theatre__badge {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--accent);
  border-radius: 99px;
  padding: 0.25rem 0.6rem;
  margin-left: 0.6rem;
  vertical-align: middle;
  white-space: nowrap;
}
.theatre__role { font-style: italic; color: var(--ink-soft); }
.theatre__dir {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-align: right;
}
.theatre__directing {
  margin-top: 1.8rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* Floating poster preview: only rows carrying a poster get one; shown whole, never cropped */
.theatre__preview {
  position: fixed;
  z-index: 40;
  width: 240px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.94) rotate(-1.5deg);
  transition: opacity 0.25s ease, transform 0.25s ease;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(33, 26, 20, 0.3);
  background: var(--bone-deep);
}
.theatre__preview.is-active { opacity: 1; transform: scale(1) rotate(-1.5deg); }
.theatre__preview img { width: 100%; height: auto; display: block; }

/* ============ Showreel ============ */
.showreel {
  background: var(--ink);
  color: var(--bone);
}
.showreel .section__num { color: var(--accent-on-dark); }
.showreel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.5rem);
}
.player { margin: 0; }
.player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-card);
  display: block;
}
.player figcaption { margin-top: 0.9rem; }
.player figcaption span { display: block; margin-top: 0.15rem; }
.showreel__note {
  margin-top: 2rem;
  font-style: italic;
  opacity: 0.7;
}
.showreel__note a { color: var(--accent-on-dark); }

/* ============ Gallery ============ */
.g-block + .g-block { margin-top: clamp(2.5rem, 5vw, 4rem); }
.g-block__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.g-block__label { color: var(--accent); }
.g-block__credit {
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: right;
}
/* Justified rows: each item grows by its aspect ratio, so a row shares one height */
.g-row {
  display: flex;
  gap: clamp(0.6rem, 1.2vw, 1rem);
}
.g-row + .g-row { margin-top: clamp(0.6rem, 1.2vw, 1rem); }
.g-item {
  flex: var(--r, 0.75) 1 0%;
  aspect-ratio: var(--r, 0.75);
  min-width: 0;
  border: 0;
  padding: 0;
  background: var(--bone-deep);
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.g-item:hover img { transform: scale(1.04); }

/* Lightbox with a carousel */
.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(33, 26, 20, 0.96);
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  color: var(--bone);
}
.lb[hidden] { display: none; }
.lb__stage {
  margin: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: 4.5rem 0.5rem;
}
.lb__img {
  max-width: 100%;
  max-height: calc(100svh - 9rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  animation: lbIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.lb__img.is-swapping { animation: none; }
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
.lb__close,
.lb__nav {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid rgba(243, 238, 229, 0.35);
  border-radius: 50%;
  background: rgba(243, 238, 229, 0.06);
  color: var(--bone);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.lb__close:hover, .lb__nav:hover { background: var(--accent); border-color: var(--accent); }
.lb__close { position: absolute; top: 1rem; right: 1rem; }
.lb__nav { justify-self: center; }
.lb__counter {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ============ Skills ============ */
.skills { background: var(--bone-deep); }
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(1.8rem, 4vw, 3rem);
}
.skills__col h3 {
  color: var(--accent);
  padding-bottom: 0.7rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--hairline);
}
.skills__col ul { list-style: none; }
.skills__col li {
  padding: 0.28rem 0;
  font-size: 0.98rem;
}

/* ============ Press ============ */
.press__list { list-style: none; border-top: 1px solid var(--hairline); }
.press__list a {
  display: grid;
  grid-template-columns: 150px 1fr auto auto;
  gap: 1.4rem;
  align-items: baseline;
  padding: 1.1rem 0.2rem;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  transition: background 0.3s ease, padding-left 0.3s ease;
}
.press__list a:hover { background: var(--bone-deep); padding-left: 0.9rem; }
.press__source { color: var(--accent); }
.press__headline { font-size: 1.02rem; }
.press__date {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.press__arrow { font-family: var(--sans); transition: transform 0.3s ease; }
.press__list a:hover .press__arrow { transform: translateX(6px); }

/* ============ Contact ============ */
.contact {
  background: var(--accent);
  color: var(--bone);
  border-bottom: 0;
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(9rem, 19vw, 17rem);
}
.contact .section__head { border-bottom-color: rgba(243, 238, 229, 0.3); }
.contact .section__num { color: rgba(243, 238, 229, 0.6); }
.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  position: relative;
  z-index: 1;
}
.contact__block h3 {
  color: rgba(243, 238, 229, 0.8);
  margin-bottom: 1.1rem;
}
.contact__agency {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.contact__agency--pending { color: var(--ink-soft); opacity: 0.6; }
.contact__pending-note { color: var(--ink-soft); font-size: 0.9rem; max-width: 26ch; }
.contact__block address {
  font-style: normal;
  color: rgba(243, 238, 229, 0.82);
  margin-bottom: 1.1rem;
}
.contact__links { list-style: none; }
.contact__links li { padding: 0.3rem 0; }
.contact__links a {
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 238, 229, 0.45);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.contact__links a:hover { border-color: var(--bone); }
.contact__links .ext { display: inline-block; vertical-align: 0.05em; margin-left: 0.1em; opacity: 0.8; }
.contact__meta {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 238, 229, 0.75);
  margin-left: 0.4rem;
}
.contact__name {
  position: absolute;
  right: -0.02em;
  bottom: -0.22em;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(6rem, 17vw, 16rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 238, 229, 0.38);
  z-index: 0;
  user-select: none;
  pointer-events: none;
}

/* ============ Footer ============ */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem var(--pad);
  border-top: 1px solid rgba(243, 238, 229, 0.3);
  background: var(--accent);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 238, 229, 0.9);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--bone); }
.footer svg { vertical-align: -1px; }
.footer__links { display: flex; gap: 1.2rem; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--bone);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: -1;
  }
  .nav__links { visibility: hidden; overflow-y: auto; padding: calc(var(--nav-h) + 1rem) var(--pad) 2rem; gap: clamp(0.5rem, 3vh, 1.8rem); }
  .nav__links.is-open { opacity: 1; visibility: visible; pointer-events: auto; z-index: 0; }
  .nav__brand { z-index: 1; }
  .nav__links a { font-size: clamp(1.05rem, 3vw, 1.5rem); min-height: 44px; display: grid; align-items: center; }
  .nav__burger { display: block; }
}

@media (max-width: 900px) {
  .hero__stage { min-height: 480px; }

  .about__grid,
  .bio__grid,
  .contact__grid { grid-template-columns: 1fr; }
  .about__portrait,
  .bio__portrait { position: static; max-width: 420px; }

  .film__card,
  .film__card--flip {
    grid-template-columns: 1fr;
    grid-template-areas: "poster" "info" "extra";
  }
  .film__poster { max-width: 380px; justify-self: start; }
  .film__media { grid-template-columns: 1fr; }

  .film .section__head { position: static; padding-top: 0; }

  .theatre__row { grid-template-columns: 4.6rem 1fr; row-gap: 0.25rem; }
  .theatre__role { grid-column: 2; }
  .theatre__dir { grid-column: 2; text-align: left; }
  .theatre__preview { display: none; }

  .showreel__grid { grid-template-columns: 1fr; }

  .press__list a { grid-template-columns: 1fr auto; }
  .press__source { grid-column: 1 / -1; }
  .press__date { display: none; }

  .lb { grid-template-columns: 56px 1fr 56px; }
}

@media (max-width: 700px) {
  .g-row { flex-wrap: wrap; }
  .g-item { flex: 1 1 calc(50% - 0.5rem); }
}

@media (max-width: 540px) {
  .hero { padding-bottom: calc(var(--pad) + 3rem); }
  .hero__stage { height: calc(100svh - var(--nav-h) - 8vh); min-height: 440px; --hero-card-w: min(74vw, 340px); }
  /* Keep the shared large-name scale on phones as well. */
  .hero__line--1 { left: 0; }
  .hero__line--2 { right: 0; }
  body[data-hero="b"] .hero__type--back { font-size: 15vw; flex-direction: column; align-items: center; gap: 0; }
  body[data-hero="b"] .hero__card { top: 22vh; }
  .hero__scroll { display: none; }
  .hero__sub { left: var(--pad); right: var(--pad); bottom: var(--pad); font-size: 0.75rem; letter-spacing: 0.14em; gap: 0.45rem; flex-wrap: wrap; }
  .vitals { grid-template-columns: 1fr; }
  .vitals > div:nth-child(odd) { padding-right: 0; }
  .film__meta > div { grid-template-columns: 100px 1fr; }
  .lb { grid-template-columns: 0 1fr 0; }
  .lb__nav { position: absolute; bottom: 3.6rem; }
  .lb__nav--prev { left: 1rem; }
  .lb__nav--next { right: 1rem; }
  .lb__stage { padding: 4rem 0.75rem 7rem; }
  .lb__img { max-height: calc(100svh - 11rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__line, .hero__card, .hero__sub, .hero__scroll { animation-duration: 0.001s; animation-delay: 0s; }
  .hero__scroll svg { animation: none; }
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .lb__img { animation: none; }
  .g-item img, .tile__thumb { transition: none; }
}

.hero__card { translate: var(--hero-x, 0px) var(--hero-y, 0px); transition: translate 0.35s ease-out; }
.hero__type { translate: calc(var(--hero-x, 0px) * -0.35) calc(var(--hero-y, 0px) * -0.35); transition: translate 0.35s ease-out; }
/* The clipping variant keeps both layers registered with the same fixed image. */
body[data-hero="c"] .hero__card, body[data-hero="c"] .hero__type { translate: none; }
@media (prefers-reduced-motion: reduce) {
  .hero__card, .hero__type { translate: none; transition: none; }
}

