@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;500;600;700&display=swap");

/* Heatify — shared layout (navigation + footer + base reset) */
:root {
  --bg-saturation: 70%;
  /* Noise overlay: same as hero (index body::before) — soft-light avoids muddying saturation */
  --grain-opacity: 0.95;
  /* Non-hero, non-footer page areas + sticky nav frosted fill (see theme panel) */
  --page-section-bg: #f2f3f6;
  /* Slightly lighter band (e.g. “Who it’s for”) */
  --page-section-bg-lift: #f7f8fa;
  /* Main ink for body copy & UI in sections (hero + footer keep their own colors) */
  --page-text: #0c273e;
  /* Why Heatify block; theme panel keeps this in sync with --page-section-bg */
  --why-heatify-bg: #f2f3f6;
  /**
   * Highlighter tint behind marked words (e.g. “our problem”, “600 apartments”).
   */
  --accent-highlight: #7dd24b;
  --highlight-mix-opacity: 56%;
  /* Headline stack — duplicate of css/index.css :root; keep identical. */
  --font-aeonik-stack: "Source Sans 3", Helvetica, sans-serif;
  /* Shared CTA pill row (Schedule / Learn more, etc.) */
  --association-pill-height: 50px;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  /* Overscroll / rubber-band: avoid showing the fixed page gradient past the document */
  background-color: #fff;
  overflow-x: hidden;
}

body {
  font-family: var(--font-aeonik-stack);
}

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

.page-load-rise {
  opacity: 0;
  transform: translateY(10px) scale(0.995);
  animation: page-load-rise 900ms cubic-bezier(0.17, 0.84, 0.26, 0.99) 160ms forwards;
}

@keyframes page-load-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Highlighter marker — <span class="why-highlight">…</span>; tint follows --accent-highlight */
.why-highlight {
  color: inherit;
  background: color-mix(in srgb, var(--accent-highlight) var(--highlight-mix-opacity), transparent);
  padding: 0.02em 0.14em 0.1em;
  margin: 0 -0.14em;
  border-radius: 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ── Sticky section menu ── */
.section-menu {
  --nav-text-color: #0c273e;
  --nav-font-size: 0.95rem;
  --nav-font-weight: 600;
  --nav-letter-spacing: 0.01em;
  --nav-opacity: 0.82;
  position: sticky;
  top: 0;
  z-index: 20;
  /* Very light tint + strong blur so background/gradient reads through clearly */
  background: rgba(242, 243, 246, 0.18);
  backdrop-filter: blur(80px) saturate(1.08);
  -webkit-backdrop-filter: blur(80px) saturate(1.08);
  border-bottom: 1px solid rgba(12, 39, 62, 0.06);
}

.section-menu-inner {
  position: relative;
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.1rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.section-menu-logo {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--nav-text-color);
  font-size: 1.1rem;
  font-weight: var(--nav-font-weight);
  letter-spacing: var(--nav-letter-spacing);
  opacity: 1;
  flex-shrink: 0;
}

.section-menu-logo:hover {
  text-decoration: none;
}

.section-menu-logo img {
  height: 12px;
  display: block;
}

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

.section-menu-bar {
  position: absolute;
  inset: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.section-menu-bar > * {
  pointer-events: auto;
}

.section-menu-toggle {
  display: none;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--nav-text-color);
  opacity: var(--nav-opacity);
}

.section-menu-toggle:hover {
  opacity: 1;
}

.section-menu-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.1rem;
  flex-wrap: wrap;
}

.section-menu-links a {
  color: var(--nav-text-color);
  text-decoration: none;
  font-size: var(--nav-font-size);
  font-weight: var(--nav-font-weight);
  letter-spacing: var(--nav-letter-spacing);
  opacity: var(--nav-opacity);
}

.section-menu-links a:hover,
.section-menu-logo:hover {
  opacity: 1;
}

.section-menu-links a:hover {
  text-decoration: none;
}

/* Shared navbar variant for non-index pages except blog */
body.page-about .section-menu,
body.page-contact .section-menu,
body.page-projects .section-menu,
body.page-associations .section-menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  background: rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(80px);
  -webkit-backdrop-filter: blur(80px);
}

body.page-about .section-menu-inner,
body.page-contact .section-menu-inner,
body.page-projects .section-menu-inner,
body.page-associations .section-menu-inner {
  min-height: 58px;
  padding: 0.7rem 0;
}

body.page-about .section-menu-bar,
body.page-contact .section-menu-bar,
body.page-projects .section-menu-bar,
body.page-associations .section-menu-bar {
  min-height: 58px;
}

body.page-about .section-menu-logo,
body.page-contact .section-menu-logo,
body.page-projects .section-menu-logo,
body.page-associations .section-menu-logo {
  font-size: 1.18rem;
}

body.page-about .section-menu-logo img,
body.page-contact .section-menu-logo img,
body.page-projects .section-menu-logo img,
body.page-associations .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-about .section-menu-logo--combined img,
body.page-contact .section-menu-logo--combined img,
body.page-projects .section-menu-logo--combined img,
body.page-associations .section-menu-logo--combined img {
  height: 19px;
  filter: none;
}

body.page-about .section-menu-links a,
body.page-about .section-menu-logo,
body.page-about .section-menu-toggle,
body.page-about .lang-select,
body.page-contact .section-menu-links a,
body.page-contact .section-menu-logo,
body.page-contact .section-menu-toggle,
body.page-contact .lang-select,
body.page-projects .section-menu-links a,
body.page-projects .section-menu-logo,
body.page-projects .section-menu-toggle,
body.page-projects .lang-select,
body.page-associations .section-menu-links a,
body.page-associations .section-menu-logo,
body.page-associations .section-menu-toggle,
body.page-associations .lang-select {
  color: #223640;
}

body.page-about .lang-select,
body.page-contact .lang-select,
body.page-projects .lang-select,
body.page-associations .lang-select {
  background-color: rgba(255, 255, 255, 0.24);
  border-color: rgba(34, 54, 64, 0.12);
  font-size: 0.86rem;
  padding: 0.46rem 1.95rem 0.46rem 0.95rem;
}

/* Mobile section menu (≤900px): hamburger, drawer, language in menu — keep all rules here */
@media (max-width: 900px) {
  .section-menu {
    overflow: hidden;
  }

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

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

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

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

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

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

  /* Block stack (not flex column): avoids flex reflow into side-by-side columns while max-height is small */
  .section-menu-links {
    display: block;
    overflow: hidden;
    max-height: 0;
    opacity: 1;
    padding: 0 1.5rem 0;
    text-align: center;
    transition: max-height 320ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .section-menu-links > * {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .section-menu-links > .lang-switcher--menu {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .section-menu.is-expanded .section-menu-links {
    max-height: 22rem;
    padding-top: 0.3rem;
    padding-bottom: 1.5rem;
  }

  .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);
  }

  /* In-flow nav on small screens (pages that use absolute header chrome on desktop) */
  body.page-about .section-menu,
  body.page-contact .section-menu,
  body.page-projects .section-menu,
  body.page-associations .section-menu {
    position: relative;
    left: auto;
    top: auto;
  }

  /* Main column offset was for overlay nav; not needed when the bar is in-flow */
  body.page-associations .association-shell {
    padding-top: 0;
  }

  body.page-projects .projects-stage {
    padding-top: 4.5rem;
  }

  .lang-switcher--nav {
    display: none;
  }

  .lang-switcher--menu {
    display: block;
    margin-top: 0.35rem;
    padding-top: 0.65rem;
  }

  .section-menu-links .lang-switcher--menu .lang-select {
    width: max-content;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: var(--nav-font-size);
    font-weight: var(--nav-font-weight);
    letter-spacing: var(--nav-letter-spacing);
    padding: 0.5rem 1.65rem 0.5rem 0.15rem;
    min-width: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .section-menu-links .lang-switcher--menu .lang-select:hover,
  .section-menu-links .lang-switcher--menu .lang-select:focus {
    background-color: transparent;
    opacity: 1;
  }
}

/* ── Language switcher (nav bar, top right) ── */
.lang-switcher {
  flex-shrink: 0;
}

.lang-switcher--nav {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--nav-text-color);
  opacity: var(--nav-opacity);
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(12, 39, 62, 0.2);
  border-radius: 999px;
  padding: 0.4rem 1.85rem 0.4rem 0.9rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230C273E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 11px;
  min-width: 7.5rem;
}

.lang-select:hover {
  opacity: 1;
}

/* In mobile menu only: hidden on desktop (must not override the ≤900px block below) */
@media (min-width: 901px) {
  .lang-switcher--menu {
    display: none;
  }
}

/* ── Shared feature hero card (associations/developers/managers) ── */
.association-shell {
  padding: 4.7rem 0 0;
}

.association-section {
  width: min(1320px, calc(100% - 3rem));
  margin: 0 auto;
}

.association-hero {
  min-height: calc(100vh - 9rem);
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(300px, 0.74fr);
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
  align-items: stretch;
  width: min(1320px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.75rem 2.25rem 0;
  position: relative;
  overflow: hidden;
  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%);
  border-radius: 34px;
}

.association-hero::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;
}

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

.association-hero-copy {
  max-width: 44rem;
  justify-self: start;
  align-self: center;
  margin-left: 1.25rem;
}

.association-kicker {
  display: block;
  padding: 0;
  margin-bottom: 1.45rem;
  background: transparent;
  color: rgba(12, 39, 62, 0.62);
  font-size: clamp(1.1rem, 0.92rem + 0.75vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.association-title {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.9rem, 1.35rem + 2.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.association-title em {
  font-style: italic;
  font-weight: 300;
}

.association-lead {
  max-width: 37rem;
  margin: 1rem 0 0;
  color: var(--association-ink);
  font-size: clamp(1.08rem, 0.94rem + 0.55vw, 1.3rem);
  line-height: 1.55;
  font-weight: 400;
}

/* Associations / developers / managers: hero title + lead slightly under default (longer copy in some locales). */
body.page-associations .association-title {
  font-size: clamp(1.85rem, 1.32rem + 2.05vw, 3.05rem);
}

body.page-associations .association-lead {
  font-size: clamp(1.07rem, 0.94rem + 0.54vw, 1.28rem);
}


.association-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  /* Same row height for every pill (cross-size = tallest item in the row) */
  align-items: stretch;
  margin-top: 2rem;
}

.association-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex: 0 1 auto;
  /* Do not set align-self: stretch here — in column flex parents (e.g. case-study CTA) the
     cross-axis is horizontal and stretch would force full-width pills. Row parents such as
     .association-actions use align-items: stretch so paired hero CTAs still match in height. */
  /* Keep 1px transparent edge for consistent box model; no gray ring on .secondary */
  border: 1px solid transparent;
  min-height: var(--association-pill-height);
  padding: 0 6px 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: clamp(1rem, 0.5rem + 2.5vw, 1.08rem);
  font-weight: 400;
  line-height: 1;
  color: #0c273e;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(25, 39, 46, 0.08);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

/* Avoid inherited line-box strut making one pill look taller */
.association-button > span:not(.association-button-arrow) {
  line-height: 1;
}

button.association-button {
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  appearance: none;
}

.association-button.primary {
  color: #f7faf8;
  background: linear-gradient(180deg, rgba(28, 44, 52, 0.96), rgba(21, 33, 39, 0.98));
  /* Same offset/blur as .secondary so side-by-side pills don’t look mismatched */
  box-shadow: 0 8px 22px rgba(25, 39, 46, 0.22);
  padding: 0 28px;
  justify-content: center;
}

.association-button:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 24px rgba(25, 39, 46, 0.12);
}

.association-button.primary:hover {
  background: linear-gradient(180deg, rgba(33, 50, 59, 0.98), rgba(24, 37, 44, 1));
  box-shadow: 0 10px 24px rgba(25, 39, 46, 0.26);
}

.association-button.secondary {
  margin-left: 0.5rem;
  color: #223640;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(25, 39, 46, 0.08);
}

.association-button.secondary:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 24px rgba(25, 39, 46, 0.12);
}

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

.association-button.primary .association-button-arrow {
  color: rgba(247, 250, 248, 0.94);
  background: rgba(255, 255, 255, 0.16);
}

.association-button-arrow svg {
  width: 15px;
  height: 15px;
}

/* Optional `.cta-panel` strip: light pill on blue (not the same as `.primary` / `.secondary`) */
.cta-panel .association-button {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  min-width: 27rem;
  color: #53667b;
  background: rgba(255, 255, 255, 0.95);
}

.cta-panel .association-button:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.association-hero-visual {
  position: relative;
  justify-self: stretch;
  width: auto;
  margin-left: 0;
  margin-top: -1.75rem;
  margin-right: -2.25rem;
  align-self: stretch;
  height: calc(100% + 1.75rem);
}

.association-hero-photo {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  box-shadow: 0 18px 50px rgba(38, 58, 69, 0.12);
  overflow: hidden;
}

/* ── Case study ("In practice"): stats + accordion copy (associations / managers / developers) ──
   Modest bump vs inline defaults — not headline-scale stats */
body.page-associations .case-study-stat-value {
  font-size: clamp(1.35rem, 1.05rem + 1vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

body.page-associations .case-study-stat-note {
  font-size: clamp(1.03rem, 0.98rem + 0.22vw, 1.1rem);
  line-height: 1.66;
}

body.page-associations .case-study-stat-label {
  font-size: clamp(0.95rem, 0.9rem + 0.18vw, 1.02rem);
  line-height: 1.26;
}

body.page-associations .case-study-stat {
  text-align: center;
  justify-items: center;
}

body.page-associations .case-study-block-title {
  font-size: clamp(1.22rem, 1.02rem + 0.55vw, 1.42rem);
  line-height: 1.1;
}

body.page-associations .case-study-paragraph {
  font-size: clamp(1.04rem, 0.98rem + 0.28vw, 1.12rem);
  line-height: 1.68;
}

body.page-associations .case-study-accordion-panel .case-study-bullet-list,
body.page-associations .case-study-accordion-panel .case-study-value-heading {
  font-size: clamp(1.04rem, 0.98rem + 0.28vw, 1.12rem);
  line-height: 1.68;
}

/* "In practice" accordion — narrow viewports */
@media (max-width: 980px) {
  body.page-associations .case-study-accordion-panel .case-study-paragraph {
    padding-right: 0;
  }

  body.page-associations .case-study-accordion-panel .case-study-bullet-list {
    padding-right: 0;
  }

  body.page-associations .case-study-accordion-panel .case-study-value-heading {
    padding-right: 0;
  }
}

/* ── Shared showcase cards (associations/developers/managers) ── */
.association-showcase {
  padding: 8rem 0 3.5rem;
  background: #fff;
  overflow: visible;
}

.showcase-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.showcase-nav {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.12rem;
}

.showcase-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #f5f5f7;
  color: #64748b;
  cursor: pointer;
  box-shadow: none;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.showcase-nav-btn:hover {
  background: #ebecef;
  color: #475569;
}

.showcase-nav-btn:focus-visible {
  outline: 2px solid rgba(15, 23, 42, 0.22);
  outline-offset: 2px;
}

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

.showcase-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 980px) {
  .showcase-nav {
    display: none !important;
  }
}

.showcase-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.showcase-bleed::-webkit-scrollbar {
  display: none;
}

.showcase-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: clamp(2.3rem, 3.5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  text-align: left;
  max-width: 40ch;
}

.showcase-grid {
  display: flex;
  gap: 1rem;
  width: max-content;
  min-width: calc(100vw - (2 * var(--showcase-edge, 50px)));
  margin-left: 0;
  margin-right: 0;
  padding-left: var(--showcase-edge, 50px);
  padding-right: var(--showcase-edge, 50px);
  overflow-x: visible;
  overflow-y: visible;
  scroll-snap-type: x proximity;
  padding-bottom: 0.5rem;
}

.showcase-card {
  position: relative;
  width: 23rem;
  flex: 0 0 23rem;
  min-height: 39rem;
  padding: 1.5rem;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--showcase-plain-bg, #223640) center/cover no-repeat;
  transition: transform 0.25s ease;
  scroll-snap-align: start;
}

.showcase-card::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  bottom: 1.35rem;
  z-index: 1;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  opacity: 0.9;
  transform: translateY(0);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 6px 16px rgba(22, 33, 41, 0.12);
}

.showcase-card::before,
.showcase-card::after {
  pointer-events: none;
}

.showcase-card .showcase-card-plus {
  position: absolute;
  right: 1.5rem;
  bottom: 1.35rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
}

.showcase-card .showcase-card-plus::before,
.showcase-card .showcase-card-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.82rem;
  height: 0.12rem;
  border-radius: 999px;
  background: rgba(34, 54, 64, 0.9);
  transform: translate(-50%, -50%);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.36) 18%, rgba(0, 0, 0, 0.1) 36%, rgba(0, 0, 0, 0.04) 50%, rgba(0, 0, 0, 0.12) 66%, rgba(0, 0, 0, 0.34) 82%, rgba(0, 0, 0, 0.58) 100%);
  opacity: 0.38;
  transition: opacity 0.25s ease;
}

.showcase-card .showcase-card-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Hover reveal at wide viewports; ≤980px uses tap + .is-open (see js/showcase-cards-mobile.js) */
@media (min-width: 981px) {
  .showcase-card:hover::before {
    opacity: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.22) 16%, rgba(0, 0, 0, 0.08) 30%, rgba(0, 0, 0, 0.16) 44%, rgba(0, 0, 0, 0.42) 60%, rgba(0, 0, 0, 0.78) 80%, rgba(0, 0, 0, 0.97) 100%);
  }

  .showcase-card--light-copy:hover::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.4) 16%, rgba(255, 255, 255, 0.12) 30%, rgba(255, 255, 255, 0.18) 44%, rgba(255, 255, 255, 0.48) 60%, rgba(255, 255, 255, 0.8) 80%, rgba(255, 255, 255, 0.96) 100%);
  }

  .showcase-card:hover::after {
    opacity: 0;
    transform: translateY(6px);
  }

  .showcase-card:hover .showcase-card-plus::before,
  .showcase-card:hover .showcase-card-plus::after {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 6px));
  }

  .showcase-card:hover .showcase-card-detail {
    opacity: 1;
    transform: translateY(0);
  }
}

.showcase-card--light-copy .showcase-card-copy-title,
.showcase-card--light-copy .showcase-card-copy-line,
.showcase-card--light-copy .showcase-card-detail {
  color: rgba(34, 54, 64, 0.96);
}

.showcase-card--one {
  background: var(--showcase-cosy-bg, #223640) center/cover no-repeat;
}

.showcase-card--two {
  background: var(--showcase-epc-bg, #223640) center/cover no-repeat;
}

.showcase-card--three {
  background: var(--showcase-plain-bg, #223640) center/cover no-repeat;
}

.showcase-card--four {
  background: var(--showcase-operations-bg, #223640) center/cover no-repeat;
}

.showcase-card--five {
  background: var(--showcase-desk-bg, #223640) center/cover no-repeat;
}

.showcase-card-copy {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 18rem;
  display: grid;
  gap: 0.45rem;
}

.showcase-card-copy-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 500;
}

.showcase-card-copy-line {
  margin: 0;
  color: rgba(255, 255, 255, 0.98);
  font-size: clamp(1.4rem, 1.02rem + 0.85vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.showcase-card-detail {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 18rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 0.82rem + 0.45vw, 1.22rem);
  line-height: 1.35;
  font-weight: 400;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

/* Narrow / touch: tap card to reveal detail (see js/showcase-cards-mobile.js) */
@media (max-width: 980px) {
  .showcase-grid .showcase-card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .showcase-card .showcase-card-detail {
    font-size: clamp(1.1rem, 0.96rem + 0.55vw, 1.38rem);
    line-height: 1.42;
  }

  .showcase-card.is-open::before {
    opacity: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.22) 16%, rgba(0, 0, 0, 0.08) 30%, rgba(0, 0, 0, 0.16) 44%, rgba(0, 0, 0, 0.42) 60%, rgba(0, 0, 0, 0.78) 80%, rgba(0, 0, 0, 0.97) 100%);
  }

  .showcase-card--light-copy.is-open::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.4) 16%, rgba(255, 255, 255, 0.12) 30%, rgba(255, 255, 255, 0.18) 44%, rgba(255, 255, 255, 0.48) 60%, rgba(255, 255, 255, 0.8) 80%, rgba(255, 255, 255, 0.96) 100%);
  }

  .showcase-card.is-open::after {
    opacity: 0;
    transform: translateY(6px);
  }

  .showcase-card.is-open .showcase-card-plus::before,
  .showcase-card.is-open .showcase-card-plus::after {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 6px));
  }

  .showcase-card.is-open .showcase-card-detail {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Shared final CTA (associations/developers/managers) ── */
.final-cta-section {
  --final-cta-radius: 34px;
  padding: 0 0 6rem;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.final-cta-card {
  width: min(75rem, calc(100% - 8rem));
  margin: 0 auto;
  padding: 5.2rem 2rem;
  border-radius: var(--final-cta-radius);
  position: relative;
  background: transparent;
  text-align: center;
  overflow: visible;
  isolation: isolate;
}

.final-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: var(--cta-expand-radius, var(--final-cta-radius));
  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%);
  transform-origin: center center;
  transform: scaleX(var(--cta-expand-scale, 1));
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.final-cta-card > * {
  position: relative;
  z-index: 1;
}

.final-cta-title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: #1e2a35;
  margin-left: auto;
  margin-right: auto;
}

/* FR/NL (associations / developers / managers): less horizontal padding on the “how it works” card + wider headline */
html[lang="fr"] body.page-associations .final-cta-title {
  max-width: min(22ch, 100%);
}
html[lang="nl"] body.page-associations .final-cta-title {
  max-width: min(20ch, 100%);
}

.final-cta-copy {
  max-width: 38rem;
  margin: 1.15rem auto 0;
  color: var(--association-ink);
  font-size: 1.05rem;
  line-height: 1.6;
}

.final-cta-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  max-width: 61rem;
  margin: 2.4rem auto 0;
  text-align: left;
}

.final-cta-step {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

/* Three “how it works” points (01–03) — match “In practice” accordion title + body scale */
.final-cta-step-number {
  margin: 0;
  color: rgba(34, 54, 64, 0.44);
  font-size: clamp(1.04rem, 0.98rem + 0.28vw, 1.12rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.final-cta-step-title {
  margin: 0;
  color: var(--association-ink);
  font-size: clamp(1.04rem, 0.98rem + 0.28vw, 1.12rem);
  line-height: 1.1;
  font-weight: 500;
}

.final-cta-step-copy {
  margin: 0;
  color: var(--association-muted);
  font-size: clamp(1.04rem, 0.98rem + 0.28vw, 1.12rem);
  line-height: 1.68;
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.9rem;
  margin-top: 3.5rem;
}

/* Pills in the final “how it works” block — same components as hero; row stays centered */
.final-cta-actions .association-button {
  flex: 0 0 auto;
}

.projects-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.9rem;
}

@media (max-width: 980px) {
  .association-showcase {
    padding-top: 6.5rem;
  }

  .showcase-card {
    width: min(24rem, calc((100vw - 3.5rem) * 0.72));
    flex-basis: min(24rem, calc((100vw - 3.5rem) * 0.72));
  }

  .final-cta-card {
    width: min(100% - 4rem, 1320px);
  }
}

@media (max-width: 720px) {
  .showcase-card {
    width: min(23rem, calc((100vw - 3.5rem) * 0.78));
    flex-basis: min(23rem, calc((100vw - 3.5rem) * 0.78));
    min-height: 31rem;
  }

  .final-cta-section {
    --final-cta-radius: 26px;
    padding-bottom: 5rem;
  }

  .final-cta-card {
    width: min(100% - 2.5rem, 1320px);
    padding: 3rem 2.75rem;
    border-radius: 26px;
  }

  .final-cta-title {
    font-size: clamp(2.05rem, 7vw, 2.8rem);
  }

  .final-cta-copy {
    font-size: 0.98rem;
  }

  .final-cta-steps {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .final-cta-actions {
    margin-top: 1.75rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .association-actions {
    display: grid;
    grid-template-columns: minmax(0, 18rem);
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
  }

  .association-button,
  .cta-panel .association-button {
    box-sizing: border-box;
    width: 100%;
    max-width: 18rem;
    min-width: 0;
    height: auto;
    min-height: var(--association-pill-height);
    max-height: none;
  }

  .association-button.secondary {
    margin-left: 0;
  }

  /* After hero/global pill rules: final CTA pills centered, capped width */
  .final-cta-actions .association-button {
    width: min(100%, 18rem);
    max-width: 18rem;
    align-self: center;
  }

  .cta-panel {
    margin-top: 5rem;
    margin-bottom: 4rem;
    border-radius: 30px;
  }
}

/* ── Footer (canonical: same treatment as former About page) ── */
footer.site-footer {
  --footer-ink: #223640;
  --footer-muted: #5d727d;
  position: relative;
  z-index: 1;
  background: #f5f5f7;
  color: var(--footer-ink);
  padding: 2rem 0 2.5rem;
}

footer.site-footer::before,
footer.site-footer::after {
  display: none;
}

.site-footer-inner,
.site-footer-bottom {
  position: relative;
  z-index: 1;
}

.site-footer-inner {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2.5rem 0 1.25rem;
  border-top: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: start;
}

@media (max-width: 980px) {
  .site-footer-inner,
  footer.site-footer .site-footer-bottom {
    width: min(100% - 6.5rem, 1180px);
  }
}

@media (max-width: 720px) {
  .site-footer-inner,
  footer.site-footer .site-footer-bottom {
    width: min(100% - 6.5rem, 1180px);
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
  }
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

footer.site-footer .site-footer-brand img {
  height: 18px;
}

footer.site-footer .site-footer-brand--combined img {
  height: 19px;
}

.site-footer-brand span {
  font-size: 1.15rem;
  font-weight: 700;
  /* letter-spacing: -0.02em; */
}

footer.site-footer .site-footer-tagline {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--footer-muted);
  max-width: 280px;
}

footer.site-footer .site-footer-company {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--footer-ink);
  opacity: 0.9;
}

footer.site-footer .site-footer-company p {
  margin: 0 0 0.25rem 0;
  color: inherit;
}

.site-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

footer.site-footer .site-footer-brand span,
footer.site-footer .site-footer-col,
footer.site-footer .site-footer-links a {
  color: var(--footer-ink);
}

footer.site-footer .site-footer-links a {
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.9;
}

footer.site-footer .site-footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

footer.site-footer .site-footer-bottom {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding-top: 3rem;
  border-top: none;
  font-size: 0.85rem;
  color: var(--footer-muted);
  text-align: center;
}

.site-footer-bottom-line {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  text-align: center;
  max-width: 100%;
}

.site-footer-bottom-copy {
  white-space: normal;
}

.site-footer-bottom-sep {
  user-select: none;
  opacity: 0.55;
  pointer-events: none;
}

footer.site-footer .site-footer-tagline,
footer.site-footer .site-footer-bottom {
  color: var(--footer-muted);
}

.site-footer-bottom-line,
.site-footer-bottom-copy,
.site-footer-bottom-line a:any-link {
  color: var(--footer-muted);
}

.site-footer-bottom-line a {
  text-decoration: none;
}

.site-footer-bottom-line a:hover,
.site-footer-bottom-line a:focus-visible {
  color: var(--footer-muted);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

/* ── Scroll-triggered reveals (js/scroll-reveal.js) ── */
html.scroll-reveal-active [data-scroll-reveal]:not(.scroll-reveal-visible) {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}

html.scroll-reveal-active [data-scroll-reveal].scroll-reveal-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 1.25s cubic-bezier(0.17, 0.84, 0.26, 0.99),
    transform 1.25s cubic-bezier(0.17, 0.84, 0.26, 0.99);
}

@media (prefers-reduced-motion: reduce) {
  .page-load-rise {
    opacity: 1;
    transform: none;
    animation: none;
  }

  [data-scroll-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Visually hidden (a11y) + live monitoring dashboard section ── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Live monitoring dashboard (scroll → fullscreen → overlay) —— */
.hp-dashboard-section {
  --hp-bg: #f1f5f9;
  --hp-card: #fff;
  --hp-border: rgba(15, 23, 42, 0.08);
  --hp-ink: #1e293b;
  --hp-muted: #64748b;
  --hp-green: #16a34a;
  --hp-green-soft: rgba(34, 197, 94, 0.14);
  --hp-blue: #2563eb;
  --hp-blue-soft: rgba(37, 99, 235, 0.12);
  --hp-orange: #ea580c;
  --hp-orange-soft: rgba(234, 88, 12, 0.14);
  --hp-gray-cell: #f8fafc;
  position: relative;
  margin: clamp(2rem, 4vw, 3rem) calc(-1 * var(--assoc-page-edge)) 0;
  width: calc(100% + 2 * var(--assoc-page-edge));
  max-width: none;
}

.hp-dashboard-pin {
  position: relative;
  min-height: 240vh;
}

.hp-dashboard-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 28rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.hp-dashboard-frame {
  --hp-dash-pad: clamp(0.65rem, 1.5vw, 1rem);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: var(--hp-frame-width, min(1240px, calc(100vw - 2.5rem)));
  max-width: 100%;
  height: var(--hp-frame-height, min(88vh, 52rem));
  max-height: 88vh;
  margin: 0 auto;
  padding: 0;
  border-radius: var(--hp-frame-radius, 12px);
  background: var(--hp-bg);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--hp-border);
  overflow: hidden;
  transform-origin: center center;
  transform: scale(var(--hp-frame-scale, 1));
  transition: box-shadow 0.2s ease;
}

.hp-dash-appbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(180deg, #e8ecf0 0%, #dce3eb 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--hp-frame-radius, 12px) var(--hp-frame-radius, 12px) 0 0;
}

.hp-dash-appbar-side {
  flex: 1 1 0;
  min-width: 0;
}

.hp-dash-appbar-side--right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
}

.hp-dash-appbar-center {
  flex: 0 0 auto;
}

.hp-dash-logo {
  display: block;
  height: clamp(0.82rem, 1.55vw, 0.98rem);
  width: auto;
  max-width: min(5rem, 24vw);
  object-fit: contain;
}

.hp-dash-live-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--hp-green);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.28);
  flex-shrink: 0;
}

.hp-dash-live-text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hp-ink);
}

.hp-dashboard-frame-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: var(--hp-dash-pad);
  display: flex;
  flex-direction: column;
}

.hp-dashboard-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(15, 23, 42, var(--hp-overlay-alpha, 0));
  transition: background 0.15s ease;
}

.hp-dashboard-tagline {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(72rem, calc(100vw - 2.5rem));
  max-width: calc(100vw - 2.5rem);
  padding: 0 1.25rem;
  text-align: center;
  font-family: var(--font-aeonik-stack, inherit);
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.hp-dashboard-tagline-title {
  margin: 0 0 1.35rem;
  font-family: inherit;
  font-size: clamp(2.1rem, 4.8vw, 3.35rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-wrap: balance;
  opacity: var(--hp-title-opacity, 0);
  transform: translateY(var(--hp-title-shift, 8px));
}

.hp-dashboard-tagline-list {
  margin: 0 auto;
  padding: 0;
  max-width: 72rem;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  text-align: center;
  font-family: inherit;
  font-size: clamp(1.04rem, 2.2vw, 1.32rem);
  font-weight: 400;
  line-height: 1.5;
}

.hp-dashboard-tagline-item {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.85rem;
  min-height: 100%;
  padding: 1.35rem 0.2rem 1.4rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(8, 15, 28, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: var(--hp-bullet-opacity, 0);
  transform: translateY(var(--hp-bullet-shift, 10px));
}

.hp-dashboard-tagline-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  color: rgba(247, 250, 248, 0.94);
  background: rgba(255, 255, 255, 0.2);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
}

.hp-dashboard-tagline-arrow svg {
  width: 15px;
  height: 15px;
}

.hp-dashboard-tagline-text {
  min-width: 0;
  width: 100%;
  max-width: none;
  text-wrap: balance;
}

@media (max-width: 980px) {
  .hp-dashboard-tagline {
    width: min(64rem, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
  }

  .hp-dashboard-tagline-list {
    grid-template-columns: 1fr;
    max-width: 30rem;
  }

  .hp-dashboard-tagline-text {
    max-width: 24ch;
  }
}

.hp-dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hp-dash-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
}

.hp-dash-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.hp-dash-metric-val {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
}

.hp-dash-metric--thermal .hp-dash-metric-val {
  color: var(--hp-green);
}
.hp-dash-metric--hpcop .hp-dash-metric-val {
  color: var(--hp-blue);
}
.hp-dash-metric--syscop .hp-dash-metric-val {
  color: var(--hp-orange);
}

.hp-dash-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--hp-green);
}

.hp-dash-status-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  color: var(--hp-green);
}

.hp-dash-status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--hp-green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.hp-dash-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.hp-dash-row + .hp-dash-row {
  margin-top: 0.5rem;
}

.hp-dash-grid-main {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.hp-hp-card {
  background: var(--hp-card);
  border: 1px solid var(--hp-border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.62rem;
  min-width: 0;
}

.hp-hp-card--inactive {
  padding: 0;
  min-height: 5.5rem;
}

.hp-hp-card--inactive .hp-hp-head {
  border-bottom: 0;
}

.hp-hp-dot--muted {
  background: #94a3b8;
  box-shadow: none;
}

.hp-hp-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.35rem;
  min-width: 0;
}

.hp-hp-name-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--hp-ink);
}

.hp-hp-name-sub {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--hp-muted);
  text-transform: none;
  letter-spacing: 0;
}

.hp-hp-power--muted {
  color: var(--hp-muted);
  font-weight: 600;
  font-size: 0.65rem;
}

.hp-hp-head-right {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.hp-hp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.45rem 0.5rem 0.35rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.hp-hp-head-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.hp-hp-title {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--hp-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-hp-dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: var(--hp-green);
  flex-shrink: 0;
}

.hp-hp-power {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hp-blue);
  white-space: nowrap;
}

.hp-hp-chevron {
  width: 0.65rem;
  height: 0.65rem;
  opacity: 0.45;
}

.hp-hp-temps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 4px;
}

.hp-cell {
  border-radius: 4px;
  padding: 0.28rem 0.32rem;
  min-height: 2.15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.08rem;
}

.hp-cell-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hp-muted);
  line-height: 1.1;
}

.hp-cell-val {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hp-ink);
  line-height: 1.1;
}

.hp-cell--brine {
  background: var(--hp-green-soft);
}
.hp-cell--gas {
  background: var(--hp-orange-soft);
}
.hp-cell--cond {
  background: var(--hp-green-soft);
}

.hp-hp-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 0 4px 4px;
}

.hp-cell--spec {
  background: var(--hp-gray-cell);
  min-height: 2rem;
}

.hp-cell--elec {
  background: var(--hp-blue-soft);
}

.hp-hp-footer {
  padding: 0.28rem 0.5rem 0.4rem;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--hp-orange);
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.hp-dash-lower {
  display: block;
}

.hp-subcard {
  background: var(--hp-card);
  border: 1px solid var(--hp-border);
  border-radius: 10px;
  padding: 0.45rem 0.5rem;
  font-size: 0.58rem;
  min-width: 0;
}

.hp-subcard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.hp-subcard-title {
  margin: 0;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hp-ink);
}

.hp-subcard-title--muted {
  color: var(--hp-muted);
}

.hp-subcard-chevron {
  width: 0.65rem;
  height: 0.65rem;
  opacity: 0.45;
  flex-shrink: 0;
}

.hp-dc-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.hp-dc-blocks .hp-cell {
  min-height: 1.85rem;
  background: var(--hp-gray-cell);
}

.hp-dc-power {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--hp-muted);
}

.hp-dc-power strong {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--hp-ink);
}

.hp-pump-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.hp-pump-row:last-child {
  border-bottom: 0;
}

.hp-pump-left {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.hp-pump-name {
  font-weight: 700;
  color: var(--hp-ink);
}

.hp-pump-val {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--hp-ink);
  text-align: right;
}

.hp-circuit {
  grid-column: span 1;
}

.hp-circuit-kw {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--hp-ink);
  margin-bottom: 0.35rem;
}

.hp-circuit-kw--green {
  color: var(--hp-green);
}

.hp-circuit-row {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.22rem 0;
  font-size: 0.58rem;
  color: var(--hp-muted);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.hp-circuit-row:last-of-type {
  border-bottom: 0;
}

.hp-circuit-row strong {
  color: var(--hp-ink);
  font-weight: 600;
}

.hp-circuit-row--dt strong {
  color: var(--hp-orange);
}

.hp-system {
  grid-column: span 1;
}

.hp-system-row {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.22rem 0;
  font-size: 0.58rem;
  color: var(--hp-muted);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.hp-system-row:last-of-type {
  border-bottom: 0;
}

.hp-system-row strong {
  color: var(--hp-ink);
  font-weight: 600;
}

.hp-estop {
  color: var(--hp-green);
  font-weight: 700;
}

.hp-pipes {
  grid-column: span 1;
}

.hp-pipe-row {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.22rem 0;
  font-size: 0.56rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--hp-muted);
}

.hp-pipe-row:last-child {
  border-bottom: 0;
}

.hp-pipe-row span:last-child {
  font-weight: 700;
  color: var(--hp-ink);
}

.hp-meter-body {
  min-height: 4.5rem;
}

@media (max-width: 1100px) {
  .hp-dash-grid-main,
  .hp-dash-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hp-dashboard-section {
    margin: clamp(1.5rem, 5vw, 2rem) calc(-1 * var(--assoc-page-edge)) 0;
    width: calc(100% + 2 * var(--assoc-page-edge));
    max-width: none;
    box-sizing: border-box;
  }

  .hp-dash-grid-main,
  .hp-dash-row {
    grid-template-columns: 1fr;
  }

  .hp-dashboard-frame {
    height: var(--hp-frame-height, min(90vh, 48rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-dashboard-pin {
    min-height: 0;
  }

  .hp-dashboard-sticky {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 2rem var(--assoc-page-edge);
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .hp-dashboard-frame {
    transform: none;
    width: min(1240px, calc(100vw - 2 * var(--assoc-page-edge)));
    height: var(--hp-frame-height, min(88vh, 52rem));
    max-height: 88vh;
    transition: none;
  }

  .hp-dashboard-overlay {
    opacity: 1;
    background: rgba(15, 23, 42, 0.52);
    transition: none;
  }

  .hp-dashboard-tagline {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    width: min(72rem, calc(100vw - 2.5rem));
    max-width: calc(100vw - 2.5rem);
    padding: 0 1.25rem;
    transition: none;
  }

  .hp-dashboard-tagline-title {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hp-dashboard-tagline-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hp-dashboard-tagline-arrow {
    color: rgba(247, 250, 248, 0.94);
    background: rgba(255, 255, 255, 0.2);
  }

  .hp-dashboard-tagline-item {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 40px rgba(8, 15, 28, 0.18);
  }
}
