/* ===========================================
   SECTIONS — Hero, Achievements, Gallery,
   Selected Work, Contact, Footer
   =========================================== */

/* ——————————————————————————————
   HERO SECTION — 3-Layer Stack
   —————————————————————————————— */

/* Layer 1: Fixed Blurred Background */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: url('../images/images for website/hero_blurry_blackground.png') center / cover no-repeat;
  filter: blur(25px);
  transform: scale(1.2);
  will-change: transform;
}

/* Hero Wrapper */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

/* Nav Container */
.sticky-nav-container {
  position: relative;
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  pointer-events: none;
}

/* Nav Positioning */
.hero-nav-wrapper {
  position: relative;
  z-index: 100;
  pointer-events: all;
}

/* Hero Content — Split Layout */
.hero-content {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 var(--space-5);
  padding-bottom: var(--space-6);
}

/* LEFT: Text Panel */
.hero-text {
  position: relative;
  z-index: 20;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero-title {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.hero-name-top {
  font-family: var(--font-heading);
  font-size: clamp(72px, 10vw, 120px);
  font-weight: 400;
  color: var(--color-text-primary);
  letter-spacing: 6px;
}

.hero-name-bottom {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 120px);
  font-weight: 400;
  letter-spacing: 6px;
  background: var(--gold-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 6s ease-in-out infinite;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 28px;
  color: var(--color-text-primary);
  margin-top: var(--space-2);
  max-width: 480px;
}

.hero-btn-wrapper {
  margin-top: var(--space-3);
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 20;
}

/* RIGHT: Portrait — Layer 3 (CRISP, overlaps nav for depth/dimension) */
.hero-portrait-wrapper {
  position: absolute;
  right: -2%;
  bottom: 0;
  top: -12%;
  width: 62%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  /* clicks pass through to nav buttons behind */
  z-index: 150;
  /* above nav (z:100) for dimensional layering */
  overflow: visible;
}

.hero-portrait {
  height: 110%;
  width: auto;
  max-width: 115%;
  object-fit: contain;
  object-position: bottom right;
  filter: none;
  pointer-events: none;
  /* ensures no button is ever blocked */
  position: relative;
}




/* ——————————————————————————————
   ACHIEVEMENTS — Black Section
   —————————————————————————————— */

.section-dark {
  position: relative;
  z-index: 10;
  isolation: isolate;
  overflow: hidden;
  background: #3d8f8b;
  padding: clamp(40px, 6vh, 80px) 0;
  clip-path: polygon(0% 2%,
      8% 0.8%,
      16% 2.2%,
      25% 0.5%,
      33% 1.8%,
      42% 0.3%,
      50% 2%,
      58% 0.3%,
      67% 1.8%,
      75% 0.5%,
      84% 2.2%,
      92% 0.8%,
      100% 2%,
      100% 100%,
      0% 100%);
  transition: clip-path var(--transition-slow);
  margin-top: -3vh;
}

.section-dark.ink-active {
  clip-path: polygon(0% 0%,
      12% 0%,
      25% 0%,
      38% 0%,
      50% 0%,
      62% 0%,
      75% 0%,
      88% 0%,
      100% 0%,
      100% 100%,
      0% 100%);
}

.achievements-grid {
  display: flex;
  justify-content: center;
  gap: var(--space-10);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.achievement-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.achievement-number {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 80px;
  font-weight: 400;
  color: var(--color-text-primary);
  letter-spacing: 2px;
}

.achievement-label {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-secondary);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  align-items: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--space-7);
  height: var(--space-7);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.social-icons a:hover {
  transform: scale(1.15);
  opacity: 0.85;
}

.social-icons svg {
  width: var(--space-5);
  height: var(--space-5);
}

/* Bottom radial fade-out */
.section-dark::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: radial-gradient(ellipse 100% 160% at 50% 100%,
      transparent 0%,
      #3d8f8b 75%);
  z-index: 2;
  pointer-events: none;
}


/* ——————————————————————————————
   GALLERY — Animated Marquee
   —————————————————————————————— */

.section-gallery {
  position: relative;
  z-index: 10;
  background: var(--color-bg-dark);
  padding: var(--space-4) 0;
  overflow: hidden;
}

.gallery-marquee {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.marquee-row {
  display: flex;
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

.gallery-item {
  flex-shrink: 0;
  width: 380px;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery Glass Overlay */
.gallery-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  padding: var(--space-4) var(--space-8);
}

.gallery-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.3;
  color: var(--color-text-primary);
  white-space: nowrap;
  letter-spacing: 2px;
}


/* ——————————————————————————————
   SELECTED WORK
   —————————————————————————————— */

.section-work {
  position: relative;
  z-index: 5;
  padding: var(--space-16) 0 var(--space-12);
  overflow: hidden;
}

/* Layer 1: Blurred background image (picture1.JPG) */
.work-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../images/images for website/picture1.JPG') center / cover no-repeat;
  filter: blur(90px);
  transform: scale(1.2);
}

/* Dark overlay for text contrast */
.work-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 11, 10, 0.55);
}

/* Transition-in gradient from gallery */
.section-work::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, var(--color-bg-dark), transparent);
  z-index: 3;
  pointer-events: none;
}

.work-inner {
  position: relative;
  z-index: 4;
}

.work-header {
  margin-bottom: var(--space-8);
}

.work-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.work-title em {
  font-family: var(--font-body);
  font-style: italic;
}

.work-description {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 28px;
  color: var(--color-text-secondary);
  max-width: 640px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

/* Project Card Internals */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.card-number {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--color-text-muted);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.card-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.card-link {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: color var(--transition-fast), gap var(--transition-fast);
}

.card-link:hover {
  color: var(--color-accent-gold);
  gap: var(--space-2);
}


/* ——————————————————————————————
   CONTACT FORM
   —————————————————————————————— */

.section-contact {
  position: relative;
  z-index: 5;
  padding: var(--space-12) 0 var(--space-8);
  overflow: hidden;
}

/* Layer 1: Blurred background image (hero_blurry_blackground.png) */
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../images/images for website/hero_blurry_blackground.png') center / cover no-repeat;
  filter: blur(90px);
  transform: scale(1.2);
}

/* Dark overlay for text contrast */
.contact-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 11, 10, 0.5);
}

.contact-inner {
  position: relative;
  z-index: 4;
  max-width: 720px;
}

.contact-header {
  margin-bottom: var(--space-8);
}

.contact-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.contact-title em {
  font-family: var(--font-body);
  font-style: italic;
}

.contact-description {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 28px;
  color: var(--color-text-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-label {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.form-submit-wrapper {
  margin-top: var(--space-2);
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-4);
}

.form-success.visible {
  display: block;
}

.form-success-text {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: var(--space-2);
}


/* ——————————————————————————————
   FOOTER — Transparent / Continuity
   —————————————————————————————— */

.site-footer {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: var(--space-6) 0 var(--space-4);
  margin-top: var(--space-8);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-muted);
  background: transparent;
  /* Hairline separator — limitless scroll feel */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}



/* ——————————————————————————————
   SCROLL FADE-IN — Reveal on scroll
   —————————————————————————————— */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ——————————————————————————————
   RESPONSIVE
   —————————————————————————————— */

@media (max-width: 1024px) {
  .hero-portrait-wrapper {
    width: 50%;
  }

  .hero-name-top,
  .hero-name-bottom {
    font-size: clamp(56px, 8vw, 96px);
  }

  .gallery-item {
    width: 300px;
    height: 220px;
  }
}

@media (max-width: 768px) {

  /* Sticky nav container — tighter padding, above mobile menu */
  .sticky-nav-container {
    padding: var(--space-2) var(--space-3);
    z-index: 250;
  }

  /* Hero mobile */
  .hero {
    min-height: auto;
  }

  /* Mobile header: admin left, hamburger centered, hire me right */
  .hamburger-btn {
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .nav-logo,
  .nav-links {
    display: none;
  }

  .nav-admin-btn {
    margin-right: 0;
  }

  #hire-me-btn {
    margin-left: auto;
    font-size: 12px;
    padding: var(--space-1) var(--space-3);
  }

  .glass-nav {
    position: relative;
    justify-content: space-between;
    gap: 0;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    padding: var(--space-4) var(--space-3);
    padding-bottom: 0;
  }

  .hero-text {
    align-items: center;
    order: 1;
    padding-top: var(--space-4);
  }

  .hero-tagline {
    text-align: center;
  }

  .hero-portrait-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    order: 2;
    z-index: 10;
    justify-content: center;
    margin-top: var(--space-4);
  }

  .hero-portrait {
    height: auto;
    max-height: 50vh;
    width: auto;
  }

  /* Achievements mobile */
  .achievements-grid {
    gap: var(--space-8);
  }

  .achievement-number {
    font-size: 56px;
    line-height: 64px;
  }

  .social-icons {
    gap: var(--space-6);
  }

  /* Gallery mobile */
  .gallery-item {
    width: 260px;
    height: 190px;
  }

  /* Work grid mobile */
  .work-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-inner {
    max-width: 100%;
  }
}

@media (max-width: 480px) {

  .hero-name-top,
  .hero-name-bottom {
    font-size: 48px;
  }

  .achievement-number {
    font-size: 48px;
    line-height: 56px;
  }

  .gallery-item {
    width: 200px;
    height: 150px;
  }
}


/* ——————————————————————————————
   SUBPAGES — About, UGC, Services
   —————————————————————————————— */

/* Active nav link — metallic gold underline */
.nav-active {
  background: var(--gold-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 6s ease-in-out infinite;
}

.nav-active::after {
  width: 100% !important;
  background: linear-gradient(90deg, #B8860B, #FFD700, #B8860B) !important;
}

/* Page header — minimal hero for subpages */
.page-header {
  min-height: auto;
}

/* Page section — shared layout for subpages */
.section-page {
  position: relative;
  z-index: 5;
  padding: var(--space-8) 0 var(--space-12);
  overflow: hidden;
  min-height: 80vh;
}

/* Subpage footer sits inside section-page for seamless bg */
.section-page~.site-footer,
.section-page .site-footer {
  background: transparent;
  margin-top: var(--space-8);
}

.page-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../images/images for website/hero_blurry_blackground.png') center / cover no-repeat;
  filter: blur(90px);
  transform: scale(1.2);
}

.page-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 11, 10, 0.5);
}

.page-inner {
  position: relative;
  z-index: 4;
  max-width: 900px;
}

.page-header-content {
  margin-bottom: var(--space-8);
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.page-title em {
  font-family: var(--font-body);
  font-style: italic;
}

.page-description {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 28px;
  color: var(--color-text-secondary);
  max-width: 640px;
}

/* About page body text */
.page-body {
  margin-bottom: var(--space-8);
}

.page-body p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 30px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  max-width: 680px;
}

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

/* About socials section */
.about-socials {
  margin-top: var(--space-8);
}

.about-socials-title {
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

/* Page CTA */
.page-cta {
  text-align: center;
  margin-top: var(--space-4);
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}


/* ——————————————————————————————
   UGC PORTFOLIO — Filter Bar, Video Grid,
   Card Hover, Thumbnail, Modal
   —————————————————————————————— */

/* ——— Category Filter Bar ——— */
.ugc-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  padding: var(--space-1) 0;
}

.glass-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1) var(--space-4);
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--glass-shadow), var(--glass-inset-highlight);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: var(--space-5);
  position: relative;
  overflow: hidden;
}

.glass-filter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(255, 255, 255, 0.0) 50%,
      rgba(255, 255, 255, 0.03) 100%);
  pointer-events: none;
}

.glass-filter-btn:hover {
  color: var(--color-text-primary);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow-hover), var(--glass-inset-highlight);
}

.glass-filter-btn.is-active {
  color: var(--color-bg-dark);
  background: var(--gold-gradient);
  background-size: 200% 200%;
  border-color: var(--color-accent-gold);
  box-shadow:
    0 4px 24px rgba(184, 134, 11, 0.3),
    var(--glass-inset-highlight);
}

@media (prefers-reduced-motion: no-preference) {
  .glass-filter-btn.is-active {
    animation: gold-shimmer 6s ease-in-out infinite;
  }
}


/* ——— Video Grid (Short-form 9:16) ——— */
.ugc-video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}


/* ——— Video Card ——— */
.ugc-video-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-expo),
    opacity 0.4s var(--ease-out-expo);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  background: var(--color-bg-dark);
}

.ugc-video-card:hover {
  transform: scale(1.05);
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border-hover);
  z-index: 2;
}

.ugc-video-card:focus-visible {
  outline: 2px solid var(--color-accent-gold-mid);
  outline-offset: 4px;
}

/* Hidden state for filtering */
.ugc-video-card.card-hidden {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
  width: 0;
  height: 0;
  overflow: hidden;
}


/* ——— Thumbnail Wrapper (9:16 portrait for Shorts) ——— */
.ugc-thumb-wrap {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  margin: 0;
}

.ugc-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out-expo);
}

.ugc-video-card:hover .ugc-thumb {
  transform: scale(1.08);
}

/* Gradient placeholder when no thumbnail available */
.ugc-thumb-placeholder {
  background: linear-gradient(135deg,
      var(--color-bg-dark) 0%,
      var(--color-bg-primary) 50%,
      var(--color-bg-dark) 100%);
}


/* ——— Play Icon ——— */
.ugc-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition:
    opacity 0.35s var(--ease-out-expo),
    transform 0.35s var(--ease-out-expo);
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.ugc-video-card:hover .ugc-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}


/* ——— Frosted Glass Hover Overlay ——— */
.ugc-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3) var(--space-3) var(--space-2);
  background: linear-gradient(to top,
      rgba(5, 11, 10, 0.85) 0%,
      rgba(5, 11, 10, 0.4) 60%,
      transparent 100%);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s var(--ease-out-expo),
    transform 0.35s var(--ease-out-expo);
  z-index: 2;
}

.ugc-video-card:hover .ugc-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.ugc-card-brand {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent-gold-light);
}

.ugc-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.3;
}


/* ——— Load Error ——— */
.ugc-load-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-8);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
}


/* ——————————————————————————————
   GLASSMORPHISM MODAL
   —————————————————————————————— */

.ugc-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  max-width: 420px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  background: rgba(5, 11, 10, 0.85);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.6),
    var(--glass-inset-highlight);
  color: var(--color-text-primary);
  z-index: 10000;
}

.ugc-modal::backdrop {
  background: rgba(5, 11, 10, 0.7);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

/* Modal Player (9:16 portrait for Shorts) */
.ugc-modal-player {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 65vh;
  background: var(--color-bg-dark);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
}

.ugc-modal-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.ugc-modal-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Modal Info */
.ugc-modal-info {
  padding: var(--space-4) var(--space-5);
}

.ugc-modal-brand {
  display: block;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
  background: var(--gold-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  .ugc-modal-brand {
    animation: gold-shimmer 6s ease-in-out infinite;
  }
}

.ugc-modal-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.ugc-modal-description {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 26px;
  color: var(--color-text-secondary);
}

/* Modal Close Button */
.ugc-modal-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 10;
  width: var(--space-5);
  height: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 11, 10, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--color-text-primary);
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.ugc-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.ugc-modal-close:focus-visible {
  outline: 2px solid var(--color-accent-gold-mid);
  outline-offset: 2px;
}


/* ——————————————————————————————
   UGC RESPONSIVE
   —————————————————————————————— */

@media (max-width: 1024px) {
  .ugc-video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {

  /* Filter bar — horizontal scroll */
  .ugc-filter-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-2);
    gap: var(--space-1);
  }

  .ugc-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .glass-filter-btn {
    flex-shrink: 0;
    font-size: 11px;
    padding: var(--space-1) var(--space-3);
  }

  /* Grid — 2 columns on mobile for portrait cards */
  .ugc-video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  /* Modal — centered portrait */
  .ugc-modal {
    width: 88vw;
    max-width: 360px;
    max-height: 95vh;
    border-radius: var(--radius-lg);
  }

  .ugc-modal-player {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .ugc-modal-info {
    padding: var(--space-3) var(--space-3);
  }

  /* Card hover — always show overlay on mobile (touch) */
  .ugc-card-overlay {
    opacity: 1;
    transform: translateY(0);
  }

  .ugc-play-icon {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.9);
  }
}

@media (max-width: 480px) {
  .ugc-video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-1);
  }

  .ugc-video-card {
    border-radius: var(--radius-md);
  }
}


/* ——————————————————————————————
   PHOTOGRAPHY VAULT — Search Bar,
   Filters, Bento Grid, Lightbox
   —————————————————————————————— */

/* ——— Liquid Glass Control Bar (Search + Dropdowns) ——— */
.photo-control-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.photo-search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--glass-bg);
  backdrop-filter: blur(25px) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(25px) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow), var(--glass-inset-highlight);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  flex: 1;
  min-width: 0;
}

.photo-search-bar:focus-within {
  border-color: var(--color-accent-gold-mid);
  box-shadow: var(--glass-shadow), var(--glass-inset-highlight), 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.photo-search-icon {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.photo-search-bar:focus-within .photo-search-icon {
  color: var(--color-accent-gold-mid);
}

.photo-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-primary);
  line-height: 24px;
  min-width: 0;
}

.photo-search-input::placeholder {
  color: var(--color-text-muted);
}

/* ——— Glass Dropdown ——— */
.photo-dropdown-wrap {
  flex-shrink: 0;
}

.glass-dropdown {
  appearance: none;
  -webkit-appearance: none;
  padding: var(--space-2) var(--space-5) var(--space-2) var(--space-3);
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-primary);
  background: var(--glass-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
  backdrop-filter: blur(25px) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(25px) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow), var(--glass-inset-highlight);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: var(--space-6);
  white-space: nowrap;
}

.glass-dropdown:hover {
  background-color: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

.glass-dropdown:focus {
  outline: none;
  border-color: var(--color-accent-gold-mid);
  box-shadow: var(--glass-shadow), var(--glass-inset-highlight), 0 0 0 3px rgba(184, 134, 11, 0.15);
}

/* ——— Admin Button (gear icon) ——— */
.glass-admin-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--space-6);
  height: var(--space-6);
  background: var(--glass-bg);
  backdrop-filter: blur(25px) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(25px) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow), var(--glass-inset-highlight);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.glass-admin-btn:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--color-accent-gold-mid);
  transform: rotate(45deg);
}

.glass-dropdown option {
  background: var(--color-bg-dark);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}


/* ——— Bento Masonry Grid ——— */
.photo-bento-grid {
  column-count: 3;
  column-gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.photo-bento-item {
  position: relative;
  break-inside: avoid;
  margin: 0;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  background: var(--color-bg-dark);
  opacity: 0;
  transform: scale(0.95) translateY(12px);
  transition:
    opacity 0.4s var(--ease-out-expo),
    transform 0.4s var(--ease-out-expo),
    box-shadow 0.3s var(--ease-out-expo),
    border-color 0.3s var(--ease-out-expo);
}

.photo-bento-item.photo-item-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.photo-bento-item:hover {
  box-shadow: var(--glass-shadow-hover);
  border-color: var(--glass-border-hover);
  z-index: 2;
}

.photo-bento-item:focus-visible {
  outline: 2px solid var(--color-accent-gold-mid);
  outline-offset: 4px;
}

.photo-bento-img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.4s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
  /* prevent drag / right-click on the img itself */
  -webkit-touch-callout: none;
  /* disable iOS long-press save */
}

/* ——— Watermark Overlay ——— */
.photo-bento-item::after {
  content: 'tagiang.com';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.12);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 1;
}

.photo-bento-item:hover .photo-bento-img {
  filter: brightness(1.12);
  transform: scale(1.03);
}


/* ——— Resolution Badge ——— */
.photo-res-badge {
  position: absolute;
  top: var(--space-1);
  right: var(--space-1);
  padding: 2px 8px;
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-sm);
  line-height: 1.6;
  pointer-events: none;
  z-index: 3;
}

/* ——— Frosted Glass Tag (hover) ——— */
.photo-bento-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-2) var(--space-3);
  background: rgba(5, 11, 10, 0.65);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(100%);
  transition:
    opacity 0.35s var(--ease-out-expo),
    transform 0.35s var(--ease-out-expo);
}

.photo-bento-item:hover .photo-bento-tag {
  opacity: 1;
  transform: translateY(0);
}

.photo-bento-tag-text {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--color-text-primary);
  line-height: 1.4;
}


/* ——— Empty State ——— */
.photo-empty-state {
  column-span: all;
  text-align: center;
  padding: var(--space-10);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 17px;
}


/* ——————————————————————————————
   PHOTOGRAPHY PAGINATION
   —————————————————————————————— */

.photo-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6) 0;
}

.photo-pagination:empty {
  display: none;
}

.photo-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-2);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-secondary);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.photo-page-btn:hover {
  background: var(--glass-bg-hover);
  color: var(--color-text-primary);
}

.photo-page-btn.active {
  background: var(--gold-gradient);
  background-size: 200% 200%;
  color: var(--color-bg-dark);
  border-color: transparent;
  font-weight: 600;
}

.photo-page-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.photo-page-ellipsis {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-muted);
  padding: 0 var(--space-1);
  user-select: none;
}


/* ——————————————————————————————
   PHOTOGRAPHY LIGHTBOX
   —————————————————————————————— */

/* Dialog hidden by default — only show contents when [open] */
.photo-lightbox {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  max-width: none;
  max-height: none;
  overflow: visible;
}

.photo-lightbox:not([open]) {
  display: none;
}

.photo-lightbox[open] {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  z-index: 10000;
}

.photo-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.photo-lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  max-width: 90vw;
  max-height: 85vh;
  margin: 0;
}

.photo-lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transition: opacity 0.15s ease;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
  -webkit-touch-callout: none;
}

/* Lightbox watermark */
.photo-lightbox-figure {
  position: relative;
}

.photo-lightbox-figure::before {
  content: 'tagiang.com';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 40px;
  /* above the caption */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 36px;
  letter-spacing: 10px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.10);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 1;
}

.photo-lightbox-img-fade {
  opacity: 0;
}

.photo-lightbox-caption {
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-primary);
  text-align: center;
  padding: var(--space-2) var(--space-4);
  background: rgba(5, 11, 10, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
}

/* Close Button — absolute inside the dialog, not fixed */
.photo-lightbox-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 10;
  width: var(--space-6);
  height: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 11, 10, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--color-text-primary);
  font-size: 22px;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.photo-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.photo-lightbox-close:focus-visible {
  outline: 2px solid var(--color-accent-gold-mid);
  outline-offset: 2px;
}

/* Nav Arrows — absolute inside the dialog, not fixed */
.photo-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: var(--space-6);
  height: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 11, 10, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.photo-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-50%) scale(1.1);
}

.photo-lightbox-nav:focus-visible {
  outline: 2px solid var(--color-accent-gold-mid);
  outline-offset: 2px;
}

.photo-lightbox-prev-btn {
  left: var(--space-3);
}

.photo-lightbox-next-btn {
  right: var(--space-3);
}


/* ——————————————————————————————
   PHOTOGRAPHY RESPONSIVE
   —————————————————————————————— */

@media (max-width: 1024px) {
  .photo-bento-grid {
    column-count: 2;
  }
}

@media (max-width: 768px) {

  /* Control bar stacks vertically on mobile */
  .photo-control-bar {
    flex-wrap: wrap;
  }

  .photo-search-bar {
    flex: 1 1 100%;
  }

  .photo-dropdown-wrap {
    flex: 1;
  }

  .glass-dropdown {
    width: 100%;
    font-size: 12px;
  }

  .photo-bento-grid {
    column-count: 2;
    column-gap: var(--space-2);
  }

  .photo-bento-item {
    margin-bottom: var(--space-2);
  }

  /* Always show tag on mobile (touch devices) */
  .photo-bento-tag {
    opacity: 1;
    transform: translateY(0);
  }

  /* Lightbox adjustments */
  .photo-lightbox[open] {
    padding: var(--space-2);
  }

  .photo-lightbox-img {
    max-width: 95vw;
    max-height: 75vh;
  }

  .photo-lightbox-nav {
    width: var(--space-5);
    height: var(--space-5);
  }

  .photo-lightbox-prev-btn {
    left: var(--space-1);
  }

  .photo-lightbox-next-btn {
    right: var(--space-1);
  }
}

@media (max-width: 480px) {
  .photo-bento-grid {
    column-count: 1;
  }

  .photo-lightbox-caption {
    font-size: 13px;
    padding: var(--space-1) var(--space-3);
  }
}


/* ===========================================
   BRAND SHOWCASE & DETAIL
   =========================================== */

.page-section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.18;
  font-weight: 400;
  color: var(--color-text-primary);
  margin-top: var(--space-2);
}

.brand-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.brand-showcase-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-4);
  align-items: end;
}

.brand-showcase-description,
.brand-detail-body,
.brand-detail-tagline {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 28px;
  color: var(--color-text-secondary);
}

.brand-detail-body-tight {
  margin: 0;
}

.brand-showcase-status {
  text-align: center;
}

.brand-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.brand-window-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow), var(--glass-inset-highlight);
  cursor: pointer;
  transition:
    transform var(--transition-medium),
    box-shadow var(--transition-medium),
    border-color var(--transition-medium);
  overflow: hidden;
}

.brand-window-card::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-xl) - 1px);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), transparent 40%, transparent 60%, rgba(255, 215, 0, 0.08));
  opacity: 0;
  transition: opacity var(--transition-medium);
  pointer-events: none;
}

.brand-window-card:hover,
.brand-window-card:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34), 0 0 30px rgba(218, 165, 32, 0.12), var(--glass-inset-highlight);
}

.brand-window-card:hover::before,
.brand-window-card:focus-visible::before {
  opacity: 1;
}

.brand-window-card:focus-visible {
  outline: 2px solid rgba(255, 215, 0, 0.35);
  outline-offset: 3px;
}

.brand-window-topbar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(5, 11, 10, 0.42);
}

.brand-window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.brand-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.brand-window-dots span:nth-child(1) {
  background: #ff5f57;
}

.brand-window-dots span:nth-child(2) {
  background: #febc2e;
}

.brand-window-dots span:nth-child(3) {
  background: #28c840;
}

.brand-window-url,
.brand-preview-modal-url {
  min-width: 0;
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-window-thumb,
.brand-detail-thumb-media {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 6px);
  background: rgba(255, 255, 255, 0.05);
  aspect-ratio: 16 / 10;
}

.brand-window-thumb img,
.brand-detail-thumb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow), filter var(--transition-medium);
}

.brand-window-card:hover .brand-window-thumb img,
.brand-window-card:focus-visible .brand-window-thumb img {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.brand-card-info {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  align-items: flex-start;
  padding: var(--space-1);
}

.brand-card-copy {
  min-width: 0;
}

.brand-card-title {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.brand-card-tagline {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  color: var(--color-text-secondary);
}

.brand-detail-shell {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.brand-back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  width: fit-content;
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.brand-back-link:hover {
  color: var(--color-accent-gold-light);
  transform: translateX(-4px);
}

.brand-detail-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.brand-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--space-5);
  align-items: center;
}

.brand-detail-meta {
  margin: var(--space-3) 0 var(--space-2);
}

.brand-detail-tagline {
  max-width: 560px;
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.5;
}

.brand-detail-thumb {
  padding: var(--space-2);
}

.brand-detail-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.brand-aesthetics-layout,
.brand-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.brand-subtitle {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.3;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.brand-color-palette,
.brand-mood-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.brand-color-swatch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.brand-color-label {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.brand-properties-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.brand-property-item-wide {
  grid-column: span 2;
}

.brand-analysis-card,
.brand-analysis-summary,
.brand-aesthetics-group,
.brand-property-item {
  height: 100%;
}

.brand-analysis-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

.brand-preview-cta {
  display: flex;
  justify-content: flex-start;
}

.brand-live-preview-btn {
  min-width: min(100%, 360px);
}

.brand-preview-modal {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  max-width: none;
  max-height: none;
  overflow: visible;
}

.brand-preview-modal:not([open]) {
  display: none;
}

.brand-preview-modal[open] {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  padding: var(--space-3);
  z-index: 10000;
}

.brand-preview-modal::backdrop {
  background: rgba(3, 7, 6, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.brand-preview-shell {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: var(--space-2);
  padding: var(--space-2);
  background: rgba(9, 16, 15, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: var(--glass-shadow-hover), var(--glass-inset-highlight);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
}

.brand-preview-topbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: center;
}

.brand-preview-branding {
  min-width: 0;
}

.brand-preview-name {
  display: block;
  margin-top: 4px;
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-text-primary);
}

.brand-preview-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.brand-preview-close {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-primary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.brand-preview-close:hover,
.brand-preview-close:focus-visible {
  transform: scale(1.04);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 215, 0, 0.35);
}

.brand-preview-frame {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 11, 10, 0.4);
}

.brand-preview-loading,
.brand-preview-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--space-4);
}

.brand-preview-loading {
  z-index: 1;
}

.brand-preview-loading p {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-text-secondary);
}

.brand-preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

.brand-preview-fallback {
  z-index: 2;
  background:
    radial-gradient(circle at top, rgba(255, 215, 0, 0.08), transparent 34%),
    rgba(5, 11, 10, 0.54);
}

.brand-preview-fallback-card {
  max-width: 680px;
  text-align: center;
}

@media (max-width: 1024px) {

  .brand-showcase-grid,
  .brand-properties-grid,
  .brand-aesthetics-layout,
  .brand-analysis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-showcase-header,
  .brand-detail-hero {
    grid-template-columns: 1fr;
  }

  .brand-preview-topbar {
    grid-template-columns: 1fr;
  }

  .brand-preview-actions {
    justify-content: space-between;
  }
}

@media (max-width: 768px) {

  .brand-showcase-grid,
  .brand-properties-grid,
  .brand-aesthetics-layout,
  .brand-analysis-grid {
    grid-template-columns: 1fr;
  }

  .brand-property-item-wide {
    grid-column: auto;
  }

  .brand-card-info {
    flex-direction: column;
  }

  .brand-preview-modal[open] {
    padding: var(--space-1);
  }

  .brand-preview-shell {
    border-radius: 22px;
  }

  .brand-preview-frame {
    min-height: 60vh;
  }
}

@media (prefers-reduced-motion: reduce) {

  .brand-window-card,
  .brand-window-card::before,
  .brand-window-thumb img,
  .brand-back-link,
  .brand-preview-close {
    transition: none;
  }
}


/* ===========================================
   APPLICATIONS SHOWCASE
   =========================================== */

.applications-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.applications-showcase-header {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--space-4);
  align-items: end;
}

.applications-showcase-description,
.applications-results-meta,
.applications-card-description {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 28px;
  color: var(--color-text-secondary);
}

.applications-control-bar {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.applications-results-meta {
  margin-top: calc(var(--space-2) * -1);
}

.applications-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.applications-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: var(--space-3);
  color: inherit;
  text-decoration: none;
  min-height: 100%;
}

.applications-card:hover {
  text-decoration: none;
}

.applications-card-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  min-height: 260px;
}

.applications-shot {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.applications-shot-1 {
  transform: translateY(20px);
}

.applications-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-medium), filter var(--transition-medium);
}

.applications-card:hover .applications-shot img {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.applications-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  justify-content: center;
}

.applications-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.applications-card-stack {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.applications-card-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  color: var(--color-text-primary);
}

.applications-card-description {
  margin: 0;
}

.applications-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.applications-keyword {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1;
  color: var(--color-text-secondary);
}

.applications-card-link {
  margin-top: var(--space-1);
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-primary);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.applications-card:hover .applications-card-link {
  color: var(--color-accent-gold-light);
  transform: translateX(4px);
}

.applications-empty {
  text-align: center;
}

@media (max-width: 1024px) {

  .applications-showcase-header,
  .applications-grid,
  .applications-card {
    grid-template-columns: 1fr;
  }

  .applications-card-media {
    min-height: 220px;
  }
}

@media (max-width: 768px) {
  .applications-control-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .applications-card-media {
    min-height: 180px;
  }

  .applications-shot-1 {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .applications-shot img,
  .applications-card-link {
    transition: none;
  }
}