:root {
  --anim-duration: 0.8s;
  --anim-delay: 0.12s;
  --easing: cubic-bezier(.25,.1,.25,1);

  --gold: #c9b27d;
  --border: #e5decf;
  --bg: #fff;
  --hover: #faf8f3;
}

/* ================== TYPE ================== */
body,
p,
h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", ui-serif, Georgia, serif;
}

.brand-type {
  font-family: "Playfair Display", ui-serif, Georgia, serif;
}

/* ================== ANIMATIONS ================== */
@keyframes scaleIn {
  0% { transform: scale(.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.will-scale-in {
  opacity: 0;
  transform: scale(.95);
}

.animate-scale-in {
  animation: scaleIn .9s var(--easing) both;
}

[data-pop] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--anim-duration) var(--easing),
    transform var(--anim-duration) var(--easing);
}

.pop-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Media helper */
.media-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* ================== REDUCED MOTION ================== */
@media (prefers-reduced-motion: reduce) {
  .will-scale-in,
  .animate-scale-in,
  [data-pop] {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ================== PRESS MARQUEE ================== */
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

#press-marquee .marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

#press-marquee .marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: clamp(30px, 3vw, 50px);
  animation: marqueeScroll 25s linear infinite;
}

#press-marquee .marquee:hover .marquee-track {
  animation-play-state: paused;
}

#press-marquee .marquee-item img {
  height: clamp(28px, 3vw, 42px);
  object-fit: contain;
  filter: grayscale(100%) contrast(1.05) brightness(0.9);
  transition: all .3s ease;
  opacity: 0.9;
}

#press-marquee .marquee-item:hover img {
  transform: translateY(-2px) scale(1.05);
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* ================== POPUP (kept for future use) ================== */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  backdrop-filter: blur(2px);
}

.popup.show {
  display: flex;
  animation: fadeIn .2s ease-out both;
}

.popup-content {
  width: 100%;
  max-width: 560px;
  background: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0,0,0,.18);
  transform: translateY(8px) scale(.98);
  opacity: 0;
  animation: popIn .28s var(--easing) .08s both;
  text-align: center;
}

.popup-content button {
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
  font-family: "Playfair Display", ui-serif, Georgia, serif;
}

.popup-content button:hover {
  background: var(--gold);
  color: #fff;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes popIn {
  0%   { transform: translateY(8px) scale(.98); opacity: 0; }
  100% { transform: translateY(0)  scale(1);   opacity: 1; }
}

.body--locked {
  overflow: hidden;
}

/* ================== HEADER / NAV (MOBILE FIRST) ================== */

/* Sticky header container */
.ea-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* Nav layout – mobile: brand only, centred */
.ea-nav {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* hide left/right menus on small screens */
.ea-left,
.ea-right {
  display: none;
}

/* center logo text */
.ea-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
}

/* wordmark styling */
.ea-wordmark {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gold);
  font-size: clamp(22px, 5vw, 32px);
  letter-spacing: 0.11em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  background: var(--bg);
  transition: box-shadow 0.3s ease;
}

.ea-wordmark:hover {
  box-shadow: inset 0 -3px 0 var(--gold);
}

/* ====== TABLET & UP: SHOW MENUS ====== */
@media (min-width: 768px) {
  .ea-nav {
    padding: 0;
    height: 80px;
    justify-content: space-between;
  }

  .ea-left,
  .ea-right {
    display: block;
  }

  .ea-left,
  .ea-right {
    width: auto;
  }

  .ea-left ul,
  .ea-right ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .ea-left li,
  .ea-right li {
    border: 1px solid var(--border);
    border-top: none;
    border-bottom: none;
    background: var(--bg);
  }

  .ea-left li + li,
  .ea-right li + li {
    border-left: none;
  }

  .ea-left a,
  .ea-right a {
    display: block;
    padding: 22px 28px;
    text-decoration: none;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-align: center;
    white-space: nowrap;
    transition: background 0.3s, box-shadow 0.3s;
  }

  .ea-left a:hover,
  .ea-right a:hover {
    background: var(--hover);
    box-shadow: inset 0 -3px 0 var(--gold);
  }

  .ea-logo {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 0 32px;
  }

  .ea-wordmark {
    font-size: clamp(26px, 3vw, 36px);
  }
}

/* ====== LARGE DESKTOP TWEAKS ====== */
@media (min-width: 1024px) {
  .ea-nav {
    height: 86px;
  }

  .ea-left,
  .ea-right {
    width: 480px;
  }

  .ea-left a,
  .ea-right a {
    padding: 28px 36px;
  }

  .ea-logo {
    padding: 0 45px;
  }

  .ea-wordmark {
    font-size: clamp(30px, 3vw, 42px);
  }
}
