/* Shared site chrome for EVERY page (homepage + inner pages):
   top menu, footer, slide deck, side dots, progress line. Load after page styles. */

/* ---------- Top menu: solid, high-contrast, identical everywhere ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0.85rem 2.5rem;
  color: #f7f4ec; background: rgba(12, 18, 16, 0.86);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(247, 244, 236, 0.14);
  mix-blend-mode: normal; pointer-events: auto;
  font-family: "Outfit", system-ui, sans-serif;
}
.nav a, .nav summary { pointer-events: auto; }
.nav-brand { font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; font-weight: 600; letter-spacing: 0.01em; color: #fff; white-space: nowrap; }
.nav-links { display: flex; gap: 2.1rem; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.02em; opacity: 1; }
.nav-links a { color: rgba(247, 244, 236, 0.88); opacity: 1; padding: 0.4rem 0; border-bottom: 2px solid transparent; transition: color 0.25s, border-color 0.25s; }
.nav-links a:hover { color: #fff; border-bottom-color: rgba(212, 184, 122, 0.55); }
.nav-links a[aria-current="page"] { color: #fff; border-bottom-color: #d4b87a; }
.nav-cta {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  padding: 0.7rem 1.25rem; background: #d4b87a; color: #0c1210; border: 1px solid #d4b87a;
  transition: background 0.3s, border-color 0.3s;
}
.nav-cta:hover { background: #f7f4ec; border-color: #f7f4ec; color: #0c1210; }
.nav-menu { display: none; }
.nav-menu summary { list-style: none; cursor: pointer; border: 1px solid rgba(247, 244, 236, 0.55); padding: 0.55rem 0.95rem; font: 600 0.78rem "Outfit", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; display: grid; gap: 0.1rem; padding: 1.25rem 1.5rem 1.75rem; background: rgba(12, 18, 16, 0.97); border-top: 1px solid rgba(247, 244, 236, 0.14); max-height: calc(100dvh - 4rem); overflow-y: auto; }
.menu-panel p { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: #d4b87a; margin: 0.9rem 0 0.2rem; }
.menu-panel p:first-child { margin-top: 0; }
.menu-panel a { padding: 0.4rem 0; font-size: 1rem; color: rgba(247, 244, 236, 0.9); }
.menu-panel a[aria-current="page"] { color: #d4b87a; }

/* ---------- Progress line + side dots + hint (from the homepage) ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 60; background: linear-gradient(90deg, #b8955a, #d4b87a); transition: width 900ms cubic-bezier(0.76, 0, 0.24, 1); }
.dots { position: fixed; right: 1.5rem; top: 50%; transform: translateY(-50%); z-index: 50; display: flex; flex-direction: column; gap: 0.7rem; }
.dots button { width: 9px; height: 9px; padding: 0; border: 1px solid rgba(247, 244, 236, 0.75); background: rgba(12, 18, 16, 0.35); border-radius: 0; cursor: pointer; transition: background 0.3s, border-color 0.3s, transform 0.3s; }
.dots button[aria-current="true"] { background: #d4b87a; border-color: #d4b87a; transform: scale(1.25); }
.dots button:hover { border-color: #fff; }
.hint { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 50; font: 0.7rem "Outfit", sans-serif; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247, 244, 236, 0.7); pointer-events: none; transition: opacity 0.4s; }
.hint.hide { opacity: 0; }

/* ---------- Slide deck (one scroll = one section; tall sections scroll inside first) ---------- */
html.deck-on, html.deck-on body { height: 100%; overflow: hidden; }
.deck { height: 100%; height: 100dvh; overflow: hidden; position: relative; }
.track { height: 100%; transition: transform 900ms cubic-bezier(0.76, 0, 0.24, 1); will-change: transform; }
.slide { height: 100%; height: 100dvh; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.slide::-webkit-scrollbar { display: none; }
.slide:focus { outline: none; }
.slide:has(> .site-foot) { padding-bottom: 0 !important; }

/* ---------- Compact footer (sits at the bottom of each page's last slide) ---------- */
.site-foot {
  margin-top: auto; width: 100%; flex-shrink: 0;
  background: #080c0b; color: rgba(247, 244, 236, 0.66);
  font: 300 0.88rem/1.7 "Outfit", system-ui, sans-serif;
  padding: 3.25rem clamp(1.25rem, 6vw, 5rem) 1.75rem;
  text-align: left;
}
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2.5rem; max-width: 1100px; margin: 0 auto; }
.site-foot .nav-brand { display: inline-block; margin-bottom: 0.7rem; }
.site-foot p { margin: 0 0 0.6rem; font-weight: 300; color: inherit; max-width: none; }
.site-foot h4 { font: 500 0.7rem "Outfit", sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: #d4b87a; margin: 0 0 0.8rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.site-foot a { color: inherit; text-decoration: none; transition: color 0.25s; }
.site-foot a:hover { color: #fff; }
.foot-legal { max-width: 1100px; margin: 2.25rem auto 0; padding-top: 1.3rem; border-top: 1px solid rgba(247, 244, 236, 0.14); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.75rem; color: rgba(247, 244, 236, 0.5); }
.foot-reg { max-width: 1100px; margin: 0.8rem auto 0 !important; font-size: 0.7rem; color: rgba(247, 244, 236, 0.38) !important; }

@media (max-width: 960px) {
  .nav { padding: 0.8rem 1.25rem; }
  .nav-links, .nav > .nav-cta { display: none; }
  .nav-menu { display: block; }
  .dots { right: 0.6rem; }
  .hint { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .track, .progress, .slide > .wrap, .slide .stage { transition: none !important; }
}

/* ---------- iPhone / iPad (Safari) ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.slide { -webkit-overflow-scrolling: touch; touch-action: pan-y; }

/* Keep clear of the notch / home indicator (viewport-fit=cover) */
.nav { padding-top: max(0.85rem, env(safe-area-inset-top)); padding-left: max(2.5rem, env(safe-area-inset-left)); padding-right: max(2.5rem, env(safe-area-inset-right)); }
.site-foot { padding-bottom: max(1.75rem, calc(env(safe-area-inset-bottom) + 1rem)); padding-left: max(clamp(1.25rem, 6vw, 5rem), env(safe-area-inset-left)); padding-right: max(clamp(1.25rem, 6vw, 5rem), env(safe-area-inset-right)); }
.dots { right: max(1.5rem, env(safe-area-inset-right)); }
.hint { bottom: max(1.5rem, calc(env(safe-area-inset-bottom) + 0.75rem)); }

/* Finger-sized hit area for the side dots, same small visual */
.dots { gap: 0; }
.dots button { position: relative; width: 26px; height: 26px; padding: 0; border: 0 !important; background: none !important; transform: none !important; }
.dots button::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(247, 244, 236, 0.75); background: rgba(12, 18, 16, 0.35); transition: background 0.3s, border-color 0.3s, transform 0.3s; }
.dots button[aria-current="true"]::before { background: #d4b87a; border-color: #d4b87a; transform: scale(1.25); }

@media (max-width: 960px) {
  .nav { padding-top: max(0.8rem, env(safe-area-inset-top)); padding-left: max(1.25rem, env(safe-area-inset-left)); padding-right: max(1.25rem, env(safe-area-inset-right)); }
  .dots { right: max(0.25rem, env(safe-area-inset-right)); }
}
@media (max-width: 600px) { .dots { display: none; } }  /* phones: progress line shows position instead */

/* Touch screens: no sticky hover lift after a tap */
@media (hover: none) {
  .card:hover, .insight-card:hover, a.card:hover, .btn:hover, .btn-fill:hover, .btn-light:hover, .btn-dark:hover { transform: none !important; box-shadow: none !important; }
}

/* Mobile menu panel: fully opaque */
.menu-panel { background: #0c1210 !important; box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.6); }
