/*
  Alséa Partners — Passepartout redesign.
  The legacy stylesheet is loaded into a lower cascade layer; everything
  declared here wins regardless of selector specificity.
*/
@import url("main.css?v=20261107-fold1") layer(legacy);

:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.6, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --t-enter: 0.95s;
  --t-leave: 0.62s;
  --ink: #0b2a4b;
  --moss: #589786;
  --text: #1f2a26;
  --nav-col: clamp(128px, 11vw, 240px);
  /* half the stage, but never narrower than 32rem (small windows / iPad) */
  --veil-w: max(min(100%, 32rem), min(50%, 1180px));
  --veil-pad-y: clamp(0.9rem, min(3vw, 4.2vh), 3rem);
  --veil-pad-x: clamp(1.2rem, 2.9vw, 3.6rem);
  --m-frame: 0.55rem;
  /* phone: the photo shows as wide beside the cards as between them */
  --m-gap: 0.35rem;
  --m-gutter: calc(var(--m-frame) + var(--m-gap));
}

/* iOS Safari enlarges long text blocks in landscape unless told not to */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ---------- Shell grid ---------- */

.header,
.layout {
  grid-template-columns: minmax(0, 1fr) var(--nav-col);
}

.main {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* ---------- Stage: one photograph behind every chapter ---------- */

.stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #1a221f;
  --zoom-ms: 39.5s;
  transition: filter 1.4s ease;
}

.main.has-chapter .stage {
  filter: saturate(0.94) brightness(0.97);
}

.stage__img,
.stage .rotator-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage .rotator-layer {
  opacity: 0;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: opacity 7.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.stage .rotator-layer.is-visible {
  opacity: 1;
}

.stage .rotator-layer.is-zoom-in,
.stage .rotator-layer.is-zoom-out {
  animation-duration: var(--zoom-ms, 17.6s);
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.stage .rotator-layer.is-zoom-in {
  animation-name: stage-zoom-in;
}

.stage .rotator-layer.is-zoom-out {
  animation-name: stage-zoom-out;
}

@keyframes stage-zoom-in {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.12);
  }
}

@keyframes stage-zoom-out {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}

@keyframes stage-zoom-in-phone {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.3);
  }
}

@keyframes stage-zoom-out-phone {
  from {
    transform: scale(1.3);
  }
  to {
    transform: scale(1);
  }
}

/* ---------- Pages are transparent layers over the stage ---------- */

.main > .page {
  position: absolute;
  inset: 0;
  display: block;
  height: auto;
  min-height: 0;
  z-index: 1;
  background: transparent;
}

.page[hidden] {
  display: none;
}

.page.is-active {
  z-index: 2;
}

.page.is-opening {
  z-index: 3;
}

.page.is-closing {
  z-index: 4;
  pointer-events: none;
}

.page.is-held {
  visibility: hidden !important;
}

.page--split {
  display: block;
}

#page-about.page--split,
#page-team.page--split,
#page-podcast.page--split {
  position: absolute;
  inset: 0;
}

/* ---------- Home ---------- */

.hero {
  position: absolute;
  inset: 0;
  height: auto;
  min-height: 0;
  background: transparent;
  overflow: visible;
}

.hero__content {
  position: absolute;
  top: auto;
  right: auto;
  bottom: clamp(2.4rem, 5vw, 4.4rem);
  left: clamp(1.4rem, 3.2vw, 3.2rem);
  display: block;
  padding: 0;
  z-index: 3;
  pointer-events: none;
}

.hero__inner {
  position: static;
  width: auto;
  max-width: min(60vw, 720px);
  margin: 0;
  color: #fff;
  pointer-events: auto;
}

.hero__title {
  display: flex;
  flex-direction: column;
  margin: 0 0 1.1rem;
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, min(3.2vw, 6.4vh), 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.012em;
  white-space: normal;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

/* reveal mask: padded on both sides so accents and descenders are never shaved */
.hero__title-line {
  display: block;
  overflow: hidden;
  padding: 0.06em 0;
  margin: -0.06em 0;
}

.hero__title-text {
  display: block;
}

#page-home.is-title-arriving .hero__title-text {
  animation: line-up var(--t-enter) var(--ease-out) both;
}

#page-home.is-title-arriving .hero__title-line:nth-child(2) .hero__title-text {
  animation-delay: 0.1s;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.62rem;
}

#page-home.is-title-arriving .hero__actions .hero__action {
  animation: rise-in 0.9s var(--ease-out) both;
  animation-delay: 0.3s;
}

#page-home.is-title-leaving .hero__inner {
  animation: lift-away 0.6s var(--ease-soft) forwards;
}

/* coming back to home: title and button wait until the previous page is fully gone */
#page-home.is-title-held .hero__inner,
#page-home.is-title-held .scroll-hint {
  opacity: 0;
  visibility: hidden;
}

#page-home.is-title-leaving .scroll-hint,
.main.has-chapter .scroll-hint {
  opacity: 0;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 3;
  width: 1px;
  height: 52px;
  overflow: hidden;
  transform: translateX(-50%);
  opacity: 0.85;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.scroll-hint__line {
  display: block;
  width: 1px;
  height: 100%;
  background: linear-gradient(#fff, rgba(255, 255, 255, 0));
  animation: hint-drop 2.3s var(--ease-soft) infinite;
}

/* ---------- Chapter surfaces (the veil) ---------- */

.split__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: auto;
  min-height: 0;
  background: transparent;
  cursor: pointer;
}

.page--contact .contact-panel {
  position: absolute;
  inset: 0;
  height: auto;
  min-height: 0;
  background: transparent;
  cursor: pointer;
}

.contact-panel__fade {
  display: none;
}

.split__content--about,
.split__content--team,
.contact-panel__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 1;
  width: var(--veil-w);
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: var(--veil-pad-y) var(--veil-pad-x);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 42, 75, 0.22) transparent;
  color: var(--text);
  cursor: auto;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.84) 50%,
    rgba(255, 255, 255, 0.94) 100%
  );
  border-left: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: -1px 0 0 rgba(11, 42, 75, 0.16);
  backdrop-filter: blur(3px) saturate(110%);
  -webkit-backdrop-filter: blur(3px) saturate(110%);
  -webkit-mask-image: none;
  mask-image: none;
}

.about-content,
.team-content,
.contact-panel__box {
  width: min(100%, 640px);
  max-height: none;
  margin: auto; /* center the text block inside the frosted card */
  padding: 0;
}

#page-about .about-content {
  --about-fit: 1;
}

#page-team .team-list__item {
  min-width: 0;
}

/* stagger index for every content block */
.about-content > *,
.team-content > *,
.contact-panel__box > * {
  --i: 0;
}

.about-content > :nth-child(2),
.team-content > :nth-child(2),
.contact-panel__box > :nth-child(2) {
  --i: 1;
}

.about-content > :nth-child(3),
.team-content > :nth-child(3),
.contact-panel__box > :nth-child(3) {
  --i: 2;
}

.about-content > :nth-child(4),
.team-content > :nth-child(4),
.contact-panel__box > :nth-child(4) {
  --i: 3;
}

.about-content > :nth-child(n + 5),
.team-content > :nth-child(n + 5),
.contact-panel__box > :nth-child(n + 5) {
  --i: 4;
}

.split__title {
  position: relative;
  margin: 0 0 clamp(0.7rem, 1.9vh, 1rem);
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, min(2.5vw, 4.6vh), 2.7rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: left;
}

.split__title::after {
  content: "";
  display: block;
  width: 2.6rem;
  height: 2px;
  margin: clamp(0.55rem, 1.5vh, 0.8rem) 0 0;
  background: var(--moss);
}

#page-about .split__title {
  margin-bottom: calc(0.85rem * var(--about-fit));
  font-size: calc(clamp(1.6rem, min(2.35vw, 4.4vh), 2.5rem) * var(--about-fit));
}

#page-about .split__title::after {
  margin-top: calc(0.65rem * var(--about-fit));
}

#page-about .split__lead,
#page-about .split__text,
#page-about .split__text p {
  width: 100%;
  max-width: none;
  text-align: justify;
  text-align-last: start;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: wrap;
}

#page-about .split__lead {
  margin: 0 0 calc(1rem * var(--about-fit));
}

/* same lead type for About and Podcast — shared so neither can drift;
   specificity beats the legacy 18px rule in main.css */
#page-about .split__content--about .split__lead,
#page-podcast .split__content--podcast .podcast-lead {
  font-family: var(--font-sans);
  font-size: clamp(1.02rem, 1.12vw, 1.22rem);
  font-weight: 300;
  line-height: 1.45;
  color: var(--moss);
}

#page-about .split__text p {
  margin: 0 0 calc(0.8rem * var(--about-fit));
  font-family: var(--font-sans);
  font-size: calc(clamp(0.9rem, 0.98vw, 1.04rem) * var(--about-fit));
  font-weight: 400;
  line-height: calc(1.55 - (1 - var(--about-fit)) * 0.6);
  color: var(--text);
}

#page-about .split__text p:last-child {
  margin-bottom: 0;
}

#page-about .about-actions {
  margin-top: calc(0.95rem * var(--about-fit));
}

#page-about .about-more {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: calc(0.82rem * var(--about-fit));
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--moss);
  text-decoration: none;
  border-bottom: 1px solid rgba(88, 151, 134, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease;
}

#page-about .about-more::before,
#page-about #about-philo-link::before {
  content: none !important;
  display: none !important;
}

#page-about .about-more:hover,
#page-about .about-more:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

#page-about .about-more:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  #page-about .split__content--about {
    overflow: hidden;
  }

  #page-about .split__content--about.is-overflowing {
    overflow-y: auto;
  }
}

.about-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.1rem;
}

/* contact */
.contact-panel__overlay {
  padding: 0;
}

.contact-panel__box {
  position: relative;
  z-index: 1;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-content: center;
  align-items: stretch;
  justify-items: start;
  gap: 1.35rem 1.15rem;
  margin: auto 0;
  padding: var(--veil-pad-y) var(--veil-pad-x);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}

.contact-panel__box .contact-block {
  grid-column: 1;
  width: 100%;
  margin: 0;
  pointer-events: auto;
}

.contact-block__label {
  margin: 0 0 0.5rem;
  font-family: var(--font-sans);
  font-size: clamp(1.45rem, 1.8vw, 2rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
}

.contact-block__text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 0.98vw, 1.04rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
}

.contact-block__text a {
  color: var(--ink);
  transition: color 0.3s ease;
}

.contact-block__text a:hover {
  color: var(--moss);
}

.contact-map {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 56%;
  height: auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  pointer-events: auto;
}

.contact-map__view {
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 8%, #000 24%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 8%, #000 24%);
}

.is-entering .contact-map {
  animation: map-slide-in 0.95s var(--ease-out) 0.9s both;
}

#page-contact .contact-panel__overlay.is-entering.from-team .contact-map {
  animation-duration: 0.72s;
  animation-delay: 0.42s;
}

#page-contact .contact-panel__overlay.is-entering.from-team .contact-panel__box > * {
  animation-duration: 0.7s;
  animation-delay: 0.08s;
}

.is-leaving .contact-map {
  animation: map-slide-out 0.78s var(--ease-in) 0.42s both;
}

#page-contact .contact-panel__overlay.is-leaving.to-home {
  animation: veil-sink 0.75s var(--ease-in) 0.42s both;
}

#page-contact .contact-panel__overlay.is-leaving.to-home .contact-map {
  animation-duration: 0.48s;
  animation-delay: 0s;
}

@keyframes map-slide-in {
  from {
    opacity: 0;
    transform: translate3d(100%, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes map-slide-out {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translate3d(108%, 0, 0);
  }
}


.contact-map__marker {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.contact-map__bird {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: 108px;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

.contact-map__pin {
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 7px rgba(88, 151, 134, 0.22);
}

.contact-map .maplibregl-ctrl-bottom-right {
  right: 16px;
  bottom: 3.4rem;
}

.contact-map .maplibregl-ctrl-bottom-right .maplibregl-ctrl {
  margin: 0;
}

.contact-map .maplibregl-ctrl-attrib {
  font-family: var(--font-sans);
  font-size: 9px;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.92);
}

.contact-map .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) {
  width: 24px;
  height: 24px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 1px rgba(11, 42, 75, 0.12);
}

.contact-map .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-button {
  position: absolute;
  inset: 0;
  width: 24px;
  height: 24px;
}

.contact-map .maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) .maplibregl-ctrl-attrib-inner {
  display: none;
}

.contact-map .maplibregl-ctrl-attrib a {
  color: rgba(11, 42, 75, 0.55);
}

.contact-map .maplibregl-ctrl-group {
  border: 1px solid rgba(11, 42, 75, 0.12);
  border-radius: 2px;
  box-shadow: none;
  overflow: hidden;
}

.contact-map .maplibregl-ctrl-group button {
  width: 26px;
  height: 26px;
}

/* close button */
.about-close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  z-index: 5;
  width: 40px;
  height: 40px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(11, 42, 75, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0;
  line-height: 0;
  box-shadow: none;
  text-shadow: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.about-close::before {
  content: "\00D7";
  display: block;
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  color: currentColor;
  transform: none;
}

.about-close:hover {
  border-color: var(--moss);
  background: #fff;
  color: var(--moss);
  transform: none;
}

/* ---------- Chapter transitions (desktop stage) ---------- */

.is-entering .about-content > *,
.is-entering .team-content > *,
.is-entering .contact-panel__box > * {
  animation: rise-in 1.15s var(--ease-out) both;
  animation-delay: calc(0.2s + var(--i) * 0.16s);
}

.is-entering .about-content > .split__text,
.is-entering .about-content > .about-actions,
.is-leaving .about-content > .split__text,
.is-leaving .about-content > .about-actions,
.is-entering .team-content > .team-list,
.is-leaving .team-content > .team-list {
  animation: none;
}

.is-entering .split__text > p,
.is-entering .about-actions > a,
.is-entering .team-list__item {
  animation: rise-in 1.15s var(--ease-out) both;
}

.is-entering .split__text > p:nth-child(1) { animation-delay: 0.52s; }
.is-entering .split__text > p:nth-child(2) { animation-delay: 0.72s; }
.is-entering .about-actions > a:nth-child(1) { animation-delay: 0.92s; }
.is-entering .about-actions > a:nth-child(2) { animation-delay: 1.1s; }
.is-entering .team-list__item:nth-child(1) { animation-delay: 0.68s; }
.is-entering .team-list__item:nth-child(2) { animation-delay: 0.86s; }
.is-entering .team-list__item:nth-child(3) { animation-delay: 1.04s; }

.is-entering.backward .about-content > *,
.is-entering.backward .team-content > *,
.is-entering.backward .contact-panel__box > *,
.is-entering.backward .split__text > p,
.is-entering.backward .about-actions > a,
.is-entering.backward .team-list__item {
  animation-name: drop-in;
}

.is-entering.from-home {
  animation: veil-rise 1s var(--ease-out) both;
}

.is-leaving {
  pointer-events: none;
}

.is-leaving .about-content > *,
.is-leaving .team-content > *,
.is-leaving .contact-panel__box > * {
  animation: lift-away var(--t-leave) var(--ease-soft) both;
  animation-delay: calc(var(--i) * 0.04s);
}

.is-leaving .split__text > p,
.is-leaving .about-actions > a,
.is-leaving .team-list__item {
  animation: lift-away var(--t-leave) var(--ease-soft) both;
}

.is-leaving .split__text > p:nth-child(1) { animation-delay: 0.06s; }
.is-leaving .split__text > p:nth-child(2) { animation-delay: 0.12s; }
.is-leaving .about-actions > a:nth-child(1) { animation-delay: 0.18s; }
.is-leaving .about-actions > a:nth-child(2) { animation-delay: 0.24s; }
.is-leaving .team-list__item:nth-child(1) { animation-delay: 0.08s; }
.is-leaving .team-list__item:nth-child(2) { animation-delay: 0.14s; }
.is-leaving .team-list__item:nth-child(3) { animation-delay: 0.2s; }

.is-leaving.backward .about-content > *,
.is-leaving.backward .team-content > *,
.is-leaving.backward .contact-panel__box > *,
.is-leaving.backward .split__text > p,
.is-leaving.backward .about-actions > a,
.is-leaving.backward .team-list__item,
.is-leaving.to-home .about-content > *,
.is-leaving.to-home .team-content > *,
.is-leaving.to-home .contact-panel__box > *,
.is-leaving.to-home .split__text > p,
.is-leaving.to-home .about-actions > a,
.is-leaving.to-home .team-list__item {
  animation-name: sink-away;
}

.is-leaving.to-home {
  animation: veil-sink 0.8s var(--ease-in) both;
}

#page-about .split__content--about.is-leaving.to-home {
  animation: veil-sink 0.8s var(--ease-in) 0.48s both;
}

#page-team .is-leaving .team-list__item {
  animation-duration: 0.32s;
  animation-delay: 0s;
}

#page-team .is-leaving .team-list__item:nth-child(2) {
  animation-delay: 0.04s;
}

#page-team .is-leaving .team-list__item:nth-child(3) {
  animation-delay: 0.08s;
}

#page-team .is-entering .team-group {
  animation: team-photo-in 0.9s var(--ease-out) 0.4s both;
}

#page-team .is-leaving .team-group {
  animation: team-photo-out 0.4s var(--ease-in) 0.28s both;
}

@keyframes team-photo-in {
  from {
    opacity: 0;
    transform: translate3d(108%, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes team-photo-out {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translate3d(112%, 0, 0);
  }
}

#page-team .is-leaving .team-content > .split__title {
  animation-duration: 0.32s;
  animation-delay: 0.55s;
}

#page-team .is-leaving.to-contact .team-group {
  animation-duration: 0.32s;
  animation-delay: 0s;
}

#page-team .is-leaving.to-contact .team-list__item {
  animation-name: team-people-up;
  animation-duration: 0.28s;
  animation-delay: 0.34s;
}

#page-team .is-leaving.to-contact .team-list__item:nth-child(2) {
  animation-delay: 0.38s;
}

#page-team .is-leaving.to-contact .team-list__item:nth-child(3) {
  animation-delay: 0.42s;
}

#page-team .is-leaving.to-contact .team-content > .split__title {
  animation-duration: 0.24s;
  animation-delay: 0.7s;
}

@keyframes team-people-up {
  to {
    opacity: 0;
    transform: translate3d(0, -130%, 0);
  }
}

#page-team .split__content--team.is-leaving {
  animation: veil-sink 0.52s var(--ease-in) 0.78s both;
}

#page-team .split__content--team.is-leaving.to-contact {
  animation: none;
}

#page-team .split__content--team.is-leaving.keep-card {
  animation: none;
}

#page-team .team-list {
  width: 100%;
  gap: 1rem clamp(0.55rem, 1vw, 1.6rem);
  margin: 0.5rem 0 0;
  align-items: start;
}

/* names and roles shrink with their column (cqi), so "Victor Gutzwiller" + chevron
   always fit: name ≈ 7.8 × font-size, chevron + gap ≈ 21–25px, role ≈ 8.7 × font-size */
#page-team .team-list__item {
  --name-max: 16.5px;
  --role-max: 13.5px;
  --name-fs: clamp(11px, calc(12.3cqi - 2.6px), var(--name-max));
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  min-width: 0;
  container-type: inline-size;
  container-name: team-card;
}

#page-team .team-list__toggle {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name chevron"
    "role role";
  align-items: center;
  column-gap: clamp(0.45rem, 6cqi, 0.7rem);
  row-gap: 0;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-family: var(--font-sans);
  font-size: inherit;
  text-align: left;
  cursor: pointer;
}

#page-team .team-list__toggle:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}

#page-team .team-group {
  width: 100%;
  /* short windows: crop the photo rather than push the names out of view */
  max-height: max(6rem, calc(100vh - 26rem));
  margin: 0 0 clamp(0.8rem, min(1.6vw, 2.4vh), 1.55rem);
  aspect-ratio: 16 / 6.4;
}

#page-team .split__title {
  font-size: clamp(1.7rem, min(2.7vw, 5vh), 2.9rem);
}

#page-team .team-list__name {
  grid-area: name;
  display: block;
  min-width: 0;
  margin: 0;
  font-size: var(--name-fs);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--ink);
  transition: color 0.25s ease;
}

#page-team .team-list__role {
  grid-area: role;
  justify-self: start;
  display: block;
  margin: 0.1rem 0 0;
  font-size: max(10px, min(var(--role-max), 11.2cqi, calc(var(--name-fs) * 0.84)));
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--moss);
}

/* last resort for extremely narrow columns: wrap rather than collide */
@container team-card (max-width: 7.6rem) {
  #page-team .team-list__name,
  #page-team .team-list__role {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

#page-team .team-list__role::after {
  width: 1.35rem;
  height: 1px;
  margin-top: 0.45rem;
  background: rgba(88, 151, 134, 0.45);
  transition: width 0.4s var(--ease-out), background 0.25s ease, height 0.25s ease;
}

#page-team .team-list__toggle:hover .team-list__name,
#page-team .team-list__item.is-open .team-list__name {
  color: var(--moss);
}

/* chevron sits beside the name — never on top of it */
#page-team .team-list__chevron {
  grid-area: chevron;
  position: static;
  top: auto;
  right: auto;
  box-sizing: content-box;
  width: 0.42rem;
  height: 0.42rem;
  margin: 0.2rem 0.1rem 0 0;
  padding: 0.12rem;
  border-right: 1.5px solid var(--moss);
  border-bottom: 1.5px solid var(--moss);
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
  transform-origin: 50% 50%;
  transition: transform 0.35s var(--ease-out);
  justify-self: end;
  align-self: start;
  flex-shrink: 0;
}

#page-team .team-list__toggle:hover .team-list__chevron {
  transform: rotate(45deg) translate(2px, 2px);
}

#page-team .team-list__item.is-open .team-list__chevron {
  transform: rotate(-135deg);
}

#page-team .team-list__item.is-open .team-list__role::after {
  width: 100%;
  height: 2px;
  background: var(--moss);
}

#page-team .team-list__icons {
  position: static;
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  margin: 0.6rem 0 0;
}

#page-team .team-bios {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#page-team .team-bios.is-open {
  grid-template-rows: 1fr;
}

#page-team .team-bios__clip {
  display: grid;
  min-height: 0;
  overflow: hidden;
}

#page-team .team-bios.is-open .team-bios__clip {
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(11, 42, 75, 0.12);
}

#page-team .team-bio,
#page-team .team-bio[hidden] {
  display: block;
  grid-area: 1 / 1;
  margin: 0;
  max-width: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  text-align: justify;
  text-align-last: start;
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

#page-team .team-bio.is-shown {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

#page-team .team-mobile__bio {
  width: 100%;
  text-align: justify;
  text-align-last: start;
  hyphens: auto;
  -webkit-hyphens: auto;
}

#page-about .split__content--about.is-entering.from-team .about-content > *,
#page-about .split__content--about.is-entering.from-team .split__text > p,
#page-about .split__content--about.is-entering.from-team .about-actions > a {
  animation-duration: 0.65s;
  animation-delay: 0.08s;
}

#page-team .split__content--team.is-leaving.text-only {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.84) 50%,
    rgba(255, 255, 255, 0.94) 100%
  );
  backdrop-filter: blur(3px) saturate(110%);
  -webkit-backdrop-filter: blur(3px) saturate(110%);
}

.is-leaving.text-only {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@keyframes veil-rise {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes veil-sink {
  from {
    clip-path: inset(0 0 0 0);
  }
  to {
    clip-path: inset(100% 0 0 0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translate3d(0, 88px, 0);
  }
  to {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@keyframes drop-in {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translate3d(0, -76px, 0);
  }
  to {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@keyframes lift-away {
  to {
    opacity: 0;
    transform: translate3d(0, -28%, 0);
  }
}

@keyframes sink-away {
  to {
    opacity: 0;
    transform: translate3d(0, 26%, 0);
  }
}

@keyframes line-up {
  from {
    transform: translate3d(0, 112%, 0);
  }
  to {
    transform: none;
  }
}

@keyframes hint-drop {
  0% {
    transform: translateY(-100%);
  }
  55% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100%);
  }
}

/* ---------- Chapter rail (desktop menu) ---------- */

.site-nav {
  position: absolute;
  top: 50%;
  right: var(--layout-side-padding);
  bottom: auto;
  left: auto;
  z-index: 20;
  width: var(--nav-col);
  padding: 0 0 0 var(--nav-content-inset);
  transform: translateY(-50%);
  pointer-events: auto;
}

.site-nav__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 1.1vw, 1.15rem);
  margin: 0;
  padding: 0 0 0 1.15rem;
  list-style: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-nav__list::before {
  content: "";
  position: absolute;
  top: 0.15em;
  bottom: 0.15em;
  left: 0;
  width: 1px;
  background: rgba(11, 42, 75, 0.14);
}

.site-nav li {
  --i: 0;
  margin: 0;
}

.site-nav.is-revealed li {
  animation: rise-in 0.9s var(--ease-out) both;
  animation-delay: calc(0.25s + var(--i) * 0.07s);
}

.site-nav li:nth-child(2) {
  --i: 1;
}

.site-nav li:nth-child(3) {
  --i: 2;
}

.site-nav li:nth-child(4) {
  --i: 3;
}

.site-nav li:nth-child(5) {
  --i: 4;
}

.site-nav a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.12vw, 1.4rem);
  line-height: 1.25;
  color: #111;
  text-align: left;
  text-decoration: none;
  transition: color 0.35s ease, transform 0.55s var(--ease-out);
}

.site-nav a::after {
  content: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--moss);
}

.site-nav a.is-active {
  transform: translateX(4px);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 4px;
  border-radius: 2px;
}

.site-nav__marker {
  position: absolute;
  top: 0;
  left: var(--nav-content-inset);
  width: 2px;
  height: var(--mh, 1.4em);
  border-radius: 2px;
  background: var(--moss);
  transform: translate3d(0, var(--my, 0px), 0);
  transition: transform 0.75s var(--ease-out), height 0.4s var(--ease-out), opacity 0.6s ease;
  opacity: 0;
  pointer-events: none;
}

.site-nav.is-ready .site-nav__marker {
  opacity: 1;
}

/* ---------- Compact heights and tablets ---------- */

@media (min-width: 768px) {
  .header__brand {
    position: static;
    transform: none;
    z-index: auto;
  }

  .lang-menu {
    position: relative;
    top: auto;
    right: auto;
    width: 118px;
    margin: 0 0 0 var(--nav-content-inset);
    justify-self: start;
    display: block;
  }

  /* footer band: 64px on normal screens, slimmer on low windows */
  :root {
    --screen-bottom-border: clamp(2.25rem, 6.6vh, 4rem);
  }

  /* the stage fills exactly the room between header and footer,
     whatever height the header ends up with */
  .site-shell {
    display: flex;
    flex-direction: column;
  }

  .header {
    flex: none;
    min-height: 0;
    padding-top: clamp(0.9rem, 2.6vh, 1.45rem);
    padding-bottom: clamp(0.6rem, 1.6vh, 1rem);
  }

  /* low windows (1080p at 125–150 %, small browser windows): smaller logo, more stage */
  .header__logo {
    width: clamp(120px, min(24vw, 25vh), 240px);
  }

  .layout {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
  }

  .main {
    height: auto;
    min-height: 0;
  }
}

/* tablet look (≤1050 wide or <900 tall) frames the stage with 0.7rem instead of 2rem:
   keep the chapter rail inside its own column, off the panel edge */
@media (min-width: 768px) and (max-width: 1050.98px), (min-width: 768px) and (max-height: 899.98px) {
  .site-nav {
    right: 0.7rem;
  }

  #page-team .team-list__item {
    padding-right: clamp(0.5rem, 0.8vw, 0.72rem);
    padding-left: clamp(0.5rem, 0.8vw, 0.72rem);
  }
}

/* wide / ultrawide: keep photo ≈ text (50/50), let the content column grow */
@media (min-width: 1600px) {
  .about-content,
  .team-content {
    width: min(100%, 780px);
  }

  #page-team .team-group {
    aspect-ratio: 16 / 6.8;
  }
}

@media (min-width: 1920px) {
  .about-content,
  .team-content {
    width: min(100%, 880px);
  }

  #page-team .split__title {
    font-size: clamp(2.15rem, min(2.4vw, 5vh), 3.05rem);
  }

  #page-team .team-group {
    aspect-ratio: 16 / 7;
    margin-bottom: clamp(1.1rem, min(1.5vw, 2.4vh), 1.7rem);
  }

  #page-team .team-list__item {
    --name-max: 17.5px;
    --role-max: 14px;
  }
}

@media (min-width: 2400px) {
  .about-content,
  .team-content {
    width: min(100%, 980px);
  }

  #page-team .team-group {
    aspect-ratio: 16 / 7.2;
  }
}

@media (min-width: 768px) and (max-height: 820px) {
  .contact-block__text {
    font-size: clamp(0.84rem, 0.92vw, 0.96rem);
    line-height: 1.5;
  }

  .about-actions {
    margin-top: 0.9rem;
  }
}

/* ---------- Phone: one continuous scroll over the framed stage ---------- */

@media (max-width: 767.98px) {
  html.is-scroll-doc,
  html.is-scroll-doc body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  html.is-scroll-doc .site-shell {
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding: 0;
  }

  html.is-scroll-doc .header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 0;
    padding: 1rem var(--m-gutter) 0.7rem;
    column-gap: 0;
    background: #fff;
  }

  html.is-scroll-doc .header__brand {
    position: static;
    transform: none;
  }

  html.is-scroll-doc .header__logo {
    width: clamp(132px, 38vw, 160px);
  }

  html.is-scroll-doc .lang-menu {
    position: relative;
    inset: auto;
    width: auto;
    margin: 0;
    transform: none;
    justify-content: flex-end;
  }

  /* the language list drops straight below its pill */
  html.is-scroll-doc .lang-menu__list {
    top: calc(100% + 0.4rem);
    right: 0;
    left: auto;
    min-width: 100%;
    margin: 0;
    transform: none;
    border: 1px solid rgba(11, 42, 75, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    box-shadow: 0 10px 26px rgba(6, 18, 28, 0.16);
  }

  html.is-scroll-doc .lang-menu__option {
    padding: 0.62rem 0.9rem;
  }

  html.is-scroll-doc .layout {
    display: block;
    height: auto;
    padding: 0 var(--m-frame);
  }

  /* the photo is fixed to the screen but shows only behind the chapters:
     when the page springs back at either end, white shows beyond header and footer */
  html.is-scroll-doc .main {
    position: static;
    height: auto;
    min-height: 0;
    overflow: visible;
    isolation: auto;
    clip-path: inset(0 -100vw);
  }

  html.is-scroll-doc .stage {
    position: fixed;
    top: var(--m-frame);
    right: var(--m-frame);
    bottom: var(--m-frame);
    left: var(--m-frame);
    z-index: 0;
  }

  /* a phone shows a narrow slice of the photo: the drift needs more travel to be seen */
  html.is-scroll-doc .stage .rotator-layer.is-zoom-in {
    animation-name: stage-zoom-in-phone;
  }

  html.is-scroll-doc .stage .rotator-layer.is-zoom-out {
    animation-name: stage-zoom-out-phone;
  }

  html.is-scroll-doc .main > .page,
  html.is-scroll-doc .page[hidden],
  html.is-scroll-doc #page-home.page--home,
  html.is-scroll-doc #page-about.page--split,
  html.is-scroll-doc #page-team.page--split,
  html.is-scroll-doc #page-podcast.page--split,
  html.is-scroll-doc #page-contact.page--contact {
    position: relative;
    inset: auto;
    display: block;
    height: auto;
    z-index: 1;
  }

  html.is-scroll-doc #page-home.page--home {
    height: calc(100svh - 5.4rem);
    min-height: 480px;
  }

  /* no bird on phones: the hero takes touches like the rest of the page */
  html.is-scroll-doc .hero {
    position: relative;
    height: 100%;
    touch-action: auto;
  }

  html.is-scroll-doc .hero__touch-bird {
    display: none;
  }

  html.is-scroll-doc .hero__content {
    left: 1.1rem;
    right: 1.1rem;
    bottom: 5.9rem;
  }

  html.is-scroll-doc .hero__inner {
    max-width: 100%;
    transform: translate3d(0, calc(var(--home-p, 0) * -48px), 0);
    opacity: calc(1 - var(--home-p, 0) * 1.15);
  }

  html.is-scroll-doc .hero__title {
    font-size: clamp(1.75rem, 7.4vw, 2.3rem);
    margin-bottom: 0.9rem;
  }

  html.is-scroll-doc .scroll-hint {
    left: auto;
    right: 1.2rem;
    bottom: 5.6rem;
    transform: none;
    height: 44px;
  }

  html.is-scroll-doc #page-about,
  html.is-scroll-doc #page-team,
  html.is-scroll-doc #page-podcast,
  html.is-scroll-doc #page-contact {
    /* a chapter starts a frame's width early: scrolled to its top, its card sits
       as far below the frame as from the sides, and still a gap from the card before */
    margin-top: calc(-1 * var(--m-frame));
    padding: var(--m-gutter) 0 0;
  }

  html.is-scroll-doc #page-contact {
    padding-bottom: var(--m-gap);
  }

  html.is-scroll-doc .split__visual {
    display: none;
  }

  html.is-scroll-doc .page--contact .contact-panel {
    position: relative;
    inset: auto;
    height: auto;
  }

  html.is-scroll-doc .split__content--about,
  html.is-scroll-doc .split__content--team,
  html.is-scroll-doc .contact-panel__overlay {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    height: auto;
    margin: 0 var(--m-gap);
    padding: 1.7rem 1.2rem 2rem;
    display: block;
    overflow: visible;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0.84) 50%,
      rgba(255, 255, 255, 0.94) 100%
    );
    box-shadow: 0 18px 50px rgba(6, 18, 28, 0.14);
    backdrop-filter: blur(3px) saturate(110%);
    -webkit-backdrop-filter: blur(3px) saturate(110%);
    -webkit-mask-image: none;
    mask-image: none;
    clip-path: none;
    animation: none;
  }

  html.is-scroll-doc .about-content,
  html.is-scroll-doc .team-content,
  html.is-scroll-doc .contact-panel__box {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    grid-template-columns: minmax(0, 1fr);
    pointer-events: auto;
  }

  html.is-scroll-doc .is-entering .contact-map,
  html.is-scroll-doc .is-leaving .contact-map {
    animation: none;
  }

  html.is-scroll-doc .contact-map {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    height: 220px;
    min-height: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    -webkit-mask-image: none;
    mask-image: none;
  }

  html.is-scroll-doc .contact-map__view {
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* feathered on every side so the map melts into the glass panel;
     only the map image fades, the attribution stays legible */
  html.is-scroll-doc .contact-map .maplibregl-canvas {
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, #000 17%, #000 83%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(90deg, transparent 0%, #000 17%, #000 83%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
    mask-composite: intersect;
  }

  html.is-scroll-doc .contact-map__bird {
    width: 84px;
  }

  html.is-scroll-doc .contact-map .maplibregl-ctrl-bottom-right {
    right: 10px;
    bottom: 10px;
  }

  /* on a phone the map is a picture, not a control: a swipe over it scrolls the page */
  html.is-scroll-doc .contact-map__view {
    pointer-events: none;
  }

  html.is-scroll-doc .contact-map .maplibregl-ctrl-top-right {
    display: none;
  }


  html.is-scroll-doc .team-content {
    transform: none !important;
    transition: none !important;
  }

  /* a panel with backdrop-filter hides the photo from blurs inside it:
     its frost moves to a layer underneath, so the cards can blur the photo */
  html.is-scroll-doc #page-team .split__content--team {
    isolation: isolate;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html.is-scroll-doc #page-team .split__content--team::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    backdrop-filter: blur(3px) saturate(110%);
    -webkit-backdrop-filter: blur(3px) saturate(110%);
    pointer-events: none;
  }

  /* frosted-glass team cards */
  html.is-scroll-doc #page-team .team-mobile__card {
    border: 1px solid rgba(255, 255, 255, 0.78);
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0.16) 100%);
    box-shadow: 0 12px 30px rgba(11, 42, 75, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
  }

  /* the whole card opens and closes its bio */
  html.is-scroll-doc #page-team .team-mobile__card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    /* a quick second tap does not zoom into the card */
    touch-action: manipulation;
    transition: transform 0.35s var(--ease-out);
  }

  /* a pressed card gives a little */
  @media (prefers-reduced-motion: no-preference) {
    html.is-scroll-doc #page-team .team-mobile__card:active:not(:has(a:not(.team-mobile__name):active)) {
      transform: scale(0.985);
      transition: transform 0.16s ease 0.05s;
    }
  }

  /* bios closed while the team is off screen fold away at once */
  html.is-scroll-doc #page-team .team-mobile.is-instant .team-mobile__bio-fold,
  html.is-scroll-doc #page-team .team-mobile.is-instant .team-mobile__bio {
    transition: none;
  }

  html.is-scroll-doc .about-close {
    display: none;
  }

  html.is-scroll-doc .split__title {
    font-size: clamp(1.7rem, 7vw, 2.1rem);
  }

  html.is-scroll-doc #page-about .split__lead,
  html.is-scroll-doc #page-about .split__text p {
    max-width: none;
    width: 100%;
    text-align: justify;
    text-align-last: start;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  html.is-scroll-doc #page-about .split__content--about .split__lead,
  html.is-scroll-doc #page-podcast .split__content--podcast .podcast-lead {
    font-size: 1.05rem;
    line-height: 1.45;
  }

  html.is-scroll-doc #page-about .split__text p {
    font-size: 0.95rem;
    line-height: 1.62;
  }

  html.is-scroll-doc .contact-block__text {
    font-size: 0.95rem;
    line-height: 1.62;
  }

  html.is-scroll-doc .about-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  /* chapters are painted settled: a delayed rise on first scroll looked like a reload */
  html.is-scroll-doc .about-content > *,
  html.is-scroll-doc .team-content > *,
  html.is-scroll-doc .contact-panel__box > * {
    animation: none;
  }

  /* pill menu */
  html.is-scroll-doc .site-nav {
    position: fixed;
    top: auto;
    right: var(--m-gutter);
    bottom: calc(0.75rem + var(--safe-bottom));
    left: var(--m-gutter);
    z-index: 60;
    width: auto;
    padding: 0;
    transform: none;
  }

  html.is-scroll-doc .site-nav__list {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 0;
    padding: 0.36rem 0.4rem;
    border: 1px solid rgba(11, 42, 75, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    box-shadow:
      0 16px 40px rgba(6, 18, 28, 0.26),
      0 3px 10px rgba(6, 18, 28, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }

  html.is-scroll-doc .site-nav__list::before {
    display: none;
  }

  /* sized by their labels, so long ones ("Startseite") never get squeezed */
  html.is-scroll-doc .site-nav li {
    flex: 1 1 auto;
    animation: none;
  }

  html.is-scroll-doc .site-nav a {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    padding: 0.66rem 0.2rem 0.8rem;
    font-size: clamp(0.72rem, 3.15vw, 0.82rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0.005em;
    white-space: nowrap;
    color: var(--ink);
    text-align: center;
    transform: none;
  }

  html.is-scroll-doc .site-nav a.is-active {
    transform: none;
    color: var(--moss);
  }

  html.is-scroll-doc .site-nav__marker {
    top: auto;
    bottom: 0.6rem;
    left: 0;
    width: var(--mw, 28px);
    height: 2px;
    border-radius: 2px;
    transform: translate3d(var(--mx, 0px), 0, 0);
    transition: transform 0.6s var(--ease-out), width 0.4s var(--ease-out);
  }

  /* footer at the end of the scroll: a full-width white band that closes
     the frame (the legacy phone rule pins it with left/bottom offsets) */
  html.is-scroll-doc .site-bottom-note {
    position: relative;
    inset: auto;
    z-index: 2;
    display: block;
    margin: 0;
    padding: 1.5rem 1.2rem calc(5.8rem + var(--safe-bottom));
    background: #fff;
    color: rgba(11, 42, 75, 0.62);
    font-size: 0.62rem;
    line-height: 1.6;
    text-align: center;
  }

  html.is-scroll-doc .site-bottom-note > span:first-child {
    margin-bottom: 0.35rem;
    font-size: 0.6rem;
    text-align: center;
  }

  html.is-scroll-doc .site-bottom-note__disclosures,
  html.is-scroll-doc .site-bottom-note__credit {
    font-size: 0.66rem;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .stage,
  .stage .rotator-layer,
  .scroll-hint__line,
  .site-nav li,
  .is-entering,
  .is-leaving,
  .is-entering .about-content > *,
  .is-entering .team-content > *,
  .is-entering .contact-map,
  .is-leaving .contact-map,
  .is-entering .contact-panel__box > *,
  .is-entering .split__text > p,
  .is-entering .about-actions > a,
  .is-entering .team-list__item,
  .is-leaving .about-content > *,
  .is-leaving .team-content > *,
  .is-leaving .contact-panel__box > *,
  .is-leaving .split__text > p,
  .is-leaving .about-actions > a,
  .is-leaving .team-list__item,
  #page-home.is-title-arriving .hero__title-text,
  #page-home.is-title-arriving .hero__actions .hero__action,
  #page-home.is-title-leaving .hero__inner {
    animation: none !important;
  }

  .scroll-hint {
    display: none;
  }

  .site-nav__marker,
  .site-nav a {
    transition: none;
  }

  #page-team .team-mobile__bio-fold,
  #page-team .team-mobile__bio {
    transition: none;
  }
}

/* ---------- Podcast centre ---------- */

#page-podcast .podcast-lead {
  margin: 0 0 clamp(0.6rem, min(1.8vw, 2.6vh), 1.6rem);
  max-width: 34rem;
}

#page-podcast .podcast-kicker {
  margin: 0 0 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
}

/* featured episode + compact in-page player (fullscreen only via YouTube control) */
#page-podcast .podcast-feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
  padding: 0 0 clamp(0.6rem, 2vh, 1.15rem);
  overflow: visible;
}

/* layout slot stays small; the player pops up centered from it */
#page-podcast .podcast-player-slot {
  position: relative;
  z-index: 1;
  width: clamp(10rem, 14vw, max(13.5rem, min(11.5vw, 22rem)));
  aspect-ratio: 16 / 10;
  flex: none;
}

#page-podcast .podcast-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2px;
  background: #0b2a4b;
  box-shadow: 0 8px 22px rgba(11, 42, 75, 0.14);
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transition:
    width 0.38s var(--ease-out),
    height 0.38s var(--ease-out),
    transform 0.38s var(--ease-out),
    box-shadow 0.38s ease,
    border-radius 0.38s ease;
}

/* popup enlarge only via .is-popped (button), never via :focus-within */
#page-podcast .split__content--podcast:has(.podcast-player-slot.is-popped) {
  overflow: visible;
}

#page-podcast .podcast-content:has(.podcast-player-slot.is-popped),
#page-podcast .podcast-feature:has(.podcast-player-slot.is-popped) {
  overflow: visible;
}

#page-podcast .podcast-player-slot.is-popped {
  z-index: 20;
}

/* while the enter animation still runs, the episode block is a layer of its own:
   lift it, so the popped player never slips under the list below */
#page-podcast .podcast-featured:has(.podcast-player-slot.is-popped) {
  position: relative;
  z-index: 20;
}

/*
  Popped player is position:fixed so it stays above siblings (episode list)
  and outside overflow:hidden ancestors (.main). Without this, the shrink
  button paints on top but clicks fall through ~half the time.
*/
/* the panel's backdrop-filter makes it the containing block: 100% = panel width */
#page-podcast .podcast-player-slot.is-popped .podcast-player {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(max(34rem, 32vw), 72vw, calc((100vh - 14rem) * 16 / 9), calc(100% - 2rem));
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  z-index: 80;
  box-shadow:
    0 24px 60px rgba(11, 42, 75, 0.34),
    0 2px 0 rgba(255, 255, 255, 0.35);
}

#page-podcast .podcast-player:fullscreen,
#page-podcast .podcast-player:-webkit-full-screen {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#page-podcast .podcast-player__poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: linear-gradient(145deg, #0b2a4b 0%, #1d4a5a 58%, #589786 135%);
  color: #fff;
}

#page-podcast .podcast-player__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 42, 75, 0.12) 25%, rgba(11, 42, 75, 0.55) 100%);
  pointer-events: none;
}

#page-podcast .podcast-player__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#page-podcast .podcast-player__badge {
  position: absolute;
  left: 0.7rem;
  bottom: 0.65rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-sans);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

#page-podcast .podcast-player__badge-label {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}

#page-podcast .podcast-player__badge-n {
  margin-top: 0.05rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.02em;
}

#page-podcast .podcast-player__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(11, 42, 75, 0.28);
  transform: translate(-50%, -50%);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

#page-podcast .podcast-player__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.52rem;
  height: 0.6rem;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translate(-35%, -50%);
}

#page-podcast .podcast-player__poster:hover .podcast-player__play,
#page-podcast .podcast-player__poster:focus-visible .podcast-player__play {
  background: var(--moss);
  border-color: var(--moss);
  transform: translate(-50%, -50%) scale(1.04);
}

#page-podcast .podcast-player__poster:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}

#page-podcast .podcast-player__frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

#page-podcast .podcast-player.is-playing .podcast-player__poster {
  display: none;
}

/* phones: the video waits behind the cover. Safari starts it with sound only from a tap
   inside the video itself, so a tap on the middle of the cover passes through to it */
#page-podcast .podcast-player__shield {
  display: none;
}

#page-podcast .podcast-player.is-armed .podcast-player__poster {
  z-index: 2;
}

#page-podcast .podcast-player.is-primed .podcast-player__poster {
  pointer-events: none;
}

#page-podcast .podcast-player.is-primed .podcast-player__shield {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  pointer-events: none;
}

/* the bands at the top and the bottom keep YouTube's links out of reach */
#page-podcast .podcast-player.is-primed .podcast-player__shield::before,
#page-podcast .podcast-player.is-primed .podcast-player__shield::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  pointer-events: auto;
  cursor: pointer;
}

#page-podcast .podcast-player.is-primed .podcast-player__shield::before {
  top: 0;
  height: 30%;
}

#page-podcast .podcast-player.is-primed .podcast-player__shield::after {
  bottom: 0;
  height: 28%;
}

#page-podcast .podcast-player__expand {
  position: absolute;
  right: 0.35rem;
  bottom: 0.35rem;
  z-index: 6;
  width: 1.7rem;
  height: 1.7rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(11, 42, 75, 0.55);
  color: #fff;
  cursor: pointer;
  opacity: 1;
  pointer-events: auto;
  transition: background 0.2s ease, transform 0.25s ease;
}

/* SVG: arrows out (expand) / arrows in (shrink) */
#page-podcast .podcast-player__expand-icon {
  position: absolute;
  inset: 0.22rem;
  width: calc(100% - 0.44rem);
  height: calc(100% - 0.44rem);
  display: block;
  overflow: visible;
}

#page-podcast .podcast-player__expand-icon path {
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#page-podcast .podcast-player__expand-out {
  display: block;
}

#page-podcast .podcast-player__expand-in {
  display: none;
}

#page-podcast .podcast-player__expand.is-open .podcast-player__expand-out {
  display: none;
}

#page-podcast .podcast-player__expand.is-open .podcast-player__expand-in {
  display: block;
}

#page-podcast .podcast-player__expand:hover,
#page-podcast .podcast-player__expand:focus-visible {
  background: var(--moss);
}

#page-podcast .podcast-player__expand:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

#page-podcast .podcast-player:fullscreen,
#page-podcast .podcast-player:-webkit-full-screen {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  background: #000;
}

#page-podcast .podcast-player:fullscreen .podcast-player__frame,
#page-podcast .podcast-player:-webkit-full-screen .podcast-player__frame {
  inset: 0;
}

#page-podcast .podcast-player:fullscreen .podcast-player__expand,
#page-podcast .podcast-player:-webkit-full-screen .podcast-player__expand {
  opacity: 1;
  pointer-events: auto;
  right: 0.7rem;
  bottom: 0.7rem;
  width: 2.2rem;
  height: 2.2rem;
}

#page-podcast .podcast-player__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

#page-podcast .podcast-feature__body {
  margin-top: 0;
  min-width: 0;
}

#page-podcast .podcast-feature__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}

#page-podcast .podcast-meta {
  margin: 0.3rem 0 0;
  font-size: 0.76rem;
  line-height: 1.3;
  color: rgba(11, 42, 75, 0.58);
}

#page-podcast .podcast-feature__text {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text);
}

#page-podcast .podcast-play__icon {
  position: relative;
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid rgba(88, 151, 134, 0.7);
  border-radius: 50%;
  transition: background 0.25s ease, border-color 0.25s ease;
}

#page-podcast .podcast-play__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5rem;
  height: 0.58rem;
  background: var(--moss);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translate(-35%, -50%);
  transition: background 0.25s ease;
}

#page-podcast a.podcast-play:hover,
#page-podcast a.podcast-play:focus-visible {
  color: var(--moss);
}

#page-podcast a.podcast-play:hover .podcast-play__icon,
#page-podcast .podcast-row__inner:hover:not(:disabled) .podcast-play__icon,
#page-podcast a.podcast-play:focus-visible .podcast-play__icon,
#page-podcast .podcast-row__inner:focus-visible .podcast-play__icon {
  background: var(--moss);
  border-color: var(--moss);
}

#page-podcast a.podcast-play:hover .podcast-play__icon::before,
#page-podcast .podcast-row__inner:hover:not(:disabled) .podcast-play__icon::before,
#page-podcast a.podcast-play:focus-visible .podcast-play__icon::before,
#page-podcast .podcast-row__inner:focus-visible .podcast-play__icon::before {
  background: #fff;
}

#page-podcast a.podcast-play:focus-visible,
#page-podcast .podcast-row__inner:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}

#page-podcast .is-soon {
  color: rgba(11, 42, 75, 0.5);
  cursor: default;
}

#page-podcast .is-soon .podcast-play__icon {
  border-color: rgba(11, 42, 75, 0.2);
}

#page-podcast .is-soon .podcast-play__icon::before {
  background: rgba(11, 42, 75, 0.32);
}

/* previous episodes */
#page-podcast .podcast-listwrap {
  padding-top: clamp(0.5rem, 1.8vh, 0.95rem);
  border-top: 1px solid rgba(11, 42, 75, 0.12);
}

#page-podcast .podcast-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

#page-podcast .podcast-row {
  border-bottom: 1px solid rgba(11, 42, 75, 0.08);
}

#page-podcast .podcast-row:last-child {
  border-bottom: 0;
}

#page-podcast .podcast-row__inner {
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: clamp(0.45rem, 1.3vh, 0.7rem) 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

#page-podcast .podcast-row__inner:disabled {
  cursor: default;
}

#page-podcast .podcast-row__n {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: rgba(11, 42, 75, 0.4);
}

#page-podcast .podcast-row__title {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--ink);
  transition: color 0.25s ease;
}

#page-podcast .podcast-row__inner:hover:not(:disabled) .podcast-row__title {
  color: var(--moss);
}

#page-podcast .podcast-row__meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: rgba(11, 42, 75, 0.55);
}

#page-podcast .podcast-row .podcast-play__icon {
  width: 1.55rem;
  height: 1.55rem;
}

#page-podcast .podcast-row .podcast-play__icon::before {
  width: 0.42rem;
  height: 0.5rem;
}

/* listen on */
#page-podcast .podcast-empty {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(11, 42, 75, 0.6);
}

/* transitions */
#page-podcast .split__content--podcast.is-leaving.to-home {
  animation: veil-sink 0.8s var(--ease-in) 0.48s both;
}

#page-podcast .split__content--podcast.is-entering.from-team .team-content > * {
  animation-duration: 0.7s;
  animation-delay: calc(0.06s + var(--i) * 0.08s);
}

/* the end state equals the resting style, so it must not be held: a held
   transform/filter would become the popped player's containing block,
   shrinking it to the episode block instead of the panel */
#page-podcast .split__content--podcast.is-entering .team-content > * {
  animation-fill-mode: backwards;
}

@media (min-width: 2400px) {
  #page-podcast .podcast-lead {
    max-width: 40rem;
  }

  #page-podcast .podcast-feature__title {
    font-size: 1.45rem;
  }

  #page-podcast .podcast-feature__text {
    font-size: 0.95rem;
  }

  #page-podcast .podcast-row__title {
    font-size: 1rem;
  }
}

@media (min-width: 768px) and (max-height: 620px) {
  #page-podcast .podcast-feature__text {
    line-height: 1.45;
  }
}

/* portrait tablets / vertical screens: plenty of height, so the media get more room */
@media (min-width: 768px) and (orientation: portrait) and (min-height: 900px) {
  #page-team .team-group {
    aspect-ratio: 16 / 9;
  }

  #page-podcast .podcast-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.95rem;
  }

  #page-podcast .podcast-player-slot {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  #page-podcast .podcast-player__expand {
    display: none;
  }
}

/* phones: the player takes the full column width, so it is already "big" */
@media (max-width: 767.98px) {
  #page-podcast .podcast-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }

  #page-podcast .podcast-player-slot {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  #page-podcast .podcast-player__expand {
    display: none;
  }
}

/* ---------- Intro: the origami bird (first visit per session) ---------- */

/* has-intro is set in <head> before the first paint, so the page never shows before the intro */
html.has-intro,
html.has-intro body {
  overflow: hidden;
}

html.has-intro .site-shell,
html.has-intro .site-bottom-note {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none !important;
}

/* the page is already in place while the logo flies into the header */
html.has-intro.is-intro-flying .site-shell,
html.has-intro.is-intro-flying .site-bottom-note {
  opacity: 1 !important;
  visibility: visible;
}

html.has-intro.is-intro-flying .header__logo {
  opacity: 0;
  visibility: hidden;
}

html.alsea-origami-active,
html.alsea-origami-active body {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

.alsea-origami-intro {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow: hidden;
  isolation: isolate;
  touch-action: none;
  color: #17314a;
  -webkit-tap-highlight-color: transparent;
}

.alsea-origami-intro .ao-curtain {
  position: absolute;
  inset: 0;
  background: #fff;
  pointer-events: none;
  will-change: opacity;
}

.alsea-origami-intro .ao-stage {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
  pointer-events: none;
}

.alsea-origami-intro .ao-stage > svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

@media (prefers-reduced-motion: reduce) {
  .alsea-origami-intro {
    display: none !important;
  }
}

/* ---------- Cookie consent ---------- */

/* a small card in the lower right corner of the picture (consent.js places it) */
.cc {
  position: fixed;
  right: var(--cc-right, 1.5rem);
  bottom: var(--cc-bottom, 4.5rem);
  z-index: 110;
  box-sizing: border-box;
  width: var(--cc-width, 26rem);
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100vh - var(--cc-bottom, 4.5rem) - 1rem);
  max-height: calc(100dvh - var(--cc-bottom, 4.5rem) - 1rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem 1.1rem 1.05rem;
  border: 1px solid rgba(11, 42, 75, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 18px 44px rgba(11, 42, 75, 0.2),
    0 2px 6px rgba(11, 42, 75, 0.06);
  color: #243239;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.45s var(--ease-out);
}

.cc[hidden] {
  display: none;
}

.cc.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* never over the intro, also when it is replayed */
html.has-intro .cc,
html.alsea-origami-active .cc {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* an open video notice asks for the same consent; settings opened on purpose stay visible */
html.has-video-gate .cc[data-mode="notice"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.cc__view[hidden] {
  display: none;
}

.cc__title {
  margin: 0 0 0.45rem;
  color: #0b2a4b;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

.cc__title:focus {
  outline: none;
}

.cc__text {
  margin: 0 0 0.4rem;
}

.cc__more {
  margin: 0.15rem 0 0;
}

.cc__link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #0b2a4b;
  font: inherit;
  font-weight: 500;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(11, 42, 75, 0.35);
  text-underline-offset: 2px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.cc__link:hover {
  color: var(--moss);
  text-decoration-color: currentColor;
}

/* three buttons of equal weight: refusing is as easy as accepting */
.cc__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.cc.is-stacked .cc__actions {
  grid-template-columns: minmax(0, 1fr);
}

.cc__btn {
  min-height: 2.25rem;
  margin: 0;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(11, 42, 75, 0.3);
  border-radius: 999px;
  background: #fff;
  color: #0b2a4b;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.cc__btn:hover {
  border-color: var(--moss);
  color: var(--moss);
}

.cc__btn:focus-visible,
.cc__link:focus-visible,
.cc__close:focus-visible,
.cc__switch:focus-visible {
  outline: 2px solid rgba(88, 151, 134, 0.6);
  outline-offset: 2px;
}

.cc__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.cc__close {
  flex: none;
  margin: -0.4rem -0.45rem 0 0;
  padding: 0.1rem 0.3rem;
  border: 0;
  background: transparent;
  color: var(--moss);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.cc__close[hidden] {
  display: none;
}

.cc__purposes {
  margin: 0.15rem 0 0.6rem;
  padding: 0;
  list-style: none;
}

.cc__purpose {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(11, 42, 75, 0.1);
}

.cc__purpose:last-child {
  border-bottom: 1px solid rgba(11, 42, 75, 0.1);
}

.cc__purpose-title {
  display: block;
  color: #0b2a4b;
  font-weight: 500;
  cursor: pointer;
}

span.cc__purpose-title {
  cursor: default;
}

.cc__purpose-text {
  margin: 0.1rem 0 0;
  color: #56636d;
  font-size: 0.74rem;
  line-height: 1.4;
}

.cc__always {
  flex: none;
  color: var(--moss);
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}

/* on/off switch; every optional purpose starts switched off */
.cc__switch {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: none;
  box-sizing: border-box;
  width: 2.3rem;
  height: 1.3rem;
  margin: 0;
  border: 1px solid rgba(11, 42, 75, 0.32);
  border-radius: 999px;
  background: #e8edf0;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.cc__switch::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.12rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(11, 42, 75, 0.32);
  transform: translateY(-50%);
  transition: transform 0.2s var(--ease-out);
}

.cc__switch:checked {
  border-color: var(--moss);
  background: var(--moss);
}

.cc__switch:checked::before {
  transform: translate(calc(2.3rem - 2px - 0.95rem - 0.24rem), -50%);
}

/* phones: full card width, just above the navigation pill */
@media (max-width: 767.98px) {
  html.is-scroll-doc .cc {
    right: var(--m-gutter);
    bottom: var(--cc-bottom, calc(4.6rem + var(--safe-bottom)));
    left: var(--m-gutter);
    width: auto;
    max-width: none;
    max-height: calc(100vh - var(--cc-bottom, 4.6rem) - 0.9rem);
    max-height: calc(100dvh - var(--cc-bottom, 4.6rem) - 0.9rem - env(safe-area-inset-top, 0px));
    padding: 0.95rem 1rem 1rem;
  }
}

/* narrower screens: the copyright on its own line, the links below it */
@media (min-width: 768px) and (max-width: 899.98px) {
  .site-bottom-note {
    flex-wrap: wrap;
    align-content: center;
    row-gap: 0.35rem;
  }

  .site-bottom-note > span:first-child {
    flex-basis: 100%;
  }

  .site-bottom-note > .site-bottom-note__sep--leading {
    display: none;
  }
}

/* privacy notice: same panel as the legal disclosures */
.cc-privacy .disclosures-modal__panel {
  width: min(88vw, 780px);
}

.cc-privacy__panel:focus {
  outline: none;
}

.cc-privacy .disclosures-modal__title {
  padding-right: 1.8rem;
}

.cc-privacy__lead {
  color: #56636d;
}

.cc-privacy__h {
  margin: 1.1rem 0 0.35rem;
  color: #0b2a4b;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}

.cc-privacy__table {
  width: 100%;
  margin: 0.2rem 0 0.7rem;
  border-collapse: collapse;
  color: #243239;
  font-size: 0.8rem;
  line-height: 1.4;
}

.cc-privacy__table th,
.cc-privacy__table td {
  padding: 0.45rem 0.7rem 0.45rem 0;
  border-bottom: 1px solid rgba(11, 42, 75, 0.12);
  text-align: left;
  vertical-align: top;
}

.cc-privacy__table th {
  color: #0b2a4b;
  font-weight: 500;
}

.cc-privacy__table tbody th {
  overflow-wrap: anywhere;
}

.cc-privacy__actions {
  margin: 1.1rem 0 0;
}

@media (max-width: 640px) {
  .cc-privacy__table thead {
    display: none;
  }

  .cc-privacy__table,
  .cc-privacy__table tbody,
  .cc-privacy__table tr {
    display: block;
  }

  .cc-privacy__table tr {
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(11, 42, 75, 0.12);
  }

  .cc-privacy__table th,
  .cc-privacy__table td {
    display: grid;
    grid-template-columns: 6.2rem minmax(0, 1fr);
    gap: 0.6rem;
    padding: 0.12rem 0;
    border: 0;
  }

  .cc-privacy__table tbody th::before,
  .cc-privacy__table td::before {
    content: attr(data-label);
    color: #56636d;
    font-weight: 400;
  }
}

/* YouTube waits for consent: the notice lies on the cover */
#page-podcast .podcast-player__gate {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1.9rem 1.3rem;
  overflow-y: auto;
  background: rgba(8, 24, 40, 0.88);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: left;
}

#page-podcast .podcast-player__gate[hidden] {
  display: none;
}

/* auto margins centre the notice, yet let it start at the top and scroll when the player is small */
#page-podcast .podcast-player__gate-text {
  max-width: 36rem;
  margin: auto 0 0;
}

#page-podcast .podcast-player__gate-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.1rem;
  margin-bottom: auto;
}

#page-podcast .podcast-player__gate-allow {
  min-height: 2.1rem;
  margin: 0;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

#page-podcast .podcast-player__gate-allow:hover {
  border-color: var(--moss);
  background: var(--moss);
}

#page-podcast .podcast-player__gate-more {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

#page-podcast .podcast-player__gate-more:hover {
  color: #fff;
}

#page-podcast .podcast-player__gate-close {
  position: absolute;
  top: 0.3rem;
  right: 0.4rem;
  margin: 0;
  padding: 0.1rem 0.3rem;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

#page-podcast .podcast-player__gate-allow:focus-visible,
#page-podcast .podcast-player__gate-more:focus-visible,
#page-podcast .podcast-player__gate-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* the shrink button of the enlarged player stays usable above the notice */
#page-podcast .podcast-player.is-gated .podcast-player__expand {
  z-index: 6;
}

#page-podcast .podcast-player.is-gated .podcast-player__play,
#page-podcast .podcast-player.is-gated .podcast-player__badge {
  visibility: hidden;
}

@media (max-width: 767.98px) {
  #page-podcast .podcast-player__gate {
    gap: 0.55rem;
    padding: 2rem 0.95rem 1rem;
    font-size: 0.76rem;
    line-height: 1.45;
  }

  #page-podcast .podcast-player__gate-allow {
    min-height: 2.1rem;
    padding: 0.35rem 0.95rem;
  }

  /* phones never enlarge the player, so it needs no size transitions */
  #page-podcast .podcast-player {
    transition: none;
  }

  /* the 16:9 cover is too small for the notice: while it is open, the player grows with it */
  #page-podcast .podcast-player-slot:has(.podcast-player.is-gated) {
    aspect-ratio: auto;
  }

  #page-podcast .podcast-player.is-gated {
    position: relative;
    top: auto;
    left: auto;
    height: auto;
    transform: none;
  }

  #page-podcast .podcast-player.is-gated .podcast-player__gate {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 9;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc {
    transform: none;
    transition: none;
  }

  .cc__switch,
  .cc__switch::before {
    transition: none;
  }
}

@media print {
  .cc {
    display: none !important;
  }
}
