/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --card-bg: #111111;
  --white: #f5f5f3;
  --gray: #888888;
  --gray-dark: #222222;
  --gray-light: #d0d0d0;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gap: clamp(1rem, 2.5vw, 2rem);
}

html {
  font-family: var(--font);
  font-size: 16px;
  background: var(--black);
  color: var(--white);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  background-color: var(--black);
}

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

/* ─── NAV ──────────────────────────────────────────────────── */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--gap);
  mix-blend-mode: difference;
}

.nav__name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.nav__links a:hover { opacity: 1; }

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 90dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--gap) * 4) var(--gap) calc(var(--gap) * 2);
}

.hero__top {
  display: flex;
  flex-direction: column;
}

.hero__title {
  font-size: clamp(3.5rem, 13vw, 13rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hero__sub {
  margin-top: 1.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ─── HERO GIF SHOWCASE (COLOR & MOVEMENT) ─────────────────── */
.hero__showcase {
  margin-top: calc(var(--gap) * 2);
  width: 100%;
  overflow: hidden;
}

.showcase-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.showcase-strip::-webkit-scrollbar {
  height: 4px;
}

.showcase-strip::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 999px;
}

.showcase-card {
  position: relative;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #222;
  background: #111;
  text-decoration: none;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.showcase-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.showcase-card--vertical {
  height: clamp(180px, 24vh, 230px);
  aspect-ratio: 9 / 16;
}

.showcase-card--horizontal {
  height: clamp(180px, 24vh, 230px);
  aspect-ratio: 16 / 9;
}

.showcase-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-card__tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

/* ─── WORK SECTION ─────────────────────────────────────────── */
.work {
  padding: calc(var(--gap) * 2.5) var(--gap);
  border-top: 1px solid var(--gray-dark);
}

.work__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: calc(var(--gap) * 2);
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--gray-dark);
  color: var(--gray);
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-btn:hover {
  color: var(--white);
  border-color: #444;
}

.filter-btn.active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  font-weight: 600;
}

/* ─── PROJECT BLOCK ────────────────────────────────────────── */
.project-section {
  margin-bottom: calc(var(--gap) * 4);
}

.project-section:last-child {
  margin-bottom: calc(var(--gap) * 2);
}

.project-section.hidden {
  display: none;
}

.project__intro {
  max-width: 68ch;
  margin: -0.35rem 0 1.6rem;
  color: var(--gray-light);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.65;
}
.project__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: calc(var(--gap) * 1.5);
  border-bottom: 1px solid var(--gray-dark);
  padding-bottom: 0.75rem;
}

.project__label {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--white);
}

.project__tag {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ─── VIDEO GRID (MASONRY COLUMNS) ─────────────────────────── */
.video-grid {
  columns: 3 280px;
  column-gap: var(--gap);
}

.video-item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  position: relative;
  background: var(--card-bg);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #1a1a1a;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.video-item:hover {
  transform: translateY(-3px);
  border-color: #333;
}

.video-item--vertical {
  aspect-ratio: 9 / 16;
}

.video-item--horizontal {
  aspect-ratio: 16 / 9;
}

.video-item--four-three {
  aspect-ratio: 4 / 3;
}

.video-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
}

/* Hover play overlay / controls indicator */
.video-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.video-item:hover .video-item__overlay {
  opacity: 1;
}

.play-icon {
  width: 48px;
  height: 48px;
  border: 2px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.play-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid var(--white);
  margin-left: 3px;
}

/* ─── ABOUT ─────────────────────────────────────────────────── */
.about {
  padding: calc(var(--gap) * 4) var(--gap);
  border-top: 1px solid var(--gray-dark);
}

.about__inner {
  max-width: 1100px;
}

.about__title {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: calc(var(--gap) * 2);
}

.about__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: calc(var(--gap) * 3);
  align-items: start;
}

.about__profile {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  width: 100%;
}

.about__photo-wrapper {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--gray-dark);
  background: #111;
}

.about__photo {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%) contrast(110%);
  transition: filter 0.4s ease;
}

.about__photo:hover {
  filter: grayscale(80%) contrast(105%);
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: calc(var(--gap) * 1.5);
}

.about__bio {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.65;
  color: var(--gray-light);
  font-weight: 300;
}

.about__toolset {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.about__toolset-title {
  color: var(--gray);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about__tags li {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--gray-dark);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.025);
  color: var(--gray-light);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.contact {
  scroll-margin-top: 6rem;
  padding: calc(var(--gap) * 3) var(--gap);
  border-top: 1px solid var(--gray-dark);
}

.contact__inner {
  max-width: 1100px;
}

.contact__title {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 1rem;
}

.contact__copy {
  color: var(--gray-light);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  margin-bottom: calc(var(--gap) * 1.5);
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--gap) * 2);
}

.contact__link {
  min-width: min(100%, 280px);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--gray-dark);
  color: var(--gray);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.contact__link span {
  color: var(--white);
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: 0;
  text-transform: none;
}

.contact__link:hover {
  color: var(--white);
}
/* ─── FOOTER ────────────────────────────────────────────────── */
.footer {
  padding: calc(var(--gap) * 2) var(--gap);
  border-top: 1px solid var(--gray-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

.footer__links {
  display: flex;
  gap: 2.5rem;
}

.footer a:hover {
  color: var(--white);
  transition: color 0.2s ease;
}

/* ─── VIDEO LIGHTBOX MODAL ─────────────────────────────────── */
body:has(dialog[open]) {
  overflow: hidden;
}

.video-modal {
  margin: auto;
  border: none;
  background: transparent;
  padding: 0;
  max-width: 95vw;
  max-height: 92vh;
  outline: none;
  overflow: visible;
  transition-property: opacity, transform, overlay, display;
  transition-duration: 0.25s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
  opacity: 0;
  transform: scale(0.96);
}

.video-modal[open] {
  opacity: 1;
  transform: scale(1);
}

@starting-style {
  .video-modal[open] {
    opacity: 0;
    transform: scale(0.96);
  }
}

.video-modal::backdrop {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition-property: background-color, backdrop-filter, overlay, display;
  transition-duration: 0.25s;
  transition-behavior: allow-discrete;
}

.video-modal__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.video-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  border: 1px solid #333;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.video-modal__close:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.video-modal__player-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  width: 100%;
}

/* Vertical modal format (Reels / 9:16) */
.video-modal--vertical .video-modal__inner {
  width: auto;
}

.video-modal--vertical #modal-native-container {
  height: min(78vh, 720px);
  aspect-ratio: 9 / 16;
  width: auto;
  max-width: 90vw;
}

.video-modal--vertical #modal-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Horizontal modal format (Widescreen 16:9 / 4:3) */
.video-modal--horizontal .video-modal__inner {
  width: min(90vw, 980px);
}

.video-modal--horizontal #modal-native-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 78vh;
}

.video-modal--horizontal #modal-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

#modal-youtube-player {
  width: min(88vw, 980px);
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 78vh;
  border: none;
  display: block;
}

.video-item img.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.video-item:hover img.video-thumb {
  transform: scale(1.03);
}

.video-modal__info {
  width: 100%;
  padding: 0.9rem 1.4rem;
  background: #0a0a0a;
  border-top: 1px solid #1f1f1f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.video-modal__title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-modal__project {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 860px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: calc(var(--gap) * 2);
  }

  .about__profile {
    max-width: 260px;
  }
}

@media (max-width: 640px) {
  .video-grid {
    columns: 1;
  }

  .hero {
    min-height: 75dvh;
  }
}

/* Autoplay previews start muted at a ready-to-use 60% volume. Keep the slider
   tucked away until someone opens the sound control. */
.video-item__controls {
  align-items: center;
  gap: 0.4rem;
}

.video-item__volume-control {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  overflow: hidden;
  transition: gap 0.2s ease, padding 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.video-item__volume-control.is-volume-open {
  gap: 0.2rem;
  padding-right: 0.45rem;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(7, 7, 7, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.video-item__volume-control .video-item__volume {
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.video-item__volume-slider {
  flex: 0 0 0;
  width: 0;
  min-width: 0;
  height: 1.25rem;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  accent-color: #fff;
  cursor: pointer;
  transition: flex-basis 0.2s ease, width 0.2s ease, opacity 0.15s ease;
}

.video-item__volume-control.is-volume-open .video-item__volume-slider {
  flex-basis: clamp(3.4rem, 5vw, 4.5rem);
  width: clamp(3.4rem, 5vw, 4.5rem);
  opacity: 1;
  pointer-events: auto;
}

.video-modal__player-container {
  position: relative;
}

.video-modal__controls {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 12;
}

#modal-youtube-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 78vh;
}

.video-modal__youtube-mount,
.video-modal__youtube-target,
#modal-youtube-container iframe {
  display: block;
  width: 100%;
  height: 100%;
}

#modal-youtube-container iframe {
  border: 0;
}

@media (max-width: 640px) {
  .video-item__volume-control.is-volume-open .video-item__volume-slider {
    flex-basis: 3.4rem;
    width: 3.4rem;
  }

  .video-modal__controls {
    top: 0.65rem;
    left: 0.55rem;
  }
}

/* ─── FULL-BLEED HERO & RESPONSIVE LAYOUT ───────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--gap) * 4) var(--gap) calc(var(--gap) * 2);
  overflow: hidden;
  background: var(--black);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__backdrop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.24) 55%, rgba(0, 0, 0, 0.14) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.30) 0%, transparent 38%, rgba(0, 0, 0, 0.62) 100%);
}

.hero__top,
.hero__showcase {
  position: relative;
  z-index: 2;
}

.hero__top {
  padding-top: 4vh;
}

.hero__title {
  color: var(--white);
}

.hero__sub {
  max-width: 52ch;
  line-height: 1.55;
  color: rgba(245, 245, 243, 0.82);
}

.hero__showcase {
  margin-top: auto;
}

.work,
.about {
  scroll-margin-top: 5rem;
}

@media (max-width: 860px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: calc(var(--gap) * 2);
  }

  .about__profile {
    max-width: 260px;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 0.9rem var(--gap);
    mix-blend-mode: normal;
  }

  .nav__name {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }

  .nav__links {
    gap: 0.8rem;
  }

  .nav__links a {
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .hero {
    min-height: 92svh;
    padding: 5.15rem var(--gap) 1.75rem;
    justify-content: center;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.06) 30%, rgba(0, 0, 0, 0.3) 62%, rgba(0, 0, 0, 0.66) 100%);
  }

  .hero__backdrop img {
    object-position: center center;
  }

  .hero__top {
    width: 100%;
    max-width: 28rem;
    margin: auto 0;
    padding-top: 0;
  }

  .hero__title {
    font-size: clamp(3rem, 17vw, 5.1rem);
    line-height: 0.86;
    letter-spacing: -0.05em;
  }

  .hero__sub {
    max-width: 28ch;
    margin-top: 1rem;
    font-size: 0.66rem;
    line-height: 1.55;
    letter-spacing: 0.12em;
  }

  .hero__showcase {
    display: none;
  }

  .work {
    padding: 2.5rem var(--gap);
  }

  .work__filters {
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    margin: 0 calc(var(--gap) * -1) calc(var(--gap) * 1.5);
    padding: 0 var(--gap) 0.6rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .work__filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
    padding: 0.55rem 0.72rem;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
  }

  .project-section {
    margin-bottom: calc(var(--gap) * 3);
  }

  .project__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.75rem;
  }

  .project__label {
    font-size: 1rem;
  }

  .project__tag {
    font-size: 0.64rem;
    line-height: 1.45;
    letter-spacing: 0.08em;
  }

  .project__intro {
    margin-bottom: 1.2rem;
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .video-grid {
    columns: 1;
  }

  .video-item {
    margin-bottom: 0.9rem;
    border-radius: 8px;
  }

  .about {
    padding: calc(var(--gap) * 3) var(--gap);
  }

  .about__bio {
    font-size: 1rem;
    line-height: 1.7;
  }

  .about__tags li {
    padding: 0.55rem 0.7rem;
    font-size: 0.75rem;
  }

  .contact {
    padding: calc(var(--gap) * 2.5) var(--gap);
  }

  .contact__links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  .contact__link {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .contact__link span {
    font-size: 1.1rem;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer__links {
    gap: 1.25rem;
  }

  .video-modal__info {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .video-modal__title,
  .video-modal__project {
    white-space: normal;
  }
}

/* HERO TEXT CONTRAST */
.hero__title {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.62);
}
.hero__sub {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.78);
}
@media (max-width: 640px) {
  .hero__sub {
    color: rgba(245, 245, 243, 0.94);
  }
}

/* Full-frame hero: the 16:9 airport reel stays intact on every screen. */
.hero {
  min-height: 100svh;
  background: #050505;
}

.hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero__top {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem var(--gap) 1rem;
  text-align: center;
}

.hero__title {
  color: #fff;
}

.hero__sub {
  margin-inline: auto;
}

.hero__showcase {
  position: relative;
  z-index: 0;
  margin: 0;
  padding: 1.4rem var(--gap) 1.8rem;
  background: #050505;
  border-bottom: 1px solid #1a1a1a;
}

.showcase-strip {
  max-width: 1440px;
  margin: 0 auto;
}

.video-item {
  cursor: default;
  background: #050505;
}

.video-item:focus-visible,
.video-item__control:focus-visible,
.contact-fab:focus-visible,
.contact-panel button:focus-visible,
.contact-panel a:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.video-item video {
  object-fit: contain;
  background: #050505;
}

.video-item--youtube {
  cursor: pointer;
}

.video-item__youtube-player {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050505;
}

.video-item__overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 28%, transparent 68%, rgba(0, 0, 0, 0.22));
  opacity: 0;
}

.video-item.is-paused .video-item__overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.28);
}

.video-item__controls {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 4;
  display: flex;
  gap: 0.45rem;
}

.video-item__control {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(7, 7, 7, 0.76);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.video-item__control:hover {
  transform: scale(1.06);
  background: rgba(7, 7, 7, 0.96);
  border-color: rgba(255, 255, 255, 0.8);
}

.video-item__control svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-item__volume .muted-slash {
  display: none;
}

.video-item__volume.is-muted .volume-mark {
  display: none;
}

.video-item__volume.is-muted .muted-slash {
  display: block;
}

.video-item__expand[hidden] {
  display: none;
}

.about__social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0;
}

.about__social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 0.8rem;
  color: var(--white);
  border: 1px solid var(--gray-dark);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.about__social-links a:hover {
  border-color: var(--white);
  background: #111;
}

.contact-fab {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.05rem;
  color: #080808;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.contact-fab:hover {
  transform: translateY(-2px);
  background: #e7e7e7;
}

.contact-fab__icon {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #080808;
  color: #fff;
  font-size: 0.95rem;
}

.contact-panel[hidden] {
  display: none;
}

.contact-panel {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: calc(max(1.25rem, env(safe-area-inset-bottom)) + 4.1rem);
  z-index: 99;
  width: min(24rem, calc(100vw - 2rem));
  max-height: min(78dvh, 46rem);
  overflow-y: auto;
  padding: 1.2rem;
  color: var(--white);
  border: 1px solid #333;
  border-radius: 14px;
  background: rgba(13, 13, 13, 0.97);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(18px);
}

.contact-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-panel__eyebrow {
  margin: 0 0 0.3rem;
  color: #aaa;
  font-size: 0.6rem;
  letter-spacing: 0.13em;
}

.contact-panel__header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.contact-panel__close {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: #fff;
  border: 1px solid #444;
  border-radius: 50%;
  background: #171717;
  font-size: 1.2rem;
  cursor: pointer;
}

.contact-form {
  display: grid;
  gap: 0.5rem;
}

.contact-form label {
  margin-top: 0.28rem;
  color: #ddd;
  font-size: 0.72rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  padding: 0.72rem 0.8rem;
  color: #fff;
  border: 1px solid #3a3a3a;
  border-radius: 7px;
  background: #080808;
  font: inherit;
  font-size: 0.82rem;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #777;
}

.contact-form__submit,
.contact-panel__whatsapp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 7px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.contact-form__submit {
  margin-top: 0.5rem;
  color: #080808;
  border: 1px solid #fff;
  background: #fff;
}

.contact-panel__whatsapp {
  margin-top: 0.8rem;
  color: #fff;
  border: 1px solid #444;
  background: #171717;
}

.contact-form__note {
  margin: 0.1rem 0 0;
  color: #9b9b9b;
  font-size: 0.65rem;
  line-height: 1.5;
}

.contact-panel__mailto {
  display: inline-block;
  margin-top: 0.7rem;
  color: #aaa;
  font-size: 0.67rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .hero {
    min-height: 0;
    height: clamp(340px, calc(100vw * 0.5625 + 140px), 500px);
    padding: 4rem var(--gap) 1rem;
  }

  .hero__top {
    padding: 4rem 1rem 1rem;
  }

  .hero__title {
    font-size: clamp(2.8rem, 13vw, 4.1rem);
    line-height: 0.88;
  }

  .hero__sub {
    max-width: 30ch;
    margin-top: 0.9rem;
    font-size: 0.62rem;
    line-height: 1.5;
  }

  .hero__showcase {
    display: none;
  }

  .contact-fab {
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
  }

  .contact-panel {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: calc(max(0.75rem, env(safe-area-inset-bottom)) + 4rem);
    width: min(25rem, calc(100vw - 1.5rem));
    max-height: min(78dvh, 42rem);
    padding: 1rem;
  }

  .video-item__controls {
    top: 0.5rem;
    right: 0.5rem;
    gap: 0.35rem;
  }

  .video-item__control {
    width: 2.65rem;
    height: 2.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-fab,
  .video-item__control,
  .about__social-links a {
    transition: none;
  }
}

/* Full-bleed, responsive hero and mobile navigation */
.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__backdrop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__backdrop--video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.63) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.02) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0%, transparent 42%);
}

.hero__top {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(1.25rem, 6vw, 6.5rem);
  right: auto;
  bottom: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: min(56rem, calc(100% - 2.5rem));
  max-width: 56rem;
  margin: 0;
  padding: 0;
  text-align: left;
  transform: translateY(-50%);
}

.hero__title {
  color: #fff;
  font-size: clamp(5rem, 11vw, 11.5rem);
  line-height: 0.84;
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.72);
}

.hero__sub {
  max-width: 42ch;
  margin: 1.3rem 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.62rem, 0.8vw, 0.78rem);
  line-height: 1.6;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}

.nav__toggle {
  display: none;
}

@media (max-width: 640px) {
  .nav {
    padding: 0.55rem max(0.85rem, env(safe-area-inset-right)) 0.55rem max(0.85rem, env(safe-area-inset-left));
    mix-blend-mode: normal;
  }

  .nav__toggle {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 2.85rem;
    width: 2.85rem;
    height: 2.85rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    background: rgba(8, 8, 8, 0.42);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    cursor: pointer;
  }

  .nav__toggle span {
    display: block;
    width: 1rem;
    height: 1px;
    border-radius: 1px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav--open .nav__toggle span:first-child {
    transform: translateY(0.4rem) rotate(45deg);
  }

  .nav--open .nav__toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav--open .nav__toggle span:last-child {
    transform: translateY(-0.4rem) rotate(-45deg);
  }

  .nav__links {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: max(0.85rem, env(safe-area-inset-right));
    left: max(0.85rem, env(safe-area-inset-left));
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1rem;
    background: rgba(10, 10, 10, 0.94);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .nav--open .nav__links {
    display: flex;
  }

  .nav__links li {
    width: 100%;
  }

  .nav__links a {
    display: block;
    width: 100%;
    padding: 0.9rem 0.8rem;
    font-size: 0.75rem;
    letter-spacing: 0.09em;
  }

  .hero {
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.12) 72%, rgba(0, 0, 0, 0.03) 100%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.48) 0%, transparent 55%);
  }

  .hero__backdrop img {
    object-position: center center;
  }

  .hero__backdrop--video {
    object-position: center center;
  }

  .hero__top {
    top: 19%;
    left: max(1rem, env(safe-area-inset-left));
    width: calc(100% - 2rem);
    max-width: 25rem;
    padding: 0;
    transform: none;
  }

  .hero__title {
    font-size: clamp(3.35rem, 16vw, 5.25rem);
    line-height: 0.87;
  }

  .hero__sub {
    max-width: 27ch;
    margin: 1rem 0 0;
    font-size: 0.62rem;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav__toggle span {
    transition: none;
  }
}

/* Editorial display type, clean contact surfaces, and a quieter project reel. */
:root {
  --font-display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
}

.hero__title,
.contact__title,
.contact-panel__header h2,
.project__label,
.about__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
}

.hero__title {
  letter-spacing: 0.015em;
  line-height: 0.78;
}

.contact {
  border-top: 0;
}

.contact__title {
  margin-bottom: 1.35rem;
  color: var(--white);
  font-size: clamp(5.2rem, 17vw, 14rem);
  letter-spacing: 0.015em;
  line-height: 0.76;
}

.contact__links {
  gap: clamp(1.5rem, 5vw, 4rem);
}

.contact__link {
  border-top: 0;
}

.showcase-strip {
  display: block;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: none;
  cursor: grab;
  user-select: none;
}

.showcase-strip::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.showcase-strip.is-dragging {
  cursor: grabbing;
}

.showcase-track {
  display: flex;
  width: max-content;
  gap: 1rem;
}

.showcase-card__img {
  -webkit-user-drag: none;
  user-select: none;
}

.contact-fab,
.contact-fab:hover {
  border: 0;
  border-radius: 0;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.38);
}

.contact-fab__icon {
  border-radius: 0;
}

.contact-panel {
  border: 0;
  border-radius: 0;
  background: rgba(8, 8, 8, 0.98);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.6);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.contact-panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.contact-panel__header h2 {
  font-size: clamp(2.5rem, 7vw, 3.6rem);
  letter-spacing: 0.015em;
  line-height: 0.82;
}

.contact-panel__close {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid #414141;
  border-radius: 0;
  background: transparent;
}

.contact-form__submit,
.contact-panel__whatsapp {
  border: 0;
  border-radius: 0;
}

.contact-form__submit {
  padding: 0.9rem;
}

.contact-panel__whatsapp {
  padding: 0.9rem;
}

.contact-fab:focus-visible,
.contact-panel button:focus-visible,
.contact-panel a:focus-visible {
  outline: 1px solid #777;
  outline-offset: 3px;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 0;
  box-shadow: none;
  border-bottom-color: #888;
}

@media (max-width: 640px) {
  .hero__title {
    font-size: clamp(4rem, 18vw, 5.8rem);
    line-height: 0.8;
  }

  .hero__showcase {
    display: block;
    padding: 0.85rem var(--gap) 1rem;
  }

  .showcase-strip {
    width: 100%;
    padding: 0.25rem 0 0.5rem;
    gap: 0.7rem;
    touch-action: pan-x;
  }

  .showcase-track {
    gap: 0.7rem;
    animation: showcase-loop var(--showcase-loop-duration, 90s) linear infinite;
    will-change: transform;
  }

  .showcase-track.is-paused {
    animation-play-state: paused;
  }

  .showcase-card--vertical,
  .showcase-card--horizontal {
    height: clamp(145px, 24vh, 185px);
  }

  .showcase-card__tag {
    max-width: calc(100% - 1rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.58rem;
  }

  .contact__title {
    font-size: clamp(5.3rem, 19vw, 8rem);
  }

  .contact-panel {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: calc(max(0.75rem, env(safe-area-inset-bottom)) + 3.8rem);
    width: min(24rem, calc(100vw - 1.5rem));
    max-height: min(78svh, 46rem);
    padding: 1rem;
  }
}

@keyframes showcase-loop {
  to { transform: translateX(var(--showcase-loop-shift, -50%)); }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-track {
    animation: none !important;
    transform: none !important;
  }
}

/* Final responsive type and gallery sizing. */
.hero__title {
  font-size: clamp(7rem, 14vw, 18rem);
  line-height: 0.72;
  text-shadow: none;
}

.showcase-strip {
  width: 100%;
  max-width: none;
}

.contact-fab,
.contact-fab:hover {
  display: grid;
  width: 6rem;
  height: 6rem;
  place-items: center;
  gap: 0;
  padding: 0.55rem;
  background: #fff;
  color: #080808;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  box-shadow: none;
}

.contact-fab__icon {
  display: none;
}

.contact-panel {
  bottom: calc(max(1.25rem, env(safe-area-inset-bottom)) + 6.5rem);
}

.contact-panel__header h2 {
  max-width: 10ch;
  font-size: clamp(2.8rem, 6vw, 3.6rem);
  line-height: 0.78;
}

@media (min-width: 1280px) {
  .video-grid {
    columns: 4 250px;
  }
}

@media (min-width: 1800px) {
  .video-grid {
    columns: 5 250px;
  }
}

@media (max-width: 640px) {
  .hero__top {
    left: max(1.5rem, calc(env(safe-area-inset-left) + 1rem));
    width: calc(100% - 3rem);
    max-width: none;
  }

  .hero__title {
    font-size: clamp(4.4rem, 18.5vw, 7rem);
    line-height: 0.72;
  }

  .hero__sub {
    width: 100%;
    max-width: 32ch;
    font-size: clamp(0.55rem, 2.8vw, 0.64rem);
    letter-spacing: 0.09em;
  }

  .contact-fab,
  .contact-fab:hover {
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    width: 5.5rem;
    height: 5.5rem;
    font-size: 0.9rem;
  }

  .contact-panel {
    bottom: calc(max(0.85rem, env(safe-area-inset-bottom)) + 6rem);
  }
}

/* Keep the WhatsApp action visible while the contact form scrolls. */
.contact-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  max-height: min(82dvh, 46rem);
  bottom: max(1rem, env(safe-area-inset-bottom));
  padding: 1.25rem;
}

.contact-panel__body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.contact-panel__body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.contact-panel__header {
  margin-bottom: 0.85rem;
}

.contact-panel__whatsapp {
  margin-top: 0.75rem;
  padding: 0.95rem 1rem;
  color: #06210f;
  background: #25d366;
  font-weight: 750;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.contact-panel__whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
}

.contact-fab,
.contact-fab:hover {
  display: inline-flex;
  justify-content: center;
  width: auto;
  min-width: 9rem;
  height: 3.35rem;
  padding: 0 1.1rem;
  gap: 0.5rem;
  white-space: nowrap;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.contact-fab--panel-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 640px) {
  .contact-fab,
  .contact-fab:hover {
    bottom: calc(max(0.85rem, env(safe-area-inset-bottom)) + 0.75rem);
    min-width: 8.25rem;
    height: 3.15rem;
    padding-inline: 0.9rem;
    font-size: 0.84rem;
  }

  .contact-panel {
    top: max(4.25rem, calc(env(safe-area-inset-top) + 3.25rem));
    right: auto;
    bottom: max(0.65rem, env(safe-area-inset-bottom));
    left: 50%;
    width: min(28rem, calc(100vw - 1rem));
    max-height: none;
    padding: 0.9rem;
    transform: translateX(-50%);
  }

  .contact-panel__header {
    margin-bottom: 0.65rem;
  }

  .contact-panel__header h2 {
    font-size: clamp(2.45rem, 10.5vw, 3.1rem);
    line-height: 0.82;
  }

  .contact-panel__whatsapp {
    margin-top: 0.65rem;
    padding: 0.85rem 0.9rem;
  }
}
