/* Hybrid: web header + cinematic intro + site below */

html {
  scroll-behavior: smooth;
}

html, body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body.intro-lock {
  overflow: hidden;
  height: 100%;
}

body.intro-lock .deck {
  height: calc(100vh - var(--web-header-h, 72px));
  height: calc(100dvh - var(--web-header-h, 72px));
}

:root {
  --web-header-h: 72px;
  /* body already offsets fixed header — don't pad slides by header again */
  --header-h: 0px;
  --content-top: 18px;
}

.top.web-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  /* Same horizontal inset as site sections (--edge = container + pad) */
  padding: 14px var(--edge);
  background: #fff;
  border-bottom: 1px solid rgba(16, 32, 24, .08);
  color: #102018;
}
body {
  --container: 1480px;
  --pad: clamp(20px, 3.2vw, 40px);
  --edge: max(var(--pad), calc((100% - var(--container)) / 2 + var(--pad)));
  padding-top: var(--web-header-h, 72px);
}

.top.web-top .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #102018;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.03em;
}
.top.web-top .brand .mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #174a2b;
  color: #fff;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
}
.top.web-top .brand-name { font-size: 22px; }

.top.web-top .nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
}
.top.web-top .nav a {
  color: #102018;
  text-decoration: none;
  opacity: .72;
}
.top.web-top .nav a:hover {
  opacity: 1;
  color: #174a2b;
}

.top.web-top .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.top.web-top .btn-solid {
  background: #174a2b;
  color: #fff;
}
.top.web-top .btn-solid:hover { background: #123820; }
.top.web-top .top-cta { margin-left: 8px; }
.top.web-top .btn-ghost.top-cta-demo {
  border: 1px solid rgba(23, 74, 43, .28);
  color: #174a2b;
  background: transparent;
}
.top.web-top .btn-ghost.top-cta-demo:hover {
  border-color: #174a2b;
  background: rgba(23, 74, 43, .06);
}
.mobile-nav .btn-ghost {
  border: 1px solid rgba(23, 74, 43, .28);
  color: #174a2b;
  background: transparent;
  text-align: center;
}
.contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: 8px;
  border: 1px solid rgba(16, 32, 24, .12);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  place-items: center;
  gap: 5px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #174a2b;
  transition: transform .2s ease, opacity .2s ease;
}
.top.web-top.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.top.web-top.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.top.web-top.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: var(--web-header-h, 72px);
  left: 0;
  right: 0;
  z-index: 39;
  display: grid;
  gap: 4px;
  padding: 12px var(--edge) 18px;
  background: #fff;
  border-bottom: 1px solid rgba(16, 32, 24, .08);
  box-shadow: 0 18px 40px rgba(13, 36, 22, .12);
}
.mobile-nav[hidden] { display: none !important; }
.mobile-nav a {
  display: block;
  padding: 12px 10px;
  color: #102018;
  text-decoration: none;
  font-weight: 750;
  font-size: 15px;
  border-radius: 12px;
}
.mobile-nav a:hover { background: rgba(47, 138, 78, .08); }
.mobile-nav .btn {
  margin-top: 8px;
  text-align: center;
  background: #174a2b;
  color: #fff;
}

.intro-controls {
  position: relative;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  pointer-events: auto;
}
.intro-controls .nav-label {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .92;
  font-weight: 800;
  margin-right: 2px;
  color: #fff;
}
.intro-controls .counter {
  font-size: 14px;
  font-weight: 800;
  opacity: 1;
  min-width: 58px;
  text-align: right;
  color: #fff;
}
.intro-controls .icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1.5px solid #fff;
  background: rgba(255,255,255,.38);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.intro-controls .icon-btn:hover:not(:disabled) {
  background: rgba(255,255,255,.55);
  border-color: #fff;
  transform: translateY(-1px);
}
.intro-controls .icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.intro-controls .icon-btn:disabled {
  opacity: .72;
  cursor: default;
  box-shadow: none;
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.16);
}
.problem-copy .intro-controls { margin-top: 18px; }
.scale-head .intro-controls,
.solution-head .intro-controls { margin-top: 16px; }

.deck {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--web-header-h, 72px));
  height: calc(100dvh - var(--web-header-h, 72px));
  overflow: hidden;
}

.deck .btn.btn-solid {
  background: #fff;
  color: #0d2416;
}
.deck .btn.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.28);
}
.deck .btn-gold {
  background: linear-gradient(125deg, #fff1c2 0%, #f6d56a 22%, #e8a23a 48%, #c96f12 72%, #f0c35d 100%);
  color: #2a2114;
}

.deck .topbar { display: none !important; }

.site-root {
  position: relative;
  z-index: 2;
}

.site-root .section-kicker,
.site-root h2,
.site-root .section-lede {
  color: inherit;
}

.site-continue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 20;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.deck.is-last .site-continue {
  display: inline-flex;
}

@media (max-width: 900px) {
  .top.web-top .nav { display: none; }
  .top.web-top .top-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .intro-controls .nav-label { display: none; }

  .deck {
    height: auto !important;
    min-height: calc(100dvh - var(--web-header-h, 72px));
    overflow: visible !important;
  }
  .deck .slides {
    position: relative;
    height: auto !important;
    min-height: calc(100dvh - var(--web-header-h, 72px));
  }
  .deck .slide,
  .deck .slide.cine {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
    min-height: calc(100dvh - var(--web-header-h, 72px));
    overflow: visible !important;
    padding: 0 !important;
  }
  .deck .slide.cine.is-on {
    display: block !important;
  }
  .deck .slide.cine:not(.is-on) {
    display: none !important;
  }
  .deck .cine-bg {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 100%;
  }
}
@media (min-width: 901px) {
  .mobile-nav { display: none !important; }
}
