/* ==========================================================================
   Hero slider (home) and page hero (inner pages)
   Slides: image (CMS) + optional video + live "smoke to clean air" canvas.
   Works with image-only slides: .hero__fallback copy shows instead.
   ========================================================================== */
.hero { position: relative; min-height: 100svh; min-height: 100vh; color: var(--gs-linen-50); background: var(--gs-ink-950); overflow: hidden; isolation: isolate; }
@supports (height: 100svh) { .hero { min-height: 100svh; } }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--gs-ease), visibility 0s linear 1.2s; }
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s var(--gs-ease), visibility 0s; z-index: 1; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media picture, .hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media img { transform: scale(1.12); transform-origin: 60% 55%; }
.hero__slide.is-active .hero__media img { animation: hero-kenburns 14s var(--gs-ease-out) forwards; }
@keyframes hero-kenburns { from { transform: scale(1.14) translate3d(0, 0, 0); } to { transform: scale(1.02) translate3d(-1%, -1%, 0); } }
.hero__media video { opacity: 0; transition: opacity 1s; }
.hero__media video.is-playing { opacity: 1; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; mix-blend-mode: screen; opacity: .9; }
.hero__shade { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 19, 15, .55) 0%, rgba(6, 19, 15, 0) 26%, rgba(6, 19, 15, .05) 50%, rgba(6, 19, 15, .78) 100%),
              linear-gradient(90deg, rgba(6, 19, 15, .55) 0%, rgba(6, 19, 15, 0) 60%); }
.hero.grain::after { z-index: 3; }

.hero__inner { position: relative; z-index: 4; min-height: inherit; display: grid; grid-template-rows: 1fr auto auto auto; padding-top: 11rem; padding-bottom: 2.25rem; }
.hero__copy { grid-row: 2; position: relative; display: grid; }
.hero__content, .hero__fallback { grid-area: 1 / 1; max-width: 62rem; }
.hero__subs { display: grid; max-width: 36rem; }
.hero__subs > * { grid-area: 1 / 1; }
.hero__content, .hero__sub { opacity: 0; visibility: hidden; transition: opacity .6s var(--gs-ease), visibility 0s linear .6s; }
.hero__content.is-active, .hero__sub.is-active { opacity: 1; visibility: visible; transition-delay: .35s, 0s; }
.hero__fallback { opacity: 0; visibility: hidden; transition: opacity .6s var(--gs-ease), visibility 0s linear .6s; }
.hero[data-active-has-content="false"] .hero__fallback { opacity: 1; visibility: visible; transition-delay: .35s, 0s; }
.hero__eyebrow { color: #E6E4DC; margin-bottom: 1.25rem; }
.hero__eyebrow::before { background: var(--gs-spark-400); }
.hero__title { font-size: var(--gs-fs-display); line-height: 1.02; letter-spacing: -.04em; font-weight: var(--gs-fw-light); color: #fff; text-wrap: balance; }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--gs-ease-out); }
.is-active .hero__title .w > span, .hero[data-active-has-content="false"] .hero__fallback .hero__title .w > span { transform: none; }
.no-js .hero__title .w > span { transform: none; }
.hero__line { grid-row: 3; height: 1px; background: rgba(251, 250, 246, .45); margin-top: 2rem; transform-origin: left center; transform: scaleX(0); transition: transform 1.6s var(--gs-ease) .2s; }
.is-loaded .hero__line { transform: scaleX(1); }
.hero__bottom { grid-row: 4; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.5rem 3rem; margin-top: 1.75rem; }
.hero__text { max-width: 34rem; font-size: var(--gs-fs-lead); line-height: 1.45; color: #ECEAE3; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn--outline-light { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .5); --btn-bg-h: var(--gs-spark-400); --btn-fg-h: var(--gs-ink-900); --btn-bd-h: var(--gs-spark-400); }

/* Controls */
.hero__controls { display: flex; align-items: center; gap: .75rem; margin-left: auto; align-self: flex-end; }
.hero__dots { display: flex; gap: .5rem; align-items: center; margin-right: .5rem; }
.hero__dot { position: relative; width: 2.75rem; height: 1.5rem; display: grid; align-items: center; }
.hero__dot::before { content: ""; height: 2px; width: 100%; background: rgba(255, 255, 255, .3); border-radius: 2px; }
.hero__dot::after { content: ""; position: absolute; left: 0; top: 50%; margin-top: -1px; height: 2px; width: 100%; background: var(--gs-spark-400); border-radius: 2px; transform: scaleX(0); transform-origin: left; }
.hero__dot[aria-current="true"]::after { animation: hero-progress var(--gs-dur-slide) linear forwards; }
.hero.is-paused .hero__dot[aria-current="true"]::after { animation-play-state: paused; }
.hero.is-static .hero__dot[aria-current="true"]::after { animation: none; transform: scaleX(1); }
@keyframes hero-progress { to { transform: scaleX(1); } }
.hero__btn { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, .4); transition: background-color var(--gs-dur-fast), border-color var(--gs-dur-fast), color var(--gs-dur-fast); }
.hero__btn:hover { background: var(--gs-spark-400); border-color: var(--gs-spark-400); color: var(--gs-ink-900); }
.hero__btn .icon { width: 1.1rem; height: 1.1rem; }
.hero__btn .icon-play { display: none; }
.hero.is-paused .hero__btn[data-slider-pause] .icon-play { display: block; }
.hero.is-paused .hero__btn[data-slider-pause] .icon-pause { display: none; }
.hero__count { font-size: var(--gs-fs-xs); color: #D6D4CC; min-width: 3.5rem; font-variant-numeric: tabular-nums; }
.hero__scroll { position: absolute; right: var(--gs-gutter); top: 50%; z-index: 4; writing-mode: vertical-rl; font-size: var(--gs-fs-xs); letter-spacing: .2em; text-transform: uppercase; color: #C8C6BE; display: flex; align-items: center; gap: .75rem; }
.hero__scroll::after { content: ""; width: 1px; height: 3.5rem; background: linear-gradient(rgba(255, 255, 255, .7), transparent); animation: hero-scroll 2.4s var(--gs-ease) infinite; transform-origin: top; }
@keyframes hero-scroll { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 767.98px) {
  .hero__inner { padding-top: 8rem; }
  .hero__bottom { flex-direction: column; }
  .hero__controls { margin-left: 0; width: 100%; }
  .hero__dots { flex: 1; }
  .hero__dot { flex: 1; width: auto; }
  .hero__scroll { display: none; }
  .hero__shade { background: linear-gradient(180deg, rgba(6, 19, 15, .55) 0%, rgba(6, 19, 15, .1) 30%, rgba(6, 19, 15, .85) 100%); }
}

/* ---- Page hero (inner pages) --------------------------------------------- */
.page-hero { position: relative; isolation: isolate; color: var(--gs-linen-50); background: var(--gs-ink-900); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: page-hero-zoom 2.4s var(--gs-ease-out) forwards; }
@keyframes page-hero-zoom { to { transform: scale(1); } }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 19, 15, .6) 0%, rgba(6, 19, 15, .25) 40%, rgba(6, 19, 15, .85) 100%); }
.page-hero__inner { min-height: clamp(32rem, 72vh, 46rem); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 12.5rem; padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.page-hero .breadcrumbs { margin-bottom: auto; padding-bottom: 2.5rem; }
@media (max-width: 991.98px) { .page-hero__inner { padding-top: 9rem; } }
.page-hero .breadcrumbs ol, .page-hero .breadcrumbs a { color: #D3D1C9; }
.page-hero .breadcrumbs [aria-current="page"] { color: #fff; }
.page-hero h1 { max-width: 18ch; margin-top: 1rem; animation: rise-in 1.1s var(--gs-ease-out) both .1s; }
.page-hero .lead { color: #E6E4DC; max-width: 38rem; margin-top: 1.25rem; animation: rise-in 1.1s var(--gs-ease-out) both .25s; }
.page-hero .eyebrow { color: #E2E0D8; animation: rise-in 1s var(--gs-ease-out) both; }
.page-hero .eyebrow::before { background: var(--gs-spark-400); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; animation: rise-in 1.1s var(--gs-ease-out) both .4s; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* light variant (no image): header stays solid */
.page-hero--light { background: var(--gs-linen-100); color: var(--gs-ink-900); }
.page-hero--light::before { display: none; }
.page-hero--light .page-hero__inner { min-height: 0; padding-top: 3.5rem; padding-bottom: 3rem; }
.page-hero--light .breadcrumbs ol, .page-hero--light .breadcrumbs a { color: var(--gs-color-text-muted); }
.page-hero--light .breadcrumbs [aria-current="page"] { color: var(--gs-ink-900); }
.page-hero--light .lead { color: var(--gs-color-text-muted); }
.page-hero--light .eyebrow { color: var(--gs-color-text-muted); }
.page-hero--light .eyebrow::before { background: var(--gs-leaf-500); }
/* programme accent variant */
.page-hero[data-programme]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--prog, var(--gs-spark-400)); }

/* ---- Welcome badge above the hero headline (BKS-style) -------------------- */
.hero__copy > .hero__content, .hero__copy > .hero__fallback { grid-area: 2 / 1; }
.hero__welcome { grid-area: 1 / 1; justify-self: start; display: inline-flex; align-items: stretch; flex-wrap: wrap; margin: 0 0 1.5rem;
  font-size: clamp(.8125rem, .74rem + .3vw, 1rem); font-weight: var(--gs-fw-semibold); letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  animation: rise-in 1s var(--gs-ease-out) both; }
.hero__welcome-tag { display: inline-flex; align-items: center; padding: .62em .8em; background: var(--gs-leaf-500); color: #fff; border-radius: 3px; }
.hero__welcome-text { display: inline-flex; align-items: center; padding: .62em .75em; color: #fff; }
@media (max-width: 575.98px) { .hero__welcome { margin-bottom: 1rem; } }

/* ==========================================================================
   Home video hero (.gs-vhero, video-hero.js): GSSL footage loop behind the
   welcome badge and headline. Poster first, then the wide or tall cut.
   ========================================================================== */
.gs-vhero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; background: var(--gs-ink-950); color: var(--gs-linen-50); }
.gs-vhero__media { position: absolute; inset: 0; z-index: 0; }
.gs-vhero__media img, .gs-vhero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.js .gs-vhero__media picture { opacity: 0; transition: opacity 1.4s var(--gs-ease); }
.gs-vhero.is-loaded .gs-vhero__media picture { opacity: 1; }
.gs-vhero__media video { opacity: 0; transition: opacity .6s linear; }
.gs-vhero__media video.is-playing { opacity: 1; }
.gs-vhero__shade { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 19, 15, .55) 0%, rgba(6, 19, 15, 0) 26%, rgba(6, 19, 15, .05) 50%, rgba(6, 19, 15, .78) 100%),
              linear-gradient(90deg, rgba(6, 19, 15, .55) 0%, rgba(6, 19, 15, 0) 60%); }
.gs-vhero.grain::after { z-index: 3; }
.gs-vhero__inner { position: relative; z-index: 4; min-height: inherit; display: grid; grid-template-rows: 1fr auto auto auto; padding-top: 11rem; padding-bottom: 14rem; }
/* Row 1 is a 1fr spacer and copy/line/bottom are auto, so the whole block is
   anchored to the bottom: padding-TOP only matters when the content would
   overflow, which is why reducing it did not move the copy. padding-bottom
   above is the lever that lifts it. This keeps the top clear of the chrome,
   which is 3rem shorter without the bar. */
/* 14rem of bottom padding lifts the copy out of the lower third, but on a
   short laptop screen that much padding plus the copy would overflow the
   viewport and make the hero taller than the screen. */
@media (max-height: 800px) { .gs-vhero__inner { padding-bottom: 6rem; } }
.topbar-off .gs-vhero__inner { padding-top: 8rem; }
.gs-vhero__copy { grid-row: 2; max-width: 62rem; }
.gs-vhero__copy .hero__welcome { display: inline-flex; }
.gs-vhero__title { margin: 0; font-size: var(--gs-fs-display); line-height: 1.02; letter-spacing: -.04em; font-weight: var(--gs-fw-light); color: #fff; text-wrap: balance; }
.gs-vhero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.js .gs-vhero__title .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--gs-ease-out); transition-delay: calc(.45s + var(--i, 0) * 70ms); }
.gs-vhero.is-loaded .gs-vhero__title .w > span { transform: none; }
.gs-vhero__line { grid-row: 3; height: 1px; background: #8E9A93; margin-top: 2rem; transform-origin: left center; transition: transform 1.6s var(--gs-ease) .6s; }
.js .gs-vhero__line { transform: scaleX(0); }
.gs-vhero.is-loaded .gs-vhero__line { transform: scaleX(1); }
.gs-vhero__bottom { grid-row: 4; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-top: 1.75rem; }
.js .gs-vhero__text, .js .gs-vhero__actions, .js .gs-vhero__toggle { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--gs-ease-out), transform .8s var(--gs-ease-out); }
.gs-vhero.is-loaded .gs-vhero__text { opacity: 1; transform: none; transition-delay: 1s; }
.gs-vhero.is-loaded .gs-vhero__actions { opacity: 1; transform: none; transition-delay: 1.15s; }
.gs-vhero.is-loaded .gs-vhero__toggle { opacity: 1; transform: none; transition-delay: 1.3s; }
.gs-vhero__text { max-width: 34rem; margin: 0; font-size: var(--gs-fs-lead); line-height: 1.45; color: #ECEAE3; }
.gs-vhero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.gs-vhero__toggle { margin-left: auto; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; color: #fff; background: transparent; border: 1px solid #9AA59F; cursor: pointer; transition: opacity .8s var(--gs-ease-out), transform .8s var(--gs-ease-out), background-color .2s, border-color .2s, color .2s; }
.gs-vhero__toggle:hover, .gs-vhero__toggle:focus-visible { background: var(--gs-spark-400); border-color: var(--gs-spark-400); color: var(--gs-ink-900); }
.gs-vhero__toggle:focus-visible { outline: 2px solid var(--gs-spark-400); outline-offset: 3px; }
.gs-vhero__toggle svg { width: 1rem; height: 1rem; fill: currentColor; }
.gs-vhero__toggle .i-play { display: none; }
.gs-vhero__toggle[aria-pressed="true"] .i-play { display: block; }
.gs-vhero__toggle[aria-pressed="true"] .i-pause { display: none; }
.gs-vhero__toggle[hidden] { display: none; }
@media (max-width: 767.98px) {
  .gs-vhero__inner { padding-top: 8rem; }
  .gs-vhero__shade { background: linear-gradient(180deg, rgba(6, 19, 15, .55) 0%, rgba(6, 19, 15, .1) 30%, rgba(6, 19, 15, .85) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .gs-vhero *, .gs-vhero *::before { transition-duration: 0s !important; transition-delay: 0s !important; }
}
@media print { .gs-vhero__media video, .gs-vhero__toggle { display: none; } }
