/* ═══════════════════════════════════════════════════════════════════
   OUR WORK PAGE - our-work.css
   Frame Theory · Creative Studio
═══════════════════════════════════════════════════════════════════ */

/* ── HERO ──────────────────────────────────────────────────────── */
.vogue-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  overflow: hidden;
}
.vogue-hero-left {
  padding: 10rem 4rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}
.vogue-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(200,169,110,0.08) 0%, transparent 60%);
}
.vogue-hero-left > * { position: relative; z-index: 1; }

.vogue-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 0.95;
  margin: 1rem 0 1.5rem;
}
.vogue-hero h1 em { color: var(--gold-light); display: block; }
.vogue-hero p { color: var(--muted); max-width: 560px; line-height: 1.9; }

/* Hero nav pills */
.vogue-hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  justify-content: center;
}
.vogue-nav-pill {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.vogue-nav-pill:hover { border-color: var(--gold); color: var(--gold); }

/* ── SHARED SECTION STYLES ─────────────────────────────────────── */
.vogue-section {
  padding: 7rem 4rem;
  border-top: 1px solid var(--border);
}
.vogue-section--alt {
  background: rgba(200,169,110,0.02);
}
.vogue-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 3.5rem;
}
.vogue-section-sub {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 480px;
  line-height: 1.8;
  margin-top: 0.6rem;
}
.vogue-section-count {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 0.4rem;
  white-space: nowrap;
}

.vogue-empty {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1.9;
  padding: 3rem;
  border: 1px dashed var(--border);
  text-align: center;
}
.vogue-empty code {
  color: var(--gold);
  font-size: 0.78rem;
}

/* ── GRAPHIC DESIGN - MASONRY GRID ─────────────────────────────── */
/*
   CSS columns masonry: images keep their natural aspect ratio,
   stack vertically within each column, no cropping.
   4 columns on desktop → auto-adjusts per breakpoint.
*/
.design-grid {
  columns: 4;
  column-gap: 3px;
}

.design-card {
  break-inside: avoid;          /* never split a card across columns */
  margin-bottom: 3px;
  background: var(--card-bg);
  overflow: hidden;
  position: relative;
  border: 1px solid transparent;
  transition: border-color 0.3s;
  display: block;               /* needed for break-inside to work */
}
.design-card:hover { border-color: var(--border); }

.design-thumb {
  overflow: hidden;
  position: relative;
  background: #000;
  /* NO aspect-ratio - let the image define its own height */
}
.design-thumb img {
  width: 100%;
  height: auto;                 /* natural ratio preserved */
  display: block;
  transition: transform 0.55s ease;
}
.design-card:hover .design-thumb img { transform: scale(1.04); }

.design-info {
  padding: 0.6rem 0.8rem 0.75rem;
}
.design-client {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.3;
}
.design-label {
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 0.18rem;
}

/* Carousel card - keep inside masonry, track fills naturally */
.design-card--carousel .design-thumb {
  /* Carousel images define height; wrapper follows */
}

/* ── LOGO GRID - auto-fit, natural ratio ───────────────────────── */
/*
   auto-fill with min 160px so it packs as many as fit.
   Images use object-fit: contain so logos are never cropped.
*/
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2px;
}

.logo-card {
  background: var(--card-bg);
  border: 1px solid transparent;
  overflow: hidden;
  transition: border-color 0.3s;
}
.logo-card:hover { border-color: var(--border); }

.logo-thumb {
  /* Card hugs the logo image edge-to-edge — no letterbox bars */
  display: block;
  overflow: hidden;
}
.logo-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.45s ease;
}
.logo-card:hover .logo-thumb img { transform: scale(1.06); }

.logo-info {
  padding: 0.6rem 0.75rem 0.75rem;
  border-top: 1px solid var(--border);
}
.logo-client {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.3;
}
.logo-niche {
  font-size: 0.56rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* ── VIDEO EDITING GRID ─────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  align-items: start;
}

.video-card {
  background: var(--card-bg);
  border: 1px solid transparent;
  overflow: hidden;
  transition: border-color 0.3s;
}
.video-card:hover { border-color: var(--border); }

/* Portrait reel (9:16) - default */
.video-card--reel .video-reel-wrap {
  aspect-ratio: 9/16;
  overflow: hidden;
  background: #000;
  position: relative;
}
.video-card--reel .video-reel-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Landscape card - span 2 columns, 16:9 ratio */
.video-card--landscape {
  grid-column: span 2;   /* ← MUST be on the card, not the inner wrap */
}
.video-card--landscape .video-reel-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
  position: relative;
}
.video-card--landscape .video-reel-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-info { padding: 0.55rem 0.75rem 0.7rem; }
.video-label {
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 1100px) {
  .video-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── INDUSTRIAL SHOOT GRID ──────────────────────────────────────── */
/*
   Industrial shoots are typically landscape (16:9 or wider).
   4-column grid, each card 16:9.
*/
.industrial-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

.video-card--industrial .video-reel-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
  position: relative;
}
.video-card--industrial .video-reel-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hover shimmer - gold tint overlay on industrial cards */
.video-card--industrial {
  position: relative;
}
.video-card--industrial::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(200, 169, 110, 0);
  transition: background 0.35s;
  pointer-events: none;
  z-index: 1;
}
.video-card--industrial:hover::after {
  background: rgba(200, 169, 110, 0.07);
}

/* Responsive overrides */
@media (max-width: 1100px) {
  .industrial-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .industrial-grid { grid-template-columns: repeat(1, 1fr) !important; }
}

/* ── WEB DEVELOPMENT GRID ──────────────────────────────────────── */
.web-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.web-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
  border-radius: 12px; /* ← curved corners */
}
.web-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.web-preview-bar {
  height: 34px;
  background: #1a1816;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.85rem;
  flex-shrink: 0;
  border-radius: 12px 12px 0 0; /* ← round only top corners */
}
.web-bar-dots { display: flex; gap: 5px; flex-shrink: 0; }
.web-bar-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: block;
}
.dot-r { background: #e05252; }
.dot-y { background: #d4a017; }
.dot-g { background: #4caf72; }

.web-bar-url {
  flex: 1;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 3px 10px;
  cursor: pointer;
}
.web-open-btn {
  color: var(--muted);
  font-size: 1rem;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.2s;
  padding: 2px 4px;
}
.web-open-btn:hover { color: var(--gold); }

/* ── The viewport window ───────────────────────────────── */
.web-viewport {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

/*
  KEY FIX:
  We render the iframe at full natural size (width:100%, height:100%),
  but inside a container that is scaled UP first via a wrapper trick.
  
  Instead - use the proven approach:
  - Set iframe to 300% width & height
  - Scale it down to 0.333 → net result = 100% of container
  - But the iframe itself renders at 3× resolution = zoomed out view
*/
.web-viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 300%;
  height: 300%;
  border: none;
  transform: scale(0.3334);
  transform-origin: top left;
  pointer-events: none;
  display: block;
}

.web-screenshot {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.web-iframe-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #111;
  z-index: 1;
}
.web-spinner {
  width: 20px; height: 20px;
  border: 1.5px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: ft-spin 0.75s linear infinite;
}
@keyframes ft-spin { to { transform: rotate(360deg); } }

.web-visit-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 2;
}
.web-card:hover .web-visit-overlay { opacity: 1; }

.web-info {
  padding: 0.9rem 1.1rem 1.05rem;
  border-radius: 0 0 12px 12px; /* ← round only bottom corners */
}
.web-niche {
  font-size: 0.58rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.web-client {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.3;
}
.web-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.65rem;
}
.web-status {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 2px;
}
.web-status--live { color: #6fcf97; border-color: rgba(111,207,151,0.35); }
.web-tech {
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.12rem 0.42rem;
  border-radius: 2px;
}

/* old classes that may still exist - neutralise them */
.web-preview         { display: none !important; }
.web-preview-bar-old { display: none !important; }
.web-visit-overlay-old { display: none !important; }
.web-bar-url-old     { display: none !important; }

@media (max-width: 1100px) {
  .web-grid       { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .web-grid       { grid-template-columns: 1fr; gap: 12px; }
  .web-viewport   { height: 240px; }
}
@media (max-width: 600px) {
  .web-viewport   { height: 190px; }
}

    /* ── Carousel ───────────────────────────────────────────────── */
    .carousel {
      position: relative;
      width: 100%;
      overflow: hidden;
      border-radius: inherit;
    }
    .carousel-track {
      display: flex;
      transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      will-change: transform;
    }
    .carousel-track img {
      min-width: 100%;
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      pointer-events: none;
      user-select: none;
    }
    .carousel-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0,0,0,0.55);
      color: #fff;
      border: none;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      font-size: 14px;
      cursor: pointer;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s, transform 0.12s ease-out;
      line-height: 1;
    }
    @media (hover: hover) and (pointer: fine) {
      .carousel-btn:hover { background: rgba(0,0,0,0.85); }
    }
    .carousel-btn:active { transform: translateY(-50%) scale(0.88); }
    .carousel-btn--prev { left: 8px; }
    .carousel-btn--next { right: 8px; }
    .carousel-dots {
      position: absolute;
      bottom: 8px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 5px;
      z-index: 2;
    }
    .carousel-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(255,255,255,0.45);
      transition: background 0.2s, transform 0.2s;
      cursor: pointer;
    }
    .carousel-dot.active {
      background: #fff;
      transform: scale(1.3);
    }
    .carousel-counter {
      position: absolute;
      top: 8px;
      right: 8px;
      background: rgba(0,0,0,0.55);
      color: #fff;
      font-size: 11px;
      font-family: 'DM Sans', sans-serif;
      padding: 2px 7px;
      border-radius: 20px;
      z-index: 2;
      letter-spacing: 0.04em;
    }
/* ── CTA STRIP ─────────────────────────────────────────────────── */
.cta-strip {
  padding: 6rem 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.cta-strip h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
}
.cta-strip h2 em { color: var(--gold-light); }

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .design-grid { columns: 3; }
}

@media (max-width: 900px) {
  .vogue-hero { grid-template-columns: 1fr; min-height: auto; }
  .vogue-hero-left {
    padding: 8rem 1.5rem 3rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .vogue-section        { padding: 4rem 1.5rem; }
  .vogue-section-header { flex-direction: column; gap: 0.5rem; }
  .vogue-section-count  { margin-top: 0; }

  .design-grid { columns: 2; }
  .logo-grid   { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .video-grid  { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .web-grid    { grid-template-columns: 1fr; }

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 4rem 1.5rem;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .design-grid { columns: 2; }
  .logo-grid   { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .video-grid  { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

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

/* ── YOUTUBE-LINKED VIDEOS (click-to-play) ─────────────────────── */
.yt-facade {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.yt-facade:hover img { transform: scale(1.04); opacity: 0.9; }
.yt-facade:focus-visible { outline: 2px solid var(--gold, #c8a96e); outline-offset: -2px; }
.yt-play {
  position: absolute;
  top: 50%; left: 50%;
  width: 3.2rem; height: 3.2rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.55);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, transform 0.25s;
}
.yt-play svg { width: 1.3rem; height: 1.3rem; fill: #fff; margin-left: 0.15rem; }
.yt-facade:hover .yt-play { background: rgba(200, 169, 110, 0.85); transform: translate(-50%, -50%) scale(1.08); }

.yt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;   /* above the cookie banner, chat buttons and promo card */
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.yt-lightbox[hidden] { display: none; }
.yt-frame-wrap {
  width: min(1000px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
}
.yt-frame-wrap.is-reel {
  width: auto;
  height: min(88vh, calc((100vw - 2rem) * 16 / 9));
  aspect-ratio: 9 / 16;
}
.yt-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-close {
  position: absolute;
  top: 0.9rem; right: 1.1rem;
  width: 2.6rem; height: 2.6rem;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.7rem; line-height: 1;
  cursor: pointer;
}
.yt-close:hover { background: rgba(255, 255, 255, 0.25); }

/* ═══ PREMIUM POLISH: Design & Video ═══ */
.vogue-hero-bg {
  background:
    radial-gradient(ellipse at 30% 60%, rgba(200,169,110,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 0%, rgba(160,120,48,0.12) 0%, transparent 50%);
}
.vogue-hero-bg::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 96px 96px; opacity: 0.3;
  -webkit-mask-image: radial-gradient(ellipse at 40% 60%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse at 40% 60%, #000, transparent 70%);
}
.vogue-hero h1 { letter-spacing: -0.02em; }
.vogue-hero h1 em {
  background: linear-gradient(100deg, var(--gold) 20%, var(--gold-light) 45%, #fff6dc 50%, var(--gold-light) 55%, var(--gold) 80%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: vogueShimmer 6s ease-in-out 1s infinite;
}
@keyframes vogueShimmer { 0%, 60%, 100% { background-position: 100% 0; } 30% { background-position: 0 0; } }

.vogue-nav-pill { border-radius: 100px; padding: 0.4rem 0.95rem; transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.2s var(--ease-out); }
.vogue-nav-pill:hover { background: rgba(200,169,110,0.1); }
.vogue-nav-pill:active { transform: scale(0.95); }

/* Media cards: lift, gold edge, slow zoom */
.design-card, .video-card, .web-card {
  transition: border-color 0.3s, transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .video-card:hover, .web-card:hover {
    transform: translateY(-6px); border-color: var(--gold);
    box-shadow: 0 36px 64px -34px rgba(0,0,0,0.6);
  }
  .design-card:hover { border-color: var(--gold); box-shadow: 0 24px 48px -28px rgba(0,0,0,0.55); position: relative; z-index: 2; }
}
.vogue-section-count {
  padding: 0.35rem 0.9rem; border: 1px solid var(--border); border-radius: 100px;
}
.yt-lightbox { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

@media (prefers-reduced-motion: reduce) {
  .vogue-hero h1 em { animation: none; }
  .video-card:hover, .web-card:hover { transform: none; }
}
.vogue-hero h1 em + br { display: none; }

/* ═══ CLIENT GALLERY ═══ */
.client-gallery {
  display: flex; gap: 1rem; overflow-x: auto; padding: 0.25rem 0.25rem 1.25rem;
  margin: 0 -0.25rem 2.5rem; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.client-tile {
  flex: 0 0 150px; scroll-snap-align: start; text-align: left;
  display: flex; flex-direction: column; gap: 0.2rem;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--text);
  font-family: var(--font-sans);
}
.client-tile-cover {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 6px; border: 1px solid var(--border); background: var(--card-bg);
  margin-bottom: 0.55rem;
  transition: border-color 0.3s, box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.client-tile-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease-out); }
.client-tile-cover--all { display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, rgba(200,169,110,0.22), rgba(200,169,110,0.05)); }
.client-tile-cover--all b { font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; color: var(--gold); letter-spacing: 0.05em; }
.client-tile-name { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.2; transition: color 0.3s; }
.client-tile-count { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.client-tile.active .client-tile-cover { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 22px 40px -22px rgba(0,0,0,0.5); }
.client-tile.active .client-tile-name { color: var(--gold); }
@media (hover: hover) and (pointer: fine) {
  .client-tile:hover .client-tile-cover { border-color: var(--gold); transform: translateY(-4px); }
  .client-tile:hover .client-tile-cover img { transform: scale(1.08); }
}

/* Simple chip filter (videos) */
.client-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.client-chip {
  font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: transparent; color: var(--muted); border: 1px solid var(--border);
  padding: 0.5rem 1rem; border-radius: 100px; cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--ease-out);
}
.client-chip span { opacity: 0.6; margin-left: 0.35rem; }
.client-chip:hover { border-color: var(--gold); color: var(--gold); }
.client-chip.active { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.client-chip:active { transform: scale(0.95); }

.is-filtered-out { display: none !important; }
#design-grid > *:not(.is-filtered-out), .video-grid > *:not(.is-filtered-out) { animation: clientFade 0.45s var(--ease-out); }
@keyframes clientFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Design cards are clickable */
#design-grid .design-card { cursor: zoom-in; }

/* Image lightbox */
.img-lightbox {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
  background: rgba(8,8,8,0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.img-lightbox[hidden] { display: none; }
.img-lb-stage { margin: 0; max-width: min(92vw, 1100px); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.img-lb-stage img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 4px; box-shadow: 0 40px 90px -30px #000; pointer-events: auto; }
.img-lb-stage figcaption { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: #e8e0d2; text-align: center; }
.img-lb-close, .img-lb-nav {
  position: absolute; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: #f5f0ea; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.img-lb-close { top: 1.25rem; right: 1.25rem; }
.img-lb-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.img-lb-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.img-lb-close:hover, .img-lb-nav:hover { background: var(--gold); border-color: var(--gold); color: #080808; }

@media (max-width: 600px) {
  .client-tile { flex-basis: 120px; }
  .img-lb-nav { top: auto; bottom: 1.25rem; transform: none; }
  .img-lb-prev { left: calc(50% - 60px); } .img-lb-next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) { #design-grid > *, .video-grid > * { animation: none !important; } }

/* Client tile showing the client's own logo */
.client-tile-cover--logo { background: var(--card-bg); }
.client-tile-cover--logo img { object-fit: contain; }
.client-tile:hover .client-tile-cover--logo img { transform: scale(1.04); }
