/* ==========================================================================
   KLYVN — Premium Fashion Editorial Site
   ========================================================================== */

:root {
  --color-primary: #111111;
  --color-secondary: #565656;
  --color-bg: #FFFFFF;
  
  --color-border: #E8E5E1;
  --color-btn-bg: #111111;
  --color-btn-text: #FFFFFF;

  /* brand accent — drawn from the KLYVN mark */
  --color-accent-gold: #B8923F;
  --color-accent-green: #3F5A3A;

  --font-display: 'Cormorant Garamond', 'Playfair Display', serif;
  --font-sans: 'Montserrat', sans-serif;

  --header-height: 92px;
  --header-height-tablet: 82px;
  --header-height-mobile: 72px;

  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-primary);
  background: var(--color-bg);
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

.container { max-width: 1320px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: height 0.4s var(--ease-premium), box-shadow 0.4s var(--ease-premium);
}

.site-header.is-scrolled {
  height: 68px;
  background-color: rgba(10, 41, 23, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184, 146, 63, 0.25);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.header-inner {
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-logo { justify-self: start; }

.logo-img {
	margin-top:40px;
  height: 90px;
  width: auto;
  transition: height 0.4s var(--ease-premium);
}

.site-header.is-scrolled .logo-img { height: 36px; }

.header-nav { justify-self: center; }

.nav-list {
  display: flex;
  gap: 44px;
}

.nav-link {
  position: relative;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  padding-bottom: 6px;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent-gold);
  transition: width 0.35s var(--ease-premium);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: #ffffff !important;
}

.header-cta {
  justify-self: end;
}

.btn-premium {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #c18b28;
  color: var(--color-btn-text);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 1px;
  border: 1px solid var(--color-btn-bg);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition:
    transform 0.45s var(--ease-premium),
    background 0.45s var(--ease-premium),
    box-shadow 0.45s var(--ease-premium),
    border-color 0.45s var(--ease-premium),
    letter-spacing 0.45s var(--ease-premium);
}

.btn-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.35) 40%,
    rgba(255, 255, 255, 0.05) 60%,
    transparent 80%
  );
  transform: translateX(-120%);
  transition: transform 0.75s var(--ease-premium);
}

.btn-premium .btn-arrow {
  transition: transform 0.45s var(--ease-premium);
  font-size: 13px;
}

.btn-premium:hover {
  transform: translateY(-3px);
  background: var(--color-accent-green);
  border-color: var(--color-accent-green);
  color: #fff;
  letter-spacing: 2px;
  box-shadow:
    0 10px 26px rgba(63, 90, 58, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-premium:hover::before { transform: translateX(120%); }
.btn-premium:hover .btn-arrow { transform: translateX(6px); }

.btn-premium:active {
  transform: translateY(-1px) scale(0.98);
  transition-duration: 0.15s;
}

.btn-premium:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .btn-premium,
  .btn-premium::before,
  .btn-premium .btn-arrow {
    transition: none !important;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: #ffffff;
  transition: transform 0.35s var(--ease-premium), opacity 0.3s ease;
}

.hamburger.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-premium), transform 0.4s var(--ease-premium), visibility 0.4s;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--color-primary);
}

.btn-premium--mobile { margin-top: 10px; }

/* ==========================================================================
   Hero + Intro — single continuous block
   ========================================================================== */

.hero-block {
  position: relative;
  width: 100%;
  background: var(--color-bg);
  overflow: hidden;
}

.hero-frame {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background-color: #091012;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.15);
  animation: heroZoomIn 8s var(--ease-premium) forwards;
  transition: transform 0.6s var(--ease-premium);
}

@keyframes heroZoomIn {
  from { transform: scale(1.15); }
  to   { transform: scale(1); }
}

.hero-img.zoom-settled {
  animation: none;
  transform: scale(1);
}

.hero-frame:hover .hero-img.zoom-settled {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .hero-img {
    animation: none !important;
    transform: scale(1) !important;
  }
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 65%;
  background: linear-gradient(90deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.32) 45%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

/* ---------- Text + CTA overlaid on the left of the slider ---------- */

.hero-overlay-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 4;
  width: 100%;
  max-width: 520px;
  padding: 0;
  text-align: left;
}

/* ---------- Brand mark: KLYVN wordmark + center divider + sparkle ---------- */

.brand-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 18px;
}

.hero-overlay-content .eyebrow {
  color: #E7CD8C;
  font-size: 68px;
  font-weight: 500;
  letter-spacing: 7px;
  margin-bottom: 0;
  font-family: var(--font-display);
}

.brand-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 270px;
  margin-top: 12px;
}

.brand-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(231,205,140,0) 0%, rgba(231,205,140,0.9) 50%, rgba(231,205,140,0) 100%);
}

.brand-divider-diamond {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #E7CD8C;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(231, 205, 140, 0.65));
  animation: sparkPulse 2.6s ease-in-out infinite;
}

@keyframes sparkPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.85) rotate(0deg); }
  50%      { opacity: 1;    transform: scale(1.2) rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-divider-diamond {
    animation: none !important;
    opacity: 1;
    transform: none !important;
  }
}

.hero-overlay-content .intro-title {
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero-overlay-content .intro-desc {
  color: #E7CD8C;
  opacity: 0.9;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 30px;

}



/* ==========================================================================
   Flying Butterflies
   ========================================================================== */

.butterfly-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

/* Main butterfly position */
.butterfly-flight {
  position: absolute;
  width: var(--bf-size, 90px);
  aspect-ratio: 1 / 1;

  opacity: 0;

  animation:
    bfFadeIn 1s var(--ease-premium) forwards,
    butterflyFlight var(--bf-duration, 12s)
    linear
    var(--bf-delay, 0s)
    infinite;

  will-change: transform;
}

/* Overall butterfly rotation */
.butterfly-rotate {
  width: 100%;
  height: 100%;

  animation:
    butterflyTilt var(--bf-tilt-duration, 3s)
    ease-in-out
    infinite alternate;

  transform-style: preserve-3d;
}

/* Butterfly now scales with its .butterfly-flight container instead of
   being pinned to a fixed 60px box, so the --bf-size per flight path
   (55px–120px) actually takes effect. */
.butterfly {
    position: relative;
    width: 100%;
    height: 100%;
}

.butterfly-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ==========================================================================
   Wing pivots — SINGLE source of truth.

   These four wings and the body were re-exported onto a shared, pre-
   registered canvas so every wing's attachment point sits at the exact
   same pixel location: 49.6% / 47.1% of the layer box. That is why all
   four use the identical --wing-pivot-x / --wing-pivot-y below. If the
   artwork is ever re-exported, recompute this point (find where each
   wing's inner tip lands in the shared canvas) rather than eyeballing
   a new percentage per wing.
   ========================================================================== */

:root {
  --wing-pivot-x: 49.6%;
  --wing-pivot-y: 47.1%;
}

/* ---------- Fore/hind wing size ratio ----------
   Because rotation AND scale share the exact same transform-origin
   (the pivot point above), scaling a wing here keeps its attachment
   tip pinned to the body while the visible blade grows/shrinks around
   it — the wing can't drift out of place. Ratios below are modeled on
   real lepidoptera proportions: forewings (upper) are the dominant,
   wide wing; hindwings (lower) are visibly smaller and more compact.
   scaleX is boosted a bit more than scaleY on the forewing to read as
   "wide" rather than just "bigger". */
:root {
  --forewing-scale: 1.18, 1.08;   /* scaleX, scaleY */
  --hindwing-scale: 0.85, 0.8;
}

/* LOWER WINGS (hindwings) — BACK */
.wing-left-lower {
    z-index: 1;
    transform-origin: var(--wing-pivot-x) var(--wing-pivot-y);
    animation: leftLowerFlap 0.4s ease-in-out infinite alternate;
}

.wing-right-lower {
    z-index: 1;
    transform-origin: var(--wing-pivot-x) var(--wing-pivot-y);
    animation: rightLowerFlap 0.4s ease-in-out infinite alternate;
}

/* UPPER WINGS (forewings) — MIDDLE */
.wing-left-upper {
    z-index: 2;
    transform-origin: var(--wing-pivot-x) var(--wing-pivot-y);
    animation: leftUpperFlap 0.4s ease-in-out infinite alternate;
}

.wing-right-upper {
    z-index: 2;
    transform-origin: var(--wing-pivot-x) var(--wing-pivot-y);
    animation: rightUpperFlap 0.4s ease-in-out infinite alternate;
}

/* BODY — ALWAYS FRONT */
.butterfly-body {
    z-index: 10;
}

@keyframes leftUpperFlap {
    from { transform: scale(var(--forewing-scale)) rotate(0deg); }
    to   { transform: scale(var(--forewing-scale)) rotate(-14deg); }
}

@keyframes rightUpperFlap {
    from { transform: scale(var(--forewing-scale)) rotate(0deg); }
    to   { transform: scale(var(--forewing-scale)) rotate(14deg); }
}

@keyframes leftLowerFlap {
    from { transform: scale(var(--hindwing-scale)) rotate(0deg); }
    to   { transform: scale(var(--hindwing-scale)) rotate(10deg); }
}

@keyframes rightLowerFlap {
    from { transform: scale(var(--hindwing-scale)) rotate(0deg); }
    to   { transform: scale(var(--hindwing-scale)) rotate(-10deg); }
}


/* Fade in */

@keyframes bfFadeIn {

  from {
    opacity: 0;
  }

  to {
    opacity: var(--bf-opacity, 0.95);
  }

}


/* ==========================================================================
   BUTTERFLY FLYING PATH
   ========================================================================== */

@keyframes butterflyFlight {

  0% {
    transform:
      translate3d(
        var(--x-start),
        var(--y-start),
        0
      )
      rotate(var(--r-start));
  }

  20% {
    transform:
      translate3d(
        var(--x-1),
        var(--y-1),
        0
      )
      rotate(var(--r-1));
  }

  45% {
    transform:
      translate3d(
        var(--x-2),
        var(--y-2),
        0
      )
      rotate(var(--r-2));
  }

  70% {
    transform:
      translate3d(
        var(--x-3),
        var(--y-3),
        0
      )
      rotate(var(--r-3));
  }

  100% {
    transform:
      translate3d(
        var(--x-end),
        var(--y-end),
        0
      )
      rotate(var(--r-end));
  }

}


/* Slight natural movement while flying */

@keyframes butterflyTilt {

  0% {
    transform:
      translateY(-3px)
      rotateZ(-3deg);
  }

  100% {
    transform:
      translateY(3px)
      rotateZ(3deg);
  }

}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px) {

  .butterfly-flight {
    width: var(--bf-mobile-size, 48px);
  }

  .butterfly-flight[data-mobile-hide="true"] {
    display: none;
  }

}


/* ==========================================================================
   Reduced Motion
   ========================================================================== */

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

  .butterfly-flight,
  .butterfly-rotate,
  .wing-left-upper,
  .wing-left-lower,
  .wing-right-upper,
  .wing-right-lower {
    animation: none !important;
  }

  .butterfly-flight {
    opacity: 0.85;
  }

  /* Animation carries the forewing/hindwing scale — restore it as a
     static transform so reduced-motion users still see correct proportions. */
  .wing-left-upper,
  .wing-right-upper {
    transform: scale(var(--forewing-scale)) !important;
  }

  .wing-left-lower,
  .wing-right-lower {
    transform: scale(var(--hindwing-scale)) !important;
  }

}

/* ---------- Ambient flower field ---------- */

.flower {
  position: absolute;
  width: 22px;
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.18));
  animation:
    flBloom 1.4s var(--ease-premium) var(--fl-delay, 0s) forwards,
    flSway var(--fl-sdur, 5s) ease-in-out var(--fl-sdelay, 1.4s) infinite;
}

.flower svg { width: 100%; height: 100%; display: block; }

@keyframes flBloom {
  0%   { opacity: 0; transform: scale(0) rotate(var(--fl-rot, -20deg)); }
  70%  { opacity: 1; }
  100% { opacity: var(--fl-op, 0.9); transform: scale(1) rotate(0deg); }
}

@keyframes flSway {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(var(--fl-sway, 6deg)); }
}

/* ==========================================================================
   Intro / CTA content
   ========================================================================== */

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin-bottom: 22px;
}

.intro-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: 0.2px;
  color: #ffffff;
  margin: 0 0 1px;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.intro-desc {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-secondary);
  max-width: 620px;
  margin: 0 auto 1px;
  word-break: keep-all;
  overflow-wrap: normal;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-premium), transform 0.9s var(--ease-premium);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */



/* ==========================================================================
   Responsive — Tablet (768px – 1199px)
   ========================================================================== */

@media (max-width: 1199px) {
  .header-inner { padding: 0 28px; }
  .site-header { height: var(--header-height-tablet); }
  .nav-list { gap: 30px; }
  .intro-title { font-size: 46px; }
  .hero-frame { min-height: 560px; }
}

@media (max-width: 991px) {
  .nav-list { gap: 22px; }
  .nav-link { font-size: 11.5px; }
}

/* ==========================================================================
   Responsive — Mobile (≤ 767px)
   ========================================================================== */

@media (max-width: 767px) {
  :root { --header-height: var(--header-height-mobile); }

  .site-header { height: var(--header-height-mobile); }
  .site-header.is-scrolled { height: 64px; }

  .header-inner {
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }

  .header-nav,
  .header-cta { display: none; }

  .hamburger { display: flex; }

  .logo-img { height: 58px; }
  .site-header.is-scrolled .logo-img { height: 30px; }

  .hero-frame {
    height: 100svh;
    min-height: 560px;
    max-height: 720px;
    object-fit: cover;
  }

  .hero-gradient {
    width: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.7) 100%);
  }

  .hero-overlay-content {
    top: 30%;
    bottom: auto;
    left: 0;
    right: 0;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: none;
    padding: 0 28px;
    text-align: left;
  }

  .brand-mark { align-items: flex-start; }

  .hero-overlay-content .eyebrow {
    font-size: 42px;
    letter-spacing: 5px;
  }

  .brand-divider {
    margin: 10px 0 0;
    max-width: 180px;
  }

  .butterfly { width: 20px !important; }
  .flower { width: 15px !important; }

  .butterfly[data-mobile-hide="true"],
  .flower[data-mobile-hide="true"] { display: none; }

  .intro-title {
    font-size: 20px;
    letter-spacing: 3px;
    line-height: 1.3;
    margin-top: 6px;
  }

  .hero-overlay-content .intro-desc {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 15px;
    line-height: 1.6;
    margin: 8px 0 26px;
    max-width: 260px;
  }

  .eyebrow { letter-spacing: 3px; margin-bottom: 16px; }

  .hero-overlay-content .btn-premium {
    width: auto;
    justify-content: flex-start;
    padding: 13px 26px;
    background: transparent;
    border: 1px solid rgba(231, 205, 140, 0.7);
    color: #E7CD8C;
    letter-spacing: 2px;
  }

  .hero-overlay-content .btn-premium::before { display: none; }

  .hero-overlay-content .btn-premium:hover {
    background: rgba(231, 205, 140, 0.08);
    border-color: #E7CD8C;
    color: #E7CD8C;
    transform: none;
    box-shadow: none;
  }

  .footer-wordmark { font-size: 20px; }
}

@media (max-width: 380px) {
  .intro-title {
    white-space: normal;
    font-size: 20px;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .butterfly,
  .flower,
  .butterfly-img {
    opacity: 0.85;
    animation: none !important;
    transform: none !important;
  }
}



/* ---------- Letter-by-letter KLYVN wordmark reveal (looping) ---------- */

.eyebrow .char {
  display: inline-block;
  opacity: 0;
  letter-spacing: 0.4em;
  filter: blur(6px);
  text-shadow: 0 0 0 rgba(231, 205, 140, 0);
  animation: charRevealBrand 3.6s var(--ease-premium) infinite;
  animation-delay: calc(var(--char-index) * 0.09s);
}

.eyebrow .space {
  display: inline-block;
  width: 0.5em;
}

@keyframes charRevealBrand {
  0% {
    opacity: 0;
    letter-spacing: 0.4em;
    filter: blur(6px);
    text-shadow: 0 0 0 rgba(231, 205, 140, 0);
  }
  20%, 65% {
    opacity: 1;
    letter-spacing: normal;
    filter: blur(0);
    text-shadow: 0 0 18px rgba(231, 205, 140, 0.55);
  }
  100% {
    opacity: 0;
    letter-spacing: 0.4em;
    filter: blur(6px);
    text-shadow: 0 0 0 rgba(231, 205, 140, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow .char {
    animation: none !important;
    opacity: 1 !important;
    letter-spacing: normal !important;
    filter: none !important;
    text-shadow: none !important;
  }
}

/* ---------- Letter-by-letter title reveal (looping) ---------- */

.intro-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px) rotateX(-40deg);
  filter: blur(4px);
  animation: charReveal 3s var(--ease-premium) infinite;
  animation-delay: calc(var(--char-index) * 0.045s);
}

.intro-title .space {
  display: inline-block;
  width: 0.32em;
}

@keyframes charReveal {
  0% {
    opacity: 0;
    transform: translateY(28px) rotateX(-40deg);
    filter: blur(4px);
  }
  15%, 70% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(28px) rotateX(-40deg);
    filter: blur(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-title .char {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ---------- Letter-by-letter subtext reveal (looping) ---------- */

.intro-desc .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px) rotateX(-30deg);
  filter: blur(3px);
  animation: charRevealDesc 3s var(--ease-premium) infinite;
  animation-delay: calc(var(--char-index) * 0.02s);
}

.intro-desc .space {
  display: inline-block;
  width: 0.28em;
}

@keyframes charRevealDesc {
  0% {
    opacity: 0;
    transform: translateY(14px) rotateX(-30deg);
    filter: blur(3px);
  }
  15%, 70% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(14px) rotateX(-30deg);
    filter: blur(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-desc .char {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}



/* Desktop with a mouse: the toggle is hover-only. A click must not open the mobile menu. */
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {

  .hamburger { pointer-events: none; }          /* clicks do nothing; hover on .header-toggle still works */

  .mobile-menu { display: none !important; }    /* the full-screen responsive menu never shows on desktop */

  .hamburger.is-active span:nth-child(1),
  .hamburger.is-active span:nth-child(3) { transform: none; }
  .hamburger.is-active span:nth-child(2) { opacity: 1; }
}

/* ==========================================================================
   FIX — hover dropdown and responsive (mobile) menu must never show together.
   When the toggle is clicked (mobile menu open), the hover dropdown is hidden.
   Also hidden on touch devices, where the click menu is used.
   Placed last so it wins; !important beats the page-scoped hover rules.
   ========================================================================== */
.hamburger[aria-expanded="true"] ~ .desktop-dropdown,
.hamburger.is-active ~ .desktop-dropdown,
.hamburger.active ~ .desktop-dropdown,
.header-toggle:has(.hamburger[aria-expanded="true"]) .desktop-dropdown,
.header-toggle:has(.hamburger.is-active) .desktop-dropdown,
.header-toggle:has(.hamburger.active) .desktop-dropdown {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-10px) !important;
}

@media (hover: none) {
  .desktop-dropdown { display: none !important; }
}


.site-header.is-scrolled .logo-img {
  height: 36px;
  margin-top: 0;
}
 @media (max-width: 767px) {
  .logo-img { height: 58px; margin-top: 0; }
  .site-header.is-scrolled .logo-img { height: 30px; margin-top: 0; }
}


