:root {
  color-scheme: light;
  --bg: oklch(0.96 0.018 48);
  --surface: oklch(0.9 0.025 30 / 0.68);
  --text: oklch(0.22 0.03 28);
  --text-soft: oklch(0.38 0.028 26);
  --text-inverse: oklch(0.96 0.015 40);
  --line: oklch(0.72 0.04 28 / 0.35);
  --accent: oklch(0.54 0.15 18);
  --accent-deep: oklch(0.38 0.11 12);
  --gold: oklch(0.76 0.08 73);
  --shadow: 0 24px 80px oklch(0.3 0.05 10 / 0.18);
  --radius: 1.75rem;
  --content-width: min(1120px, calc(100vw - 2.5rem));
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at top left, oklch(0.99 0.03 75) 0%, transparent 30%),
    radial-gradient(circle at 85% 20%, oklch(0.88 0.08 18 / 0.28) 0%, transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, oklch(0.94 0.025 30) 45%, oklch(0.9 0.03 18) 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(to right, transparent 0, transparent calc(100% - 1px), oklch(0.6 0.03 30 / 0.08) 100%),
    linear-gradient(to bottom, transparent 0, transparent calc(100% - 1px), oklch(0.6 0.03 30 / 0.08) 100%);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, oklch(0 0 0 / 0.7), transparent 90%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.page-shell {
  position: relative;
  overflow: clip;
}

.site-header,
.hero,
.profile,
.filmography,
.spotlight,
.site-footer {
  width: var(--content-width);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, oklch(0.96 0.02 40 / 0.78), oklch(0.96 0.02 40 / 0.22));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, oklch(0.86 0.09 75), oklch(0.55 0.16 18) 60%, oklch(0.37 0.08 12) 100%);
  box-shadow: 0 0 0 6px oklch(0.94 0.02 35 / 0.9);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: oklch(0.95 0.02 34 / 0.65);
}

.site-nav a {
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  color: var(--text-soft);
  transition:
    background-color 180ms var(--ease-out-quart),
    color 180ms var(--ease-out-quart),
    transform 180ms var(--ease-out-quart);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: oklch(0.89 0.035 38 / 0.95);
  transform: translateY(-1px);
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2rem, 7vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--accent-deep);
}

h1,
h2,
h3,
.spotlight-line,
.footer-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4.2rem, 10vw, 8.5rem);
}

h2 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 5.5vw, 4.75rem);
}

h3 {
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.hero-lead,
.profile-text,
.profile-note p,
.film-card p,
.footer-copy,
.footer-meta,
.gallery-caption {
  color: var(--text-soft);
}

.hero-lead {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 220ms var(--ease-out-expo),
    background-color 220ms var(--ease-out-expo),
    border-color 220ms var(--ease-out-expo),
    color 220ms var(--ease-out-expo);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in oklch, var(--accent), var(--gold) 26%) 100%);
  box-shadow: 0 16px 40px oklch(0.45 0.12 18 / 0.25);
}

.button-secondary {
  border-color: var(--line);
  background: oklch(0.95 0.02 30 / 0.65);
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: end;
  margin: 0;
}

.portrait-frame {
  position: relative;
  width: min(100%, 30rem);
  aspect-ratio: 4 / 5;
  overflow: clip;
  border-radius: min(42vw, 13rem) min(42vw, 13rem) 2rem 2rem;
  background:
    linear-gradient(155deg, oklch(0.98 0.02 62 / 0.9), oklch(0.88 0.05 25 / 0.78)),
    linear-gradient(180deg, oklch(0.99 0.02 75 / 0.4), oklch(0.86 0.04 20 / 0.2));
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(0.98) contrast(1.02) brightness(0.98);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, oklch(0.25 0.05 10 / 0.22) 100%);
}

.frame-glow {
  position: absolute;
  inset: auto 6% 5% auto;
  width: 45%;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.75 0.08 73 / 0.45), transparent 70%);
  filter: blur(24px);
  z-index: 1;
}

.visual-caption {
  max-width: 18rem;
  margin: 1rem 0 0;
  text-align: right;
  color: var(--text-soft);
}

.profile,
.filmography,
.spotlight,
.site-footer {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.section-heading {
  display: grid;
  gap: 0.65rem;
}

.profile-layout {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(16rem, 0.7fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.profile-text {
  max-width: 34ch;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
}

.profile-note {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.note-label,
.film-year {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.film-grid {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.film-card {
  min-height: 18rem;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, oklch(0.96 0.02 40 / 0.85), oklch(0.9 0.03 24 / 0.8)),
    linear-gradient(135deg, oklch(0.99 0.03 70 / 0.24), transparent 45%);
  box-shadow: var(--shadow);
  transition:
    transform 260ms var(--ease-out-expo),
    border-color 260ms var(--ease-out-expo);
}

.film-card:hover {
  transform: translateY(-6px);
  border-color: oklch(0.62 0.08 24 / 0.45);
}

.film-card-featured,
.film-card-image-only {
  overflow: clip;
  padding: 0;
}

.film-card-featured {
  grid-column: span 2;
}

.film-photo-wrap {
  aspect-ratio: 16 / 10;
  overflow: clip;
}

.film-photo,
.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-photo {
  object-position: center 18%;
}

.gallery-image {
  min-height: 100%;
  object-position: center top;
}

.film-copy,
.gallery-caption {
  padding: 1.4rem;
}

.gallery-caption {
  margin: 0;
}

.spotlight {
  position: relative;
}

.spotlight::before {
  content: "";
  position: absolute;
  inset: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}

.spotlight-line {
  position: relative;
  max-width: 12ch;
  padding: clamp(2rem, 5vw, 4rem) 0;
  font-size: clamp(3rem, 6vw, 5.5rem);
  text-wrap: balance;
}

.site-footer {
  display: grid;
  gap: 0.6rem;
  padding-bottom: 3rem;
}

.footer-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.footer-copy {
  max-width: 40rem;
}

.credit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.3rem;
}

.footer-link {
  width: fit-content;
  color: var(--accent-deep);
}

.footer-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-meta {
  margin: 0.3rem 0 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 680ms var(--ease-out-expo),
    transform 680ms var(--ease-out-expo);
  transition-delay: calc(var(--reveal-order, 0) * 70ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .profile-layout,
  .film-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  .hero-visual {
    justify-items: stretch;
  }

  .portrait-frame {
    width: min(100%, 34rem);
    margin-inline: auto;
  }

  .visual-caption {
    text-align: left;
  }

  .film-card,
  .film-card-featured {
    grid-column: auto;
    min-height: 15rem;
  }

  .film-card-image-only {
    min-height: 26rem;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    width: min(100vw - 1.2rem, var(--content-width));
    padding: 0.9rem 0;
  }

  .site-nav {
    justify-content: space-between;
    width: 100%;
  }

  .site-nav a {
    flex: 1 1 0;
    text-align: center;
    padding-inline: 0.65rem;
    font-size: 0.92rem;
  }

  h1 {
    max-width: 11ch;
  }

  .spotlight-line {
    max-width: 10ch;
  }

  .credit-list {
    flex-direction: column;
    gap: 0.45rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
