html:has(body.page-landing),
body.page-landing {
  background: var(--brand-page-bg);
}

/* Keep the local-only debug overlay out of landing-page visual review. */
.page-landing #djDebugToolbar,
.page-landing #djDebugToolbarHandle {
  display: none !important;
}

.page-landing,
.landing-hex-system,
.approach-page,
.about-page {
  --line-reveal-easing: var(--motion-ease);
  --landing-page-background: var(--brand-page-bg);
  --landing-page-text: var(--brand-text-primary);
  --landing-page-secondary: var(--brand-text-secondary);
  --landing-page-accent: var(--brand-accent);
  --landing-page-accent-hover: var(--brand-accent-hover);
  --hex-cream: #eee4c9;
  --hex-soft: #e5cf7a;
  --hex-gold: #d5b548;
  --hex-ochre: #b99939;
  --hex-neutral: #d8d0bd;
  --hex-inactive: var(--hex-cream);
  --hex-inactive-opacity: 1;
}

.landing-hex-system {
  background: var(--landing-page-background);
  color: var(--landing-page-text);
  isolation: isolate;
  overflow-x: clip;
  overflow-y: visible;
  position: relative;
}

.brand-hexagon {
  align-items: center;
  display: grid;
  isolation: isolate;
  justify-items: center;
  position: relative;
}

.brand-hexagon__form {
  display: block;
  height: 100%;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: -1;
}

.brand-hexagon__shape {
  fill: var(--brand-hexagon-fill, var(--hex-gold));
  pointer-events: auto;
  transition: fill var(--motion-polygon-morph-duration) var(--motion-ease);
}

/* Decorative forms that physically overlap share one real-alpha treatment.
   Opacity lives on each painted shape—not on the group—so text, labels and
   reveal controllers remain unaffected while intersections arise naturally
   from normal SVG compositing. */
[data-decorative-hexagon-overlap] {
  --decorative-hexagon-alpha: 0.88;
}

:root[data-theme="dark"] [data-decorative-hexagon-overlap] {
  --decorative-hexagon-alpha: 0.94;
}

[data-decorative-hexagon-overlap] .brand-hexagon__shape,
[data-decorative-hexagon-overlap] .landing-hero__octagon-base,
[data-decorative-hexagon-overlap] .landing-hero__octagon-rounded {
  fill-opacity: var(--decorative-hexagon-alpha);
}

.brand-hexagon__label {
  color: var(--brand-hexagon-ink, var(--brand-button-primary-ink));
  margin: 0;
  pointer-events: none;
  position: relative;
  text-align: center;
  z-index: 1;
}

.landing-hex-system__layout {
  box-sizing: border-box;
  column-gap: clamp(3rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(24rem, 42fr);
  margin: 0 auto;
  max-width: 81.25rem;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  width: 100%;
}

.landing-hex-system__content {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.landing-hex-system__visual-column {
  align-self: start;
  height: calc(100svh - 5.125rem);
  min-height: 36rem;
  position: sticky;
  top: 5.125rem;
}

@media (min-width: 768px) {
  .landing-hero {
    z-index: 1;
  }

  .landing-hex-system__visual-column {
    margin-left: 0;
    width: calc(
      100% + max(clamp(10rem, 14vw, 14rem), calc((100vw - 81.25rem) / 2 + 5rem))
    );
    z-index: 0;
  }

  .hexagon-pattern--desktop {
    transform: translate3d(4%, -11%, 0) scale(1.22);
    transform-origin: left center;
  }

  .landing-hex-system[data-hex-state="hero"] .hexagon-pattern--desktop,
  .landing-hex-system[data-hex-state="hero"]
    .hexagon-pattern--desktop
    .hexagon-pattern__hex {
    pointer-events: none;
  }
}

/* Tablets use the desktop composition with tighter tracks instead of falling
   back to the phone-only honeycomb. The visual remains sticky and animated,
   while both columns can shrink within the available inline space. */
@media (min-width: 768px) and (max-width: 1023px) {
  .landing-hex-system__layout {
    column-gap: clamp(1.25rem, 3vw, 2rem);
    grid-template-columns: minmax(0, 1.05fr) minmax(17rem, 0.95fr);
    padding-inline: clamp(1.5rem, 3vw, 2rem);
  }

  .landing-hex-system__visual-column {
    min-height: 32rem;
  }

  .hexagon-pattern--desktop {
    transform: translate3d(0, -7%, 0) scale(1.06);
    transform-origin: left center;
  }
}

/* Portrait tablets keep the established phone honeycomb as one continuous
   sticky layer across the landing system. JavaScript moves the existing node
   (it does not clone or remount it), while a same-sized spacer preserves the
   already approved hero composition. */
@media (min-width: 768px) and (max-width: 1279px) and (orientation: portrait) {
  .landing-hex-system {
    --landing-hero-shape-reveal-duration: 950ms;
    --landing-tablet-inline-gutter: clamp(1.5rem, 3vw, 2rem);
    --landing-hero-cell-half: clamp(3.2rem, 8.3vw, 3.8rem);
    --landing-hero-cell-size: clamp(6.75rem, 17vw, 8.125rem);
    --landing-hero-grid-step-half: clamp(3.2rem, 8.3vw, 3.8rem);
    --landing-hero-grid-step-x: calc(
      var(--landing-hero-grid-step-half) + var(--landing-hero-grid-step-half)
    );
    --landing-hero-grid-step-y: clamp(5.543rem, 14.376vw, 6.582rem);
    --landing-hero-grid-left: calc(
      50% - var(--landing-hero-cell-half) - var(--landing-hero-grid-step-x) - 1rem
      + var(--landing-tablet-visual-shift-x)
    );
    --landing-tablet-visual-shift-x: clamp(5rem, 12vw, 7.5rem);
    --landing-hero-grid-row-0: calc(
      var(--landing-hero-grid-row-1) - var(--landing-hero-grid-step-y)
    );
    --landing-hero-grid-row-1: 1.25rem;
    --landing-hero-grid-row-2: calc(
      var(--landing-hero-grid-row-1) + var(--landing-hero-grid-step-y)
    );
    --landing-hero-grid-row-3: calc(
      var(--landing-hero-grid-row-2) + var(--landing-hero-grid-step-y)
    );
    --landing-hero-grid-row-4: calc(
      var(--landing-hero-grid-row-3) + var(--landing-hero-grid-step-y)
    );
    --landing-hero-visual-gap: 0.75rem;
    --landing-hero-visual-height: calc(
      var(--landing-hero-grid-row-3)
      + var(--landing-hero-cell-size)
      + var(--landing-hero-visual-gap)
    );
  }

  .landing-hex-system__visual-column {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .landing-hero__tablet-visual-space {
    display: none;
  }

  .landing-hex-system.has-tablet-sticky-hero-visual
    .landing-hero__tablet-visual-space {
    display: block;
    flex: 0 0 var(--landing-hero-visual-height);
    height: var(--landing-hero-visual-height);
    min-height: 0;
    order: -1;
    pointer-events: none;
    width: 100%;
  }

  .landing-hex-system.has-tablet-sticky-hero-visual
    > .landing-hex-system__layout
    > .landing-hex-system__content {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .landing-hex-system.has-tablet-sticky-hero-visual
    > .landing-hex-system__layout
    > .landing-hex-system__visual-column {
    grid-column: 2;
    grid-row: 1;
  }

  .landing-hex-system.has-tablet-sticky-hero-visual
    > .landing-hex-system__layout
    > .landing-hero__mobile-octagons {
    align-self: start;
    grid-column: 1 / -1;
    grid-row: 1;
    left: 0;
    margin-inline: calc(50% - 50vw);
    position: sticky;
    top: 5.125rem;
    width: 100vw;
    z-index: 0;
  }

  .landing-principles__system {
    max-width: 48rem;
  }

  .landing-recognition__areas {
    max-width: 46rem;
  }
}

/* Landscape tablets retain the desktop geometry while using the phone hero's
   staggered entrance and scroll-driven corner morphing. These rules are
   intentionally bounded below the unchanged desktop breakpoint. */
@media (min-width: 768px) and (max-width: 1279px) and (orientation: landscape) {
  .landing-hex-system__layout {
    column-gap: clamp(1.5rem, 3vw, 2.5rem);
    grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
    padding-inline: clamp(1.5rem, 3vw, 2.5rem);
  }

  .landing-hex-system__visual-column {
    min-height: 30rem;
  }

  .hexagon-pattern--desktop {
    transform: translate3d(clamp(1.25rem, 3vw, 2rem), -7%, 0) scale(1.08);
    transform-origin: left center;
  }

  .js .landing-hex-system .hexagon-pattern--desktop .hexagon-pattern__hex {
    opacity: 0;
    transform: translateY(7px);
    transform-box: fill-box;
    transform-origin: center;
  }

  .js .landing-hex-system.has-tablet-hero-mobile-motion
    .hexagon-pattern--desktop
    .hexagon-pattern__hex {
    animation: landing-hero-octagon-enter
      var(--landing-hero-shape-reveal-duration, 950ms)
      var(--motion-ease)
      forwards;
    animation-delay: var(--landing-hero-random-reveal-delay, 160ms);
  }

  .js .landing-hex-system.has-tablet-hero-mobile-motion
    .hexagon-pattern--desktop
    .hexagon-pattern__hex--desktop-extension {
    --landing-hero-octagon-opacity: 0.72;
  }

  :root[data-theme="dark"]
    .js
    .landing-hex-system.has-tablet-hero-mobile-motion
    .hexagon-pattern--desktop
    .hexagon-pattern__hex--desktop-extension,
  :root.dark
    .js
    .landing-hex-system.has-tablet-hero-mobile-motion
    .hexagon-pattern--desktop
    .hexagon-pattern__hex--desktop-extension {
    --landing-hero-octagon-opacity: 0.78;
  }
}

@media (min-width: 768px) and (max-width: 1279px) and (orientation: landscape)
  and (prefers-reduced-motion: reduce) {
  .js .landing-hex-system .hexagon-pattern--desktop .hexagon-pattern__hex,
  .js .landing-hex-system.has-tablet-hero-mobile-motion
    .hexagon-pattern--desktop
    .hexagon-pattern__hex {
    animation: none;
    opacity: var(--landing-hero-octagon-opacity, 1);
    transform: none;
  }
}

.hexagon-pattern {
  height: 100%;
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

.landing-hex-system[data-hex-state="recognition"] .hexagon-pattern--desktop {
  opacity: 1;
}

.landing-hex-system[data-hex-state="recognition"] .hexagon-pattern--desktop .hexagon-pattern__hex {
  fill: var(--hex-inactive);
  opacity: var(--hex-inactive-opacity);
  pointer-events: auto;
}

.landing-hex-system.has-hero-recognition-progress
  .hexagon-pattern--desktop
  .hexagon-pattern__hex {
  fill: color-mix(
    in srgb,
    var(--hex-cream) var(--hero-recognition-source-weight, 100%),
    var(--hex-inactive) var(--hero-recognition-target-weight, 0%)
  );
  opacity: var(--hex-inactive-opacity);
}

.landing-hex-system.has-hero-recognition-progress
  .hexagon-pattern--desktop
  .hexagon-pattern__hex:is([data-hex-index="1"], [data-hex-index="10"]) {
  fill: color-mix(
    in srgb,
    var(--hex-soft) var(--hero-recognition-source-weight, 100%),
    var(--hex-inactive) var(--hero-recognition-target-weight, 0%)
  );
}

.landing-hex-system.has-hero-recognition-progress
  .hexagon-pattern--desktop
  .hexagon-pattern__hex[data-hex-index="3"] {
  fill: color-mix(
    in srgb,
    var(--hex-gold) var(--hero-recognition-source-weight, 100%),
    var(--hex-inactive) var(--hero-recognition-target-weight, 0%)
  );
}

.landing-hex-system.has-hero-recognition-progress
  .hexagon-pattern--desktop
  .hexagon-pattern__hex[data-hex-index="6"] {
  fill: color-mix(
    in srgb,
    var(--hex-ochre) var(--hero-recognition-source-weight, 100%),
    var(--hex-inactive) var(--hero-recognition-target-weight, 0%)
  );
}

.landing-hex-system.is-hero-recognition-transitioning
  .hexagon-pattern--desktop
  .hexagon-pattern__hex {
  transition: none;
}

/* Portrait tablets render the phone honeycomb geometry, but share the same
   scroll-linked hero-to-recognition colour interpolation as the desktop SVG.
   The source palette remains cell-specific; every cell resolves toward the
   common inactive tone through the existing progress variables. */
.landing-hex-system.has-tablet-hero-mobile-motion.has-hero-recognition-progress
  .landing-hero__honeycomb-cell {
  --landing-hero-octagon-fill: color-mix(
    in srgb,
    var(--hex-cream) var(--hero-recognition-source-weight, 100%),
    var(--hex-inactive) var(--hero-recognition-target-weight, 0%)
  );
}

.landing-hex-system.has-tablet-hero-mobile-motion.has-hero-recognition-progress
  .landing-hero__honeycomb-cell:is(
    .landing-hero__honeycomb-cell--1,
    .landing-hero__honeycomb-cell--2
  ) {
  --landing-hero-octagon-fill: color-mix(
    in srgb,
    var(--hex-soft) var(--hero-recognition-source-weight, 100%),
    var(--hex-inactive) var(--hero-recognition-target-weight, 0%)
  );
}

.landing-hex-system.has-tablet-hero-mobile-motion.has-hero-recognition-progress
  .landing-hero__honeycomb-cell--3 {
  --landing-hero-octagon-fill: color-mix(
    in srgb,
    var(--hex-gold) var(--hero-recognition-source-weight, 100%),
    var(--hex-inactive) var(--hero-recognition-target-weight, 0%)
  );
}

.landing-hex-system.has-tablet-hero-mobile-motion.has-hero-recognition-progress
  .landing-hero__honeycomb-cell--6 {
  --landing-hero-octagon-fill: color-mix(
    in srgb,
    var(--hex-ochre) var(--hero-recognition-source-weight, 100%),
    var(--hex-inactive) var(--hero-recognition-target-weight, 0%)
  );
}

.landing-hex-system.has-hero-recognition-progress
  .hexagon-pattern--mobile
  .hexagon-pattern__hex {
  fill: color-mix(
    in srgb,
    var(--hex-cream) var(--hero-recognition-source-weight, 100%),
    var(--hex-inactive) var(--hero-recognition-target-weight, 0%)
  );
}

.landing-hex-system.has-hero-recognition-progress
  .hexagon-pattern--mobile
  .hexagon-pattern__hex[data-hex-index="3"] {
  fill: color-mix(
    in srgb,
    var(--hex-gold) var(--hero-recognition-source-weight, 100%),
    var(--hex-inactive) var(--hero-recognition-target-weight, 0%)
  );
}

.landing-hex-system.is-hero-recognition-transitioning
  .hexagon-pattern--mobile
  .hexagon-pattern__hex {
  transition: none;
}

.landing-hex-system:not([data-hex-state="principles"]).is-recognition-understand-active
  .hexagon-pattern--desktop
  .hexagon-pattern__hex[data-hex-index="3"],
.landing-hex-system:not([data-hex-state="principles"]).is-recognition-build-active
  .hexagon-pattern--desktop
  .hexagon-pattern__hex[data-hex-index="6"] {
  fill: var(--hex-gold);
  opacity: 0.9;
}

.landing-hex-system:not([data-hex-state="principles"]).is-recognition-build-active
  .hexagon-pattern--desktop
  .hexagon-pattern__hex[data-hex-index="6"] {
  fill: var(--hex-ochre);
}

.landing-hex-system[data-hex-state="principles"] .hexagon-pattern--desktop {
  opacity: 1;
}

.landing-hex-system[data-hex-state="principles"]
  .hexagon-pattern--desktop
  .hexagon-pattern__hex {
  --principles-fill: var(--hex-inactive);
  fill: var(--principles-fill);
  opacity: var(--hex-inactive-opacity);
  pointer-events: auto;
}

.landing-hex-system.has-recognition-principles-progress:is(
    [data-hex-state="recognition"],
    [data-hex-state="principles"]
  )
  .hexagon-pattern--desktop
  .hexagon-pattern__hex {
  fill: var(--hex-inactive);
  opacity: var(--hex-inactive-opacity);
}

.landing-hex-system.has-recognition-principles-progress.is-recognition-understand-active:is(
    [data-hex-state="recognition"],
    [data-hex-state="principles"]
  )
  .hexagon-pattern--desktop
  .hexagon-pattern__hex[data-hex-index="3"] {
  fill: color-mix(
    in srgb,
    var(--hex-gold) var(--recognition-principles-source-weight, 100%),
    var(--hex-inactive) var(--recognition-principles-target-weight, 0%)
  );
  opacity: calc(0.9 + (var(--recognition-principles-progress, 0) * 0.1));
}

.landing-hex-system.has-recognition-principles-progress.is-recognition-build-active:is(
    [data-hex-state="recognition"],
    [data-hex-state="principles"]
  )
  .hexagon-pattern--desktop
  .hexagon-pattern__hex[data-hex-index="6"] {
  fill: color-mix(
    in srgb,
    var(--hex-ochre) var(--recognition-principles-source-weight, 100%),
    var(--hex-inactive) var(--recognition-principles-target-weight, 0%)
  );
  opacity: calc(0.9 + (var(--recognition-principles-progress, 0) * 0.1));
}

.landing-hex-system.is-recognition-principles-transitioning
  .hexagon-pattern--desktop
  .hexagon-pattern__hex,
.landing-hex-system.is-principles-releasing
  .hexagon-pattern--desktop
  .hexagon-pattern__hex {
  transition: none;
}

.landing-hex-system.is-principles-color-stage.is-principle-feel-active
  .hexagon-pattern--desktop
  .hexagon-pattern__hex[data-hex-index="2"],
.landing-hex-system.is-principles-color-stage.is-principle-shape-active
  .hexagon-pattern--desktop
  .hexagon-pattern__hex[data-hex-index="5"],
.landing-hex-system.is-principles-color-stage.is-principle-grow-active
  .hexagon-pattern--desktop
  .hexagon-pattern__hex[data-hex-index="10"] {
  --principles-fill: color-mix(
    in srgb,
    var(--hex-gold) var(--principles-active-weight, 100%),
    var(--hex-inactive) var(--principles-inactive-weight, 0%)
  );
  fill: var(--principles-fill);
  opacity: calc(0.9 + (var(--principles-release-progress, 0) * 0.1));
}

.landing-hex-system.is-principles-color-stage
  .hexagon-pattern--desktop
  .hexagon-pattern__hex:is(.is-hovered, .is-neighbour) {
  fill: var(--principles-fill);
}

.landing-hex-system.is-principles-color-stage
  .hexagon-pattern--desktop
  .hexagon-pattern__hex {
  --principles-fill: var(--hex-inactive);
  pointer-events: auto;
}

/* Portrait tablets keep the touch-driven sticky honeycomb, while reusing the
   same content-stage colour states as the desktop SVG. The compact tablet
   composition omits desktop cell 5, so its leftmost remaining third-row cell
   (cell 6) carries the corresponding Shape phase. */
@media (min-width: 768px) and (max-width: 1279px) and (orientation: portrait) {
  .landing-hex-system.has-tablet-hero-mobile-motion
    .landing-hero__honeycomb-cell
    :is(.landing-hero__octagon-base, .landing-hero__octagon-rounded) {
    transition: fill 720ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .landing-hex-system.has-tablet-hero-mobile-motion:not([data-hex-state="principles"]).is-recognition-understand-active
    .landing-hero__honeycomb-cell--3 {
    --landing-hero-octagon-fill: var(--hex-gold);
  }

  .landing-hex-system.has-tablet-hero-mobile-motion:not([data-hex-state="principles"]).is-recognition-build-active
    .landing-hero__honeycomb-cell--6 {
    --landing-hero-octagon-fill: var(--hex-ochre);
  }

  .landing-hex-system.has-tablet-hero-mobile-motion.has-recognition-principles-progress:is(
      [data-hex-state="recognition"],
      [data-hex-state="principles"]
    )
    .landing-hero__honeycomb-cell {
    --landing-hero-octagon-fill: var(--hex-inactive);
  }

  .landing-hex-system.has-tablet-hero-mobile-motion.has-recognition-principles-progress.is-recognition-understand-active:is(
      [data-hex-state="recognition"],
      [data-hex-state="principles"]
    )
    .landing-hero__honeycomb-cell--3 {
    --landing-hero-octagon-fill: color-mix(
      in srgb,
      var(--hex-gold) var(--recognition-principles-source-weight, 100%),
      var(--hex-inactive) var(--recognition-principles-target-weight, 0%)
    );
  }

  .landing-hex-system.has-tablet-hero-mobile-motion.has-recognition-principles-progress.is-recognition-build-active:is(
      [data-hex-state="recognition"],
      [data-hex-state="principles"]
    )
    .landing-hero__honeycomb-cell--6 {
    --landing-hero-octagon-fill: color-mix(
      in srgb,
      var(--hex-ochre) var(--recognition-principles-source-weight, 100%),
      var(--hex-inactive) var(--recognition-principles-target-weight, 0%)
    );
  }

  .landing-hex-system.has-tablet-hero-mobile-motion.is-principles-color-stage
    .landing-hero__honeycomb-cell {
    --landing-hero-octagon-fill: var(--hex-inactive);
  }

  .landing-hex-system.has-tablet-hero-mobile-motion[data-hex-state="principles"].is-principles-color-stage.is-principle-feel-active
    .landing-hero__honeycomb-cell--2,
  .landing-hex-system.has-tablet-hero-mobile-motion[data-hex-state="principles"].is-principles-color-stage.is-principle-shape-active
    .landing-hero__honeycomb-cell--6,
  .landing-hex-system.has-tablet-hero-mobile-motion[data-hex-state="principles"].is-principles-color-stage.is-principle-grow-active
    .landing-hero__honeycomb-cell--10 {
    --landing-hero-octagon-fill: color-mix(
      in srgb,
      var(--hex-gold) var(--principles-active-weight, 100%),
      var(--hex-inactive) var(--principles-inactive-weight, 0%)
    );
  }
}

@media (min-width: 768px) and (max-width: 1279px) and (orientation: portrait)
  and (prefers-reduced-motion: reduce) {
  .landing-hex-system.has-tablet-hero-mobile-motion
    .landing-hero__honeycomb-cell
    :is(.landing-hero__octagon-base, .landing-hero__octagon-rounded) {
    transition: none;
  }
}

.hexagon-pattern__canvas {
  display: block;
  height: 100%;
  overflow: visible;
  touch-action: pan-y;
  width: 100%;
}

.hexagon-pattern__hex {
  cursor: default;
  fill: var(--hex-cream);
  pointer-events: auto;
  stroke: color-mix(in srgb, var(--landing-page-background) 72%, transparent);
  stroke-linejoin: round;
  stroke-width: 3;
  transition: fill 720ms cubic-bezier(0.22, 1, 0.36, 1), opacity 720ms ease;
}

.hexagon-pattern__hex[data-tone="soft"] { fill: var(--hex-soft); }
.hexagon-pattern__hex[data-tone="gold"] { fill: var(--hex-gold); }
.hexagon-pattern__hex[data-tone="ochre"] { fill: var(--hex-ochre); }
.hexagon-pattern__hex[data-tone="neutral"] { fill: var(--hex-inactive); }

body.page-landing
  .landing-hex-system
  .hexagon-pattern--desktop
  .hexagon-pattern__hex--desktop-extension {
  opacity: 0.72;
}

:root[data-theme="dark"]
  body.page-landing
  .landing-hex-system
  .hexagon-pattern--desktop
  .hexagon-pattern__hex--desktop-extension,
:root.dark
  body.page-landing
  .landing-hex-system
  .hexagon-pattern--desktop
  .hexagon-pattern__hex--desktop-extension {
  opacity: 0.78;
}

.hexagon-pattern__hex.is-hovered {
  fill: #e0bb3f;
}

.hexagon-pattern__hex.is-neighbour {
  fill: color-mix(in srgb, var(--hex-gold) 72%, var(--hex-cream));
}

.hexagon-pattern--mobile .hexagon-pattern__hex {
  cursor: pointer;
}

.hexagon-pattern--mobile .hexagon-pattern__hex:focus-visible {
  outline: none;
  stroke: var(--landing-page-text);
  stroke-width: 5;
}

:root[data-theme="dark"] .landing-hex-system,
:root.dark .landing-hex-system,
:root[data-theme="dark"] .about-page,
:root.dark .about-page {
  --hex-cream: #5b5545;
  --hex-soft: #8f7d45;
  --hex-gold: #b79a42;
  --hex-ochre: #c5a84d;
  --hex-neutral: #4a4942;
}

@media (max-width: 767px) {
  .landing-hex-system__layout {
    display: block;
    max-width: 48rem;
    padding: 0 clamp(1.25rem, 6vw, 2.5rem);
  }

  .landing-hex-system__visual-column {
    display: none;
  }

  .hexagon-pattern--mobile {
    height: clamp(14rem, 60vw, 17rem);
  }

  .hexagon-pattern--mobile .hexagon-pattern__hex:nth-child(n + 8) {
    display: none;
  }

}

@media (max-width: 767px) {
  .hexagon-pattern--mobile {
    height: clamp(8.5rem, 40vw, 9.5rem);
    overflow: hidden;
    position: relative;
  }

  .hexagon-pattern--mobile .hexagon-pattern__canvas {
    height: auto;
    left: calc(50% + 0.45rem);
    position: absolute;
    top: 50%;
    transform: translate(-50%, -51.35%);
    width: clamp(23rem, 112vw, 26.25rem);
  }

  .hexagon-pattern--mobile .hexagon-pattern__hex {
    display: none;
    transform-box: fill-box;
    transform-origin: center;
  }

  .hexagon-pattern--mobile .hexagon-pattern__hex[data-hex-index="2"],
  .hexagon-pattern--mobile .hexagon-pattern__hex[data-hex-index="4"] {
    display: block;
    opacity: 0.82;
    transform: scale(0.75);
  }

  .hexagon-pattern--mobile .hexagon-pattern__hex[data-hex-index="3"] {
    display: block;
    opacity: 1;
    transform: scale(1.1);
  }

}

@media (max-width: 420px) {
  .landing-hex-system__layout {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hexagon-pattern,
  .hexagon-pattern__hex {
    transition: none;
  }
}
