* {
  box-sizing: border-box;
}

:root {
  --background: #fff7ea;
  --text: #262626;
  --muted: #626262;
  --accent: #fbc033;
  --accent-dark: #4f52b8;
  --max-width: 1160px;
  --radius: 18px;
  --shadow-soft: 0 22px 45px rgba(79, 82, 184, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

svg {
  width: 100%;
  height: 100%;
}

.hero {
  padding: 6.5rem 1.5rem 4rem;
  display: flex;
  justify-content: center;
}

.hero__inner {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero__eyebrow {
  margin: 0;
  margin-top: 0.45rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 0.95rem;
  color: #8e8e8e;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--accent);
  text-transform: none;
}

.hero__links {
  display: flex;
  gap: 0.85rem;
  position: absolute;
  top: 50%;
  right: -3.5rem;
  transform: translateY(-50%);
  z-index: 5;
}

.hero__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 1px solid rgba(38, 38, 38, 0.16);
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero__link:hover,
.hero__link:focus-visible {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(38, 38, 38, 0.32);
  outline: none;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
}

.hero__link svg path {
  fill: currentColor;
}

@media (max-width: 768px) {
  .hero__links {
    position: static;
    transform: none;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.section {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(31, 33, 83, 0.35);
}

.showreel .video-frame {
  max-width: 80%;
  margin: 0 auto;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.project-media {
  position: relative;
  aspect-ratio: 256 / 135;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--background);
}

.project-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--poster-image, var(--background));
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

.project-card:hover .project-media::before,
.project-card:focus-within .project-media::before {
  transform: scale(1.03);
}

.project-media.is-playing::before {
  opacity: 0;
  transform: none;
}

.project-media.is-playing {
  background: var(--background);
}

.project-play {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.project-play:hover,
.project-play:focus-visible {
  background: rgba(0, 0, 0, 0.35);
  transform: scale(1.02);
  outline: none;
}

.project-play svg {
  width: 64px;
  height: 64px;
}

.project-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: var(--radius);
  background-color: var(--background);
}

.project-meta h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.project-role {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.95rem;
}

.site-footer {
  text-align: center;
  padding: 1.1rem 1.5rem;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 300;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 4.5rem;
  }

  .showreel .video-frame {
    max-width: 100%;
  }

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

@media (max-width: 640px) {
  .hero {
    padding-top: 4rem;
  }

  .project-grid {
    gap: 2rem;
  }
}

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

  .project-card:hover .project-media::before,
  .project-card:focus-within .project-media::before,
  .project-play:hover,
  .project-play:focus-visible,
  .hero__link:hover,
  .hero__link:focus-visible {
    transform: none;
  }

  .project-media::before,
  .project-play,
  .hero__link {
    transition: none;
  }
}
