/* Site header shared by the homepage and every inner page (moved from hero-polish.css). */
.hdr {
  background: transparent;
  animation: none;
  transition: background-color 180ms ease;
}
.hdr-in {
  box-sizing: border-box;
  max-width: 1400px !important;
  position: relative;
  padding: 1rem 2.5rem !important;
  transition: padding 180ms ease;
  gap: 1rem 2.5rem !important;
}
.hdr-logo {
  height: 48px !important;
  animation: none;
  mix-blend-mode: normal !important;
  filter: url(#home-logo-cutout);
  transform-origin: left center;
  transition:
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    height 180ms ease;
}
.hdr-in > a:first-child {
  background: transparent;
}
.hdr-in > a:first-child:hover,
.hdr-in > a:first-child:focus-visible {
  opacity: 1;
}
.hdr-in > a:first-child:is(:hover, :focus-visible) .hdr-logo {
  transform: scale(1.07);
}
.hdr-nav {
  gap: 0.5rem 2rem !important;
  font-size: var(--text-sm) !important;
}
.hdr .hdr-nav > a,
:is(.hdr-services, .hdr-concepts, .hdr-platforms) > .hdr-dropdown-trigger {
  color: #c2c1bb;
  transition: color 140ms ease;
}
.hdr a:is(:hover, :focus-visible) {
  opacity: 1;
}
.hdr .hdr-nav a:is(:hover, :focus-visible),
.hdr :is(.hdr-services, .hdr-concepts, .hdr-platforms) > .hdr-dropdown-trigger:is(:hover, :focus-visible),
.hdr :is(.hdr-services, .hdr-concepts, .hdr-platforms)[open] > .hdr-dropdown-trigger,
.hdr :is(.hdr-services, .hdr-concepts, .hdr-platforms)[data-expanded] > .hdr-dropdown-trigger {
  color: #fff;
}
.hdr-cta {
  min-height: 50px !important;
  padding-inline: 1.5rem !important;
  font-size: var(--text-sm) !important;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}
.hdr-cta:is(:hover, :focus-visible) {
  background: #fff !important;
  border-color: #fff !important;
  color: #101010 !important;
}
.hdr-cta:is(:hover, :focus-visible) svg {
  stroke: currentColor;
}
@media (max-width: 1279px) {
  .hdr-in {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.875rem 2rem !important;
    gap: 0.625rem 1.25rem !important;
  }
  .hdr-logo {
    height: 42px !important;
  }
  .hdr-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    font-size: 0.8125rem !important;
    gap: 0.5rem 1.25rem !important;
  }
  .hdr-nav a {
    min-height: 44px !important;
    min-width: 44px;
  }
  .hdr-in > div:not(.hdr-dropdown-bar) {
    grid-column: 2;
    grid-row: 1;
  }
  .hdr-lang {
    display: none;
  }
  .hdr-cta {
    min-height: 44px !important;
    padding-inline: 1rem !important;
    font-size: var(--text-xs) !important;
  }
}
@media (max-width: 719px) {
  .hdr-in {
    padding: 0.875rem 1.5rem !important;
    gap: 0.625rem 0.75rem !important;
  }
  .hdr-nav {
    font-size: 0.8125rem !important;
    gap: 0.375rem 0.75rem !important;
  }
  .hdr-nav svg {
    width: 11px;
  }
}
@media (max-width: 359px) {
  .hdr-in {
    padding-inline: 1.25rem !important;
  }
  .hdr-logo {
    height: 34px !important;
  }
  .hdr-cta {
    padding-inline: 0.75rem !important;
    font-size: 0.6875rem !important;
    gap: 0.5rem !important;
  }
  .hdr-nav {
    font-size: 0.6875rem !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hdr-logo,
  .hdr-cta {
    transition: none;
  }
}
.hdr-in,
.hdr-nav,
.hdr-cta,
.hdr-lang {
  animation: none;
}
:is(.hdr[data-scrolled], [data-page-scrolled] .hdr) {
  background: #101010;
}
:is(.hdr[data-scrolled], [data-page-scrolled] .hdr) .hdr-in {
  padding-block: 1.25rem !important;
}
:is(.hdr[data-scrolled], [data-page-scrolled] .hdr) .hdr-logo {
  height: 56px !important;
}
/* Home page on desktop: a larger logo at the top of the page so the name is
   seen first; it shrinks to the normal size once the page scrolls.
   The header layout never changes here (logo keeps its scrolled height, the
   padding stays the same): only `scale` on the logo and `translate` on the
   menu animate, so the browser runs the transition on the GPU without
   re-laying out the header on every frame. */
@media (min-width: 1024px) {
  .home-page .hdr-in,
  :root:not([data-page-scrolled]) .home-page .hdr:not([data-scrolled]) .hdr-in {
    transition: none;
  }
  .home-page .hdr-logo {
    transition:
      transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
      scale 650ms cubic-bezier(0.45, 0, 0.2, 1);
  }
  .home-page .hdr-nav {
    transition: translate 650ms cubic-bezier(0.45, 0, 0.2, 1);
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .home-page .hdr .hdr-in {
    padding-block: 0.875rem !important;
    gap: 0.625rem 1.25rem !important;
  }
  .home-page .hdr .hdr-logo {
    height: 42px !important;
  }
  :root:not([data-page-scrolled]) .home-page .hdr:not([data-scrolled]) .hdr-logo {
    scale: 1.524; /* 64px */
  }
}
@media (min-width: 1280px) {
  .home-page .hdr .hdr-in {
    padding-block: 1.25rem !important;
  }
  .home-page .hdr .hdr-logo {
    height: 56px !important;
  }
  :root:not([data-page-scrolled]) .home-page .hdr:not([data-scrolled]) .hdr-logo {
    scale: 1.5; /* 84px */
  }
  /* The menu moves over by the extra logo width (56px tall × 1000/275 × 0.5). */
  :root:not([data-page-scrolled]) .home-page .hdr:not([data-scrolled]) .hdr-nav {
    translate: 102px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .hdr-logo,
  .home-page .hdr-nav {
    transition: none;
  }
}
.hdr-language {
  position: relative;
  flex: none;
}
.hdr-language summary,
.hdr-language nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 64px;
  height: 44px;
  gap: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  list-style: none;
  color: #c2c1bb;
  transition:
    background-color 140ms ease,
    color 140ms ease;
}
.hdr-language summary {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.hdr-language[open] summary {
  color: #fff;
}
.hdr-language summary::-webkit-details-marker {
  display: none;
}
.hdr-language summary::marker {
  content: "";
}
.hdr-language .hdr-language-flag {
  display: block;
  flex: none;
  width: 27px;
  height: 18px;
  border-radius: 0.125rem;
}
.hdr-language .hdr-language-chevron {
  flex: none;
  width: 14px;
  height: 14px;
  transition: transform 520ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hdr-language[data-expanded] .hdr-language-chevron {
  transform: rotate(90deg);
}
.hdr-language nav {
  position: absolute;
  top: 0;
  right: 100%;
  display: flex;
  flex-direction: row-reverse;
  gap: 0.25rem;
  width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  transform: translateX(48px);
  clip-path: inset(-6px 0 -6px 100%);
}
.hdr-language[data-expanded] nav {
  opacity: 1;
  transform: translateX(0);
  clip-path: inset(-6px);
}
.hdr-language summary:is(:hover, :focus-visible),
.hdr-language nav a:is(:hover, :focus-visible) {
  background: transparent;
  color: #fff;
  opacity: 1;
}
.hdr-language[open] summary {
  background: var(--orange);
  color: #101010;
}
.hdr-language[open]:has(nav a:is(:hover, :focus-visible)) summary {
  background: transparent;
  color: #fff;
}
.hdr-language nav a:is(:hover, :focus-visible) {
  background: var(--orange);
}
.hdr-language nav a {
  width: 44px;
  height: 44px;
  padding: 0;
}
.hdr-language summary:focus-visible,
.hdr-language nav a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
@media (max-width: 1279px) {
  .hdr-in {
    padding-block: 0.625rem !important;
    gap: 0.375rem 1.25rem !important;
  }
  .hdr-logo {
    height: 34px !important;
  }
  :is(.hdr[data-scrolled], [data-page-scrolled] .hdr) .hdr-in {
    padding-block: 0.875rem !important;
    gap: 0.625rem 1.25rem !important;
  }
  :is(.hdr[data-scrolled], [data-page-scrolled] .hdr) .hdr-logo {
    height: 42px !important;
  }
  .hdr-language {
    position: absolute;
    right: 32px;
    bottom: 10px;
  }
  :is(.hdr[data-scrolled], [data-page-scrolled] .hdr) .hdr-language {
    bottom: 14px;
  }
  .hdr-nav {
    padding-right: 4.75rem;
  }
  .hdr-in:has(.hdr-language[open]) .hdr-nav {
    max-width: calc(100% - 220px);
    padding-right: 0;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent);
  }
  .hdr-in:has(.hdr-language[open]) .hdr-nav::-webkit-scrollbar {
    display: none;
  }
  .hdr-in:has(.hdr-language[open]) .hdr-nav > a,
  .hdr-in:has(.hdr-language[open]) :is(.hdr-services, .hdr-concepts, .hdr-platforms) {
    flex-shrink: 0;
  }
}
@media (max-width: 719px) {
  .hdr-language {
    right: 24px;
  }
  /* On narrow headers, the expanded language choices temporarily occupy
     the navigation row; its height stays fixed so the page never jumps. */
  .hdr-in:has(.hdr-language[open]) .hdr-nav {
    visibility: hidden;
  }
  html:lang(es) .hdr-nav {
    font-size: var(--text-2xs) !important;
    letter-spacing: 0 !important;
    gap: 0.375rem !important;
  }
  .hdr-nav {
    font-size: 0.6875rem !important;
    gap: 0.375rem 0.5rem !important;
    flex-wrap: nowrap !important;
  }
  .hdr-nav a {
    white-space: nowrap;
    min-width: 0;
  }
}
@media (max-width: 359px) {
  .hdr-logo {
    height: 24px !important;
  }
  :is(.hdr[data-scrolled], [data-page-scrolled] .hdr) .hdr-logo {
    height: 24px !important;
  }
  .hdr-language {
    right: 20px;
  }
  .hdr-nav {
    font-size: var(--text-2xs) !important;
    gap: 0.5rem !important;
    padding-right: 3.5rem;
  }
  .hdr-language summary {
    width: 48px;
    gap: 0.25rem;
  }
  .hdr-language summary .hdr-language-flag {
    width: 24px;
    height: 16px;
  }
  .hdr-language .hdr-language-chevron {
    width: 12px;
    height: 12px;
  }
  .hdr-nav > a,
  :is(.hdr-services, .hdr-concepts, .hdr-platforms) {
    flex-shrink: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hdr,
  .hdr-in,
  .hdr-logo {
    transition: none;
  }
  .hdr-language summary,
  .hdr-language nav a,
  .hdr-language .hdr-language-chevron {
    transition: none;
  }
}
:is(.hdr-services, .hdr-concepts, .hdr-platforms) {
  position: relative;
}
:is(.hdr-services, .hdr-concepts, .hdr-platforms) .hdr-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}
:is(.hdr-services, .hdr-concepts, .hdr-platforms) .hdr-dropdown-trigger svg {
  transition: transform 200ms ease;
}
:is(.hdr-services, .hdr-concepts, .hdr-platforms)[open] .hdr-dropdown-trigger svg,
:is(.hdr-services, .hdr-concepts, .hdr-platforms)[data-expanded] .hdr-dropdown-trigger svg {
  transform: rotate(180deg);
}
:is(.hdr-services, .hdr-concepts, .hdr-platforms) .hdr-dropdown-trigger:focus-visible,
.hdr-services-panel a:focus-visible,
.hdr-dropdown-bar a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.hdr-services-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: -20px;
  z-index: 60;
  box-sizing: border-box;
  width: 300px;
  padding: 0.5rem;
  border: 1px solid #33332f;
  border-radius: 0.75rem;
  background: #101010;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9375rem;
  font-weight: 500;
}
.hdr-services-panel::before {
  content: "";
  position: absolute;
  inset: -11px 0 auto;
  height: 11px;
}
.hdr-services-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hdr-services-panel li a {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  color: #f1f0eb;
}
.hdr-services-panel li a:is(:hover, :focus-visible) {
  background: #1c1c1b;
  opacity: 1;
}
.hdr-services-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-top: 0.375rem;
  padding: 0 0.75rem;
  border-top: 1px solid #2b2b28;
  color: #ff7c3f;
}
.hdr .hdr-dropdown-bar {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  border-block: 1px solid #ffffff14;
  background: #101010;
  box-shadow: 0 16px 32px -20px #000;
}
.hdr-dropdown-bar[hidden] {
  display: none;
}
/* The shared header owns section navigation; reserve its height in the page. */
@media (min-width: 1024px) {
  .site-header-page.has-subheader:has(.hdr-dropdown-bar[data-section]) #principal::before {
    content: "";
    display: block;
    height: 50px;
  }
}
@media (max-width: 719px) {
  :is(.hdr-services, .hdr-concepts, .hdr-platforms) .hdr-dropdown-trigger {
    gap: 0.25rem;
  }
  :is(.hdr-services, .hdr-concepts, .hdr-platforms) .hdr-dropdown-trigger svg {
    width: 11px;
  }
  .hdr-services-panel {
    position: fixed;
    top: auto;
    left: 16px;
    right: 16px;
    width: auto;
    margin-top: 0.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(.hdr-services, .hdr-concepts, .hdr-platforms) .hdr-dropdown-trigger svg {
    transition: none;
  }
}
@media (max-width: 719px) {
  .hdr-nav .hdr-contact {
    display: none !important;
  }
}

.hdr-concepts-scroll {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 0.375rem;
}
.hdr-concepts-scroll .subhdr-links {
  flex: 1;
}
.hdr-scroll-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--site-text, #f1f0eb);
  cursor: pointer;
  transition: color 160ms ease, opacity 160ms ease;
}
.hdr-scroll-arrow[hidden] {
  display: none;
}
.hdr-scroll-arrow[aria-disabled="true"] {
  opacity: 0.3;
  cursor: default;
}
.hdr-scroll-arrow[aria-disabled="false"]:hover {
  color: var(--site-accent, #ff7c3f);
}
.hdr-scroll-arrow:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -3px;
}
@media (prefers-reduced-motion: reduce) {
  .hdr-scroll-arrow {
    transition: none;
  }
}

/* Inner pages: the fixed header sits over the page, so content starts below it. */
.site-hdr {
  color: #f1f0eb;
  font-family: var(--font-sans);
}
.site-hdr a {
  color: inherit;
  text-decoration: none;
}
.site-hdr .hdr-nav a[aria-current]:not(:hover):not(:focus-visible),
.site-hdr
  :is(.hdr-services, .hdr-concepts, .hdr-platforms):not([open]):not([data-expanded])
  .hdr-dropdown-trigger[data-current]:not(:hover):not(:focus-visible) {
  color: #ff7c3f;
}
.site-header-page #principal {
  padding-top: 5.25rem !important;
}
.subhdr {
  position: relative;
  z-index: 5;
  border-top: 1px solid #ffffff14;
  border-bottom: 1px solid #ffffff14;
  background: #101010d9;
  backdrop-filter: blur(8px);
}
.subhdr-in {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.subhdr a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #8f8e88;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease;
}
.subhdr a:hover,
.subhdr a[aria-current] {
  color: #f1f0eb;
}
.subhdr-links a[aria-current] {
  border-bottom-color: var(--orange);
}
.subhdr a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}
.subhdr-title {
  flex: none;
  padding-right: 1.75rem;
  border-right: 1px solid #ffffff1f;
  color: #f1f0eb !important;
  font-weight: 600;
}
.subhdr-links {
  display: flex;
  min-width: 0;
  gap: 1.625rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.subhdr-links > a {
  flex: none;
}
.subhdr-links::-webkit-scrollbar {
  display: none;
}
:root[data-theme="light"] .subhdr {
  background: #f7f5efd9;
  border-color: #0000001a;
}
:root[data-theme="light"] .subhdr a {
  color: #6b6a64;
}
:root[data-theme="light"] .subhdr a:is(:hover, [aria-current]),
:root[data-theme="light"] .subhdr-title {
  color: #191919 !important;
}
@media (max-width: 1279px) {
  .site-header-page #principal {
    padding-top: 7.25rem !important;
  }
  .subhdr-in {
    padding: 0 2rem;
  }
}
@media (max-width: 719px) {
  .site-header-page #principal {
    padding-top: 7.25rem !important;
  }
  .subhdr-in {
    padding: 0 0 0 1.5rem;
    gap: 1.125rem;
    font-size: var(--text-xs);
  }
  .subhdr-title {
    padding-right: 1.125rem;
  }
  .subhdr-links {
    gap: 1.25rem;
    padding-right: 1.5rem;
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
}
/* The subheader already shows where you are, so the breadcrumb is redundant. */
.has-subheader .svc-crumb {
  display: none !important;
}

/* Set by the layout's inline script while the page loads (see layout.tsx). */
[data-hdr-instant] .hdr, [data-hdr-instant] .hdr * { transition: none !important; }

/* Mobile navigation keeps the main links in one column, with inline accordions. */
.hdr-burger,
.hdr-mobile-group,
.hdr-language-code {
  display: none;
}
@media (min-width: 1024px) {
  .hdr-lang-text { display: none; }
}
@media (max-width: 1023px) {
  :root { --mobile-header-height: 3.75rem; }
  .hdr {
    max-height: 100dvh;
    overflow: visible;
  }
  .hdr .hdr-in {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 0.75rem clamp(1rem, 5vw, 2rem) !important;
    gap: 0 clamp(0.75rem, 4vw, 1.5rem) !important;
    transition: padding 180ms ease;
  }
  .hdr .hdr-logo { height: clamp(2.75rem, 13vw, 3.875rem) !important; }
  :is(.hdr[data-scrolled], [data-page-scrolled] .hdr) .hdr-logo {
    height: clamp(2rem, 9vw, 2.625rem) !important;
  }
  :is(.hdr[data-scrolled], [data-page-scrolled] .hdr) .hdr-in {
    padding-block: 0.5rem !important;
  }
  /* Children of the right-hand group join the header grid directly. */
  .hdr-in > div:not(.hdr-dropdown-bar) { display: contents !important; }
  .hdr-in > a:first-child {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    min-width: 0;
  }
  .hdr .hdr-lang-text { display: none; }
  .hdr .hdr-in .hdr-language {
    display: block !important;
    position: relative;
    inset: auto;
    grid-column: 2;
    grid-row: 1;
    z-index: 2;
  }
  .hdr .hdr-language summary { width: 82px; min-height: 44px; gap: 6px; }
  .hdr .hdr-language-code { display: inline; font-size: 12px; font-weight: 600; }
  .hdr .hdr-language nav {
    top: calc(100% + 8px);
    right: 0;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 4px;
    border: 1px solid var(--site-rule);
    border-radius: 8px;
    background: var(--site-bg, #101010);
    box-shadow: 0 8px 20px #0003;
    transform: translateY(-8px);
    clip-path: inset(0 0 100% 0);
  }
  .hdr .hdr-language[data-expanded] nav {
    transform: translateY(0);
    clip-path: inset(-4px -16px -24px);
  }
  .hdr .hdr-language nav a {
    width: 100%;
    min-height: 44px;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    padding: 0;
    color: var(--site-text, #f1f0eb);
    font-size: 12px;
  }
  .hdr .hdr-language nav a:is(:hover, :focus-visible) {
    background: #ff5000;
    color: #101010;
  }
  .hdr .hdr-language[data-expanded] .hdr-language-chevron { transform: rotate(180deg); }
  .hdr-burger {
    grid-column: 2;
    grid-row: 1;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.3125rem;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -0.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }
  .hdr-burger span {
    display: block;
    width: 1.75rem;
    height: 2px;
    border-radius: 1px;
    background: #f1f0eb;
    transition: transform 200ms ease, opacity 160ms ease;
  }
  :root[data-theme="light"] .hdr:not([data-menu-open]) .hdr-burger span { background: #191919; }
  .hdr-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.4375rem) rotate(45deg); }
  .hdr-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hdr-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.4375rem) rotate(-45deg); }
  .hdr-burger:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
  }
  .hdr:not([data-menu-open]) :is(.hdr-nav, .hdr-cta, .hdr-theme-toggle, .hdr-language),
  .hdr .hdr-dropdown-bar,
  .hdr .hdr-nav > :is(.hdr-services, .hdr-concepts, .hdr-platforms) {
    display: none !important;
  }
  .hdr[data-menu-open] {
    --site-bg: #000;
    --site-panel: #111;
    --site-text: #f5f5f2;
    --site-muted: #aaa;
    --site-rule: #282828;
    --site-accent: var(--orange);
    z-index: 70 !important;
    height: 100dvh;
    overflow: hidden;
    isolation: isolate;
    background: var(--site-bg) !important;
    transition: none !important;
    color: var(--site-text);
  }
  :root[data-theme="light"] .hdr[data-menu-open] {
    --site-bg: var(--ls-paper);
    --site-panel: #e8e5de;
    --site-text: #191919;
    --site-muted: #57574f;
    --site-rule: #d1cec5;
    --site-accent: var(--orange-strong);
  }
  .hdr[data-menu-open] .hdr-burger span { background: var(--site-text); }
  .hdr[data-menu-open] .hdr-in {
    height: 100dvh;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    padding: max(0.75rem, env(safe-area-inset-top)) clamp(1.25rem, 5vw, 2.5rem) max(1rem, env(safe-area-inset-bottom)) !important;
    column-gap: 1rem !important;
  }
  .hdr[data-menu-open] .hdr-logo {
    height: clamp(2.5rem, 10vw, 3rem) !important;
    max-width: 100%;
  }
  .hdr[data-menu-open] .hdr-burger {
    grid-column: 2;
    justify-self: end;
    margin-right: 0;
  }
  .hdr[data-menu-open] .hdr-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    align-self: stretch;
    gap: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    margin-top: 1.25rem;
    padding: 0 0 1rem !important;
    border-bottom: 1px solid var(--site-rule);
    visibility: visible !important;
    mask-image: none !important;
    overflow: hidden auto !important;
    overscroll-behavior: contain;
    scrollbar-width: none;
    font-size: clamp(1.625rem, 4vw, 1.875rem) !important;
    font-weight: 500 !important;
    letter-spacing: -0.035em !important;
    text-transform: none !important;
    text-align: left;
  }
  .hdr[data-menu-open] .hdr-nav::-webkit-scrollbar { display: none; }
  .hdr .hdr-nav > a,
  .hdr .hdr-mobile-group > summary {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 3.5rem !important;
    box-sizing: border-box;
    padding: 0.625rem 0;
    line-height: 1.2;
    white-space: normal;
    color: var(--site-text) !important;
  }
  .hdr .hdr-nav > a {
    flex: none;
    border-bottom: 1px solid var(--site-rule);
    font-size: inherit;
    font-weight: inherit;
  }
  .hdr .hdr-nav .hdr-contact { display: flex !important; }
  .hdr .hdr-mobile-group {
    display: block;
    flex: none;
    width: 100%;
    min-width: 0;
    border-bottom: 1px solid var(--site-rule);
  }
  .hdr .hdr-mobile-group > summary {
    justify-content: space-between;
    gap: 1rem;
    list-style: none;
    cursor: pointer;
  }
  .hdr .hdr-mobile-group > summary::-webkit-details-marker { display: none; }
  .hdr .hdr-mobile-group > summary::marker { content: ""; }
  .hdr .hdr-mobile-group > summary svg {
    display: block;
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--site-muted);
    transition: color 140ms ease, transform 140ms ease;
  }
  .hdr .hdr-mobile-group[open] > summary svg { transform: rotate(90deg); color: var(--site-accent); }
  .hdr .hdr-mobile-group[open] > summary,
  .hdr .hdr-nav > a:is(:hover, :focus-visible, [aria-current="page"]) { color: var(--site-accent) !important; }
  .hdr .hdr-mobile-group:not([open]) > .hdr-mobile-links { display: none; }
  /* Native details keep collapsed destinations outside the tab order. */
  .hdr .hdr-mobile-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    margin: 0;
    padding: 0 0 0.75rem 1rem;
    list-style: none;
  }
  .hdr .hdr-mobile-links li { flex: none; }
  .hdr .hdr-mobile-links a {
    display: flex;
    align-items: center;
    min-height: 2.75rem !important;
    box-sizing: border-box;
    padding: 0.625rem 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    color: var(--site-muted) !important;
    text-decoration: none;
    transition: color 140ms ease;
  }
  .hdr .hdr-mobile-links li:first-child a { color: var(--site-text) !important; font-weight: 500; }
  .hdr .hdr-mobile-links a:is(:hover, :focus-visible, [aria-current="page"]) { color: var(--site-accent) !important; }
  .hdr .hdr-mobile-group > summary:focus-visible,
  .hdr .hdr-mobile-links a:focus-visible,
  .hdr .hdr-nav > a:focus-visible {
    outline: 2px solid var(--site-accent);
    outline-offset: -2px;
    border-radius: 4px;
  }
  /* Settings and the proposal remain visible while only the destinations scroll. */
  .hdr[data-menu-open] .hdr-in .hdr-language {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    margin-block: 0.75rem;
    z-index: 3;
  }
  .hdr[data-menu-open] .hdr-language nav {
    top: 0;
    bottom: auto;
    left: calc(100% + 4px);
    right: auto;
    flex-direction: row;
    gap: 4px;
    width: max-content;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    transform: translateX(-12px);
    clip-path: inset(-8px 100% -8px 0);
  }
  .hdr[data-menu-open] .hdr-language[data-expanded] nav {
    transform: translateX(0);
    clip-path: inset(-8px);
  }
  .hdr[data-menu-open] .hdr-language nav a { flex: none; width: 44px; }
  .hdr[data-menu-open] .hdr-language nav .hdr-language-code { display: none; }
  .hdr[data-menu-open] .hdr-language .hdr-language-chevron { transform: rotate(-90deg); }
  .hdr[data-menu-open] .hdr-language[data-expanded] .hdr-language-chevron { transform: rotate(90deg); }
  .hdr[data-menu-open] .hdr-in .hdr-theme-toggle {
    display: grid;
    position: relative;
    inset: auto !important;
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
    width: 2.75rem;
    height: 2.75rem;
    margin-block: 0.75rem;
  }
  .hdr[data-menu-open] .hdr-cta {
    grid-column: 1 / -1;
    grid-row: 4;
    display: flex !important;
    justify-content: center;
    width: 100%;
    min-height: 3.25rem !important;
    border: 0 !important;
    border-radius: var(--ls-control-radius, 8px) !important;
    background: #ff5000 !important;
    color: #151515 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }
  .hdr[data-menu-open] .hdr-cta :is(svg, .bm-ring) { display: none; }
  .site-header-page #principal { padding-top: 5rem !important; }
}
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .hdr .hdr-in,
  .hdr-burger span,
  .hdr .hdr-mobile-group > summary svg,
  .hdr .hdr-mobile-links a { transition: none; }
}
