/* ------------------------------------------------------------------ */
/* Conedmar — circular story. Light register, indigo brand palette.    */
/* Palette taken from the official logotype.                           */
/* ------------------------------------------------------------------ */

:root {
  --cd-indigo: #6b73a8;
  --cd-indigo-dk: #4a5283;
  --cd-indigo-dp: #2f3658;
  --cd-lav-light: #c8c8dc;
  --cd-lav-bg: #eeeef5;
  --cd-lav-row: #f4f4f9;
  --cd-paper: #f5f5fa;
  --cd-ink: #1f1f1f;
  --cd-grey-mid: #6b6b6b;
  --cd-grey-line: #d5d5de;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cd-paper);
  color: var(--cd-ink);
  font-family: Inter, Calibri, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- nav */

.cd-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.75rem;
  background: linear-gradient(to bottom, rgba(245, 245, 250, 0.92), transparent);
  color: var(--cd-indigo-dp);
}

.cd-wordmark {
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.cd-navlinks {
  display: flex;
  gap: 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cd-navlinks a {
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
}

.cd-navlinks a:hover,
.cd-navlinks a:focus-visible {
  opacity: 1;
  text-decoration: underline;
}

/* ----------------------------------------------------------- mobile menu */

.cd-burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--cd-grey-line);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.cd-burger:hover,
.cd-burger:focus-visible {
  background: var(--cd-lav-bg);
}

.cd-burger__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cd-indigo-dk);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cd-nav.is-open .cd-burger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.cd-nav.is-open .cd-burger__bar:nth-child(2) {
  opacity: 0;
}

.cd-nav.is-open .cd-burger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .cd-burger {
    display: flex;
  }

  .cd-navright {
    gap: 0.75rem;
  }

  /* The link list becomes a panel under the bar, shown only when open. */
  .cd-navlinks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    background: rgba(245, 245, 250, 0.98);
    border-bottom: 1px solid var(--cd-grey-line);
    box-shadow: 0 12px 24px rgba(47, 54, 88, 0.08);
  }

  .cd-nav.is-open .cd-navlinks {
    display: flex;
  }

  .cd-navlinks a {
    padding: 0.85rem 1.75rem;
    font-size: 0.82rem;
    opacity: 0.85;
  }

  .cd-navlinks a.is-current {
    text-decoration: none;
    background: var(--cd-lav-bg);
  }

  /* Give the transparent home bar a surface while the panel is open. */
  .cd-nav.is-open {
    background: rgba(245, 245, 250, 0.98);
  }

  body.cd-menu-open {
    overflow: hidden;
  }
}

/* Present for search engines and screen readers, never painted. */
.cd-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------- scrub */

.scrub {
  position: relative;
}

.scrub__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background: var(--cd-paper);
}

.scrub__media {
  position: absolute;
  inset: 0;
}

.scrub__media video,
.scrub__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 700ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 1400ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity;
  background: var(--cd-lav-bg);
}

.scrub__media video.is-active,
.scrub__media img.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Copy sits above the sticky stage. */

.scrub__copy {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.scrub__chapter {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  display: flex;
  align-items: center;
  padding: 0 6vw;
  opacity: 0;
  transition: opacity 260ms cubic-bezier(0.4, 0, 0.2, 1);
}

.scrub__chapter.is-visible {
  opacity: 1;
}

/* Rule, title and body arrive one after the other. */
/* The text has to land with the picture, not after it: the image crossfade
   runs 700ms, so the whole stagger below is done by 540ms. */
.scrub__rule,
.scrub__title,
.scrub__body {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.scrub__chapter.is-visible .scrub__rule {
  opacity: 1;
  transform: none;
}

.scrub__chapter.is-visible .scrub__title {
  opacity: 1;
  transform: none;
  transition-delay: 60ms;
}

.scrub__chapter.is-visible .scrub__body {
  opacity: 1;
  transform: none;
  transition-delay: 120ms;
}

.scrub__chapter[data-align="right"] {
  justify-content: flex-end;
  text-align: left;
}

.scrub__inner {
  max-width: 30rem;
}

.scrub__rule {
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--cd-indigo);
  margin-bottom: 1.5rem;
}

.scrub__title {
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--cd-indigo-dp);
  margin: 0;
  text-shadow: 0 1px 20px rgba(255, 255, 255, 0.85);
}

.scrub__body {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  color: #3d4260;
  margin: 1.15rem 0 0;
  max-width: 42ch;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9);
}

.scrub__track {
  position: relative;
}

.scrub__progress {
  position: fixed;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: rgba(107, 115, 168, 0.18);
  z-index: 30;
  opacity: 0;
  transition: opacity 250ms ease;
}

.scrub__progress.is-visible {
  opacity: 1;
}

.scrub__progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--cd-indigo);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

@media (max-width: 760px) {
  .scrub__chapter {
    align-items: flex-end;
    padding: 0 7vw 14vh;
  }

  .scrub__chapter[data-align="right"] {
    justify-content: flex-start;
  }

  .scrub__inner {
    max-width: 100%;
  }

  .scrub__body {
    max-width: 36ch;
  }
}

/* ----------------------------------------------------------- sections */

.cd-sections {
  position: relative;
  z-index: 20;
  background: #ffffff;
}

.cd-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5.5rem 1.75rem;
  border-top: 1px solid var(--cd-grey-line);
}

.cd-section:first-child {
  border-top: 0;
}

.cd-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cd-indigo);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.cd-h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--cd-indigo-dk);
  margin: 0 0 1.25rem;
  max-width: 34ch;
}

.cd-lead {
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 64ch;
  margin: 0;
}

.cd-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--cd-grey-line);
  margin-top: 2.25rem;
  border: 1px solid var(--cd-grey-line);
}

.cd-kpi {
  background: var(--cd-lav-bg);
  padding: 1.5rem 1.25rem;
}

.cd-kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cd-indigo-dp);
  line-height: 1.1;
}

.cd-kpi-label {
  font-size: 0.78rem;
  color: var(--cd-grey-mid);
  margin-top: 0.45rem;
}

.cd-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.92rem;
}

.cd-table thead th {
  background: var(--cd-indigo-dp);
  color: #ffffff;
  text-align: left;
  padding: 0.7rem 0.9rem;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cd-table tbody td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--cd-grey-line);
  vertical-align: top;
}

.cd-table tbody tr:nth-child(even) td {
  background: var(--cd-lav-row);
}

.cd-table tbody td:first-child {
  font-weight: 700;
  color: var(--cd-indigo-dk);
  white-space: nowrap;
}

.cd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.cd-chip {
  border: 1px solid var(--cd-grey-line);
  background: var(--cd-lav-bg);
  color: var(--cd-indigo-dk);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
}

.cd-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.cd-col h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cd-indigo);
  margin: 0 0 0.6rem;
}

.cd-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.95;
}

/* ------------------------------------------------------------- footer */

.cd-footer {
  position: relative;
  z-index: 20;
  background: var(--cd-indigo-dp);
  color: var(--cd-lav-light);
  padding: 2.5rem 1.75rem;
  font-size: 0.84rem;
}

.cd-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

/* --------------------------------------------------------- a11y */

/* Short viewports: laptop windows, split screens. Everything shrinks
   rather than overflowing. */
@media (max-height: 720px) {
  .hist__card {
    padding: 6.5rem 6vw 2rem;
  }

  .hist__year {
    font-size: calc(2.8rem * var(--hist-text));
    margin-bottom: 0.2rem;
  }

  .hist__title {
    font-size: calc(1.85rem * var(--hist-text));
    margin-bottom: 0.7rem;
  }

  .hist__body {
    font-size: calc(1rem * var(--hist-text));
    line-height: 1.55;
  }
}

@media (max-height: 560px) {
  .hist__year {
    font-size: calc(2.1rem * var(--hist-text));
  }

  .hist__title {
    font-size: calc(1.45rem * var(--hist-text));
  }

  .hist__body {
    font-size: calc(0.94rem * var(--hist-text));
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cd-burger__bar,
  .scrub__media video,
  .scrub__media img,
  .scrub__chapter,
  .scrub__rule,
  .scrub__title,
  .scrub__body {
    transition: none;
  }

  .scrub__media video,
  .scrub__media img {
    transform: none;
  }

  .scrub__chapter.is-visible .scrub__rule,
  .scrub__chapter.is-visible .scrub__title,
  .scrub__chapter.is-visible .scrub__body {
    transition-delay: 0ms;
  }
}

/* ------------------------------------------------------------------ */
/* Brand mark                                                          */
/* ------------------------------------------------------------------ */

.cd-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.cd-brand img {
  height: 26px;
  width: auto;
  display: block;
}

.cd-brand:hover,
.cd-brand:focus-visible {
  opacity: 0.75;
}

.cd-navright {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cd-navlinks a.is-current {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.cd-lang {
  border: 1px solid var(--cd-grey-line);
  background: transparent;
  color: var(--cd-indigo-dk);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.6rem;
  border-radius: 3px;
  cursor: pointer;
}

.cd-lang:hover,
.cd-lang:focus-visible {
  background: var(--cd-lav-bg);
}

/* ------------------------------------------------------------------ */
/* Scrub chapters, editorial layer (home)                              */
/* ------------------------------------------------------------------ */

.cd-page .scroll-scrub__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cd-indigo);
  margin-bottom: 1rem;
}

.cd-page .scroll-scrub__title {
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: 14ch;
  color: var(--cd-indigo-dp);
  text-shadow: 0 1px 20px rgba(255, 255, 255, 0.85);
}

.cd-page .scroll-scrub__body {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.55;
  max-width: 44ch;
  margin-top: 1.25rem;
  color: #3d4260;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9);
}

/* ------------------------------------------------------------------ */
/* History page                                                        */
/* ------------------------------------------------------------------ */

.cd-nav--solid {
  background: rgba(245, 245, 250, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cd-grey-line);
}

.cd-intro {
  padding: 9rem 1.75rem 4rem;
  background: var(--cd-paper);
}

.cd-intro-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.cd-h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cd-indigo-dp);
  margin: 0 0 1.25rem;
  max-width: 20ch;
}

.hist {
  position: relative;

  /* ----------------------------------------------------------------
     Taille du texte des chapitres.
     1 = taille de reference. 1.2 = vingt pour cent de plus.
     Une seule valeur a changer, elle agit sur l'annee, le titre et le
     paragraphe, y compris sur les ecrans peu hauts.
     ---------------------------------------------------------------- */
  --hist-text: 1.2;
}

/* One sticky viewport shared by every photograph and every card. */
.hist__viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--cd-paper);
}

.hist__stage {
  position: absolute;
  inset: 0;
}

.hist__frame {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
}

.hist__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The veil sits between photographs and copy: it guarantees readability
   whatever the image underneath happens to be. */
.hist__veil {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(245, 245, 250, 0.95) 0%,
    rgba(245, 245, 250, 0.84) 34%,
    rgba(245, 245, 250, 0.12) 62%,
    rgba(245, 245, 250, 0) 100%
  );
}

.hist__copy {
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.hist__card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  padding: 8.5rem 6vw 3rem;
  opacity: 0;
  will-change: opacity;
}

.hist__inner {
  max-width: 34rem;
  will-change: transform;
}

.hist__year {
  display: block;
  font-size: clamp(
    calc(3rem * var(--hist-text)),
    calc(7vw * var(--hist-text)),
    calc(5.5rem * var(--hist-text))
  );
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cd-indigo);
  opacity: 0.35;
  margin-bottom: 0.4rem;
}

.hist__title {
  font-size: clamp(
    calc(1.7rem * var(--hist-text)),
    calc(3.4vw * var(--hist-text)),
    calc(2.75rem * var(--hist-text))
  );
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--cd-indigo-dp);
  margin: 0 0 1rem;
}

.hist__body {
  font-size: clamp(
    calc(1rem * var(--hist-text)),
    calc(1.25vw * var(--hist-text)),
    calc(1.12rem * var(--hist-text))
  );
  line-height: 1.6;
  color: #3d4260;
  margin: 0;
  max-width: 46ch;
}

.hist__slot {
  height: 200vh;
}

@media (max-width: 760px) {
  .hist__slot {
    height: 180vh;
  }

  .hist__veil {
    background: linear-gradient(
      to top,
      rgba(245, 245, 250, 0.96) 0%,
      rgba(245, 245, 250, 0.88) 44%,
      rgba(245, 245, 250, 0.14) 78%,
      rgba(245, 245, 250, 0) 100%
    );
  }

  .hist__card {
    align-items: flex-start;
    padding: 7rem 7vw 3rem;
  }

  .hist__inner {
    max-width: 100%;
  }

  .hist__body {
    max-width: 100%;
  }
}

/* the chain */

.cd-chain {
  background: #ffffff;
}

.cd-figure {
  margin: 2.5rem 0 0;
}

.cd-chain-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1240px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .cd-chain-img {
    max-width: 380px;
  }
}

.cd-caption {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--cd-grey-mid);
  text-align: center;
}

/* Short viewports: laptop windows, split screens. Everything shrinks
   rather than overflowing. */
@media (max-height: 720px) {
  .hist__card {
    padding: 6.5rem 6vw 2rem;
  }

  .hist__year {
    font-size: calc(2.8rem * var(--hist-text));
    margin-bottom: 0.2rem;
  }

  .hist__title {
    font-size: calc(1.85rem * var(--hist-text));
    margin-bottom: 0.7rem;
  }

  .hist__body {
    font-size: calc(1rem * var(--hist-text));
    line-height: 1.55;
  }
}

@media (max-height: 560px) {
  .hist__year {
    font-size: calc(2.1rem * var(--hist-text));
  }

  .hist__title {
    font-size: calc(1.45rem * var(--hist-text));
  }

  .hist__body {
    font-size: calc(0.94rem * var(--hist-text));
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hist__frame,
  .hist__inner {
    transform: none !important;
  }
}

/* ------------------------------------------------------------------ */
/* Products page                                                       */
/* ------------------------------------------------------------------ */

.prod {
  background: #ffffff;
  padding-bottom: 4rem;
}

.prod__band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  max-width: 1320px;
  margin: 0 auto;
  border-top: 1px solid var(--cd-grey-line);
}

.prod__band:first-child {
  border-top: 0;
}

.prod__figure {
  margin: 0;
  overflow: hidden;
  background: var(--cd-lav-bg);
}

.prod__figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.prod__band.is-visible .prod__figure img {
  transform: scale(1);
}

.prod__copy {
  display: flex;
  align-items: center;
  padding: 3.5rem clamp(1.75rem, 4vw, 4rem);
}

.prod__inner {
  max-width: 34rem;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 700ms ease 120ms,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1) 120ms;
}

.prod__band.is-visible .prod__inner {
  opacity: 1;
  transform: translateY(0);
}

/* Even bands put the image on the right. */
.prod__band.is-reversed .prod__figure {
  order: 2;
}

.prod__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cd-indigo);
  margin: 0 0 0.7rem;
}

.prod__title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--cd-indigo-dp);
  margin: 0 0 1rem;
}

.prod__body {
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.65;
  color: #3d4260;
  margin: 0;
  max-width: 46ch;
}

@media (max-width: 860px) {
  .prod__band {
    grid-template-columns: 1fr;
  }

  .prod__band.is-reversed .prod__figure {
    order: 0;
  }

  .prod__figure img {
    min-height: 240px;
    max-height: 56vh;
  }

  .prod__copy {
    padding: 2.5rem 1.75rem 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prod__figure img,
  .prod__inner {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* ------------------------------------------------------------------ */
/* Certifications page                                                 */
/* ------------------------------------------------------------------ */

.cert {
  background: #ffffff;
  padding: 1rem 1.75rem 4rem;
}

.cert__grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--cd-grey-line);
  border: 1px solid var(--cd-grey-line);
}

.cert__card {
  background: #ffffff;
  padding: 2.25rem 2rem 2.5rem;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 650ms ease,
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cert__card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cert__code {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cd-indigo);
  margin: 0 0 0.2rem;
}

.cert__code::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  background: var(--cd-indigo);
  margin-top: 0.9rem;
}

.cert__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cd-indigo-dp);
  margin: 1rem 0 0.7rem;
}

.cert__body {
  font-size: 0.97rem;
  line-height: 1.65;
  color: #3d4260;
  margin: 0;
}

.cert__ref {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--cd-grey-mid);
}

.cert__trace {
  background: var(--cd-lav-bg);
  border-top: 0;
  max-width: none;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.cert__trace > * {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

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

/* A pending audit is stated plainly, not tucked away. */
.cert__ref {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--cd-lav-light);
  border-radius: 3px;
  background: var(--cd-lav-bg);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cd-indigo-dk);
}

/* ------------------------------------------------------------------ */
/* Shared footer                                                       */
/* ------------------------------------------------------------------ */

.cd-footer {
  position: relative;
  z-index: 20;
  background: var(--cd-indigo-dp);
  color: var(--cd-lav-light);
  padding: 3.5rem 1.75rem 2rem;
  font-size: 0.88rem;
}

.cd-foot {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.cd-foot-brand {
  max-width: 30ch;
}

.cd-foot-logo {
  height: 30px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.cd-foot-tagline {
  margin: 0;
  line-height: 1.6;
  color: var(--cd-lav-light);
  opacity: 0.8;
}

.cd-foot-h {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #ffffff;
  opacity: 0.6;
  margin: 0 0 1rem;
}

.cd-foot-list {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 2.05;
}

.cd-foot-list a,
.cd-foot-link {
  color: var(--cd-lav-light);
  text-decoration: none;
}

.cd-foot-list a:hover,
.cd-foot-list a:focus-visible,
.cd-foot-link:hover,
.cd-foot-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cd-foot-address {
  font-style: normal;
  line-height: 1.75;
  margin: 0 0 1rem;
  opacity: 0.85;
}

.cd-foot-link {
  display: block;
  line-height: 1.95;
}

/* Legal bar spans the full grid. */
.cd-foot-bar {
  grid-column: 1 / -1;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(200, 200, 220, 0.22);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  font-size: 0.78rem;
  opacity: 0.7;
}

.cd-foot-legal {
  letter-spacing: 0.03em;
}

@media (max-width: 860px) {
  .cd-foot {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .cd-foot-bar {
    margin-top: 1.5rem;
  }
}

/* Footer logo: a true white artwork, not a filtered one. */
.cd-foot-logo {
  height: 34px;
  width: auto;
  display: block;
  margin: 0;
  filter: none;
  opacity: 1;
}

.cd-foot-brand {
  display: flex;
  align-items: flex-start;
  max-width: none;
}

.cd-foot-tagline {
  display: none;
}

/* ------------------------------------------------------------------ */
/* Contact and application forms                                       */
/* ------------------------------------------------------------------ */

.form__section {
  background: #ffffff;
  border-top: 1px solid var(--cd-grey-line);
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.form {
  max-width: 34rem;
}

.form__field {
  margin-bottom: 1.6rem;
}

.form__label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cd-indigo-dk);
  margin-bottom: 0.5rem;
}

.form__req {
  color: var(--cd-indigo);
}

.form__input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--cd-ink);
  background: var(--cd-lav-row);
  border: 1px solid var(--cd-grey-line);
  border-radius: 3px;
  padding: 0.75rem 0.9rem;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.form__input:focus {
  outline: none;
  border-color: var(--cd-indigo);
  background: #ffffff;
}

textarea.form__input {
  resize: vertical;
  line-height: 1.6;
}

.form__hint {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--cd-grey-mid);
}

/* File picker: the native input is hidden behind a styled label. */
.form__filerow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.form__file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.form__filebtn {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cd-indigo-dk);
  background: var(--cd-lav-bg);
  border: 1px solid var(--cd-grey-line);
  border-radius: 3px;
  padding: 0.6rem 1rem;
  cursor: pointer;
}

.form__filebtn:hover {
  background: var(--cd-lav-light);
}

.form__file:focus-visible + .form__filebtn {
  outline: 2px solid var(--cd-indigo);
  outline-offset: 2px;
}

.form__filename {
  font-size: 0.88rem;
  color: var(--cd-grey-mid);
}

/* The honeypot must be reachable by a robot and invisible to a human. */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__submit {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--cd-indigo-dp);
  border: 0;
  border-radius: 3px;
  padding: 0.9rem 2rem;
  cursor: pointer;
  transition: background 160ms ease;
}

.form__submit:hover:enabled {
  background: var(--cd-indigo-dk);
}

.form__submit:disabled {
  opacity: 0.55;
  cursor: default;
}

.form__status {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  min-height: 1.4em;
}

.form__status.is-ok {
  color: var(--cd-indigo-dk);
  font-weight: 700;
}

.form__status.is-error {
  color: #a33;
}

/* ================================================================== */
/* Polish layer: motion, states, accessibility, small screens          */
/* ================================================================== */

:root {
  --cd-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --cd-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --cd-shadow: 0 18px 40px rgba(47, 54, 88, 0.12);
}

::selection {
  background: var(--cd-lav-light);
  color: var(--cd-indigo-dp);
}

:focus-visible {
  outline: 2px solid var(--cd-indigo);
  outline-offset: 3px;
}

/* Content fades in as one piece once it has rendered. If a script never
   reports ready (blocked, broken), a delayed animation shows it anyway. */
main {
  opacity: 0;
  animation: cd-safety 0s linear 2.5s forwards;
}

html.is-ready main {
  opacity: 1;
  animation: none;
  transition: opacity 360ms var(--cd-ease);
}

@keyframes cd-safety {
  to {
    opacity: 1;
  }
}

main:focus {
  outline: none;
}

/* Skip link: invisible until a keyboard reaches it. */
.cd-skip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--cd-indigo-dp);
  color: #ffffff;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 160ms ease;
}

.cd-skip:focus {
  transform: none;
}

/* Broken image: a neutral surface, never a browser icon. */
img.is-broken {
  background: var(--cd-lav-bg);
  min-height: 120px;
  object-fit: none;
}

/* ------------------------------------------------------------ buttons */

.cd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--cd-indigo-dk);
  border-radius: 3px;
  background: transparent;
  color: var(--cd-indigo-dk);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms var(--cd-ease-out);
}

.cd-btn:hover,
.cd-btn:focus-visible {
  background: var(--cd-lav-bg);
}

.cd-btn:active {
  transform: translateY(1px);
}

.cd-btn--primary {
  background: var(--cd-indigo-dp);
  border-color: var(--cd-indigo-dp);
  color: #ffffff;
}

.cd-btn--primary:hover,
.cd-btn--primary:focus-visible {
  background: var(--cd-indigo-dk);
  border-color: var(--cd-indigo-dk);
}

/* -------------------------------------------------------- fatal panel */

.cd-fatal {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 9rem 1.75rem 5rem;
  background: var(--cd-paper);
}

.cd-fatal__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.cd-fatal__title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--cd-indigo-dp);
  margin: 0 0 1rem;
}

.cd-fatal__title--second {
  margin-top: 2rem;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
}

.cd-fatal__body {
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0;
  max-width: 56ch;
}

.cd-fatal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------- navigation */

.cd-navlinks a {
  padding: 0.55rem 0;
  transition: opacity 160ms ease;
}

.cd-lang {
  min-height: 40px;
  min-width: 44px;
  padding: 0.45rem 0.7rem;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.cd-eyebrow {
  font-size: 0.75rem;
}

/* ------------------------------------------------------ spacing scale */

.cd-section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.75rem;
}

.cd-intro {
  padding: clamp(7rem, 16vw, 9rem) 1.75rem clamp(2.5rem, 6vw, 4rem);
}

.cd-lead {
  font-size: clamp(1rem, 1.2vw, 1.08rem);
}

/* ----------------------------------------------------------- the film */

/* Scene dots: a quiet index on the right edge, clickable. */
.scrub__dots {
  position: fixed;
  right: clamp(0.75rem, 2vw, 1.5rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.scrub__dots.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.scrub__dot {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.scrub__dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cd-indigo-dp);
  opacity: 0.3;
  transition:
    transform 260ms var(--cd-ease-out),
    opacity 260ms ease;
}

.scrub__dot:hover::before,
.scrub__dot:focus-visible::before {
  opacity: 0.7;
}

.scrub__dot.is-active::before {
  opacity: 1;
  transform: scale(1.6);
}

/* Closing section after the film. */
.cd-outro {
  position: relative;
  z-index: 20;
  background: #ffffff;
  border-top: 1px solid var(--cd-grey-line);
  padding: clamp(4rem, 10vw, 7rem) 1.75rem;
}

.cd-outro__inner {
  max-width: 1080px;
  margin: 0 auto;
}

.cd-outro__title {
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cd-indigo-dp);
  margin: 0 0 1.25rem;
  max-width: 24ch;
}

.cd-outro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

@media (max-width: 760px) {
  /* On phones the copy sits at the bottom, over a soft veil, so the text
     stays readable whatever the frame underneath. */
  .scrub__chapter::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 62%;
    background: linear-gradient(
      to top,
      rgba(245, 245, 250, 0.96) 0%,
      rgba(245, 245, 250, 0.82) 45%,
      rgba(245, 245, 250, 0) 100%
    );
    pointer-events: none;
    z-index: -1;
  }

  .scrub__chapter {
    padding-bottom: max(12vh, 5.5rem);
  }

  .scrub__title {
    font-size: clamp(1.7rem, 8vw, 2.3rem);
  }

  .scrub__body {
    font-size: 1rem;
    max-width: 100%;
  }

  .scrub__dots {
    right: 0.35rem;
    gap: 0.15rem;
  }

  .cd-outro__actions .cd-btn {
    flex: 1 1 100%;
  }
}

/* ------------------------------------------------------------ history */

@media (max-width: 760px) {
  .hist {
    --hist-text: 1.05;
  }

  .hist__card {
    align-items: flex-end;
    padding: 6rem 7vw 4rem;
  }

  .hist__year {
    font-size: calc(2.4rem * var(--hist-text));
    margin-bottom: 0.25rem;
  }

  .hist__title {
    font-size: calc(1.5rem * var(--hist-text));
    margin-bottom: 0.7rem;
  }

  .hist__body {
    font-size: calc(0.98rem * var(--hist-text));
    line-height: 1.55;
  }
}

@media (max-width: 760px) and (max-height: 680px) {
  .hist__year {
    font-size: calc(2rem * var(--hist-text));
  }

  .hist__title {
    font-size: calc(1.3rem * var(--hist-text));
  }

  .hist__body {
    font-size: calc(0.92rem * var(--hist-text));
    line-height: 1.5;
  }
}

/* ----------------------------------------------------------- products */

@media (max-width: 860px) {
  .prod__figure img {
    min-height: 0;
    aspect-ratio: 4 / 3;
    max-height: 56vh;
  }
}

/* ------------------------------------------------------------- forms */

.form {
  max-width: 36rem;
}

.form__input {
  min-height: 48px;
  box-shadow: 0 0 0 0 rgba(107, 115, 168, 0);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.form__input:focus {
  box-shadow: 0 0 0 3px rgba(107, 115, 168, 0.18);
}

.form__error {
  display: none;
  margin: 0.45rem 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #a33;
}

.form__field.has-error .form__error {
  display: block;
}

.form__field.has-error .form__input {
  border-color: #c44;
  background: #fff8f8;
}

.form__field.has-error .form__label {
  color: #a33;
}

/* CV drop zone. */
.form__drop {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 0.9rem;
  padding: 1rem;
  border: 1px dashed var(--cd-lav-light);
  border-radius: 4px;
  background: var(--cd-lav-row);
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.form__drop.is-over {
  border-color: var(--cd-indigo);
  background: var(--cd-lav-bg);
}

.form__drop.has-file {
  border-style: solid;
  border-color: var(--cd-indigo);
  background: #ffffff;
}

.form__field.has-error .form__drop {
  border-color: #c44;
  background: #fff8f8;
}

.form__filebtn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.form__filename {
  flex: 1 1 12rem;
  word-break: break-word;
}

.form__fileclear {
  width: 36px;
  height: 36px;
  border: 1px solid var(--cd-grey-line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--cd-indigo-dk);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.form__fileclear:hover,
.form__fileclear:focus-visible {
  background: var(--cd-lav-bg);
}

/* Submit: full width on phones, spinner while sending. */
.form__submit {
  position: relative;
  min-height: 50px;
  padding-right: 2rem;
  padding-left: 2rem;
}

.form__submit.is-sending {
  padding-right: 3.2rem;
  opacity: 0.85;
}

.form__submit.is-sending::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: cd-spin 800ms linear infinite;
}

@keyframes cd-spin {
  to {
    transform: rotate(360deg);
  }
}

.form.is-sending .form__input,
.form.is-sending .form__filebtn {
  pointer-events: none;
  opacity: 0.7;
}

.form__status {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0;
  border-radius: 4px;
}

.form__status.is-error {
  padding: 0.85rem 1rem;
  background: #fff4f4;
  border: 1px solid #f0c9c9;
  color: #8a2a2a;
  font-weight: 600;
}

.form__status.is-error::before {
  content: "!";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #c44;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 0.1rem;
}

.form__status:empty {
  display: none;
}

/* Success card replaces the form. */
.form__success {
  max-width: 36rem;
  padding: 2.25rem 2rem;
  background: var(--cd-lav-bg);
  border: 1px solid var(--cd-lav-light);
  border-radius: 4px;
  animation: cd-rise 520ms var(--cd-ease-out) both;
}

.form__success-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cd-indigo-dp);
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.form__success-title {
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--cd-indigo-dp);
  margin: 0 0 0.6rem;
}

.form__success-body {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 1.5rem;
  color: #3d4260;
}

@keyframes cd-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .form__submit {
    width: 100%;
  }

  .form__drop {
    padding: 0.9rem;
  }
}

/* ------------------------------------------------------------- footer */

@media (max-width: 860px) {
  .cd-foot-list a,
  .cd-foot-link {
    display: inline-block;
    padding: 0.35rem 0;
    line-height: 1.6;
  }

  .cd-foot-list {
    line-height: 1.6;
  }
}

/* ------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
  html.is-ready main,
  .cd-btn,
  .cd-nav,
  .scrub__dots,
  .scrub__dot::before,
  .form__input,
  .form__drop {
    transition: none;
  }

  .form__success {
    animation: none;
  }

  .form__submit.is-sending::after {
    animation-duration: 1.6s;
  }
}

/* ---------------------------------------------------------------- print */

@media print {
  .cd-nav,
  .cd-footer,
  .scrub__progress,
  .scrub__dots,
  .form__submit {
    display: none !important;
  }

  main {
    opacity: 1 !important;
  }
}

/* ================================================================== */
/* Film v3: scroll-driven again, self-advancing, no player controls    */
/* ================================================================== */

.scrub {
  position: relative;
  height: auto;
  overflow: visible;
}

.scrub__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  /* The track starts on the same screen as the stage. */
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  margin-bottom: -100dvh;
}

.scrub__copy {
  position: absolute;
  inset: 0;
}

.scrub__chapter {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
}

.scrub__track {
  position: relative;
}

.scrub__slot {
  height: 100vh;
  height: 100svh;
  height: 100dvh;
}

/* ================================================================== */
/* History v2: frosted card, watermark year, timeline rail, drift      */
/* ================================================================== */

.hist__frame img {
  transform-origin: center;
}

.hist__frame {
  transition: none;
  will-change: transform, opacity;
}

/* Lighter veil: the card carries readability now. */
.hist__veil {
  background: linear-gradient(
    to right,
    rgba(245, 245, 250, 0.55) 0%,
    rgba(245, 245, 250, 0.3) 40%,
    rgba(245, 245, 250, 0) 70%
  );
}

.hist__card {
  align-items: center;
  padding: 7rem clamp(1.25rem, 6vw, 6rem) 4rem;
}

.hist__inner {
  max-width: 32rem;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.75rem);
  background: rgba(245, 245, 250, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(47, 54, 88, 0.14);
}

.hist__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.hist__year {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cd-indigo-dp);
  opacity: 1;
  margin: 0;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--cd-indigo);
  border-radius: 3px;
}

.hist__index {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--cd-grey-mid);
  font-variant-numeric: tabular-nums;
}

.hist__title {
  font-size: clamp(1.6rem, 2.9vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.9rem;
}

.hist__body {
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.65;
}

/* Watermark year behind the copy. */
.hist__mark {
  position: absolute;
  right: clamp(3rem, 8vw, 9rem);
  bottom: clamp(1.5rem, 6vh, 4rem);
  z-index: 55;
  pointer-events: none;
}

.hist__mark-year {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: clamp(6rem, 18vw, 16rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--cd-indigo-dp);
  opacity: 0;
  mix-blend-mode: multiply;
  filter: opacity(0.14);
  white-space: nowrap;
  will-change: transform, opacity;
}

@media (max-width: 860px) {
  .hist__veil {
    background: linear-gradient(
      to top,
      rgba(245, 245, 250, 0.7) 0%,
      rgba(245, 245, 250, 0.35) 45%,
      rgba(245, 245, 250, 0) 75%
    );
  }

  .hist__card {
    align-items: flex-end;
    padding: 6rem 1.1rem 3.25rem;
  }

  .hist__inner {
    max-width: 100%;
    padding: 1.35rem 1.25rem;
  }

  .hist__title {
    font-size: clamp(1.45rem, 6.4vw, 1.9rem);
  }

  .hist__body {
    font-size: 0.97rem;
    line-height: 1.55;
  }

  .hist__mark {
    right: 1rem;
    bottom: auto;
    top: 6rem;
  }

  .hist__mark-year {
    bottom: auto;
    top: 0;
    font-size: clamp(4.5rem, 22vw, 7rem);
  }

}

@media (max-width: 860px) and (max-height: 680px) {
  .hist__inner {
    padding: 1.1rem 1.1rem;
  }

  .hist__body {
    font-size: 0.92rem;
    line-height: 1.5;
  }
}

/* ================================================================== */
/* The chain, drawn in HTML                                            */
/* ================================================================== */

.chain__head {
  margin-bottom: 2.5rem;
}

.chain {
  position: relative;
}

.chain__inside {
  margin: 0 0 1.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cd-grey-mid);
}

.chain__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem 1.25rem;
  position: relative;
}

/* Connecting spine behind the numbers, one per row. */
.chain__step {
  position: relative;
  padding-top: 3.4rem;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 600ms var(--cd-ease-out),
    transform 600ms var(--cd-ease-out);
  transition-delay: calc(var(--i) * 90ms);
}

.chain__step::before {
  content: "";
  position: absolute;
  left: 0;
  right: -1.25rem;
  top: 1.2rem;
  height: 2px;
  background: var(--cd-grey-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--cd-ease-out);
  transition-delay: calc(var(--i) * 90ms + 120ms);
}

.chain__step:nth-child(4n)::before {
  right: 0;
}

.chain.is-visible .chain__step {
  opacity: 1;
  transform: none;
}

.chain.is-visible .chain__step::before {
  transform: scaleX(1);
}

.chain__num {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 2px solid var(--cd-indigo);
  color: var(--cd-indigo-dp);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 1;
}

.chain__step:last-child .chain__num {
  background: var(--cd-indigo-dp);
  border-color: var(--cd-indigo-dp);
  color: #ffffff;
}

.chain__title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cd-indigo-dp);
  margin-bottom: 0.25rem;
}

.chain__sub {
  display: block;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--cd-grey-mid);
}

.chain__loop {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2.5rem 0 0;
  padding: 0.55rem 0.9rem 0.55rem 0.7rem;
  border: 1px dashed var(--cd-indigo);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cd-indigo);
}

.chain__loop-arrow {
  width: 16px;
  height: 16px;
  border: 2px solid var(--cd-indigo);
  border-right-color: transparent;
  border-radius: 50%;
  position: relative;
}

.chain__loop-arrow::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -1px;
  border: 4px solid transparent;
  border-left: 6px solid var(--cd-indigo);
  transform: rotate(-35deg);
}

.chain__actions {
  margin-top: 2.75rem;
}

@media (max-width: 860px) {
  .chain__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.25rem;
  }

  .chain__step:nth-child(4n)::before {
    right: -1.25rem;
  }

  .chain__step:nth-child(2n)::before {
    right: 0;
  }
}

@media (max-width: 480px) {
  .chain__steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .chain__step {
    padding: 0 0 1.6rem 3.4rem;
  }

  .chain__step::before {
    left: 1.15rem;
    right: auto;
    top: 2.4rem;
    bottom: 0;
    width: 2px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top;
  }

  .chain__step:nth-child(2n)::before,
  .chain__step:nth-child(4n)::before {
    right: auto;
  }

  .chain__step:last-child::before {
    display: none;
  }

  .chain.is-visible .chain__step::before {
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chain__step,
  .chain__step::before,
  .chain__step::before {
    transition: none;
  }

  .chain__step {
    opacity: 1;
    transform: none;
  }

  .chain__step::before {
    transform: none;
  }
}

/* ================================================================== */
/* History v3: text set directly on the photograph, like the home film  */
/* ================================================================== */

/* The veil carries readability again: strong on the text side, clear on
   the other. */
.hist__veil {
  background: linear-gradient(
    to right,
    rgba(245, 245, 250, 0.96) 0%,
    rgba(245, 245, 250, 0.86) 32%,
    rgba(245, 245, 250, 0.16) 62%,
    rgba(245, 245, 250, 0) 100%
  );
}

.hist__card {
  align-items: center;
  padding: 0 6vw;
}

.hist__inner {
  max-width: 32rem;
  padding: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hist__rule {
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--cd-indigo);
  margin-bottom: 1.25rem;
}

.hist__year {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--cd-indigo);
  opacity: 1;
  margin: 0 0 0.9rem;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.hist__title {
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--cd-indigo-dp);
  margin: 0 0 1.15rem;
  text-shadow: 0 1px 20px rgba(255, 255, 255, 0.85);
}

.hist__body {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  color: #3d4260;
  max-width: 42ch;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9);
}

@media (max-width: 860px) {
  .hist__veil {
    background: linear-gradient(
      to top,
      rgba(245, 245, 250, 0.97) 0%,
      rgba(245, 245, 250, 0.88) 40%,
      rgba(245, 245, 250, 0.14) 74%,
      rgba(245, 245, 250, 0) 100%
    );
  }

  .hist__card {
    align-items: flex-end;
    padding: 0 7vw max(12vh, 5.5rem);
  }

  .hist__inner {
    max-width: 100%;
    padding: 0;
  }

  .hist__title {
    font-size: clamp(1.7rem, 8vw, 2.3rem);
  }

  .hist__body {
    font-size: 1rem;
    max-width: 100%;
  }

  .hist__mark {
    top: 5.5rem;
  }
}

@media (max-width: 860px) and (max-height: 680px) {
  .hist__card {
    padding-bottom: 3.5rem;
  }

  .hist__title {
    font-size: 1.6rem;
  }

  .hist__body {
    font-size: 0.94rem;
    line-height: 1.5;
  }
}

/* ================================================================== */
/* No visible scrollbar: the page scrolls as usual, without the bar     */
/* ================================================================== */

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ================================================================== */
/* Header in brand indigo, matching the footer                          */
/* ================================================================== */

.cd-nav,
.cd-nav--solid {
  background: rgba(47, 54, 88, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.cd-navlinks a {
  color: #ffffff;
  opacity: 0.78;
}

.cd-navlinks a:hover,
.cd-navlinks a:focus-visible,
.cd-navlinks a.is-current {
  opacity: 1;
}

.cd-lang {
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
}

.cd-lang:hover,
.cd-lang:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.cd-burger {
  border-color: rgba(255, 255, 255, 0.38);
}

.cd-burger:hover,
.cd-burger:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.cd-burger__bar {
  background: #ffffff;
}

.cd-nav :focus-visible {
  outline-color: #ffffff;
}

@media (max-width: 900px) {
  .cd-navlinks {
    background: rgba(47, 54, 88, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 24px rgba(47, 54, 88, 0.25);
  }

  .cd-navlinks a {
    padding: 0.85rem 1.75rem;
  }

  .cd-navlinks a.is-current {
    background: rgba(255, 255, 255, 0.1);
  }

  .cd-nav.is-open {
    background: rgba(47, 54, 88, 0.98);
  }
}

.hist__slot--tail {
  height: 100vh;
  height: 100svh;
  height: 100dvh;
}

/* ================================================================== */
/* Home film: frame sequence on a canvas                                */
/* ================================================================== */

.scrub__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: var(--cd-paper);
}

/* ================================================================== */
/* Home film: driven like the history page                            */
/* ================================================================== */

/* Opacity and drift are set by the script on every frame, like the
   history photographs: no CSS transition must fight them. */
.scrub__media video,
.scrub__media img {
  transition: none;
  opacity: 0;
  transform: none;
  will-change: transform, opacity;
}

.scrub__chapter {
  transition: none;
  will-change: opacity;
}

.scrub__inner {
  will-change: transform;
}

/* The copy's own reveal is instant: its opacity is the picture's opacity,
   set by the script, so no staggered fade may delay it. */
.scrub__rule,
.scrub__title,
.scrub__body,
.scrub__chapter.is-visible .scrub__rule,
.scrub__chapter.is-visible .scrub__title,
.scrub__chapter.is-visible .scrub__body {
  transition: none;
  transition-delay: 0s;
  transform: none;
  opacity: 1;
}

/* ================================================================== */
/* Home film: text colour follows the picture                          */
/* ================================================================== */

/* Every frame was measured under the text when the film was made. The
   script sets data-tone="light" or "dark" frame by frame; the text and a
   soft veil on its side follow, so the words stay readable on a white
   duvet as on the brown glow of the oven. */

.scrub__chapter::before,
.scrub__chapter::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 260ms ease;
}

/* Light pictures: a pale veil on the text side. */
.scrub__chapter::before {
  background: linear-gradient(
    to right,
    rgba(245, 245, 250, 0.74) 0%,
    rgba(245, 245, 250, 0.52) 36%,
    rgba(245, 245, 250, 0) 62%
  );
  opacity: 1;
}

/* Dark pictures: a deep veil on the text side. */
.scrub__chapter::after {
  background: linear-gradient(
    to right,
    rgba(16, 18, 34, 0.64) 0%,
    rgba(16, 18, 34, 0.42) 38%,
    rgba(16, 18, 34, 0) 62%
  );
  opacity: 0;
}

.scrub__chapter[data-align="right"]::before {
  background: linear-gradient(
    to left,
    rgba(245, 245, 250, 0.74) 0%,
    rgba(245, 245, 250, 0.52) 36%,
    rgba(245, 245, 250, 0) 62%
  );
}

.scrub__chapter[data-align="right"]::after {
  background: linear-gradient(
    to left,
    rgba(16, 18, 34, 0.64) 0%,
    rgba(16, 18, 34, 0.42) 38%,
    rgba(16, 18, 34, 0) 62%
  );
}

.scrub__chapter[data-tone="dark"]::before {
  opacity: 0;
}

.scrub__chapter[data-tone="dark"]::after {
  opacity: 1;
}

.scrub__chapter .scrub__title,
.scrub__chapter .scrub__body,
.scrub__chapter .scrub__rule,
.scrub__chapter.is-visible .scrub__title,
.scrub__chapter.is-visible .scrub__body,
.scrub__chapter.is-visible .scrub__rule {
  transition:
    color 260ms ease,
    background-color 260ms ease,
    text-shadow 260ms ease;
}

.scrub__chapter[data-tone="dark"] .scrub__title {
  color: #ffffff;
  text-shadow: 0 2px 22px rgba(10, 12, 26, 0.55);
}

.scrub__chapter[data-tone="dark"] .scrub__body {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 14px rgba(10, 12, 26, 0.6);
}

.scrub__chapter[data-tone="dark"] .scrub__rule {
  background-color: var(--cd-lav-light);
}

@media (max-width: 760px) {
  /* On phones the text sits at the bottom: the veils rise from there. */
  .scrub__chapter::before,
  .scrub__chapter[data-align="right"]::before {
    inset: auto 0 0 0;
    height: 64%;
    background: linear-gradient(
      to top,
      rgba(245, 245, 250, 0.94) 0%,
      rgba(245, 245, 250, 0.78) 45%,
      rgba(245, 245, 250, 0) 100%
    );
  }

  .scrub__chapter::after,
  .scrub__chapter[data-align="right"]::after {
    inset: auto 0 0 0;
    height: 64%;
    background: linear-gradient(
      to top,
      rgba(16, 18, 34, 0.86) 0%,
      rgba(16, 18, 34, 0.62) 45%,
      rgba(16, 18, 34, 0) 100%
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .scrub__chapter::before,
  .scrub__chapter::after,
  .scrub__chapter .scrub__title,
  .scrub__chapter .scrub__body,
  .scrub__chapter .scrub__rule {
    transition: none;
  }
}

/* ================================================================== */
/* Legal pages and form privacy                                       */
/* ================================================================== */

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 1.75rem 6rem;
}

.legal__section {
  padding: 2.25rem 0;
  border-top: 1px solid var(--cd-grey-line);
}

.legal__section:first-child {
  border-top: 0;
  padding-top: 0;
}

.legal__h {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.3;
  font-weight: 700;
  color: var(--cd-indigo-dp);
  margin: 0 0 1rem;
}

.legal__p,
.legal__list {
  font-size: 1rem;
  line-height: 1.75;
  color: #3d4260;
  margin: 0 0 1rem;
}

.legal__list {
  padding-left: 1.2rem;
}

.legal__list li {
  margin-bottom: 0.5rem;
}

.legal__rows {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 0.55rem 1.5rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.legal__rows dt {
  font-weight: 600;
  color: var(--cd-indigo-dk);
}

.legal__rows dd {
  margin: 0;
  color: var(--cd-ink);
  overflow-wrap: anywhere;
}

.legal__link {
  display: inline-block;
  margin-top: 0.25rem;
  color: var(--cd-indigo-dk);
  font-weight: 600;
}

.legal__updated {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cd-grey-line);
  font-size: 0.85rem;
  color: var(--cd-grey-mid);
}

@media (max-width: 640px) {
  .legal__rows {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .legal__rows dd {
    margin-bottom: 0.8rem;
  }
}

.cd-foot-legalnav {
  display: flex;
  gap: 1.25rem;
}

.cd-foot-legalnav a {
  color: inherit;
}

.form__consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.75rem;
  align-items: start;
}

.form__consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  accent-color: var(--cd-indigo-dk);
}

.form__consent-label {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--cd-ink);
}

.form__consent-label a,
.form__note a {
  color: var(--cd-indigo-dk);
}

.form__consent .form__error {
  grid-column: 2;
}

.form__note {
  margin: -0.4rem 0 1.6rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--cd-grey-mid);
}

/* ================================================================== */
/* Forms in e-mail mode (receiving workflow not switched on yet)       */
/* ================================================================== */

.form__mailcard {
  max-width: 38rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: #ffffff;
  border: 1px solid var(--cd-grey-line);
  border-radius: 4px;
}

.form__mailcard-title {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--cd-indigo-dp);
  margin: 0 0 0.9rem;
}

.form__mailcard-body {
  font-size: 1rem;
  line-height: 1.7;
  color: #3d4260;
  margin: 0 0 1.25rem;
}

.form__mailcard-list {
  margin: 0 0 1.75rem;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #3d4260;
}

.form__mailcard-list li {
  margin-bottom: 0.35rem;
}

.form__mailcard-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.form__mailcard-address {
  color: var(--cd-indigo-dk);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.form__mailcard-note {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cd-grey-line);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--cd-grey-mid);
}

@media (max-width: 640px) {
  .form__mailcard-actions .cd-btn {
    flex: 1 1 100%;
    text-align: center;
  }
}

.form__success .cd-btn {
  margin-top: 1.25rem;
}

.form__held-after {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--cd-grey-mid);
}
