/* Homepage carousel: copy and classroom images occupy separate columns. */
.hero.broca-carousel-hero {
  display: block;
  min-height: 0;
  padding: 42px clamp(24px, 3.125vw, 48px) 52px;
  background: var(--bg-main);
}
.hero.broca-carousel-hero::before,
.hero.broca-carousel-hero::after {
  content: none;
  display: none;
  background-image: none;
  animation: none;
}
.broca-carousel-hero .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  gap: clamp(28px, 2.6vw, 40px);
  align-items: center;
  width: min(1440px, 100%);
  margin: 0 auto;
}
.broca-carousel-hero .hero-copy { min-width: 0; max-width: none; padding: 0; }
.broca-carousel-hero .hero-eyebrow,
.broca-carousel-hero h1,
.broca-carousel-hero .subtitle,
.broca-carousel-hero .hero-actions,
.broca-carousel-hero .hero-proof {
  opacity: 1;
  animation: none;
  transform: none;
}
.broca-carousel-hero .hero-eyebrow {
  margin-bottom: 24px;
  font-size: 12px;
  letter-spacing: 1.4px;
  line-height: 1.8;
}
.broca-carousel-hero .hero-eyebrow::before { width: 28px; }
.broca-carousel-hero h1.hero-title-lines {
  font-size: clamp(31px, 3.12vw, 48px);
  line-height: 1.3;
}
.broca-carousel-hero h1.hero-title-lines > span { white-space: normal; }
.broca-carousel-hero h1.hero-title-lines > .hero-tagline {
  margin-top: 20px;
  font-size: clamp(23px, 1.94vw, 30px);
  line-height: 1.6;
  text-wrap: balance;
}
.broca-carousel-hero .subtitle {
  margin: 24px 0 28px;
  max-width: none;
  font-size: clamp(16px, 1.18vw, 18px);
  line-height: 1.9;
}
.broca-carousel-hero .hero-actions { gap: 12px; }
.broca-carousel-hero .hero-actions a {
  width: auto;
  min-height: 52px;
  justify-content: center;
  padding: 14px 22px;
  font-size: 15px;
  white-space: nowrap;
}
.broca-carousel-hero .hero-proof { gap: 8px; margin-top: 26px; }
.broca-carousel-hero .hero-proof span {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
  box-shadow: none;
  background: var(--paper);
}
.broca-hero-carousel { min-width: 0; width: 100%; }
.broca-hero-carousel [hidden] { display: none !important; }
body.broca-carousel-controls-in-view .broca-contact-dock {
  visibility: hidden;
  pointer-events: none;
}
.broca-hero-viewport {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--paper);
}
.broca-hero-slide {
  grid-area: 1 / 1;
  min-width: 0;
  margin: 0;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 650ms ease, visibility 0s linear 650ms;
}
.broca-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  transition: opacity 650ms ease, visibility 0s linear 0s;
}
.broca-hero-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--mist);
}
.broca-hero-slide--intro img { object-fit: cover; object-position: right center; }
.broca-hero-slide figcaption {
  padding: 12px 18px;
  color: var(--body);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: .4px;
}
.broca-hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.broca-hero-selectors { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.broca-hero-carousel button {
  appearance: none;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
  touch-action: manipulation;
}
.broca-hero-selector {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--body);
  background: transparent;
  transition: background-color 180ms ease, color 180ms ease;
}
.broca-hero-selector span { font-size: 11px; font-weight: 900; }
.broca-hero-selector[aria-pressed="true"] { color: #fff; background: var(--brand-primary); }
.broca-hero-selector[aria-pressed="true"] span { color: var(--brand-accent); }
.broca-hero-selector:hover { background: var(--mist); color: var(--brand-primary); }
.broca-hero-selector[aria-pressed="true"]:hover { color: #fff; background: var(--brand-primary-hover); }
.broca-hero-transport { display: flex; align-items: center; gap: 6px; }
.broca-hero-transport button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--brand-primary);
  border-color: var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.broca-hero-transport button:hover { border-color: var(--brand-primary); background: var(--mist); }
.broca-hero-carousel:focus-visible,
.broca-hero-carousel button:focus-visible {
  outline: 3px solid var(--brand-accent-deep);
  outline-offset: 4px;
}
.broca-hero-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1001px) {
  .broca-carousel-hero .hero-inner { align-items: start; }
  .broca-carousel-hero .hero-copy { padding-top: 26px; }
  .broca-hero-carousel {
    max-width: clamp(500px, calc(133.333svh - 380px), 100%);
    justify-self: end;
  }
}
@media (max-width: 1100px) and (min-width: 1001px) {
  .broca-carousel-hero .hero-eyebrow { letter-spacing: .5px; font-size: 11px; }
  .broca-carousel-hero .hero-eyebrow::before { display: none; }
  .broca-carousel-hero .hero-actions a { padding: 13px 16px; font-size: 14px; }
}
@media (max-width: 1000px) {
  .hero.broca-carousel-hero { padding: 36px 28px 44px; }
  .broca-carousel-hero .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 30px; max-width: 760px; }
  .broca-carousel-hero .hero-copy { max-width: 680px; }
  .broca-carousel-hero h1.hero-title-lines { font-size: clamp(32px, 5.5vw, 44px); }
  .broca-carousel-hero h1.hero-title-lines > .hero-tagline { margin-top: 14px; font-size: clamp(23px, 3.3vw, 29px); }
  .broca-carousel-hero .subtitle { margin: 18px 0 22px; }
  .broca-carousel-hero .hero-eyebrow { margin-bottom: 18px; }
  .broca-carousel-hero .hero-proof { margin-top: 20px; }
}
@media (max-width: 560px) {
  .hero.broca-carousel-hero { padding: 28px 22px 36px; }
  .broca-carousel-hero .hero-inner { gap: 26px; }
  .broca-carousel-hero .hero-eyebrow { gap: 10px; font-size: 11px; letter-spacing: .5px; margin-bottom: 16px; }
  .broca-carousel-hero .hero-eyebrow::before { width: 22px; }
  .broca-carousel-hero h1.hero-title-lines { font-size: clamp(27px, 7.7vw, 38px); }
  .broca-carousel-hero h1.hero-title-lines > .hero-tagline { font-size: clamp(22px, 5.9vw, 27px); line-height: 1.55; }
  .broca-carousel-hero .subtitle { font-size: 16px; }
  .broca-carousel-hero .hero-actions { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; }
  .broca-carousel-hero .hero-actions a { width: 100%; min-height: 50px; padding: 12px 10px; font-size: 13px; gap: 6px; }
  .broca-carousel-hero .hero-proof { gap: 6px; }
  .broca-carousel-hero .hero-proof span { font-size: 11px; padding: 6px 8px; }
  .broca-hero-viewport { border-radius: 18px; }
  .broca-hero-slide figcaption { padding: 10px 13px; font-size: 11px; }
  .broca-hero-controls { gap: 10px; margin-top: 12px; }
  .broca-hero-selectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; width: 100%; }
  .broca-hero-selector { justify-content: center; gap: 5px; padding: 10px 6px; font-size: 12px !important; }
  .broca-hero-transport { margin-left: auto; }
}
@media (max-width: 359px) {
  .broca-carousel-hero .hero-actions { grid-template-columns: 1fr; }
  .broca-carousel-hero .hero-eyebrow::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .broca-hero-carousel *, .broca-carousel-hero .hero-copy * { animation: none !important; transition: none !important; }
}

/* Full-viewport classroom backdrop with readable foreground copy. */
.hero.broca-carousel-hero{position:relative;isolation:isolate;min-height:calc(100svh - var(--broca-header-height,104px));padding:0;display:flex;align-items:center;background:#132f27;overflow:hidden}
.broca-carousel-hero .hero-inner{position:static;z-index:auto;display:block;width:100%;max-width:none;margin:0;padding:64px clamp(28px,6vw,100px) 132px;box-sizing:border-box}
.broca-carousel-hero .hero-copy{position:relative;z-index:2;width:min(620px,53%);max-width:620px;padding:0;color:#fff;text-shadow:0 2px 14px #0005}
.broca-carousel-hero .hero-eyebrow{color:#fff;margin-bottom:22px;font-size:13px;letter-spacing:1.3px}
.broca-carousel-hero h1.hero-title-lines{color:#fff;font-size:clamp(34px,3.8vw,58px);line-height:1.28}
.broca-carousel-hero h1.hero-title-lines strong{color:#fff}
.broca-carousel-hero h1.hero-title-lines>.hero-tagline{margin-top:22px;font-size:clamp(25px,2.7vw,40px);line-height:1.5;color:#fff}
.broca-carousel-hero .subtitle{font-size:clamp(17px,1.5vw,21px);color:#fff;margin:24px 0 28px;line-height:1.8}
.broca-carousel-hero .hero-actions a{min-height:52px;text-shadow:none}
.broca-carousel-hero .hero-actions .btn-ghost{color:#fff;border-color:#ffffffa6;background:#102c244d}
.broca-carousel-hero .hero-actions .btn-ghost:hover{background:#fff;color:#183f32}
.broca-carousel-hero .hero-proof{margin-top:24px}
.broca-carousel-hero .hero-proof span{background:#142c2473;color:#fff;border-color:#ffffff55;text-shadow:none}
.broca-carousel-hero .broca-hero-carousel{position:absolute;inset:0;z-index:0;max-width:none;width:100%;height:100%;}
.broca-hero-viewport{position:absolute;inset:0;display:block;border:0;border-radius:0;background:#132f27}
.broca-hero-viewport::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(90deg,rgba(8,28,22,.88) 0%,rgba(8,28,22,.7) 33%,rgba(8,28,22,.2) 66%,rgba(8,28,22,.08) 100%),linear-gradient(0deg,rgba(8,28,22,.65),transparent 30%)}
.broca-hero-slide{position:absolute;inset:0;background:#132f27;transition:opacity 900ms ease,visibility 0s linear 900ms}
.broca-hero-slide.is-active{transition:opacity 900ms ease,visibility 0s linear 0s}
.broca-hero-slide img{height:100%;width:100%;aspect-ratio:auto;object-fit:cover;object-position:center 18%;background:#132f27}
.broca-hero-slide--intro img{object-position:72% center}
.broca-hero-slide figcaption{position:absolute;right:clamp(24px,4vw,64px);bottom:110px;z-index:3;color:#fff;background:#102c246b;border-radius:6px;font-size:12px;padding:6px 10px}
.broca-hero-controls{position:absolute;bottom:26px;left:clamp(28px,6vw,100px);right:clamp(28px,6vw,100px);z-index:4;margin:0;gap:14px;border-top:1px solid #ffffff4d;padding-top:18px}
.broca-hero-selector{color:#fff;border:1px solid #ffffff55!important;background:#102c2473;border-radius:999px;padding:10px 16px}
.broca-hero-selector[aria-pressed="true"],.broca-hero-selector[aria-pressed="true"]:hover{color:#173b2d;background:#f5ce43}
.broca-hero-selector[aria-pressed="true"] span{color:#173b2d}
.broca-hero-selector:hover{background:#ffffff26;color:#fff}
.broca-hero-transport button{color:#fff;background:#102c2473;border-color:#ffffff80}
.broca-hero-transport button:hover{color:#173b2d;background:#fff}
@media(max-width:1000px){.hero.broca-carousel-hero{padding:0}.broca-carousel-hero .hero-inner{max-width:none;padding:48px 30px 140px}.broca-carousel-hero .hero-copy{width:min(590px,72%)}.broca-carousel-hero h1.hero-title-lines{font-size:40px}.broca-carousel-hero h1.hero-title-lines>.hero-tagline{font-size:30px}.broca-hero-controls{left:30px;right:30px}}
@media(max-width:600px){.broca-carousel-hero .hero-inner{padding:40px 24px 120px}.broca-carousel-hero .hero-copy{width:100%;max-width:440px}.broca-carousel-hero .hero-eyebrow{font-size:11px;letter-spacing:.5px;margin-bottom:18px}.broca-carousel-hero h1.hero-title-lines{font-size:clamp(28px,7.5vw,40px)}.broca-carousel-hero h1.hero-title-lines>.hero-tagline{font-size:25px;line-height:1.5;margin-top:16px}.broca-carousel-hero .subtitle{font-size:16px;margin:18px 0 22px}.broca-carousel-hero .hero-proof{display:none}.broca-carousel-hero .hero-actions a{font-size:12px;padding:12px 8px}.broca-hero-viewport::after{background:linear-gradient(90deg,#081c16b8,#081c166b),linear-gradient(0deg,#081c16d9,transparent 50%)}.broca-hero-slide img{object-position:59% center}.broca-hero-slide--intro img{object-position:72% center}.broca-hero-slide figcaption{bottom:88px;right:24px;font-size:10px}.broca-hero-controls{left:24px;right:24px;bottom:16px;gap:10px;padding-top:12px}.broca-hero-selector{font-size:11px!important;padding:9px 5px}.broca-hero-transport button{min-height:40px;padding:8px 12px}}

/* Quiet dot navigation; keep generous pointer targets around the small dots. */
.broca-carousel-hero .hero-inner{padding-top:140px;padding-bottom:88px}
.broca-hero-controls{left:50%;right:auto;bottom:18px;transform:translateX(-50%);border:0;padding:0;gap:0;width:auto}
.broca-hero-selectors{display:flex;flex-wrap:nowrap;gap:0;width:auto}
.broca-hero-carousel .broca-hero-selector{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;border:0!important;border-radius:50%;background:transparent;color:inherit;box-shadow:none}
.broca-hero-selector::before{content:"";display:block;width:9px;height:9px;border:1px solid #ffffffb3;border-radius:50%;background:#ffffff73;transition:background-color .2s,transform .2s}
.broca-hero-carousel .broca-hero-selector[aria-pressed="true"],.broca-hero-carousel .broca-hero-selector:hover{background:transparent}
.broca-hero-selector[aria-pressed="true"]::before{background:#f5ce43;border-color:#f5ce43;transform:scale(1.25)}
.broca-hero-selector:hover::before{border-color:#fff}
@media(max-width:1000px){.broca-carousel-hero .hero-inner{padding-top:110px;padding-bottom:84px}}
@media(max-width:600px){.broca-carousel-hero .hero-inner{padding-top:84px;padding-bottom:82px}.broca-hero-controls{left:50%;right:auto;bottom:12px}}
@media(prefers-reduced-motion:reduce){.broca-hero-selector::before{transition:none}}
