/* =========================================================
   Luke Edwards — Actor
   Dark cinematic single-page site
   ========================================================= */

:root {
  --bg:        #0a0a0b;
  --bg-2:      #101012;
  --panel:     #141416;
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(255,255,255,.16);
  --ink:       #edecea;   /* warm off-white */
  --ink-soft:  #b7b6b3;
  --ink-mute:  #7d7d81;
  --accent:    #b99a6b;   /* muted brass */
  --accent-2:  #d8b988;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --maxw: 1220px;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* ---------- Typographic helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: .01em;
  margin: 0;
}
.lede { color: var(--ink-soft); font-size: 1.05rem; max-width: 46ch; }
/* "See the full body of work." sits on its own line on desktop, flows inline on phones */
.lede-break { display: block; }
@media (max-width: 600px) { .lede-break { display: inline; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background .4s ease, backdrop-filter .4s ease, padding .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled,
.nav.solid {
  background: rgba(10,10,11,.78);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom-color: var(--line);
  padding-block: .8rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav-links a {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
  transition: color .25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active:not(.imdb) { border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.nav-links a.imdb {
  color: var(--accent);
  border: 1px solid var(--line-2);
  padding: .5rem .85rem;
  border-radius: 2px;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.nav-links a.imdb:hover { border-color: var(--accent); background: rgba(185,154,107,.08); }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 34px; height: 24px;
  background: none; border: 0; cursor: pointer; padding: 0;
  position: relative; z-index: 120;
}
.nav-toggle span {
  position: absolute; left: 3px; right: 3px; height: 1.5px; background: var(--ink);
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.nav-toggle span:nth-child(1) { top: 4px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-toggle.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 1.35rem;
    padding: 1.6rem var(--pad) 2rem;
    background: rgba(10,10,11,.97);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { font-size: 1rem; letter-spacing: .16em; }
  .nav-links a.imdb { padding: .55rem 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: contrast(1.05) brightness(.92);
  transition: opacity 1.4s ease;
}
/* Crossfade: the alternate (jacket) image starts hidden and fades in when the hero has .show-alt */
.hero-img-b { opacity: 0; }
.hero.show-alt .hero-img-a { opacity: 0; }
.hero.show-alt .hero-img-b { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-img { transition: none; } }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10,10,11,.96) 2%, rgba(10,10,11,.35) 42%, rgba(10,10,11,.55) 100%),
    radial-gradient(120% 80% at 70% 20%, transparent 40%, rgba(10,10,11,.6) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(3rem, 8vh, 6rem); }
/* Hero eyebrow "Actor · Producer" — larger than the standard .eyebrow (.72rem/~11.5px) */
.hero .eyebrow { font-size: 1.05rem; letter-spacing: .34em; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.4rem, 15vw, 11rem);
  line-height: .92;
  letter-spacing: .02em;
  margin: .2rem 0 1.4rem;
  text-transform: uppercase;
}
.hero h1 span { display: block; }
.credit-ribbon {
  display: flex; flex-wrap: wrap;
  gap: .55rem 1.15rem;
  align-items: center;
  font-size: .845rem;      /* was .72rem (~11.5px) -> ~13.5px, +2px */
  font-weight: 500;        /* was 300 (body default) — bolder */
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);       /* was var(--ink-soft) — brighter */
  /* dark halo so the white text stays legible over the light parts of the hero photo */
  text-shadow: 0 0 14px rgba(0,0,0,.75), 0 1px 3px rgba(0,0,0,.65);
  max-width: 640px;
}

/* utility: keep a phrase from breaking mid-way */
.nowrap { white-space: nowrap; }
.credit-ribbon span:not(:last-child)::after {
  content: "·";
  margin-left: 1.15rem;
  color: var(--accent);
}
.scroll-cue {
  position: absolute; z-index: 2;
  bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  font-size: .62rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.scroll-cue .line { width: 1px; height: 42px; background: linear-gradient(var(--ink-mute), transparent); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleY(.4); opacity:.4; transform-origin: top; } 50% { transform: scaleY(1); opacity:1; transform-origin: top; } }

/* ---------- Hero CTA ---------- */
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

/* ---------- Section shell ---------- */
section { position: relative; }
.block { padding-block: clamp(4.5rem, 11vh, 8.5rem); }
/* First block on inner pages clears the fixed nav */
.block.first { padding-top: clamp(7rem, 15vh, 10rem); }
.block-head { margin-bottom: clamp(2.5rem, 6vh, 4rem); max-width: 720px; }

/* ---------- Selected Work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}
/* Home featured tiles crossfade during the auto-cycle */
#featured .work-grid { transition: opacity .5s ease; }
#featured .work-grid.swapping { opacity: 0; }
.work-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 3px;
}
.work-card .frame { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.work-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .6s ease;
  filter: saturate(.92) contrast(1.03);
}
.work-card:hover img { transform: scale(1.05); filter: saturate(1) contrast(1.05); }
/* Option E — hover reveal: only the title at rest, full caption on hover */
.work-card .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,9,.94), rgba(8,8,9,.28));
  opacity: 0; transition: opacity .45s ease;
}
.work-card:hover .frame::after,
.work-card:focus-within .frame::after { opacity: 1; }

/* Resting state: the film title, superimposed (bolder) */
.work-card .rest-title {
  position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.25rem; z-index: 2;
  font-family: var(--serif); font-weight: 600; font-size: 1.75rem; line-height: 1.05;
  color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.9), 0 1px 3px rgba(0,0,0,.75);
  transition: opacity .35s ease;
}
.work-card:hover .rest-title,
.work-card:focus-within .rest-title { opacity: 0; }

/* Full caption revealed on hover */
.work-card .meta {
  position: absolute; inset: auto 0 0 0; z-index: 3; padding: 1.3rem 1.4rem;
  opacity: 0; transform: translateY(12px);
  transition: opacity .45s ease, transform .45s ease;
}
.work-card:hover .meta,
.work-card:focus-within .meta { opacity: 1; transform: none; }

/* Touch devices can't hover — show the caption permanently (Option D treatment):
   a taller, heavier cinematic gradient, legible on busy images too. */
@media (hover: none) {
  .work-card .frame::after {
    opacity: 1;
    background: linear-gradient(to top, rgba(8,8,9,.98) 0%, rgba(8,8,9,.9) 22%, rgba(8,8,9,.2) 68%, transparent 100%);
  }
  .work-card .meta { opacity: 1; transform: none; }
  .work-card .rest-title { display: none; }
}
.work-card .yr {
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-2);
  margin-bottom: .45rem;
}
.work-card h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.7rem; line-height: 1.05; margin: 0 0 .4rem;
}
.work-card p { margin: 0; font-size: .9rem; color: var(--ink-soft); max-width: 40ch; }

/* CTA card */
.work-card.cta {
  display: flex; flex-direction: column; justify-content: center;
  aspect-ratio: 3 / 2;
  padding: 2rem;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(185,154,107,.10), transparent 60%),
    var(--bg-2);
  text-align: left;
}
.work-card.cta .eyebrow { margin-bottom: .8rem; }
.work-card.cta h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; margin: 0 0 1.2rem; }
.work-card.cta .btn { align-self: flex-start; }

.also {
  margin-top: clamp(2rem, 5vh, 3rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; align-items: baseline;
}
.also .label { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); margin-right: .3rem; }
.also .chip { font-size: .85rem; color: var(--ink-soft); }
.also .chip:not(:last-child)::after { content: "·"; margin-left: 1.1rem; color: var(--line-2); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about-portrait { position: relative; }
.about-portrait > img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 3px; border: 1px solid var(--line);
}
/* Childhood candid — full-width feature below the bio, shown whole */
.about-candid { margin: clamp(2.75rem, 7vh, 5rem) auto 0; max-width: 760px; text-align: center; }
.about-candid img { display: block; width: 100%; height: auto; border-radius: 3px; border: 1px solid var(--line); }
.about-candid figcaption { margin-top: .85rem; font-size: .85rem; font-style: italic; color: var(--ink-mute); line-height: 1.4; }
.about-portrait::before {
  content: ""; position: absolute; inset: -14px -14px auto auto;
  width: 60%; height: 60%;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  opacity: .4;
}
.about-body p { color: var(--ink-soft); margin: 0 0 1.15rem; }
.about-body p:first-of-type { color: var(--ink); font-size: 1.12rem; }
.about-body .pullquote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.3;
  color: var(--ink); border-left: 2px solid var(--accent);
  padding-left: 1.3rem; margin: 2rem 0; max-width: 32ch;
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 380px; }
}

/* Enlarged section labels — Gallery, About & Work all match the Headshots label (was .72rem) */
#gallery .block-head .eyebrow,
#about .block-head .eyebrow,
#work .block-head .eyebrow,
#contact .eyebrow { font-size: 1.2rem; }
/* Gallery only: the label hugs the photos (no title/lede beneath it) */
#gallery .block-head { margin-bottom: clamp(1rem, 2.5vh, 1.6rem); }
#gallery .block-head .eyebrow { margin-bottom: 0; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(.7rem, 1.4vw, 1.1rem);
}
.gallery-grid figure {
  margin: 0; position: relative; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--line); border-radius: 3px; background: var(--panel);
}
.gallery-grid img {
  width: 100%; aspect-ratio: 2/3; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .4s ease;
}
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figure::after {
  content: "View"; position: absolute; inset: auto 0 0 0;
  padding: 1.6rem 1rem .9rem; text-align: right;
  font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
  background: linear-gradient(to top, rgba(8,8,9,.75), transparent);
  opacity: 0; transition: opacity .3s ease;
}
.gallery-grid figure:hover::after { opacity: 1; }

/* ---------- Early Years montage ---------- */
.montage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(.7rem, 1.4vw, 1.1rem);
}
.montage figure {
  margin: 0; position: relative; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--line); border-radius: 3px; background: var(--panel);
}
.montage img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  filter: saturate(.92) contrast(1.02);
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.montage figure:hover img { transform: scale(1.05); }
.montage-note {
  margin-top: 1.4rem; font-size: .78rem; letter-spacing: .04em;
  color: var(--ink-mute); font-style: italic;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  display: none; align-items: center; justify-content: center;
  background: rgba(5,5,6,.92); backdrop-filter: blur(6px);
  padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; width: auto; border: 1px solid var(--line-2); }
/* Lightbox caption — film title / year / studio, shown BELOW the still so it never covers the photo */
.lb-figure { position: relative; display: flex; flex-direction: column; margin: 0; max-width: 100%; max-height: 92vh; }
.lb-figure img { display: block; max-width: 100%; max-height: 80vh; width: auto; height: auto; }
.lb-caption { padding: 1rem 2px 0; line-height: 1.25; text-align: left; }
.lb-caption[hidden] { display: none; }
.lb-caption .lb-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 4.5vw, 2rem); color: #fff; }
.lb-caption .lb-yr { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); margin-top: .4rem; }
.lb-caption .lb-note { margin-top: .2rem; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink-soft); }
.lb-caption .lb-note:empty { display: none; }
.lightbox .close {
  position: absolute; top: 1.4rem; right: 1.6rem;
  font-size: 1.6rem; color: var(--ink-soft); background: none; border: 0; cursor: pointer; line-height: 1;
}
.lightbox .close:hover { color: var(--ink); }
/* Prev / next navigation */
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  background: none; border: 0; cursor: pointer; color: var(--ink-soft);
  font-family: var(--serif); font-size: 3.4rem; line-height: 1; padding: .3rem 1rem;
  transition: color .2s ease, transform .2s ease;
}
.lb-nav:hover { color: var(--ink); }
.lb-prev { left: clamp(.2rem, 2vw, 1.4rem); }
.lb-next { right: clamp(.2rem, 2vw, 1.4rem); }
.lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lb-next:hover { transform: translateY(-50%) translateX(3px); }

/* ---------- Behind the camera ---------- */
.camera {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(185,154,107,.05), transparent 70%),
    var(--bg-2);
}
.camera .inner { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.4fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.camera p { color: var(--ink-soft); margin: 0; }
.camera .films { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.camera .films span,
.camera .films a {
  font-size: .8rem; letter-spacing: .04em; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 2px; padding: .4rem .8rem;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.camera .films a { font-style: italic; }
.camera .films a:hover {
  border-color: var(--accent); color: var(--accent-2);
  background: rgba(185,154,107,.08);
}
@media (max-width: 720px) { .camera .inner { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact .section-title { margin-bottom: 1.5rem; }
.contact .email {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 6vw, 3.4rem);
  color: var(--ink);
  letter-spacing: .01em;
  display: inline-block;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: .2rem;
  transition: color .3s ease, border-color .3s ease;
}
.contact .email:hover { color: var(--accent-2); border-color: var(--accent); }
.contact .sub { color: var(--ink-mute); margin-top: 1.4rem; font-size: .9rem; }
/* Grand serif statement — the centerpiece of the contact page */
.contact .contact-lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);  /* grand on desktop (one line); wraps on narrow screens */
  line-height: 1.22;
  color: var(--ink);
  margin: 1.6rem auto 0;
}
.contact .links { display: flex; gap: 1rem; justify-content: center; margin-top: 2.4rem; flex-wrap: wrap; }
/* Larger Email Luke button (base .btn is .74rem / .85rem 1.4rem padding) */
.contact .btn { font-size: .95rem; padding: 1.25rem 2.6rem; }

/* ---------- Button ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 2px;
  padding: .85rem 1.4rem;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { border-color: var(--accent); background: rgba(185,154,107,.08); color: var(--accent-2); }
.btn.solid { background: var(--ink); color: #0a0a0b; border-color: var(--ink); }
.btn.solid:hover { background: var(--accent-2); border-color: var(--accent-2); color: #0a0a0b; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 2.6rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer .brand { font-size: 1.05rem; }
.footer .copy { font-size: .74rem; letter-spacing: .1em; color: var(--ink-mute); text-transform: uppercase; }
.footer a.top { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.footer a.top:hover { color: var(--accent); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .scroll-cue .line { animation: none; } }
