/* =========================================================
   Resilience Forge — production stylesheet
   ========================================================= */

:root {
  --forge-deep: #102C2F;
  --forge: #18333C;
  --forge-soft: #24454E;
  --bone: #EFEDE8;
  --bone-warm: #E8E5DC;
  --ember: #ED6426;

  --line-on-dark: rgba(239, 237, 232, 0.14);
  --line-on-light: rgba(24, 51, 60, 0.14);
  --muted-on-dark: rgba(239, 237, 232, 0.68);
  --muted-on-light: rgba(24, 51, 60, 0.68);

  --shell-max: 1240px;
  --shell-pad-x: clamp(24px, 5vw, 72px);
  --section-pad-y: clamp(120px, 14vw, 180px);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-ui: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Tweakables */
  --headline-weight: 300;
  --hero-video-scale: 1.35;
  --hero-overlay-base: 0.05;
  --hero-text-gradient: 0.30;
  --transition-height: 72px;
  --button-radius: 2px;
  --card-radius: 0px;
  --spark-duration: 2200ms;
  --field-drift-state: running;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--forge-deep);
  color: var(--bone);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

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

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

button { font: inherit; cursor: pointer; }

::selection { background: var(--ember); color: var(--bone); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bone);
  color: var(--forge);
  padding: 12px 18px;
  z-index: 200;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.skip-link:focus { left: 16px; top: 16px; }

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

/* =========================================================
   Section primitives
   ========================================================= */

.section,
.hero,
.footer {
  position: relative;
  padding: var(--section-pad-y) 0;
  isolation: isolate;
  overflow: hidden;
}

.section-dark {
  background: var(--forge-deep);
  color: var(--bone);
}
.section-deep { background: var(--forge-deep); }
.section-forge { background: var(--forge); }
.section-light {
  background: var(--bone);
  color: var(--forge);
}

.section-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--shell-pad-x);
  position: relative;
  z-index: 2;
}

/* =========================================================
   Typography
   ========================================================= */

.eyebrow {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-on-dark);
  margin: 0 0 28px 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-light .eyebrow { color: var(--muted-on-light); }

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--headline-weight);
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.015em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.8rem, 5.6vw, 5.5rem);
  line-height: 1.04;
}
h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  line-height: 1.08;
}
h3 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

p { margin: 0; }
.lead {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.65;
  max-width: 52ch;
}

em.ember {
  color: var(--ember);
  font-style: italic;
  font-family: var(--font-display);
  font-weight: var(--headline-weight);
  font-variation-settings: "opsz" 96;
}

.muted-dark { color: var(--muted-on-dark); }
.muted-light { color: var(--muted-on-light); }

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  border-radius: var(--button-radius);
  border: 1px solid transparent;
  transition: background 220ms var(--ease-out), color 220ms var(--ease-out), border-color 220ms var(--ease-out);
  cursor: pointer;
  line-height: 1;
}

.button .arrow {
  display: inline-block;
  transition: transform 220ms var(--ease-out);
  font-weight: 400;
}

.button:hover .arrow { transform: translateX(3px); }

/* Primary on dark */
.button-primary {
  background: var(--bone);
  color: var(--forge);
  border-color: var(--bone);
}
.button-primary:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
}

/* Secondary on dark */
.button-secondary {
  background: transparent;
  color: var(--bone);
  border-color: var(--bone);
}
.button-secondary:hover {
  background: rgba(239, 237, 232, 0.08);
}

/* Primary on light */
.section-light .button-primary,
.button-on-light {
  background: var(--forge);
  color: var(--bone);
  border-color: var(--forge);
}
.section-light .button-primary:hover,
.button-on-light:hover {
  background: var(--forge-deep);
  border-color: var(--forge-deep);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.005em;
  color: var(--bone);
  border-bottom: 1px solid var(--line-on-dark);
  padding-bottom: 8px;
  transition: border-color 220ms var(--ease-out), color 220ms var(--ease-out);
}
.section-light .text-link { color: var(--forge); border-bottom-color: var(--line-on-light); }

.text-link .arrow { transition: transform 220ms var(--ease-out); }
.text-link:hover { border-color: currentColor; }
.text-link:hover .arrow { transform: translateX(3px); }

/* =========================================================
   Reveal / motion
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out);
  transition-delay: 0ms;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   Field SVG system
   ========================================================= */

.field-graphic {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.field-line {
  fill: none;
  stroke: var(--bone);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.12;
  vector-effect: non-scaling-stroke;
}

.section-light .field-line { stroke: var(--forge-deep); opacity: 0.10; }

.field-line.latent { opacity: 0.10; }
.field-line.warm { stroke: var(--ember); opacity: 0.22; }

/* Lines fade in and out on staggered 8-12s cycles */
.field-line.breathe-a { animation: fieldBreathe 9s var(--ease-out) infinite; }
.field-line.breathe-b { animation: fieldBreathe 11s var(--ease-out) infinite; animation-delay: -3s; }
.field-line.breathe-c { animation: fieldBreathe 12s var(--ease-out) infinite; animation-delay: -6s; }
.field-line.breathe-d { animation: fieldBreathe 10s var(--ease-out) infinite; animation-delay: -1.5s; }

@keyframes fieldBreathe {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.18; }
}

.field-point {
  fill: var(--bone);
  opacity: 0.4;
}
.section-light .field-point { fill: var(--forge-deep); opacity: 0.4; }

.field-drift {
  animation: fieldDrift 10s var(--ease-out) infinite;
  animation-play-state: var(--field-drift-state);
  transform-origin: 50% 50%;
}

@keyframes fieldDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Spark */
.spark circle {
  fill: var(--ember);
  filter: drop-shadow(0 0 6px rgba(237, 100, 38, 0.45))
          drop-shadow(0 0 14px rgba(237, 100, 38, 0.28));
  transform-box: fill-box;
  transform-origin: center;
  animation: sparkBreathe var(--spark-duration) ease-in-out infinite;
}
.spark .glow {
  fill: url(#sparkGradient);
  opacity: 0.85;
  transform-box: fill-box;
  transform-origin: center;
  animation: sparkBreatheGlow var(--spark-duration) ease-in-out infinite;
}

@keyframes sparkBreathe {
  0%, 100% { opacity: 0.72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}
@keyframes sparkBreatheGlow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 220ms var(--ease-out), border-color 220ms var(--ease-out), backdrop-filter 220ms var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(16, 44, 47, 0.92);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom-color: var(--line-on-dark);
}

.nav-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 14px var(--shell-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--bone);
}

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--bone);
  white-space: nowrap;
}
.section-light .brand-wordmark { color: var(--forge); }

.site-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-menu > a {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 0.92rem;
  letter-spacing: 0.005em;
  color: var(--muted-on-dark);
  padding: 4px 0;
  transition: color 200ms var(--ease-out);
  position: relative;
}
.site-menu > a:hover { color: var(--bone); }
.site-menu > a.is-active { color: var(--bone); }

.nav-cta {
  background: var(--bone) !important;
  color: var(--forge) !important;
  padding: 12px 20px !important;
  border-radius: 2px;
  font-weight: 500 !important;
  transition: background 220ms var(--ease-out);
}
.nav-cta:hover { background: #FFFFFF !important; }

.nav-cta::after {
  content: "→";
  margin-left: 8px;
  display: inline-block;
  transition: transform 220ms var(--ease-out);
}
.nav-cta:hover::after { transform: translateX(3px); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-on-dark);
  width: 44px; height: 44px;
  padding: 0;
  border-radius: 2px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle-line {
  width: 18px; height: 1px;
  background: var(--bone);
  display: block;
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-menu {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--forge-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 32px var(--shell-pad-x);
    gap: 8px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 280ms var(--ease-out), opacity 280ms var(--ease-out);
    border-top: 1px solid var(--line-on-dark);
  }
  .site-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-menu > a {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.8rem;
    color: var(--bone);
    padding: 14px 0;
    border-bottom: 1px solid var(--line-on-dark);
  }
  .nav-cta {
    margin-top: 16px;
    text-align: center;
    align-self: flex-start;
    font-family: var(--font-ui) !important;
    font-size: 0.95rem !important;
    border-bottom: none !important;
  }
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  padding: 120px 0 100px;
  background: var(--forge-deep);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}
.hero-copy h1 {
  margin: 14px 0 32px;
  color: var(--bone);
}
.hero-lead {
  font-size: clamp(1.05rem, 1.2vw, 1.18rem);
  color: var(--muted-on-dark);
  max-width: 480px;
  line-height: 1.6;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 600px;
  justify-self: end;
}

.hero-field {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding: 100px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
}

/* Hero video background */
.hero {
  background: #102C2F;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  height: auto;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
  pointer-events: none;
  /* Crop the letterbox bars baked into the source MP4. */
  transform: scale(var(--hero-video-scale));
  transform-origin: center center;
}

.hero .section-inner { position: relative; z-index: 2; }

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to right, rgba(16, 44, 47, var(--hero-text-gradient)), transparent),
    rgba(16, 44, 47, var(--hero-overlay-base));
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 900px) {
  /* On stacked layout the text sits over the video full-width — use a top-down fade instead */
  .hero-video-overlay {
    background:
      linear-gradient(to bottom, rgba(16, 44, 47, var(--hero-text-gradient)), transparent),
      rgba(16, 44, 47, var(--hero-overlay-base));
  }
}

/* =========================================================
   Section transitions — organic curves between sections
   ========================================================= */

.section-transition {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;          /* hide hairline at seam */
  width: 100%;
  height: var(--transition-height);
  z-index: 4;
  pointer-events: none;
  line-height: 0;
  transition: height 240ms var(--ease-out);
}
.section-transition svg {
  display: block;
  width: 100%;
  height: 100%;
}
.section-transition path { transition: none; }

/* Color helpers: fill the curve with the NEXT section's background */
.to-bone path        { fill: var(--bone); }
.to-forge path       { fill: var(--forge); }
.to-forge-deep path  { fill: var(--forge-deep); }

@media (max-width: 760px) {
  .section-transition { height: 56px; }
}

/* =========================================================
   Section structures
   ========================================================= */

.section-opener {
  max-width: 760px;
  margin-bottom: clamp(60px, 7vw, 96px);
}
.section-opener.narrow { max-width: 640px; }
.section-opener.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-opener.center .eyebrow { justify-content: center; }
.section-opener h2 { color: var(--bone); }
.section-light .section-opener h2 { color: var(--forge); }

.section-opener p {
  margin-top: 24px;
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.65;
  color: var(--muted-on-dark);
  max-width: 56ch;
}
.section-light .section-opener p { color: var(--muted-on-light); }

/* Ambient field backgrounds */
.ambient-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1200ms var(--ease-out);
}
.ambient-field.is-visible { opacity: 1; }

.ambient-field svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

/* =========================================================
   REALITY
   ========================================================= */

.reality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  max-width: 1000px;
}

.reality-grid p {
  color: var(--muted-on-light);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 52ch;
}

@media (max-width: 760px) {
  .reality-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* =========================================================
   MANIFESTO
   ========================================================= */

.manifesto {
  text-align: center;
  position: relative;
}
.manifesto .section-inner { max-width: 920px; text-align: center; }
.manifesto h2 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  color: var(--bone);
  margin-bottom: 32px;
}
.manifesto p {
  color: var(--muted-on-dark);
  max-width: 560px;
  margin: 0 auto;
  font-size: clamp(1.05rem, 1.2vw, 1.15rem);
  line-height: 1.7;
}
.manifesto .manifesto-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}

/* =========================================================
   WAT WIJ BOUWEN — 3 cards on light
   ========================================================= */

.build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-light {
  background: rgba(255,255,255,0.42);
  border: 1px solid var(--line-on-light);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.card-light:hover { background: rgba(255,255,255,0.62); }
.card-light h3 { color: var(--forge); }
.card-light p { color: var(--muted-on-light); font-size: 0.98rem; line-height: 1.65; }
.card-light .card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
}

.card-number {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--muted-on-light);
  letter-spacing: -0.01em;
}

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

/* =========================================================
   SERVICES — 5 cards on dark
   ========================================================= */

.services .section-opener h2 { color: var(--bone); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-on-dark);
  border: 1px solid var(--line-on-dark);
}

.service-card {
  background: var(--forge);
  padding: 44px 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 360px;
  transition: background 240ms var(--ease-out);
  position: relative;
}
.service-card:hover { background: var(--forge-soft); }

.service-card .service-number {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--muted-on-dark);
  letter-spacing: -0.01em;
}

.service-card h3 { color: var(--bone); font-size: 1.4rem; font-family: var(--font-display); font-weight: 300; letter-spacing: -0.01em; }
.service-card p { color: var(--muted-on-dark); font-size: 0.98rem; line-height: 1.65; flex: 1; }

.service-icon { width: 56px; height: 56px; }

.service-card .text-link {
  margin-top: 8px;
  align-self: flex-start;
  color: var(--bone);
  border-bottom-color: var(--line-on-dark);
}

@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   APPROACH — 4 steps on bone
   ========================================================= */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.approach-connector {
  position: absolute;
  top: 36px;
  left: 8%;
  right: 8%;
  height: 80px;
  z-index: 0;
  pointer-events: none;
}
.approach-connector svg { width: 100%; height: 100%; }

.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 0;
}

.step-number {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 2.6rem;
  color: var(--ember);
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 16px;
}
.step-number::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-on-light);
}

.step h3 {
  color: var(--forge);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}
.step p {
  color: var(--muted-on-light);
  font-size: 0.98rem;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .approach-grid { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .approach-connector { display: none; }
}
@media (max-width: 560px) {
  .approach-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   VOOR WIE — 3 blocks on deep
   ========================================================= */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.audience-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line-on-dark);
}
.audience-block .marker {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1rem;
  color: var(--muted-on-dark);
  letter-spacing: 0.04em;
}
.audience-block h3 { color: var(--bone); font-size: 1.35rem; font-family: var(--font-display); font-weight: 300; letter-spacing: -0.01em; }
.audience-block p { color: var(--muted-on-dark); font-size: 0.98rem; line-height: 1.65; max-width: 38ch; }

@media (max-width: 880px) {
  .audience-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* =========================================================
   INZICHTEN — 3 articles on bone
   ========================================================= */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: rgba(255,255,255,0.42);
  border: 1px solid var(--line-on-light);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 220ms var(--ease-out);
  min-height: 360px;
}
.article-card:hover { background: rgba(255,255,255,0.7); }
.article-card .article-meta {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-on-light);
}
.article-card h3 {
  color: var(--forge);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.article-card p { color: var(--muted-on-light); font-size: 0.98rem; line-height: 1.6; flex: 1; }

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

/* =========================================================
   FINAL CTA
   ========================================================= */

.final-cta {
  text-align: center;
  position: relative;
}
.final-cta .section-inner { max-width: 800px; }
.final-cta h2 {
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  color: var(--bone);
  margin-bottom: 28px;
}
.final-cta p {
  color: var(--muted-on-dark);
  max-width: 520px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  line-height: 1.65;
}
.final-cta .button-row { justify-content: center; }

.final-cta .cta-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background: var(--forge-deep);
  border-top: 1px solid var(--line-on-dark);
  padding: 80px 0 36px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted-on-dark);
  max-width: 28ch;
}

.footer-col h4 {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-on-dark);
  margin-bottom: 24px;
}
.footer-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.footer-list a {
  color: var(--muted-on-dark);
  font-size: 0.95rem;
  transition: color 200ms var(--ease-out);
}
.footer-list a:hover { color: var(--bone); }

.footer-bottom {
  border-top: 1px solid var(--line-on-dark);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted-on-dark);
}
.footer-bottom .legal-links {
  display: flex; gap: 24px;
}

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* =========================================================
   Approach connector path (light)
   ========================================================= */

.approach-connector .field-line { stroke: var(--forge-deep); opacity: 0.18; }
.approach-connector .field-point { fill: var(--ember); opacity: 0.9; }

/* =========================================================
   Forms — none in this build, but kept tidy
   ========================================================= */

/* =========================================================
   Utility
   ========================================================= */

.divider-rule {
  height: 1px;
  background: var(--line-on-dark);
  border: 0;
  margin: 0;
}
.section-light .divider-rule { background: var(--line-on-light); }

/* small inline field illustrations inside cards */
.inline-field {
  width: 100%;
  aspect-ratio: 2 / 1;
  display: block;
}

/* =========================================================
   TWEAKS — data-attribute driven variations
   ========================================================= */

/* Card style */
html[data-card-style="outlined"] .card-light,
html[data-card-style="outlined"] .article-card {
  background: transparent;
  border: 1px solid var(--line-on-light);
}
html[data-card-style="outlined"] .service-card {
  background: transparent;
  border: 1px solid var(--line-on-dark);
}
html[data-card-style="outlined"] .service-grid {
  background: transparent;
  border: none;
  gap: 16px;
}

html[data-card-style="ghost"] .card-light,
html[data-card-style="ghost"] .article-card {
  background: transparent;
  border: none;
  padding-left: 0;
  padding-right: 0;
}
html[data-card-style="ghost"] .service-card {
  background: transparent;
  border: none;
}
html[data-card-style="ghost"] .service-grid {
  background: transparent;
  border: none;
  gap: 32px 48px;
}

html[data-card-style="lifted"] .card-light,
html[data-card-style="lifted"] .article-card {
  background: #ffffff;
  border: none;
  box-shadow: 0 1px 0 rgba(24,51,60,0.04), 0 18px 40px -22px rgba(24,51,60,0.22);
}
html[data-card-style="lifted"] .service-card {
  background: var(--forge);
  border: none;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 24px 40px -28px rgba(0,0,0,0.6);
}
html[data-card-style="lifted"] .service-grid {
  background: transparent;
  border: none;
  gap: 20px;
}

/* Card radius */
.card-light, .article-card, .service-card, .audience-block {
  border-radius: var(--card-radius);
}

/* Transition shape variants */
html[data-transition-style="diagonal"] .section-transition svg {
  display: none;
}
html[data-transition-style="diagonal"] .section-transition {
  bottom: 0;
}
html[data-transition-style="diagonal"] .section-transition::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 35%);
}
html[data-transition-style="diagonal"] .section-transition.to-bone::before        { background: var(--bone); }
html[data-transition-style="diagonal"] .section-transition.to-forge::before       { background: var(--forge); }
html[data-transition-style="diagonal"] .section-transition.to-forge-deep::before  { background: var(--forge-deep); }

html[data-transition-style="sharp"] .section-transition { display: none; }

/* Eyebrow variants */
html[data-eyebrow-style="dot"] .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ember);
  opacity: 1;
}
html[data-eyebrow-style="bare"] .eyebrow::before {
  display: none;
}

/* Hero layout */
html[data-hero-layout="centered"] .hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
html[data-hero-layout="centered"] .hero-copy { max-width: 760px; }
html[data-hero-layout="centered"] .hero-copy .eyebrow { justify-content: center; }
html[data-hero-layout="centered"] .hero-copy .button-row { justify-content: center; }
html[data-hero-layout="centered"] .hero-lead { margin-left: auto; margin-right: auto; }
html[data-hero-layout="centered"] .hero-video-overlay {
  background:
    linear-gradient(to bottom, transparent 20%, rgba(16,44,47,var(--hero-text-gradient)) 60%, rgba(16,44,47,calc(var(--hero-text-gradient) + 0.05)) 100%),
    rgba(16,44,47,var(--hero-overlay-base));
}

/* Field drift toggle off */
html[data-field-drift="off"] .field-drift {
  animation-play-state: paused;
}

/* Reveal stagger override (driven by --reveal-stagger if you want; left default) */

/* =========================================================
   Tweaks panel root container
   ========================================================= */

#tweaks-root { position: fixed; inset: auto 0 0 auto; pointer-events: none; z-index: 2147483646; }
#tweaks-root > * { pointer-events: auto; }

