/* Home hero — photo + Risk Register (production + sandbox preview) */

.home-page-shell,
.home-preview-shell {
  --hero-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --hero-register-bg: #f5f5f2;
  --hero-hairline: #e4e4e7;
  --hero-ink: #111111;
  --hero-muted: #71717a;
  --hero-text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.6);
  --hero-text-shadow-strong: 0 1px 3px rgba(0, 0, 0, 0.85), 0 4px 20px rgba(0, 0, 0, 0.65);

  --hero-shell-width: min(1140px, calc(100% - 2.5rem));
  /* Symmetric inset for the hero content grid. Below 1280px this is the
     padding clamp; above it, leftover space is split equally so columns
     stay aligned with the rest of the page. */
  --hero-shell-gutter: max(clamp(2rem, 5vw, 4rem), calc((100% - 1280px) / 2 + clamp(2rem, 5vw, 4rem)));
  --hero-register-width: 372px;
  --hero-content-gap: 2rem; /* guaranteed minimum breathing room between the left column and the Risk Register */
  --hero-register-bottom: clamp(4.75rem, 8.5vw, 6.25rem);
  --hero-left-bottom: clamp(4rem, 7vw, 5.5rem);
  --home-header-h: 56px;
  --sandbox-header-h: var(--home-header-h);
}

/* ——— Header — fixed, transparent over hero photography ——— */
.home-page-shell .home-hero-header,
.home-preview-shell .home-preview-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition:
    background 180ms var(--hero-ease),
    border-color 180ms var(--hero-ease);
}

/* Scrim lives on the header so white type stays readable on the photo
   and after scroll, when the page surface is light. */
.home-preview-shell .home-preview-header {
  background: linear-gradient(
    to bottom,
    rgba(15, 15, 15, 0.92) 0%,
    rgba(15, 15, 15, 0.62) 58%,
    rgba(15, 15, 15, 0.28) 100%
  );
}

.home-preview-shell .home-preview-header .elz-header__inner,
.home-preview-shell .home-preview-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  min-height: 3.25rem;
}

.home-preview-header__logo-link {
  position: relative;
  z-index: 51;
  flex-shrink: 0;
  text-decoration: none;
}

.home-preview-shell .home-preview-header .elz-header__menu-toggle {
  position: relative;
  z-index: 51;
}

.home-preview-header__mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.home-preview-header__mobile-lang-switch {
  display: flex;
  align-items: center;
}

.home-preview-shell .home-preview-header .home-preview-header__mobile-lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.25rem;
}

.home-preview-header__desktop-cluster {
  display: none;
}

.home-preview-header__mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-preview-shell .home-preview-header a.home-preview-header__cta--primary,
.home-preview-shell .home-preview-header a.home-preview-header__cta--primary:is(:link, :visited, :hover, :active, :focus, :focus-visible) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: 0;
  background: #111111;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-shadow: none;
  transition: background 180ms var(--hero-ease), border-color 180ms var(--hero-ease);
  flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
  .home-preview-shell .home-preview-header a.home-preview-header__cta--primary:hover,
  .home-preview-shell .home-preview-header a.home-preview-header__cta--primary:focus-visible {
    background: #000000;
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
  }
}

.home-page-shell .home-hero-header .elz-header__logo,
.home-preview-shell .home-preview-header .elz-header__logo {
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: var(--hero-text-shadow-strong);
}

/* Build injects a second Contact link — suppress when ours is present */
.home-preview-shell .home-preview-header .elz-mobile-contact {
  display: none;
}

.home-preview-shell .home-preview-header .lang-switch {
  margin-left: 0;
  margin-right: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.04em;
}

.home-preview-shell .home-preview-header .lang-switch a {
  color: rgba(255, 255, 255, 0.8);
  text-shadow: var(--hero-text-shadow);
}

.home-preview-shell .home-preview-header .lang-switch a[aria-current="true"] {
  color: #ffffff;
  font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
  .home-preview-shell .home-preview-header .lang-switch a:hover {
    color: #ffffff;
  }
}

/* ——— Hero base — single static photo, no rotation ——— */
.dynamic-hero {
  position: relative;
  isolation: isolate;
  background: #ffffff;
  color: #ffffff;
  overflow: hidden;
}

.dynamic-hero__stage {
  position: relative;
}

.dynamic-hero__cinema {
  position: absolute;
  inset: 0;
  z-index: 0;
  isolation: isolate;
  overflow: hidden; /* clips the Ken Burns scale to the cinema box */
  background: #0a0a0a;
  pointer-events: none;
}

.dynamic-hero__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.dynamic-hero__background picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.dynamic-hero__background .dynamic-hero__image,
.dynamic-hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* strategic crops already baked into desktop/mobile assets */
  display: block;
  animation: hero-signature-kenburns 26s linear forwards;
  animation-delay: 200ms;
}

.dynamic-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(15, 15, 15, 0.85) 0%, rgba(15, 15, 15, 0) 28%),
    rgba(0, 0, 0, 0.35);
}

@media (min-width: 1024px) {
  .dynamic-hero__overlay {
    background:
      linear-gradient(to bottom, rgba(15, 15, 15, 0.85) 0%, rgba(15, 15, 15, 0) 28%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.45) 100%);
  }
}

/* Sandbox-only: denser left/base scrim so the subhead holds WCAG AA over steam. */
.home-preview-page .dynamic-hero__overlay {
  background:
    linear-gradient(to bottom, rgba(15, 15, 15, 0.85) 0%, rgba(15, 15, 15, 0) 28%),
    linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 32%),
    rgba(0, 0, 0, 0.35);
}

@media (min-width: 1024px) {
  .home-preview-page .dynamic-hero__overlay {
    background:
      linear-gradient(to bottom, rgba(15, 15, 15, 0.85) 0%, rgba(15, 15, 15, 0) 28%),
      linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 38%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 50%, rgba(0, 0, 0, 0.45) 100%);
  }
}

@media (max-width: 1023px) {
  .dynamic-hero__background picture,
  .dynamic-hero__background .dynamic-hero__image {
    /* Anchor focal point to street level and steam on portrait crop */
    object-position: center 85%;
  }
}

@keyframes hero-signature-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.015);
  }
}

.dynamic-hero__left-column {
  position: relative;
  z-index: 10;
  max-width: 38rem;
}

.home-preview-page .dynamic-hero__left-column::before {
  content: "";
  position: absolute;
  inset: -1.25rem -3rem -2.75rem -2.25rem;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 125% 100% at 8% 38%,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.4) 46%,
      rgba(0, 0, 0, 0.12) 70%,
      transparent 84%
    );
}

.dynamic-hero__eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: var(--hero-text-shadow-strong);
}

.dynamic-hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.375rem, 5.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-optical-sizing: auto;
  color: #ffffff;
  text-wrap: balance;
  text-shadow: var(--hero-text-shadow);
}

.dynamic-hero__title-line {
  display: block;
}

.dynamic-hero__subhead {
  margin: 1.15rem 0 0;
  max-width: 37.5rem;
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 1.7vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: var(--hero-text-shadow-strong);
}

.dynamic-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2.125rem;
}

.dynamic-hero__actions .btn {
  border-radius: 0;
  min-height: 2.75rem;
  padding-inline: 1.15rem;
}

.dynamic-hero__actions .btn--dark {
  font-weight: 500;
}

.home-preview-page .dynamic-hero__actions .btn--dark {
  background: var(--elz-black, #0f0f0f);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.92);
  padding: 14px var(--space-7, 28px);
  min-height: 44px;
}

.home-preview-page .dynamic-hero__actions .btn--dark:active {
  transform: scale(0.97);
}

.home-preview-page .dynamic-hero__actions .hp-link {
  margin-top: 0;
  text-shadow: var(--hero-text-shadow-strong);
}

@media (prefers-reduced-motion: reduce) {
  .home-preview-page .dynamic-hero__actions .btn--dark:active {
    transform: none;
  }
}

.dynamic-hero__link-secondary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: var(--hero-text-shadow-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
  border: 0;
  background: transparent;
  padding: 0;
  min-height: auto;
  transition: color 180ms var(--hero-ease);
}

.dynamic-hero__link-secondary:hover,
.dynamic-hero__link-secondary:focus-visible {
  color: #ffffff;
}

.home-preview-header__chevron {
  display: block;
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform 180ms var(--hero-ease);
}

.home-preview-header__desktop-group[open] .home-preview-header__chevron,
.home-preview-header__mobile-group[open] .home-preview-header__chevron {
  transform: rotate(180deg);
}

.dynamic-hero__register-wrap {
  display: block;
  position: relative;
  z-index: 10;
}

.dynamic-hero__register {
  background: var(--hero-register-bg);
  border: 1px solid var(--hero-hairline);
  border-radius: 0;
  box-shadow: none;
  color: var(--hero-ink);
  padding: 0.85rem 1.35rem 0.95rem;
}

.home-preview-page .dynamic-hero__register {
  background: rgba(245, 245, 242, 0.94);
  border-color: rgba(15, 15, 15, 0.1);
  box-shadow: none;
}

.home-preview-page .dynamic-hero__proof-value {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
}

.dynamic-hero__panel-kicker {
  margin: 0 0 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--hero-muted);
}

.dynamic-hero__panel-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--hero-ink);
}

.dynamic-hero__panel-body {
  margin: 0 0 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.55;
  color: #52525b;
}

.dynamic-hero__proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
  margin: 0.5rem 0 0.65rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--hero-hairline);
  border-bottom: 1px solid var(--hero-hairline);
}

.dynamic-hero__proof-item {
  margin: 0;
}

.dynamic-hero__proof-value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.4vw, 2.125rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--hero-ink);
}

.dynamic-hero__proof-label {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-muted);
}

.dynamic-hero__decision {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--hero-hairline);
}

.dynamic-hero__decision strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--hero-muted);
}

.dynamic-hero__decision p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--hero-ink);
}

.dynamic-hero__punchline {
  margin: 0.65rem 0 0;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--hero-ink);
}

@media (max-width: 1023px) {
  .dynamic-hero {
    background: #0a0a0a;
  }

  .dynamic-hero__stage {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--hero-content-gap);
    min-height: min(100svh, 920px);
    padding: calc(var(--home-header-h) + 1.75rem) 1.5rem 2rem;
    align-content: end;
  }

  .home-preview-page .dynamic-hero {
    overflow: visible;
  }

  .home-preview-page .dynamic-hero__stage {
    gap: var(--hero-content-gap);
    min-height: 100svh;
    padding: calc(var(--home-header-h) + 1.75rem) var(--space-6, 1.5rem) 2rem;
    align-content: space-between;
  }

  .dynamic-hero__cinema {
    position: absolute;
    inset: 0;
    min-height: 0;
    padding: 0;
  }

  .dynamic-hero__register-wrap {
    display: block;
    position: relative;
    width: 100%;
    visibility: visible;
    pointer-events: auto;
    height: auto;
    overflow: visible;
  }

  .home-preview-page .dynamic-hero__register-wrap {
    margin-top: auto;
  }

  .dynamic-hero__title {
    font-size: clamp(2.375rem, 10vw, 2.625rem);
    line-height: 1.05;
  }

  .dynamic-hero__subhead {
    font-size: 1rem;
    line-height: 1.5;
    max-width: none;
  }

  .dynamic-hero__left-column {
    max-width: none;
    padding-top: 0;
    padding-bottom: 0;
    text-align: left;
  }

  .dynamic-hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
  }

  .dynamic-hero__actions .btn {
    width: auto;
    display: inline-flex;
  }

  .dynamic-hero__link-secondary {
    margin-top: 0;
    text-align: left;
  }
}

/* ============================================================
   MOBILE + TABLET MENU — overlay through 1023px (sandbox-scoped)
   ============================================================ */
@media (max-width: 1023px) {
  .home-page-shell .home-hero-header .elz-header__menu-toggle,
  .home-preview-shell .home-preview-header .elz-header__menu-toggle {
    display: inline-flex;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.5rem 0.25rem;
    min-width: auto;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: var(--hero-text-shadow);
  }

  .home-preview-shell .home-preview-header .elz-header__menu-toggle[aria-expanded="true"] {
    border-color: transparent;
  }

  .home-preview-shell .home-preview-header .home-preview-header__desktop-cluster {
    display: none;
  }

  .home-preview-shell .home-preview-header .home-preview-header__mobile-nav {
    position: fixed;
    top: var(--sandbox-header-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--sandbox-header-h));
    width: auto;
    margin: 0;
    padding: 0;
    background: #fafaf8;
    border-top: none;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    z-index: 49;
  }

  .home-preview-shell .home-preview-header .home-preview-header__mobile-nav.is-open {
    display: flex;
  }

  .home-preview-shell .home-preview-header .home-preview-header__mobile-menu {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    padding: 0 1.75rem 2rem;
  }

  .home-preview-shell .home-preview-header .home-preview-header__mobile-item:not(.home-preview-header__mobile-item--cta) {
    border-bottom: 1px solid var(--hero-hairline);
  }

  .home-preview-shell .home-preview-header .home-preview-header__mobile-item:not(.home-preview-header__mobile-item--cta) > a,
  .home-preview-shell .home-preview-header .home-preview-header__mobile-group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 0;
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--hero-ink);
    text-decoration: none;
    text-shadow: none;
    min-height: auto;
    background: transparent;
    border: 0;
  }

  .home-preview-shell .home-preview-header .home-preview-header__mobile-group {
    position: static;
    display: block;
    width: 100%;
  }

  .home-preview-shell .home-preview-header .home-preview-header__mobile-group > summary {
    list-style: none;
    cursor: pointer;
  }

  .home-preview-shell .home-preview-header .home-preview-header__mobile-group > summary::-webkit-details-marker {
    display: none;
  }

  .home-preview-shell .home-preview-header .home-preview-header__mobile-group > summary::after {
    content: none;
    display: none;
  }

  /* Accordion panel: in-flow, no popover chrome from .elz-nav-group */
  .home-preview-shell .home-preview-header .home-preview-header__mobile-subnav {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0 0 1rem 1rem;
    list-style: none;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .home-preview-shell .home-preview-header .home-preview-header__mobile-subnav a {
    display: block;
    padding: 0.75rem 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    color: #18181b; /* zinc-900 — clickable, not disabled */
    text-decoration: none;
    text-shadow: none;
    border-bottom: none;
    min-height: auto;
  }

  .home-preview-shell .home-preview-header .home-preview-header__mobile-subnav a:hover,
  .home-preview-shell .home-preview-header .home-preview-header__mobile-subnav a:focus-visible {
    color: #000000;
  }

  .home-preview-shell .home-preview-header .home-preview-header__mobile-item--secondary {
    border-bottom: none;
  }

  .home-preview-shell .home-preview-header .home-preview-header__mobile-item--section-start {
    padding-top: 2rem;
  }

  .home-preview-shell .home-preview-header .home-preview-header__mobile-item--cta {
    border-bottom: none;
    padding-top: 2rem;
    margin-top: auto;
  }

  .home-preview-shell .home-preview-header .home-preview-header__mobile-cta,
  .home-preview-shell .home-preview-header .home-preview-header__mobile-cta:hover,
  .home-preview-shell .home-preview-header .home-preview-header__mobile-cta:focus-visible {
    display: block;
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 0;
    background: #111111;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
  }
}

/* ============================================================
   DESKTOP HEADER — >= 1024px (production nav parity)
   ============================================================ */
@media (min-width: 1024px) {
  .home-preview-shell .home-preview-header .elz-header__menu-toggle {
    display: none;
  }

  .home-preview-shell .home-preview-header .home-preview-header__mobile-actions {
    display: none;
  }

  .home-preview-shell .home-preview-header .home-preview-header__mobile-nav {
    display: none;
  }

  .home-preview-shell .home-preview-header .home-preview-header__desktop-cluster {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
    position: relative;
    z-index: 51;
    flex-shrink: 0;
  }

  .home-preview-shell .home-preview-header .home-preview-header__desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .home-preview-shell .home-preview-header .home-preview-header__desktop-nav a {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: var(--hero-text-shadow);
    transition: color 180ms var(--hero-ease);
  }

  .home-preview-shell .home-preview-header .home-preview-header__desktop-nav a:hover,
  .home-preview-shell .home-preview-header .home-preview-header__desktop-nav a:focus-visible {
    color: #ffffff;
  }

  .home-preview-shell .home-preview-header .home-preview-header__desktop-nav .home-preview-header__desktop-group summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: var(--hero-text-shadow);
    padding: 0;
    min-height: auto;
    list-style: none;
    cursor: pointer;
  }

  .home-preview-shell .home-preview-header .home-preview-header__desktop-nav .home-preview-header__desktop-group summary::-webkit-details-marker {
    display: none;
  }

  .home-preview-shell .home-preview-header .home-preview-header__desktop-nav .home-preview-header__desktop-group summary::after {
    content: none;
    display: none;
  }

  .home-preview-shell .home-preview-header .home-preview-header__desktop-nav .home-preview-header__desktop-group summary:hover,
  .home-preview-shell .home-preview-header .home-preview-header__desktop-nav .home-preview-header__desktop-group[open] summary {
    color: #ffffff;
  }

  .home-preview-shell .home-preview-header .home-preview-header__desktop-nav .home-preview-header__desktop-group .elz-nav-group__panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 60;
    min-width: 12rem;
    padding: 0.75rem;
    border: 1px solid var(--hero-hairline);
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  }

  .home-preview-shell .home-preview-header .home-preview-header__desktop-nav .home-preview-header__desktop-group .elz-nav-group__panel a {
    color: var(--hero-ink);
    text-shadow: none;
  }

  .home-preview-shell .home-preview-header .home-preview-header__mobile-menu {
    display: none;
  }
}

/* ============================================================
   TABLET — 768px to 1023px
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  .dynamic-hero__stage {
    min-height: clamp(560px, 76vh, 720px);
    padding-inline: var(--hero-shell-gutter);
  }

  .home-preview-page .dynamic-hero__stage {
    min-height: 100svh;
    padding-inline: var(--space-6, 1.5rem);
  }
}

/* ============================================================
   DESKTOP — >= 1024px (CSS grid, no absolute columns)
   ============================================================ */
@media (min-width: 1024px) {
  .dynamic-hero__stage {
    position: relative;
    min-height: min(88vh, 820px);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--hero-content-gap);
    align-items: end;
    padding:
      calc(var(--home-header-h) + var(--hero-left-bottom))
      var(--hero-shell-gutter)
      var(--hero-register-bottom);
  }

  .dynamic-hero__cinema {
    position: absolute;
    inset: 0;
  }

  .dynamic-hero__left-column {
    position: relative;
    width: auto;
    max-width: 38rem;
    bottom: auto;
    left: auto;
  }

  .dynamic-hero__register-wrap {
    display: block;
    position: relative;
    width: auto;
    max-width: var(--hero-register-width);
    justify-self: end;
    right: auto;
    bottom: auto;
  }
}

/* Intermediate desktop/tablet — H1 reads slightly oversized here since the
   general clamp is already pinned near its ceiling by ~1090px; ease it back
   ~5% without touching the large-desktop (>=1280px) scale. */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .dynamic-hero__title {
    font-size: clamp(2.875rem, 5.15vw, 3.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dynamic-hero__image {
    animation: none;
    transform: none !important;
  }

  .home-preview-shell .home-preview-header {
    transition: none;
  }
}

/* ——— Header over light page sections (scroll past hero) ——— */
.home-preview-shell .home-preview-header.is-over-light {
  background: var(--elz-white, #ffffff);
  border-bottom-color: var(--elz-kingly, #dedede);
}

.home-preview-shell .home-preview-header.is-over-light .elz-header__logo,
.home-preview-shell .home-preview-header.is-over-light .lang-switch,
.home-preview-shell .home-preview-header.is-over-light .lang-switch a {
  color: var(--elz-black, #0f0f0f);
  -webkit-text-fill-color: var(--elz-black, #0f0f0f);
  text-shadow: none;
}

.home-preview-shell .home-preview-header.is-over-light .lang-switch a[aria-current="true"] {
  color: var(--elz-black, #0f0f0f);
}

@media (hover: hover) and (pointer: fine) {
  .home-preview-shell .home-preview-header.is-over-light .lang-switch a:hover {
    color: var(--elz-black, #0f0f0f);
  }
}

.home-preview-shell .home-preview-header.is-over-light a.home-preview-header__cta--primary,
.home-preview-shell .home-preview-header.is-over-light a.home-preview-header__cta--primary:is(:link, :visited, :hover, :active, :focus, :focus-visible) {
  border-color: transparent;
}

@media (max-width: 1023px) {
  .home-preview-shell .home-preview-header.is-over-light .elz-header__menu-toggle {
    color: var(--elz-black, #0f0f0f);
    text-shadow: none;
  }
}

@media (min-width: 1024px) {
  .home-preview-shell .home-preview-header.is-over-light .home-preview-header__desktop-nav a,
  .home-preview-shell .home-preview-header.is-over-light .home-preview-header__desktop-nav .home-preview-header__desktop-group summary {
    color: var(--elz-black, #0f0f0f);
    -webkit-text-fill-color: var(--elz-black, #0f0f0f);
    text-shadow: none;
  }

  .home-preview-shell .home-preview-header.is-over-light .home-preview-header__desktop-nav a:hover,
  .home-preview-shell .home-preview-header.is-over-light .home-preview-header__desktop-nav a:focus-visible,
  .home-preview-shell .home-preview-header.is-over-light .home-preview-header__desktop-nav .home-preview-header__desktop-group summary:hover,
  .home-preview-shell .home-preview-header.is-over-light .home-preview-header__desktop-nav .home-preview-header__desktop-group[open] summary {
    color: var(--elz-black, #0f0f0f);
  }

  .home-preview-shell .home-preview-header.is-over-light .home-preview-header__desktop-nav .home-preview-header__desktop-group .elz-nav-group__panel a {
    color: var(--hero-ink);
  }
}
