/* =========================================================
   JGS Antrepriz 1939 — main stylesheet
   Mobile-first. No framework. Sections:
   1. Fonts  2. Tokens  3. Base  4. Layout  5. Header & nav
   6. Hero & video  7. Sections  8. Footer  9. Motion prefs
   ========================================================= */

/* 1. Fonts (self-hosted, SIL OFL — see assets/fonts/) */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* 2. Design tokens */
:root {
  /* Night blue */
  --night-950: #040d13;
  --night-900: #06141c;
  --night-800: #0b2a36;
  --night-700: #143b4b;
  /* Pearl white */
  --pearl-50: #faf8f3;
  --pearl-100: #f3f1ea;
  --pearl-200: #e7e3d7;
  --pearl-300: #d3cdbd;
  /* Champagne */
  --champagne-300: #e3cc9c;
  --champagne-400: #c8a96a;
  --champagne-700: #7a5c24; /* text-safe on pearl */
  /* Text */
  --ink: #0d1f28;
  --ink-soft: #46565d;
  --on-night: #f3f1ea;
  --on-night-soft: #b9c3c4;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(80px, 11vw, 144px);
  --header-h: 72px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: 0 0 0 3px var(--night-900), 0 0 0 5px var(--champagne-300);
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  background: var(--pearl-100);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius); }
main:focus { outline: none; }
::selection { background: var(--champagne-300); color: var(--night-900); }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 12px 18px; background: var(--pearl-50); color: var(--night-900);
  font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* 4. Layout */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--pearl { background: var(--pearl-100); }
.section--mist  { background: var(--pearl-200); }
.section--night { background: var(--night-900); color: var(--on-night); }
.split { display: grid; gap: clamp(32px, 6vw, 96px); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--center { align-items: center; }
  .split--end { align-items: end; }
}

/* Typography */
.eyebrow, .section-tag {
  font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
}
.section-tag { display: flex; align-items: center; gap: 14px; color: var(--champagne-700); }
.section-tag span { font-family: var(--font-display); font-size: .95rem; letter-spacing: .04em; }
.section-tag::after { content: ""; flex: 0 0 48px; height: 1px; background: currentColor; opacity: .5; order: 3; }
.section--night .section-tag { color: var(--champagne-400); }

.section-title, .hero__title {
  font-family: var(--font-display);
  font-weight: 350;
  letter-spacing: -.02em;
  font-variation-settings: "opsz" 144;
}
.section-title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.1; margin-block: 24px 0; max-width: 16ch; }
.section-title--wide { max-width: 22ch; }
.section-title em, .hero__title em { font-style: italic; font-weight: 300; }
.section-title em { color: var(--champagne-700); }
.section--night .section-title em { color: var(--champagne-300); }
.prose { color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.85; }
.prose p + p { margin-top: 1.1em; }
.section-title + .prose { margin-top: 24px; }
@media (min-width: 900px) { .split > .prose { padding-top: 48px; } }

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 52px; padding: 14px 24px;
  font-size: .875rem; font-weight: 600; letter-spacing: .02em; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--primary { background: var(--champagne-400); color: var(--night-900); }
.btn--primary:hover { background: var(--champagne-300); }
.btn--ghost { border-color: rgba(243, 241, 234, .45); color: var(--on-night); }
.btn--ghost:hover { border-color: var(--champagne-300); color: var(--champagne-300); }
.text-link {
  display: inline-flex; gap: 8px; min-height: 44px; align-items: center;
  font-weight: 600; font-size: .9375rem;
  text-decoration: underline; text-decoration-color: var(--champagne-400);
  text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.text-link:hover { color: var(--champagne-700); }

/* 5. Header & navigation */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--on-night);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(6, 20, 28, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(200, 169, 106, .18);
}
/* backdrop-filter would make the header the containing block of the fixed
   mobile menu panel (clipping it to header height), so drop it while open. */
.site-header.is-open {
  background: var(--night-900);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto;
  min-height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0);
}
.brand {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  text-decoration: none; font-weight: 700; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase;
}
.brand__logo {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 48px; background: #fff; border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(200, 169, 106, .35);
}
.brand__logo img { width: 23px; height: 36px; }
.brand__text span { font-weight: 400; color: var(--on-night-soft); }

.nav-toggle {
  display: none; /* shown only with JS on small screens */
  align-items: center; gap: 12px; min-height: 44px; min-width: 44px; padding: 8px 4px 8px 12px;
  background: none; border: 0;
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 22px; height: 1.5px; background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav__list { display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: center; }
.site-nav__list a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: .875rem; text-decoration: none; color: var(--on-night-soft);
  position: relative; transition: color .2s;
}
.site-nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px;
  background: var(--champagne-400); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav__list a:hover, .site-nav__list a[aria-current] { color: var(--on-night); }
.site-nav__list a:hover::after, .site-nav__list a[aria-current]::after { transform: scaleX(1); }
.site-nav__list .site-nav__cta {
  padding-inline: 20px; border: 1px solid rgba(200, 169, 106, .6); color: var(--on-night);
}
.site-nav__list .site-nav__cta::after { display: none; }
.site-nav__list .site-nav__cta:hover { background: var(--champagne-400); color: var(--night-900); }

/* No-JS small screens: nav wraps below the brand (always reachable). */
.no-js .site-header__inner { flex-wrap: wrap; padding-block: 8px; }
.no-js .site-header { position: absolute; }
@media (max-width: 959.98px) { .no-js .hero { padding-top: 220px; } }

/* JS small screens: full-screen overlay menu */
@media (max-width: 959.98px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: -1;
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    padding: 32px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0));
    background: var(--night-900);
    overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .js .site-header.is-open .site-nav {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
  }
  .js .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav__list li { border-bottom: 1px solid rgba(243, 241, 234, .1); }
  .js .site-nav__list a {
    width: 100%; min-height: 64px; color: var(--on-night);
    font-family: var(--font-display); font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 350;
  }
  .js .site-nav__list a::after { bottom: 14px; right: auto; width: 40px; }
  .js .site-nav__list .site-nav__cta {
    margin-top: 28px; justify-content: center; min-height: 56px; padding: 0;
    font-family: var(--font-body); font-size: .9375rem; font-weight: 600;
    background: var(--champagne-400); color: var(--night-900); border: 0;
  }
  .js .site-nav__list li:last-child { border-bottom: 0; }
}
@media (max-width: 420px) { .brand__text span { display: none; } }

/* Language switcher (dormant until /fr/ exists) */
.lang-switch { display: flex; gap: 4px; font-size: .75rem; letter-spacing: .14em; }
.lang-switch a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; text-decoration: none; color: var(--on-night-soft); }
.lang-switch a[aria-current] { color: var(--champagne-300); }

/* 6. Hero & background video */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh; min-height: 100svh;
  padding-block: calc(var(--header-h) + 40px) 120px;
  color: var(--on-night); background: var(--night-900);
}
.hero__media {
  position: absolute; inset: 0; z-index: -1;
  /* Fallback shown when video is disabled, loading, or unavailable */
  background:
    radial-gradient(ellipse 80% 60% at 75% 65%, rgba(36, 110, 120, .55), transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(200, 169, 106, .08), transparent 70%),
    linear-gradient(160deg, var(--night-800), var(--night-950) 70%);
}
.hero__media::before { /* subtle water ripples */
  content: ""; position: absolute; inset: 0; opacity: .7;
  background: repeating-radial-gradient(ellipse at 80% 90%, transparent 0 38px, rgba(227, 204, 156, .045) 40px 41px);
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.hero__video.is-ready { opacity: 1; }
/* Tame bright highlights in the footage (sky glare) so text stays readable */
.hero__video { filter: brightness(.78) saturate(.85); }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 13, 19, .92) 0%, rgba(4, 13, 19, .74) 50%, rgba(4, 13, 19, .38) 100%),
    linear-gradient(0deg, rgba(4, 13, 19, .75) 0%, transparent 40%),
    linear-gradient(180deg, rgba(4, 13, 19, .8) 0%, rgba(4, 13, 19, 0) 24%);
}
/* Portrait screens: text spans the full width, so the veil must be even */
@media (max-aspect-ratio: 1/1) {
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(4, 13, 19, .86) 0%, rgba(4, 13, 19, .78) 30%, rgba(4, 13, 19, .76) 62%,
                              rgba(4, 13, 19, .42) 80%, rgba(4, 13, 19, .82) 100%);
  }
}
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--champagne-300); }
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--champagne-400); box-shadow: 0 0 0 4px rgba(200, 169, 106, .18); }
.hero__title { font-size: clamp(2.6rem, 7.4vw, 6rem); line-height: 1.04; margin-block: 28px; max-width: 14ch; }
.hero__title em { color: var(--champagne-300); }
.hero__lead { max-width: 36rem; color: var(--on-night-soft); font-size: clamp(1rem, 1.6vw, 1.125rem); line-height: 1.75; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
@media (max-width: 479.98px) { .hero__actions .btn { width: 100%; } }

.hero__foot {
  position: absolute; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom, 0));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-night-soft);
}
.hero__foot > span { display: none; }
@media (min-width: 768px) { .hero__foot > span { display: block; } }
.hero__scroll { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; margin-left: auto; }
.hero__scroll:hover { color: var(--champagne-300); }

.video-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 10px;
  background: rgba(4, 13, 19, .45); border: 1px solid rgba(243, 241, 234, .25); border-radius: 999px;
  font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night);
  transition: border-color .2s, background-color .2s;
}
.video-toggle[hidden] { display: none; }
.video-toggle:hover { border-color: var(--champagne-300); }
.video-toggle__icon { position: relative; width: 14px; height: 14px; }
/* Pause icon (two bars) */
.video-toggle__icon::before, .video-toggle__icon::after {
  content: ""; position: absolute; top: 1px; width: 4px; height: 12px; background: currentColor;
}
.video-toggle__icon::before { left: 2px; }
.video-toggle__icon::after { right: 2px; }
/* Play icon (triangle) when video is paused */
.video-toggle[aria-pressed="true"] .video-toggle__icon::before {
  left: 3px; width: 0; height: 0; background: none;
  border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor;
}
.video-toggle[aria-pressed="true"] .video-toggle__icon::after { display: none; }
@media (max-width: 479.98px) {
  .video-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .video-toggle { padding: 0; width: 44px; justify-content: center; }
}

/* 7. Content sections */
/* Product */
.product-art {
  position: relative; overflow: hidden; display: flex; align-items: flex-end;
  min-height: clamp(300px, 48vw, 520px); padding: 28px;
  background: radial-gradient(ellipse at 50% 45%, var(--night-700), var(--night-800) 50%, var(--night-950));
  color: var(--champagne-300); font-size: .8125rem; letter-spacing: .32em; text-transform: uppercase;
}
.product-art::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(200, 169, 106, .22); pointer-events: none; }
.product-art__line {
  position: absolute; border: 1.5px solid rgba(227, 204, 156, .26); border-left-color: transparent;
  border-radius: 50%; transform: rotate(-28deg);
}
.product-art__line--a { width: 115%; height: 34%; top: 18%; left: -30%; }
.product-art__line--b { width: 125%; height: 28%; top: 38%; left: -20%; }
.product-art__line--c { width: 100%; height: 20%; top: 58%; left: 6%; }
.product-art__label { position: relative; }
.product-photo { margin: 0; padding: 0; aspect-ratio: 4 / 5; min-height: 0; max-height: 640px; width: 100%; }
.product-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.product-photo::before { /* legibility of the caption over the photo */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(4, 13, 19, .75) 0%, rgba(4, 13, 19, 0) 40%);
}
.product-photo::after { z-index: 2; }
.product-photo .product-art__label { z-index: 2; margin: 28px; }
.spec-list { margin-block: 36px 24px; }
.spec-list > div {
  display: grid; grid-template-columns: minmax(110px, 1fr) 2fr; gap: 16px;
  padding-block: 16px; border-top: 1px solid var(--pearl-300); font-size: .9375rem;
}
.spec-list > div:last-child { border-bottom: 1px solid var(--pearl-300); }
.spec-list dt { color: var(--ink-soft); }
.spec-list dd { font-weight: 600; }

/* Export steps */
.steps { display: grid; gap: 28px; margin-top: clamp(40px, 6vw, 72px); counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.step { padding-top: 26px; border-top: 1px solid var(--pearl-300); position: relative; }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 1px; background: var(--champagne-400);
}
.step__num { font-family: var(--font-display); font-size: 1rem; color: var(--champagne-700); }
.step__title { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.25; margin-block: 18px 12px; }
.step p { color: var(--ink-soft); line-height: 1.8; }

/* Contact */
.contact__intro { max-width: 26rem; margin-top: 24px; color: var(--on-night-soft); line-height: 1.8; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.contact-card__label {
  margin-top: 20px; font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--champagne-400);
}
.contact-card__label:first-child { margin-top: 0; }
.contact-card__email {
  display: block; width: 100%; padding-bottom: 18px; border-bottom: 1px solid rgba(200, 169, 106, .45);
  font-family: var(--font-display); font-weight: 350; font-size: clamp(1.25rem, 3vw, 2rem);
  text-decoration: none; overflow-wrap: anywhere; transition: color .2s;
}
.contact-card__email:hover { color: var(--champagne-300); }
.contact-card__link { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.contact-card__link:hover { color: var(--champagne-300); }
.copy-btn {
  min-height: 44px; padding: 0 18px; background: none;
  border: 1px solid rgba(243, 241, 234, .3); border-radius: var(--radius);
  font-size: .8125rem; font-weight: 600; color: var(--on-night);
}
.copy-btn[hidden] { display: none; }
.copy-btn:hover { border-color: var(--champagne-300); color: var(--champagne-300); }
.copy-status { min-height: 1.4em; font-size: .8125rem; color: var(--champagne-300); }

/* Phone / WhatsApp contact blocks */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { width: 18px; height: 18px; flex: none; }
.offices[hidden], .office[hidden], .office__btn[hidden] { display: none; }
.offices {
  display: grid; gap: 16px; margin-top: clamp(48px, 7vw, 80px);
  padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid rgba(200, 169, 106, .22);
}
@media (min-width: 720px) { .offices { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.office {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 3.5vw, 36px);
  background: linear-gradient(160deg, rgba(20, 59, 75, .55), rgba(11, 42, 54, .25));
  border: 1px solid rgba(200, 169, 106, .25); border-radius: var(--radius);
}
.office::before { content: ""; position: absolute; top: -1px; left: -1px; width: 56px; height: 1px; background: var(--champagne-400); }
.office__label {
  font-family: var(--font-body); font-size: .6875rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--champagne-400);
}
.office__number {
  font-family: var(--font-display); font-weight: 350; font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  letter-spacing: .01em; font-variant-numeric: lining-nums tabular-nums; color: var(--on-night);
  white-space: nowrap;
}
.office__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.office__btn {
  flex: 1 1 140px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 18px; border-radius: var(--radius); border: 1px solid transparent;
  font-size: .875rem; font-weight: 600; letter-spacing: .02em; text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.office__btn--call { background: var(--champagne-400); color: var(--night-900); }
.office__btn--call:hover { background: var(--champagne-300); }
.office__btn--wa { border-color: rgba(243, 241, 234, .4); color: var(--on-night); }
.office__btn--wa:hover { border-color: var(--champagne-300); color: var(--champagne-300); }

/* Floating WhatsApp button + chooser */
.wa-fab {
  position: fixed; z-index: 40; /* below the header (50) so the mobile menu covers it */
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear 0s;
}
.wa-fab[hidden] { display: none; }
.wa-fab.is-away { opacity: 0; transform: translateY(12px); visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s; }
.wa-fab__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; padding: 0; border-radius: 50%;
  background: var(--night-900); color: var(--champagne-300);
  border: 1px solid rgba(200, 169, 106, .55);
  box-shadow: 0 10px 30px rgba(4, 13, 19, .35);
  text-decoration: none; transition: background-color .25s var(--ease), color .25s var(--ease);
}
.wa-fab__btn[hidden] { display: none; }
.wa-fab__btn .icon { width: 24px; height: 24px; }
.wa-fab__btn:hover, .wa-fab__btn[aria-expanded="true"] { background: var(--champagne-400); color: var(--night-900); }
.wa-fab__panel {
  width: min(280px, calc(100vw - 32px)); padding: 16px;
  background: var(--night-900); color: var(--on-night);
  border: 1px solid rgba(200, 169, 106, .35); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(4, 13, 19, .45);
}
.wa-fab__panel[hidden] { display: none; }
.wa-fab__title { font-size: .6875rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--champagne-400); margin-bottom: 8px; }
.wa-fab__list { display: grid; gap: 4px; }
.wa-fab__list a {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 10px;
  border-radius: var(--radius); text-decoration: none; color: var(--on-night);
}
.wa-fab__list a:hover { background: rgba(200, 169, 106, .14); color: var(--champagne-300); }
.wa-fab__list small { display: block; font-size: .8125rem; color: var(--on-night-soft); font-variant-numeric: tabular-nums; }
/* Keep the end of the page clear of the floating button */
body.has-wa-fab .site-footer__inner { padding-bottom: calc(24px + 72px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) { body.has-wa-fab .site-footer__inner { padding-bottom: 24px; padding-right: 76px; } }
@media print { .wa-fab { display: none !important; } }

/* 8. Footer */
.site-footer { background: var(--night-950); color: var(--on-night-soft); font-size: .8125rem; }
.site-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0));
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer a:hover { color: var(--champagne-300); }

/* Scroll reveal (enabled by JS only, so content is never hidden without it) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* 9. Motion & contrast preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (forced-colors: active) {
  .btn, .copy-btn, .video-toggle, .site-nav__cta { border: 1px solid ButtonText; }
}
@media print {
  .site-header, .hero__media, .hero__foot, .copy-btn { display: none !important; }
  .hero, .section--night { color: #000; background: none; min-height: 0; }
}
