@import url("https://fonts.googleapis.com/css2?family=Carlito:wght@400&display=swap");

    :root {
      --bg: #101010;
      --surface: #1d1d1d;
      --text: #f5f5f3;
      --muted: #a0a0a0;
      --border: #303030;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      font-family: "Carlito", Arial, sans-serif;
      font-weight: 400;
      letter-spacing: .02em;
      line-height: 1.6;
    }

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

    a:hover {
      color: #aaa;
    }

    button {
      font: inherit;
    }

    .container {
      max-width: 1400px;
      margin: auto;
      padding: 0 5%;
    }

    /* HEADER */

    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 25px;
      padding: 32px 0;
    }

    .logo {
      font-size: 18px;
      font-weight: 400;
      letter-spacing: .02em;
    }

    nav {
      display: flex;
      gap: 32px;
    }

    nav a {
      font-size: 12px;
      letter-spacing: .02em;
      text-transform: uppercase;
    }

    /* HERO */

    .hero {
      padding: 105px 0 65px;
    }

    .eyebrow {
      font-size: 12px;
      color: var(--muted);
      letter-spacing: .02em;
      text-transform: uppercase;
    }

    h1 {
      font-size: clamp(48px, 8vw, 112px);
      line-height: 1.05;
      font-weight: 400;
      letter-spacing: .02em;
      margin: 25px 0;
    }

    .subtitle {
      color: var(--muted);
      font-size: 16px;
    }

    /* SHOWREEL */

    .showreel {
      padding-bottom: 35px;
    }

    .video-container {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      background: #000;
      overflow: hidden;
    }

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

    /* Main reel: poster stays visible until the visitor presses play. */
    .showreel-poster {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      width: 100%;
      height: 100%;
      padding: 0;
      border: 0;
      background: #171717;
      color: white;
      cursor: pointer;
    }

    .showreel-poster img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .showreel-play {
      position: relative;
      display: grid;
      place-items: center;
      width: 56px;
      height: 56px;
      border: 1px solid rgba(255,255,255,.55);
      border-radius: 50%;
      background: rgba(0,0,0,.35);
      transition: background .2s, border-color .2s;
    }

    .showreel-play::before {
      content: "";
      margin-left: 3px;
      border-top: 8px solid transparent;
      border-bottom: 8px solid transparent;
      border-left: 12px solid currentColor;
    }

    .showreel-poster:hover .showreel-play {
      background: rgba(0,0,0,.65);
      border-color: white;
    }

    .showreel-poster:focus-visible {
      outline: 2px solid white;
      outline-offset: -4px;
    }

    .video-caption {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      padding-top: 17px;
      font-size: 13px;
    }

    .video-caption span:last-child {
      color: var(--muted);
    }

    /* SECTIONS */

    section {
      padding: 90px 0;
    }

    h2 {
      font-size: clamp(32px, 4vw, 52px);
      font-weight: 400;
      letter-spacing: .02em;
      margin: 0 0 40px;
    }

    /* PROJECT GRID */

    .projects {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 45px 24px;
    }

    .project {
      min-width: 0;
    }

    .project-image {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      border: 0;
      background: linear-gradient(135deg, #33363b, #191919);
      color: #bbb;
      cursor: pointer;
      display: grid;
      place-items: center;
      overflow: hidden;
      transition: filter .3s;
    }

    .project-image:hover {
      filter: brightness(1.25);
    }

    .project-image:focus-visible,
    .close-video:focus-visible {
      outline: 2px solid white;
      outline-offset: 4px;
    }

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

    .play-icon {
      position: relative;
      z-index: 1;
      display: grid;
      place-items: center;
      width: 64px;
      height: 64px;
      border: 1px solid rgba(255,255,255,.7);
      border-radius: 50%;
      background: rgba(0,0,0,.25);
      color: white;
      font-size: 23px;
    }

    .project h3 {
      font-size: 19px;
      font-weight: 400;
      margin: 15px 0 3px;
    }

    .project p {
      color: var(--muted);
      font-size: 13px;
      margin: 0;
    }

    /* ABOUT */

    .about-text {
      max-width: 780px;
      color: #bdbdbd;
      font-size: clamp(17px, 2vw, 21px);
      line-height: 1.8;
    }

    /* CONTACT */

    .contact {
      border-top: 1px solid var(--border);
    }

    .contact-link {
      display: inline-block;
      font-size: clamp(24px, 5vw, 58px);
      letter-spacing: .02em;
      border-bottom: 1px solid #777;
      overflow-wrap: anywhere;
    }

    /* FOOTER */

    footer {
      border-top: 1px solid var(--border);
      padding: 30px 0;
      color: var(--muted);
      font-size: 12px;
    }

    /* VIDEO POPUP */

    .video-modal {
      position: fixed;
      inset: 0;
      z-index: 1000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 60px 20px;
      background: rgba(0,0,0,.95);
    }

    .video-modal.active {
      display: flex;
    }

    .modal-content {
      width: min(1100px, 100%);
      aspect-ratio: 16 / 9;
    }

    .modal-content iframe {
      width: 100%;
      height: 100%;
      border: 0;
    }

    .close-video {
      position: absolute;
      top: 15px;
      right: 25px;
      border: 0;
      background: transparent;
      color: white;
      font-size: 42px;
      cursor: pointer;
    }

    /* MOBILE */

    @media (max-width: 650px) {
      header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
      }

      nav {
        gap: 22px;
      }

      .hero {
        padding: 65px 0 45px;
      }

      section {
        padding: 65px 0;
      }

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

      .video-caption {
        flex-direction: column;
        gap: 2px;
      }
    }

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

      * {
        transition: none !important;
      }
    }
  
    .category-nav { display: flex; flex-wrap: wrap; gap: 24px; margin: 0 0 40px; }
    .category-nav a { color: var(--muted); border-bottom: 1px solid transparent; }
    .category-nav a[aria-current="page"] { color: var(--text); border-color: var(--text); }
    .empty-state { color: var(--muted); padding: 40px 0 90px; border-top: 1px solid var(--border); }
    .category-films { padding-top: 0; }
    .category-card:hover { color: var(--text); }
    .category-card:focus-visible { outline: 2px solid white; outline-offset: 6px; }
    .category-card .project-image { color: var(--text); }

    .featured-player { margin-bottom: 48px; scroll-margin-top: 24px; }
    .featured-player[hidden] { display: none; }
