@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSansVF.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal italic;
  font-display: swap;
}

:root {
  --green: #29504a;
  --sage: #9cb29d;
  --sage-soft: #d9e0d8;
  --cream: #f9f6f2;
  --warm: #f2ede8;
  --orange: #eb5a32;
  --ink: #2b2223;
  --muted: #c7c9c5;
  --white: #ffffff;
  --line: rgba(43, 34, 35, 0.62);
  --font: "Mona Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  --container: 1160px;
  --gutter: clamp(30px, 5.5vw, 112px);
  --header-h: 92px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

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

@media (pointer: fine) {
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button {
    cursor: none;
  }

  .custom-cursor {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 300;
    width: 18px;
    height: 18px;
    border: 2px solid var(--orange);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
    transition: width 160ms ease, height 160ms ease, opacity 160ms ease, background 160ms ease;
  }

  .custom-cursor.is-visible {
    opacity: 1;
  }

  .custom-cursor.is-hovering {
    width: 30px;
    height: 30px;
    background: rgba(235, 90, 50, 0.16);
  }

  .custom-cursor.is-pressed {
    width: 14px;
    height: 14px;
    background: var(--orange);
  }
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
.nav-link,
.tag,
.button,
.filter {
  letter-spacing: 0;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--green);
  color: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  width: 100%;
  height: var(--header-h);
  padding: 24px var(--gutter) 0;
  background: var(--white);
}

.brand img {
  width: 112px;
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(38px, 5vw, 70px);
  color: var(--green);
}

.nav-link {
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  text-transform: uppercase;
}

.nav-link[aria-current="page"] {
  font-weight: 850;
}

.nav-toggle {
  display: none;
}

.mobile-menu {
  display: none;
}

.home-page {
  min-height: 100svh;
  overflow: auto;
}

.home-cover {
  --home-frame: clamp(56px, 6.9vw, 100px);
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: var(--home-frame);
  background: var(--white);
}

.home-stack {
  display: block;
  width: calc(100vw - var(--home-frame) * 2);
  height: calc(100svh - var(--home-frame) * 2);
}

.home-card {
  --home-brand-gap: -10px;
  --home-logo-width: min(542px, 44vw);
  --home-wordmark-width: calc(var(--home-logo-width) * 0.96);
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto 1fr auto;
  padding: clamp(72px, 10vh, 112px) clamp(80px, 9vw, 134px) clamp(38px, 5vh, 48px);
  background: var(--green);
  color: var(--white);
  overflow: hidden;
}

.home-card > div:first-child {
  display: grid;
  justify-items: center;
}

.home-logo {
  display: block;
  justify-self: center;
  width: var(--home-logo-width);
}

.home-baseline {
  display: flex;
  width: var(--home-wordmark-width);
  justify-content: space-between;
  gap: 18px;
  margin-top: var(--home-brand-gap);
  color: var(--sage);
  font-size: 28px;
  font-weight: 450;
  letter-spacing: 0.07em;
  text-align: center;
  white-space: nowrap;
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-self: center;
  margin-top: 38px;
}

.home-action {
  display: grid;
  min-height: 200px;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  justify-items: center;
  padding: 0 58px;
  border-right: 1px solid var(--white);
}

.home-action:last-child {
  border-right: 0;
}

.home-animation {
  width: clamp(86px, 8.2vw, 118px);
  height: clamp(86px, 8.2vw, 118px);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  justify-self: center;
}

.home-action span {
  display: block;
  width: 100%;
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.home-action:hover span,
.home-action:focus-visible span {
  color: var(--sage);
}

.home-link {
  position: absolute;
  right: var(--home-frame);
  bottom: calc(var(--home-frame) / 2);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--sage);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  transform: translateY(50%);
}

.home-link:hover,
.home-link:focus-visible {
  color: var(--green);
}

.home-link img {
  width: 31px;
}

.home-link:hover img,
.home-link:focus-visible img {
  filter: brightness(0) saturate(100%) invert(26%) sepia(17%) saturate(953%) hue-rotate(122deg) brightness(93%) contrast(91%);
}

.page-shell {
  padding-top: var(--header-h);
}

body.page-competences {
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
}

.section {
  min-height: 900px;
}

.competence-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(100svh - var(--header-h));
  min-height: 0;
  overflow: hidden;
  scroll-margin-top: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.competence-mobile-track {
  display: contents;
}

body.page-competences .method {
  scroll-margin-top: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.competence-copy,
.competence-media,
.certification-panel {
  min-width: 0;
}

.competence-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: clamp(38px, 6svh, 84px) var(--gutter);
  background: var(--white);
  overflow: hidden;
}

.competence-copy-inner {
  width: min(430px, 100%);
}

.competence-picto {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 14px;
}

.tag {
  display: block;
  margin-bottom: 9px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.tag--sage {
  color: var(--sage);
}

.method h2 {
  color: var(--green);
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 560;
  line-height: 1;
  white-space: nowrap;
}

.method .tag {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}

.competence-copy h1,
.competence-copy h2 {
  color: var(--green);
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 850;
  line-height: 1.02;
}

.competence-copy p {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.48;
}

.button-row {
  display: flex;
  gap: 15px;
  margin-top: 22px;
}

.button {
  display: inline-grid;
  min-width: 93px;
  height: 33px;
  place-items: center;
  padding: 0 18px;
  border: 1px solid var(--sage);
  border-radius: 5px;
  color: var(--sage);
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
}

.button:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.competence-media {
  position: relative;
  background: var(--cream);
  overflow: hidden;
}

.media-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.competence-carousel {
  --carousel-dots-bottom: 54px;
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  background: var(--cream);
  overflow: hidden;
}

.competence-carousel__track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.competence-carousel__track::-webkit-scrollbar {
  display: none;
}

.competence-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  scroll-snap-align: center;
}

.competence-slide > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(156, 178, 157, 0.58);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  color: var(--green);
  transform: translateY(-50%);
}

.carousel-arrow::before {
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  border-color: var(--green);
  background: var(--white);
}

.carousel-arrow:disabled {
  opacity: 0.34;
  pointer-events: none;
}

.carousel-arrow--prev {
  left: 20px;
}

.carousel-arrow--prev::before {
  transform: translateX(2px) rotate(-135deg);
}

.carousel-arrow--next {
  right: 20px;
}

.carousel-arrow--next::before {
  transform: translateX(-2px) rotate(45deg);
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: var(--carousel-dots-bottom);
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--sage);
  border-radius: 50%;
}

.carousel-dot.is-active {
  background: var(--sage);
}

.competence-row-dots {
  display: none;
}

.carousel-dots.is-on-image .carousel-dot {
  border-color: var(--white);
}

.carousel-dots.is-on-image .carousel-dot.is-active {
  background: var(--white);
}

.media-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green);
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
}

.media-arrow--left {
  left: 20px;
}

.media-arrow--right {
  right: 20px;
}

.dots {
  position: absolute;
  left: 50%;
  bottom: 66px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--sage);
  border-radius: 50%;
}

.dot.is-active {
  background: var(--sage);
}

.block-warm {
  background: var(--cream);
}

.certification-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  background: var(--cream);
  overflow: hidden;
}

.certification-carousel {
  height: 100%;
}

.certification-slide {
  display: grid;
  place-items: center;
  background: var(--cream);
}

.certification-inner {
  width: min(380px, 76%);
  text-align: center;
}

.cecb {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 52px;
  color: var(--white);
  font-size: 35px;
  font-weight: 850;
}

.cecb span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 2px;
  background: var(--sage);
}

.cecb span:nth-child(2) {
  background: #74ad64;
}

.cecb span:nth-child(3) {
  background: #f2a64f;
}

.cecb span:nth-child(4) {
  background: #cf5140;
}

.cecb strong {
  margin-left: 8px;
  color: var(--green);
  font-size: 23px;
  font-weight: 500;
}

.minergie {
  color: var(--ink);
  font-size: 43px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.minergie span,
.certification-link {
  color: var(--orange);
}

.certification-link {
  display: inline-block;
  margin-top: 35px;
  font-size: 15px;
}

.method {
  --method-visible-height: calc(100svh - var(--header-h));
  --method-logo-length: calc(var(--method-visible-height) * 1.6);
  --method-logo-thickness: clamp(460px, 50vw, 760px);
  width: min(calc(100% - var(--gutter) * 2), 1500px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 3fr);
  gap: clamp(46px, 4vw, 72px);
  min-height: var(--method-visible-height);
  padding-block: clamp(70px, 10svh, 105px) clamp(34px, 5svh, 48px);
  overflow: visible;
  overflow-anchor: none;
}

.method::before {
  content: "";
  position: absolute;
  left: calc((100vw - 100%) / -2 + var(--method-logo-thickness) / 2 - 225px);
  top: calc(var(--method-visible-height) * 1.65);
  width: var(--method-logo-length);
  height: var(--method-logo-thickness);
  background: url("../icons/kairn-logo.svg") left center / contain no-repeat;
  opacity: 0.06;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
}

.method-content {
  position: relative;
  z-index: 1;
  grid-column: 2;
}

.accordion {
  margin-top: 46px;
  border-top: 1px solid var(--line);
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-trigger {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: clamp(110px, 8vw, 140px) 1fr 64px;
  align-items: center;
  min-height: 0;
  padding-block: clamp(34px, 4.4svh, 48px);
  text-align: left;
}

.accordion-number {
  color: var(--sage);
  font-size: clamp(44px, 4.3vw, 60px);
  font-weight: 420;
  line-height: 0.9;
}

.accordion-title {
  color: var(--ink);
  font-size: clamp(23px, 2.35vw, 32px);
  font-weight: 560;
  line-height: 1;
}

.accordion-symbol {
  justify-self: end;
  width: 38px;
  height: 38px;
  background: center / contain no-repeat url("../icons/plus.svg");
}

.accordion-trigger[aria-expanded="true"] .accordion-symbol {
  background-image: url("../icons/minus.svg");
}

.accordion-panel {
  max-width: 860px;
  padding: 0 64px clamp(34px, 4.4svh, 48px) clamp(110px, 8vw, 140px);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 320;
  line-height: 1.42;
}

.portfolio-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 58px;
  padding-top: 70px;
}

.portfolio-filters {
  position: sticky;
  top: 120px;
  display: grid;
  align-content: start;
  gap: 36px;
  padding-top: 22px;
  color: var(--muted);
}

.filter {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  text-align: left;
}

.filter img {
  width: 48px;
  opacity: 0.25;
}

.filter > span:last-child {
  color: currentColor;
  font-size: 18px;
  font-weight: 550;
  line-height: 1.2;
  text-transform: uppercase;
}

.filter.is-active {
  color: var(--green);
}

.filter.is-active img {
  opacity: 1;
}

.filter-all > span:first-child {
  display: flex;
  gap: 5px;
  grid-column: 1 / -1;
}

.filter-all img {
  width: 39px;
}

.filter-all > span:last-child {
  grid-column: 1 / -1;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 86px 40px;
}

.project-card.is-hidden {
  display: none;
}

.project-card-image {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.project-card-image img {
  width: 100%;
  aspect-ratio: 1 / 1.2;
  object-fit: cover;
}

.portfolio-grid .project-card:nth-child(-n + 2) .project-card-image img,
.portfolio-grid .project-card:nth-child(3) .project-card-image img,
.portfolio-grid .project-card:nth-child(4) .project-card-image img {
  aspect-ratio: 1 / 1.18;
}

.project-arrow {
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  color: var(--green);
  font-size: 30px;
  line-height: 25px;
  text-align: center;
}

.project-arrow--left {
  left: 18px;
}

.project-arrow--right {
  right: 18px;
}

.project-card-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding-top: 22px;
}

.project-card h2 {
  color: var(--green);
  font-size: 30px;
  font-weight: 850;
  line-height: 0.95;
}

.project-card small {
  display: block;
  margin-top: 9px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.project-icons {
  display: flex;
  gap: 7px;
  align-items: start;
}

.project-icons img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.project-intro {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 98px;
  padding-top: 68px;
  padding-bottom: 120px;
}

.project-title h1 {
  margin-bottom: 6px;
  color: var(--green);
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
}

.project-title .tag {
  color: var(--sage);
}

.project-details {
  display: grid;
  gap: 16px;
  margin-top: 60px;
  font-size: 13px;
}

.project-details dt,
.project-details dd {
  margin: 0;
}

.project-details strong {
  display: block;
  font-weight: 850;
}

.project-text {
  max-width: 720px;
  font-size: 13px;
  line-height: 1.58;
}

.project-text p + p {
  margin-top: 17px;
}

.project-mobile-accordions {
  display: none;
}

.project-gallery {
  display: grid;
  gap: 86px;
}

.gallery-wide,
.gallery-pair,
.gallery-asym {
  width: min(calc(100% - var(--gutter) * 2), 1160px);
  margin-inline: auto;
}

.gallery-wide img,
.gallery-pair img,
.gallery-asym img {
  width: 100%;
  object-fit: cover;
}

.gallery-wide img {
  aspect-ratio: 1160 / 710;
}

.gallery-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.gallery-pair img {
  aspect-ratio: 1 / 1.12;
}

.gallery-asym img {
  aspect-ratio: 1160 / 540;
}

.atelier-page,
.contact-page {
  min-height: calc(100svh - var(--header-h));
  padding-block: 95px 140px;
}

.simple-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 90px;
}

.simple-grid h1 {
  color: var(--green);
  font-size: clamp(44px, 5vw, 76px);
  line-height: 0.98;
}

.simple-grid p,
.contact-list {
  max-width: 620px;
  font-size: 18px;
}

.simple-grid p + p {
  margin-top: 22px;
}

.contact-list {
  display: grid;
  gap: 22px;
  margin-top: 36px;
}

.contact-list strong {
  display: block;
  color: var(--green);
  font-size: 13px;
  text-transform: uppercase;
}

.site-footer {
  margin-top: 95px;
  background: var(--green);
  color: var(--sage);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 92px;
  font-size: 12px;
}

.footer-logo img {
  width: 122px;
}

.footer-contact {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  align-items: center;
}

.footer-contact img {
  width: 22px;
}

@media (max-width: 840px) {
  :root {
    --gutter: 30px;
    --header-h: 102px;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    display: grid;
    height: var(--header-h);
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 20px 30px 0;
  }

  .brand img {
    width: 145px;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    position: fixed;
    right: 32px;
    bottom: 30px;
    z-index: 120;
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent center / 34px auto no-repeat url("../icons/menu.svg");
    transform: translateY(calc(var(--nav-footer-offset, 0px) * -1));
    transition: transform 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] {
    background-image: url("../icons/close.svg");
    background-size: 23px auto;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    grid-template-rows: auto 1fr;
    padding-top: 38px;
    background: var(--white);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .mobile-menu-logo {
    justify-self: center;
    width: 145px;
  }

  .mobile-menu-nav {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 52px;
    color: var(--green);
    padding-bottom: 120px;
  }

  .mobile-menu-nav .nav-link {
    font-size: 18px;
  }

  .home-page {
    overflow: hidden;
  }

  .home-cover {
    --home-mobile-frame: clamp(28px, 9.75vw, 39px);
    --home-link-space: clamp(58px, 12svh, 72px);
    min-height: 100svh;
    padding: var(--home-mobile-frame) var(--home-mobile-frame) 0;
    place-items: center;
  }

  .home-stack {
    display: grid;
    width: min(322px, calc(100vw - var(--home-mobile-frame) * 2));
    height: calc(100svh - var(--home-mobile-frame));
    grid-template-rows: minmax(0, 1fr) var(--home-link-space);
    gap: 0;
  }

  .home-card {
    --home-logo-width: min(252px, 100%, 34svh);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    min-height: 0;
    height: 100%;
    padding: clamp(22px, 5.2svh, 42px) clamp(10px, 3.8vw, 15px) clamp(22px, 4svh, 32px);
    border-radius: clamp(20px, 7vw, 28px);
  }

  .home-card > div:first-child {
    align-self: start;
  }

  .home-logo {
    width: var(--home-logo-width);
  }

  .home-baseline {
    margin-top: clamp(4px, 1.1svh, 8px);
    gap: 8px;
    font-size: clamp(11px, 3.2vw, 12.5px);
    line-height: 1;
    letter-spacing: 0.03em;
    text-align: center;
  }

  .home-actions {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    align-self: stretch;
    margin-top: clamp(18px, 3.8svh, 34px);
    min-height: 0;
  }

  .home-action {
    grid-template-columns: minmax(0, 1fr) clamp(76px, 22vw, 90px);
    grid-template-rows: 1fr;
    column-gap: clamp(6px, 2vw, 10px);
    min-height: 0;
    height: auto;
    align-items: center;
    justify-items: left;
    padding-inline: clamp(20px, 6vw, 28px) clamp(20px, 6vw, 28px);
    padding-block: clamp(10px, 1.9svh, 15px);
    border-right: 0;
    border-bottom: 1px solid var(--white);
    overflow: hidden;
  }

  .home-action + .home-action {
    padding-top: clamp(10px, 1.9svh, 15px);
  }

  .home-action:last-child {
    border-bottom: 0;
  }

  .home-animation {
    grid-column: 2;
    grid-row: 1;
    width: min(86px, 12svh, 22vw);
    height: min(86px, 12svh, 22vw);
    justify-self: start;
    align-self: center;
    z-index: 0;
  }

  .home-action:first-child .home-animation {
    width: min(78px, 11svh, 20vw);
    height: min(78px, 11svh, 20vw);
  }

  .home-action:nth-child(3) .home-animation {
    width: min(92px, 13svh, 24vw);
    height: min(92px, 13svh, 24vw);
  }

  .home-action span {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    min-width: 0;
    width: auto;
    font-size: clamp(12px, 3.6vw, 15px);
    font-weight: 700;
    line-height: 1.04;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    z-index: 1;
  }

  .home-action:nth-child(2) span,
  .home-action:nth-child(3) span {
    max-width: 104px;
    white-space: normal;
    line-height: 1.08;
  }

  .home-action:nth-child(3) span {
    max-width: 92px;
  }

  .home-link {
    position: static;
    justify-self: end;
    align-self: center;
    gap: 10px;
    font-size: clamp(12px, 3.5vw, 14px);
    transform: none;
  }

  .home-link img {
    width: 24px;
  }

  .competence-row {
    display: block;
    position: relative;
    height: calc(100svh - var(--header-h));
    min-height: 0;
    overflow: hidden;
    scroll-margin-top: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .competence-mobile-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .competence-mobile-track::-webkit-scrollbar {
    display: none;
  }

  .competence-copy {
    order: 1;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    min-height: 0;
    justify-content: flex-start;
    padding: 36px 30px 42px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .competence-copy-inner {
    width: 100%;
  }

  .competence-picto {
    width: 48px;
    height: 48px;
  }

  .competence-copy h1,
  .competence-copy h2,
  .method h2 {
    font-size: 34px;
    line-height: 1.03;
    white-space: normal;
  }

  .method h2 {
    max-width: 100%;
    font-size: clamp(25px, 7.2vw, 30px);
    line-height: 1.06;
  }

  .method .tag {
    font-size: 12px;
  }

  .competence-copy p {
    font-size: 13px;
  }

  .button-row {
    margin-top: 20px;
  }

  .competence-media {
    display: contents;
  }

  .media-frame {
    display: contents;
  }

  .competence-carousel {
    display: contents;
  }

  .competence-carousel__track {
    display: contents;
  }

  .competence-slide > img {
    height: 100%;
    object-fit: cover;
  }

  .carousel-arrow {
    display: none;
  }

  .certification-panel {
    display: contents;
  }

  .competence-slide {
    order: 2;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    min-height: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .competence-carousel > .carousel-dots {
    display: none;
  }

  .competence-row-dots {
    position: absolute;
    left: 50%;
    bottom: clamp(16px, 3.8svh, 30px);
    z-index: 6;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    transform: translateX(-50%);
  }

  .cecb {
    font-size: 26px;
  }

  .cecb span {
    width: 28px;
    height: 28px;
  }

  .cecb strong {
    font-size: 18px;
  }

  .minergie {
    font-size: 32px;
  }

  .method {
    display: block;
    padding: 26px 20px 54px;
  }

  .method::before {
    display: none;
  }

  .accordion-trigger {
    grid-template-columns: 1fr 40px;
    row-gap: 8px;
    min-height: 0;
    padding-block: 18px;
  }

  .accordion-number {
    grid-column: 1;
    grid-row: 1;
    font-size: 22px;
    line-height: 1;
  }

  .accordion-title {
    grid-column: 1;
    grid-row: 2;
    font-size: 18px;
    line-height: 1.12;
  }

  .accordion-symbol {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 30px;
    height: 30px;
    align-self: center;
  }

  .accordion-panel {
    padding: 0 0 20px;
    font-size: 13px;
    line-height: 1.45;
  }

  .portfolio-layout {
    display: block;
    padding-top: 0;
  }

  .portfolio-filters {
    position: static;
    display: flex;
    gap: 18px;
    padding: 30px 20px 24px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .filter {
    display: block;
  }

  .filter img {
    display: none;
  }

  .filter span {
    font-size: 9px;
    font-weight: 850;
  }

  .portfolio-grid {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    gap: 54px;
    margin-inline: auto;
  }

  .project-card-image img {
    aspect-ratio: 1 / 1.16;
  }

  .project-card-meta {
    grid-template-columns: 1fr auto;
    padding-top: 15px;
  }

  .project-card h2 {
    font-size: 20px;
  }

  .project-card small {
    font-size: 8px;
  }

  .project-icons img {
    width: 31px;
    height: 31px;
  }

  .project-intro {
    display: none;
  }

  .project-mobile-accordions {
    display: block;
    width: calc(100% - 60px);
    margin: 38px auto 30px;
    border-top: 1px solid var(--line);
  }

  .project-mobile-accordions .accordion-trigger {
    grid-template-columns: 1fr 44px;
  }

  .project-mobile-accordions .accordion-title {
    font-size: 16px;
  }

  .project-gallery {
    gap: 25px;
  }

  .gallery-wide,
  .gallery-pair,
  .gallery-asym {
    width: calc(100% - 60px);
  }

  .gallery-pair {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .gallery-wide img {
    aspect-ratio: 340 / 246;
  }

  .gallery-pair img {
    aspect-ratio: 1 / 1.28;
  }

  .gallery-asym img {
    aspect-ratio: 340 / 189;
  }

  .simple-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .atelier-page,
  .contact-page {
    padding-block: 54px 70px;
  }

  .simple-grid h1 {
    font-size: 42px;
  }

  .simple-grid p,
  .contact-list {
    font-size: 15px;
  }

  .site-footer {
    margin-top: 72px;
  }

  .site-footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 22px;
    min-height: 86px;
    padding-block: 16px;
  }

  .footer-logo img {
    width: 96px;
  }

  .site-footer-inner > p {
    align-self: start;
    grid-column: 1;
    grid-row: 2;
    margin-top: -8px;
    color: var(--sage);
    font-size: 9px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .footer-contact {
    display: flex;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(14px, 4.4vw, 24px);
    color: var(--sage);
    font-size: 12px;
    line-height: 1;
  }

  .footer-contact a:not([aria-label]) {
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .footer-contact img {
    width: 25px;
  }
}

@media (min-width: 841px) {
  .site-header + .mobile-menu {
    display: none !important;
  }
}

@media (min-width: 841px) and (max-height: 760px) {
  .home-cover {
    --home-frame: clamp(52px, 6.2vw, 82px);
    padding: var(--home-frame);
    place-items: center;
  }

  .home-stack {
    width: calc(100vw - var(--home-frame) * 2);
    height: calc(100svh - var(--home-frame) * 2);
  }

  .home-card {
    --home-brand-gap: -10px;
    --home-logo-width: min(460px, 38vw);
    height: 100%;
    min-height: 0;
    padding: clamp(42px, 7vh, 66px) clamp(64px, 8vw, 110px) 32px;
  }

  .home-logo {
    width: var(--home-logo-width);
  }

  .home-baseline {
    font-size: 22px;
    text-align: center;
  }

  .home-actions {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 26px;
  }

  .home-action {
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 154px;
    place-items: center;
    padding: 0 34px;
    border-right: 1px solid var(--white);
    border-bottom: 0;
  }

  .home-action:last-child {
    border-right: 0;
  }

  .home-animation {
    width: min(92px, 12svh, 8vw);
    height: min(92px, 12svh, 8vw);
  }

  .home-action span {
    font-size: 19px;
    font-weight: 700;
    text-align: center;
  }

  .home-link {
    right: var(--home-frame);
    bottom: calc(var(--home-frame) / 2);
    gap: 10px;
    font-size: 14px;
  }

  .home-link img {
    width: 24px;
  }
}

@media (min-width: 841px) and (max-height: 560px) {
  .home-stack {
    width: min(322px, calc(100vw - 52px));
  }

  .home-card {
    --home-brand-gap: -10px;
    --home-logo-width: 230px;
    height: auto;
    min-height: 0;
    padding: 24px 32px 28px;
  }

  .home-logo {
    width: var(--home-logo-width);
  }

  .home-baseline {
    font-size: 13px;
    text-align: left;
  }

  .home-actions {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .home-action {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    height: 96px;
    min-height: 0;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--white);
  }

  .home-action:last-child {
    border-bottom: 0;
  }

  .home-animation {
    width: min(60px, 12svh, 20vw);
    height: min(60px, 12svh, 20vw);
  }

  .home-action span {
    font-size: 17px;
    font-weight: 700;
  }
}
