:root {
  --bg: #ffffff;
  --surface: #f4f1ec;
  --surface-soft: #faf8f5;
  --text: #111111;
  --muted: #635d56;
  --line: #e8e0d7;
  --line-strong: #c8bbac;
  --max-width: 1240px;
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

button,
a {
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 50;
  padding: 0.75rem 1rem;
  background: #111;
  color: #fff;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header,
.section,
.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: transparent;
  backdrop-filter: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.7rem;
  height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: grid;
}

.brand-text span:first-child {
  font-weight: 800;
  font-size: 0.98rem;
  color: #fff;
}

.brand-text span:last-child {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  color: #df6a1f;
  text-shadow: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border-radius: 999px;
  padding: 0.7rem 1rem;
}

.section {
  padding: 4.5rem 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #6a6158;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.profile-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  width: 100%;
  max-width: none;
}

.profile-hero-title h1,
.contact-card h2,
.project-detail-title {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.profile-hero-title h1 {
  font-size: clamp(2.9rem, 5.45vw, 5.85rem);
  line-height: 1;
  max-width: none;
  white-space: nowrap;
  color: #df6a1f;
  letter-spacing: -0.01em;
}

.lead,
.section-intro,
.profile-paragraphs p,
.sidebar-copy,
.site-footer,
.project-description,
.project-facts,
.project-meta,
.project-card-meta,
.project-card-year {
  color: var(--muted);
}

.lead,
.section-intro,
.profile-paragraphs p,
.project-description {
  font-size: 1.05rem;
}

.hero-actions,
.contact-actions,
.profile-links,
.project-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button,
.text-link,
.imdb-link,
.project-title-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: #111;
  border-color: #111;
  color: #fff;
}

.button-secondary,
.text-link {
  background: #fff;
  color: #111;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.imdb-link:hover,
.imdb-link:focus-visible,
.project-title-link:hover,
.project-title-link:focus-visible,
.project-card-link:hover,
.project-card-link:focus-visible,
.project-card-open:hover,
.project-card-open:focus-visible {
  transform: translateY(-2px);
}

.profile-hero-visual {
  position: relative;
  min-height: clamp(22rem, 58vw, 42rem);
  overflow: hidden;
  background: #000;
}

.profile-hero-title {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding-top: 0.2rem;
  padding-bottom: 0.35rem;
  text-align: left;
}

.profile-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, 0.16) 72%, rgba(0, 0, 0, 0.58) 100%);
  pointer-events: none;
}

.profile-body {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.profile-body-flow {
  width: min(calc(100% - 2rem), 48rem);
  margin: 0;
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}

.profile-landing-gif {
  margin: -0.2rem 0 -0.3rem;
  width: min(100%, 43rem);
}

.profile-landing-gif img {
  display: block;
  width: 100%;
  height: auto;
}

.profile-paragraphs {
  display: grid;
  gap: 1rem;
}

.profile-paragraphs p {
  margin: 0;
}

.sidebar-copy {
  white-space: pre-line;
}

.profile-panel,
.contact-card {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.profile-paragraphs + .profile-panel {
  margin-top: 1.8rem;
}

.imdb-link {
  padding: 0.7rem 0.9rem;
  background: #f5c518;
  border-color: #d8af00;
  color: #111;
}

.imdb-link-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.12rem 0.42rem;
  background: #111;
  color: #f5c518;
  border-radius: 7px;
  font-weight: 800;
}

.projects-section {
  width: 100%;
  max-width: none;
  padding: 4rem 0 5rem;
}

.contact-section {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding-top: 1rem;
}

.contact-section .profile-landing-gif {
  width: min(100%, 39.5rem);
  margin: 0 0 -1.25rem 3.5rem;
  overflow: hidden;
  max-height: 15.5rem;
}

.contact-card {
  width: min(100%, 39.5rem);
  margin-left: 6.5rem;
  padding-top: 0.05rem;
}

.contact-section .profile-landing-gif img {
  margin-bottom: -5.5rem;
}

.contact-card h2 {
  font-family: "Manrope", sans-serif;
  font-size: 0.89rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
}

.projects-page-head {
  margin: 0 auto 2rem;
  width: min(calc(100% - 2rem), 1380px);
}

.projects-page-head h2 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.projects-list {
  display: block;
}

.projects-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 0;
  align-items: start;
}

.projects-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-card-poster {
  display: block;
  margin: 0;
}

.project-card-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.project-card-image {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}

.project-card--on-freddie-roach .project-card-image {
  width: 100%;
  min-height: 100%;
}

.project-card-placeholder {
  min-height: 28rem;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--muted);
}

.project-card-info {
  display: grid;
  gap: 0.45rem;
}

.project-card-year {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.project-card-title {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.project-card-meta {
  margin: 0;
  font-size: 0.98rem;
}

.project-card-open {
  width: fit-content;
  margin-top: 0.3rem;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.contact-section {
  padding-bottom: 1.5rem;
}

.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  padding: 1.8rem 0 2rem;
  font-size: 0.9rem;
}

.project-detail-page {
  padding-top: 5rem;
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.project-detail-media {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.project-detail-poster {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.project-detail-copy {
  display: grid;
  gap: 0.85rem;
}

.project-detail-title {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.project-title-link {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  justify-content: flex-start;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 750ms ease,
    transform 750ms ease;
  transition-delay: var(--delay, 0ms);
}

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

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

  .reveal,
  button,
  a {
    transition: none;
    transform: none;
  }
}

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

  .site-header {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

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

@media (max-width: 640px) {
  .site-header,
  .section,
  .site-footer,
  .projects-section {
    width: min(calc(100% - 1rem), 1380px);
  }

  .section {
    padding: 3.8rem 0;
  }

  .projects-section {
    width: 100%;
  }

  .projects-page-head {
    width: min(calc(100% - 1rem), 1380px);
  }

  .profile-body-flow {
    width: min(calc(100% - 1rem), 48rem);
  }

  .profile-hero-title {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .profile-hero-title h1,
  .project-detail-title,
  .contact-card h2,
  .projects-page-head h2 {
    font-size: clamp(3rem, 14vw, 4.8rem);
    white-space: normal;
  }

  .hero-actions,
  .contact-actions,
  .profile-links,
  .project-detail-links {
    flex-direction: column;
  }

  .button,
  .text-link,
  .imdb-link {
    width: 100%;
  }

  .imdb-link {
    width: fit-content;
  }

  .profile-hero-visual {
    min-height: 16rem;
  }
}
