/* ==========================================================================
   Greenpoint AS — Design tokens & base
   Palette derived from the Greenpoint mark (navy) + the heat/data concept
   from the brand brief: heat flow = ember, orchestration/data = navy,
   delivered value to buildings = sage. Neutral scale is cool-toned to sit
   quietly behind the accent work.
   ========================================================================== */

:root {
  /* Neutral scale — ink is logo-navy (not black), white is a warm sand (not stark white) */
  --ink: #123354;
  --ink-800: #1a3a5c;
  --ink-700: #2a4a6c;
  --slate: #535a65;
  --slate-400: #8991a0;
  --mist-300: #d6cfbe;
  --mist-100: #e9e1d2;
  --mist-50: #fbf6ec;
  --white: #f6efe2;

  /* Brand navy — orchestration / Greenpoint / data layer */
  --navy-900: #0e2338;
  --navy-800: #122a44;
  --navy-700: #16344f;
  --navy-500: #2c5580;
  --navy-200: #9fb8d6;
  --navy-100: #dde6f0;

  /* Ember — heat / energy / primary action */
  --ember-700: #8f3a1e;
  --ember-600: #b8461f;
  --ember-500: #d2572c;
  --ember-400: #e46c44;
  --ember-100: #fbe7da;

  /* Sage — delivered value to buildings, used sparingly as a tag color */
  --sage-700: #35521f;
  --sage-600: #4f7a3b;
  --sage-100: #eaf3e2;

  /* Type */
  --font-display: "Fraunces", "IBM Plex Sans", serif;
  --font-brand: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, sans-serif;
  --font-label: "IBM Plex Sans", -apple-system, sans-serif;

  --fs-h1: clamp(2.5rem, 1.7rem + 3.6vw, 4.35rem);
  --fs-h2: clamp(1.9rem, 1.5rem + 1.8vw, 2.85rem);
  --fs-h3: clamp(1.3rem, 1.15rem + 0.7vw, 1.65rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-eyebrow: 0.78rem;

  --nav-h: 76px;
  --container: 1240px;
  --edge: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: var(--fs-h1); font-weight: 500; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.005em; }

p { margin: 0; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--slate);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--edge);
}

.eyebrow {
  font-family: var(--font-label);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

section { position: relative; }

[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.section-pad { padding: clamp(4rem, 6vw, 7.5rem) 0; }

/* Focus states — visible everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ember-500);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ember-600);
  color: var(--white);
}
.btn-primary:hover { background: var(--ember-700); }

.btn-ghost-dark {
  background: transparent;
  border-color: rgba(18, 51, 84, 0.22);
  color: var(--ink);
}
.btn-ghost-dark:hover { border-color: var(--ink); background: rgba(18, 51, 84, 0.04); }

.btn-ghost-light {
  background: transparent;
  border-color: rgba(246, 239, 226, 0.35);
  color: var(--white);
}
.btn-ghost-light:hover { border-color: var(--white); background: rgba(246, 239, 226, 0.08); }

.btn svg { width: 16px; height: 16px; flex: none; }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(246, 239, 226, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.nav.is-scrolled {
  background: rgba(246, 239, 226, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--mist-100);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--white);
  transition: color 0.35s var(--ease);
}

.nav .brand {
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  letter-spacing: -0.005em;
}

.nav.is-scrolled .brand { color: var(--ink); }

.brand-mark { flex: none; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.35s var(--ease);
}

.nav.is-scrolled .nav-links a { color: var(--ink); }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--ember-500);
  transition: right 0.25s var(--ease);
}

.nav-links a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(246, 239, 226, 0.35);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: color 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.nav.is-scrolled .nav-toggle {
  border-color: var(--mist-100);
  background: var(--white);
  color: var(--ink);
}

.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: linear-gradient(165deg, var(--navy-800) 0%, var(--navy-900) 100%);
  z-index: 99;
  padding: 1.5rem var(--edge) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  overflow-y: auto;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu-links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(246, 239, 226, 0.14);
}

.mobile-menu-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ember-400);
  flex: none;
}

.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-menu-footer .btn {
  justify-content: center;
  width: 100%;
}

.mobile-menu-contact {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-family: var(--font-label);
  font-size: 0.9rem;
}

.mobile-menu-contact a { color: rgba(246, 239, 226, 0.7); transition: color 0.2s var(--ease); }
.mobile-menu-contact a:hover { color: var(--white); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none; }
}

/* ==========================================================================
   Hero — sticky, scroll-driven, 4 steps
   ========================================================================== */

.hero-scrolly { position: relative; }

.hero-scrolly__pin {
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 4vw, 3rem));
  padding-bottom: 0;
  background:
    radial-gradient(65% 55% at 12% 0%, rgba(228, 108, 68, 0.22) 0%, rgba(228, 108, 68, 0) 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 30%, var(--navy-700) 65%, var(--navy-500) 100%);
  color: var(--white);
  overflow: clip;
  display: flex;
  flex-direction: column;
}

.hero-scrolly__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  flex: 1;
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.hero-copy { max-width: 640px; }

.hero-eyebrow {
  color: var(--ember-400);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.hero-eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ember-400);
}

.hero-scrolly h1 { margin-bottom: 1.5rem; color: var(--white); }
.hero-scrolly h1 em {
  font-style: italic;
  color: var(--ember-400);
}

.hero-step-panel { display: none; }
.hero-scrolly__pin[data-step="0"] .hero-step-panel[data-panel="0"],
.hero-scrolly__pin[data-step="1"] .hero-step-panel[data-panel="1"],
.hero-scrolly__pin[data-step="2"] .hero-step-panel[data-panel="2"],
.hero-scrolly__pin[data-step="3"] .hero-step-panel[data-panel="3"] {
  display: block;
  animation: step-fade-in 0.5s var(--ease);
}

@keyframes step-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-step-panel .lead { margin-bottom: 0; max-width: 52ch; color: rgba(246, 239, 226, 0.75); }
.hero-step-panel .hero-step-kicker { color: var(--white); font-weight: 500; margin-bottom: 0.85rem; }

.hero-step-label {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ember-400);
  margin-bottom: 0.85rem;
}

/* Each step (1-3) gets its own simple heading, styled like the hero h1 */
.hero-step-heading {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0 0 1.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-visual {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  filter: drop-shadow(0 20px 45px rgba(8, 20, 36, 0.45));
}

@media (min-width: 1050px) {
  .hero-scrolly__grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  }
  .hero-visual { margin: 0; max-width: none; }
}

/* Desktop: pin the hero and drive it from scroll position */
@media (min-width: 900px) {
  .hero-scrolly { height: 400vh; }

  .hero-scrolly__pin {
    position: sticky;
    top: 0;
    height: 100vh;
  }
}

/* Respect reduced motion: no scroll-jacked pin, just the first step, statically */
@media (min-width: 900px) and (prefers-reduced-motion: reduce) {
  .hero-scrolly { height: auto; }
  .hero-scrolly__pin { position: static; height: auto; }
}

/* ==========================================================================
   Flow diagram (hero signature graphic)
   ========================================================================== */

.flow-node-label {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.flow-path-heat {
  stroke: var(--ember-500);
  stroke-width: 2.5;
  fill: none;
}

.flow-path-data {
  stroke: var(--navy-200);
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
  fill: none;
  opacity: 0.85;
}

.flow-dot-heat {
  fill: var(--ember-500);
  offset-path: path("M 206 92 C 300 92, 258 188, 340 216 C 296 296, 210 320, 148 316");
  animation: flow-heat 5.5s linear infinite;
}

.flow-dot-data {
  fill: var(--navy-200);
  offset-path: path("M 148 330 C 210 334, 296 310, 344 230 C 262 202, 300 104, 206 108");
  animation: flow-data 6.5s linear infinite;
}

@keyframes flow-heat {
  0% { offset-distance: 0%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

@keyframes flow-data {
  0% { offset-distance: 0%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-dot-heat, .flow-dot-data { display: none; }
}

.flow-card-fill-source { fill: var(--ember-100); }
.flow-card-stroke-source { stroke: var(--ember-500); }
.flow-card-fill-hub { fill: var(--navy-700); }
.flow-card-fill-consumer { fill: var(--sage-100); }
.flow-card-stroke-consumer { stroke: var(--sage-600); }

/* Lines read as "more concrete" once the technical layer (step 2+) appears */
.hero-scrolly__pin[data-step="2"] .flow-path-data,
.hero-scrolly__pin[data-step="3"] .flow-path-data {
  stroke-dasharray: none;
  stroke-width: 2;
  opacity: 1;
}

/* The flow pulses faster once the system goes live (step 3) */
.hero-scrolly__pin[data-step="3"] .flow-dot-heat { animation-duration: 2.6s; }
.hero-scrolly__pin[data-step="3"] .flow-dot-data { animation-duration: 3.2s; }

/* ==========================================================================
   Hero illustration — progressive step layers
   ========================================================================== */

.step-1-only, .step-2-only, .step-3-only {
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.hero-scrolly__pin[data-step="1"] .step-1-only { opacity: 1; }
.hero-scrolly__pin[data-step="2"] .step-2-only,
.hero-scrolly__pin[data-step="3"] .step-2-only { opacity: 1; }
.hero-scrolly__pin[data-step="3"] .step-3-only { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .step-1-only, .step-2-only, .step-3-only { transition: none; }
}

.step-chip rect {
  fill: rgba(246, 239, 226, 0.1);
  stroke: rgba(246, 239, 226, 0.4);
  stroke-width: 1;
}

.step-chip text {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 500;
  fill: var(--white);
}

.step-chip--agreement rect { fill: var(--ember-600); stroke: none; }
.step-chip--agreement text { fill: var(--white); font-weight: 600; }

.step-chip--metric rect { fill: var(--navy-500); stroke: rgba(246, 239, 226, 0.35); }

.step-match-line {
  fill: none;
  stroke: var(--ember-400);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
}

.step-match-dot { fill: var(--ember-500); }
.step-match-check {
  fill: none;
  stroke: var(--white);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-value-label { font-weight: 600; font-size: 11px; }

/* ==========================================================================
   Marquee / process strip
   ========================================================================== */

.strip {
  border-top: 1px solid var(--mist-100);
  border-bottom: 1px solid var(--mist-100);
  padding: 1.5rem 0;
}

.strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  align-items: center;
  justify-content: space-between;
}

.strip-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-label);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--slate);
}

.strip-flow strong { color: var(--ink); font-weight: 600; }
.strip-flow .arrow { color: var(--mist-300); }

@media (max-width: 620px) {
  .strip-flow { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .strip-flow .arrow { display: none; }
  .strip-flow > *:not(.arrow)::before {
    content: "→ ";
    color: var(--mist-300);
  }
  .strip-flow > *:first-child::before { content: ""; }
}

/* Strip doubles as the hero's scroll-progress indicator */
.hero-scrolly__strip {
  border-top: 1px solid rgba(246, 239, 226, 0.16);
  border-bottom: none;
  margin-top: auto;
}

.hero-scrolly__strip .container {
  justify-content: space-between;
}

.hero-scrolly__strip .strip-flow {
  color: rgba(246, 239, 226, 0.65);
  display: none;
}

.hero-scrolly__strip .strip-flow strong { color: var(--white); }
.hero-scrolly__strip .strip-flow .arrow { color: rgba(246, 239, 226, 0.4); }

.hero-scrolly__pin[data-step="0"] .strip-flow[data-strip="0"],
.hero-scrolly__pin[data-step="1"] .strip-flow[data-strip="1"],
.hero-scrolly__pin[data-step="2"] .strip-flow[data-strip="2"],
.hero-scrolly__pin[data-step="3"] .strip-flow[data-strip="3"] {
  display: flex;
}

.hero-scrolly__dots {
  display: flex;
  gap: 0.5rem;
}

.hero-scrolly__dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(246, 239, 226, 0.25);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.hero-scrolly__pin[data-step="0"] .dot[data-dot="0"],
.hero-scrolly__pin[data-step="1"] .dot[data-dot="1"],
.hero-scrolly__pin[data-step="2"] .dot[data-dot="2"],
.hero-scrolly__pin[data-step="3"] .dot[data-dot="3"] {
  background: var(--ember-500);
  transform: scale(1.3);
}

@media (max-width: 620px) {
  .hero-scrolly__strip .container { justify-content: flex-start; gap: 1rem; }
}

/* ==========================================================================
   Section headers
   ========================================================================== */

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.section-head .eyebrow { color: var(--ember-600); }

.section-head--split {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
  }
}

/* ==========================================================================
   Problem section (dark)
   ========================================================================== */

.section-dark {
  background: linear-gradient(165deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: var(--white);
}

.section-dark .eyebrow { color: var(--ember-400); }
.section-dark h2 { color: var(--white); }
.section-dark .lead { color: var(--mist-300); }

.barrier-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(246, 239, 226, 0.12);
}

@media (min-width: 800px) {
  .barrier-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.barrier-item {
  display: flex;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(246, 239, 226, 0.12);
}

@media (min-width: 800px) {
  .barrier-item:nth-child(odd) { padding-right: 2.5rem; border-right: 1px solid rgba(246, 239, 226, 0.12); }
  .barrier-item:nth-child(even) { padding-left: 2.5rem; }
}

.barrier-item .mark {
  font-family: var(--font-label);
  font-weight: 600;
  color: var(--ember-400);
  flex: none;
  font-size: 0.85rem;
  padding-top: 0.2rem;
}

.barrier-item p { color: var(--mist-300); font-size: 0.98rem; }
.barrier-item strong { color: var(--white); font-weight: 600; display: block; margin-bottom: 0.2rem; font-family: var(--font-display); font-size: 1.02rem; }

/* ==========================================================================
   Process / how it works
   ========================================================================== */

.process-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--mist-100);
}

.process-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--mist-100);
  align-items: start;
}

@media (min-width: 800px) {
  .process-row { grid-template-columns: 100px 1fr minmax(0, 380px); }
}

.process-row .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--ember-600);
}

.process-row h3 { margin-bottom: 0.6rem; }
.process-row .desc { grid-column: 2 / 3; }
.process-row .note {
  color: var(--slate);
  font-size: 0.92rem;
  grid-column: 2 / 3;
}

@media (min-width: 800px) {
  .process-row .desc { grid-column: auto; }
  .process-row .note { grid-column: auto; align-self: center; }
}

.process-footnote {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mist-100);
  color: var(--slate);
  font-size: 0.9rem;
  font-style: italic;
}

/* ==========================================================================
   Audience sections
   ========================================================================== */

.audience-primary {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  border: 1px solid var(--mist-100);
  border-left: 3px solid var(--ember-500);
  border-radius: 24px;
  overflow: hidden;
  background: var(--mist-50);
}

.audience-primary-body { padding: clamp(2rem, 4vw, 3.5rem); max-width: 680px; }
.audience-primary-body .tag-label {
  color: var(--ember-600);
  margin-bottom: 0.9rem;
  display: block;
}
.audience-primary-body h3 { margin-bottom: 1rem; }
.audience-primary-body p.lead { margin-bottom: 1.5rem; font-size: 1.02rem; }

.check-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--ink-800);
}

.check-list svg {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 0.15rem;
  color: var(--ember-600);
}

.audience-secondary-label {
  display: block;
  color: var(--ember-600);
  margin-bottom: 1rem;
}

.audience-secondary {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 800px) {
  .audience-secondary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.audience-card {
  border: 1px solid var(--mist-100);
  border-radius: 20px;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.audience-card:hover {
  border-color: var(--mist-300);
  box-shadow: 0 12px 32px rgba(18, 51, 84, 0.06);
}

.audience-card .tag-label { display: block; margin-bottom: 0.85rem; }
.audience-card.tag-industri .tag-label { color: var(--ember-600); }
.audience-card.tag-bygg .tag-label { color: var(--sage-600); }

.audience-card h3 { margin-bottom: 0.75rem; }
.audience-card p.body-copy { color: var(--slate); margin-bottom: 1rem; }

.example-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.example-tags span {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: var(--mist-50);
  border: 1px solid var(--mist-100);
  color: var(--slate);
}

/* ==========================================================================
   SD / integration section (navy)
   ========================================================================== */

.section-navy {
  background: var(--navy-900);
  color: var(--white);
}

.section-navy .eyebrow { color: var(--navy-100); opacity: 0.85; }
.section-navy h2 { color: var(--white); }
.section-navy .lead { color: rgba(246, 239, 226, 0.72); }

.capability-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(246, 239, 226, 0.14);
  border: 1px solid rgba(246, 239, 226, 0.14);
  border-radius: 16px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .capability-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.capability-item {
  background: var(--navy-700);
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.capability-item .idx {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(246, 239, 226, 0.55);
}

.capability-item strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
}

.capability-item span.detail {
  font-size: 0.85rem;
  color: rgba(246, 239, 226, 0.65);
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 42%, var(--ember-700) 100%);
  color: var(--white);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.cta-band .container {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .cta-band .container {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
  }
}

.cta-band h2 { color: var(--white); margin-bottom: 1rem; max-width: 16ch; }
.cta-band p.lead { color: rgba(246, 239, 226, 0.8); max-width: 46ch; }

.cta-band-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 900px) {
  .cta-band-actions { align-items: flex-end; }
}

.cta-band-actions .btn-primary {
  background: var(--white);
  color: var(--ink);
}
.cta-band-actions .btn-primary:hover { background: var(--mist-100); }

.cta-contact-line {
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(246, 239, 226, 0.75);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--mist-300);
  padding: clamp(3rem, 5vw, 4.5rem) 0 2rem;
}

.footer-top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(246, 239, 226, 0.12);
}

@media (min-width: 800px) {
  .footer-top { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
}

.footer-brand .brand { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.92rem; color: var(--mist-300); max-width: 32ch; }

.footer-col h4 {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 239, 226, 0.5);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer-col a { font-size: 0.92rem; color: var(--mist-300); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--white); }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.social-link svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.82rem;
  color: var(--slate-400);
}

/* ==========================================================================
   Reveal-on-scroll (subtle, respects reduced motion)
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Small utilities
   ========================================================================== */

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

.skip-link {
  position: fixed;
  top: -60px;
  left: 1rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  z-index: 200;
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 1rem; }

/* ==========================================================================
   Cookie banner
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  background: var(--navy-900);
  border-top: 1px solid rgba(246, 239, 226, 0.14);
  padding: 1.25rem var(--edge);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.cookie-banner__inner p {
  color: rgba(246, 239, 226, 0.8);
  font-size: 0.92rem;
  max-width: 46ch;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex: none;
}

.cookie-banner .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  min-height: 40px;
}

@media (max-width: 560px) {
  .cookie-banner__inner { flex-direction: column; align-items: flex-start; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }
}
