/* ==========================================================
   Integral HR Solutions - Supervisory Training landing page
   Palette: #0d2240 navy | #00598c blue | #e8821e orange | #fff
   ========================================================== */

:root {
  --navy: #0d2240;
  --blue: #00598c;
  --orange: #e8821e;
  --white: #fff;
  --tint: color-mix(in srgb, var(--navy) 5%, #fff);
  --line: color-mix(in srgb, var(--navy) 14%, #fff);
  --text: color-mix(in srgb, var(--navy) 88%, #fff);
  --gutter: 7.5%;
  --radius: 14px;
  --header-h: 96px;
  --header-sticky-h: 68px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-sticky-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .75em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 2000;
  background: var(--orange); color: var(--navy); padding: .6rem 1rem; border-radius: 6px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Layout: 100% wide with 7.5% margin on both sides */
.container { width: 100%; padding-inline: var(--gutter); }
.narrow { max-width: calc(1024px + 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; line-height: 1.4;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn-accent { background: var(--orange); color: var(--white); }
.btn-accent:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--navy); color: var(--white); }


.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.logo img { width: 220px; height: auto; }

.primary-nav { display: flex; align-items: center; flex: 1; margin-left: clamp(2rem, 6vw, 6rem); }
.menu { display: flex; align-items: center; gap: 1.9rem; }
.menu a, .sub-toggle {
  color: rgba(255, 255, 255, .75); text-decoration: none; font-size: .85rem; font-weight: 600; letter-spacing: .03em;
  background: none; border: 0; padding: .5rem 0; display: inline-flex; align-items: center; gap: .4rem;
  transition: color .2s var(--ease);
}
.menu a:hover, .sub-toggle:hover, .has-sub.open > .sub-toggle { color: var(--orange); }

/* "+" icon that animates into a minus */
.plus { position: relative; width: 11px; height: 11px; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.plus::before { left: 0; right: 0; top: 4.5px; height: 2px; }
.plus::after { top: 0; bottom: 0; left: 4.5px; width: 2px; }
.has-sub.open .plus::after { transform: rotate(90deg); }

.has-sub { position: relative; }
.submenu {
  position: absolute; left: 0; top: 100%; min-width: 290px; background: var(--white);
  border-top: 3px solid var(--orange); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 18px 40px rgba(13, 34, 64, .25); padding: .5rem 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.submenu a { display: block; color: var(--navy); padding: .55rem 1.25rem; font-weight: 500; }
.submenu a:hover { background: var(--tint); color: var(--blue); }
.has-sub:hover > .submenu, .has-sub.open > .submenu { opacity: 1; visibility: visible; transform: none; }


/* Hamburger -> X toggle (mobile only) */
.menu-toggle { display: none; position: relative; z-index: 1002; width: 48px; height: 48px; background: none; border: 0; padding: 0; }
.bar {
  position: absolute; left: 11px; width: 26px; height: 2px; background: var(--orange); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .2s var(--ease), top .35s var(--ease);
}
.bar:nth-child(1) { top: 15px; }
.bar:nth-child(2) { top: 23px; }
.bar:nth-child(3) { top: 31px; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-tint { background: var(--tint); }
.section-title { text-align: center; margin-bottom: 2.5rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split-reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: 0 20px 40px rgba(13, 34, 64, .18); }

.check-list { margin-bottom: 1.25rem; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
  border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg);
}

.topics-label { font-weight: 600; color: var(--blue); margin-bottom: .5rem; }
.emphasis { font-weight: 600; color: var(--navy); border-left: 4px solid var(--orange); padding-left: 1rem; }

/* Coverage cards: see slider section below */

/* Dark band */
.section-dark { background: var(--blue); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark .emphasis { color: var(--white); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .85rem; }
.faq-section { background: color-mix(in srgb, var(--blue) 9%, #fff); }
.faq-item { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease); }
.faq-item:hover { box-shadow: 0 10px 28px rgba(13, 34, 64, .1); transform: translateY(-2px); }
.faq-item.open { border-left-color: var(--orange); box-shadow: 0 10px 28px rgba(13, 34, 64, .12); }
.faq-item h3 { margin: 0; font-size: 1rem; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left;
  background: none; border: 0; padding: 1.15rem 1.4rem; font-weight: 600; color: var(--navy);
  transition: color .2s var(--ease);
}
.faq-q:hover, .faq-q[aria-expanded="true"] { color: var(--blue); }

.faq-icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: transparent; transition: background-color .3s var(--ease), transform .3s var(--ease); }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 7px; right: 7px; top: 14px; height: 3px; background: var(--orange); border-radius: 2px;
  transition: transform .35s var(--ease), background-color .3s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon { background: var(--orange); transform: rotate(180deg); }
.faq-q[aria-expanded="true"] .faq-icon::before, .faq-q[aria-expanded="true"] .faq-icon::after { background: var(--white); }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }

.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-q[aria-expanded="true"] + * { grid-template-rows: 1fr; }
.faq-item .faq-a p { padding: 0 1.4rem 1.3rem; margin: 0; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ---------- CTA ---------- */
.cta { background: var(--navy); color: var(--white); padding-block: clamp(3rem, 7vw, 5.5rem); text-align: center; }
.cta h2 { color: var(--white); max-width: 22ch; margin-inline: auto; }
.cta p { max-width: 60ch; margin-inline: auto; color: rgba(255, 255, 255, .88); }
.cta .btn { margin-top: .75rem; }
.cta-url a { color: var(--orange); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .85); border-top: 1px solid rgba(255, 255, 255, .15); font-size: .9rem; }
.site-footer a { color: var(--white); }
.site-footer h3 { color: var(--orange); font-size: 1rem; }
.site-footer address { font-style: normal; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 2rem; padding-block: 3rem; }
.footer-grid img { margin-bottom: 1rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .15);
}
.footer-bottom p { margin: 0; }
.social { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.social a { text-decoration: none; }
.social a:hover { color: var(--orange); }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 1200px) {
  .menu { gap: 1.1rem; }
}

@media (max-width: 1024px) {
  :root { --header-h: 84px;
  --header-sticky-h: 62px; }
  .menu-toggle { display: block; }

  /* Full-screen mobile menu, matching the reference design */
  .primary-nav {
    position: fixed; inset: 0; z-index: 1001; background: var(--navy);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 110px 20px 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .primary-nav.open { opacity: 1; visibility: visible; transform: none; }

  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu > li { border-bottom: 1px solid rgba(255, 255, 255, .25); }
  .menu a, .sub-toggle { display: flex; width: 100%; justify-content: space-between; padding: 1rem 1.25rem; font-size: .9rem; }
  .plus { width: 12px; height: 12px; }

  .submenu {
    position: static; min-width: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0;
    opacity: 1; visibility: visible; transform: none; max-height: 0; overflow: hidden;
    transition: max-height .4s var(--ease);
  }
  .has-sub:hover > .submenu { opacity: 1; visibility: visible; transform: none; }
  .has-sub.open > .submenu { max-height: 700px; }
  .submenu a { color: rgba(255, 255, 255, .85); padding: .7rem 2.25rem; font-size: .85rem; }
  .submenu a:hover { background: rgba(255, 255, 255, .06); color: var(--orange); }


  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
}

@media (max-width: 560px) {
  .logo img { width: 160px; }
  .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* ==========================================================
   Enhancements: motion, hover effects, slider, sticky media
   ========================================================== */

/* Scroll progress bar */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 1100; background: var(--orange); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* Header gets depth after scrolling */
.site-header { transition: box-shadow .3s var(--ease); }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(13, 34, 64, .35); }

/* Desktop nav: sliding underline */
@media (min-width: 1025px) {
  .menu > li > a, .sub-toggle { position: relative; }
  .menu > li > a::after, .sub-toggle::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--orange);
    transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
  }
  .menu > li > a:hover::after, .has-sub:hover > .sub-toggle::before, .has-sub.open > .sub-toggle::before { transform: scaleX(1); transform-origin: left; }
  .sub-toggle::before { bottom: 2px; }
  .submenu a { transition: padding-left .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease); }
  .submenu a:hover { padding-left: 1.6rem; }
}

/* Buttons: fill sweep */
.btn { position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 8px 20px rgba(232, 130, 30, .3); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--white);
  transform: translateX(-101%); transition: transform .4s var(--ease);
}
.btn:hover { background: var(--orange); transform: translateY(-3px); box-shadow: 0 14px 28px rgba(232, 130, 30, .4); }
.btn:hover::before { transform: none; }

/* ---------- Scroll reveal (only when JS is available) ---------- */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; }
  .reveal.is-visible { opacity: 1; animation: rise .8s var(--ease) backwards; }
  .reveal-img { opacity: 0; transform: scale(1.08); will-change: opacity, transform; }
  .reveal-img.is-visible { opacity: 1; transform: none; transition: opacity 1.2s ease-out, transform 1.6s var(--ease); }
}

/* Images: frame with hover zoom */
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 48px rgba(13, 34, 64, .2); }
.split-media img { box-shadow: none; border-radius: 0; transition: transform .8s var(--ease); }
.split-media:hover img { transform: scale(1.06); }

/* Sticky supporting image */
.split-top { align-items: start; }
.split-media.is-sticky { position: sticky; top: calc(var(--header-sticky-h) + 24px); }
.split-media.is-sticky img {  }

/* List hover */
.check-list li { transition: transform .25s var(--ease), color .25s var(--ease); }
.check-list li:hover { transform: translateX(6px); color: var(--navy); }

/* Section headings */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; max-width: 24ch; }

/* ---------- Slider ---------- */
.section-slider { background: linear-gradient(115deg, #c9500f 0%, #d97a1b 100%); overflow: clip; padding-block: 0; }
.slider-controls { display: flex; gap: .6rem; flex: none; }
.slider-btn {
  position: relative; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--navy); background: var(--white);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), opacity .25s var(--ease);
}
.slider-btn:hover:not(:disabled) { background: var(--orange); border-color: var(--orange); transform: scale(1.08); }
.slider-btn:disabled { opacity: .35; cursor: not-allowed; }
.chev { position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border-top: 2.5px solid var(--navy); border-right: 2.5px solid var(--navy); }
.chev-right { transform: translate(-65%, -50%) rotate(45deg); }
.chev-left { transform: translate(-35%, -50%) rotate(-135deg); }

.slider { --gap: 1.5rem; --per-view: 3; }
.slider-track {
  display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 1.5rem 7.5vw 2rem; scroll-padding-inline: 7.5vw; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.slider-track.is-dragging a, .slider-track.is-dragging .card { pointer-events: none; }

.card {
  position: relative; flex: 0 0 calc((85vw - (var(--per-view) - 1) * var(--gap)) / var(--per-view)); scroll-snap-align: start;
  background: var(--white); border-radius: var(--radius); padding: 3.25rem 1.75rem 3.25rem; border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy);
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.card::after { content: ""; position: absolute; left: 0; top: 0; height: 5px; width: 64px; background: #0091b2; transition: width .45s var(--ease); }
.card:hover { transform: translateY(-8px); border-color: var(--navy); box-shadow: 0 24px 48px rgba(13, 34, 64, .25); }
.card:hover::before { transform: none; }
.card:hover::after { width: 100%; }
.card h3 { transition: color .4s var(--ease); }
.card:hover h3 { color: var(--white); }
.card:hover p { color: rgba(255, 255, 255, .88); }
.card:hover .topics-label { color: var(--orange); }
.card:hover .check-list li { color: rgba(255, 255, 255, .92); }
.card .check-list { margin-bottom: 0; font-size: .9rem; }


/* Dark band */
.section-dark { position: relative; overflow: hidden; }
/* Watermark stays fixed in the viewport while the section scrolls past (clip-path crops it to the section) */
.section-dark { clip-path: inset(0); }
.fixed-mark {
  position: fixed; top: 50%; right: 7.5%; z-index: 0; height: min(85vh, 680px); width: auto;
  transform: translateY(-50%); opacity: .12; pointer-events: none;
}
.section-dark .container { position: relative; z-index: 1; }

/* CTA + footer hovers */
.cta { position: relative; overflow: hidden; }
.site-footer a { text-decoration: none; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease), color .3s var(--ease); }
.site-footer a:hover { background-size: 100% 2px; color: var(--white); }

/* ---------- Responsive adjustments ---------- */
@media (max-width: 1100px) { .slider { --per-view: 2; } }

@media (max-width: 1024px) {
  .split-media.is-sticky { position: static; }
  
  .menu > li > a::after, .sub-toggle::before { display: none; }
}

@media (max-width: 700px) {
  .slider { --per-view: 1; }
  .card { flex-basis: 80vw; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .slider-track { scroll-behavior: auto; }
}


/* ==========================================================
   Header, hero card and marquee (matches design reference)
   ========================================================== */
.topbar { background: color-mix(in srgb, var(--navy) 82%, #000); color: rgba(255, 255, 255, .78); font-size: .82rem; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: .4rem 2rem; padding-block: .7rem; }
.tb-item { display: inline-flex; align-items: center; gap: .55rem; margin: 0; color: inherit; text-decoration: none; }
.tb-item a { color: inherit; text-decoration: none; }
.tb-item a:hover, a.tb-item:hover { color: var(--orange); }
.tb-right { display: flex; flex-wrap: wrap; gap: .4rem 2.5rem; }
.tb-icon { width: 14px; height: 14px; fill: var(--orange); flex: none; }

.book-call {
  position: relative; margin-left: auto; color: var(--orange); text-decoration: none; text-transform: uppercase;
  font-size: .85rem; font-weight: 600; letter-spacing: .03em; white-space: nowrap; transition: color .25s var(--ease);
}
.book-call::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.book-call:hover::after { transform: scaleX(1); transform-origin: left; }

.hero { --card-r: 22px; background: var(--navy); padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5.5rem); }
.hero-shell { position: relative; }
.hero-card {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--card-r); overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
}
.hero-photo { position: relative; min-height: clamp(440px, 54vh, 640px); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hero-card:hover .hero-img { transform: scale(1.04); }

.hero-text {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: clamp(2rem, 4.5vw, 4.5rem); background: linear-gradient(115deg, #c9500f 0%, #d97a1b 100%); color: var(--white);
}
.hero-text > :not(.panel-mark) { position: relative; z-index: 1; }
.hero .kicker { margin: 0 0 1rem; font-size: clamp(1rem, 1.5vw, 1.3rem); font-weight: 400; color: var(--white); }
.hero h1 { color: var(--white); font-size: clamp(1.9rem, 3.2vw, 3.1rem); letter-spacing: -.02em; margin-bottom: 1.25rem; }
.lead { max-width: 34ch; margin-bottom: 2rem; font-size: clamp(1.05rem, 1.6vw, 1.45rem); font-weight: 400; color: var(--white); }
.panel-mark { position: absolute; right: 5%; top: 0; bottom: 0; margin-block: auto; height: 96%; width: auto; opacity: .08; filter: brightness(3); pointer-events: none; z-index: 0; }

.btn-pill {
  display: inline-flex; align-items: center; gap: 1rem; padding: .35rem .35rem .35rem 1.5rem; border-radius: 999px;
  background: var(--white); color: var(--navy); border: 0;
  font-size: .8rem; font-weight: 600; text-transform: uppercase; text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn-pill .arrow { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); transition: transform .3s var(--ease); }
.btn-pill .arrow::before { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border-top: 2px solid var(--white); border-right: 2px solid var(--white); transform: translate(-65%, -50%) rotate(45deg); }
.btn-pill:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-pill:hover .arrow { transform: translateX(4px); }

/* Blue marquee strip tucked under the hero card */
.marquee {
  position: relative; z-index: 0; margin-top: calc(var(--card-r) * -1); padding: calc(var(--card-r) + 1.5rem) 0 1.5rem;
  background: var(--blue); color: var(--white); border-radius: 0 0 var(--card-r) var(--card-r); overflow: hidden;
}
/* 70px gap on the left and right: text is clipped inside this viewport */
.marquee-viewport { margin-inline: 70px; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 90s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; align-items: center; }
.marquee-group li { display: flex; align-items: center; gap: 1.75rem; padding-right: 1.75rem; font-size: clamp(1rem, 1.6vw, 1.45rem); font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.star {
  flex: none; width: 22px; height: 22px; background: var(--orange);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

/* Hero animations start once the page (and fonts) have loaded: JS adds .is-loaded to <html> */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .hero-photo, .hero-text > :not(.panel-mark), .marquee { opacity: 0; }
  .is-loaded .hero-text > :not(.panel-mark) { animation: rise .8s var(--ease) both; }
  .is-loaded .hero-text > :nth-child(2) { animation-delay: .1s; }
  .is-loaded .hero-text > :nth-child(3) { animation-delay: .2s; }
  .is-loaded .hero-text > :nth-child(4) { animation-delay: .3s; }
  .is-loaded .hero-photo { animation: fade-in 1.4s ease-out both; }
  .is-loaded .marquee { animation: rise 1s .4s var(--ease) both; }
}

.section-intro { padding-bottom: 0; }
.section-intro .narrow { text-align: center; }
.intro-lead { font-size: 1.15rem; color: var(--navy); }

@media (max-width: 1024px) {
  .book-call { margin: 1.5rem 1.25rem 0; align-self: flex-start; padding: .7rem 1.4rem; border-radius: 999px; background: var(--orange); color: var(--white); }
  .book-call::after { display: none; }
  .primary-nav { margin-left: 0; }
}

@media (max-width: 900px) {
  .hero { --card-r: 16px; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
  .marquee-viewport { margin-inline: 30px; }
}

@media (max-width: 768px) {
  .tb-right { display: none; }
  .topbar-inner { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; width: auto; justify-content: center; }
  .marquee-group { flex-wrap: wrap; min-width: 0; justify-content: center; row-gap: .5rem; }
  .marquee-group[aria-hidden="true"], .marquee-group li[aria-hidden="true"] { display: none; }
}

/* Heading on exactly three lines in the two-column hero; font scales with the panel width so each line fits */
@media (min-width: 901px) {
  .hero-text { container-type: inline-size; padding-left: clamp(1.5rem, 4vw, 5rem); padding-right: clamp(1rem, 2vw, 2rem); }
  .hero h1 { font-size: min(3.1rem, calc(100cqi / 15.6)); }
  .hero h1 .line { display: block; white-space: nowrap; }
}

/* ==========================================================
   Round 6: full-height hero, orange topics section, white arrows
   ========================================================== */

/* Dark blue top area (top bar + header + hero) fills the first viewport */
:root { --topbar-h: 46px; }
.hero {
  min-height: calc(100vh - var(--topbar-h) - var(--header-h));
  min-height: calc(100svh - var(--topbar-h) - var(--header-h));
  display: flex; align-items: flex-start; /* card sits close to the header: gap is never more than 75px */
  padding-top: clamp(1rem, 2.4vw, 46px); padding-bottom: clamp(1.5rem, 3vw, 3rem);
}
.hero-shell { width: 100%; }

/* Topics section: orange gradient background, light text, no watermark */
.section-slider .section-head h2 { color: var(--white); }
.slider-btn { background: transparent; border-color: var(--white); }
.chev { border-top-color: var(--white); border-right-color: var(--white); }
.slider-btn:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); transform: scale(1.08); }

/* ==========================================================
   Topics slider driven by page scroll (pinned section)
   ========================================================== */
.slider-pin { padding-block: clamp(3rem, 6vw, 5rem); }

/* JS adds .is-pinned when the content fits the viewport: the section pins under the header
   and vertical scrolling moves the cards sideways; when the last card is reached the page continues. */
.section-slider.is-pinned .slider-pin {
  position: sticky; top: var(--header-sticky-h); min-height: calc(100vh - var(--header-sticky-h));
  min-height: calc(100svh - var(--header-sticky-h));
  display: flex; flex-direction: column; justify-content: center; padding-block: .5rem;
}
.section-slider.is-pinned .slider-track { overflow-x: hidden; scroll-snap-type: none; scroll-behavior: auto; cursor: default; }

/* Tighter chrome while pinned so the full card fits on typical laptop screens */
.section-slider.is-pinned .section-head { margin-bottom: 1.5rem; }
.section-slider.is-pinned .slider-track { padding-block: .75rem 1rem; }
/* Extra-compact cards, only used when the viewport is too short for the normal size */
.section-slider.is-pinned.is-compact .card { padding-block: 1.75rem; font-size: .88rem; }
.section-slider.is-pinned.is-compact .card .check-list { font-size: .8rem; }
.section-slider.is-pinned.is-compact .section-head { margin-bottom: .75rem; }
.section-slider.is-pinned.is-compact .section-head h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }

/* ==========================================================
   Round 8: shrinking sticky header, image fade, card numbers
   ========================================================== */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Sticky header: logo and bar get smaller once the page is scrolled.
   The margin keeps total page height constant, so nothing jumps when the header shrinks. */
.site-header { transition: box-shadow .3s var(--ease), margin-bottom .3s var(--ease); }
.nav-wrap { transition: min-height .3s var(--ease); }
.logo img { transition: width .3s var(--ease); }
.site-header.scrolled { margin-bottom: calc(var(--header-h) - var(--header-sticky-h)); }
.site-header.scrolled .nav-wrap { min-height: var(--header-sticky-h); }
.site-header.scrolled .logo img { width: 150px; }
@media (max-width: 1024px) { .site-header.scrolled .logo img { width: 118px; } }

/* Card numbers */
.card-num { display: block; margin-bottom: 1.25rem; font-size: 2.25rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--orange); }
.section-slider.is-pinned.is-compact .card-num { font-size: 1.75rem; margin-bottom: .75rem; }
