:root {
  --bg: #0a0a0b;
  --panel: #121216;
  --panel-2: #17171c;
  --text: #f5f5f7;
  --text-dim: #b7b9c0;
  --line: #2a2d35;
  --accent: #e6b874;
  --max: 1200px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 15% 0%, #1a1c24 0%, var(--bg) 45%), var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.55;
  scroll-behavior: smooth;
}

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

a {
  color: var(--text);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.hero {
  min-height: 78vh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: clip;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 20%) 15%, rgb(0 0 0 / 72%) 72%),
    linear-gradient(90deg, rgb(0 0 0 / 65%) 0%, rgb(0 0 0 / 20%) 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.6rem;
  max-width: 880px;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  margin-top: 0.65rem;
  font-size: clamp(1.9rem, 4.2vw, 3.3rem);
  text-wrap: balance;
}

.hero-content p {
  max-width: 66ch;
  color: #ebecef;
}

.hero-tagline {
  margin: 0.62rem 0 0.75rem;
  color: var(--accent);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

@media (min-width: 701px) {
  .hero-tagline {
    white-space: nowrap;
  }
}

.section {
  padding: clamp(2.8rem, 5.5vw, 5rem) 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin-top: 0.55rem;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.works-subhead {
  margin: 1.2rem 0 0.75rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.work-card {
  margin: 0;
  background: linear-gradient(180deg, rgb(255 255 255 / 2%), rgb(255 255 255 / 0%));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.work-card + .work-card {
  margin-top: 1.1rem;
}

.work-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  background: #09090b;
}

.work-media-grid.single {
  grid-template-columns: 1fr;
}

.work-media-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #050506;
}

.work-content {
  padding: 1.2rem 1.2rem 1.35rem;
}

.work-content h3 {
  font-size: 1.25rem;
}

.work-meta {
  margin: 0.4rem 0 0.75rem;
  color: var(--text-dim);
  font-size: 0.93rem;
}

.work-content p {
  margin: 0.55rem 0;
}

.work-content a,
.profile-layout a {
  color: #8ec5ff;
  text-decoration: none;
}

.work-content a:hover,
.work-content a:focus-visible,
.profile-layout a:hover,
.profile-layout a:focus-visible {
  color: #b7dcff;
}

.video-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.video-grid iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 10px;
  background: #000;
}

.more-videos {
  margin-top: 0.7rem;
}

.more-videos summary {
  cursor: pointer;
  color: #e27a7a;
  width: fit-content;
  font-size: 0.92rem;
}

.more-videos summary:hover,
.more-videos summary:focus-visible {
  color: #f0a0a0;
}

.more-videos[open] summary {
  margin-bottom: 0.6rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  align-items: start;
}

.profile-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.profile-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgb(255 255 255 / 10%);
  background: #000;
}

.contact-hero {
  min-height: 54vh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: clip;
}

.contact-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 18%) 20%, rgb(0 0 0 / 52%) 78%),
    linear-gradient(90deg, rgb(0 0 0 / 48%) 0%, rgb(0 0 0 / 18%) 85%);
}

.contact-hero-content {
  position: relative;
  z-index: 1;
  padding: 3.2rem 0 2.8rem;
  max-width: 680px;
}

.contact-hero-content p {
  margin: 0.55rem 0;
}

.contact-hero-content a {
  text-decoration: none;
}

.contact-email-link {
  color: #8ec5ff;
}

.contact-email-link:hover,
.contact-email-link:focus-visible {
  color: #b7dcff;
}

.contact-resume-link {
  color: #e27a7a;
}

.contact-resume-link:hover,
.contact-resume-link:focus-visible {
  color: #f0a0a0;
}

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

  .work-media-grid img {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero {
    min-height: 68vh;
  }

  .work-media-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-hero {
    min-height: 44vh;
  }

  .work-media-grid img {
    aspect-ratio: 1 / 1;
  }
}
