/* ============================================================
   Memolotl theme overrides
   Loaded LAST (after main.css) so cascade order is deterministic.
   ============================================================ */

/* ---- Canonical site palette: one light theme on every device ---- */
:root,
[color-scheme="light"],
[color-scheme="dark"],
html[color-scheme="light"],
html[color-scheme="dark"] {
  color-scheme: only light;

  /* Brand primitives */
  --brand-bright: #FF2D92;
  --brand-paper: #F8F4EF;
  --brand-petal: #EC4899;
  --brand-coral: #FB7185;
  --brand-deep: #BE185D;

  /* Semantic tokens used throughout the site */
  --surface-page: var(--brand-paper);
  --surface-raised: #FFFDFC;
  --surface-bright: #FFFFFF;
  --surface-opposite: var(--brand-deep);
  --text-primary: var(--brand-petal);
  --text-secondary: var(--brand-deep);
  --text-muted: #9B4669;
  --text-faint: #E7CDD8;
  --text-on-opposite: #FFFFFF;
  --text-on-opposite-secondary: rgba(255, 255, 255, 0.82);
  --text-on-opposite-muted: rgba(255, 255, 255, 0.65);
  --text-on-opposite-faint: rgba(255, 255, 255, 0.5);

  /* Template aliases. Direct aliases prevent OS preferences, stale
     attributes, or stored settings from selecting a second palette. */
  --base: var(--surface-page);
  --base-rgb: 248, 244, 239;
  --base-tint: var(--surface-raised);
  --base-tint-rgb: 255, 253, 252;
  --base-bright: var(--surface-bright);
  --base-bright-rgb: 255, 255, 255;
  --accent: var(--brand-petal);
  --highlight: var(--brand-coral);
  --base-opp: var(--surface-opposite);
  --base-opp-rgb: 190, 24, 93;
  --t-bright: var(--text-primary);
  --t-medium: var(--text-secondary);
  --t-muted: var(--text-muted);
  --t-muted-extra: var(--text-faint);
  --t-opp-bright: var(--text-on-opposite);
  --t-opp-medium: var(--text-on-opposite-secondary);
  --t-opp-muted: var(--text-on-opposite-muted);
  --t-opp-muted-extra: var(--text-on-opposite-faint);
  --st-muted: #E7CDD8;
  --st-medium: #CF91AA;
  --st-bright: var(--brand-deep);

  /* Keep the vendor light/dark aliases equivalent for inherited rules. */
  --base--light: var(--surface-page);
  --base--dark: var(--surface-page);
  --base-rgb--light: 248, 244, 239;
  --base-rgb--dark: 248, 244, 239;
  --base-tint--light: var(--surface-raised);
  --base-tint--dark: var(--surface-raised);
  --base-tint-rgb--light: 255, 253, 252;
  --base-tint-rgb--dark: 255, 253, 252;
  --base-bright--light: var(--surface-bright);
  --base-bright--dark: var(--surface-bright);
  --base-bright-rgb--light: 255, 255, 255;
  --base-bright-rgb--dark: 255, 255, 255;
  --accent--light: var(--brand-petal);
  --accent--dark: var(--brand-petal);
  --highlight--light: var(--brand-coral);
  --highlight--dark: var(--brand-coral);
  --base-opp--light: var(--surface-opposite);
  --base-opp--dark: var(--surface-opposite);
  --base-opp-rgb--light: 190, 24, 93;
  --base-opp-rgb--dark: 190, 24, 93;
  --t-bright--light: var(--text-primary);
  --t-bright--dark: var(--text-primary);
  --t-medium--light: var(--text-secondary);
  --t-medium--dark: var(--text-secondary);
  --t-muted--light: var(--text-muted);
  --t-muted--dark: var(--text-muted);
  --t-muted-extra--light: var(--text-faint);
  --t-muted-extra--dark: var(--text-faint);
  --t-opp-bright--light: var(--text-on-opposite);
  --t-opp-bright--dark: var(--text-on-opposite);
  --t-opp-medium--light: var(--text-on-opposite-secondary);
  --t-opp-medium--dark: var(--text-on-opposite-secondary);
  --t-opp-muted--light: var(--text-on-opposite-muted);
  --t-opp-muted--dark: var(--text-on-opposite-muted);
  --t-opp-muted-extra--light: var(--text-on-opposite-faint);
  --t-opp-muted-extra--dark: var(--text-on-opposite-faint);
  --st-muted--light: #E7CDD8;
  --st-muted--dark: #E7CDD8;
  --st-medium--light: #CF91AA;
  --st-medium--dark: #CF91AA;
  --st-bright--light: var(--brand-deep);
  --st-bright--dark: var(--brand-deep);
}

/* ---- Splash / loader ---- */
/* Same pink gradient as the EN ↔ FR swipe (.lang-portal__disc), on the loader
   and on the reveal panel that sweeps away after it. */
.mxd-loader,
.mxd-page-transition {
  background: linear-gradient(180deg, rgb(239 116 60), rgb(215 53 120) 42%, rgb(215 53 120));
}

.mxd-loader {
  color: #fff9f4;
}
.mxd-loader__images { display: none !important; }

/* ---- Hero dataline: match @memolotl typography on the controls label ---- */
.hero-05-dataline__controls .mxd-socials-line__link {
  color: var(--t-bright);
}

/* ---- Full-viewport hero (Coming Soon) ---- */
.mxd-hero-fullheight .mxd-hero-05,
.mxd-hero-fullheight .mxd-hero-05__wrap {
  height: 100%;
  min-height: 100%;
}

.mxd-hero-fullheight .mxd-hero-05__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mxd-hero-fullheight .mxd-hero-05__top {
  padding-top: 0;
  padding-bottom: 0;
}

.mxd-hero-fullheight .mxd-hero-05__bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0 3rem 5.2rem;
}

@media only screen and (min-width: 768px) {
  .mxd-hero-fullheight .mxd-hero-05__bottom {
    padding: 0 6rem 5.2rem;
  }
}

@media only screen and (min-width: 1200px) {
  .mxd-hero-fullheight .mxd-hero-05__bottom {
    height: 3rem;
    padding: 0 6rem;
    margin-bottom: 3.7rem;
  }
}

@media only screen and (min-width: 1600px) {
  .mxd-hero-fullheight .mxd-hero-05__bottom {
    padding: 0 10rem;
  }
}

.page-coming-soon .mxd-page-content {
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
}

/* Landing hero: at least one viewport tall (Orisa /landing) */
.mxd-page-content:not(.page-coming-soon) .mxd-hero-section.mxd-hero-special {
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  height: auto;
  background-color: #f5e9dc;
}

@media only screen and (min-width: 1200px) {
  .mxd-page-content:not(.page-coming-soon) .mxd-hero-section.mxd-hero-special {
    height: auto;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
  }
}

.mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05,
.mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__wrap {
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
}

.mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__wrap {
  position: relative;
  isolation: isolate;
}

.mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-trail-transparent-wrapper {
  z-index: 0;
  pointer-events: none;
}

/* GSAP raises trail image z-index inline — cap so papercuts stay under hero copy */
.mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-trail-transparent-image {
  z-index: 1 !important;
}

.mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__top {
  position: relative;
  z-index: 2;
}

.mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__headline {
  position: relative;
  z-index: 1;
}

.mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__bottom {
  position: relative;
  z-index: 2;
}

/* Landing hero — phone & tablet (Orisa defaults assume desktop) */
.mxd-page-content:not(.page-coming-soon) .mxd-hero-section.mxd-hero-special.no-padding-desktop {
  padding-top: 0;
}

.mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  padding-inline: clamp(1.15rem, 4.2vw, 6rem);
}

.mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__top {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: clamp(5.25rem, 12vw, 8rem);
  padding-bottom: clamp(1.75rem, 5vw, 4rem);
}

.mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__headline {
  width: 100%;
  max-width: 100%;
}

.mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__headline h1 {
  font-size: clamp(2.65rem, 10.5vw, 4.6rem) !important;
  letter-spacing: -0.035em !important;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__eyebrow {
  margin-bottom: clamp(0.65rem, 2.5vw, 1.25rem);
  font-size: clamp(0.78rem, 2.6vw, 1.05rem);
  line-height: 1.35;
}

.mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__subheading {
  max-width: 100%;
  margin-top: clamp(0.65rem, 2.8vw, 1.1rem);
  padding-inline: 0.15rem;
  font-size: clamp(0.95rem, 3.6vw, 1.35rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__bottom {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  padding-bottom: clamp(1.5rem, 4.5vw, 3rem);
}

.mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__dataline {
  gap: 0.35rem;
  width: 100%;
  --hero-dataline-text-size: clamp(1rem, 3.2vw, 1.45rem);
  --hero-dataline-line-height: 1.35;
}

.mxd-page-content:not(.page-coming-soon) .mxd-hero-special .hero-05-dataline__socials {
  margin-bottom: clamp(0.65rem, 2vw, 1.25rem);
}

.mxd-page-content:not(.page-coming-soon) .mxd-hero-special .hero-05-dataline__socials .mxd-socials-line__link,
.mxd-page-content:not(.page-coming-soon) .mxd-hero-special .hero-05-dataline__socials .mxd-socials-line__link span,
.mxd-page-content:not(.page-coming-soon) .mxd-hero-special .hero-05-dataline__socials .mxd-scramble {
  font-size: var(--hero-dataline-text-size);
  line-height: var(--hero-dataline-line-height);
}

.mxd-page-content:not(.page-coming-soon) .mxd-hero-special .hero-05-dataline__caption {
  margin-bottom: clamp(0.85rem, 2.5vw, 1.5rem);
  font-size: var(--hero-dataline-text-size);
  line-height: var(--hero-dataline-line-height);
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.mxd-page-content:not(.page-coming-soon) .mxd-hero-special .hero-05-dataline__controls .btn-caption {
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
}

@media only screen and (min-width: 768px) and (max-width: 1199px) {
  .mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__top {
    padding-top: clamp(6.5rem, 10vw, 10rem);
    padding-bottom: clamp(2.5rem, 4vw, 5rem);
  }

  .mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__headline h1 {
    font-size: clamp(3.75rem, 7.2vw, 6.5rem) !important;
  }

  .mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__subheading {
    max-width: min(42rem, 94%);
    font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  }

  .mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__dataline {
    --hero-dataline-text-size: clamp(1.15rem, 2.4vw, 1.75rem);
    --hero-dataline-line-height: 1.35;
  }

  .mxd-page-content:not(.page-coming-soon) .mxd-hero-special .hero-05-dataline__caption {
    max-width: min(36rem, 92%);
  }
}

@media only screen and (max-width: 767px) {
  .mxd-page-content:not(.page-coming-soon) .mxd-hero-section.mxd-hero-special {
    min-height: auto;
  }

  .mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05,
  .mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__wrap {
    min-height: max(100svh, calc(var(--vh, 1vh) * 100));
  }
}

@media only screen and (min-width: 1200px) {
  .mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__top {
    padding-top: 0;
    padding-bottom: 0;
  }

  .mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__headline h1 {
    font-size: clamp(5rem, 9.5vw, 12rem) !important;
    letter-spacing: -0.04em !important;
    hyphens: manual;
    overflow-wrap: normal;
  }

  .mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__subheading {
    max-width: min(78rem, 92%);
    font-size: clamp(1.5rem, 1.8vw, 1.8rem);
  }

  .mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 0 6rem;
    margin-bottom: 3.7rem;
    padding-bottom: 0;
  }

  .mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__dataline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 2rem;
    height: auto;
    min-height: 3.6rem;
    text-align: initial;
    --hero-dataline-text-size: 1.35rem;
    --hero-dataline-line-height: 1.2;
  }

  .mxd-page-content:not(.page-coming-soon) .mxd-hero-special .hero-05-dataline__socials {
    justify-self: start;
    align-self: center;
    margin: 0;
  }

  .mxd-page-content:not(.page-coming-soon) .mxd-hero-special .hero-05-dataline__socials .mxd-socials-line {
    margin: 0;
  }

  .mxd-page-content:not(.page-coming-soon) .mxd-hero-special .hero-05-dataline__socials .mxd-socials-line__link {
    display: inline-flex;
    align-items: center;
    min-height: 3.6rem;
  }

  .mxd-page-content:not(.page-coming-soon) .mxd-hero-special .hero-05-dataline__caption {
    position: static;
    justify-self: center;
    align-self: center;
    width: auto;
    max-width: min(100%, 28rem);
    height: auto;
    margin: 0;
    transform: none !important;
    text-align: center;
    white-space: nowrap;
  }

  .mxd-page-content:not(.page-coming-soon) .mxd-hero-special .hero-05-dataline__controls {
    justify-self: end;
    align-self: center;
    margin: 0;
  }

  .mxd-page-content:not(.page-coming-soon) .mxd-hero-special .hero-05-dataline__controls .btn-line-icon-small {
    display: inline-flex;
    align-items: center;
    min-height: 3.6rem;
    margin: 0;
  }

  .mxd-page-content:not(.page-coming-soon) .mxd-hero-special .hero-05-dataline__controls .btn-caption {
    font-size: 1.35rem;
    line-height: 1.2;
  }
}

@media only screen and (min-width: 1600px) {
  .mxd-page-content:not(.page-coming-soon) .mxd-hero-special .mxd-hero-05__bottom {
    padding-inline: 10rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .mxd-page-content:not(.page-coming-soon)
    .mxd-hero-special.cursor-trail-transparent
    .mxd-trail-transparent-wrapper {
    opacity: 0.28;
  }
}

/* ---- Orisa Home 07 sec1: Memolotl palette ---- */
.sec-1-home-7.orisa-below-hero .sec-1-home-7__bg-left {
  background: var(--brand-petal);
}

.sec-1-home-7.orisa-below-hero .mxd-trail-transparent-wrapper {
  z-index: 3;
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__img-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  margin-top: 0;
  z-index: 1;
  overflow: hidden;
  background: transparent;
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__img-wrap .anim-zoomin {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  background: #f0b48a;
  container-type: size;
  container-name: orisa-mascot;
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__img-wrap .anim-zoomin picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/*
  Dynamic crop (desktop / tablet split):
  - Always fill the left panel (cover) — no pink letterboxing.
  - Always anchor to the right — mascot + cream pillar stay at the center split.
*/
.sec-1-home-7.orisa-below-hero .sec-1-home-7__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

@container orisa-mascot (max-aspect-ratio: 3/4) {
  .sec-1-home-7.orisa-below-hero .sec-1-home-7__img {
    object-position: 100% 50%;
  }
}

/* Text lives on the image surface — right half on desktop, full-bleed on mobile */
.sec-1-home-7.orisa-below-hero .sec-1-home-7__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 5rem) clamp(3rem, 5vw, 5.2rem);
  background: var(--brand-paper);
  overflow: hidden;
  min-width: 0;
  pointer-events: auto;
}

@media only screen and (min-width: 992px) {
  .sec-1-home-7.orisa-below-hero .sec-1-home-7__overlay {
    overflow: visible;
  }

  .sec-1-home-7.orisa-below-hero .sec-1-home-7__headline {
    overflow: visible;
  }
}

@media only screen and (max-width: 991px) {
  .sec-1-home-7.orisa-below-hero .sec-1-home-7__bg {
    display: none;
  }

  .sec-1-home-7.orisa-below-hero .sec-1-home-7__img-wrap .anim-zoomin {
    width: 100%;
    inset: 0;
  }

  .sec-1-home-7.orisa-below-hero .sec-1-home-7__img {
    object-fit: cover;
    object-position: right center;
  }

  .sec-1-home-7.orisa-below-hero .sec-1-home-7__overlay {
    left: 0;
    width: 100%;
    background: transparent;
    min-height: 100%;
  }

  .sec-1-home-7.orisa-below-hero .sec-1-home-7__headline-wrap,
  .sec-1-home-7.orisa-below-hero .sec-1-home-7__dataline {
    z-index: 1;
  }

  /* Mobile + tablet: only @memolotl */
  .sec-1-home-7.orisa-below-hero .sec-1-home-7__dataline-center,
  .sec-1-home-7.orisa-below-hero .sec-1-home-7__dataline-right {
    display: none;
  }

  /* Tablet: white @memolotl over the image */
  .sec-1-home-7.orisa-below-hero .sec-1-home-7__dataline .mxd-socials-line__link,
  .sec-1-home-7.orisa-below-hero .sec-1-home-7__dataline .mxd-socials-line__link span {
    color: #fff !important;
  }

  /* No papercut cursor trail on mobile */
  .sec-1-home-7.orisa-below-hero .mxd-trail-transparent-wrapper,
  .sec-1-home-7.orisa-below-hero .mxd-trail-transparent-image {
    display: none !important;
  }
}

@media only screen and (max-width: 767px) {
  /* Small phones: pink @memolotl to match the headline */
  .sec-1-home-7.orisa-below-hero .sec-1-home-7__dataline .mxd-socials-line__link,
  .sec-1-home-7.orisa-below-hero .sec-1-home-7__dataline .mxd-socials-line__link span {
    color: #FF2D92 !important;
  }
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__bg-right {
  background: var(--brand-paper);
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__headline-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: clamp(4rem, 12vh, 10rem);
  overflow: visible;
  container-type: inline-size;
  container-name: orisa-headline;
}

@media only screen and (min-width: 992px) {
  .sec-1-home-7.orisa-below-hero .sec-1-home-7__headline-wrap {
    align-items: center;
    padding-top: 0;
  }
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__dataline {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 100%;
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__dataline-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 1.5rem;
  width: 100%;
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__dataline-left {
  justify-self: start;
  text-align: left;
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__dataline-center {
  justify-self: center;
  margin: 0;
  font: normal 700 clamp(1.6rem, 2.2vw, 2.4rem)/1.2 var(--_font-default);
  letter-spacing: -0.06rem;
  color: var(--t-bright);
  text-align: center;
  white-space: nowrap;
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__dataline-right {
  justify-self: end;
  text-align: right;
}

@media only screen and (max-width: 991px) {
  .sec-1-home-7.orisa-below-hero .sec-1-home-7__dataline,
  .sec-1-home-7.orisa-below-hero .sec-1-home-7__dataline-row,
  .sec-1-home-7.orisa-below-hero .sec-1-home-7__dataline-left {
    width: 100%;
    text-align: center;
  }

  .sec-1-home-7.orisa-below-hero .sec-1-home-7__dataline-row {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-template-columns: none;
  }

  .sec-1-home-7.orisa-below-hero .sec-1-home-7__dataline-left {
    justify-self: center;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .sec-1-home-7.orisa-below-hero .sec-1-home-7__dataline .mxd-socials-line__link,
  .sec-1-home-7.orisa-below-hero .sec-1-home-7__dataline .mxd-socials-line__link span {
    display: inline-block;
    text-align: center;
    font-size: clamp(1.8rem, 4.5vw, 2.4rem);
    line-height: 1.3;
    letter-spacing: 0.06rem;
  }
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__coords,
.sec-1-home-7.orisa-below-hero .sec-1-home-7__desc,
.sec-1-home-7.orisa-below-hero .sec-1-home-7__proof-text,
.sec-1-home-7.orisa-below-hero .orisa-u-text-white {
  color: var(--text-on-opposite);
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__brackets,
.sec-1-home-7.orisa-below-hero .sec-1-home-7__brackets li {
  color: var(--text-on-opposite-secondary);
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__headline,
.sec-1-home-7.orisa-below-hero .sec-1-home-7__headline small {
  color: #FF2D92 !important;
  font-family: 'Manrope', sans-serif;
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__headline {
  text-transform: none;
  letter-spacing: -0.04em;
  /*
    Scale to the headline wrap width so “About to sail.” stays inside.
    ~10.5cqw keeps a ~14-char line within the container across breakpoints.
  */
  font-size: clamp(2.6rem, 10.5cqw, 10rem);
  line-height: 1.1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 0;
  text-align: left;
  overflow: visible;
  box-sizing: border-box;
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__headline-primary {
  display: block;
  white-space: nowrap;
  max-width: 100%;
  overflow: visible;
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__headline-primary .char,
.sec-1-home-7.orisa-below-hero .sec-1-home-7__headline small .char {
  display: inline-block;
}

/* Fallback when container query units aren’t available */
@supports not (font-size: 1cqw) {
  .sec-1-home-7.orisa-below-hero .sec-1-home-7__headline {
    font-size: clamp(2.6rem, 5.2vw, 10rem);
  }
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__headline small {
  display: block;
  font-size: 0.52em;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 100%;
  overflow: visible;
  padding-bottom: 0.08em;
}

@media only screen and (max-width: 991px) {
  .sec-1-home-7.orisa-below-hero .sec-1-home-7__overlay {
    padding-inline: clamp(1.2rem, 4vw, 2rem);
    overflow: visible;
  }

  .sec-1-home-7.orisa-below-hero .sec-1-home-7__headline-wrap {
    justify-content: center;
    text-align: center;
    overflow: visible;
  }

  .sec-1-home-7.orisa-below-hero .sec-1-home-7__headline {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Scales with wrap width so the line stays inside */
    font-size: clamp(4.2rem, 13cqw, 9rem);
    letter-spacing: -0.055em;
    overflow: visible;
    padding-bottom: 0.15em;
  }

  .sec-1-home-7.orisa-below-hero .sec-1-home-7__headline-primary,
  .sec-1-home-7.orisa-below-hero .sec-1-home-7__headline small {
    text-align: center !important;
    width: auto;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow: visible;
  }
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__headline-arrow {
  color: var(--brand-bright);
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__tag {
  color: var(--text-on-opposite);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__tag:hover {
  border-color: var(--brand-bright);
  background: rgba(255, 255, 255, 0.22);
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__cta-btn,
.sec-1-home-7.orisa-below-hero .sec-1-home-7__cta-arrow {
  background: var(--brand-bright);
  color: var(--text-on-opposite);
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__cta-btn:hover,
.sec-1-home-7.orisa-below-hero .sec-1-home-7__cta-arrow:hover {
  background: var(--text-on-opposite);
  color: var(--brand-deep);
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__avatar {
  border-color: var(--brand-coral);
}

.sec-1-home-7.orisa-below-hero .sec-1-home-7__star img {
  opacity: 0.85;
  filter: brightness(0) saturate(100%) invert(58%) sepia(69%) saturate(2878%) hue-rotate(307deg) brightness(101%) contrast(101%);
}

/* ---- Hero headline: solid pink, beats SplitText word/char wrappers ----
   GSAP SplitText wraps each word/line in nested <div>s, so we target
   every descendant of the headline to guarantee inheritance holds
   in every browser, regardless of cascade timing. */
.mxd-hero-05__headline h1,
.mxd-hero-05__headline h1 small,
.mxd-hero-05__headline h1 *,
.mxd-hero-05__headline h1 small * {
  color: #FF2D92 !important;
}

.mxd-hero-05__eyebrow {
  margin: 0 0 1.6rem;
  font: normal 600 1.3rem/1.4 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--t-medium);
}

.mxd-hero-05__headline h1,
.mxd-hero-05__headline h1 small {
  /* Enough box height for descenders (p, g, y); keep stack tight via small margin */
  line-height: 1.05;
  letter-spacing: -0.04em;
  overflow: visible;
}

/* Second headline line matches primary — one title, two lines */
.mxd-hero-05__headline h1 small {
  display: block;
  font-size: inherit !important;
  letter-spacing: inherit;
  color: #FF2D92 !important;
  margin-top: -0.1em;
  padding-bottom: 0.12em;
  overflow: visible;
}

.mxd-hero-05__headline h1 {
  font-size: clamp(5rem, 9.5vw, 12rem) !important;
  overflow: visible;
}

.mxd-hero-05__subheading {
  margin: 1rem auto 0;
  max-width: min(78rem, 92%);
  font: normal 500 clamp(1.5rem, 1.8vw, 1.8rem)/1.55 'Manrope', sans-serif;
  letter-spacing: -0.02em;
  color: var(--t-medium);
  text-align: center;
}

/* SplitText line masks — room for descenders, no permanent clip */
.mxd-hero-05__headline .line-mask,
.mxd-hero-05__headline h1 div {
  overflow: visible !important;
}

.mxd-hero-05__headline .line-mask {
  padding-bottom: 0.18em;
}

/* About manifest — tighter bottom padding for short headline */
.mxd-section-manifest.pre-list {
  padding-bottom: 4rem;
}
@media only screen and (min-width: 768px) {
  .mxd-section-manifest.pre-list {
    padding-bottom: 6rem;
  }
}
@media only screen and (min-width: 1200px) {
  .mxd-section-manifest.pre-list {
    padding-bottom: 7rem;
  }
}
@media only screen and (min-width: 1600px) {
  .mxd-section-manifest.pre-list {
    padding-bottom: 8rem;
  }
}

/* Divider hero: scroll-zoom */
.mxd-divider__video {
  overflow: hidden;
}

.mxd-divider__video .scroll-zoom-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform-origin: center center;
  will-change: transform;
}

/* ---- Reduce image overlays to a bare minimum ---- */
.mxd-cover,
.mxd-cover-06,
.mxd-cover-03 {
  opacity: 0.08 !important;
}

/* Pillar stack covers: subtle black, revealed with copy */
.mxd-stack-cards .card__cover,
.mxd-stack-cards .card__cover.cover-darken {
  background-color: rgba(0, 0, 0, 0.38);
  opacity: 0;
}

/* Pillar stack: title + subheading block */
.mxd-stack-cards .card__copy {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(88%, 56rem);
  text-align: center;
  z-index: 2;
}

.mxd-stack-cards .card__copy .card__title {
  position: static;
  transform: none;
  width: 100%;
  max-width: none;
  left: auto;
  top: auto;
}

.mxd-stack-cards .card__example {
  display: inline;
  padding: 0.15em 0.45em;
  border-radius: 0.45em;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: normal 600 1em/1.4 'JetBrains Mono', monospace;
  letter-spacing: -0.02em;
}

.mxd-stack-cards .card__example--block {
  display: inline-block;
  margin: 1.4rem 0 0;
  max-width: 100%;
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
}

/* Chip fill lives on the SplitText line so it reveals with the text */
.mxd-stack-cards .card__example--block .line {
  padding: 0.2em 0.55em;
  border-radius: 0.45em;
  background: rgba(255, 255, 255, 0.14);
}

.mxd-stack-cards .card__example--block .line-mask {
  overflow: hidden;
  padding-bottom: 0.28em;
  margin-bottom: -0.08em;
}

.mxd-stack-cards .card__subtitle {
  margin: 1.4rem auto 0;
  max-width: 42rem;
  font: normal 500 clamp(1.35rem, 1.7vw, 1.7rem)/1.5 'Manrope', sans-serif;
  letter-spacing: -0.02em;
  color: #fff;
}

.mxd-stack-cards .card__copy .line-mask {
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

/* Pillar marquee — tighter phrase + row spacing */
.mxd-stack-cards .marquee.marquee-stack {
  justify-content: center;
  gap: 0.4rem;
}

.mxd-stack-cards .marquee__item {
  padding-inline: 0.12em;
}

.mxd-stack-cards .marquee__text {
  letter-spacing: -0.03em;
}

/* CTA: Read Why button under headline */
.mxd-promo__caption {
  width: 100%;
  max-width: min(72em, 100%) !important;
  text-align: center;
}

.mxd-promo__caption h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(64px, 12vw, 168px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.mxd-promo__why {
  margin-top: 2.4rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mxd-promo__why .btn {
  cursor: pointer;
  margin-inline: auto;
}

/* Why an axolotl modal */
body.why-modal-open {
  overflow: hidden;
}

.why-modal[hidden] {
  display: none !important;
}

.why-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.why-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 18, 0.55);
  cursor: pointer;
}

.why-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 62rem);
  max-height: min(88vh, 78rem);
  overflow: auto;
  background: #f8f4ef;
  color: #1a1517;
  border-radius: 0;
  padding: 2.4rem 2.4rem 3rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.why-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.6rem;
  margin-bottom: 2rem;
}

.why-modal__title {
  margin: 0;
  font: normal 700 clamp(2.4rem, 4vw, 3.6rem)/1.15 'Manrope', sans-serif;
  letter-spacing: -0.04em;
  color: #1a1517;
}

.why-modal__close {
  flex: none;
  width: 3.6rem;
  height: 3.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: #1a1517;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

.why-modal__close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.why-modal__body {
  display: grid;
  gap: 1.6rem;
}

.why-modal__media {
  width: 100%;
  overflow: hidden;
}

.why-modal__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 28rem;
  object-fit: cover;
  object-position: center top;
}

.why-modal__p {
  margin: 0;
  font: normal 500 clamp(1.35rem, 1.7vw, 1.65rem)/1.55 'Manrope', sans-serif;
  letter-spacing: -0.02em;
  color: #3a3236;
}

.why-modal__example {
  display: inline;
  padding: 0.12em 0.4em;
  border-radius: 0.4em;
  background: rgba(255, 45, 146, 0.14);
  color: #ff2d92;
  font: normal 600 0.95em/1.4 'JetBrains Mono', monospace;
}

@media only screen and (max-width: 767px) {
  .why-modal {
    padding: 1.2rem;
    align-items: flex-end;
  }

  .why-modal__panel {
    max-height: 90vh;
    border-radius: 0;
    padding: 2rem 1.6rem 2.4rem;
  }
}

/* ---- Gradient placeholders (used until real imagery lands) ---- */
[data-mxd-placeholder] {
  background: linear-gradient(135deg, #EC4899 0%, #FB7185 50%, #F8F4EF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-mxd-placeholder]::after {
  content: attr(data-label);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(190, 24, 93, 0.35);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

img[data-mxd-placeholder] {
  position: relative;
}

/* ---- Dynamic nav: items fill .main-menu height; type scales with viewport ---- */
.mxd-menu__caption p {
  font-size: clamp(1.1rem, 1.35vh, 1.5rem);
  line-height: 1.35;
}

@media only screen and (min-width: 1200px) {
  .mxd-menu__left {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
  }

  .main-menu {
    --nav-count: 12;
    --nav-chrome: 22rem; /* top caption + bottom data reserve */
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    padding-top: 10rem;
    padding-bottom: 8rem;
  }

  .main-menu__content,
  .main-menu__accordion {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    width: 100%;
  }

  .main-menu__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding: 0;
  }

  .main-menu__toggle,
  .main-menu__link {
    height: 100%;
    min-height: 0;
  }

  .main-menu__link {
    gap: clamp(0.6rem, 1vh, 1.2rem);
  }

  .main-menu__number {
    font-size: clamp(0.95rem, 1.35vh, 1.3rem);
    line-height: 1;
  }

  .main-menu__caption {
    font-size: clamp(
      1.2rem,
      calc((100svh - var(--nav-chrome)) / var(--nav-count) * 0.42),
      2.8rem
    );
    line-height: 1.1;
    letter-spacing: -0.04em;
  }
}

@media only screen and (min-width: 1600px) {
  .main-menu {
    --nav-chrome: 24rem;
    padding-top: 11rem;
    padding-bottom: 9rem;
  }

  .main-menu__item {
    padding: 0;
  }

  .main-menu__caption {
    font-size: clamp(
      1.3rem,
      calc((100svh - var(--nav-chrome)) / var(--nav-count) * 0.44),
      3rem
    );
  }
}

/* Mobile / tablet: vh-scaled type; keep natural stack (scrollable) */
@media only screen and (max-width: 1199px) {
  .main-menu__item {
    padding: clamp(0.55rem, 1.2vh, 1rem) 0;
  }

  .main-menu__link {
    gap: 1rem;
  }

  .main-menu__number {
    font-size: clamp(1rem, 1.5vh, 1.25rem);
  }

  .main-menu__caption {
    font-size: clamp(1.4rem, 3.2vh, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
  }

  /* Tighter gap above the list; contact + legal links wrap into rows so the
     scroll below the list stays short. */
  .mxd-menu__caption {
    margin-bottom: 3.2rem;
  }

  .menu-contact {
    flex-flow: row wrap;
    gap: 1.6rem 3.2rem;
    margin-top: 4rem;
  }

  .mxd-menu__data {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.4rem 2rem;
  }

  .menu-data__right {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.6rem;
  }

  .main-menu__number {
    white-space: nowrap;
  }
}

/* Tablet: footer line pinned to the bottom (still scrolls if the viewport is
   too short); larger link type. */
@media only screen and (min-width: 768px) and (max-width: 1199px) {
  .mxd-menu__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas:
      'caption'
      'left'
      'right'
      'data';
  }

  .mxd-menu__caption {
    grid-area: caption;
  }

  .mxd-menu__left {
    grid-area: left;
    min-width: 0;
  }

  .mxd-menu__right {
    grid-area: right;
  }

  .mxd-menu__data {
    grid-area: data;
    align-self: end;
  }

  .main-menu__caption {
    font-size: clamp(2rem, 3.2vh, 4rem);
  }
}

/* Wide tablet: contact links move into a column beside the list. */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .mxd-menu__inner {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      'caption caption'
      'left right'
      'data data';
    column-gap: 6rem;
  }

  .menu-contact {
    flex-direction: column;
    gap: 2.8rem;
    margin-top: 0;
    padding-top: 1.2rem;
  }
}

/* ---- Language toggle + legal placeholder pages ---- */
.lang-toggle {
  --lang-text: #725d68;
  --lang-active: #341f2a;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--_font-accent, 'JetBrains Mono', monospace);
  font-size: max(0.75rem, 12px);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lang-toggle__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--lang-text);
  text-decoration: none;
  padding: 0.2rem 0.35rem;
  border-radius: 4px;
}

.lang-toggle__flag {
  display: inline-flex;
  flex-shrink: 0;
  width: 1.05rem;
  height: 0.7rem;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(52 31 42 / 12%);
}

.lang-toggle__flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lang-toggle__code {
  color: inherit;
  -webkit-text-fill-color: currentColor;
  line-height: 1;
}

.lang-toggle__link.is-active {
  color: var(--lang-active);
  font-weight: 700;
}

.lang-toggle__link:hover,
.lang-toggle__link:focus-visible {
  color: var(--lang-active);
}

.lang-toggle__link:focus-visible {
  outline: 2px solid var(--lang-active);
  outline-offset: 3px;
}

.lang-toggle__sep {
  color: var(--lang-text);
  user-select: none;
}

.legal-doc-body {
  min-width: 0;
  margin: 0;
  min-height: 100svh;
  background: var(--surface-page, #f8f4ef);
  color: var(--text-secondary, #be185d);
  font-family: var(--_font-default, 'Manrope', sans-serif);
}

.legal-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(190, 24, 93, 0.12);
}

.legal-doc-home {
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand-petal, #ec4899);
  text-decoration: none;
  font-size: 1.1rem;
}

.legal-doc-main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 4rem;
}

.legal-doc-banner {
  margin-bottom: 2rem;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.2);
}

.legal-doc-banner p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--brand-deep, #be185d);
}

.legal-doc__eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--_font-accent, 'JetBrains Mono', monospace);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t-medium, #9b4669);
}

.legal-doc h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.04em;
  color: var(--brand-petal, #ec4899);
}

.legal-doc__updated {
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  color: var(--t-medium, #9b4669);
}

.legal-doc h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.legal-doc p,
.legal-doc li {
  line-height: 1.6;
  font-size: 1rem;
}

.legal-doc a {
  color: var(--brand-petal, #ec4899);
}

.legal-doc-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid rgba(190, 24, 93, 0.12);
  font-size: 0.85rem;
}

.legal-doc-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal-doc-footer a {
  color: var(--brand-deep, #be185d);
  text-decoration: none;
}

.legal-doc-footer a:hover {
  color: var(--brand-petal, #ec4899);
}

.fr-placeholder-main {
  max-width: 36rem;
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 4vw, 3rem) 4rem;
  text-align: center;
}

.fr-placeholder__eyebrow {
  font-family: var(--_font-accent, 'JetBrains Mono', monospace);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t-medium, #9b4669);
}

.fr-placeholder-main h1 {
  margin: 0.75rem 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.04em;
  color: var(--brand-petal, #ec4899);
}

.fr-placeholder__lead {
  line-height: 1.6;
  color: var(--brand-deep, #be185d);
}

.fr-placeholder__status {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fr-placeholder__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.fr-placeholder__links a {
  color: var(--brand-petal, #ec4899);
  font-weight: 600;
}

.masthead__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.masthead__bar .lang-toggle {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.masthead__bar .lang-toggle__link {
  color: var(--lang-text);
}

.masthead__bar .lang-toggle__link.is-active {
  color: var(--lang-active);
}

.site-lang-toggle--layout {
  position: fixed;
  z-index: 100;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 253, 252, 0.92);
  border: 1px solid rgba(190, 24, 93, 0.12);
  box-shadow: 0 4px 16px rgba(190, 24, 93, 0.08);
}

/* Landing header: logo + utilities left, App Store tucked before fixed menu */
.mxd-header--landing {
  /* Header width in main.css already ends at the hamburger; reserve icon + breathing room only */
  --landing-menu-size: 5.5rem;
  --landing-menu-gap: 0.45rem;
  z-index: 12;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  box-sizing: border-box;
  padding-right: calc(var(--landing-menu-size) + var(--landing-menu-gap));
}

.mxd-header.mxd-header--landing {
  position: fixed;
  top: 0;
  left: 3rem;
  width: calc(100% - 11.5rem);
  padding-top: 3rem;
  padding-bottom: 0.85rem;
  transform: none;
  opacity: 1;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mxd-header.mxd-header--landing.is-hidden {
  transform: none;
  opacity: 1;
}

@media only screen and (min-width: 768px) {
  .mxd-header.mxd-header--landing {
    --landing-header-left: 6rem;
    left: 6rem;
    width: calc(100% - 17.5rem);
  }
}

@media only screen and (min-width: 1600px) {
  .mxd-header.mxd-header--landing {
    --landing-header-left: 10rem;
    left: 10rem;
    width: calc(100% - 25.5rem);
  }
}

/* Frosted full-width bar behind the header once the page is scrolled
   (app.js toggles .is-scrolled), so content stops colliding with the logo,
   pills and App Store link. Transparent at the top, over the hero. */
.mxd-header--landing::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: calc(-1 * var(--landing-header-left, 3rem));
  width: 100vw;
  background: rgb(248 244 239 / 86%);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 1px 0 rgb(52 31 42 / 6%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.mxd-header--landing.is-scrolled::before {
  opacity: 1;
}

html:has(.mxd-menu__hamburger.active) .mxd-header--landing::before {
  opacity: 0;
}

/* Keep the hamburger above the header's full-width bar. */
.mxd-menu__contain {
  z-index: 13;
}

.mxd-header--landing .landing-masthead__start {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.4rem);
  min-width: 0;
  flex: 0 1 auto;
}

.mxd-header--landing .landing-masthead__start .mxd-header__logo {
  flex: 0 1 auto;
  min-width: 0;
}

.mxd-header--landing .landing-masthead__start .memolotl-utility-controls {
  flex: 0 0 auto;
}

/* Hide logo, language/sound controls and the App Store button while the menu
   overlay is open. The hamburger gets .active on open (app.js); !important
   beats loading-fade's inline GSAP opacity. */
.mxd-header--landing .landing-masthead__start,
.mxd-header--landing .mxd-header__controls--store {
  transition:
    opacity 300ms ease,
    visibility 0s linear 0s;
}

html:has(.mxd-menu__hamburger.active) .mxd-header--landing .landing-masthead__start,
html:has(.mxd-menu__hamburger.active) .mxd-header--landing .mxd-header__controls--store {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 300ms ease,
    visibility 0s linear 300ms;
}

.mxd-header--landing .mxd-header__controls--store {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  margin-left: auto;
  padding-right: 0;
  gap: 0;
  color: var(--t-bright);
}

.mxd-header--landing .mxd-header__link--store {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 0.75rem;
  width: auto;
  max-width: none;
  overflow: visible;
}

.mxd-header--landing .mxd-header__link--store .btn-caption {
  flex: 0 1 auto;
  min-width: 0;
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
}

.mxd-header--landing .mxd-header__link--store i {
  flex: 0 0 auto;
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Orisa sets html { font-size: 62.5% }; size pills in px via this em anchor (not rem) */
.mxd-header--landing .memolotl-utility-controls.masthead__controls {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45em;
  font-size: 18px;
  color: #341f2a;
}

.mxd-header--landing .memolotl-utility-controls .utility-pill,
.mxd-header--landing .memolotl-utility-controls .sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 2.35em;
  padding: 0 0.85em;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.mxd-header--landing .memolotl-utility-controls .utility-pill {
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 62%);
  background: rgb(255 252 247 / 78%);
  box-shadow: 0 0.5em 1.5em rgb(52 31 42 / 8%);
  backdrop-filter: blur(0.75em) saturate(120%);
}

.mxd-header--landing .memolotl-utility-controls .lang-toggle {
  gap: 0.35em;
  font-family: var(--_font-accent, 'JetBrains Mono', monospace);
  font-size: 0.75em;
  font-weight: inherit;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: inherit;
}

.mxd-header--landing .memolotl-utility-controls .lang-toggle__link {
  gap: 0.35em;
  padding: 0;
  border-radius: 0;
  color: var(--lang-text);
  font-weight: inherit;
}

.mxd-header--landing .memolotl-utility-controls .lang-toggle__link.is-active,
.mxd-header--landing .memolotl-utility-controls .lang-toggle__link:hover,
.mxd-header--landing .memolotl-utility-controls .lang-toggle__link:focus-visible {
  color: var(--lang-active);
}

.mxd-header--landing .memolotl-utility-controls .lang-toggle__flag {
  width: 1.05em;
  height: 0.7em;
}

.mxd-header--landing .memolotl-utility-controls .lang-toggle__sep {
  color: var(--lang-text);
}

.mxd-header--landing .memolotl-utility-controls .sound-toggle {
  gap: 0.45em;
  overflow: hidden;
  color: #341f2a;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 999px;
  background: linear-gradient(135deg, rgb(255 255 255 / 62%), rgb(239 177 201 / 24%));
  box-shadow:
    0 0.75em 2.2em rgb(52 31 42 / 10%),
    inset 0 1px 0 rgb(255 255 255 / 82%);
  backdrop-filter: blur(1em) saturate(125%);
  cursor: pointer;
  font-family: inherit;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.mxd-header--landing .memolotl-utility-controls .sound-toggle:hover,
.mxd-header--landing .memolotl-utility-controls .sound-toggle:focus-visible {
  border-color: rgb(215 53 120 / 48%);
  box-shadow:
    0 1rem 2.6rem rgb(200 43 108 / 17%),
    inset 0 1px 0 rgb(255 255 255 / 92%);
  outline: none;
}

.mxd-header--landing .memolotl-utility-controls .sound-toggle:hover {
  animation: memolotl-sound-capsule-pop 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.mxd-header--landing .memolotl-utility-controls .sound-toggle:active {
  animation: none;
  transform: translateY(0) scale(0.97);
}

.mxd-header--landing .memolotl-utility-controls .sound-toggle__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  width: 1em;
  height: 1em;
  padding: 0.16em;
  border: 1px solid rgb(52 31 42 / 14%);
  border-radius: 999px;
  background: rgb(255 255 255 / 38%);
  transition: transform 240ms ease;
}

.mxd-header--landing .memolotl-utility-controls .sound-toggle:hover .sound-toggle__icon {
  transform: rotate(-8deg) scale(1.08);
}

.mxd-header--landing .memolotl-utility-controls .sound-toggle__icon i {
  display: block;
  width: 0.1em;
  height: 0.28em;
  border-radius: 999px;
  background: currentColor;
  transform-origin: 50% 100%;
}

.mxd-header--landing .memolotl-utility-controls .sound-toggle__label {
  position: relative;
  z-index: 1;
  font-size: 0.75em;
  text-transform: uppercase;
}

.mxd-header--landing .memolotl-utility-controls .sound-toggle[aria-pressed='true'] {
  color: #fff9f4;
  border-color: rgb(255 255 255 / 74%);
  background: linear-gradient(135deg, rgb(215 53 120 / 88%), rgb(239 116 60 / 70%));
  box-shadow:
    0 0.8rem 2.4rem rgb(200 43 108 / 24%),
    0 0 0 0.3rem rgb(239 177 201 / 13%),
    inset 0 1px 0 rgb(255 255 255 / 60%);
}

.mxd-header--landing .memolotl-utility-controls .sound-toggle[aria-pressed='true'] .sound-toggle__icon {
  border-color: rgb(255 255 255 / 38%);
  background: rgb(255 255 255 / 18%);
}

.mxd-header--landing .memolotl-utility-controls .sound-toggle[aria-pressed='true'] .sound-toggle__icon i {
  animation: memolotl-sound-equalizer 780ms ease-in-out infinite alternate;
}

.mxd-header--landing .memolotl-utility-controls .sound-toggle[aria-pressed='true'] .sound-toggle__icon i:nth-child(2) {
  animation-delay: -520ms;
}

.mxd-header--landing .memolotl-utility-controls .sound-toggle[aria-pressed='true'] .sound-toggle__icon i:nth-child(3) {
  animation-delay: -260ms;
}

@keyframes memolotl-sound-equalizer {
  0% {
    transform: scaleY(0.55);
  }

  100% {
    transform: scaleY(1.75);
  }
}

@keyframes memolotl-sound-capsule-pop {
  0% {
    transform: translateY(0) scale(1);
  }

  48% {
    transform: translateY(-0.2rem) scale(1.035);
  }

  74% {
    transform: translateY(-0.08rem) scale(0.995);
  }

  100% {
    transform: translateY(-0.12rem) scale(1.012);
  }
}

/* Phone & tablet: hide header App Store (utilities stay in header) */
@media only screen and (max-width: 1199px) {
  .mxd-header--landing .mxd-logo__text span:last-child {
    display: none;
  }

  .mxd-header--landing .memolotl-utility-controls.masthead__controls {
    font-size: 16px;
  }

  .mxd-header--landing .mxd-header__controls--store {
    display: none;
  }
}

@media only screen and (min-width: 1200px) {
  .mxd-header--landing .mxd-header__link--store {
    width: auto;
    height: 4rem;
    line-height: 1;
    max-width: none;
  }
}

@media only screen and (max-width: 767px) {
  /* One row on phones (logo + pills) so the fixed header covers less content;
     the header box already ends at the hamburger, so only a small gap is needed. */
  .mxd-header.mxd-header--landing {
    --landing-menu-gap: 0.35rem;
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas: 'landing-logo landing-utils';
    justify-content: start;
    align-items: center;
    column-gap: 1rem;
    padding-right: 0.8rem;
    padding-bottom: 1rem;
  }

  .mxd-header--landing .landing-masthead__start {
    display: contents;
  }

  .mxd-header--landing .mxd-header__logo {
    grid-area: landing-logo;
    justify-self: start;
    min-width: 0;
  }

  .mxd-header--landing .memolotl-utility-controls.masthead__controls {
    grid-area: landing-utils;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    max-width: 100%;
  }

  .mxd-header--landing .memolotl-utility-controls .sound-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media only screen and (max-width: 479px) {
  .mxd-header--landing .memolotl-utility-controls .lang-toggle__flag {
    display: none;
  }
}

/* Very narrow phones: not enough room for one row, stack the pills again. */
@media only screen and (max-width: 359px) {
  .mxd-header.mxd-header--landing {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'landing-logo'
      'landing-utils';
    align-items: start;
    row-gap: 1.35rem;
    padding-right: calc(var(--landing-menu-size) + var(--landing-menu-gap));
  }
}

/* Language portal (coming-soon + landing) */
html.lang-switch-pending body {
  visibility: hidden;
}

.lang-portal {
  position: fixed;
  z-index: 200;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.lang-portal.is-active,
html.lang-switch-pending .lang-portal {
  visibility: visible;
}

.lang-portal__disc {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
  background: linear-gradient(180deg, rgb(239 116 60), rgb(215 53 120) 42%, rgb(215 53 120));
  will-change: transform;
}

html.lang-switch-pending .lang-portal__disc {
  transform: translateY(0);
}

.lang-portal.is-expanding .lang-portal__disc {
  animation: lang-portal-swipe-cover 960ms cubic-bezier(0.7, 0, 0.2, 1) forwards;
}

.lang-portal.is-contracting .lang-portal__disc {
  animation: lang-portal-swipe-reveal 880ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.memolotl-wordmark {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
}

.lang-portal__wordmark {
  display: none;
}

@keyframes lang-portal-swipe-cover {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes lang-portal-swipe-reveal {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.lang-switch-pending body {
    visibility: visible;
  }

  .lang-portal.is-expanding .lang-portal__disc,
  .lang-portal.is-contracting .lang-portal__disc {
    animation: none;
  }

  html.lang-switch-pending .lang-portal__disc {
    transform: translateY(0);
  }

  .lang-portal.is-contracting .lang-portal__disc {
    transform: translateY(-100%);
  }
}


/* The Features arrow slides off the right edge (app.js .mxd-slide-object);
   clip it to the section so phones do not get sideways scroll. */
#features {
  overflow-x: clip;
}

/* Orisa sections built on Bootstrap rows inside .grid-l-container get no side
   padding below 768px (the template expects .mxd-grid-item to add it), so their
   text touched the screen edge. Match the site's 3rem phone gutter. */
@media only screen and (max-width: 767px) {
  #orisa-value .mxd-container.grid-l-container,
  #orisa-ready .mxd-container.grid-l-container,
  #orisa-faq .mxd-container.grid-l-container {
    padding: 0 3rem;
  }

  /* Pricing's wrapper already adds 8px; top up to the same 30px edge. */
  #orisa-pricing .mxd-container.grid-l-container {
    padding: 0 2.2rem;
  }
}
