body {
  color: var(--page-text);
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

body.page-index {
  background-color: #fff;
  /* Segmented controls: inactive track */
  --toggle-track-bg: #e8eaed;
  --grain-opacity: 0;
  --grain-top-extra-opacity: 0;
  --grain-top-mask-fade: 0%;
}

body.page-index .section-menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(80px);
  -webkit-backdrop-filter: blur(80px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

body.page-index .section-menu-inner {
  min-height: 58px;
  padding: 0.7rem 0;
}

body.page-index .section-menu-bar {
  min-height: 58px;
}

body.page-index .section-menu-logo {
  font-size: 1.18rem;
}

body.page-index .section-menu-logo img {
  height: 13px;
  filter: brightness(0) saturate(100%) invert(12%) sepia(37%) saturate(1154%) hue-rotate(166deg) brightness(94%) contrast(94%);
}

body.page-index .section-menu-logo--combined img {
  height: 19px;
  filter: none;
}

body.page-index .lang-select {
  background-color: rgba(255, 255, 255, 0.24);
  border-color: rgba(12, 39, 62, 0.12);
  font-size: 0.86rem;
  padding: 0.46rem 1.95rem 0.46rem 0.95rem;
}

body.page-index .lang-select:hover,
body.page-index .lang-select:focus {
  background-color: rgba(255, 255, 255, 0.32);
}

/* Match body.page-index .lang-select + shared .lang-select interaction (opacity, colors, padding). */
body.page-index .nav-contact-btn {
  position: absolute;
  right: 8.9rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  min-height: 2.1rem;
  padding: 0.46rem 1.95rem 0.46rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--nav-text-color);
  opacity: var(--nav-opacity);
  background-color: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(12, 39, 62, 0.12);
  cursor: pointer;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease;
  z-index: 2;
}

body.page-index .nav-contact-btn:hover,
body.page-index .nav-contact-btn:focus {
  background-color: rgba(255, 255, 255, 0.32);
  opacity: 1;
  transform: translateY(-50%);
}

.nav-contact-btn-arrow {
  display: inline-flex;
  width: 0.8rem;
  height: 0.8rem;
}

.nav-contact-btn-arrow svg {
  width: 100%;
  height: 100%;
}

.hero-mobile-actions {
  display: none;
}

/* Homepage only: hamburger + drawer nav from 1024px (shared.css still uses 900px elsewhere). */
@media (max-width: 1024px) {
  body.page-index .section-menu {
    overflow: hidden;
  }

  body.page-index .section-menu-bar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 58px;
    width: 100%;
  }

  body.page-index .section-menu-logo {
    position: static;
    top: auto;
    transform: none;
    font-size: 1.15rem;
  }

  body.page-index .section-menu-logo img {
    height: 14px;
  }

  body.page-index .section-menu-logo--combined img {
    height: 19px;
  }

  body.page-index .section-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.page-index .section-menu-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    align-items: stretch;
  }

  body.page-index .section-menu-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0 1.5rem 0;
    border-top: 1px solid transparent;
    transform: translateY(-10px);
    transition:
      max-height 320ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 220ms ease,
      transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
      padding 320ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color 220ms ease;
  }

  body.page-index .section-menu-links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(12, 39, 62, 0.08);
  }

  body.page-index .section-menu-links a:last-of-type {
    border-bottom: none;
    padding-bottom: 0.25rem;
  }

  body.page-index .section-menu.is-expanded .section-menu-links {
    max-height: 22rem;
    opacity: 1;
    padding-top: 0.3rem;
    padding-bottom: 1.5rem;
    border-top-color: rgba(12, 39, 62, 0.1);
    transform: translateY(0);
  }

  body.page-index .section-menu.is-expanded {
    background: rgba(255, 255, 255, 0.3);
    border-bottom-color: rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(80px) saturate(1.08);
    -webkit-backdrop-filter: blur(80px) saturate(1.08);
  }

  body.page-index .lang-switcher--nav {
    display: none;
  }

  body.page-index .lang-switcher--menu {
    display: block;
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(12, 39, 62, 0.12);
  }

  body.page-index .lang-switcher--menu .lang-select {
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    min-width: 0;
    padding: 0.5rem 1.65rem 0.5rem 0.15rem;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  body.page-index .lang-switcher--menu .lang-select:hover,
  body.page-index .lang-switcher--menu .lang-select:focus {
    background-color: transparent;
  }
}

/* Space for fixed “Site colors” bar (when theme panel is enabled)
body.page-has-theme-panel {
  padding-bottom: calc(3.35rem + env(safe-area-inset-bottom, 0px));
}
*/

body.page-index .index-hero-panel .index-hero-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

body.page-index .index-hero-main .center {
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  margin-bottom: auto;
}

body.page-index .index-hero-panel .skyline-contour-wrap {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  align-self: stretch;
  width: calc(100% + 2 * var(--index-panel-inline));
  margin-top: 0;
  margin-bottom: 0;
  margin-left: calc(-1 * var(--index-panel-inline));
  margin-right: calc(-1 * var(--index-panel-inline));
  height: clamp(88px, 11vw, 132px);
  pointer-events: none;
  z-index: 1;
}

body.page-index .index-hero-panel .skyline-contour {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

body.page-index .index-hero-panel .skyline-contour path {
  fill: rgba(12, 39, 62, 0.07);
  vector-effect: non-scaling-stroke;
}

.hero-viewport {
  --hero-pad-top: calc(5.75rem + env(safe-area-inset-top, 0px));
  --hero-pad-bottom: clamp(2rem, 4.5vw, 3.25rem);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100vh;
  min-height: 100dvh;
  /* Fixed offset below absolute nav — same at all breakpoints; safe-area for notched devices */
  padding: var(--hero-pad-top) 1.5rem var(--hero-pad-bottom);
  overflow: hidden;
  background: #fff;
}

.index-hero-shell {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  min-height: 0;
}

.index-hero-panel {
  --index-panel-inline: clamp(1.25rem, 3vw, 2rem);
  /* Fixed: top inset above hero copy should not shrink when the viewport narrows */
  --index-hero-pad-top: 2.85rem;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: calc(100vh - 5.75rem - env(safe-area-inset-top, 0px) - var(--hero-pad-bottom));
  min-height: calc(100dvh - 5.75rem - env(safe-area-inset-top, 0px) - var(--hero-pad-bottom));
  overflow: hidden;
  border-radius: 34px;
  padding: var(--index-hero-pad-top) var(--index-panel-inline) 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(131, 165, 201, 0.26), transparent 28%),
    radial-gradient(circle at 78% 34%, rgba(202, 225, 209, 0.24), transparent 30%),
    radial-gradient(circle at 68% 90%, rgba(181, 219, 101, 0.3), transparent 34%),
    linear-gradient(180deg, #edf3f8 0%, #eef2f2 48%, #edf3e8 100%);
}

.index-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.09;
  mix-blend-mode: multiply;
}

.index-hero-panel > * {
  position: relative;
  z-index: 1;
}

body.page-index.js-motion .index-hero-panel.motion-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--motion-delay, 0ms);
  will-change: opacity, transform;
}

body.page-index.js-motion .index-hero-panel.motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  body.page-index.js-motion .index-hero-panel.motion-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.page-gradient {
  display: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 70px 70px;
  opacity: var(--grain-opacity);
  /* Avoid stacking a gray veil on top of the gradient (normal blend + noise desaturates) */
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: -1;
}

/* Denser base grain on homepage (smaller tiles = more visible texture) */
body.page-index::before {
  display: none;
}

/* Stronger film grain over the top of the viewport (hero / upper gradient) */
body.page-index::after {
  display: none;
}

.center {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: clamp(1.5rem, 3.2vw, 2rem);
  padding: 1.15rem 0 clamp(0.85rem, 1.75vw, 1.2rem);
  margin: 0 auto;
  width: 100%;
  max-width: min(1320px, 100%);
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.logo img {
  height: 48px;
  position: relative;
  top: 4px;
}

.logo span {
  font-size: clamp(2.5rem, 1.5rem + 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-viewport .logo span {
  color: var(--page-text);
}

.hero-viewport .logo img {
  filter: none;
}

.hero-viewport .subtext {
  color: rgba(12, 39, 62, 0.62);
  opacity: 1;
}

.hero-viewport .hero-oneliner {
  color: var(--page-text);
  opacity: 1;
}

.hero-viewport .scroll-hint {
  color: var(--page-text);
  opacity: 0.55;
}

.subtext {
  margin: 0 0 1.12rem;
  font-size: clamp(1rem, 0.82rem + 0.7vw, 1.15rem);
  font-weight: 600;
  color: rgba(12, 39, 62, 0.62);
  opacity: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: none;
}

.hero-oneliner {
  margin-top: 0;
  max-width: min(40rem, 100%);
  text-align: center;
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.7rem);
  line-height: 1.08;
  color: var(--page-text);
  opacity: 1;
  letter-spacing: -0.025em;
  font-weight: 400;
  text-wrap: balance;
  text-shadow: none;
}

.hero-oneliner b {
  display: inline;
  font-weight: 400;
}

.hero-support {
  max-width: min(48rem, 100%);
  margin: 1.2rem 0 -1rem;
  text-align: center;
  font-size: clamp(1rem, 0.88rem + 0.5vw, 1.2rem);
  line-height: 1.55;
  color: var(--page-text);
  opacity: 1;
  font-weight: 400;
  text-wrap: balance;
  text-shadow: none;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
  align-items: stretch;
  width: min(100%, 20rem);
}

.options-label {
  margin: 0 0 0.25rem;
  color: rgba(12, 39, 62, 0.62);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
}

.option {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--page-text);
  border: none;
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  width: 100%;
  flex: 0 0 auto;
  justify-content: space-between;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.option:hover {
  background: rgba(255, 255, 255, 0.6);
  /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); */
  /* transform: translateY(-2px); */
}

.option .label {
  font-size: clamp(1rem, 0.5rem + 2.5vw, 1.08rem);
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.07);
  color: #0c273e;
  flex-shrink: 0;
}

.option-icon svg {
  width: 15px;
  height: 15px;
}

.hero-viewport .option {
  background: rgba(255, 255, 255, 0.62);
  border: none;
  opacity: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-viewport .option:hover,
.hero-viewport .option:focus-visible {
  background: rgba(255, 255, 255, 0.7);
}

/* Hero CTAs: fixed navy ink (not --page-text) */
.hero-viewport .option {
  color: #0c273e;
}
.hero-viewport .option-icon {
  color: #0c273e;
  background: rgba(0, 0, 0, 0.07);
}
.hero-viewport .option:hover .option-icon,
.hero-viewport .option:focus-visible .option-icon {
  background: rgba(0, 0, 0, 0.09);
}

/* absolute (not fixed) so it stays inside the hero and scrolls away — fixed floated over Projects */
.scroll-hint {
  position: absolute;
  bottom: calc(7.3rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--page-text);
  opacity: 0.45;
  font-size: 1.8rem;
  line-height: 1;
  text-decoration: none;
}

/* ── Why Heatify section ── */
.why-heatify {
  position: relative;
  z-index: 1;
  background: var(--why-heatify-bg);
  color: var(--page-text);
  padding: 7rem 0 5rem;
}

.why-heatify-inner {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

.why-heatify-heading {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.32;
  color: var(--page-text);
  text-align: center;
  margin: 0 0 4rem;
}

.why-bubble {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: relative;
}

.why-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 1.25rem;
  margin-bottom: 3.25rem;
  flex-wrap: nowrap;
  position: relative;
  padding: 6px;
  border-radius: 999px;
  background: var(--toggle-track-bg);
  overflow: hidden;
  --why-toggle-index: 0;
  width: 100%;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.why-toggle::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc((100% - 12px) / 2);
  border-radius: 999px;
  background: var(--page-text);
  transform: translateX(calc(var(--why-toggle-index) * 100%));
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.why-toggle-btn {
  position: relative;
  z-index: 1;
  flex: 1 1 50%;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--page-text);
  border-radius: 999px;
  padding: 0.7rem 0.75rem;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 400;
  cursor: pointer;
  transition: color 200ms ease;
}

.why-toggle-btn:hover {
  color: rgb(from var(--page-text) r g b / 0.92);
}

.why-toggle-btn.is-active {
  color: #fff;
}

@media (max-width: 1024px) {
  .why-toggle-btn {
    font-size: 0.95rem;
  }
}

.why-panel {
  display: none;
}

.why-panel.is-active {
  display: block;
}

.flow-grid {
  display: grid;
  grid-template-columns: 1fr 12px 1fr 12px 1fr 12px 1fr;
  column-gap: 1.5rem;
  row-gap: 1.5rem;
  align-items: stretch;
}

.flow-arrow {
  align-self: start;
  justify-self: center;
  width: 34px;
  height: 34px;
  color: rgb(from var(--page-text) r g b / 0.55);
  margin-top: calc((var(--bau-card-top-height, 0px) / 2) - 17px);
  transform: rotate(180deg);
}

.why-panel[data-why="heatify"] .flow-arrow {
  transform: rotate(0deg);
  color: var(--accent-highlight);
}

.why-panel[data-why="bau"] .flow-arrow {
  /* Same direction as Heatify: design → … → performance (was reversed in DOM before) */
  transform: rotate(0deg);
  color: rgba(214, 69, 69, 0.95);
}

.bau-card {
  border-radius: 20px;
  border: none;
  background: rgba(255, 255, 255, 0.55);
}

#why-heatify .bau-card:not(.bau-card--centered):not(.bau-card--centered-bau) {
  background: #fff;
  padding: 0;
  min-height: 160px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bau-card--centered {
  background: var(--page-text);
}
.bau-card--centered .bau-card-top {
  flex: 0 0 auto;
  height: var(--bau-card-top-height, auto);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1.2rem 2rem;
}
.bau-card--centered .bau-body {
  color: #fff;
  opacity: 1;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  line-height: 1;
}
.bau-card--centered .bau-card-bottom {
  border-top: none;
}
.bau-card--centered .bau-xitem {
  color: #fff;
}
.bau-card--centered .bau-checkmark {
  color: var(--accent-highlight);
}

.bau-card--centered-bau {
  background: #c44848;
}
.bau-card--centered-bau .bau-card-top {
  flex: 0 0 auto;
  height: var(--bau-card-top-height, auto);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1.2rem 2rem;
}
.bau-card--centered-bau .bau-body {
  color: #fff;
  opacity: 1;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  line-height: 1;
}
.bau-card--centered-bau .bau-card-bottom {
  border-top: none;
}
.bau-card--centered-bau .bau-xitem {
  color: #fff;
}
.bau-card--centered-bau .bau-xmark {
  color: #fff;
}

.bau-card-top {
  padding: 1.4rem 1.25rem 1rem 1.45rem;
  height: var(--bau-card-top-height, auto);
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.bau-card-bottom {
  padding: 0.25rem 1.25rem 1.25rem;
}

.bau-title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.bau-body {
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.8;
}

.bau-xlist {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.bau-xitem {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.35;
  opacity: 0.95;
  color: rgb(from var(--page-text) r g b / 0.65);
}

.bau-xmark {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #d64545;
  margin-top: 1px;
}

.bau-checkmark {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--accent-highlight);
  margin-top: 1px;
}

.why-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.why-card {
  background: transparent;
  border: none;
  border-radius: 24px;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.why-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--page-text);
  opacity: 1;
}

.why-card-icon.fa-handshake {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.why-card-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--page-text);
}

.why-card-body {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--page-text);
  opacity: 0.78;
}

.why-cta-row {
  text-align: center;
  margin-top: 4rem;
}

.why-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--page-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
}

.why-cta:hover {
  opacity: 0.85;
}

@media (max-width: 1024px) {
  .why-heatify {
    padding: 4.75rem 0 3.75rem;
  }

  .why-heatify-heading {
    margin-bottom: 2.25rem;
  }

  .why-toggle {
    margin-bottom: 2rem;
  }

  .why-cards {
    grid-template-columns: 1fr;
  }

  .forwho-cards.why-cards {
    gap: 0rem;
  }

  .flow-grid {
    grid-template-columns: 1fr;
    row-gap: 0.55rem;
  }

  .flow-arrow {
    display: block;
    transform: rotate(-90deg);
    margin-top: -0.15rem;
    margin-bottom: -0.15rem;
    width: 30px;
    height: 30px;
    align-self: center;
  }

  .why-panel[data-why="heatify"] .flow-arrow {
    transform: rotate(90deg);
  }

  .why-panel[data-why="bau"] .flow-arrow {
    transform: rotate(90deg);
  }
}

/* ── Dark contrast section ── */
.contrast-section {
  position: relative;
  z-index: 1;
  background: var(--page-section-bg);
  color: var(--page-text);
  padding: 8rem 0;
}

.contrast-section-inner {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  align-items: start;
}

.contrast-content {
  min-width: 0;
}

.contrast-section-heading {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 2.6rem;
}

.forwho-panel .contrast-section-heading {
  text-align: center;
}

.forwho-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 1.6rem;
}

.forwho-toggle {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  position: relative;
  padding: 6px;
  border-radius: 999px;
  background: var(--toggle-track-bg);
  overflow: hidden;
  --forwho-toggle-index: 0;
  width: 100%;
  max-width: 720px;
}

.forwho-toggle::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc((100% - 12px) / 3);
  border-radius: 999px;
  background: var(--page-text);
  transform: translateX(calc(var(--forwho-toggle-index) * 100%));
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.forwho-tab {
  position: relative;
  z-index: 1;
  flex: 1 1 33.333%;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--page-text);
  border-radius: 999px;
  padding: 0.7rem 0.75rem;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 400;
  cursor: pointer;
  transition: color 200ms ease;
}

.forwho-tab:hover {
  color: rgb(from var(--page-text) r g b / 0.92);
}

.forwho-tab.is-active {
  color: #fff;
}

@media (max-width: 1024px) {
  .forwho-toggle {
    max-width: 100%;
  }

  .forwho-tab {
    font-size: 0.95rem;
  }
}

.forwho-panel {
  display: none;
}

.forwho-panel.is-active {
  display: block;
}

#for-who.contrast-section {
  padding: 5rem 0;
  background: #fff;
}
#for-who .contrast-section-inner {
  gap: 1.5rem;
}
#for-who .contrast-section-heading {
  margin-bottom: 1.75rem;
}
#for-who .forwho-controls {
  margin-top: 1.5rem;
  margin-bottom: 2.25rem;
}
#for-who .forwho-cards {
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}
#for-who .why-card {
  padding: 1.5rem 1rem;
}

#for-who .why-card-icon {
  color: var(--accent-highlight);
}
#for-who .contrast-media {
  min-height: 240px;
  /* Same light gray as .why-heatify section */
  background: var(--page-section-bg);
}
#for-who .contrast-project-photo {
  min-height: 240px;
}
#for-who .contrast-cta-row {
  margin-top: 2.75rem;
}

.forwho-cards {
  margin-top: 4rem;
  margin-bottom: 3rem;
}

.contrast-media {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 0;
  align-items: stretch;
  min-height: 280px;
  position: relative;
  border: none;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.contrast-project-badge {
  display: none;
}

.contrast-quote-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.contrast-cta-row {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}

.contrast-project-photo {
  width: 100%;
  height: 100%;
  min-height: 280px;
  aspect-ratio: auto;
  background: url("/images/projects/p1.png") center/cover no-repeat, #1A4055;
}

.contrast-quote {
  margin: 0;
  padding: 1.1rem 2.6rem;
  font-size: 18px;
  line-height: 1.65;
  font-style: italic;
}

.contrast-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  opacity: 0.9;
  font-size: 18px;
}

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

/* ── Project stat labels (carousel) ── */
.stat-value {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--page-text);
  opacity: 0.45;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* ── Projects carousel ── */
/* Same backdrop as hero: fixed .page-gradient + grain (body::before); no local fill */
.projects-carousel {
  position: relative;
  z-index: 1;
  background: transparent;
  color: #f6f8f7;
  padding: 7rem 0 7.5rem;
  overflow-x: hidden;
  --carousel-glass-bg: rgba(255, 255, 255, 0.16);
  --carousel-glass-blur: 12px;
}

.projects-carousel-inner {
  width: min(1500px, calc(100% - 3rem));
  margin: 0 auto;
}

.projects-carousel-heading {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-align: center;
  margin-bottom: 3rem;
  color: #f6f8f7;
}

.carousel-shell {
  position: relative;
}

.carousel-viewport {
  overflow: visible;
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  transform: translateX(0);
  transition: transform 460ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 min(560px, calc(100vw - 3rem));
  min-width: min(560px, calc(100vw - 3rem));
  opacity: 1;
  transition: opacity 320ms ease;
}

.carousel-slide.is-active {
  opacity: 1;
}

.carousel-slide-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  position: relative;
  border-radius: 24px;
  border: none;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}

.projects-carousel .carousel-slide-card {
  color: rgba(246, 248, 247, 0.95);
  background: var(--carousel-glass-bg);
  backdrop-filter: blur(var(--carousel-glass-blur));
  -webkit-backdrop-filter: blur(var(--carousel-glass-blur));
  border: none;
  box-shadow: none;
}

.projects-carousel .stat-label {
  color: rgba(246, 248, 247, 0.5);
  opacity: 1;
  font-weight: 600;
}

/* Lighter copy: title + stat values only (not labels / location) */
.projects-carousel .carousel-title {
  font-weight: 400;
}

.projects-carousel .stat-value {
  font-weight: 400;
}

.carousel-photo {
  position: relative;
  width: 100%;
  min-height: 260px;
  /* Background URLs must be set inline on each slide so they resolve from the page, not this stylesheet. */
}

.carousel-badge {
  display: none;
}

.carousel-controls {
  position: static;
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin: 1.9rem 4rem 0 0;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: #cbd1da;
  color: rgba(78, 88, 88, 0.9);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.carousel-btn:hover {
  background: rgba(203, 209, 218, 0.85);
  transform: none;
}

.projects-carousel .carousel-btn {
  background: var(--carousel-glass-bg);
  color: rgba(246, 248, 247, 0.95);
}

.projects-carousel .carousel-btn:hover {
  background: var(--carousel-glass-bg);
}

.carousel-btn:active {
  transform: translateY(0);
}

.carousel-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.carousel-btn svg {
  width: 22px;
  height: 22px;
}

.carousel-pause-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.carousel-pause-icon {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.carousel-pause-icon .bar {
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: currentColor;
}

.carousel-play-icon {
  display: none;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
  margin-left: 1px;
}

.carousel-pause-btn .carousel-pause-ring {
  position: absolute;
  width: 45px;
  height: 45px;
  top: 50%;
  left: 50%;
  max-width: none;
  max-height: none;
  flex: none;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: 50% 50%;
}

.carousel-pause-ring-circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  opacity: 0.85;
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  stroke-dashoffset: 0;
}

.carousel-pause-btn.is-counting .carousel-pause-ring-circle {
  animation: carousel-ring-draw var(--carousel-autoplay-ms, 5000ms) linear infinite;
}

.carousel-pause-btn[aria-pressed="true"] .carousel-pause-icon {
  display: none;
}

.carousel-pause-btn[aria-pressed="true"] .carousel-play-icon {
  display: block;
}

.carousel-pause-btn[aria-pressed="true"] .carousel-pause-ring-circle {
  animation-play-state: paused;
}

@keyframes carousel-ring-draw {
  from {
    stroke-dasharray: 0 100;
  }
  to {
    stroke-dasharray: 100 100;
  }
}

.carousel-info {
  padding: 1.6rem 2rem 1.7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel-meta {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.35rem;
  margin-bottom: 1.9rem;
}

.carousel-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.carousel-location {
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.75;
  white-space: nowrap;
}

.carousel-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.65rem 1rem;
}

@media (min-width: 1025px) {
  .carousel-slide {
    flex-basis: min(420px, calc(100vw - 3rem));
    min-width: min(420px, calc(100vw - 3rem));
  }

  .carousel-slide-card {
    width: 100%;
    margin-inline: 0;
  }

  .carousel-stats {
    grid-template-columns: minmax(0, fit-content(52%)) minmax(0, fit-content(52%));
    justify-content: start;
    gap: 1.65rem 1rem;
  }
}

@media (max-width: 1024px) {
  .projects-carousel {
    padding: 6rem 0 6.25rem;
  }
  .carousel-slide {
    flex-basis: min(560px, 100%);
    min-width: min(560px, 100%);
  }
  .carousel-slide-card {
    min-height: 0;
  }
  .carousel-photo {
    min-height: 190px;
  }
  .carousel-info {
    padding: 1rem 1.2rem 1.1rem;
  }
  .carousel-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
  }
  .carousel-stats {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .carousel-controls {
    justify-content: center;
    margin: 1.35rem 0 0;
  }
}

/* ── Final contact CTA ── */
.final-contact {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--page-text);
  /* Keep all top spacing as padding so no “hole” shows the fixed page gradient */
  padding: 8rem 0 8rem;
}

.final-contact-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.2rem;
}

.final-contact-title-wrap {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding-top: clamp(0.35rem, 1.5vw, 1rem);
}
.final-contact-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  /* Match .why-heatify-heading line rhythm */
  line-height: 1.32;
}

.final-contact-text {
  width: 100%;
  text-align: center;
}

.final-contact-copy {
  margin: 0.95rem auto 0;
  font-size: 1.16rem;
  opacity: 0.78;
  max-width: 58ch;
}

.final-contact-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.final-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  border: none;
  background: rgb(from var(--page-text) r g b / 0.9);
  color: #f6f8f7;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 400;
  white-space: nowrap;
}

.final-contact-btn.secondary {
  background: var(--page-section-bg);
  color: var(--page-text);
}

.final-contact-btn:hover {
  background: var(--page-text);
}

.final-contact-btn.secondary:hover {
  background: #e8eaef;
}

@media (max-width: 860px) {
  .final-contact {
    padding: 2.25rem 0 10.5rem;
  }

  .final-contact-inner {
    padding: 0.75rem 0 0.5rem;
  }

  .final-contact-title-wrap {
    padding-top: clamp(0.25rem, 1.5vw, 0.75rem);
  }

  .final-contact-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Hero stack — same breakpoints as ff54e19 / 65fbd7a (before 1024px hero rewrite). */
@media (max-width: 860px) {
  .center {
    gap: 1.65rem;
    width: 100%;
  }

  .options {
    width: min(100%, 30rem);
  }

  .option {
    width: 100%;
    flex: 0 0 auto;
    min-width: unset;
    max-width: 100%;
  }

  .option-icon {
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  .hero-viewport {
    --hero-pad-bottom: calc(1.85rem + env(safe-area-inset-bottom, 0px));
    justify-content: flex-start;
  }

  .index-hero-panel {
    /* Up to associations-style 2.75rem; scales down on narrow widths so content need not overflow-x */
    --index-panel-inline: clamp(0.85rem, 0.85rem + 4.25vw, 2.75rem);
    /* Tighter than desktop when viewport is short (landscape, etc.) */
    --index-hero-pad-top: 1.45rem;
    padding: var(--index-hero-pad-top) var(--index-panel-inline) 0;
  }

  body.page-index .index-hero-panel .skyline-contour-wrap {
    height: clamp(76px, 13vw, 118px);
  }

  .subtext,
  .option .label {
    font-size: clamp(0.98rem, 0.48rem + 2.4vw, 1.08rem);
  }

  .center {
    margin: 0 auto;
    width: 100%;
    min-width: 0;
    padding: 0.55rem 0 clamp(0.95rem, 2.5vw, 1.35rem);
  }

  body.page-index .index-hero-main {
    min-width: 0;
  }

  .hero-oneliner {
    max-width: min(34rem, 100%);
    text-align: center;
  }

  .hero-support {
    max-width: min(40rem, 100%);
    margin: 0.78rem 0 -0.22rem;
    text-align: center;
    font-size: 1rem;
  }
}

/* Mobile portrait / tall enough: full hero inset (matches min-height card + vertical center case) */
@media (max-width: 720px) and (min-height: 700px) {
  .index-hero-panel {
    --index-hero-pad-top: 2.85rem;
    padding: var(--index-hero-pad-top) var(--index-panel-inline) 0;
  }

  .center {
    padding: 1.15rem 0 clamp(0.95rem, 2.5vw, 1.35rem);
  }
}

/* 1024px: match homepage hamburger breakpoint; older commits used 900px here. */
@media (max-width: 1024px) {
  body.page-index .section-menu-bar .nav-contact-btn,
  body.page-index .section-menu-bar .lang-switcher--nav {
    display: none;
  }

  .hero-mobile-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.72rem;
    width: min(100%, 20rem);
    margin: 0.42rem auto 0;
  }

  /* Must beat body.page-index .nav-contact-btn { display: inline-flex } (0,2,1 vs 0,2,0). */
  body.page-index .hero-mobile-actions .nav-contact-btn--mobile {
    display: none;
  }

  body.page-index .hero-mobile-actions .lang-select {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    min-width: 0;
    min-height: 0;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0.45rem 1.65rem 0.45rem 0.15rem;
    text-align: center;
    text-align-last: center;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  body.page-index .hero-mobile-actions .lang-select:hover,
  body.page-index .hero-mobile-actions .lang-select:focus {
    background-color: transparent;
  }
}

/* ── Homepage gradient editor (hidden for now; remove rule below to show again) ── */
#gradient-dev-panel {
  display: none !important;
}

.gradient-dev-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 15;
  margin: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid rgb(from var(--page-text) r g b / 0.18);
  background: rgba(250, 251, 249, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--page-text);
  font-size: 0.9rem;
  pointer-events: auto;
  box-shadow: 0 -6px 24px rgba(10, 20, 30, 0.1);
}

.gradient-dev-panel-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.85rem 1.25rem;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: inherit;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.gradient-dev-panel-toggle:hover {
  background: rgb(from var(--page-text) r g b / 0.05);
}

.gradient-dev-panel-toggle:focus-visible {
  outline: 2px solid rgb(from var(--page-text) r g b / 0.45);
  outline-offset: -2px;
}

.gradient-dev-chevron {
  flex-shrink: 0;
  font-size: 0.65rem;
  opacity: 0.55;
  transition: transform 0.2s ease;
}

.gradient-dev-panel.is-open .gradient-dev-chevron {
  transform: rotate(-180deg);
}

.gradient-dev-panel-inner {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid rgb(from var(--page-text) r g b / 0.08);
  max-height: min(55vh, 520px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.gradient-dev-hint {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  opacity: 0.72;
  max-width: 52ch;
}

.gradient-dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .gradient-dev-grid {
    grid-template-columns: 1fr;
  }
}

.gradient-dev-group {
  margin: 0;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid rgb(from var(--page-text) r g b / 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
}

.gradient-dev-group legend {
  padding: 0 0.35rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.gradient-dev-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.gradient-dev-label:first-of-type {
  margin-top: 0.5rem;
}

.gradient-dev-label span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.gradient-dev-label input[type="color"] {
  width: 100%;
  height: 36px;
  padding: 2px;
  border: 1px solid rgb(from var(--page-text) r g b / 0.2);
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
}

.gradient-dev-label input[type="range"] {
  width: 100%;
  accent-color: var(--page-text);
}

.gradient-dev-label output {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  opacity: 0.9;
}

.gradient-dev-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gradient-dev-reset {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid rgb(from var(--page-text) r g b / 0.25);
  background: #fff;
  color: var(--page-text);
  cursor: pointer;
}

.gradient-dev-reset:hover {
  background: rgb(from var(--page-text) r g b / 0.06);
}
