/* =============================================================
   Corporate Ecology — Workplace Culture Consulting (NZ)
   Single stylesheet for the entire site
   ============================================================= */

:root {
  --color-foundation: #F7F4EF;
  --color-foundation-soft: #EFEAE2;
  --color-depth: #1A3636;
  --color-depth-soft: #2C4F4F;
  --color-accent: #E28743;
  --color-accent-soft: #F2B583;
  --color-text: #1F2A2A;
  --color-text-muted: #4D5A5A;
  --color-line: rgba(26, 54, 54, 0.12);
  --color-glass: rgba(247, 244, 239, 0.65);
  --color-glass-dark: rgba(26, 54, 54, 0.6);
  --shadow-soft: 0 18px 40px rgba(26, 54, 54, 0.08);
  --shadow-deep: 0 30px 60px rgba(26, 54, 54, 0.18);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.25rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Instrument Serif", "Georgia", serif;
  --transition-fast: 0.25s ease;
  --transition-mid: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1240px;
}

/* ===================== Reset & base ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-foundation);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-mid);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul,
ol {
  list-style: none;
}

input,
textarea,
select,
button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px dashed var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ===================== Layout helpers ===================== */
.shell-wrap {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.shell-narrow {
  width: min(100% - 2rem, 880px);
  margin-inline: auto;
}

.section-block {
  padding-block: var(--space-2xl);
}

.section-block-tight {
  padding-block: var(--space-xl);
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(226, 135, 67, 0.12);
  color: var(--color-accent);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.eyebrow-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.headline-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--color-depth);
}

.headline-display em {
  font-style: italic;
  color: var(--color-accent);
}

.headline-section {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  color: var(--color-depth);
  margin-bottom: var(--space-sm);
}

.lede-paragraph {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--color-text-muted);
  max-width: 60ch;
}

.section-heading-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-align: center;
  align-items: center;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  max-width: 720px;
}

.section-heading-block.left-aligned {
  text-align: left;
  align-items: flex-start;
  margin-inline: 0;
}

.cta-cluster {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

/* ===================== Buttons ===================== */
.btn-primary,
.btn-ghost,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform var(--transition-fast), background var(--transition-fast),
    color var(--transition-fast), border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(226, 135, 67, 0.3);
}

.btn-primary:hover {
  background: #d17433;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-depth);
  border: 1px solid var(--color-depth);
}

.btn-outline:hover {
  background: var(--color-depth);
  color: var(--color-foundation);
}

.btn-ghost {
  background: var(--color-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--color-depth);
}

.btn-ghost:hover {
  background: var(--color-foundation);
}

.btn-arrow::after {
  content: "→";
  transition: transform var(--transition-fast);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ===================== Header ===================== */
.top-frame {
  position: relative;
  z-index: 60;
  width: 100%;
  padding-block: var(--space-md);
  background: transparent;
}

.top-frame.over-banner {
  position: absolute;
  inset: 0 0 auto 0;
}

.frame-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.65rem);
  letter-spacing: 0.02em;
  color: var(--color-depth);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 400;
}

.brand-mark::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-block;
}

.over-banner .brand-mark,
.over-banner .desk-nav a,
.over-banner .menu-toggle {
  color: var(--color-foundation);
}

.over-banner .brand-mark::before {
  background: var(--color-accent);
}

.desk-nav {
  display: none;
}

@media (min-width: 1024px) {
  .desk-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.6rem);
  }

  .desk-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-depth);
    position: relative;
    padding-block: 0.25rem;
  }

  .desk-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-fast), left var(--transition-fast);
  }

  .desk-nav a:hover::after,
  .desk-nav a.is-here::after {
    width: 100%;
    left: 0;
  }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-glass);
  border: 1px solid var(--color-line);
  color: var(--color-depth);
  position: relative;
  z-index: 70;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.menu-toggle:hover {
  background: var(--color-accent);
  color: #fff;
}

.menu-toggle .bar-stack {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle .bar-stack span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

/* ===================== Slide-out menu ===================== */
.veil-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 54, 54, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-mid);
  z-index: 80;
}

.slide-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(420px, 92vw);
  background: var(--color-foundation);
  z-index: 90;
  transform: translateX(105%);
  transition: transform var(--transition-mid);
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  gap: var(--space-md);
  box-shadow: var(--shadow-deep);
}

.slide-menu.is-open {
  transform: translateX(0);
}

.veil-overlay.is-on {
  opacity: 1;
  pointer-events: all;
}

.slide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-line);
}

.slide-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-foundation-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-depth);
}

.slide-close:hover {
  background: var(--color-accent);
  color: #fff;
}

.slide-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.slide-list a {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  color: var(--color-depth);
  padding-block: 0.4rem;
  border-bottom: 1px solid var(--color-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slide-list a:hover {
  color: var(--color-accent);
}

.slide-list a::after {
  content: "↗";
  font-size: 1rem;
  color: var(--color-accent);
}

.slide-meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ===================== Hero (full-width banners) ===================== */
.hero-stage {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: clamp(540px, 78vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: var(--color-foundation);
}

.hero-stage .stage-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(26, 54, 54, 0.55) 0%,
      rgba(26, 54, 54, 0.3) 35%,
      rgba(26, 54, 54, 0.85) 100%
    ),
    radial-gradient(60% 80% at 80% 30%, rgba(226, 135, 67, 0.25), transparent 70%);
  z-index: -1;
}

.hero-content {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  display: grid;
  gap: var(--space-md);
  max-width: 760px;
}

.hero-content .headline-display,
.hero-content .lede-paragraph {
  color: var(--color-foundation);
}

.hero-content .lede-paragraph {
  color: rgba(247, 244, 239, 0.8);
  max-width: 56ch;
}

.hero-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--color-glass-dark);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(247, 244, 239, 0.12);
  border-radius: var(--radius-lg);
}

.hero-stat-strip li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stat-strip strong {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--color-accent);
}

.hero-stat-strip span {
  font-size: 0.85rem;
  color: rgba(247, 244, 239, 0.78);
}

/* Compact hero used by sub-pages */
.subhero-stage {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: clamp(360px, 52vh, 460px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: var(--color-foundation);
}

.subhero-stage .stage-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.subhero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 54, 54, 0.4) 0%,
    rgba(26, 54, 54, 0.85) 100%
  );
  z-index: -1;
}

.subhero-stage .hero-content {
  padding-block: clamp(2.4rem, 6vw, 4rem);
}

/* Crumb path */
.crumb-path {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(247, 244, 239, 0.75);
  margin-bottom: var(--space-2xs);
}

.crumb-path a:hover {
  color: var(--color-accent);
}

/* ===================== Pulse Widget (homepage top) ===================== */
.pulse-shell {
  position: relative;
  margin-top: calc(var(--space-xl) * -1);
  z-index: 5;
}

.pulse-card {
  background: var(--color-foundation);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-deep);
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 880px) {
  .pulse-card {
    grid-template-columns: minmax(220px, 280px) 1fr;
  }
}

.pulse-dial {
  position: relative;
  width: clamp(220px, 26vw, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    from 200deg,
    var(--color-depth) 0deg,
    var(--color-depth-soft) 120deg,
    var(--color-accent) 220deg,
    var(--color-accent-soft) 300deg,
    var(--color-depth) 360deg
  );
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 12px var(--color-foundation),
    inset 0 0 0 13px var(--color-line);
  transition: filter var(--transition-mid);
  margin-inline: auto;
}

.pulse-dial::before {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: var(--color-foundation);
  box-shadow: inset 0 0 0 1px var(--color-line);
}

.pulse-needle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  transform: rotate(0deg);
  transition: transform var(--transition-mid);
}

.pulse-needle::before {
  content: "";
  width: 4px;
  height: 38%;
  background: var(--color-accent);
  border-radius: 4px;
  align-self: flex-start;
  margin-top: 6%;
  box-shadow: 0 4px 10px rgba(226, 135, 67, 0.4);
}

.pulse-readout {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  text-align: center;
}

.pulse-readout strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--color-depth);
}

.pulse-readout span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.pulse-info {
  display: grid;
  gap: var(--space-sm);
}

.pulse-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pulse-modes button {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--color-foundation-soft);
  color: var(--color-depth);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid var(--color-line);
}

.pulse-modes button.is-current {
  background: var(--color-depth);
  color: var(--color-foundation);
  border-color: var(--color-depth);
}

.pulse-summary {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.pulse-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

body.is-mode-proactive {
  background-color: #F1EDE3;
}

body.is-mode-visionary {
  background-color: #EBE3D6;
}

/* ===================== Promise grid ===================== */
.promise-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.promise-tile {
  background: var(--color-foundation);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.promise-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.promise-tile .icon-pill {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(226, 135, 67, 0.14);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.promise-tile h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-depth);
  font-weight: 400;
}

/* ===================== Two-column blocks ===================== */
.duo-row {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 880px) {
  .duo-row {
    grid-template-columns: 1fr 1fr;
  }

  .duo-row.flip {
    direction: rtl;
  }

  .duo-row.flip > * {
    direction: ltr;
  }
}

.duo-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-soft);
  background: var(--color-depth);
}

.duo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.duo-frame:hover img {
  transform: scale(1.04);
}

.duo-frame.frame-portrait {
  aspect-ratio: 3 / 4;
  max-width: 480px;
  margin-inline: auto;
}

.duo-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.duo-list {
  display: grid;
  gap: 0.75rem;
}

.duo-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.duo-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(226, 135, 67, 0.18);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ===================== Process steps ===================== */
.path-strip {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  position: relative;
}

.path-step {
  position: relative;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(247, 244, 239, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-line);
}

.path-step .step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--color-accent);
  line-height: 1;
}

.path-step h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-depth);
  font-weight: 400;
  margin-block: 0.5rem;
}

.path-step p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* ===================== Programs preview tiles ===================== */
.program-rail {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.program-card {
  background: var(--color-foundation);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.program-card .card-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-depth);
}

.program-card .card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-card .card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-depth);
  font-weight: 400;
}

.program-card p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  flex: 1;
}

.program-card .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-xs);
  font-size: 0.9rem;
  color: var(--color-depth);
}

.program-card .card-foot span {
  color: var(--color-accent);
  font-weight: 600;
}

/* ===================== Voice / Quote ===================== */
.voice-strip {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.voice-quote {
  background: var(--color-foundation-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.voice-quote::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.8;
  color: var(--color-accent);
}

.voice-quote p {
  font-size: 1rem;
  color: var(--color-depth);
}

.voice-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.voice-author span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-depth);
  color: var(--color-foundation);
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* ===================== CTA banner ===================== */
.invite-block {
  background: var(--color-depth);
  color: var(--color-foundation);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.invite-block::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 60%;
  height: 100%;
  background: radial-gradient(
    closest-side,
    rgba(226, 135, 67, 0.4),
    transparent 70%
  );
}

@media (min-width: 880px) {
  .invite-block {
    grid-template-columns: 1.6fr 1fr;
  }
}

.invite-block .headline-section {
  color: var(--color-foundation);
}

.invite-block .lede-paragraph {
  color: rgba(247, 244, 239, 0.78);
}

.invite-foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ===================== Footer ===================== */
.foot-frame {
  background: var(--color-depth);
  color: var(--color-foundation);
  padding-block: var(--space-xl) var(--space-md);
  margin-top: var(--space-2xl);
}

.foot-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .foot-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.foot-brand .brand-mark {
  color: var(--color-foundation);
}

.foot-brand p {
  font-size: 0.9rem;
  color: rgba(247, 244, 239, 0.7);
  max-width: 36ch;
}

.foot-col h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
  color: var(--color-foundation);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.foot-col ul {
  display: grid;
  gap: 0.45rem;
}

.foot-col a,
.foot-col p {
  color: rgba(247, 244, 239, 0.78);
  font-size: 0.9rem;
}

.foot-col a:hover {
  color: var(--color-accent);
}

.foot-base {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(247, 244, 239, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: rgba(247, 244, 239, 0.6);
}

/* ===================== Cookie consent ===================== */
.consent-pop {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 95;
  background: var(--color-foundation);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  padding: var(--space-md);
  box-shadow: var(--shadow-deep);
  display: grid;
  gap: var(--space-sm);
  transform: translateY(120%);
  transition: transform var(--transition-mid);
}

.consent-pop.is-shown {
  transform: translateY(0);
}

@media (min-width: 720px) {
  .consent-pop {
    left: auto;
    bottom: 1.5rem;
    right: 1.5rem;
    max-width: 440px;
    grid-template-columns: 1fr;
  }
}

.consent-pop p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.consent-pop strong {
  color: var(--color-depth);
}

.consent-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===================== Scorecard (radar) ===================== */
.scorecard-shell {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
  background: var(--color-foundation);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 960px) {
  .scorecard-shell {
    grid-template-columns: 1fr 1fr;
  }
}

.scorecard-form {
  display: grid;
  gap: var(--space-md);
}

.field-block {
  display: grid;
  gap: 0.5rem;
}

.field-block label {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
}

.field-block select,
.field-block input,
.field-block textarea {
  padding: 0.85rem 1rem;
  background: var(--color-foundation-soft);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--color-depth);
  width: 100%;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.field-block select:focus,
.field-block input:focus,
.field-block textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-foundation);
}

.chip-set {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip-set label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--color-foundation-soft);
  border: 1px solid var(--color-line);
  font-size: 0.9rem;
  cursor: pointer;
  letter-spacing: normal;
  text-transform: none;
  color: var(--color-depth);
  font-weight: 500;
}

.chip-set input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-set label:has(input:checked) {
  background: var(--color-depth);
  color: var(--color-foundation);
  border-color: var(--color-depth);
}

.scorecard-result {
  display: grid;
  gap: var(--space-sm);
  background: var(--color-foundation-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.score-readout {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-display);
  color: var(--color-depth);
}

.score-readout .score-num {
  font-size: clamp(3rem, 6vw, 4.6rem);
  color: var(--color-accent);
  line-height: 1;
}

.score-readout .score-of {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.score-tier {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-depth);
  font-weight: 600;
}

.radar-canvas {
  width: 100%;
  height: auto;
  display: block;
}

.score-legend {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* ===================== Programs page (interactive sliders) ===================== */
.editorial-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 880px) {
  .editorial-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.editorial-pack {
  background: var(--color-foundation);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pack-photo {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-depth);
}

.pack-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pack-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.pack-body h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--color-depth);
  font-weight: 400;
}

.pack-features {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.pack-features li::before {
  content: "→ ";
  color: var(--color-accent);
  font-weight: 700;
}

.scaler-block {
  background: var(--color-foundation-soft);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  display: grid;
  gap: 0.5rem;
}

.scaler-block label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

.scaler-block label span {
  letter-spacing: normal;
  text-transform: none;
  color: var(--color-accent);
  font-weight: 700;
}

.scaler-block input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--color-line);
  outline: none;
}

.scaler-block input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-foundation);
  box-shadow: 0 4px 10px rgba(226, 135, 67, 0.3);
  cursor: pointer;
}

.scaler-block input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-foundation);
  cursor: pointer;
}

.pack-foot {
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: auto;
}

.pack-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-depth);
}

.pack-price small {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-left: 0.25rem;
}

/* ===================== Impact / Case studies ===================== */
.case-stack {
  display: grid;
  gap: var(--space-lg);
}

.case-row {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
  background: var(--color-foundation);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  padding: clamp(1.4rem, 3vw, 2rem);
  align-items: center;
}

@media (min-width: 880px) {
  .case-row {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.case-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.case-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-text h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--color-depth);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.delta-strip {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-top: var(--space-sm);
}

.delta-tile {
  background: var(--color-foundation-soft);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  display: grid;
  gap: 0.25rem;
}

.delta-tile span {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.delta-tile strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-depth);
}

.delta-tile em {
  font-style: normal;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ===================== Products ===================== */
.market-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.market-card {
  background: var(--color-foundation);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.market-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.market-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-depth);
}

.market-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.market-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-depth);
  font-weight: 400;
}

.market-body p {
  color: var(--color-text-muted);
  font-size: 0.93rem;
  flex: 1;
}

.market-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.market-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-accent);
}

/* ===================== Contact ===================== */
.contact-shell {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 880px) {
  .contact-shell {
    grid-template-columns: 1.1fr 1fr;
  }
}

.contact-card {
  background: var(--color-foundation);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: grid;
  gap: var(--space-md);
}

.contact-form {
  display: grid;
  gap: var(--space-sm);
}

.consent-block {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.consent-block input {
  margin-top: 0.25rem;
  accent-color: var(--color-accent);
  width: 18px;
  height: 18px;
}

.contact-detail {
  display: grid;
  gap: var(--space-sm);
}

.detail-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.6rem;
  align-items: start;
}

.detail-item .icon-pill {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(226, 135, 67, 0.14);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.detail-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-depth);
  margin-bottom: 0.15rem;
}

.detail-item p,
.detail-item a {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.detail-item a:hover {
  color: var(--color-accent);
}

.map-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-soft);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
  height: clamp(280px, 40vh, 420px);
}

/* ===================== Thank you ===================== */
.confirm-stage {
  display: grid;
  gap: var(--space-md);
  text-align: center;
  align-items: center;
  justify-items: center;
  padding-block: var(--space-2xl);
  max-width: 720px;
  margin-inline: auto;
}

.confirm-mark {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(226, 135, 67, 0.14);
  display: grid;
  place-items: center;
  color: var(--color-accent);
  font-size: 3.2rem;
}

/* ===================== 404 ===================== */
.notfound-stage {
  display: grid;
  gap: var(--space-md);
  text-align: center;
  align-items: center;
  justify-items: center;
  padding-block: var(--space-2xl);
  max-width: 720px;
  margin-inline: auto;
}

.notfound-stage .big-num {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 9rem);
  line-height: 1;
  color: var(--color-accent);
}

/* ===================== Legal pages ===================== */
.legal-shell {
  background: var(--color-foundation);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  gap: var(--space-md);
  box-shadow: var(--shadow-soft);
}

.legal-shell h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: var(--color-depth);
  font-weight: 400;
  margin-top: var(--space-sm);
}

.legal-shell h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-depth);
  font-weight: 400;
  margin-top: var(--space-xs);
}

.legal-shell p,
.legal-shell li {
  color: var(--color-text-muted);
  font-size: 0.96rem;
}

.legal-shell ul {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.25rem;
}

.legal-shell ul li {
  list-style: disc;
}

.legal-shell .date {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-accent);
  background: rgba(226, 135, 67, 0.1);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.legal-toc a {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--color-depth);
  background: var(--color-foundation-soft);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--color-line);
}

.legal-toc a:hover {
  background: var(--color-accent);
  color: var(--color-foundation);
  border-color: var(--color-accent);
}

/* ===================== FAQ accordion ===================== */
.faq-stack {
  display: grid;
  gap: var(--space-xs);
}

.faq-row {
  background: var(--color-foundation);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
}

.faq-row summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-depth);
  font-weight: 400;
}

.faq-row summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--color-accent);
  transition: transform var(--transition-fast);
}

.faq-row[open] summary::after {
  content: "−";
}

.faq-row p {
  margin-top: 0.6rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ===================== Sub-hero variations (page-level themes) ===================== */
.tone-warm {
  background: linear-gradient(180deg, #F1ECDF 0%, #F7F4EF 100%);
}

.tone-cool {
  background: linear-gradient(180deg, #E5EAE6 0%, #F7F4EF 100%);
}

/* ===================== Responsive corrections ===================== */
@media (max-width: 720px) {
  .hero-content {
    padding-block: clamp(2.5rem, 12vw, 4rem);
  }

  .pulse-shell {
    margin-top: calc(var(--space-lg) * -1);
  }
}

@media (max-width: 480px) {
  .btn-primary,
  .btn-ghost,
  .btn-outline {
    width: 100%;
  }

  .cta-cluster {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .pulse-modes button {
    flex: 1 1 100%;
  }
}

/* ===================== Print fallback (legal pages) ===================== */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  .top-frame,
  .foot-frame,
  .menu-toggle,
  .veil-overlay,
  .slide-menu,
  .consent-pop {
    display: none !important;
  }
}
