/* =============================================
   THREADFASH — styles.css
   High-end fashion showcase website
   v2: Glass logo scroll effects + Indian ethnic wear section
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --col-black: #0a0a0a;
  --col-white: #fafafa;
  --col-offwhite: #f4f2ef;
  --col-grey: #8a8a8a;
  --col-light-grey: #e8e5e1;
  --col-accent: #c8b89a;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --font-sans: 'Inter', system-ui, sans-serif;

  --nav-h: 80px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--col-white);
  color: var(--col-black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }


/* =============================================
   NAVIGATION — Glass Effects + Logo Scroll
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: var(--nav-h);
}

/* === GLASS EFFECT: Fully transparent at top, glass after scrolling === */
.nav.scrolled {
  height: 64px;
  background: rgba(245, 242, 238, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 1px 0 rgba(0,0,0,0.06),
    0 4px 24px rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

/* Deep-scroll: stronger glass with slight warm tint */
.nav.scrolled-deep {
  background: rgba(240, 236, 230, 0.82);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  box-shadow:
    0 1px 0 rgba(0,0,0,0.08),
    0 8px 32px rgba(0,0,0,0.07);
}

/* === LOGO: animated scroll morph === */
.nav__logo {
  color: var(--col-white);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 246px;
  height: 85px;
  filter: invert(1) brightness(1.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-mini {
  display: none;
}

.nav.scrolled-deep .nav__logo {
  opacity: 1;
  visibility: visible;
}

/* === NAV LINKS === */
.nav__links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition-fast), letter-spacing var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav__link:hover::after { transform: scaleX(1); }
.nav__link:hover { color: white; }

.nav.scrolled .nav__link {
  color: rgba(30,20,10,0.5);
  letter-spacing: 0.1em;
}
.nav.scrolled .nav__link:hover {
  color: var(--col-black);
  letter-spacing: 0.14em;
}

/* Hamburger */
.nav__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

/* Responsive mask sizing */
@media (max-width: 768px) {
  .hero__mask-container {
    width: 600px;
    height: 600px;
  }
}

@media (max-width: 480px) {
  .hero__mask-container {
    width: 450px;
    height: 450px;
  }

  .nav__logo {
    width: 53px;
    height: 53px;
  }

  .logo-main {
    display: none;
  }

  .logo-mini {
    display: block;
  }
}.nav__menu-btn span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--col-white);
  transition: transform var(--transition), opacity var(--transition-fast), background var(--transition);
}
.nav.scrolled .nav__menu-btn span { background: var(--col-black); }
.nav__menu-btn.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__menu-btn.active span:nth-child(2) { opacity: 0; }
.nav__menu-btn.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0); /* Semi-transparent black */
  backdrop-filter: blur(50px); /* Glass blur effect */
  -webkit-backdrop-filter: blur(50px); /* Safari support */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu__links { text-align: center; }
.mobile-menu__link {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--col-white);
  padding: 20px 0;
  transition: color var(--transition-fast), transform var(--transition);
}
.mobile-menu__link:hover {
  color: var(--col-accent);
  transform: translateX(8px);
}


/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-bottom: 60px;
  padding-left: 48px;
}

.hero__bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
  transition: transform 2s ease;
}

.hero__img.loaded { transform: scale(1); }

/* === LOGO MASK EFFECT: Scroll-based background mask === */
.hero__mask-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  width: 1350px;
  height: 1350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__mask-container.active { opacity: 2; }

.hero__mask-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  filter: brightness(0) invert(1);
  mix-blend-mode: screen;
  opacity: 1;
}

/* Canvas element for dynamic masking */
#hero-mask-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  opacity: 0.5;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.35) 100%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  color: var(--col-white);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hero__tagline {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.8);
}

/* WhatsApp Floating Button - Monochrome Theme */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 120px; /* Offset from scroll indicator */
  background: rgba(10, 10, 10, 0.6); /* Glass background */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--col-white);
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.15);
  z-index: 1000;
  display: none; /* Hide on desktop */
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s ease, border-color 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: rgba(26, 26, 26, 0.8);
  border-color: var(--col-accent);
}

@media (max-width: 768px) {
  .whatsapp-float {
    display: flex; /* Show only on mobile */
    width: 50px;
    height: 50px;
    bottom: 24px;
    right: 24px;
  }
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  right: 48px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero__scroll span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.6);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.4);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(0.5); opacity: 1; }
}


.hero-spacer {
  height: 100vh;
  background: transparent;
  position: relative;
  z-index: 5;
}


/* =============================================
   TICKER / MARQUEE
   ============================================= */
.ticker {
  position: relative;
  z-index: 5;
  width: 100%;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.4); /* Glass background */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ticker__track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: ticker 20s linear infinite;
}

.ticker__track span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

.ticker__dot {
  color: var(--col-accent) !important;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


/* =============================================
   COLLECTION SECTIONS
   ============================================= */
.collection {
  position: relative;
  z-index: 5;
  padding: 100px 48px;
  background: var(--col-white);
}

.collection--reverse .collection__header {
  flex-direction: row-reverse;
}

.collection__header {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-bottom: 60px;
}

.collection__number {
  font-family: var(--font-serif);
  font-size: clamp(80px, 10vw, 160px);
  font-weight: 900;
  color: var(--col-offwhite);
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
  letter-spacing: -0.04em;
  transition: color var(--transition);
}

.collection:hover .collection__number {
  color: #e8e3dc;
}

.collection__meta {
  padding-top: 16px;
  max-width: 500px;
}

.collection__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--col-grey);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--col-light-grey);
  padding-bottom: 8px;
}

.collection__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--col-black);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.collection__desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: #555;
  margin-bottom: 32px;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  padding: 14px 32px;
  transition: all var(--transition);
  cursor: pointer;
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--col-black);
  color: var(--col-black);
}

.btn--outline:hover {
  background: var(--col-black);
  color: var(--col-white);
}

/* Collection Grid */
.collection__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.collection__item {
  overflow: hidden;
  position: relative;
}

.collection__img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.collection__img-wrap img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.collection__item:hover .collection__img-wrap img {
  transform: scale(1.05);
}

.collection__item-overlay {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  padding: 20px;
  background: rgba(10, 10, 10, 0.45); /* Glass background */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--col-white);
  transform: translateY(15px);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
  z-index: 2;
}

.collection__item:hover .collection__item-overlay {
  transform: translateY(0);
  opacity: 1;
}

.collection__item-overlay span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--col-accent);
  margin-bottom: 4px;
}

.collection__item-overlay p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
}


/* =============================================
   DIVIDER
   ============================================= */
.section-divider {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 48px;
  margin: 0;
}

.section-divider__line {
  flex: 1;
  height: 1px;
  background: var(--col-light-grey);
}

.section-divider__text {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--col-light-grey);
  white-space: nowrap;
}


/* =============================================
   STATEMENT / ABOUT SECTION
   ============================================= */
.statement {
  position: relative;
  z-index: 5;
  padding: 120px 48px;
  background: var(--col-black);
  text-align: center;
}

.statement__inner {
  max-width: 720px;
  margin: 0 auto;
}

.statement .collection__label {
  color: var(--col-accent);
  border-bottom-color: rgba(200, 184, 154, 0.3);
  margin-bottom: 28px;
}

.statement__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  color: var(--col-white);
  line-height: 1.25;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

.statement__body {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}


/* =============================================
   PAST COLLECTIONS
   ============================================= */
.past-collections {
  position: relative;
  z-index: 5;
  padding: 80px 48px;
  background: var(--col-offwhite);
}

.past-collections__heading {
  margin-bottom: 40px;
}

.past-collections__heading h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 10px;
}

.past-collections__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.past-card {
  border: 1px solid var(--col-light-grey);
  padding: 32px 24px;
  background: var(--col-white);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: background var(--transition), transform var(--transition);
  cursor: default;
}

.past-card:hover {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255,255,255,0.1);
}

.past-card__num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 900;
  color: var(--col-light-grey);
  line-height: 1;
  transition: color var(--transition);
}

.past-card:hover .past-card__num {
  color: rgba(200, 184, 154, 0.2);
}

.past-card__info span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--col-black);
  margin-bottom: 4px;
  transition: color var(--transition);
}

.past-card:hover .past-card__info span {
  color: var(--col-accent);
}

.past-card__info p {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--col-grey);
  transition: color var(--transition);
}

.past-card:hover .past-card__info p {
  color: rgba(255,255,255,0.4);
}


/* =============================================
   FOOTER
   ============================================= */
.footer {
  position: relative;
  z-index: 5;
  overflow: hidden;
  color: var(--col-white);
}

.footer__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.footer__bg-pattern {
  position: absolute;
  inset: 0;
  background: var(--col-black);
}

/* Decorative grid lines */
.footer__bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.footer__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
}

.footer__content {
  position: relative;
  z-index: 1;
  padding: 80px 48px 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 2fr;
  gap: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 60px;
}

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--col-accent);
  margin-bottom: 24px;
}

.footer__col ul { display: flex; flex-direction: column; gap: 12px; }

.footer__col a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}

.footer__col a:hover { color: var(--col-white); }

.footer__col--about p {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255, 255, 255, 0.03); /* Glass base */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: rgba(255,255,255,0.5);
  border-radius: 50%;
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform 0.3s ease;
}

.footer__social-link:hover {
  border-color: var(--col-accent);
  color: var(--col-accent);
  background: rgba(200, 184, 154, 0.12);
  transform: translateY(-3px);
}

/* Giant brand name in footer */
.footer__brand {
  display: block;
  font-family: var(--font-serif);
  font-size: 0;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 0px;
  width: 200px;
  height: 60px;
  margin: 20px auto;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease, filter 0.3s ease;
  text-align: center;
  padding: 20px 0;
  line-height: 1;
  user-select: none;
}

.footer__bottom {
  text-align: center;
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer__bottom p {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
}


/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .past-collections__track { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: flex; }
  .nav { padding: 0 24px; }

  .hero { padding-left: 24px; padding-bottom: 80px; }
  .hero__scroll { right: 24px; }

  .collection { padding: 60px 24px; }
  .collection__header { flex-direction: column; gap: 20px; }
  .collection--reverse .collection__header { flex-direction: column; }
  .collection__grid { grid-template-columns: 1fr; gap: 8px; }
  .collection__number { font-size: clamp(60px, 15vw, 100px); }

  .section-divider { padding: 0 24px; }

  .statement { padding: 80px 24px; }

  .past-collections { padding: 60px 24px; }
  .past-collections__track { grid-template-columns: 1fr 1fr; }

  .footer__content { padding: 60px 24px 0; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .past-collections__track { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__brand-text { font-size: 40px; }
}


/* =============================================
   INDIAN ETHNIC WEAR SECTION
   ============================================= */
.ethnic {
  position: relative;
  z-index: 5;
  padding: 100px 48px;
  background: var(--col-white);
}

/* Warm decorative background dot */
.ethnic::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c8773a, #e09a4e, #c8b89a, #8ab0b0, #c8773a);
  background-size: 200% 100%;
  animation: ethnicBorder 6s linear infinite;
}

@keyframes ethnicBorder {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Section Header */
.ethnic__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}

.ethnic__header-left { max-width: 600px; }

.ethnic__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--col-black);
  line-height: 1.15;
  margin: 12px 0 16px;
  letter-spacing: -0.02em;
}

.ethnic__sub {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: #666;
}

.ethnic__number {
  font-family: var(--font-serif);
  font-size: clamp(80px, 10vw, 140px);
  font-weight: 900;
  color: var(--col-offwhite);
  line-height: 1;
  user-select: none;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

/* Masonry Grid */
.ethnic__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 12px;
  margin-bottom: 48px;
}

.ethnic__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
}

.ethnic__item--wide {
  grid-column: span 2;
}

.ethnic__item--tall {
  grid-row: span 2;
}

.ethnic__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ethnic__item:hover img {
  transform: scale(1.06);
}

/* Glass caption on hover */
.ethnic__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 20px 16px;
  /* glassmorphism */
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,0.3);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ethnic__item:hover .ethnic__caption {
  transform: translateY(0);
}

.ethnic__caption span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  margin-bottom: 4px;
}

.ethnic__caption p {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  color: white;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* Glass CTA Banner */
.ethnic__glass-banner {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 56px 64px;
  /* layered warm gradient bg */
  background: linear-gradient(
    135deg,
    #2c1a0e 0%,
    #4a2e1a 40%,
    #1a2c2c 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mandala-like noise overlay */
.ethnic__glass-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='38' fill='none' stroke='rgba(200,184,154,0.08)' stroke-width='1'/%3E%3Ccircle cx='40' cy='40' r='28' fill='none' stroke='rgba(200,184,154,0.06)' stroke-width='1'/%3E%3Ccircle cx='40' cy='40' r='18' fill='none' stroke='rgba(200,184,154,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  opacity: 0.5;
}

.ethnic__glass-content {
  position: relative;
  z-index: 1;
  text-align: center;
  /* glass panel behind text */
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 48px 72px;
}

.ethnic__glass-content h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  color: var(--col-white);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.ethnic__glass-content p {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
}

/* Ethnic responsive */
@media (max-width: 1024px) {
  .ethnic__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; }
}

@media (max-width: 768px) {
  .ethnic { padding: 60px 24px; }
  .ethnic__header { flex-direction: column; align-items: flex-start; }
  .ethnic__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; gap: 8px; }
  .ethnic__item--wide { grid-column: span 2; }
  .ethnic__item--tall { grid-row: span 1; }
  .ethnic__glass-banner { padding: 32px 24px; }
  .ethnic__glass-content { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .ethnic__grid { grid-template-columns: 1fr; }
  .ethnic__item--wide { grid-column: span 1; }
}
