/* Natural layout is the complete, accessible final choice. Enhancement moves
   the original headings/service names; it never clones or replaces authored text. */
.gateway-page {
  --atelier-glass: rgba(143, 197, 203, 0.12);
  --atelier-edge: rgba(207, 241, 242, 0.65);
  --atelier-floor: rgba(8, 17, 22, 0.64);
  --atelier-surface: #233b44;
  --atelier-reflection: rgba(58, 214, 213, 0.12);
}
:root[data-theme="dark"] .gateway-page {
  /* Text, controls and page colour inherit the shared branch-page palette. */
  --atelier-floor: rgba(3, 13, 18, 0.68);
  --atelier-surface: #203940;
}
[data-theme="light"] .gateway-page {
  --atelier-glass: rgba(186, 214, 216, 0.32);
  --atelier-edge: rgba(245, 255, 255, 0.92);
  --atelier-floor: rgba(38, 73, 79, 0.2);
  --atelier-surface: #49646a;
  --atelier-reflection: rgba(0, 127, 145, 0.12);
}
.gateway-page .gateway {
  --hero-open: 0;
  --copy-reveal: 1;
  --title-alpha: 1;
  --title-scale: 1;
  --action-alpha: 1;
  position: relative;
}
.gateway__viewport {
  position: relative;
  min-height: 100svh;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  overflow: clip;
  background: var(--page);
}
/* The same branch-page vectors behind the static/reduced-motion presentation.
   WebGL draws them below its objects; this layer never overlays model faces. */
.gateway__viewport > .ambient-backdrop {
  position: absolute;
  z-index: 0;
}
/* The studio already supplies the glow. A second CSS glow would reveal the
   rectangular page-colour backgrounds of the static offer images. */
.gateway__viewport > .ambient-backdrop .ambient-backdrop__glow { display: none; }
.gateway[data-hero-motion="active"] { height: calc(var(--hero-height) + var(--hero-travel)); }
.gateway[data-hero-motion="active"] .gateway__viewport { position: sticky; top: var(--hero-sticky-top, 0px); }
/* Paint to the screen edges while keeping navigation clear of Safari's safe
   areas. The scene retains its stable svh size when browser controls move. */
.gateway-page .gateway-header {
  top: calc(1.25rem + env(safe-area-inset-top, 0px));
  left: max(24px, 4.5vw, calc(16px + env(safe-area-inset-left, 0px)));
  right: max(24px, 4vw, calc(16px + env(safe-area-inset-right, 0px)));
}
.gateway-menu nav { max-height: calc(100svh - 6rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
/* The owner's reference uses one quiet horizontal masthead at the left. */
.gateway-page .brand-lockup {
  top: 1.5rem;
  left: max(24px, 4.5vw);
  width: auto;
  max-width: calc(100% - 11rem);
  flex-direction: row;
  gap: 0.7rem;
  transform: none;
}
.gateway-page .brand-lockup__mark { width: 2.65rem; height: 2.65rem; flex: 0 0 auto; }
.gateway-page .brand-lockup__name {
  color: var(--ink);
  max-width: 8rem;
  font-size: var(--type-brand-size);
  font-weight: var(--type-brand-weight);
  letter-spacing: var(--type-brand-tracking);
  line-height: var(--type-brand-leading);
  white-space: normal;
}
.gateway-page .gateway-privacy {
  top: 1.25rem;
  right: calc(max(24px, 4vw) + 3.75rem);
  left: auto;
  font-size: 0.8rem;
  text-decoration: none;
}
.gateway-page .gateway-privacy:hover { text-decoration: underline; }
.gateway-page .theme-toggle {
  top: 1.25rem;
  right: max(24px, 4vw);
  border-color: color-mix(in srgb, var(--ink-soft) 58%, transparent);
  background: transparent;
}
.hero-scene {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  min-height: 32rem;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}
.hero-scene canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.gateway-panel__visual-space {
  position: absolute;
  top: calc(7rem - max(62svh, 26rem));
  left: 0;
  width: 100%;
  height: calc(max(58svh, 26rem) - 8rem);
  pointer-events: none;
  user-select: none;
}
.hero-scene__fallback { position: absolute; inset: 0; }
.hero-poster { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
.hero-poster > img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; }
.hero-poster--light { display: none; }
[data-theme="light"] .hero-poster--dark { display: none; }
[data-theme="light"] .hero-poster--light { display: block; }
.hero-scene__poster { display: none; position: absolute; inset: 0; overflow: hidden; }
/* The initial HTML contains only captures of the current physical scene.
   Loading joins the same scroll timeline; no obsolete CSS illustration exists. */
[data-hero-renderer="loading"][data-hero-motion="active"] .hero-scene__poster {
  display: block;
  opacity: var(--loading-arrival-alpha, 1);
}
[data-hero-renderer="loading"][data-hero-motion="active"] .hero-scene__fallback {
  opacity: var(--loading-offer-alpha, 0);
}
[data-hero-renderer="webgl"] .hero-scene__fallback { display: none; }
[data-hero-renderer="webgl"] .gateway-panel__visual-space { display: none; }
.gateway-page .gateway__panels {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 100svh;
  padding-top: max(62svh, 26rem);
  padding-bottom: 2.5rem;
  overflow: visible;
  background: none;
}
.gateway-page .gateway-panel {
  display: flex;
  justify-content: center;
  min-height: 0;
  overflow: visible;
  isolation: auto;
  z-index: auto;
}
.gateway-page .gateway-panel::before, .gateway-page .gateway-panel::after { display: none; }
.gateway-page .gateway-panel__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: min(calc(100% - 6rem), 35rem);
  padding: 0;
  gap: 1rem;
}
.gateway-page .gateway-panel__copy {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  align-items: start;
  gap: 0 0.65rem;
}
.gateway-page .gateway-panel__eyebrow {
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  color: var(--accent-strong);
  font-size: var(--type-label-size);
  font-weight: var(--type-label-weight);
  letter-spacing: var(--type-label-tracking);
  line-height: var(--type-label-leading);
}
.gateway-page .gateway-panel__symbol { grid-column: 1; grid-row: 1; margin: 0; }
.gateway-page .gateway-panel__symbol .di-icon { width: 1.25rem; height: 1.25rem; }
.gateway-page .gateway-panel__title {
  grid-column: 1 / -1;
  max-width: none;
  min-height: 0;
  margin: 0.8rem 0 0;
  font-size: var(--type-title-size);
  font-weight: var(--type-heading-weight);
  line-height: var(--type-title-leading);
  letter-spacing: var(--type-title-tracking);
  transform-origin: left top;
}
.gateway-page .gateway-panel__body {
  grid-column: 1 / -1;
  max-width: 30rem;
  margin-top: 0.85rem;
  font-size: var(--type-intro-size);
  font-weight: 400;
  letter-spacing: normal;
  line-height: var(--type-body-leading);
}
.gateway-page .capability-list { margin-top: auto; gap: 0.3rem 0.65rem; }
.gateway-page .capability-list li {
  min-height: 0;
  padding: 0.2rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: var(--type-label-size);
  font-weight: var(--type-label-weight);
  letter-spacing: var(--type-label-tracking);
  line-height: var(--type-label-leading);
}
.gateway-page .gateway-panel__cta {
  position: relative;
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-self: flex-start;
  margin-top: 0.5rem;
  min-height: 3rem;
  padding: 0.65rem 1.2rem;
  gap: 0.6rem;
  font-size: var(--type-action-size);
  font-weight: var(--type-action-weight);
  line-height: var(--type-action-leading);
  letter-spacing: normal;
  transform-origin: left top;
}
.gateway-page .gateway-panel__cta.explore-fill {
  box-shadow: none;
}
/* Centre the label + arrow as one group, including the white hover layer. */
.gateway-page .gateway-panel__cta > .explore-fill__overlay { display: flex; }
.gateway-page .gateway-panel__cta svg { width: 12px; height: 12px; min-width: 12px; }
/* Losing the renderer restores reachable choices immediately, without tweening
   the arrival buttons across the now-static service columns. */
.gateway[data-hero-renderer="fallback"] .gateway-panel .gateway-panel__cta {
  transition: none;
}
/* Original service names are visible below their illustrations at arrival.
   Explore controls appear only alongside the full final descriptions. */
[data-hero-motion="active"] .gateway-panel { pointer-events: none; }
[data-hero-motion="active"] .gateway-panel__title {
  width: var(--title-width, auto);
  height: var(--title-height, auto);
  transform: translate3d(var(--title-x, 0px), var(--title-y, 0px), 0) scale(var(--title-scale));
  opacity: var(--title-alpha);
  pointer-events: var(--title-pointer, auto);
}
[data-hero-motion="active"] .gateway-panel--systems .gateway-panel__title { color: var(--intro-systems-ink, var(--ink)); }
.gateway[data-hero-motion="active"] .gateway-panel .gateway-panel__cta {
  transform: translateY(var(--offer-y, 0px));
  opacity: var(--action-alpha);
  pointer-events: var(--action-pointer, auto);
  transition: none;
}
[data-hero-motion="active"] :is(.gateway-panel__body, .capability-list) {
  opacity: var(--copy-reveal);
  transform: translateY(calc((1 - var(--copy-reveal)) * 18px + var(--offer-y, 0px)));
  pointer-events: var(--details-pointer, auto);
}
[data-hero-motion="active"] :is(.gateway-panel__eyebrow, .gateway-panel__symbol) {
  text-align: left;
  transform: translate3d(var(--label-x, 0px), var(--label-y, 0px), 0);
  pointer-events: auto;
}
[data-hero-motion="active"] .gateway-panel__symbol {
  animation: none;
  opacity: var(--icon-visible, 0);
}
[data-hero-motion="active"] .gateway-panel__symbol :is(path, circle) {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--icon-draw, 0));
}
.hero-scroll { display: none; }
[data-hero-motion="active"] .hero-scroll {
  position: absolute;
  z-index: 3;
  top: var(--scroll-y, 70svh);
  left: var(--scroll-x, calc(50% - 24px));
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: none;
  color: var(--ink);
  background: transparent;
  opacity: var(--scroll-alpha, 1);
  visibility: var(--scroll-visibility, visible);
  text-decoration: none;
}
.hero-scroll svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.5; }
.hero-scroll:hover { color: var(--accent); }
.hero-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[data-hero-motion="active"] .gateway-panel--digital .gateway-panel__title {
  max-width: var(--digital-title-width, none);
  height: var(--digital-title-height, auto);
}
.gateway[data-hero-measuring] .gateway-panel__title { max-width: none !important; width: auto !important; height: auto !important; }
.gateway[data-hero-measuring] :is(.gateway-panel__title, .gateway-panel__cta, .gateway-panel__eyebrow, .gateway-panel__symbol) { transform: none !important; transition: none !important; }
.gateway[data-hero-motion="active"] .gateway-panel:focus-visible { outline: none; box-shadow: none; }
.gateway[data-hero-motion="active"] .gateway-panel:focus-visible .gateway-panel__cta { outline: 3px solid var(--accent-strong); outline-offset: 5px; }
@media (max-width: 1000px) {
  .gateway-page .gateway-panel__content { width: calc(100% - 3rem); }
}
@media (max-width: 700px) {
  .gateway-page .brand-lockup__mark { width: 2.25rem; height: 2.25rem; }
  .gateway-page .brand-lockup__name { max-width: 7rem; font-size: var(--type-brand-small); }
}
@media (max-width: 599px) {
  .gateway-page .gateway-header {
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: calc(16px + env(safe-area-inset-left, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
  }
  .hero-scene__poster,
  .gateway__viewport > .ambient-backdrop {
    mask-image: linear-gradient(transparent, #000 64px, #000 calc(100% - 64px), transparent);
  }
  [data-hero-motion="active"] .hero-scroll { top: calc(var(--scroll-y) - env(safe-area-inset-bottom, 0px)); }
  .gateway-page .brand-lockup { top: 20px; left: 16px; max-width: calc(100% - 160px); gap: 8px; }
  .gateway-page .brand-lockup__name { min-width: 0; }
  .gateway-page .gateway-privacy { top: 12px; right: 70px; min-width: 44px; min-height: 44px; font-size: 0.6875rem; }
  .gateway-page .theme-toggle { top: 12px; right: 16px; width: 44px; height: 44px; }
  .hero-scene { min-height: 0; }
  .gateway-page .gateway__panels { grid-template-columns: minmax(0, 1fr); padding-top: 84px; padding-bottom: 2rem; row-gap: 2.75rem; }
  .gateway-page .gateway-panel { flex-direction: column; align-items: center; justify-content: flex-start; }
  .gateway-page .gateway-panel__visual-space { position: relative; top: auto; left: auto; display: block; width: calc(100% - 24px); height: clamp(240px, 68vw, 360px); flex: 0 0 auto; }
  .gateway-page .gateway-panel__content { width: calc(100% - 40px); max-width: 32rem; gap: 1rem; }
  .gateway-page .gateway-panel__copy { grid-template-columns: 1.1rem minmax(0, 1fr); column-gap: 0.5rem; }
  .gateway-page .gateway-panel__eyebrow { min-height: 0; }
  .gateway-page .gateway-panel__symbol .di-icon { width: 1.1rem; height: 1.1rem; }
  .gateway-page .gateway-panel__title { font-size: clamp(2rem, 8vw, 2.65rem); min-height: 0; margin-top: 0.65rem; }
  .gateway-page .capability-list { gap: 0.35rem 0.7rem; }
  .gateway-page .capability-list li { padding: 0.2rem 0; min-height: 1rem; }
}
@media (max-width: 599px) {
  .hero-scene__poster .hero-poster > img {
    height: auto;
    aspect-ratio: 390 / 844;
    object-fit: fill;
    transform: translateY(var(--poster-mobile-y, 0px));
  }
  .gateway[data-hero-mobile-layout="side-by-side"] .gateway__panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    align-content: start;
    column-gap: 0;
  }
  .gateway[data-hero-mobile-layout="side-by-side"] .gateway-panel__visual-space {
    width: calc(100% - 12px);
    height: clamp(150px, 44vw, 205px);
  }
  .gateway[data-hero-mobile-layout="side-by-side"] .gateway-panel__content { width: calc(100% - 24px); flex: 1; gap: 1rem; }
  .gateway[data-hero-mobile-layout="side-by-side"] .gateway-panel__title { font-size: clamp(1.625rem, 6.67vw, 2rem); }
  .gateway[data-hero-mobile-layout="side-by-side"] .gateway-panel__eyebrow { min-height: 3em; width: 100%; max-width: 10rem; }
  .gateway[data-hero-mobile-layout="side-by-side"] .capability-list { gap: 0.4rem 0.45rem; }
}
@media (max-width: 359px) {
  .gateway-page .gateway-header { left: calc(12px + env(safe-area-inset-left, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); }
  .gateway-page .brand-lockup { left: 12px; }
  .gateway-page .gateway-privacy { right: 64px; font-size: 0.625rem; }
  .gateway-page .theme-toggle { right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .gateway[data-hero-motion="active"]:not([data-hero-motion-preference="scroll"]) { height: auto; }
  .gateway[data-hero-motion="active"]:not([data-hero-motion-preference="scroll"]) .gateway__viewport { position: relative; top: auto; }
}
