/* v050 */
:root {
  --nav-height: 60px;
  --header-height: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
  --font-family: 'Prompt', sans-serif;
  --font-body: 'aptos-display', sans-serif;
  --color-bg: #000;
  --color-text: #fff;
  --transition-fast: 0.3s ease;
  --color-blue: #0f2557;
  --color-hover: #aab3cb;
}

html, body {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior-y: none; /* Chrome on iOS scrolls the root element, not body */
  background-color: #000;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overscroll-behavior-y: none;
}

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

/* === Fixed background video === */
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;   /* JS must never set this — CSS handles .video-bg sizing. See CLAUDE.md. */
  height: 100%;  /* JS must never set this — CSS handles .video-bg sizing. See CLAUDE.md. */
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* === Header & Nav === */
.site-header {
  position: fixed;
  top: 0;
  z-index: 9999;
  width: 100%;
  transition: background 0.4s ease;
  padding-top: env(safe-area-inset-top, 0px);
  height: var(--header-height);
  box-sizing: border-box;
}

.site-header.has-bg {
  background: rgba(0, 0, 0, 0.6);
}

#logo-primary {
  height: 2rem;
  width: auto;
  opacity: 0;
  display: block;
  position: relative;
  z-index: 1;
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

@media (max-width: 800px) {
  .nav-container {
    padding: 0 1rem;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  align-items: flex-end;
}

.nav-links li a {
  font-family: var(--font-family);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 1.25rem;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.nav-links li a:hover {
  color: var(--color-hover);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 8px;
  height: 38px;
  width: 44px;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0;
  gap: 0;
}

.hamburger span {
  background: #ffffff;
  height: 1.5px;
  width: 20px;
  display: block;
  transition: 0.35s ease;
  transform-origin: center center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 26px; }

.hamburger.is-active span:nth-child(1) {
  transform: translateX(-50%) rotate(45deg);
  top: 19px;
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateX(-50%) rotate(-45deg);
  top: 19px;
}

/* === Mobile Menu === */
.mobile-menu {
  position: fixed;
  top: -100vh;
  top: -100dvh;
  left: 0;
  width: 100vw;
  height: 100vh;   /* fallback */
  height: 100dvh;  /* iOS Safari: respects current visible viewport including address bar */
  background-color: var(--color-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  /* visibility hidden until active prevents menu from bleeding into scroll-snap renders */
  visibility: hidden;
  transition: top 0.5s ease-in-out, visibility 0s linear 0.5s;
  z-index: 900;
}

.mobile-menu.active {
  top: 0;
  visibility: visible;
  transition: top 0.5s ease-in-out, visibility 0s linear;
}

.mobile-menu a {
  font-family: var(--font-family);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s, color 0.3s ease;
  pointer-events: none;
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.menu-active .mobile-menu a {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu a:hover {
  color: var(--color-hover);
}

/* Header turns blue while mobile menu is open */
body.menu-opening .site-header,
body.menu-open .site-header {
  background: var(--color-blue);
}

/* === Footer === */
footer {
  position: relative;
  z-index: 2;
  background: #fff;
}


/* === Responsive Hamburger Toggle === */
@media (max-width: 800px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
  }
}

/* === Video Hero === */
.video-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  touch-action: pan-x pan-y; /* hint to Chrome that vertical drag here is a scroll */
  height: 100vh;   /* fallback for browsers without svh support */
  height: 100svh;  /* stable: does not change as browser UI animates */
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-hero__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.10);
  z-index: 0;
  pointer-events: none;
}

.video-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 2rem;
}

.video-hero__logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.4rem;
}

#logo-hero {
  width: clamp(600px, 74vw, 1050px);
  height: auto;
  display: block;
}

@media (max-width: 800px) {
  #logo-hero {
    width: clamp(280px, 88vw, 520px);
  }
}

.video-hero__subline {
  font-family: var(--font-family);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

/* === Play Button === */
.play-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin: 1.75rem auto 0;
  padding: 0.5rem;
}

.play-btn__icon {
  width: clamp(48px, 6vw, 72px);
  height: auto;
  display: block;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.play-btn:hover .play-btn__icon {
  transform: scale(1.12);
  opacity: 0.85;
}

.play-btn__label {
  color: #fff;
  font-family: var(--font-family);
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.play-btn:hover .play-btn__label {
  opacity: 1;
  transform: translateY(0);
}

/* === Gallery === */
.gallery {
  position: relative;
  z-index: 2;
  background: var(--color-bg);
  scroll-margin-top: var(--header-height);
}

.gallery-grid {
  columns: 4;
  column-gap: 0.75rem;
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  display: block;
  break-inside: avoid;
  margin-bottom: 0.75rem;
}

.gallery-tile:focus {
  outline: none;
}

.gallery-tile:focus-visible {
  outline: 2px solid var(--color-hover);
  outline-offset: -2px;
}

.gallery-tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.gallery-tile__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-tile__play svg {
  width: clamp(44px, 5vw, 68px);
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
}

.gallery-tile__title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1rem 0.8rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-family: var(--font-family);
  font-size: clamp(0.75rem, 1.1vw, 0.9rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

/* Hover effects only on true pointer devices — prevents iOS sticky-hover double-tap */
@media (hover: hover) {
  .gallery-tile:hover img {
    transform: scale(1.06);
    opacity: 0.7;
  }

  .gallery-tile:hover .gallery-tile__play {
    opacity: 1;
  }

  .gallery-tile:hover .gallery-tile__title {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Always show play + overlay on touch/no-hover devices */
@media (hover: none) {
  .gallery-tile__play {
    opacity: 1;
  }

  .gallery-tile__title {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .gallery-grid {
    columns: 2;
    column-gap: 0.5rem;
  }

  .gallery-tile {
    margin-bottom: 0.5rem;
  }
}

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

/* === Featured Section === */
.featured {
  position: relative;
  z-index: 2;
  background: #000;
  padding: 80px 0 0.75rem;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
}

.featured-grid {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

/* Left column: two tiles stacked, pushed to bottom */
.featured-left {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  min-width: 0;
}

/* Right column: "WORK" label floated by JS, large tile pushed to bottom */
.featured-right {
  flex: 3;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}

/* Section label — absolutely positioned by JS on desktop */
.featured-label {
  font-family: var(--font-family);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1;
  margin: 0;
  position: absolute;
  right: calc(max(0px, (100vw - 1440px) / 2) + 1.5rem);
  text-align: right;
}

/* All 3 featured tiles maintain 16:9 based on column width; no margin-bottom (not a masonry tile) */
.featured-left .gallery-tile,
.featured-right .gallery-tile {
  aspect-ratio: 16 / 9;
  width: 100%;
  flex-shrink: 0;
  margin-bottom: 0;
}

.featured-grid .gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 800px) {
  .featured {
    height: auto;
    min-height: 100dvh;
    padding: calc(var(--header-height) + 0.25rem) 0 0.5rem;
  }

  .featured-grid {
    flex-direction: column;
    gap: 0.5rem;
  }

  .featured-left {
    gap: 0.5rem;
    justify-content: flex-start;
  }

  .featured-right {
    justify-content: flex-start;
  }

  .featured-right { order: -2; } /* WORK label + big tile appear first on mobile */
  .featured-left  { order: -1; } /* stacked tiles appear second on mobile */

  .featured-label {
    position: static;
    font-size: clamp(2rem, 10vw, 3.5rem);
    margin-bottom: 0.75rem;
  }
}


/* === Lightbox === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow: hidden;
  /* 16:9 reference frame — close button and nav arrows are anchored to this,
     independent of the actual playing video's aspect ratio */
  --lb-ref-w: min(90vw, calc(85vh * 16 / 9));
  --lb-ref-h: min(85vh, calc(90vw * 9 / 16));
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
  touch-action: none;
}

/* On wide screens, shift vertical centering upward to make room for the ribbon */
@media (min-width: 1024px) {
  .lightbox.is-gallery {
    padding-bottom: 167px; /* ribbon height (157px) + 10px gap */
  }
}

.lightbox__inner {
  position: relative;
  touch-action: auto;
  z-index: 2;
}

/* Vimeo iframe container */
.lightbox__vimeo {
  display: none;
  width: 100%;
  height: 100%;
}

.lightbox__vimeo.active {
  display: block;
}

.lightbox__vimeo iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  touch-action: auto;
}

/* === Lightbox end screen (new design) === */
/* Fills the video area: thumbnail at 70% opacity + centered overlay + replay button */
.lightbox__end-screen {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000;
  overflow: hidden;
}

.lightbox__end-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.7;
}

.lightbox__end-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* === Below-frame meta (client + title) — single line, always visible when gallery video is open === */
/* Absolutely positioned below the video frame; width/top set by JS to match frame */
.lightbox__meta {
  position: absolute;
  display: none; /* shown by JS */
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  pointer-events: none;
  z-index: 10003;
}

/* Line 1 row: title + info icon */
.lightbox__meta-line1 {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45em;
}

.lightbox__meta-title {
  font-family: var(--font-family);
  font-size: clamp(0.75rem, 1.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  line-height: 1;
}

/* Line 2: client */
.lightbox__meta-client {
  font-family: var(--font-family);
  font-size: clamp(0.75rem, 1.2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  flex-shrink: 0;
  line-height: 1;
}

/* Circled info icon — shown when the current video has credits metadata */
.lightbox__meta-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  border: 1.5px solid #f2a807;
  background: none;
  color: #f2a807;
  font-family: var(--font-family);
  font-size: clamp(0.75rem, 1.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  pointer-events: auto; /* override pointer-events: none inherited from .lightbox__meta */
  transition: background var(--transition-fast), color var(--transition-fast);
}

/* Slightly smaller 'i' character within the circle */
.lightbox__meta-info-char {
  font-size: 0.75em;
  line-height: 1;
}

.lightbox__meta-info:hover {
  background: #f2a807;
  color: #000;
}

/* Replay button (end screen) and play icon (paused screen) */
.lightbox__end-replay,
.lightbox__end-play {
  background: none;
  border: none;
  padding: 0.4rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Replay button is interactive; play icon is decorative (screen handles click) */
.lightbox__end-replay {
  cursor: pointer;
}

/* Paused screen (nav/ribbon click): entire thumbnail area is the click target */
.lightbox__end-screen--paused {
  cursor: pointer;
}

.lightbox__end-screen--paused:hover .lightbox__end-play {
  color: #fff;
}

.lightbox__end-replay:hover,
.lightbox__end-play:hover {
  color: #fff;
}

.lightbox__end-replay svg,
.lightbox__end-play svg {
  width: clamp(35px, 4.375vw, 50px);
  height: auto;
  display: block;
}

/* Close button — anchored to top-right corner of the 16:9 reference frame,
   fixed regardless of the playing video's aspect ratio */
.lightbox__close {
  position: fixed;
  top:   calc(50% - var(--lb-ref-h) / 2 - 2.25rem);
  right: calc(50% - var(--lb-ref-w) / 2);
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  padding: 0;
}

.lightbox.is-open .lightbox__close {
  display: flex;
}

.lightbox__close span {
  background: var(--color-hover);
  height: 2px;
  width: 28px;
  display: block;
  position: absolute;
  left: 0;
  transition: background var(--transition-fast);
}

.lightbox__close span:nth-child(1) {
  transform: rotate(45deg);
}

.lightbox__close span:nth-child(2) {
  transform: rotate(-45deg);
}

.lightbox__close:hover span {
  background: #fff;
}

/* Nav arrows — locked to 16:9 reference frame edges, fixed regardless of video AR */
.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 72px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  padding: 0;
  color: color-mix(in srgb, var(--color-hover), white 15%);
  transition: color var(--transition-fast);
}

/* When ribbon is visible, shift arrows up so they center in the video area,
   not in the full lightbox (which includes the 167px ribbon+gap at the bottom) */
@media (min-width: 1024px) {
  .lightbox.is-gallery .lightbox__arrow {
    top: calc(50% - 83.5px);
  }
}

.lightbox.is-open.is-gallery .lightbox__arrow {
  display: flex;
}

.lightbox__arrow:hover {
  color: #fff;
}

.lightbox__arrow svg {
  width: 28px;
  height: 28px;
}

.lightbox__prev { left:  calc(50% - var(--lb-ref-w) / 2 - 44px); }
.lightbox__next { left:  calc(50% + var(--lb-ref-w) / 2); }

/* === Lightbox ribbon === */
/* Full-viewport-width filmstrip pinned to the bottom of the lightbox overlay.
   Desktop only (>= 1024px). */
.lightbox__ribbon {
  display: none; /* shown via media query below */
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 157px;
  background: #000;
}

@media (min-width: 1024px) {
  .lightbox.is-gallery .lightbox__ribbon {
    display: flex;
    align-items: stretch;
  }
}

/* Ribbon scroll track — fills space between nav arrows */
.lightbox__ribbon-track {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  box-sizing: border-box;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.lightbox__ribbon-track::-webkit-scrollbar {
  display: none;
}

/* Ribbon prev/next scroll buttons */
.ribbon__nav {
  flex: 0 0 44px;
  height: 100%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
  z-index: 1;
}

.ribbon__nav--prev { background: linear-gradient(to right, rgba(0,0,0,0.85) 60%, transparent); }
.ribbon__nav--next { background: linear-gradient(to left,  rgba(0,0,0,0.85) 60%, transparent); }

.ribbon__nav:hover {
  color: #fff;
}

.ribbon__nav svg {
  width: 20px;
  height: 20px;
}

/* Individual ribbon tile — height fixed at 157px; width set by JS (AR × 157px) */
.ribbon-tile {
  flex: 0 0 auto; /* width set inline by JS */
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #111;
  border: none;
  padding: 0;
  cursor: pointer;
}

.ribbon-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

/* Hover overlay: client + title (upper left), play button (center), duration (lower left) */
.ribbon-tile__hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.ribbon-tile:not(.is-active):hover .ribbon-tile__hover {
  opacity: 1;
}

.ribbon-tile:not(.is-active):hover img {
  opacity: 0.6;
}

/* Client name + video title: upper left */
.ribbon-tile__hover-meta {
  position: absolute;
  top: 0.5rem;
  left: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: calc(100% - 1.1rem);
}

.ribbon-tile__hover-client {
  font-family: var(--font-family);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ribbon-tile__hover-title {
  font-family: var(--font-family);
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Play button: centered (same proportions as gallery tile play icon) */
.ribbon-tile__hover-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ribbon-tile__hover-play svg {
  width: clamp(28px, 3.5vw, 40px);
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

/* Duration: lower left */
.ribbon-tile__hover-dur {
  position: absolute;
  bottom: 0.5rem;
  left: 0.55rem;
  font-family: var(--font-family);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

/* Active (now-playing) state: dim + label */
.ribbon-tile.is-active img {
  opacity: 0.45;
}

.ribbon-tile__playing {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ribbon-tile.is-active .ribbon-tile__playing {
  display: flex;
}

.ribbon-tile__playing span {
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}

/* Hidden at ribbon boundaries — arrow disappears when no further videos in that direction */
.lightbox__arrow.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

/* Ribbon scroll buttons hidden when track is already at that edge */
.ribbon__nav.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

/* === Scroll hint === */
.scroll-hint {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.scroll-hint.is-visible {
  opacity: 1;
}

.scroll-hint svg {
  width: 40px;
  height: auto;
  display: block;
  animation: scroll-hint-bounce 1.5s ease-in-out infinite;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.6));
}

@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}

/* === Credits info modal === */
/* Appears above the (i) info icon in the lightbox meta bar.
   Populated and positioned by JS; animates up from the anchor point. */
.meta-info-modal {
  position: fixed;
  display: none; /* toggled by JS */
  background: #fff;
  color: #000;
  padding: 1.5rem 1.75rem 1.25rem;
  z-index: 10010;
  box-shadow: 0 6px 36px rgba(0, 0, 0, 0.32);
  white-space: nowrap; /* each field stays on one line */
  opacity: 0;
  transform: scale(0.88) translateY(8px);
  transform-origin: bottom center;
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

/* On mobile, meta is above the frame — modal animates downward from above the (i) */
.meta-info-modal.meta-info-modal--below {
  transform: scale(0.88) translateY(-8px);
}

.meta-info-modal.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Close button — follows the two-span X design reference */
.meta-info-modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.meta-info-modal__close span {
  position: absolute;
  display: block;
  width: 14px;
  height: 1.5px;
  background: #000;
  transition: background var(--transition-fast);
}

.meta-info-modal__close span:nth-child(1) { transform: rotate(45deg); }
.meta-info-modal__close span:nth-child(2) { transform: rotate(-45deg); }

.meta-info-modal__close:hover span { background: #555; }

/* CREDITS headline */
.meta-info-modal__headline {
  font-family: var(--font-family);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #000;
  margin: 0 0 0.75rem 0;
  padding-right: 1.5rem; /* clear close button */
}

/* Field list */
.meta-info-modal__fields {
  margin: 0;
  padding: 0;
  list-style: none;
}

.meta-info-modal__field {
  display: flex;
  gap: 0.35em;
  font-family: var(--font-family);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #000;
  white-space: nowrap;
  line-height: 1.7;
}

.meta-info-modal__field dt {
  font-weight: 600;
}

.meta-info-modal__field dt::after {
  content: ':';
}

.meta-info-modal__field dd {
  margin: 0;
  font-weight: 400;
}

/* === About section === */
/* White background, same padding as .featured. Image floats right at the
   same proportional width as the featured right column (flex 3 of 5 = 60%).
   Body text flows beside the image and wraps full-width below it. */
.about {
  background: #000;
  padding: calc(var(--header-height) + 1.5rem) 1.5rem 3rem;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.about__headline {
  font-family: var(--font-family);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1;
  margin: 0 0 1.5rem 0;
}

/* Clearfix — contains the float */
.about__body::after {
  content: '';
  display: table;
  clear: both;
}

/* Image floats left at 1/3 column width: (100% - 1rem gap) × 1/3 */
.about__headshot {
  float: left;
  width: calc(33.333% - 0.667rem);
  height: auto;
  display: block;
  margin-right: 1rem;
}

.about__body p {
  font-family: var(--font-body);
  font-size: clamp(1.18rem, 1.38vw, 1.38rem);
  line-height: 1.3;
  color: var(--color-text);
  margin: 0 0 1.25em 0;
}

.about__body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .about {
    padding: calc(var(--header-height) + 0.25rem) 0.75rem 2rem;
  }

  .about__headline {
    font-size: clamp(2rem, 10vw, 3.5rem);
    margin-bottom: 1rem;
  }

  /* Keep float layout on mobile — image stays 1/3 wide left, text wraps beside + below. */
  .about__headshot {
    width: calc(33.333% - 0.5rem);
    margin-right: 0.75rem;
  }
}

/* === Mobile overrides === */

/* Lightbox mobile adjustments */
@media (max-width: 800px) {
  /* Close button always in upper-right corner */
  .lightbox__close {
    top:   1rem;
    right: 1rem;
  }

  /* Hide prev/next arrows — swipe navigates instead */
  .lightbox__arrow {
    display: none !important;
  }
}

/* Swipe transition panel — full-screen overlay rendered during swipe gestures */
.lightbox__swipe-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible; /* allow absolutely-positioned panel meta to extend beyond panel edges */
  background: #000;
  will-change: transform;
}

/* Swipe hint — mobile only, shown when a gallery video is open */
.lightbox__swipe-hint {
  display: none;
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-family);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 10005;
}

@media (max-width: 800px) {
  .lightbox.is-open.is-gallery .lightbox__swipe-hint {
    display: block;
  }
}

/* Mobile meta font sizes — title is the prominent line, client is secondary */
@media (max-width: 800px) {
  .lightbox__meta-title {
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: 600;
  }

  .lightbox__meta-client {
    font-size: clamp(0.75rem, 1.2vw, 1.5rem);
    font-weight: 400;
  }
}

/* Hide header dark tint while mobile menu is open */
body.menu-open .site-header.has-bg {
  background: transparent;
}

/* Show nav logo in header when mobile menu is open */
body.menu-open #logo-primary {
  opacity: 1;
}

/* === connect === */
/* Padding-top matches about padding-bottom so the visual gap is equal on both sides of the section seam. */
.connect {
  background: #fff;
  padding: 3rem 1.5rem 3rem;
  scroll-margin-top: var(--header-height);
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4rem;
}

/* HTML source order: .connect__right (headline) first, .connect__left (contacts) second.
   order: 1/2 swaps them visually on desktop so contacts appear left, headline right.
   On mobile the order resets and natural HTML order puts headline on top. */
.connect__left {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  order: 1;
}

.connect__headline {
  font-family: var(--font-family);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  line-height: 1.05;
  margin: 0;
  text-align: right;
}

.connect__right {
  flex: 0 0 auto;
  order: 2;
}

.connect__body {
  display: flex;
  flex-direction: column;
  gap: 0.94rem;
  align-items: flex-start;
}

/* email | phone on one line */
.connect__contact-line {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.connect__sep {
  color: #000;
  font-family: var(--font-body);
  font-size: clamp(1.18rem, 1.38vw, 1.38rem);
}

/* inline-flex so the click area is only as wide as icon + text */
.connect__link {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  color: #000;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: clamp(1.18rem, 1.38vw, 1.38rem);
  transition: color var(--transition-fast);
}

.connect__link:hover {
  color: var(--color-hover);
}

.connect__link:hover .connect__icon {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(81%) sepia(5%) saturate(639%) hue-rotate(190deg) brightness(92%) contrast(86%);
}

/* social icon row — icon-only links, evenly spaced; centered under contact line on desktop */
.connect__social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  align-self: center;
}

.connect__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.connect__social-link:hover .connect__icon {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(81%) sepia(5%) saturate(639%) hue-rotate(190deg) brightness(92%) contrast(86%);
}

.connect__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 1;
  filter: brightness(0);
  transition: opacity var(--transition-fast), filter var(--transition-fast);
}

/* === Footer copy === */
.footer-copy {
  text-align: left;
  padding: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: rgba(0, 0, 0, 0.5);
  margin: 0;
}

.footer-break {
  display: none;
}

@media (max-width: 600px) {
  .footer-copy {
    text-align: center;
  }
  .footer-break {
    display: block;
  }
}

/* Stack connect to single column earlier to prevent phone number wrapping.
   Reset order — natural HTML order puts .connect__right (headline) on top, .connect__left (contacts) below. */
@media (max-width: 965px) {
  .connect {
    flex-direction: column;
    gap: 0.75rem;
  }

  .connect__left {
    order: 0;
    width: 100%;
    justify-content: flex-end;
  }

  .connect__right {
    order: 0;
    width: 100%;
  }

  /* Right-align contact line and social icons to match right-aligned headline above.
     2px right margin nudges body to align with the visual right edge of the "T" in "CONNECT". */
  .connect__body {
    align-items: flex-end;
    margin-right: 4px;
  }

  /* Reset desktop centering — inherit flex-end from parent align-items */
  .connect__social {
    align-self: auto;
  }
}

@media (max-width: 800px) {
  .connect {
    gap: 0.5rem;
    padding: 2rem 0.75rem 2rem;
  }

  .connect__body {
    gap: 0.5rem;
  }

  .connect__headline {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }
}

/* === Accessibility Utilities === */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
