/* ─── Ammos Retreat — main.css ─────────────────────────────────────────────
   Component & page-level styles. Depends on tokens.css (loaded via style.css).
   ─────────────────────────────────────────────────────────────────────────── */

/* ─── Site header ─────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Raise header above mobile menu so burger stays clickable */
body.mobile-menu-open .site-header {
  z-index: 160;
}

/* Scrolled state: shrink + translucent */
.site-header.is-scrolled {
  background: rgba(250, 247, 241, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(42, 38, 34, 0.06);
}

.site-header.is-scrolled .site-header__inner {
  padding-block: 0.5rem;
}

.site-header.is-scrolled .site-header__logo img {
  height: 52px;
}

@media (max-width: 640px) {
  .site-header.is-scrolled .site-header__logo img { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header__inner,
  .site-header__logo img {
    transition: none !important;
  }
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.875rem;
  transition: padding 0.3s ease;
}

/* Balanced 3-part layout: logo | centred nav | actions. Equal-flex sides keep
   the nav centred, and because nothing is absolutely positioned it can never
   overlap the logo/button — important for longer languages (e.g. Greek). */
.site-header__logo { flex: 1 1 0; min-width: 0; }

.site-header__logo img {
  height: 64px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

/* Centred desktop nav as a normal flex item (not absolute) so it reserves
   space and never overlaps siblings in any language. */
.site-nav--desktop {
  position: static;
  transform: none;
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
}

.site-nav__list li { margin: 0; }

.site-nav__list a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-size: var(--step-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

/* Animated gold underline that draws in from the left (ported hover effect) */
.site-nav__list a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35em;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav__list a:hover::after,
.site-nav__list a:focus-visible::after,
.site-nav__list .current-menu-item > a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible,
.site-nav__list .current-menu-item > a {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .site-nav__list a::after { transition: none; }
}

/* Right: actions container (equal flex to the logo keeps the nav centred) */
.site-header__actions {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.site-header__book-btn {
  padding: 0.6em 1.5em;
  white-space: nowrap;
}

/* Burger — hidden on desktop */
.burger {
  /* Full reset — overrides UA stylesheet and any WP global button styles */
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none;
  padding: 0;

  /* Layout: hidden on desktop, flex on mobile */
  display: none;
  flex-direction: column;
  align-items: center;   /* horizontally center the bars */
  justify-content: center;
  gap: 6px;

  /* Touch target: 44×44 minimum via padding */
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--accent);
  -webkit-tap-highlight-color: transparent;
}

.burger__bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
  transition: transform 0.32s ease, opacity 0.2s ease;
}

/* Burger → X morph */
.burger.is-open .burger__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open .burger__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.is-open .burger__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ─── Mobile fullscreen menu — curtain-panel reveal + mask-rise links ─────── */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  transition: visibility 0.75s;
}

.mobile-menu.is-open { visibility: visible; }

/* Curtain of panels that scale down from the top, staggered, forming the bg */
.mobile-menu__panels {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 0;
}

.mobile-menu__panel {
  flex: 1;
  background: var(--c-cream);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}

.mobile-menu.is-open .mobile-menu__panel { transform: scaleY(1); }
.mobile-menu.is-open .mobile-menu__panel:nth-child(1) { transition-delay: 0.00s; }
.mobile-menu.is-open .mobile-menu__panel:nth-child(2) { transition-delay: 0.06s; }
.mobile-menu.is-open .mobile-menu__panel:nth-child(3) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-menu__panel:nth-child(4) { transition-delay: 0.18s; }
.mobile-menu.is-open .mobile-menu__panel:nth-child(5) { transition-delay: 0.24s; }

/* Hide turtle + WhatsApp while mobile menu is open */
body.mobile-menu-open .whatsapp-float,
body.mobile-menu-open #ammos-scroll-progress {
  opacity: 0 !important;
  pointer-events: none !important;
}

.mobile-menu nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  text-align: center;
}

.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

/* Each link rises out of a mask */
.mobile-menu__list li { overflow: hidden; }

.mobile-menu__list a {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--text);
  text-decoration: none;
  display: block;
  padding: 0.35rem 1rem;
  transform: translateY(115%);
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}

.mobile-menu.is-open .mobile-menu__list a { transform: translateY(0); }
.mobile-menu.is-open .mobile-menu__list li:nth-child(1) a { transition-delay: 0.30s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(2) a { transition-delay: 0.36s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(3) a { transition-delay: 0.42s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(4) a { transition-delay: 0.48s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(5) a { transition-delay: 0.54s; }

.mobile-menu__list a:hover,
.mobile-menu__list a:focus-visible { color: var(--accent); }

.mobile-menu__list .current-menu-item > a { color: var(--accent); }

.mobile-menu__book {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease 0.62s, transform 0.5s ease 0.62s;
}

.mobile-menu.is-open .mobile-menu__book {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none; }
  .mobile-menu__panel {
    transition: none;
    transform: scaleY(1);
    transition-delay: 0s !important;
  }
  .mobile-menu__list a {
    transform: none !important;
    transition: color 0.2s !important;
    transition-delay: 0s !important;
  }
  .mobile-menu__book {
    transition: opacity 0.2s ease !important;
    transform: none !important;
  }
}

/* Mobile breakpoint: show burger, hide desktop nav + book btn. */
@media (max-width: 960px) {
  .site-nav--desktop                        { display: none; }
  .site-header .site-header__book-btn       { display: none !important; }
  .burger                                   { display: flex; }
  /* Belt-and-suspenders: ensure no WP global styles bleed onto the burger */
  button.burger,
  .site-header__actions button.burger {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
}

@media (max-width: 640px) {
  .site-header__logo img { height: 50px; }
}

/* ─── Hero-page overlay header / non-hero offset ─────────────────────────── */

:root { --header-h: calc(64px + 1.75rem); }
@media (max-width: 640px) { :root { --header-h: calc(50px + 1.75rem); } }

/* Non-hero pages: push <main> content below the fixed header */
body:not(.has-hero) #main-content {
  padding-top: var(--header-h);
}

/* Hero pages: transparent at top of page */
body.has-hero .site-header {
  background: transparent;
  border-bottom-color: transparent;
}

/* Subtle top scrim so logo + nav read over any hero image */
body.has-hero .site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  bottom: -1.5rem;
  background: linear-gradient(
    to bottom,
    rgba(42, 38, 34, 0.30) 0%,
    rgba(42, 38, 34, 0.08) 60%,
    transparent 100%
  );
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s ease;
}

body.has-hero .site-header.is-scrolled::before {
  opacity: 0;
}

/* When scrolled: restore translucent cream + blur (from existing .is-scrolled) */
body.has-hero .site-header.is-scrolled {
  background: rgba(250, 247, 241, 0.88);
  border-bottom-color: rgba(42, 38, 34, 0.06);
}

/* Nav links: cream over dark hero */
body.has-hero .site-header:not(.is-scrolled) .site-nav__list a {
  color: rgba(250, 247, 241, 0.90);
}

body.has-hero .site-header:not(.is-scrolled) .site-nav__list a:hover,
body.has-hero .site-header:not(.is-scrolled) .site-nav__list a:focus-visible,
body.has-hero .site-header:not(.is-scrolled) .site-nav__list .current-menu-item > a {
  color: var(--c-gold);
}

/* Logo: invert to white over dark hero; revert naturally when .is-scrolled resets bg */
body.has-hero .site-header:not(.is-scrolled) .site-header__logo img {
  filter: brightness(0) invert(1) opacity(0.92);
}

/* Burger bars: cream on dark hero */
body.has-hero .site-header:not(.is-scrolled) .burger__bar {
  background-color: rgba(250, 247, 241, 0.90);
}

/* ─── Site footer ─────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--c-ink);
  color: var(--c-cream);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(250, 247, 241, 0.1);
}

/* Column 1: brand */
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer__brand img {
  height: 68px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.85);
}

@media (max-width: 768px) {
  .site-footer__brand img { height: 56px; }
}

.site-footer__tagline {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-style: italic;
  color: rgba(250, 247, 241, 0.5);
  margin: 0;
  line-height: 1.5;
}

.site-footer__book-btn {
  align-self: flex-start;
}

/* Column headings */
.site-footer__col-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}

/* Column 2: explore nav */
.site-footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.site-footer__nav-list a {
  color: rgba(250, 247, 241, 0.68);
  font-family: var(--font-sans);
  font-size: 1rem;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
}

.site-footer__nav-list a:hover,
.site-footer__nav-list a:focus-visible {
  color: var(--accent);
}

/* Column 3: contact */
.site-footer__contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-footer__contact-list li {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: rgba(250, 247, 241, 0.68);
  line-height: 1.4;
}

.site-footer__contact-list a {
  color: rgba(250, 247, 241, 0.68);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__contact-list a:hover,
.site-footer__contact-list a:focus-visible {
  color: var(--accent);
}

.site-footer__legal-divider {
  border: none;
  border-top: 1px solid rgba(250, 247, 241, 0.1);
  margin: 0 0 1rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.site-footer__legal a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: rgba(250, 247, 241, 0.38);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: rgba(250, 247, 241, 0.72);
}

/* Bottom bar */
.site-footer__bottom {
  padding-top: clamp(1.25rem, 3vw, 2rem);
  text-align: center;
}

.site-footer__copy {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: rgba(250, 247, 241, 0.28);
  margin: 0;
}

@media (max-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

/* ─── Floating WhatsApp button ────────────────────────────────────────────── */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: #fff;
  opacity: 0;
  animation: wa-enter 0.4s ease 1.2s forwards;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5), 0 3px 8px rgba(0, 0, 0, 0.22);
}

.whatsapp-float:focus-visible {
  outline: 2px solid #25D366;
  outline-offset: 4px;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

@keyframes wa-enter {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.45);
    animation: wa-pulse 2.8s ease-out 2.5s infinite;
    pointer-events: none;
  }
}

@keyframes wa-pulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.4);  opacity: 0; }
  100% { transform: scale(1.4);  opacity: 0; }
}

@media (max-width: 640px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* ─── Intro overlay (injected by JS — SEO-safe) ───────────────────────────── */

#ammos-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--c-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#ammos-intro-overlay.is-exiting {
  animation: overlay-exit 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.overlay__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
  pointer-events: none;
}

.overlay__logo {
  height: 52px;
  width: auto;
  opacity: 0;
  transform: translateY(10px);
  animation: overlay-fade-up 0.5s cubic-bezier(0.25, 0, 0.25, 1) 0.1s forwards;
}

.overlay__words {
  display: flex;
  align-items: baseline;
  gap: 0.55em;
}

.overlay__words span {
  font-family: var(--font-serif);
  font-size: var(--step-h3);
  color: var(--c-ink);
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(8px);
  animation: overlay-fade-up 0.35s cubic-bezier(0.25, 0, 0.25, 1) forwards;
}

.overlay__words span:nth-child(1) { animation-delay: 0.68s; }
.overlay__words span:nth-child(2) { animation-delay: 1.00s; }
.overlay__words span:nth-child(3) { animation-delay: 1.32s; color: var(--accent); }

@keyframes overlay-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes overlay-exit {
  to { opacity: 0; transform: translateY(-30px); }
}

/* ─── Shared components ───────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.875em 2.25em;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--step-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--accent-dk);
  color: #fff;
  transform: translateY(-2px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-size: var(--step-small);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.link-arrow::after {
  content: '→';
  display: inline-block;
  transition: transform 0.2s;
}

.link-arrow:hover,
.link-arrow:focus-visible {
  color: var(--accent-dk);
}

.link-arrow:hover::after {
  transform: translateX(5px);
}

.section-header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-header--centered { text-align: center; }

.section-header__title {
  font-size: var(--step-h2);
  color: var(--text);
  margin: 0 0 0.4em;
}

.section-header__sub {
  font-size: var(--step-body);
  color: var(--text-soft);
  margin: 0;
}

.section-header__body {
  font-size: var(--step-body);
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 64ch;
  margin: 0;
}

.section-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* ─── Scroll reveal ──────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── Heading word-mask reveal (ported from animmaster typography) ───────── */

.tr { }

.tr__w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.15;   /* room for ascenders/descenders inside the mask */
}

.tr__i {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.72s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

.tr.is-revealed .tr__i {
  transform: translateY(0);
}

/* ─── Staggered children reveal ─────────────────────────────────────────── */

.stg {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform;
}

[data-stagger].is-revealed .stg {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .tr__i { transform: none; transition: none; }
  .stg { opacity: 1; transform: none; transition: none; }
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  height: 100svh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg-wrap {
  position: absolute;
  inset: -20% 0;
  z-index: 0;
}

.hero__poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero__video.is-playing {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 38, 34, 0.42);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.hero__title {
  font-size: var(--step-hero);
  color: #fff;
  margin: 0 0 0.2em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-family: var(--font-sans);
  font-size: var(--step-h3);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.04em;
  margin: 0 0 2.5rem;
}

/* ─── Intro ──────────────────────────────────────────────────────────────── */

.intro {
  background: var(--bg);
}

.intro__text {
  max-width: 58ch;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.intro__lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.85;
  color: var(--text);
  margin: 0;
}

/* ─── Feature cards ──────────────────────────────────────────────────────── */

/*
 * 6-column grid: row 1 = cards 01–03 (each span 2), row 2 = cards 04–05
 * centered as a pair (col 2–3 and col 4–5), leaving one empty col each side.
 */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.feature-card:nth-child(1),
.feature-card:nth-child(2),
.feature-card:nth-child(3) { grid-column: span 2; }

.feature-card:nth-child(4) { grid-column: 2 / span 2; }
.feature-card:nth-child(5) { grid-column: 4 / span 2; }

/* Tablet: 2 columns, reset all explicit placements */
@media (max-width: 900px) {
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
  .feature-card:nth-child(n) { grid-column: span 1; }
}

/* Mobile: single column */
@media (max-width: 560px) {
  .feature-cards { grid-template-columns: 1fr; }
}

.feature-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.3s ease;
}

/* Reveal — cards animate individually via data-reveal-delay set in JS */
.feature-card.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.3s ease;
}

.feature-card.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hover */
.feature-card.is-revealed:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(42, 38, 34, 0.1);
}

.feature-card.is-revealed:hover .feature-card__num  { opacity: 0.12; }
.feature-card.is-revealed:hover .feature-card__icon { transform: translateY(-2px); }

/* Large faint serial number — top-right index element */
.feature-card__num {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 4vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  color: var(--c-ink);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.3s ease;
}

/* Gold line SVG icon */
.feature-card__icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.feature-card__icon svg { display: block; }

/* Card title */
.feature-card__title {
  font-family: var(--font-sans);
  font-size: var(--step-body);
  font-weight: 500;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

.feature-card__desc {
  font-size: var(--step-small);
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0;
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .feature-card.reveal,
  .feature-card.reveal.is-revealed,
  .feature-card.is-revealed:hover {
    transform: none !important;
  }
  .feature-card__icon { transition: none; }
}

/* ─── Marquee strip ──────────────────────────────────────────────────────── */

.marquee {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(1rem, 1.8vw, 1.375rem);
  overflow: hidden;
  /* Edge fade masks — words drift in/out rather than hard-cut */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 7%,
    #000 93%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 7%,
    #000 93%,
    transparent 100%
  );
}

.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  animation: marquee-scroll 55s linear infinite;
  will-change: transform;
}

/* Slow on hover — a gentle pause invitation */
.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__set {
  display: inline-flex;
  align-items: center;
}

.marquee__item {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.8vw, 1.625rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.marquee__sep {
  color: var(--accent);
  font-size: 1.1rem;
  margin-inline: clamp(0.875rem, 1.5vw, 1.375rem);
  opacity: 0.85;
  line-height: 1;
  display: inline-block;
}

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

/* Reduced motion: static centered wrap, duplicate hidden */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
    padding-block: clamp(1.25rem, 2.5vw, 2rem);
  }

  .marquee__track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    gap: 0.25rem 0;
  }

  .marquee__set:last-child { display: none; }

  .marquee__set {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
  }

  .marquee__item { white-space: normal; }
}

/* ─── Gallery grid (shared: house + kefalonia) ───────────────────────────── */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-grid__item {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--c-sand-dk);
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0, 0.25, 1);
}

.gallery-grid__item:hover img {
  transform: scale(1.05);
}

/* ─── House section ───────────────────────────────────────────────────────── */

.house-gallery {
  background: var(--bg-alt);
}

/* ─── Kefalonia section ───────────────────────────────────────────────────── */

.kefalonia {
  background: var(--bg);
}

.kefalonia__kicker {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.kefalonia__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 500;
  line-height: 1;
  margin: 0 0 0.2em;
  color: var(--text);
}

.kefalonia__lead {
  font-family: var(--font-sans);
  font-size: var(--step-h3);
  font-style: italic;
  font-weight: 400;
  color: var(--text-soft);
  margin: 0 0 1.5rem;
}

.kefalonia__feature {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
}

.kefalonia__body-text {
  font-size: var(--step-body);
  line-height: 1.85;
  color: var(--text-soft);
  margin: 0 0 1.75rem;
}

/* ─ Flip card container ─ */

.kef-card {
  position: relative;
  perspective: 1000px;
}

.kef-card--feature {
  aspect-ratio: 3 / 2;
}

.kef-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.kef-card.is-flipped .kef-card__inner {
  transform: rotateY(180deg);
}

.kef-card__front,
.kef-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
}

.kef-card__front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kef-card__back {
  transform: rotateY(180deg);
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1rem, 3vw, 1.75rem);
  gap: 0.5rem;
}

/* Affordance: + circle in bottom-right — primary flip trigger (click/tap on all devices) */
/* !important overrides WP 5.9+ global block stylesheet which targets <button> elements */
.kef-card__hint {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(250, 247, 241, 0.88) !important;
  background-color: rgba(250, 247, 241, 0.88) !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--accent) !important;
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
  pointer-events: auto;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.kef-card.is-flipped .kef-card__hint {
  transform: rotate(45deg);
}

/* Back card content */
.kef-card__place {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text);
  margin: 0;
  line-height: 1.1;
}

.kef-card--feature .kef-card__place {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.kef-card--strip .kef-card__place {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
}

.kef-card__desc {
  font-family: var(--font-sans);
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0;
}

.kef-card--feature .kef-card__desc {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}

.kef-card--strip .kef-card__desc {
  font-size: clamp(0.85rem, 1.3vw, 1rem);
}

.kef-card--strip .kef-card__back {
  padding: clamp(0.75rem, 2.5vw, 1.25rem);
  gap: 0.35rem;
}

.kef-card__credit {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  align-self: stretch;
  text-align: center;
}

/* Keyboard focus ring on the hint button */
.kef-card__hint:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Strip grid */
.kefalonia__strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 1vw, 0.875rem);
}

.kef-card--strip {
  aspect-ratio: 4 / 3;
}

/* Responsive */
@media (max-width: 860px) {
  .kefalonia__feature {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .kefalonia__strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {
  .kefalonia__strip {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion: crossfade instead of 3D flip */
@media (prefers-reduced-motion: reduce) {
  .kef-card__inner {
    transform-style: flat;
    transition: none;
  }
  .kef-card.is-flipped .kef-card__inner {
    transform: none;
  }
  .kef-card__front,
  .kef-card__back {
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    transition: opacity 0.3s ease;
  }
  .kef-card__back {
    transform: none;
    opacity: 0;
  }
  .kef-card.is-flipped .kef-card__back {
    opacity: 1;
  }
  .kef-card.is-flipped .kef-card__front {
    opacity: 0;
  }
  .kef-card__hint {
    transition: none;
  }
}

/* ─── Reviews ────────────────────────────────────────────────────────────── */

.reviews {
  background: var(--bg-alt);
}

.section-kicker {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 3);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 16px rgba(42, 38, 34, 0.06), 0 1px 3px rgba(42, 38, 34, 0.04);
}

.review-card__stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.review-card__quote {
  margin: 0;
  flex: 1;
}

.review-card__quote-mark {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 5vw, 4.5rem);
  line-height: 0.7;
  color: var(--accent);
  opacity: 0.18;
  margin-bottom: 0.35rem;
  user-select: none;
}

.review-card__quote p {
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  margin: 0;
}

.review-card__footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.review-card__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  flex-shrink: 0;
  line-height: 1;
}

.review-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.review-card__author {
  font-size: var(--step-small);
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.review-card__country {
  font-size: 0.75rem;
  color: var(--text-soft);
  line-height: 1.2;
}

/* ─── Wave divider ───────────────────────────────────────────────────────── */

.wave-divider {
  position: relative;
  height: clamp(80px, 8vw, 120px);
  overflow: hidden;
  display: block;
  margin: 0;
  line-height: 0;
}

.wave-divider--flip {
  transform: scaleY(-1);
}

.wave-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  display: block;
  will-change: transform;
}

.wave-layer--1 {
  fill: var(--c-sea-dk);
  opacity: 0.55;
  animation: wave-drift 25s linear infinite;
}

.wave-layer--2 {
  fill: var(--c-sea);
  opacity: 0.65;
  animation: wave-drift 20s linear infinite;
}

.wave-layer--3 {
  fill: var(--bg-alt);
  opacity: 0.85;
  animation: wave-drift 15s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .wave-layer {
    animation: none;
    width: 100%;
  }
}

/* ─── Caretta ────────────────────────────────────────────────────────────── */

.caretta {
  position: relative;
  min-height: clamp(600px, 90vh, 1000px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--c-cream);
}

.caretta__bg {
  position: absolute;
  inset: 0;
  background-image: url('/wp-content/uploads/2025/08/a-sea-turtle-makes-his-way-down-a-sandy-beach-to-t-2023-11-27-04-50-05-utc-1800x975.jpg');
  background-size: cover;
  background-position: center 55%;
  animation: caretta-ken-burns 20s ease-in-out infinite alternate;
  will-change: transform;
}

/* Two-layer overlay: dark bottom-to-top for legibility + dark left edge for text contrast */
.caretta__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,  rgba(20, 28, 26, 0.95) 0%, rgba(20, 28, 26, 0.62) 38%, rgba(20, 28, 26, 0.08) 72%, transparent 100%),
    linear-gradient(to right, rgba(20, 28, 26, 0.48) 0%, transparent 55%);
  pointer-events: none;
}

.caretta__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) clamp(3rem, 8vh, 6rem);
  max-width: min(640px, 90vw);
}

.caretta__kicker {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 0.9rem;
}

.caretta__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  color: var(--c-cream);
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.caretta__text {
  font-size: var(--step-body);
  line-height: 1.9;
  color: rgba(250, 247, 241, 0.8);
  margin: 0;
  max-width: 520px;
}

@keyframes caretta-ken-burns {
  from { transform: scale(1)    translate(0,    0); }
  to   { transform: scale(1.08) translate(-1%, 1%); }
}

@media (prefers-reduced-motion: reduce) {
  .caretta__bg { animation: none; }
}

/* ─── About page — Hero ──────────────────────────────────────────────────── */

.about-hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Full-bleed background image */
.about-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* Gradient: left-heavy for text legibility + bottom lift for title */
.about-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      rgba(42, 38, 34, 0.76) 0%,
      rgba(42, 38, 34, 0.50) 28%,
      rgba(42, 38, 34, 0.10) 55%,
      transparent 72%
    ),
    linear-gradient(
      to top,
      rgba(42, 38, 34, 0.62) 0%,
      rgba(42, 38, 34, 0.24) 22%,
      transparent 45%
    );
}

/* Text content: anchored to bottom-left */
.about-hero__content {
  position: relative;
  z-index: 3;
  width: 52%;
  padding: 0 var(--gutter) clamp(3rem, 8vh, 6rem);
}

/* Display title: Fraunces italic, large, left-aligned */
.about-hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.05;
  color: #fff;
  margin: 0 0 0.28em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.22);
}

/* Sub-line: Afacad, all-caps, gold, notation weight */
.about-hero__sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0;
  line-height: 1;
}

/* Mobile spec list: same info as annotations, stacked vertically */
/* Hidden on desktop; shown on mobile via media query below */
.about-hero__spec-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 0.55rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  opacity: 0;
  animation: anno-enter 0.45s ease forwards;
}

.spec-item--1 { animation-delay: 0.70s; }
.spec-item--2 { animation-delay: 0.85s; }
.spec-item--3 { animation-delay: 1.00s; }
.spec-item--4 { animation-delay: 1.15s; }

.spec-item__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-gold);
  flex-shrink: 0;
}

.spec-item__label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 247, 241, 0.82);
  line-height: 1;
}

/* Scroll cue: chevron, bottom-center, subtle bob */
.about-hero__scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(250, 247, 241, 0.45);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: about-hero-bob 2.2s ease-in-out 2.2s infinite;
}

@keyframes about-hero-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ─ Architectural annotation marks (desktop only) ─ */

@keyframes anno-enter {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: none; }
}

/* Annotation container — full-hero, sits above image, below content */
.about-hero__annotations {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Each annotation: dot + hairline connector + label */
.anno {
  position: absolute;
  display: flex;
  align-items: center;
  opacity: 0;
  animation: anno-enter 0.45s ease forwards;
}

.anno__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-gold);
  flex-shrink: 0;
  box-shadow: 0 0 4px rgba(167, 117, 64, 0.6);
}

.anno__line {
  width: 28px;
  height: 1px;
  background: rgba(250, 247, 241, 0.50);
  flex-shrink: 0;
}

.anno__label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 247, 241, 0.95);
  white-space: nowrap;
  padding-left: 7px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65), 0 0 14px rgba(0, 0, 0, 0.30);
}

/*
 * Annotation positions — tuned for HighRes-2-2-scaled.jpg composition.
 * Adjust top/left percentages if the hero image is swapped.
 */
/* BUILT · 1958 — anchored to same right edge as the architect block below */
.anno--1 {
  bottom: 21%;
  right: 5%;
  animation-delay: 0.60s;
}

/* Title-block annotation: stacked, bottom-right, like a drawing title block */
.anno--4 {
  bottom: 8%;
  right: 5%;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  animation-delay: 0.80s;
}

/* No horizontal line on the title block */
.anno--4 .anno__line { display: none; }

/* Stacked label block with right-edge rule */
.anno__block {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  border-right: 1px solid rgba(250, 247, 241, 0.38);
  padding-right: 9px;
}

.anno__block span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 247, 241, 0.95);
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65), 0 0 14px rgba(0, 0, 0, 0.30);
}

/* ─ Mobile: annotations → vertical spec list ─ */
@media (max-width: 767px) {
  .about-hero__annotations  { display: none; }
  .about-hero__spec-list    { display: flex; }
  .about-hero__content      { width: 100%; }

  /* Stronger bottom-up overlay on mobile (no left-gradient needed) */
  .about-hero__overlay {
    background: linear-gradient(
      to top,
      rgba(42, 38, 34, 0.84) 0%,
      rgba(42, 38, 34, 0.52) 35%,
      rgba(42, 38, 34, 0.16) 62%,
      transparent 80%
    );
  }
}

/* Reduced motion: reveal immediately, no stagger, no bob */
@media (prefers-reduced-motion: reduce) {
  .anno,
  .spec-item                  { animation: none !important; opacity: 1; }
  .about-hero__scroll-cue     { animation: none; }
}

/* ─── Scroll progress indicator ──────────────────────────────────────────── */

#ammos-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#ammos-scroll-progress.is-visible {
  opacity: 1;
}

.sp-track {
  position: relative;
  height: 3px;
  background: var(--line);
  overflow: visible;
}

.sp-fill {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: calc(var(--sp-pct, 0) * 100%);
  background: var(--accent);
}

.sp-turtle {
  position: absolute;
  top: 100%;
  left: calc(var(--sp-pct, 0) * 100%);
  transform: translateX(-50%);
  color: var(--accent);
  line-height: 0;
  z-index: 201;
}

.sp-turtle__icon {
  display: block;
  animation: turtle-bob 0.9s ease-in-out infinite alternate;
}

@keyframes turtle-bob {
  from { transform: rotate(-3deg) translateY(-1.5px); }
  to   { transform: rotate(3deg)  translateY(1.5px); }
}

@media (prefers-reduced-motion: reduce) {
  .sp-turtle__icon { animation: none; }
}

/* ─── Comfort section ────────────────────────────────────────────────────── */

.comfort-section {
  background: var(--bg);
  padding-block: clamp(4rem, 10vh, 7rem);
}

.comfort-section__header {
  text-align: center;
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.comfort-section__kicker {
  font-family: var(--font-sans);
  font-size: var(--step-small);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 1.25rem;
}

.comfort-section__lead {
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 1.05vw, 1rem);
  line-height: 1.85;
  color: var(--text);
  margin: 0;
}

/* Card grid — 4 cols desktop → 2 cols tablet → 1 col mobile */
.comfort-section__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Card shell — white surface on cream bg, clear definition */
.comfort-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 2px solid transparent;
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-bottom-color 0.28s ease;
}

.comfort-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(42, 38, 34, 0.09), 0 2px 8px rgba(42, 38, 34, 0.05);
  border-bottom-color: var(--c-gold);
}

/* Icon: 44px container, gold, nudges up on hover */
.comfort-card__icon {
  width: 44px;
  height: 44px;
  color: var(--c-gold);
  flex-shrink: 0;
  transition: transform 0.28s ease, color 0.28s ease;
}

.comfort-card__icon svg {
  width: 100%;
  height: 100%;
}

.comfort-card:hover .comfort-card__icon {
  transform: translateY(-2px);
  color: var(--c-gold-dk);
}

.comfort-card__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--c-ink);
  margin: 0;
}

.comfort-card__desc {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-soft);
  margin: 0;
}

@media (max-width: 900px) {
  .comfort-section__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .comfort-section__cards {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion: disable all micro-interaction movement */
@media (prefers-reduced-motion: reduce) {
  .comfort-card,
  .comfort-card__icon {
    transition: none;
  }

  .comfort-card:hover {
    transform: none;
    box-shadow: none;
  }

  .comfort-card:hover .comfort-card__icon {
    transform: none;
  }
}

/* ─── Designer section ───────────────────────────────────────────────────── */

.designer-section {
  background: var(--bg-alt);
  padding-block: clamp(5rem, 14vh, 9rem);
}

.designer-section__inner {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: clamp(3.5rem, 7vw, 7rem);
  align-items: start;
}

/* Principle quote: gold vertical rule + generous left padding */
.designer-section__principle-wrap {
  margin: 0;
  padding: 0.25rem 0 0.25rem 1.75rem;
  border-left: 1px solid var(--c-gold);
}

.designer-section__principle {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.25;
  color: var(--c-ink);
  margin: 0 0 1.25rem;
}

.designer-section__attribution {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
}

/* Right column */
.designer-section__kicker {
  font-family: var(--font-sans);
  font-size: var(--step-small);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 0.875rem;
}

.designer-section__name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.2;
  color: var(--c-ink);
  margin: 0 0 1.5rem;
}

.designer-section__body {
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 1.05vw, 1rem);
  line-height: 1.85;
  color: var(--text);
  max-width: 52ch;
  margin: 0 0 1.75rem;
}

.designer-section__address {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0;
}

@media (max-width: 767px) {
  .designer-section__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .designer-section__body {
    max-width: 100%;
  }
}

/* ── Tombazis name hover/tap photo preview ───────────────────────────────── */

.tombazis-name-wrap {
  position: relative;
}

/* Button reset — !important overrides WP 5.9+ global block stylesheet on <button> */
.tombazis-trigger {
  -webkit-appearance: none;
  appearance: none;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline;
  text-align: left;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tombazis-trigger:hover {
  color: var(--c-gold);
}

.tombazis-trigger:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 4px;
  border-radius: 2px !important;
}

/* Inline northeast arrow affordance */
.tombazis-arrow {
  display: inline-block;
  vertical-align: middle;
  width: 0.65em;
  height: 0.65em;
  color: var(--c-gold);
  margin-left: 0.4em;
  margin-bottom: 0.12em;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.tombazis-trigger:hover .tombazis-arrow {
  transform: translate(2px, -2px);
}

/* Preview card — appears above the name on desktop */
.tombazis-preview {
  position: absolute;
  bottom: calc(100% + 0.875rem);
  left: 0;
  right: 0;
  width: 220px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow:
    0 8px 40px rgba(42, 38, 34, 0.14),
    0 2px 8px rgba(42, 38, 34, 0.07);
  overflow: hidden;
  z-index: 200;
  pointer-events: none;
  /* Closed state */
  opacity: 0;
  transform: translateX(var(--preview-x, 0px)) translateY(14px) scale(0.88);
  transition:
    opacity 0.22s ease,
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tombazis-preview.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(var(--preview-x, 0px)) translateY(0) scale(1);
}

.tombazis-preview__img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}

.tombazis-preview__caption {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  text-align: center;
  padding: 0.625rem 0.75rem;
  margin: 0;
  border-top: 1px solid var(--line);
}

/* Reduced motion: skip scale/translate spring, use simple fade */
@media (prefers-reduced-motion: reduce) {
  .tombazis-preview {
    transform: none;
    transition: opacity 0.18s ease;
  }

  .tombazis-preview.is-open {
    transform: none;
  }
}

/* Mobile: card drops below the name (no room above) */
@media (max-width: 640px) {
  .tombazis-preview {
    bottom: auto;
    top: calc(100% + 0.75rem);
    width: min(280px, calc(100vw - 3rem));
  }
}

/* ─── Story section ──────────────────────────────────────────────────────── */

.story-section {
  background: var(--bg);
  padding-block: clamp(4rem, 10vh, 7rem);
}

.story-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.story-section__kicker {
  font-family: var(--font-sans);
  font-size: var(--step-small);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 1.5rem;
}

.story-section__body p {
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 1.05vw, 1rem);
  line-height: 1.85;
  color: var(--text);
  max-width: 48ch;
  margin: 0;
}

@media (max-width: 767px) {
  .story-section__inner {
    grid-template-columns: 1fr;
  }

  .story-section__body p {
    max-width: 100%;
  }
}

/* ─── Before/after drag slider ───────────────────────────────────────────── */

.ba-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.ba-slider:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
}

.ba-slider__then,
.ba-slider__now {
  position: absolute;
  inset: 0;
}

.ba-slider__then img,
.ba-slider__now img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  draggable: false;
}

/* Period treatment for the "then" photo */
.ba-slider__then img {
  filter: sepia(0.4) saturate(0.8);
}

/* THEN layer (top): clipped to left portion up to the divider; JS updates in real time */
.ba-slider__then {
  clip-path: inset(0 50% 0 0);
}

/* Era labels: Fraunces italic, top corners, with gradient scrim behind */
.ba-slider__label {
  position: absolute;
  top: 0;
  z-index: 4;
  padding: 0.75rem 0.9rem 1.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.7rem, 1.4vw, 0.875rem);
  color: rgba(250, 247, 241, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  white-space: nowrap;
}

.ba-slider__label--then {
  left: 0;
  background: linear-gradient(
    135deg,
    rgba(42, 38, 34, 0.45) 0%,
    transparent 70%
  );
}

.ba-slider__label--now {
  right: 0;
  text-align: right;
  background: linear-gradient(
    225deg,
    rgba(42, 38, 34, 0.45) 0%,
    transparent 70%
  );
}

/* Divider: full-height hairline with the drag handle riding on it */
.ba-slider__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(250, 247, 241, 0.70);
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}

/* Gold circular drag handle centred on the divider */
.ba-slider__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
  cursor: col-resize;
  pointer-events: auto;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ba-slider:focus-visible .ba-slider__handle,
.ba-slider__handle:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* ── Section 5: Lepeda Beach — Sticky drone + sticky-stacking fact cards ─── */
/*
 * Pattern: each .lepeda-fact-wrap provides scroll height.
 * The .lepeda-fact inside is position:sticky at the same top offset.
 * Card 2 scrolls up and rests on card 1; card 3 rests on card 2.
 * z-index 1→3 ensures later cards always appear on top.
 * Pure CSS — no JS, no gaps.
 */

.lepeda-section {
  /* No overflow:hidden — kills sticky positioning on descendants */
}

.lepeda-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Default align-items:stretch lets left column grow to match right column,
     so the drone image stays pinned for the full card-stacking duration. */
}

/* LEFT: sticky drone aerial */
.lepeda-section__sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  overflow: hidden;
}

.lepeda-section__sticky img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: lepeda-drift 22s ease-in-out infinite alternate;
  transform-origin: center 30%;
}

@keyframes lepeda-drift {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

/* RIGHT: cream column */
.lepeda-section__content {
  background: var(--bg);
}

/* Section intro — kicker + heading above the card stack */
.lepeda-section__head {
  padding: clamp(5rem, 12vh, 8rem) clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vh, 3rem);
}

.lepeda-section__kicker {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 1.25rem;
}

.lepeda-section__heading {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--c-ink);
  margin: 0;
}

/* ── Stacking card wrappers ──────────────────────────────────────────────── */

/* Each wrapper is taller than the card inside — the gap (wrapper - card height)
   is the scroll distance the user has before the next card arrives on top. */
.lepeda-fact-wrap {
  height: 55vh;
  height: 55svh;
}

/* Cards are sticky at the same offset — this is what creates the stack */
.lepeda-fact {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  background: var(--surface); /* white card on cream column — clear card distinction */
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(42, 38, 34, 0.07);
  padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(2rem, 5vw, 3rem);
  margin-inline: clamp(1.5rem, 5vw, 3rem);
}

/* Later cards have higher z-index so they appear on top of earlier cards */
.lepeda-fact--1 { z-index: 1; }
.lepeda-fact--2 { z-index: 2; }
.lepeda-fact--3 { z-index: 3; }

/* Icon */
.lepeda-fact__icon {
  width: 44px;
  height: 44px;
  color: var(--c-gold);
  margin-bottom: 1.25rem;
}

.lepeda-fact__icon svg {
  width: 100%;
  height: 100%;
}

/* Card title */
.lepeda-fact__title {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-ink);
  margin: 0 0 0.875rem;
}

/* Card body */
.lepeda-fact__body {
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.72;
  color: var(--text-soft);
  margin: 0;
}

/* Location notation */
.lepeda-section__footer {
  padding: clamp(2rem, 5vh, 3.5rem) clamp(2.5rem, 7vw, 5rem) clamp(3rem, 8vh, 5rem);
}

.lepeda-section__coords {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
  opacity: 0.75;
  margin: 0;
}

/* Reduced motion: stacking is layout (fine to keep); only disable Ken Burns */
@media (prefers-reduced-motion: reduce) {
  .lepeda-section__sticky img { animation: none; }
}

/* Mobile: single column, image on top, plain stacked cards (no sticky) */
@media (max-width: 767px) {
  .lepeda-section__inner { display: block; }

  .lepeda-section__sticky {
    position: relative;
    top: 0;
    height: 55vh;
    height: 55svh;
  }

  .lepeda-section__head {
    padding: clamp(2.5rem, 6vh, 4rem) clamp(1.25rem, 5vw, 2rem) 1.75rem;
  }

  .lepeda-fact-wrap { height: auto; }

  .lepeda-fact {
    position: static; /* no sticky on mobile — simple stacked list */
    margin-inline: clamp(1rem, 4vw, 1.5rem);
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(42, 38, 34, 0.06);
  }

  .lepeda-facts { padding-bottom: 0.5rem; }

  .lepeda-section__footer {
    padding: 1.5rem clamp(1.25rem, 5vw, 2rem) 3rem;
  }
}

/* ── About: Book Now closing CTA — Sand ground, dedication typography ────── */
/* Sand (--bg-alt) sits between the cream Lepeda section and the ink footer,
   creating a warm three-step close: cream → sand → ink. */

.about-book {
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(4.5rem, 10vh, 7rem);
  padding-inline: var(--gutter);
}

.about-book__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 540px;
}

/* Single gold hairline: 64px architectural annotation mark */
.about-book__rule {
  width: 64px;
  height: 1px;
  background: var(--c-gold);
  margin-bottom: 2.25rem;
}

.about-book__kicker {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 2rem;
}

.about-book__heading {
  font-family: var(--font-serif);
  font-size: clamp(2.625rem, 5.5vw, 4.25rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--c-ink);
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
}

.about-book__sub {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-ink-soft);
  letter-spacing: 0.01em;
  margin: 0 0 3rem;
  max-width: 32ch;
}

.about-book__btn.btn {
  padding: 0.875em 2.75em;
}

/* ── Magnetic button ─────────────────────────────────────────────────────── */

.btn--magnetic {
  position: relative;
  overflow: hidden;
  /* Override .btn's transform transition — rAF lerp handles smoothing */
  transition: background 0.2s ease, box-shadow 0.3s ease;
}

/* Shine sweep on hover */
.btn--magnetic::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.52s ease;
  pointer-events: none;
}

.btn--magnetic:hover::after {
  transform: translateX(120%);
}

/* Override .btn--primary:hover lift — JS translate replaces CSS transform */
.btn--primary.btn--magnetic:hover,
.btn--primary.btn--magnetic:focus-visible {
  transform: none;
  box-shadow: 0 6px 28px rgba(167, 117, 64, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .btn--magnetic::after { display: none; }
  .btn--primary.btn--magnetic:hover,
  .btn--primary.btn--magnetic:focus-visible {
    box-shadow: 0 4px 16px rgba(167, 117, 64, 0.20);
    transform: none;
  }
}

/* ── Gallery page ────────────────────────────────────────────────────────── */

/* ── Gallery hero ── */

.gallery-hero {
  position: relative;
  height: 52vh;
  min-height: 300px;
  max-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
  padding-inline: var(--gutter);
}

.gallery-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 38%;
}

.gallery-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(42, 38, 34, 0.62) 0%,
    rgba(42, 38, 34, 0.18) 55%,
    rgba(42, 38, 34, 0.08) 100%
  );
}

.gallery-hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  width: 100%;
  margin-inline: auto;
}

.gallery-hero__kicker {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 0.875rem;
}

.gallery-hero__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--c-cream);
  letter-spacing: -0.015em;
  margin: 0;
}

/* ── Gallery section + filters ── */

.gallery-section {
  background: var(--bg);
  padding-block: clamp(3rem, 6vh, 5rem);
}

.gallery-section__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

.gallery-filter {
  -webkit-appearance: none;
  appearance: none;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  cursor: pointer;
  padding: 0.625rem 1.25rem;
  position: relative;
  transition: color 0.2s ease;
}

.gallery-filter::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 1px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.gallery-filter.is-active,
.gallery-filter:hover {
  color: var(--c-gold);
}

.gallery-filter.is-active::after {
  transform: scaleX(1);
}

.gallery-filter:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 4px;
}

/* ── Gallery grid ── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.375rem, 0.8vw, 0.625rem);
  transition: opacity 0.18s ease;
}

.gallery-item {
  -webkit-appearance: none;
  appearance: none;
  background: var(--c-sand) !important;
  background-color: var(--c-sand) !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.045);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 38, 34, 0);
  display: flex;
  align-items: flex-end;
  padding: clamp(0.625rem, 2vw, 1rem);
  transition: background 0.35s ease;
}

/* Unlabeled items: subtle dark overlay on hover */
.gallery-item:not(.gallery-item--labeled):hover .gallery-item__overlay {
  background: rgba(42, 38, 34, 0.26);
}

/* Labeled items: gradient scrim visible at rest, fades on hover */
.gallery-item--labeled .gallery-item__overlay {
  background: linear-gradient(
    to top,
    rgba(42, 38, 34, 0.64) 0%,
    rgba(42, 38, 34, 0.14) 52%,
    transparent 78%
  );
}

.gallery-item--labeled:hover .gallery-item__overlay {
  background: transparent;
}

/* Room label — visible at rest, fades on hover */
.gallery-item__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(0.625rem, 2vw, 1rem);
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-cream);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.gallery-item--labeled:hover .gallery-item__label {
  opacity: 0;
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-item:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: -2px;
}

@media (max-width: 767px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 440px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-grid { transition: none; }
  .gallery-item img { transition: none; }
  .gallery-item__overlay,
  .gallery-item--labeled .gallery-item__overlay { transition: none; }
  .gallery-item__label { transition: none; }
  /* Keep label visible on hover when motion is reduced */
  .gallery-item--labeled:hover .gallery-item__label { opacity: 1; }
}

/* ── Lightbox ── */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(42, 38, 34, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 128px);
  max-height: 90vh;
}

.lightbox__img {
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transform: scale(0.95);
  transition: transform 0.32s cubic-bezier(0.34, 1.1, 0.64, 1),
              opacity 0.18s ease;
}

.gallery-lightbox.is-open .lightbox__img {
  transform: scale(1);
}

.lightbox__img.is-fading {
  opacity: 0;
}

.lightbox__close {
  position: absolute;
  top: clamp(0.875rem, 2.5vh, 1.5rem);
  right: clamp(0.875rem, 2.5vw, 1.75rem);
  -webkit-appearance: none;
  appearance: none;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: rgba(250, 247, 241, 0.65);
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: color 0.2s ease;
  z-index: 10;
}

.lightbox__close:hover { color: var(--c-cream); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  -webkit-appearance: none;
  appearance: none;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: rgba(250, 247, 241, 0.55);
  cursor: pointer;
  padding: 1rem 0.75rem;
  line-height: 1;
  transition: color 0.2s ease;
  z-index: 10;
}

.lightbox__prev { left: clamp(0.25rem, 1.5vw, 1.25rem); }
.lightbox__next { right: clamp(0.25rem, 1.5vw, 1.25rem); }

.lightbox__prev:hover { color: var(--c-cream); }
.lightbox__next:hover { color: var(--c-cream); }

.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 4px;
}

.lightbox__label {
  position: absolute;
  bottom: clamp(2.5rem, 5vh, 3.25rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 247, 241, 0.72);
  margin: 0;
  white-space: nowrap;
  user-select: none;
}

.lightbox__label:empty { display: none; }

.lightbox__counter {
  position: absolute;
  bottom: clamp(0.875rem, 2.5vh, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(250, 247, 241, 0.4);
  margin: 0;
  white-space: nowrap;
  user-select: none;
}

@media (max-width: 600px) {
  .lightbox__stage {
    max-width: calc(100vw - 80px);
    max-height: 80vh;
  }
  .lightbox__img { max-height: 80vh; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-lightbox { transition: none; }
  .lightbox__img { transform: none; transition: opacity 0.15s ease; }
  .gallery-lightbox.is-open .lightbox__img { transform: none; }
}

/* ── Discover page ────────────────────────────────────────────────────────── */

/* ── Discover intro ── */

.discover-intro {
  padding-block: clamp(3rem, 8vh, 5rem);
  padding-inline: var(--gutter);
}

.discover-intro__inner {
  max-width: 700px;
}

.discover-intro__kicker {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 1.25rem;
}

.discover-intro__lead {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--c-ink);
  margin: 0;
}

/* ── Discover accordion ── */

.discover-accordion-wrap {
  padding-inline: var(--gutter);
  padding-bottom: clamp(4rem, 8vh, 6rem);
}

.discover-accordion {
  display: flex;
  gap: clamp(0.25rem, 0.4vw, 0.375rem);
  height: clamp(20rem, 42vh, 28rem);
  width: 100%;
}

.discover-accordion__item {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: flex 0.5s ease-in-out;
}

/* Fixed-size image layer: the panel is a widening "window" onto it, so
   expanding on hover reveals more of the image at a CONSTANT scale rather
   than rescaling (no zoom). 60vw always exceeds the widest expanded panel
   (~57vw), so there are never gaps. */
.discover-accordion__item img {
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

/* Full-item dark scrim — dims everything by default */
.discover-accordion__overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 38, 34, 0.38);
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

/* Gradient + label at bottom of each item */
.discover-accordion__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(0.875rem, 2.5vw, 1.5rem);
  background: linear-gradient(
    to top,
    rgba(42, 38, 34, 0.80) 0%,
    rgba(42, 38, 34, 0.22) 55%,
    transparent 85%
  );
  pointer-events: none;
  z-index: 2;
}

.discover-accordion__label-text {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2.2vw, 1.875rem);
  font-weight: 300;
  color: var(--c-cream);
  letter-spacing: 0.04em;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

/* ── JS-driven hover states ── */

/* When a sibling is hovered: shrink all */
.discover-accordion.has-hover .discover-accordion__item {
  flex: 0.5;
}

/* Expand the hovered item */
.discover-accordion.has-hover .discover-accordion__item.is-hovered {
  flex: 2;
}

/* Brighten the hovered item (fade overlay to 0) */
.discover-accordion__item.is-hovered .discover-accordion__overlay {
  opacity: 0;
}

/* Focus ring */
.discover-accordion__item:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: -2px;
  z-index: 3;
}

/* ── Mobile: 2×2 grid ── */
@media (max-width: 640px) {
  .discover-accordion {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: auto;
    gap: 0.375rem;
  }

  .discover-accordion__item {
    flex: none;   /* grid item, not flex */
    height: 12rem;
    transition: none;
  }

  /* Grid cards fill normally — no window technique on touch */
  .discover-accordion__item img {
    position: static;
    transform: none;
    width: 100%;
  }

  /* Disable accordion expand on touch */
  .discover-accordion.has-hover .discover-accordion__item,
  .discover-accordion.has-hover .discover-accordion__item.is-hovered {
    flex: none;
  }
}

@media (max-width: 380px) {
  .discover-accordion {
    grid-template-columns: 1fr;
  }

  .discover-accordion__item { height: 11rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .discover-accordion__item { transition: none; }
  .discover-accordion__overlay { transition: none; }
}

/* ── Discover sections (Beaches / Flavors / Nightlife / Activities) ───────── */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.disc-section {
  background: var(--bg);
  padding-block: clamp(3.5rem, 8vh, 6rem);
  scroll-margin-top: calc(var(--header-h, 88px) + 1.5rem);
}

.disc-section--alt  { background: var(--bg-alt); }
.disc-section--dark { background: var(--c-ink); }

.disc-section__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.disc-section__head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vh, 3.25rem);
}

.disc-section__kicker {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 1rem;
}

.disc-section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--c-ink);
  margin: 0 0 1rem;
}

.disc-section__lead {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-ink-soft);
  margin: 0;
}

.disc-section--dark .disc-section__title { color: var(--c-cream); }
.disc-section--dark .disc-section__lead  { color: rgba(250, 247, 241, 0.72); }

/* ── Card grid ── */

.disc-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.disc-card {
  display: flex;
  flex-direction: column;
}

.disc-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--c-sand);
}

.disc-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.disc-card:hover .disc-card__media img,
.disc-card__link:hover .disc-card__media img {
  transform: scale(1.045);
}

.disc-card__body {
  padding-top: 1.125rem;
}

.disc-card__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-ink);
  margin: 0 0 0.35rem;
}

.disc-card__meta {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 0.6rem;
}

.disc-card__text {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--c-ink-soft);
  margin: 0;
}

.disc-card__credit {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--c-ink-soft);
  opacity: 0.6;
  margin: 0.75rem 0 0;
}

/* ── Activities: whole card is a link ── */

.disc-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.disc-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.disc-card__cta svg {
  width: 0.7em;
  height: 0.7em;
  transition: transform 0.22s ease;
}

.disc-card__link:hover .disc-card__cta svg {
  transform: translate(2px, -2px);
}

/* ── Nightlife: image-forward overlay cards ── */

.disc-card--overlay .disc-card__media {
  aspect-ratio: 3 / 4;
}

.disc-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 18, 16, 0.82) 0%,
    rgba(20, 18, 16, 0.28) 45%,
    transparent 75%
  );
}

.disc-card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.disc-card--overlay .disc-card__name { color: var(--c-cream); }
.disc-card--overlay .disc-card__credit { color: rgba(250, 247, 241, 0.6); opacity: 1; margin-top: 0.3rem; }

/* ── Responsive ── */

@media (max-width: 900px) {
  .disc-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .disc-cards { grid-template-columns: 1fr; gap: 1.5rem; }
  .disc-card--overlay .disc-card__media { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .disc-card__media img { transition: none; }
  .disc-card:hover .disc-card__media img,
  .disc-card__link:hover .disc-card__media img { transform: none; }
}

/* ── Contact page ─────────────────────────────────────────────────────────── */

.contact-header {
  padding-block: clamp(2.5rem, 6vh, 4.5rem) clamp(1.5rem, 3vh, 2.5rem);
  padding-inline: var(--gutter);
}

.contact-header__inner {
  max-width: var(--container);
  margin-inline: auto;
}

.contact-header__kicker {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 1rem;
}

.contact-header__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--c-ink);
  margin: 0;
}

/* ── Getting here (text + map) ── */

.contact-getting {
  padding-block: clamp(2rem, 5vh, 4rem);
  padding-inline: var(--gutter);
}

.contact-getting__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.contact-getting__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--c-ink);
  margin: 0 0 1rem;
}

.contact-getting__lead {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-ink-soft);
  margin: 0 0 2rem;
  max-width: 46ch;
}

.contact-dirs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-dir {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.contact-dir__label {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--c-ink);
}

.contact-dir__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold);
  text-decoration: none;
  white-space: nowrap;
}

.contact-dir__link svg { width: 0.7em; height: 0.7em; transition: transform 0.22s ease; }
.contact-dir__link:hover svg { transform: translate(2px, -2px); }

.contact-map {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--c-sand);
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15);
}

/* ── Contact form ── */

.contact-form-section {
  background: var(--bg-alt);
  padding-block: clamp(3.5rem, 8vh, 6rem);
  padding-inline: var(--gutter);
}

.contact-form-section__inner {
  max-width: 720px;
  margin-inline: auto;
}

.contact-form-section__kicker {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 1rem;
  text-align: center;
}

.contact-form-section__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 300;
  color: var(--c-ink);
  margin: 0 0 2.5rem;
  text-align: center;
}

/* Light touch-up of WPForms to match brand (kept minimal) */
.contact-form-section__form .wpforms-field-label {
  font-family: var(--font-sans) !important;
  font-weight: 500 !important;
  color: var(--c-ink) !important;
}

.contact-form-section__form input[type="text"],
.contact-form-section__form input[type="email"],
.contact-form-section__form input[type="tel"],
.contact-form-section__form textarea,
.contact-form-section__form select {
  font-family: var(--font-sans) !important;
  border-radius: 4px !important;
  border: 1px solid var(--line) !important;
  background: var(--surface) !important;
}

.contact-form-section__form .wpforms-submit {
  font-family: var(--font-sans) !important;
  background: var(--c-gold) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 0.85em 2.25em !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.3s ease;
}

.contact-form-section__form .wpforms-submit:hover {
  background: var(--c-gold-dk) !important;
  box-shadow: 0 6px 22px rgba(167, 117, 64, 0.28) !important;
}

/* ── FAQ ── */

.contact-faq {
  padding-block: clamp(3.5rem, 8vh, 6rem);
  padding-inline: var(--gutter);
}

.contact-faq__inner {
  max-width: 800px;
  margin-inline: auto;
}

.contact-faq__head { margin-bottom: clamp(1.5rem, 4vh, 2.5rem); }

.contact-faq__kicker {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 1rem;
}

.contact-faq__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 300;
  color: var(--c-ink);
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  font-weight: 400;
  color: var(--c-ink);
}

.faq-item__q::-webkit-details-marker { display: none; }

.faq-item__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--c-gold);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-item__icon { transform: rotate(45deg); }

.faq-item__a {
  overflow: hidden;
  padding: 0 0 1.5rem;
  max-width: 62ch;
}

.faq-item__a p {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--c-ink-soft);
  margin: 0;
}

/* ── Responsive ── */

@media (max-width: 780px) {
  .contact-getting__inner { grid-template-columns: 1fr; }
  .contact-map { aspect-ratio: 16 / 10; order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__icon { transition: none; }
}

/* ── Legal pages (Cookie / GDPR / Terms) ──────────────────────────────────── */

.legal-page {
  padding-block: clamp(2.5rem, 6vh, 4.5rem) clamp(4rem, 10vh, 7rem);
  padding-inline: var(--gutter);
}

.legal-page__inner {
  max-width: 760px;
  margin-inline: auto;
}

.legal-page__head {
  margin-bottom: clamp(2rem, 5vh, 3rem);
  padding-bottom: clamp(1.5rem, 3vh, 2rem);
  border-bottom: 1px solid var(--line);
}

.legal-page__kicker {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 1rem;
}

.legal-page__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--c-ink);
  margin: 0;
}

.legal-page__body {
  font-family: var(--font-sans);
  color: var(--c-ink-soft);
}

.legal-page__body h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--c-ink);
  margin: 2.5rem 0 0.85rem;
}

.legal-page__body h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-ink);
  margin: 1.75rem 0 0.6rem;
}

.legal-page__body p,
.legal-page__body li {
  font-size: 0.9375rem;
  line-height: 1.75;
}

.legal-page__body p { margin: 0 0 1.1rem; }

.legal-page__body ul,
.legal-page__body ol {
  margin: 0 0 1.4rem;
  padding-left: 1.25rem;
}

.legal-page__body li { margin-bottom: 0.5rem; }
.legal-page__body li p { margin: 0; }

.legal-page__body strong { color: var(--c-ink); font-weight: 600; }

.legal-page__body a {
  color: var(--c-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page__body a:hover { color: var(--c-gold-dk); }

.legal-page__body > *:first-child { margin-top: 0; }

/* ─── Homepage cinematic image band (parallax zoom) ─────────────────────── */

.telescope {
  position: relative;
  height: clamp(72vh, 82vh, 88vh);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-ink);
}

.telescope__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.telescope__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);   /* JS animates this; static state stays gently zoomed */
  transform-origin: center;
  will-change: transform;
}

.telescope__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(20, 18, 16, 0.55) 0%, rgba(20, 18, 16, 0.1) 40%, rgba(20, 18, 16, 0.35) 100%);
}

.telescope__title {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: var(--gutter);
}

.telescope__kicker {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 1rem;
}

.telescope__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--c-cream);
  margin: 0;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .telescope__img { transform: scale(1.05); }
}

/* ─── Page-load reveal (subtle content fade-in on every page) ───────────── */
/* Opacity-only, so it never shifts layout or gets stuck. The fixed header
   sits outside #main-content and stays solid while content settles in.     */
@keyframes ammosPageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  #main-content {
    animation: ammosPageIn 0.55s ease both;
  }
}

/* ─── Discover: floating side section-nav ───────────────────────────────── */

.disc-sidenav {
  position: fixed;
  right: clamp(0.75rem, 1.8vw, 1.75rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
}

.disc-sidenav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-end;
}

.disc-sidenav__link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  text-decoration: none;
  cursor: pointer;
}

/* Label: hidden at rest, slides in on hover; stays visible for the active
   section. Own translucent pill so it reads over light AND dark sections. */
.disc-sidenav__label {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink);
  background: rgba(250, 247, 241, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(42, 38, 34, 0.1);
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.2s ease;
}

.disc-sidenav__tick {
  width: 22px;
  height: 2px;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--c-ink-soft);
  opacity: 0.4;
  transition: width 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.disc-sidenav__link:hover .disc-sidenav__label {
  opacity: 1;
  transform: translateX(0);
}

.disc-sidenav__link:hover .disc-sidenav__tick {
  opacity: 1;
  background: var(--c-gold);
}

.disc-sidenav__link.is-active .disc-sidenav__tick {
  width: 34px;
  background: var(--c-gold);
  opacity: 1;
}

.disc-sidenav__link.is-active .disc-sidenav__label {
  opacity: 1;
  transform: translateX(0);
  color: var(--c-gold);
}

/* Hide the floating nav on small screens — sections are still reachable by scroll */
@media (max-width: 900px) {
  .disc-sidenav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .disc-sidenav__label,
  .disc-sidenav__tick { transition: none; }
}
