/* ==========================================================================
   HAUTE ÉCOLE — Roxanne Grewe Dressage & Training
   Extravagant Editorial Design System
   Shared Empire Accent: Grewe Champion Gold (#C5A059)
   ========================================================================== */

:root {
  /* Core Palette: Noir, Silk Ivory, Champagne Gold & Velvet Bordeaux */
  --he-noir-950: #0B0A09;
  --he-noir-900: #12100E;
  --he-noir-800: #1C1916;
  --he-noir-700: #2A2520;

  --he-ivory-50:  #FDFCFA;
  --he-ivory-100: #FAF8F5;
  --he-ivory-200: #F2EDE6;
  --he-ivory-300: #E5DDD2;

  /* Shared Grewe Empire Gold */
  --he-gold-500: #C5A059;
  --he-gold-400: #D8B878;
  --he-gold-300: #EAD3A2;
  --he-gold-600: #9C7A3C;

  /* Extravagant Editorial Accent */
  --he-bordeaux-900: #3A0D16;
  --he-bordeaux-800: #4A121C;
  --he-bordeaux-700: #661B29;

  /* Henk Sister Brand Reference (used subtly in Empire Bridge) */
  --he-racing-navy: #1E3058;

  /* Text Tokens */
  --he-text-dark: #161311;
  --he-text-muted: #5C554E;
  --he-text-light: #FAF8F5;
  --he-text-light-muted: rgba(250, 248, 245, 0.72);

  /* Typography */
  --he-font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --he-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout & Spacing */
  --he-container: min(1240px, 90vw);
  --he-container-narrow: min(860px, 90vw);
  --he-header-h: 84px;
  --he-radius-sm: 2px;
  --he-radius-md: 4px;
  --he-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--he-noir-950);
}

body {
  margin: 0;
  font-family: var(--he-font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--he-text-dark);
  background-color: var(--he-ivory-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--he-gold-500);
  outline-offset: 3px;
}

.he-container {
  width: var(--he-container);
  margin-inline: auto;
}

.he-container--narrow {
  width: var(--he-container-narrow);
  margin-inline: auto;
}

/* Editorial Typography */
.he-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--he-font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--he-gold-500);
}

.he-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--he-gold-500);
  display: inline-block;
}

.he-display {
  font-family: var(--he-font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

.he-display em,
.he-h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--he-gold-500);
}

.he-h2 {
  font-family: var(--he-font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 400;
  line-height: 1.12;
  margin: 0.6rem 0 1.4rem;
}

.he-h3 {
  font-family: var(--he-font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.he-lead {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  line-height: 1.8;
  color: var(--he-text-muted);
}

/* Buttons */
.he-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--he-gold-500);
  border-radius: var(--he-radius-sm);
  transition: background-color 0.35s var(--he-ease), color 0.35s var(--he-ease), border-color 0.35s var(--he-ease), transform 0.35s var(--he-ease);
}

.he-btn--gold {
  background: var(--he-gold-500);
  color: var(--he-noir-950);
}

.he-btn--gold:hover {
  background: var(--he-gold-400);
  border-color: var(--he-gold-400);
  transform: translateY(-2px);
}

.he-btn--outline-light {
  background: transparent;
  color: var(--he-text-light);
  border-color: rgba(197, 160, 89, 0.65);
}

.he-btn--outline-light:hover {
  background: var(--he-gold-500);
  color: var(--he-noir-950);
  border-color: var(--he-gold-500);
  transform: translateY(-2px);
}

.he-btn--outline-dark {
  background: transparent;
  color: var(--he-text-dark);
  border-color: var(--he-noir-700);
}

.he-btn--outline-dark:hover {
  background: var(--he-noir-900);
  color: var(--he-ivory-50);
  border-color: var(--he-noir-900);
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.he-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--he-header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(11, 10, 9, 0.78) 0%, rgba(11, 10, 9, 0) 100%);
  border-bottom: 1px solid rgba(197, 160, 89, 0.14);
  transition: background-color 0.4s var(--he-ease), backdrop-filter 0.4s var(--he-ease), border-color 0.4s var(--he-ease);
}

.he-header.is-scrolled {
  background: rgba(12, 11, 10, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(197, 160, 89, 0.28);
}

.he-header__inner {
  width: var(--he-container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.he-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  color: var(--he-ivory-50);
}

.he-brand__monogram {
  width: 42px;
  height: 42px;
  border: 1px solid var(--he-gold-500);
  display: grid;
  place-items: center;
  font-family: var(--he-font-display);
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--he-gold-400);
  position: relative;
}

.he-brand__monogram::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(197, 160, 89, 0.32);
}

.he-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.he-brand__name {
  font-family: var(--he-font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.he-brand__sub {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--he-gold-400);
}

.he-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.he-nav__link {
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.85);
  position: relative;
  padding-block: 0.35rem;
  transition: color 0.3s ease;
}

.he-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--he-gold-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--he-ease);
}

.he-nav__link:hover,
.he-nav__link.is-active {
  color: var(--he-gold-400);
}

.he-nav__link:hover::after,
.he-nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.he-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(197, 160, 89, 0.5);
  color: var(--he-ivory-50);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.he-menu-toggle span {
  width: 20px;
  height: 1px;
  background: var(--he-gold-400);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Fullscreen Drawer */
.he-drawer {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(11, 10, 9, 0.97);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--he-ease);
}

.he-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.he-drawer__link {
  font-family: var(--he-font-display);
  font-size: 2.3rem;
  font-weight: 400;
  color: var(--he-ivory-50);
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

.he-drawer__link:hover,
.he-drawer__link.is-active {
  color: var(--he-gold-500);
}

/* ==========================================================================
   CINEMATIC FULLSCREEN HERO
   ========================================================================== */
.he-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--he-header-h) + 3rem);
  padding-bottom: clamp(4rem, 9vh, 7.5rem);
  background: var(--he-noir-950);
  color: var(--he-ivory-50);
  overflow: hidden;
}

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

.he-hero__img,
.he-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.76) contrast(1.06);
}

@media (prefers-reduced-motion: no-preference) {
  .he-hero__img {
    animation: heSlowZoom 24s var(--he-ease) infinite alternate;
  }
}

@keyframes heSlowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

.he-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 10, 9, 0.55) 0%, rgba(11, 10, 9, 0.15) 38%, rgba(11, 10, 9, 0.88) 100%),
    linear-gradient(90deg, rgba(11, 10, 9, 0.72) 0%, rgba(11, 10, 9, 0.12) 65%);
}

.he-hero__content {
  position: relative;
  z-index: 2;
  width: var(--he-container);
  margin-inline: auto;
  max-width: 920px;
  margin-left: max(5vw, calc((100vw - 1240px) / 2));
}

.he-hero__title {
  font-size: clamp(3rem, 7vw, 6.2rem);
  color: var(--he-ivory-50);
  margin: 1rem 0 1.4rem;
}

.he-hero__subtitle {
  max-width: 58ch;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.75;
  color: var(--he-text-light-muted);
  margin: 0 0 2.4rem;
}

.he-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
}

.he-hero__video-toggle {
  position: absolute;
  right: max(5vw, calc((100vw - 1240px) / 2));
  bottom: clamp(2rem, 5vh, 3.5rem);
  z-index: 3;
  background: rgba(18, 16, 14, 0.65);
  border: 1px solid rgba(197, 160, 89, 0.45);
  color: var(--he-ivory-50);
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   CREDENTIALS RIBBON
   ========================================================================== */
.he-ribbon {
  background: var(--he-noir-900);
  color: var(--he-ivory-50);
  border-top: 1px solid rgba(197, 160, 89, 0.25);
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
  padding-block: 2.6rem;
}

.he-ribbon__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.he-stat {
  border-left: 1px solid rgba(197, 160, 89, 0.35);
  padding-left: 1.4rem;
}

.he-stat__value {
  font-family: var(--he-font-display);
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  font-weight: 500;
  color: var(--he-gold-400);
  line-height: 1.15;
}

.he-stat__label {
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--he-text-light-muted);
  margin-top: 0.35rem;
}

/* ==========================================================================
   SECTIONS (IVORY & OBSIDIAN)
   ========================================================================== */
.he-section {
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
}

.he-section--ivory {
  background: var(--he-ivory-100);
  color: var(--he-text-dark);
}

.he-section--warm {
  background: var(--he-ivory-200);
  color: var(--he-text-dark);
}

.he-section--noir {
  background: var(--he-noir-900);
  color: var(--he-ivory-50);
}

.he-section--noir .he-lead {
  color: var(--he-text-light-muted);
}

/* Editorial Split (About / Portrait) */
.he-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.he-frame {
  position: relative;
  padding: 1.1rem;
  border: 1px solid rgba(197, 160, 89, 0.4);
  background: var(--he-ivory-50);
}

.he-frame--dark {
  background: var(--he-noir-800);
}

.he-frame img {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
  object-position: center top;
}

.he-frame__caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--he-text-muted);
}

.he-frame--dark .he-frame__caption {
  color: var(--he-gold-400);
}

/* Services Cards */
.he-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.he-card {
  background: var(--he-ivory-50);
  border: 1px solid var(--he-ivory-300);
  padding: 2.6rem 2.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--he-ease), border-color 0.4s var(--he-ease), box-shadow 0.4s var(--he-ease);
}

.he-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--he-bordeaux-800), var(--he-gold-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--he-ease);
}

.he-card:hover {
  transform: translateY(-6px);
  border-color: rgba(197, 160, 89, 0.55);
  box-shadow: 0 22px 44px -18px rgba(18, 16, 14, 0.14);
}

.he-card:hover::before {
  transform: scaleX(1);
}

.he-card__num {
  font-family: var(--he-font-display);
  font-size: 2.4rem;
  font-style: italic;
  color: var(--he-gold-500);
  line-height: 1;
  margin-bottom: 1.2rem;
}

.he-card__list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  border-top: 1px solid var(--he-ivory-300);
  padding-top: 1.2rem;
}

.he-card__list li {
  font-size: 0.9rem;
  color: var(--he-text-muted);
  padding: 0.35rem 0;
  display: flex;
  gap: 0.65rem;
}

.he-card__list li::before {
  content: "◆";
  font-size: 0.55rem;
  color: var(--he-gold-500);
  margin-top: 0.42rem;
}

/* Atelier Dark Quote & Detail Band */
.he-atelier {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.he-quote {
  font-family: var(--he-font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.85rem);
  font-style: italic;
  line-height: 1.25;
  color: var(--he-ivory-50);
  margin: 1.2rem 0 1.8rem;
  border-left: 2px solid var(--he-gold-500);
  padding-left: 1.6rem;
}

.he-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.he-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(197, 160, 89, 0.45);
  color: var(--he-gold-400);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.he-badge:hover {
  background: var(--he-gold-500);
  color: var(--he-noir-950);
}

/* Subpage Editorial Header */
.he-page-hero {
  background: var(--he-noir-950);
  color: var(--he-ivory-50);
  padding: calc(var(--he-header-h) + 4.5rem) 0 4.5rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
  position: relative;
}

.he-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 20%, rgba(74, 18, 28, 0.28), transparent 55%);
  pointer-events: none;
}

.he-page-hero__inner {
  position: relative;
  z-index: 1;
}

.he-page-hero__title {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  margin: 0.8rem 0 1rem;
}

/* Prose Content (Automad Blocks / Markdown) */
.he-prose h2 {
  font-family: var(--he-font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 400;
  margin: 2.4rem 0 1rem;
}

.he-prose h3 {
  font-family: var(--he-font-display);
  font-size: 1.55rem;
  font-weight: 500;
  margin: 1.8rem 0 0.7rem;
}

.he-prose p {
  margin: 0 0 1.3rem;
  color: var(--he-text-muted);
}

.he-prose a {
  color: var(--he-bordeaux-800);
  border-bottom: 1px solid rgba(197, 160, 89, 0.6);
}

.he-prose ul {
  padding-left: 1.2rem;
  color: var(--he-text-muted);
}

/* Gallery Grid & Native Dialog Lightbox */
.he-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}

.he-gallery__item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--he-ivory-300);
  background: var(--he-noir-900);
  aspect-ratio: 4 / 3;
  padding: 0;
}

.he-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--he-ease), opacity 0.4s ease;
}

.he-gallery__item:hover img {
  transform: scale(1.05);
  opacity: 0.88;
}

.he-lightbox {
  border: 1px solid rgba(197, 160, 89, 0.45);
  background: var(--he-noir-950);
  color: var(--he-ivory-50);
  padding: 1rem;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
}

.he-lightbox::backdrop {
  background: rgba(11, 10, 9, 0.88);
  backdrop-filter: blur(8px);
}

.he-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--he-noir-900);
  border: 1px solid var(--he-gold-500);
  color: var(--he-gold-400);
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
}

/* ==========================================================================
   GREWE EQUESTRIAN EMPIRE BRIDGE & FOOTER
   ========================================================================== */
.he-empire {
  background: var(--he-noir-950);
  color: var(--he-ivory-50);
  border-top: 1px solid rgba(197, 160, 89, 0.3);
  padding: 4.5rem 0 3.5rem;
}

.he-empire__header {
  text-align: center;
  margin-bottom: 2.6rem;
}

.he-empire__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

.he-empire__card {
  border: 1px solid rgba(197, 160, 89, 0.25);
  padding: 2.2rem 2.4rem;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  transition: border-color 0.35s ease, background-color 0.35s ease;
}

.he-empire__card--dressage {
  border-color: rgba(197, 160, 89, 0.55);
  background: linear-gradient(135deg, rgba(74, 18, 28, 0.22), rgba(18, 16, 14, 0.6));
}

.he-empire__card--racing:hover {
  border-color: var(--he-gold-500);
  background: linear-gradient(135deg, rgba(30, 48, 88, 0.42), rgba(18, 16, 14, 0.7));
}

.he-empire__tag {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--he-gold-400);
}

.he-empire__name {
  font-family: var(--he-font-display);
  font-size: 2rem;
  margin: 0.3rem 0 0.4rem;
}

.he-empire__desc {
  font-size: 0.9rem;
  color: var(--he-text-light-muted);
  margin: 0;
}

.he-footer {
  background: #070606;
  color: var(--he-text-light-muted);
  border-top: 1px solid rgba(197, 160, 89, 0.16);
  padding: 2.4rem 0;
  font-size: 0.82rem;
}

.he-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}

.he-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.he-footer__links a:hover {
  color: var(--he-gold-400);
}

/* ==========================================================================
   VAN BEBBER / RESCHIO LUXURY MOTION LAYER
   Intro Veil · Scroll Progress · Custom Gold Cursor · Clip & Curtain Reveals
   ========================================================================== */

/* Top Gold Scroll Progress Hairline */
.he-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  background: linear-gradient(90deg, var(--he-bordeaux-700), var(--he-gold-500), var(--he-gold-300));
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}

/* Editorial Intro Veil (lifts cleanly once JS is ready) */
.he-veil {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--he-noir-950);
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: transform 1.05s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.6s ease 0.45s;
}

.he-veil__monogram {
  width: 72px;
  height: 72px;
  border: 1px solid var(--he-gold-500);
  display: grid;
  place-items: center;
  font-family: var(--he-font-display);
  font-size: 1.9rem;
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--he-gold-400);
  position: relative;
  transition: opacity 0.4s ease, transform 0.5s var(--he-ease);
}

.he-veil__monogram::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(197, 160, 89, 0.35);
}

html.js-ready .he-veil {
  transform: translateY(-100%);
  opacity: 0;
}

html.js-ready .he-veil__monogram {
  opacity: 0;
  transform: scale(0.9);
}

@media (prefers-reduced-motion: reduce) {
  .he-veil {
    display: none;
  }
}

/* Bespoke Luxury Gold Custom Cursor (Desktop Fine Pointer Only) */
.he-cursor-dot,
.he-cursor-ring {
  display: none;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .he-cursor-dot,
  .he-cursor-ring {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 250;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease, width 0.35s var(--he-ease), height 0.35s var(--he-ease), background-color 0.35s ease, border-color 0.35s ease;
  }

  .he-cursor-dot {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--he-gold-400);
  }

  .he-cursor-ring {
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 1px solid rgba(197, 160, 89, 0.65);
    background: transparent;
  }

  body.he-cursor-visible .he-cursor-dot,
  body.he-cursor-visible .he-cursor-ring {
    opacity: 1;
  }

  body.he-cursor-hover .he-cursor-ring {
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
    border-color: var(--he-gold-400);
    background: rgba(197, 160, 89, 0.12);
  }

  body.he-cursor-hover .he-cursor-dot {
    opacity: 0;
  }
}

/* Parallax Media Wrapper (Gap-free overscan) */
[data-parallax] {
  overflow: hidden;
}

[data-parallax] > img,
[data-parallax] > video {
  will-change: transform;
  transform: scale(1.12);
}

/* Hero Scroll Cue */
.he-hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.68);
}

.he-hero__scroll-line {
  width: 1px;
  height: 38px;
  background: rgba(197, 160, 89, 0.3);
  position: relative;
  overflow: hidden;
}

.he-hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--he-gold-400);
}

@media (prefers-reduced-motion: no-preference) {
  .he-hero__scroll-line::after {
    animation: heScrollDrop 2.2s var(--he-ease) infinite;
  }
}

@keyframes heScrollDrop {
  0% { top: -100%; }
  50% { top: 0%; }
  100% { top: 100%; }
}

/* Initial Reveal States (Opt-in ONLY when motion is allowed + JS active) */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal="clip"] {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transform: translateY(28px);
    will-change: clip-path, transform, opacity;
  }

  [data-reveal="fade"] {
    opacity: 0;
    transform: translateY(26px);
    will-change: transform, opacity;
  }

  [data-reveal-curtain] {
    clip-path: inset(12% 0 0 0);
    opacity: 0;
    overflow: hidden;
    will-change: clip-path, opacity;
  }

  [data-reveal-curtain] img {
    transform: scale(1.12);
    will-change: transform;
  }

  [data-expand-on-scroll] {
    will-change: clip-path;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .he-nav { display: none; }
  .he-menu-toggle { display: inline-flex; }
  .he-ribbon__grid { grid-template-columns: repeat(2, 1fr); }
  .he-split,
  .he-atelier,
  .he-cards,
  .he-empire__grid {
    grid-template-columns: 1fr;
  }
  .he-hero__scroll-cue { display: none; }
}

@media (max-width: 560px) {
  .he-ribbon__grid { grid-template-columns: 1fr; }
  .he-hero__actions .he-btn { width: 100%; justify-content: center; }
}
