@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&display=swap");

/* Header CMS V2 strict — composant neuf, structure visuelle du header public du 03/08/2026. */

:root {
  --cms-header-ink: #10131c;
  --cms-header-copy: #484848;
  --cms-header-blue: #5a6fc2;
  --cms-header-copper: #d67527;
  --cms-header-green: #92b63e;
  --cms-header-paper: #fff;
  --cms-header-paper-rgb: 255, 255, 255;
  --cms-header-soft: #f2f0ea;
  --cms-header-line: rgba(91, 88, 80, .16);
  --cms-header-font: "Hanken Grotesk", Arial, sans-serif;
}

.cms-header,
.cms-header *,
.cms-header *::before,
.cms-header *::after { box-sizing: border-box; }

.cms-header [hidden] { display: none !important; }

.cms-header {
  position: sticky;
  z-index: 80;
  top: 0;
  width: 100%;
  border: 0;
  color: var(--cms-header-ink);
  background: var(--cms-header-paper);
  box-shadow: none;
  font-family: var(--cms-header-font);
  transition: background-color .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s cubic-bezier(.22, 1, .36, 1);
}

.cms-header a { text-decoration: none; }

.cms-header button,
.cms-header summary { font: inherit; }

.cms-header__desktop {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: clamp(212px, 18vw, 230.4px) minmax(0, 1fr) clamp(200px, 16.72vw, 214px);
  width: min(1240px, 100%);
  min-height: 96px;
  margin-inline: auto;
  padding-inline: 2.5vw;
  align-items: center;
  gap: 1.8vw;
}

.cms-header__desktop::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: calc(max(0px, (100vw - 1400px) / 2) + 2.5vw + 250px);
  bottom: 0;
  left: calc(max(0px, (100vw - 1400px) / 2) + 2.5vw + 235px);
  background: rgba(242, 240, 234, .78);
  content: "";
  opacity: .86;
  pointer-events: none;
  backdrop-filter: blur(14px) saturate(108%);
  mask-image: linear-gradient(90deg, transparent 0, #000 110px, #000 calc(100% - 110px), transparent 100%);
}

.cms-header__desktop::after {
  position: absolute;
  z-index: 3;
  right: 2.5vw;
  bottom: 0;
  left: 2.5vw;
  height: 1px;
  background: linear-gradient(90deg, transparent 0, rgba(214, 117, 39, .2) 28%, rgba(146, 182, 62, .28) 72%, transparent 100%);
  content: "";
  pointer-events: none;
}

.cms-header__desktop > * { position: relative; z-index: 1; }

.cms-header__brand {
  position: relative;
  display: block;
  width: 100%;
  height: 96px;
  align-self: stretch;
}

.cms-header__brand img {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: auto;
  height: 46px;
  max-width: 300px;
  object-fit: contain;
  transform: translateY(-50%);
  transform-origin: left center;
}

.cms-header__nav {
  display: flex;
  min-height: 92px;
  align-items: stretch;
  justify-content: center;
  gap: 1.4vw;
}

.cms-header__nav-link,
.cms-header button.cms-header__nav-button {
  position: relative;
  display: inline-flex;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 38px 0;
  align-items: center;
  color: var(--cms-header-copy);
  background: transparent;
  cursor: pointer;
  font-size: clamp(12.5px, 1.05vw, 15px);
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.cms-header__nav-indicator {
  margin-left: 4px;
  translate: 0 -1px;
  font-size: .82em;
  font-weight: 400;
}

.cms-header__nav-link::after,
.cms-header__nav-button::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  scale: 0 1;
  background: var(--cms-header-copper);
  content: "";
  transform-origin: center;
  transition: scale 180ms ease;
}

.cms-header__nav-link:hover::after,
.cms-header__nav-link:focus-visible::after,
.cms-header__nav-button:hover::after,
.cms-header__nav-button:focus::after,
.cms-header__nav-button:focus-visible::after,
.cms-header__nav-button[aria-expanded="true"]::after { scale: 1 1; }

.cms-header__action {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
  min-width: 248px;
  min-height: 78px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}

.cms-header__botanical {
  position: absolute;
  z-index: 0;
  top: -9px;
  right: -58px;
  display: block;
  width: 338px;
  height: 96px;
  overflow: hidden;
  opacity: .28;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .32) 28%, #000 58%);
}

.cms-header__botanical img {
  position: absolute;
  right: -38px;
  bottom: -50px;
  display: block;
  width: 780px;
  height: auto;
  max-width: none;
  mix-blend-mode: multiply;
}

.cms-header__context {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 236px;
  margin: 0;
  padding-right: 7px;
  align-items: center;
  gap: 7px;
  color: #65685f;
  font-size: clamp(7px, .625vw, 8px);
  font-weight: 800;
  letter-spacing: .075em;
  line-height: 1;
  text-shadow: 0 1px 5px rgba(255, 255, 255, .95);
  text-transform: uppercase;
  white-space: nowrap;
}

.cms-header__context::before {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cms-header-green);
  box-shadow: 0 0 0 4px rgba(146, 182, 62, .12);
  content: "";
}

.cms-header__cta {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  min-width: 248px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 66px;
  padding: 0;
  overflow: hidden;
  color: var(--cms-header-copy);
  background: radial-gradient(ellipse at 50% -20%, rgba(255, 255, 255, .876) 0%, rgba(255, 255, 255, .12) 47%, transparent 67%), linear-gradient(180deg, rgba(255, 255, 255, .442) 0%, transparent 42%, rgba(239, 243, 241, .425) 100%), rgba(239, 243, 241, .59);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .876), inset 0 -9px 18px rgba(75, 84, 78, .18), inset 0 0 0 1px rgba(255, 255, 255, .28), 0 16px 37px rgba(52, 60, 55, .162);
  backdrop-filter: blur(11px) saturate(135%) brightness(1.08);
}

.cms-header__cta::before {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 15px;
  width: 2px;
  border-radius: 999px;
  background: var(--cms-header-copper);
  content: "";
  opacity: .88;
}

.cms-header__cta-eyebrow {
  grid-column: 1;
  grid-row: 1;
  padding: 0 4px 0 22px;
  align-self: end;
  color: var(--cms-header-copper);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
}

.cms-header__cta-title { display: none; }

.cms-header__cta-detail {
  grid-column: 1;
  grid-row: 2;
  padding: 0 4px 0 22px;
  align-self: start;
  color: var(--cms-header-copy);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.1;
}

.cms-header__cta-arrow {
  display: grid;
  grid-column: 2;
  grid-row: 1 / 3;
  width: 48px;
  border-left: 1px solid rgba(71, 47, 27, .2);
  place-items: center;
  align-self: stretch;
  color: #b1540a;
  background: rgba(214, 117, 39, .06);
  font-size: 18px;
  font-weight: 800;
}

.cms-header__mobile { display: none; }

.cms-header__project-context,
.cms-header__mega {
  position: absolute;
  z-index: 82;
  top: 96px;
  left: 50%;
  width: min(1240px, calc(100% - 32px));
  translate: -50% 0;
}

.cms-header__project-context {
  display: flex;
  min-height: 48px;
  border-top: 1px solid var(--cms-header-line);
  border-bottom: 1px solid var(--cms-header-line);
  padding: 9px 22px;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 2.8vw, 44px);
  background: rgba(242, 240, 234, .96);
  box-shadow: 0 18px 38px rgba(28, 29, 26, .12);
}

.cms-header__project-context > span {
  color: #85877f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cms-header__project-context a {
  color: #474a45;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -.005em;
}

.cms-header__project-context a:hover,
.cms-header__project-context a:focus-visible { color: var(--cms-header-copper); }

.cms-header__mega {
  max-height: calc(100vh - 116px);
  border-top: 1px solid var(--cms-header-line);
  border-bottom: 1px solid rgba(91, 88, 80, .1);
  overflow: auto;
  background: rgba(242, 240, 234, .965);
  box-shadow: 0 14px 30px rgba(28, 29, 26, .11);
  backdrop-filter: blur(12px) saturate(104%);
}

.cms-header__mega-family-bar {
  display: grid;
  min-height: 56px;
  border-bottom: 1px solid var(--cms-header-line);
  padding: 6px 0;
  place-items: center;
}

.cms-header__mega-tabs {
  display: grid;
  width: min(760px, calc(100% - 48px));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.cms-header button.cms-header__mega-tab {
  display: inline-flex;
  min-height: 44px;
  border: 0;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #111;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -.015em;
}

.cms-header button.cms-header__mega-tab[aria-selected="true"] { color: var(--cms-header-blue); }
.cms-header button.cms-header__mega-tab span:last-child { color: #4894eb; transition: rotate 180ms ease; }
.cms-header button.cms-header__mega-tab[aria-selected="true"] span:last-child { rotate: 180deg; }

.cms-header__mega-panels { padding: 6px clamp(28px, 4vw, 64px) 18px; }

.cms-header__mega-grid {
  display: grid;
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  gap: clamp(18px, 2vw, 30px);
}

.cms-header__mega-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cms-header__mega-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 850px; }
.cms-header__mega-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 650px; }

.cms-header__mega-card {
  --cms-machine-scale: 1.22;
  display: grid;
  min-width: 0;
  grid-template-rows: 148px auto;
  padding: 0 2px 4px;
  color: #35405b;
  text-align: center;
}

.cms-header__mega-media {
  display: grid;
  height: 148px;
  overflow: hidden;
  place-items: center;
}

.cms-header__mega-media img {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transform: scale(var(--cms-machine-scale));
  transition: transform .36s ease;
}

.cms-header__mega-card:nth-child(1) { --cms-machine-scale: 1.34; }
.cms-header__mega-card:nth-child(2) { --cms-machine-scale: 1.25; }
.cms-header__mega-card:nth-child(3) { --cms-machine-scale: 1.30; }
.cms-header__mega-card:nth-child(4) { --cms-machine-scale: 1.12; }
.cms-header__mega-card:nth-child(5) { --cms-machine-scale: 1.32; }
.cms-header__mega-card:hover img { transform: translateY(-2px) scale(calc(var(--cms-machine-scale) + .04)); }

.cms-header__mega-copy {
  display: flex;
  margin-top: -2px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
}

.cms-header__mega-copy .cms-header__energy { margin: 0 0 2px; }
.cms-header__mega-copy strong { font-size: 16px; font-weight: 500; line-height: 1.18; }
.cms-header__mega-copy small { margin: 0; color: #66738d; font-size: 13px; line-height: 1.25; }

.cms-header__mega-card:hover,
.cms-header__mega-card:focus-visible { color: var(--cms-header-copper); }

.cms-header[data-cms-products-open="true"] .cms-header__nav-button { color: var(--cms-header-copper); }
.cms-header[data-cms-project-open="true"] .cms-header__project-trigger { color: var(--cms-header-green); }

.cms-header__backdrop {
  position: fixed;
  z-index: 81;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(21, 27, 37, .14);
  backdrop-filter: blur(3px);
  cursor: default;
}

.cms-header__panel {
  position: fixed;
  z-index: 82;
  top: 12px;
  bottom: 12px;
  display: flex;
  width: min(368px, calc(100vw - 28px));
  border: 1px solid rgba(224, 226, 229, .9);
  border-radius: 20px;
  flex-direction: column;
  overflow: hidden;
  color: #141923;
  background: rgba(252, 253, 254, .97);
  box-shadow: 0 24px 64px rgba(23, 31, 45, .18);
}

.cms-header__panel--orientation { left: 14px; }
.cms-header__panel--machines { right: 14px; }

.cms-header__panel-head {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 86px;
  padding: 22px 22px 12px 25px;
  align-items: start;
  gap: 16px;
}

.cms-header__panel-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #242934;
  font-size: 15px;
  font-weight: 600;
}

.cms-header__panel-brand::before {
  width: 20px;
  height: 20px;
  border: 3px solid var(--cms-header-copper);
  border-top-color: transparent;
  border-radius: 50%;
  content: "";
  rotate: -24deg;
}

.cms-header__panel-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cms-header__panel-close {
  display: grid;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  place-items: center;
  color: #90949a;
  background: #f0f3f4;
  cursor: pointer;
  font-size: 17px;
  letter-spacing: 2px;
}

.cms-header__panel-scroll {
  padding: 12px 22px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #bfc1c1 transparent;
  scrollbar-width: thin;
}

.cms-header__panel-eyebrow,
.cms-header__orientation-section > p {
  margin: 12px 8px 16px;
  color: #8b8e92;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cms-header__orientation-featured {
  position: relative;
  display: grid;
  border-radius: 15px;
  padding: 15px 42px 15px 16px;
  color: #35405b;
  background: linear-gradient(135deg, #e9effd, #eef1f8);
}

.cms-header__orientation-featured strong {
  color: var(--cms-header-blue);
  font-size: 16px;
  line-height: 1.2;
}

.cms-header__orientation-featured small {
  margin-top: 5px;
  color: #727a89;
  font-size: 11px;
  line-height: 1.45;
}

.cms-header__orientation-featured > span:last-child,
.cms-header__orientation-link > span:last-child,
.cms-header__orientation-cta > span:last-child { color: #5d80d6; }

.cms-header__orientation-featured > span {
  position: absolute;
  top: 50%;
  right: 16px;
  translate: 0 -50%;
}

.cms-header__orientation-heading {
  display: grid;
  margin: 21px 8px 0;
  grid-template-columns: 1fr auto;
  color: #343a48;
}

.cms-header__orientation-heading strong { font-size: 16px; }
.cms-header__orientation-heading > span:first-child { display: grid; }
.cms-header__orientation-heading small { margin-top: 3px; color: #828791; font-size: 11px; }
.cms-header__orientation-heading span { color: #7183a5; }

.cms-header__orientation-links { display: grid; gap: 3px; }

.cms-header__orientation-link,
.cms-header__orientation-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  border-radius: 10px;
  padding: 11px 9px;
  align-items: center;
  color: #181e29;
  font-size: 14px;
  font-weight: 600;
}

.cms-header__orientation-link:hover,
.cms-header__orientation-link:focus-visible { background: #f2f4f7; }

.cms-header__orientation-cta {
  margin-top: 20px;
  padding: 14px 16px;
  color: #fff;
  background: #1b2434;
}

.cms-header__machine-intro {
  margin: 11px 8px 17px;
  color: #888d95;
  font-size: 11px;
}

.cms-header__machine-group {
  border-bottom: 1px solid #ebecef;
  padding: 0;
}

.cms-header__machine-group summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 58px;
  border-radius: 14px;
  padding: 0 15px;
  align-items: center;
  color: #303642;
  cursor: pointer;
  list-style: none;
}

.cms-header__machine-group summary::-webkit-details-marker { display: none; }
.cms-header__machine-group[open] summary { margin-bottom: 8px; background: #edf1fb; }
.cms-header__machine-group summary strong { font-size: 14px; }
.cms-header__machine-group summary small { margin-left: 7px; color: #8b8f98; font-size: 9px; }
.cms-header__machine-group summary span { color: #6480c7; transition: rotate 160ms ease; }
.cms-header__machine-group[open] summary span { rotate: 180deg; }

.cms-header__machine-list { display: grid; padding: 1px 5px 14px; gap: 3px; }

.cms-header__machine-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr auto;
  min-height: 72px;
  border-radius: 11px;
  align-items: center;
  color: #1c2230;
}

.cms-header__machine-card:hover,
.cms-header__machine-card:focus-visible { background: #f4f6f8; }

.cms-header__machine-card img {
  display: block;
  width: 68px;
  height: 62px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.cms-header__machine-card--no-image { grid-template-columns: 20px 1fr auto; padding-left: 10px; }
.cms-header__machine-card--no-image::before { color: var(--cms-header-copper); content: "◔"; }

.cms-header__machine-copy { display: grid; min-width: 0; }
.cms-header__machine-copy strong { font-size: 12px; font-weight: 500; line-height: 1.2; }
.cms-header__machine-copy small { margin-top: 4px; color: #878c95; font-size: 9px; line-height: 1.2; }

.cms-header__energy {
  margin-right: 7px;
  color: #6d80c4;
  font-size: 0;
}

.cms-header__energy::before { content: "ϟ"; font-size: 18px; }
.cms-header__energy--gaz { color: #c4803b; }
.cms-header__energy--gaz::before { content: "◊"; }
.cms-header__energy--bois { color: #88663f; }
.cms-header__energy--bois::before { content: "◇"; }

.cms-header a:focus-visible,
.cms-header button:focus-visible,
.cms-header summary:focus-visible {
  outline: 2px solid #6688df;
  outline-offset: 3px;
}

.cms-header__nav-button:focus-visible { outline: 0; }

body.cms-header-panel-open { overflow: hidden; }

@media (min-width: 901px) and (max-width: 1180px) {
  .cms-header__action,
  .cms-header__cta { min-width: 224px; }

  .cms-header__botanical {
    right: -42px;
    width: 306px;
  }
}

@media (max-width: 900px) {
  .cms-header__desktop { display: none; }

  .cms-header__mobile {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 29.5% 1fr 29.5%;
    width: 100%;
    min-height: 64px;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(146, 182, 62, .2);
    background: linear-gradient(90deg, rgba(var(--cms-header-paper-rgb), .98) 0%, rgba(var(--cms-header-paper-rgb), .96) 58%, rgba(var(--cms-header-paper-rgb), .68) 100%);
  }

  .cms-header__mobile > * { position: relative; z-index: 1; }

  .cms-header__mobile-botanical {
    position: absolute;
    z-index: 0;
    right: -110px;
    bottom: -56px;
    display: block;
    width: 540px;
    height: auto;
    max-width: none;
    opacity: .28;
    pointer-events: none;
    mix-blend-mode: multiply;
  }

  .cms-header__mobile-brand {
    display: grid;
    height: 60px;
    place-items: center;
  }

  .cms-header__mobile-brand img {
    display: block;
    width: auto;
    height: 46px;
    object-fit: contain;
  }

  .cms-header button.cms-header__mobile-trigger {
    display: inline-flex;
    width: calc(100% - 3px);
    height: 46px;
    border: 0;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #374157;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
  }

  .cms-header button.cms-header__mobile-trigger:first-of-type { margin-left: 3px; }
  .cms-header button.cms-header__mobile-trigger:last-child {
    justify-self: end;
    margin-right: 3px;
  }

  .cms-header__panel { width: min(304px, calc(100vw - 28px)); }
  .cms-header__panel--machines { right: auto; left: 14px; }

  .cms-header__trigger-icon {
    position: relative;
    display: inline-block;
    width: 17px;
    height: 17px;
  }

  .cms-header__trigger-icon--menu::before,
  .cms-header__trigger-icon--menu::after,
  .cms-header__trigger-icon--menu {
    border-top: 1.5px solid currentColor;
  }

  .cms-header__trigger-icon--menu::before,
  .cms-header__trigger-icon--menu::after {
    position: absolute;
    right: 0;
    left: 0;
    content: "";
  }

  .cms-header__trigger-icon--menu::before { top: 5px; }
  .cms-header__trigger-icon--menu::after { top: 11px; }

  .cms-header__trigger-icon--machines {
    background:
      linear-gradient(currentColor 0 0) 1px 1px / 5px 5px no-repeat,
      linear-gradient(currentColor 0 0) 10px 1px / 5px 5px no-repeat,
      linear-gradient(currentColor 0 0) 1px 10px / 5px 5px no-repeat,
      linear-gradient(currentColor 0 0) 10px 10px / 5px 5px no-repeat;
  }
}

@media (max-width: 420px) {
  .cms-header__mobile { grid-template-columns: 1fr 142px 1fr; }
  .cms-header__mobile-brand img { height: 34px; }
  .cms-header button.cms-header__mobile-trigger {
    width: auto;
    margin-inline: 0;
    padding-inline: 10px;
    justify-content: flex-start;
    font-size: 13px;
  }
  .cms-header button.cms-header__mobile-trigger:last-child {
    margin-right: 0;
    justify-content: flex-end;
  }
  .cms-header__panel { width: min(304px, calc(100vw - 28px)); }
}

/* Parité de mouvement avec le header public — audit PROD du 03/08/2026. */
.cms-header__desktop::before {
  transition: opacity .5s cubic-bezier(.22, 1, .36, 1), background-color .5s cubic-bezier(.22, 1, .36, 1);
}

@media (min-width: 901px) {
  .cms-header[data-cms-sticky="true"] {
    background-color: rgba(242, 240, 234, .72);
    -webkit-backdrop-filter: blur(18px) saturate(115%);
    backdrop-filter: blur(18px) saturate(115%);
    box-shadow: 0 12px 38px rgba(28, 29, 26, .08);
  }

  .cms-header[data-cms-sticky="true"] .cms-header__desktop::before {
    background: transparent;
    opacity: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.cms-header__nav-link,
.cms-header button.cms-header__nav-button {
  transition: color .2s ease;
}

.cms-header__nav-link:hover,
.cms-header button.cms-header__nav-button:hover { color: var(--cms-header-copper); }

.cms-header button.cms-header__nav-button:focus,
.cms-header button.cms-header__nav-button:focus-visible {
  outline: 0;
  outline-offset: 0;
}

.cms-header__brand img {
  transition: opacity .46s cubic-bezier(.22, 1, .36, 1), transform .46s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}

.cms-header__brand .cms-header__logo--default { opacity: 1; }
.cms-header__brand .cms-header__logo--sticky {
  opacity: 0;
  transform: translateY(calc(-50% + 5px)) scale(.985);
}

.cms-header[data-cms-sticky="true"] .cms-header__brand .cms-header__logo--default {
  opacity: 0;
  transform: translateY(calc(-50% - 5px)) scale(.985);
}

.cms-header[data-cms-sticky="true"] .cms-header__brand .cms-header__logo--sticky {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.cms-header__cta {
  transition: transform .24s ease, box-shadow .24s ease;
}

.cms-header__cta:hover {
  color: var(--cms-header-copy);
  transform: translateY(-1px);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .92), inset 0 -9px 18px rgba(75, 84, 78, .16), inset 0 0 0 1px rgba(255, 255, 255, .34), 0 18px 40px rgba(52, 60, 55, .2);
}

.cms-header__cta-title,
.cms-header__cta-detail {
  display: block;
  grid-column: 1;
  grid-row: 2;
  padding: 0 4px 0 22px;
  align-self: start;
  color: var(--cms-header-copy);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.1;
  transition: opacity .22s ease, transform .22s ease;
}

.cms-header__cta[data-cms-contact-mode="project"] .cms-header__cta-title,
.cms-header__cta[data-cms-contact-mode="contact"] .cms-header__cta-detail {
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
}

.cms-header__cta[data-cms-contact-mode="project"] .cms-header__cta-detail,
.cms-header__cta[data-cms-contact-mode="contact"] .cms-header__cta-title {
  opacity: 1;
  transform: translateY(0);
}

.cms-header__cta-arrow {
  transition: background .22s ease, color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.cms-header__cta:hover .cms-header__cta-arrow,
.cms-header__cta:focus-visible .cms-header__cta-arrow,
.cms-header__cta:active .cms-header__cta-arrow {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(214, 117, 39, .9) 42%, rgba(214, 117, 39, .76));
  box-shadow: inset 1px 0 rgba(255, 255, 255, .38), inset 0 2px 2px rgba(255, 255, 255, .42), 0 0 24px rgba(214, 117, 39, .24);
  transform: translateX(1px);
}

@media (min-width: 901px) {
  .cms-header__project-context[hidden] { display: flex !important; }
  .cms-header__mega[hidden] { display: block !important; }

  .cms-header__project-context {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -10px, 0) scale(.995);
    transform-origin: top center;
    filter: blur(1.5px);
    will-change: opacity, transform, filter;
    transition: opacity .25s cubic-bezier(.4, 0, .2, 1), transform .32s cubic-bezier(.4, 0, .2, 1), filter .2s ease, visibility 0s linear .32s;
  }

  .cms-header[data-cms-project-open="true"] .cms-header__project-context {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
    transition: opacity .4s cubic-bezier(.22, 1, .36, 1), transform .52s cubic-bezier(.22, 1, .36, 1), filter .32s ease, visibility 0s;
  }

  .cms-header__mega {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -12px, 0) scale(.992);
    transform-origin: top center;
    filter: blur(2px);
    will-change: opacity, transform, filter;
    transition: opacity .28s cubic-bezier(.4, 0, .2, 1), transform .36s cubic-bezier(.4, 0, .2, 1), filter .22s ease, visibility 0s linear .36s;
  }

  .cms-header__mega-family-bar,
  .cms-header__mega-panels {
    opacity: 0;
    transform: translate3d(0, -7px, 0);
    will-change: opacity, transform;
    transition: opacity .2s ease, transform .26s ease;
  }

  .cms-header__mega-card {
    opacity: 0;
    transform: translate3d(0, 9px, 0) scale(.988);
    will-change: opacity, transform;
    transition: opacity .18s ease, transform .24s ease, color .2s ease;
  }

  .cms-header[data-cms-products-open="true"] .cms-header__mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
    transition: opacity .46s cubic-bezier(.22, 1, .36, 1), transform .62s cubic-bezier(.22, 1, .36, 1), filter .38s ease, visibility 0s;
  }

  .cms-header[data-cms-products-open="true"] .cms-header__mega-family-bar {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity .38s cubic-bezier(.22, 1, .36, 1) .06s, transform .52s cubic-bezier(.22, 1, .36, 1) .06s;
  }

  .cms-header[data-cms-products-ready="true"] .cms-header__mega-panels {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity .42s cubic-bezier(.22, 1, .36, 1) .13s, transform .58s cubic-bezier(.22, 1, .36, 1) .13s;
  }

  .cms-header[data-cms-products-ready="true"] .cms-header__mega-card {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    transition: opacity .42s cubic-bezier(.22, 1, .36, 1) .18s, transform .58s cubic-bezier(.22, 1, .36, 1) .18s, color .2s ease;
  }

  .cms-header[data-cms-products-ready="true"] .cms-header__mega-card:nth-child(2) { transition-delay: .22s; }
  .cms-header[data-cms-products-ready="true"] .cms-header__mega-card:nth-child(3) { transition-delay: .26s; }
  .cms-header[data-cms-products-ready="true"] .cms-header__mega-card:nth-child(4) { transition-delay: .30s; }
  .cms-header[data-cms-products-ready="true"] .cms-header__mega-card:nth-child(5) { transition-delay: .34s; }

  .cms-header__mega-media img {
    --cms-machine-scale: 1.38;
    transform: translate3d(0, 0, 0) scale(var(--cms-machine-scale));
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
  }

  .cms-header__mega-grid[data-cms-family-panel="family-0"] .cms-header__mega-card:nth-child(1) img { --cms-machine-scale: 1.5; }
  .cms-header__mega-grid[data-cms-family-panel="family-0"] .cms-header__mega-card:nth-child(2) img { --cms-machine-scale: 1.38; }
  .cms-header__mega-grid[data-cms-family-panel="family-0"] .cms-header__mega-card:nth-child(3) img { --cms-machine-scale: 1.46; }
  .cms-header__mega-grid[data-cms-family-panel="family-0"] .cms-header__mega-card:nth-child(4) img { --cms-machine-scale: 1.22; }
  .cms-header__mega-grid[data-cms-family-panel="family-0"] .cms-header__mega-card:nth-child(5) img { --cms-machine-scale: 1.48; }

  .cms-header__mega-card:hover img {
    transform: translate3d(0, -2px, 0) scale(calc(var(--cms-machine-scale) + .04));
  }

  .cms-header[data-cms-products-open="true"] [data-cms-products-toggle] { color: var(--cms-header-blue); }
  .cms-header[data-cms-project-open="true"] .cms-header__project-trigger { color: var(--cms-header-green); }
}

@media (max-width: 900px) {
  .cms-header__backdrop:not([hidden]) { animation: cms-header-backdrop-in .24s ease both; }
  .cms-header__panel:not([hidden]) { animation: cms-header-panel-in .36s cubic-bezier(.22, 1, .36, 1) both; }
}

@keyframes cms-header-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cms-header-panel-in {
  from { opacity: 0; transform: translate3d(-10px, 0, 0) scale(.985); filter: blur(1.5px); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  .cms-header *,
  .cms-header *::before,
  .cms-header *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .cms-header__project-context,
  .cms-header__mega,
  .cms-header__mega-family-bar,
  .cms-header__mega-panels,
  .cms-header__mega-card,
  .cms-header__cta,
  .cms-header__cta-arrow,
  .cms-header__panel,
  .cms-header__backdrop {
    filter: none !important;
    transform: none !important;
  }

  .cms-header__mega-card:hover img {
    transform: translate3d(0, 0, 0) scale(var(--cms-machine-scale)) !important;
  }
}
