/* Canonical two-page shell. Loaded after each page stylesheet by design. */

html.locale-pending body {
  opacity: 0;
}

.route-curtain {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--paper-bright);
  background: var(--plum);
  pointer-events: none;
  visibility: hidden;
  transform: translate3d(0, 102%, 0);
  will-change: transform;
}

.route-curtain__brand {
  display: flex;
  align-items: center;
  gap: 17px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 220ms ease,
    transform 320ms var(--ease);
}

.route-curtain__brand svg {
  width: 58px;
  height: 58px;
}

.route-curtain__brand circle,
.route-curtain__brand path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.15;
}

.route-curtain__brand circle:last-child {
  fill: currentColor;
  stroke: none;
}

.route-curtain__brand > span {
  display: grid;
  line-height: 1;
}

.route-curtain__brand strong {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
}

.route-curtain__brand small {
  margin-top: 7px;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

html.route-is-leaving .route-curtain,
html.route-is-arriving .route-curtain {
  pointer-events: auto;
  visibility: visible;
}

html.route-is-leaving .route-curtain {
  transform: translate3d(0, 0, 0);
  transition: transform 420ms var(--ease);
}

html.route-is-leaving .route-curtain__brand,
html.route-is-arriving .route-curtain__brand {
  opacity: 1;
  transform: translateY(0);
}

html.route-is-arriving .route-curtain {
  transform: translate3d(0, 0, 0);
}

html.route-is-arriving.route-is-revealing .route-curtain {
  transform: translate3d(0, -102%, 0);
  transition: transform 480ms var(--ease);
}

html.route-is-arriving.route-is-revealing .route-curtain__brand {
  opacity: 0;
  transform: translateY(-14px);
}

.concept-bar {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  height: var(--concept-height);
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.76);
  background: var(--ink);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.concept-bar span + span {
  color: rgba(255, 255, 255, 0.42);
}

.site-header {
  position: fixed;
  z-index: 90;
  top: var(--concept-height);
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  height: var(--header-height);
  padding: 0 42px;
  border-bottom: 1px solid rgba(23, 22, 22, 0.16);
  transition:
    height 400ms var(--ease),
    background 400ms var(--ease),
    box-shadow 400ms var(--ease);
}

.site-header.is-scrolled {
  height: 72px;
  background: rgba(250, 248, 243, 0.94);
  box-shadow: 0 12px 30px rgba(23, 22, 22, 0.06);
  backdrop-filter: blur(15px);
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
}

.site-header .brand__mark {
  width: 44px;
  height: 44px;
  color: var(--plum);
}

.site-header .brand__mark circle,
.site-header .brand__mark path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.site-header .brand__mark circle:last-child {
  fill: currentColor;
  stroke: none;
}

.site-header .brand__type {
  display: grid;
  line-height: 1;
}

.site-header .brand__type strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-header .brand__type small {
  margin-top: 4px;
  color: rgba(23, 22, 22, 0.62);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.31em;
  text-transform: uppercase;
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(17px, 2.2vw, 39px);
}

.global-nav a {
  position: relative;
  padding: 10px 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.global-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--plum);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms var(--ease);
}

.global-nav a:hover::after,
.global-nav a:focus-visible::after,
.global-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.global-nav a[aria-current="page"] {
  font-weight: 800;
}

.header-book {
  justify-self: end;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition:
    color 250ms ease,
    background 250ms ease;
}

.header-book:hover,
.header-book:focus-visible {
  color: white;
  background: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 18px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(23, 22, 22, 0.38);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.language-switcher a {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 32px;
  min-height: 44px;
  color: rgba(23, 22, 22, 0.48);
  transition: color 180ms ease;
}

.language-switcher a:hover,
.language-switcher a:focus-visible,
.language-switcher a[aria-current="true"] {
  color: var(--plum);
}

.language-switcher a[aria-current="true"]::after {
  position: absolute;
  right: 8px;
  bottom: 7px;
  left: 8px;
  height: 1px;
  background: currentColor;
  content: "";
}

.site-header .menu-toggle,
.site-mobile-menu,
.mobile-action-bar {
  display: none;
}

@media (min-width: 941px) {
  .site-header {
    background: rgba(243, 239, 231, 0.42);
    box-shadow: 0 8px 24px rgba(23, 22, 22, 0.025);
    backdrop-filter: blur(4px) saturate(0.96);
    -webkit-backdrop-filter: blur(4px) saturate(0.96);
  }

  .site-header.is-scrolled {
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
  }
}

.formation-page {
  --formation-subnav-height: 44px;
}

.formation-page .site-header:not(.is-scrolled) {
  border-bottom-color: rgba(23, 22, 22, 0.09);
  background: rgba(250, 248, 243, 0.24);
  box-shadow: none;
  backdrop-filter: blur(3px) saturate(0.94);
  -webkit-backdrop-filter: blur(3px) saturate(0.94);
}

.formation-page .site-header.is-scrolled {
  background: rgba(250, 248, 243, 0.78);
  backdrop-filter: blur(7px) saturate(0.94);
  -webkit-backdrop-filter: blur(7px) saturate(0.94);
}

.formation-page main > section[id] {
  scroll-margin-top: calc(
    var(--concept-height) + 72px + var(--formation-subnav-height) + 12px
  );
}

.formation-subnav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  min-height: var(--formation-subnav-height);
  padding: 0 42px;
  border-bottom: 1px solid rgba(23, 22, 22, 0.13);
  background: rgba(250, 248, 243, 0.92);
  box-shadow: 0 10px 24px rgba(23, 22, 22, 0.04);
  backdrop-filter: blur(12px);
}

.formation-page .formation-subnav {
  border-bottom-color: rgba(23, 22, 22, 0.08);
  background: rgba(250, 248, 243, 0.42);
  box-shadow: 0 8px 20px rgba(23, 22, 22, 0.02);
  backdrop-filter: blur(4px) saturate(0.94);
  -webkit-backdrop-filter: blur(4px) saturate(0.94);
}

.formation-page .site-header.is-scrolled .formation-subnav {
  background: rgba(250, 248, 243, 0.72);
  backdrop-filter: blur(7px) saturate(0.94);
  -webkit-backdrop-filter: blur(7px) saturate(0.94);
}

.formation-subnav__identity {
  display: flex;
  align-items: baseline;
  justify-self: start;
  gap: 9px;
  white-space: nowrap;
}

.formation-subnav__identity span,
.formation-subnav__links a,
.formation-subnav__cta {
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.formation-subnav__identity strong {
  color: var(--plum);
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
}

.formation-subnav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 30px);
}

.formation-subnav__links a,
.formation-subnav__cta,
.formation-subnav__identity {
  transition: color 180ms ease;
}

.formation-subnav__links a:hover,
.formation-subnav__links a:focus-visible,
.formation-subnav__cta:hover,
.formation-subnav__cta:focus-visible,
.formation-subnav__identity:hover,
.formation-subnav__identity:focus-visible {
  color: var(--plum);
}

.formation-subnav__cta {
  justify-self: end;
  padding-left: 15px;
  border-left: 1px solid var(--line);
  color: var(--plum);
  white-space: nowrap;
}

.formation-page .hero__index {
  top: calc(
    var(--concept-height) + var(--header-height) +
      var(--formation-subnav-height) + 24px
  );
}

body.menu-open .formation-subnav {
  visibility: hidden;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto minmax(220px, 1fr) auto;
  gap: 35px;
  align-items: center;
  padding: 55px 48px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  font-size: 9px;
}

.site-footer__brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
}

.site-footer__brand strong {
  color: var(--plum);
  font-weight: 400;
  font-style: italic;
}

.site-footer nav {
  display: flex;
  gap: 25px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-footer nav a[aria-current="page"] {
  color: var(--plum);
}

.site-footer__concept {
  justify-self: end;
  color: rgba(23, 22, 22, 0.5);
  text-align: right;
}

.site-footer > a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
}

.preview-toast {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(430px, calc(100vw - 40px));
  padding: 20px 52px 20px 22px;
  color: white;
  background: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
}

.preview-toast strong {
  color: var(--lavender);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.preview-toast span {
  grid-column: 1;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.57);
  font-size: 9px;
  line-height: 1.5;
}

.preview-toast button {
  position: absolute;
  top: 13px;
  right: 15px;
  border: 0;
  color: white;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}

@media (max-width: 1180px) {
  .site-header,
  .formation-subnav {
    padding-inline: 28px;
  }

  .global-nav {
    gap: 16px;
  }

  .formation-subnav__identity strong {
    display: none;
  }

  .formation-subnav__cta {
    padding-left: 12px;
  }
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 8px;
    background: rgba(250, 248, 243, 0.96);
    box-shadow: 0 8px 24px rgba(23, 22, 22, 0.07);
    backdrop-filter: blur(16px);
  }

  .formation-page .site-header:not(.is-scrolled) {
    background: rgba(250, 248, 243, 0.52);
    backdrop-filter: blur(6px) saturate(0.92);
    -webkit-backdrop-filter: blur(6px) saturate(0.92);
  }

  .formation-page .site-header.is-scrolled {
    background: rgba(250, 248, 243, 0.82);
  }

  .formation-page.menu-open .site-header {
    background: rgba(250, 248, 243, 0.9);
    backdrop-filter: blur(9px) saturate(0.94);
    -webkit-backdrop-filter: blur(9px) saturate(0.94);
  }

  .global-nav,
  .header-book {
    display: none;
  }

  .header-actions {
    gap: 0;
  }

  .site-header .menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .site-header .menu-toggle i,
  .site-header .menu-toggle i::before {
    display: block;
    width: 22px;
    height: 1px;
    background: currentColor;
    content: "";
    transition: transform 300ms var(--ease);
  }

  .site-header .menu-toggle i::before {
    transform: translateY(6px);
  }

  .site-header .menu-toggle[aria-expanded="true"] i {
    transform: rotate(45deg);
  }

  .site-header .menu-toggle[aria-expanded="true"] i::before {
    transform: rotate(90deg);
  }

  .site-mobile-menu {
    position: fixed;
    z-index: 80;
    top: calc(var(--concept-height) + var(--header-height));
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    place-items: center;
    color: white;
    background: rgba(23, 22, 22, 0.98);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-scrolled .site-mobile-menu {
    top: calc(var(--concept-height) + 72px);
  }

  .site-mobile-menu nav {
    display: grid;
    width: min(540px, calc(100% - 48px));
  }

  .site-mobile-menu nav > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--light-line);
    font-family: var(--serif);
    font-size: 28px;
  }

  .site-mobile-menu nav > a[aria-current="page"] {
    color: var(--lavender);
  }

  .site-mobile-menu button {
    min-height: 44px;
    margin-top: 25px;
    padding: 15px 18px;
    border: 0;
    color: var(--ink);
    background: var(--paper-bright);
    cursor: pointer;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .formation-subnav {
    display: flex;
    gap: 24px;
    min-height: 48px;
    padding: 0 24px;
    background: var(--paper-bright);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .formation-page .formation-subnav {
    background: rgba(250, 248, 243, 0.56);
    backdrop-filter: blur(6px) saturate(0.92);
    -webkit-backdrop-filter: blur(6px) saturate(0.92);
  }

  .formation-page .site-header.is-scrolled .formation-subnav {
    background: rgba(250, 248, 243, 0.76);
  }

  .formation-subnav::-webkit-scrollbar {
    display: none;
  }

  .formation-subnav__identity,
  .formation-subnav__links,
  .formation-subnav__links a {
    flex: 0 0 auto;
  }

  .formation-subnav__identity,
  .formation-subnav__links a {
    display: flex;
    align-items: center;
    min-height: 48px;
  }

  .formation-subnav__identity strong,
  .formation-subnav__cta {
    display: none;
  }

  .formation-subnav__links {
    gap: 24px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer nav,
  .site-footer__concept {
    grid-column: 1 / -1;
  }

  .site-footer nav {
    grid-row: 2;
    flex-wrap: wrap;
  }

  .site-footer__concept {
    grid-row: 3;
    justify-self: start;
    text-align: left;
  }

  .site-footer > a {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 640px) {
  .formation-page {
    --formation-subnav-height: 44px;
  }

  .formation-page .formation-subnav,
  .formation-page .formation-subnav__links a {
    min-height: 44px;
  }

  .concept-bar {
    justify-content: flex-start;
    font-size: 7px;
  }

  .concept-bar span + span {
    display: none;
  }

  .site-header {
    height: var(--header-height);
    padding: 0 20px;
  }

  .home-page .site-header:not(.is-scrolled) {
    border-bottom-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .home-page .site-header:not(.is-scrolled) .menu-toggle {
    color: var(--plum-deep);
    filter: drop-shadow(0 0 6px rgba(250, 248, 243, 0.96));
  }

  .home-page .site-header:not(.is-scrolled) .language-switcher {
    filter: drop-shadow(0 0 6px rgba(250, 248, 243, 0.96));
  }

  .home-page.menu-open .site-header {
    border-bottom-color: var(--line);
    background: rgba(250, 248, 243, 0.98);
    box-shadow: 0 8px 24px rgba(23, 22, 22, 0.07);
    backdrop-filter: blur(16px);
  }

  .site-header.is-scrolled {
    height: var(--header-height);
  }

  .site-header .brand__mark {
    width: 36px;
    height: 36px;
  }

  .site-header .brand__type strong {
    font-size: 15px;
  }

  .site-header .brand__type small {
    font-size: 7px;
  }

  .language-switcher a {
    min-width: 29px;
  }

  .site-header .menu-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .home-page .site-header .menu-toggle {
    gap: 8px;
    width: auto;
    min-width: 62px;
    padding-inline: 2px;
  }

  .home-page .site-header .menu-toggle span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .site-mobile-menu,
  .site-scrolled .site-mobile-menu {
    top: calc(var(--concept-height) + var(--header-height));
  }

  .site-mobile-menu nav > a {
    font-size: 24px;
  }

  .text-link {
    min-height: 44px;
  }

  .formation-subnav {
    padding-left: 20px;
  }

  .formation-subnav__identity {
    display: none;
  }

  .mobile-action-bar {
    position: fixed;
    z-index: 70;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 66px;
    padding: 9px 9px 9px 17px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: white;
    background: rgba(23, 22, 22, 0.97);
    box-shadow: 0 18px 45px rgba(23, 22, 22, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 22px));
    visibility: hidden;
    transition:
      opacity 240ms ease,
      transform 360ms var(--ease);
  }

  .mobile-action-bar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  body.menu-open .mobile-action-bar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 22px));
  }

  .mobile-action-bar p {
    display: grid;
    min-width: 0;
    line-height: 1.15;
  }

  .mobile-action-bar p span {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.48);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-action-bar p strong {
    margin-top: 5px;
    overflow: hidden;
    color: white;
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-action-bar > button,
  .mobile-action-bar > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    min-height: 48px;
    padding: 12px 15px;
    border: 0;
    color: white;
    background: var(--plum);
    cursor: pointer;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .mobile-action-bar--formation > a {
    min-width: 100px;
  }

  .formation-page .hero__stamp {
    top: calc(116px + var(--formation-subnav-height));
  }

  .site-footer {
    gap: 18px;
    padding: 42px 20px 104px;
  }

  .site-footer nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    width: 100%;
  }

  .site-footer nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    border-bottom: 1px solid var(--line);
  }

  .preview-toast {
    right: 20px;
    bottom: 94px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-curtain {
    display: none;
    transition: none;
  }

  .route-curtain__brand {
    transition: none;
  }
}
