/* ═══════════════════════════════════════════════════════════════════
   VOGUE PAGE - vogue.css
   Frame Theory · Creative Studio
═══════════════════════════════════════════════════════════════════ */

/* ── HERO ──────────────────────────────────────────────────────── */
.vogue-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  overflow: hidden;
}
.vogue-hero-left {
  padding: 10rem 3rem 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid var(--border);
  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: 400px; line-height: 1.9; }

/* Hero nav pills */
.vogue-hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.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); }

.vogue-hero-right {
  display: grid;
  grid-template-rows: 1fr 1fr;
}
.vogue-hero-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.4s;
}
.vogue-hero-panel:last-child { border-bottom: none; }
.vogue-hero-panel:hover { background: #161514; }
.panel-label {
  font-family: var(--font-display);
  font-size: 4rem;
  letter-spacing: 0.15em;
  color: rgba(200,169,110,0.15);
  transition: color 0.4s;
}
.vogue-hero-panel:hover .panel-label { color: rgba(200,169,110,0.3); }
.panel-overlay { position: absolute; bottom: 1.5rem; left: 1.5rem; }
.panel-tag {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── 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 {
  aspect-ratio: 4/3;
  background: #0d0c0b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.25rem;
}
.logo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
  /* Invert dark logos on dark bg - remove if your logos are light */
  filter: brightness(1);
}
.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(2, 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: 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;
      line-height: 1;
    }
    .carousel-btn:hover { background: rgba(0,0,0,0.85); }
    .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-hero-right { grid-template-rows: 200px 200px; }

  .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; }
}