/* =====================================================================
   GLOW HOMEPAGE — MOTION + INTERACTIVITY SYSTEM
   Built 28 May 2026 · editorial restraint, premium polish
   ===================================================================== */

:root {
  --gh-ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gh-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --gh-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =====================================================================
   1. HERO OVERLAY — gh2026
   ===================================================================== */

.glow-hero--gh2026 {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #0A0A0C;
}

.glow-hero--gh2026 .glow-hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.glow-hero--gh2026 .glow-hero__bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) contrast(1.04);
}

.gh2026-scrim {
  position: absolute;
  inset: 0;
  /* Whisper-light tint — just enough for text legibility at the bottom for the ticker */
  background:
    linear-gradient(180deg, rgba(10,10,12,0.05) 0%, rgba(10,10,12,0.02) 40%, rgba(10,10,12,0.05) 70%, rgba(10,10,12,0.40) 100%);
  z-index: 1;
}

.gh2026 {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  padding-block: clamp(5rem, 10vh, 8rem) clamp(4.5rem, 8vh, 6.5rem);
}

.gh2026__wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 1.5vw, 1.25rem);
}

/* --- Eyebrow --- */
.gh2026__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--ff-sans, 'Instrument Sans', sans-serif);
  font-size: clamp(0.66rem, 0.85vw, 0.78rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.84);
  margin: 0;
  font-weight: 500;
}
.gh2026__star {
  display: inline-block;
  font-size: 0.85em;
  color: rgba(255,255,255,0.72);
  transform: rotate(0deg);
  animation: gh2026-star-rotate 14s linear infinite;
}
@keyframes gh2026-star-rotate {
  to { transform: rotate(360deg); }
}

/* --- H1 — clip-mask reveal per line --- */
.gh2026__h1 {
  font-family: var(--ff-serif, 'Canela', 'Instrument Serif', Georgia, serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0,0,0,0.25);
  max-width: 16ch;
}
.gh2026__h1-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.gh2026__h1-line > span {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}
.gh2026__h1-line--italic {
  font-style: italic;
  color: #F5E7E1;
}

/* --- Sub copy --- */
.gh2026__sub {
  font-family: var(--ff-sans, 'Instrument Sans', sans-serif);
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.86);
  max-width: 52ch;
  margin: 0.5rem 0 0;
  font-weight: 400;
}

/* --- CTAs --- */
.gh2026__ctas {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}
.gh2026__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-family: var(--ff-sans, 'Instrument Sans', sans-serif);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 380ms var(--gh-ease-out),
    color 380ms var(--gh-ease-out),
    border-color 380ms var(--gh-ease-out),
    transform 220ms var(--gh-ease-out);
  will-change: transform;
  overflow: hidden;
}
.gh2026__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  transform: translateX(-100%);
  transition: transform 460ms var(--gh-ease-out);
  border-radius: inherit;
  z-index: 0;
}
.gh2026__cta:hover::before { transform: translateX(0); }
.gh2026__cta > span { position: relative; z-index: 1; }
.gh2026__cta-arrow {
  transition: transform 380ms var(--gh-ease-out);
}
.gh2026__cta:hover .gh2026__cta-arrow { transform: translateX(4px); }

.gh2026__cta--primary {
  background: #fff;
  color: #0E0B09;
  border: 1px solid #fff;
}
.gh2026__cta--primary:hover { background: #F5E7E1; border-color: #F5E7E1; }

.gh2026__cta--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.55);
}
.gh2026__cta--ghost:hover { border-color: #fff; }

/* --- Scroll cue --- */
.gh2026__scroll-cue {
  position: absolute;
  bottom: clamp(2rem, 5vh, 4rem);
  right: clamp(1.5rem, 4vw, 3rem);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-family: var(--ff-sans, sans-serif);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  z-index: 3;
  transition: color 280ms var(--gh-ease-out);
}
.gh2026__scroll-cue:hover { color: #fff; }
.gh2026__scroll-line {
  display: inline-block;
  width: 1px;
  height: 38px;
  background: rgba(255,255,255,0.55);
  position: relative;
  overflow: hidden;
}
.gh2026__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateY(-100%);
  animation: gh2026-scroll-pulse 2.2s var(--gh-ease-in-out) infinite;
}
@keyframes gh2026-scroll-pulse {
  0% { transform: translateY(-100%); }
  60% { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* --- Ticker --- */
.gh2026-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  overflow: hidden;
  background: rgba(10,10,12,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 2;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.gh2026-ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 1.75rem;
  white-space: nowrap;
  animation: gh2026-ticker 56s linear infinite;
  padding-left: 1.75rem;
}
.gh2026-ticker__track span {
  font-family: var(--ff-serif, 'Canela', 'Instrument Serif', serif);
  font-style: italic;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.01em;
}
.gh2026-ticker__track span[aria-hidden="true"] {
  font-family: var(--ff-sans, sans-serif);
  font-style: normal;
  color: rgba(245,231,225,0.55);
  font-size: 0.7rem;
}
@keyframes gh2026-ticker {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}

/* --- Hero load reveal animations --- */
[data-gh-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 980ms var(--gh-ease-out),
    transform 980ms var(--gh-ease-out);
}
.gh2026__h1-line[data-gh-reveal] {
  opacity: 1;
  transform: none;
}
.gh2026__h1-line[data-gh-reveal] > span {
  transition: transform 1100ms var(--gh-ease-out);
}
.is-hero-ready [data-gh-reveal="0"] { opacity: 1; transform: none; transition-delay: 60ms; }
.is-hero-ready [data-gh-reveal="1"] > span { transform: translateY(0); transition-delay: 180ms; }
.is-hero-ready [data-gh-reveal="2"] > span { transform: translateY(0); transition-delay: 320ms; }
.is-hero-ready [data-gh-reveal="3"] { opacity: 1; transform: none; transition-delay: 580ms; }
.is-hero-ready [data-gh-reveal="4"] { opacity: 1; transform: none; transition-delay: 720ms; }
.is-hero-ready [data-gh-reveal="5"] { opacity: 1; transform: none; transition-delay: 1000ms; }

/* Mobile tightening */
@media (max-width: 720px) {
  .gh2026 { padding-block: 6rem 5.5rem; }
  .gh2026__h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .gh2026__scroll-cue { display: none; }
  .gh2026-ticker { height: 42px; }
  .gh2026-ticker__track span { font-size: 0.82rem; }
  .gh2026__ctas { width: 100%; }
  .gh2026__cta { flex: 1 1 auto; justify-content: center; padding: 0.85rem 1.1rem; }
}

/* =====================================================================
   2. SITEWIDE REVEAL — fade + lift on intersection
   ===================================================================== */
[data-glow-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 820ms var(--gh-ease-out),
    transform 820ms var(--gh-ease-out);
  will-change: opacity, transform;
}
[data-glow-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
/* Staggered children */
[data-glow-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 720ms var(--gh-ease-out),
    transform 720ms var(--gh-ease-out);
}
[data-glow-reveal-stagger].is-revealed > * { opacity: 1; transform: none; }
[data-glow-reveal-stagger].is-revealed > *:nth-child(1) { transition-delay: 0ms; }
[data-glow-reveal-stagger].is-revealed > *:nth-child(2) { transition-delay: 100ms; }
[data-glow-reveal-stagger].is-revealed > *:nth-child(3) { transition-delay: 200ms; }
[data-glow-reveal-stagger].is-revealed > *:nth-child(4) { transition-delay: 300ms; }
[data-glow-reveal-stagger].is-revealed > *:nth-child(5) { transition-delay: 400ms; }
[data-glow-reveal-stagger].is-revealed > *:nth-child(6) { transition-delay: 500ms; }
[data-glow-reveal-stagger].is-revealed > *:nth-child(7) { transition-delay: 600ms; }
[data-glow-reveal-stagger].is-revealed > *:nth-child(8) { transition-delay: 700ms; }
[data-glow-reveal-stagger].is-revealed > *:nth-child(9) { transition-delay: 800ms; }

/* =====================================================================
   3. CARD HOVER ENRICHMENT
   ===================================================================== */
/* Category gateway cards — lift + image zoom + slight desaturate */
.glow-card {
  transition: transform 520ms var(--gh-ease-out), box-shadow 520ms var(--gh-ease-out);
}
.glow-card:hover { transform: translateY(-6px); }
.glow-card__media {
  overflow: hidden;
  border-radius: inherit;
}
.glow-card__media img {
  transition: transform 920ms var(--gh-ease-out), filter 520ms var(--gh-ease-out);
}
.glow-card:hover .glow-card__media img {
  transform: scale(1.06);
  filter: brightness(0.96) contrast(1.04);
}

/* Featured Brands cards (.fb-card) */
.fb-card {
  transition: transform 480ms var(--gh-ease-out);
}
.fb-card:hover { transform: translateY(-4px); }
.fb-card__img {
  transition: transform 920ms var(--gh-ease-out);
}
.fb-card:hover .fb-card__img { transform: scale(1.05); }

/* Glow Index 3×3 cards */
.idx-card { transition: transform 520ms var(--gh-ease-out); }
.idx-card:hover { transform: translateY(-5px); }
.idx-card__img { transition: transform 920ms var(--gh-ease-out); }
.idx-card:hover .idx-card__img { transform: scale(1.08); }
.idx-card__arrow {
  transition: transform 380ms var(--gh-ease-out);
}
.idx-card:hover .idx-card__arrow { transform: translateX(6px); }

/* Glow 100 carousel cards — image zoom on hover */
.g100-2026__card {
  transition: transform 420ms var(--gh-ease-out);
}
.g100-2026__card:hover { transform: translateY(-4px); }
.g100-2026__img img {
  transition: transform 920ms var(--gh-ease-out);
}
.g100-2026__card:hover .g100-2026__img img { transform: scale(1.05); }

/* =====================================================================
   4. MAGNETIC CTA (subtle pull on cursor)
   ===================================================================== */
.gh-magnetic { transition: transform 320ms var(--gh-ease-spring); }
@media (hover: none) {
  .gh-magnetic { transform: none !important; }
}

/* =====================================================================
   5. SECTION RHYTHM — small running marquee BETWEEN sections (optional)
   ===================================================================== */
.gh-section-rule {
  position: relative;
  height: 56px;
  border-top: 1px solid var(--line, #DDD7CF);
  border-bottom: 1px solid var(--line, #DDD7CF);
  overflow: hidden;
  background: var(--canvas-2, #EFEAE3);
  margin: 0;
  display: flex;
  align-items: center;
}
.gh-section-rule__track {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: gh2026-ticker 68s linear infinite;
  padding-left: 2rem;
}
.gh-section-rule__track span {
  font-family: var(--ff-serif, 'Canela', serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-muted, #6B645E);
}
.gh-section-rule__track span[aria-hidden="true"] {
  font-family: var(--ff-sans, sans-serif);
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted, #6B645E);
}

/* =====================================================================
   6. ACCESSIBILITY — respect prefers-reduced-motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  [data-gh-reveal],
  [data-glow-reveal],
  [data-glow-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
  .gh2026__h1-line > span { transform: none !important; }
  .gh2026-ticker__track,
  .gh-section-rule__track { animation: none !important; }
  .gh2026__star { animation: none !important; }
  .gh2026__scroll-line::after { animation: none !important; opacity: 0.5; }
}
