:root {
  --bg: #121212;
  --panel: #0c0c0c;
  --text: #f3f3f0;
  --muted: #a7a7a0;
  --soft: #6f6f68;
  --paper: #f3f3f0;
  --oscar-yellow: #d6b96f;
  --line: rgba(255, 255, 255, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 4vw, 56px);
  background: rgba(18, 18, 18, 0.72);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 13px;
}

.nav a {
  transition: color 180ms ease;
}

.nav a:hover {
  color: var(--text);
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0;
  scroll-margin-top: 90px;
}

.hero {
  position: relative;
  min-height: min(780px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 54px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--paper);
  font-size: clamp(72px, 12.5vw, 178px);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: 0.015em;
}

.hero-roles {
  margin: clamp(22px, 3vw, 36px) 0 0;
  color: var(--muted);
  font-size: clamp(22px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-roles strong {
  color: var(--text);
  font-weight: 800;
}

.bio-note {
  padding-top: 18px;
  padding-bottom: 92px;
}

.bio-note p {
  max-width: 900px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 26px);
  line-height: 1.28;
  letter-spacing: 0;
  text-align: center;
}

.award-highlight {
  color: var(--oscar-yellow);
}

.portrait-card {
  position: absolute;
  z-index: 1;
  right: clamp(0px, 4vw, 44px);
  top: 50%;
  width: min(44vw, 500px);
  max-height: min(70vh, 620px);
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5.15;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
  opacity: 0.58;
  transform: translateY(-50%);
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-card::after,
.project-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.45));
}

.section-heading {
  margin-bottom: 54px;
}

.section-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  margin: 0 0 100px;
}

.project-card--reverse {
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1.35fr);
}

.project-card--reverse .project-frame {
  order: 2;
}

.project-card--reverse .project-info {
  order: 1;
}

.project-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #111;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  transform: translateZ(0);
}

.project-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1200ms ease, transform 1200ms ease;
  will-change: opacity, transform;
}

.project-frame img.is-active {
  opacity: 1;
}

.project-frame:hover img {
  transform: scale(1.035);
}

.project-info {
  max-width: 390px;
}

.project-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-meta span {
  color: var(--text);
  font-weight: 800;
}

.project-meta strong {
  color: var(--soft);
  font-weight: 600;
}

.project-info h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.project-info > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--line);
}

.contact-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.contact-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--muted);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-links a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.04);
}

.reveal {
  opacity: 0;
  transform: translateY(72px);
  filter: blur(10px);
  transition:
    opacity 1000ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1000ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 1000ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

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

.project-card.reveal .project-frame,
.project-card.reveal .project-info {
  opacity: 0;
  transform: translateY(46px);
  transition:
    opacity 950ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 950ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card.reveal .project-info {
  transition-delay: 120ms;
}

.project-card.reveal.is-visible .project-frame,
.project-card.reveal.is-visible .project-info {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal,
  .project-card.reveal .project-frame,
  .project-card.reveal .project-info,
  .project-frame img {
    transition: none;
    transform: none;
    filter: none;
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 18px clamp(16px, 5vw, 28px);
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 16px;
    overflow: visible;
    font-size: 12px;
    line-height: 1.2;
  }

  .section {
    width: min(var(--max), calc(100% - 32px));
    padding: 82px 0;
  }

  .project-card,
  .project-card--reverse {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 92px;
    padding-bottom: 78px;
  }

  .portrait-card {
    right: 0;
    width: min(68vw, 360px);
    max-height: 430px;
    opacity: 0.42;
  }

  .bio-note {
    padding-top: 18px;
    padding-bottom: 64px;
  }

  .project-card--reverse .project-frame,
  .project-card--reverse .project-info {
    order: initial;
  }

  .project-info {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 12px;
    letter-spacing: 0.22em;
  }

  .nav {
    justify-content: space-between;
    gap: 10px 12px;
  }

  .nav a {
    flex: 0 1 auto;
  }

  .section {
    scroll-margin-top: 128px;
  }

  .hero {
    align-items: flex-start;
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 56px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(54px, 18vw, 78px);
    line-height: 0.86;
    letter-spacing: 0.01em;
  }

  .hero-roles {
    max-width: 300px;
    font-size: clamp(17px, 5.6vw, 24px);
    line-height: 1.14;
    letter-spacing: 0;
  }

  .portrait-card {
    top: auto;
    right: -22px;
    bottom: 32px;
    width: min(58vw, 250px);
    max-height: 320px;
    transform: none;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2,
  .contact h2 {
    font-size: clamp(30px, 9.4vw, 44px);
    line-height: 1.02;
    letter-spacing: 0.02em;
  }

  .project-card {
    gap: 22px;
    margin-bottom: 70px;
  }

  .project-frame {
    border-radius: 14px;
  }

  .project-info h3 {
    font-size: clamp(26px, 8.4vw, 36px);
    line-height: 1.04;
    letter-spacing: -0.02em;
  }

  .bio-note p,
  .project-info > p,
  .contact-text {
    line-height: 1.5;
  }

  .contact {
    min-height: auto;
  }

  .contact-links {
    gap: 10px;
  }

  .contact-links a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .site-header {
    padding-inline: 14px;
  }

  .nav {
    justify-content: flex-start;
    gap: 9px 12px;
  }

  .nav a {
    font-size: 11px;
  }

  .section {
    width: min(var(--max), calc(100% - 28px));
  }

  .section-heading h2,
  .contact h2 {
    font-size: clamp(28px, 8.8vw, 34px);
  }
}
