:root {
  --terracotta: #c86030;
  --terracotta-light: #d4783a;
  --navy: #14213D;
  --navy-deep: #0d1a2e;
  --bg: #f7f4ef;
  --bg2: #f0ebe4;
  --card: #ffffff;
  --ink: #14213D;
  --muted: rgba(20,33,61,.62);
  --border: rgba(20,33,61,.08);
  --sans: 'Inter', sans-serif;
  --mono: 'Inter', sans-serif;
  --radius: 6px;
  --maxw: 1600px;
  --gutter: 40px;
  --section-padding: clamp(48px, 6vw, 96px);
}

/* Smooth scrolling for anchor links (respects reduced-motion) */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
  font-family: var(--sans); 
  font-weight: 400;
  background: var(--bg); 
  color: var(--ink); 
  -webkit-font-smoothing: antialiased; 
  line-height: 1.5; 
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all 0.2s ease; }

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

/* Typography Utility */
h1 { font-weight: 300; letter-spacing: -0.02em; font-size: 96px; line-height: 96px; color: #111827; }
h2 { font-weight: 300; letter-spacing: -0.02em; font-size: 56px; line-height: 62px; color: #111827; }
h3, h4, h5, h6 { line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; }
.text-mono { font-weight: 500; color: var(--terracotta-light); font-size: 14px; line-height: 20px; margin-bottom: 12px; }
.text-muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.btn--primary {
  background: var(--terracotta);
  color: #fff;
}

.btn--primary:hover {
  background: var(--terracotta-light);
}

.btn--ghost {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.55);
  color: var(--navy);
}

.btn--ghost:hover {
  border-color: rgba(20,33,61,.28);
  background: rgba(255,255,255,.8);
}
/* On a dark hero the ghost button reads as a solid white one */
.section-bg--navy .hero .btn--ghost,
.hero--has-bg .btn--ghost {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}
.section-bg--navy .hero .btn--ghost:hover,
.hero--has-bg .btn--ghost:hover {
  background: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.88);
}

.btn--white {
  background: #fff;
  color: var(--navy);
}

.btn--white:hover {
  opacity: 0.9;
}

/* Thin arrow slides in on hover, all buttons */
.btn::after {
  content: "→";
  width: 0; opacity: 0; overflow: hidden; margin-left: 0;
  transition: width .16s ease, opacity .16s ease, margin-left .16s ease;
}
.btn:hover::after { width: 1em; opacity: 1; margin-left: 7px; }

/* ── HERO BLOCK ── */
.hero {
  padding: 160px 0 100px;
  overflow: hidden;
}

/* Full-viewport hero — you land in the world, nothing peeking below */
.hero--full {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 40px;
}
.hero--full > .container { width: 100%; }
.hero--full.hero--has-waveform { padding-bottom: clamp(110px, 12vw, 180px); }
@media (max-width: 768px) {
  .hero--full { min-height: 100svh; padding: calc(var(--header-h) + 24px) 0 32px; }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid--with-media {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--terracotta);
}

/* Hero with no media: centered, narrow */
.hero__grid:not(.hero__grid--with-media) {
  justify-items: center;
  text-align: center;
}
.hero__grid:not(.hero__grid--with-media) .hero__content-wrap {
  max-width: 50rem;
  margin: 0 auto;
}
.hero__grid:not(.hero__grid--with-media) .hero__subline { margin-left: auto; margin-right: auto; }
.hero__grid:not(.hero__grid--with-media) .hero__actions { justify-content: center; }

.hero__title {
  margin-bottom: 24px;
  color: var(--navy);
  font-size: clamp(44px, 6.5vw, 80px);
  line-height: 1.05;
}
@media (min-width: 1024px) {
  .hero__grid--with-media .hero__title { font-size: clamp(40px, 5vw, 64px); }
}

.hero__subline {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--muted);
  margin-bottom: 48px;
  max-width: 640px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── FEATURE (two-column) ── */
section.feature { padding: var(--section-padding) 0; }
.feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .feature__grid { grid-template-columns: 1fr; gap: 40px; } }
/* Right-aligned variant: image on the left, text on the right */
.feature--align-right .feature__content-wrap { order: 2; }
.feature--align-right .feature__image-wrap { order: 1; }
.feature__title { font-size: 56px; line-height: 62px; font-weight: 300; color: var(--navy); margin-bottom: 24px; }
.feature__text { font-size: 18px; color: var(--muted); line-height: 1.6; }
.feature__link { margin-top: 28px; margin-bottom: 0; }
.feature__text p { margin-bottom: 16px; }
.feature__text p:last-child { margin-bottom: 0; }

/* Orange square bullets in rich-text areas (like media-tabs squares, smaller, flush-left) */
.feature__text ul, .prose-section__content ul, .card__body ul, .tcg__body ul, .tl-item__desc ul, .hl-card__desc ul, .step-card__desc ul, .bento__card-desc ul, .media-tabs__pane-body ul, .hero__subline ul {
    list-style: none; padding-left: 0; margin: 0 0 16px;
}
.feature__text li, .prose-section__content li, .card__body li, .tcg__body li, .tl-item__desc li, .hl-card__desc li, .step-card__desc li, .bento__card-desc li, .media-tabs__pane-body li, .hero__subline li {
    position: relative; padding-left: 1.5em; margin-bottom: 8px;
}
.feature__text li::before, .prose-section__content li::before, .card__body li::before, .tcg__body li::before, .tl-item__desc li::before, .hl-card__desc li::before, .step-card__desc li::before, .bento__card-desc li::before, .media-tabs__pane-body li::before, .hero__subline li::before {
    content: ''; position: absolute; left: 0; top: 0.5em;
    width: 0.55em; height: 0.55em; background: var(--terracotta); border-radius: 3px;
}
.media-tabs__link { margin-top: 16px; margin-bottom: 0; }

/* Paragraph spacing in rich-text areas (reset removes it by default) */
.card__desc p, .tcg__body p, .tl-item__desc p, .hl-card__desc p, .step-card__desc p, .bento__card-desc p, .media-tabs__pane-body p, .hero__subline p { margin-bottom: 0.9em; }
.card__desc p:last-child, .tcg__body p:last-child, .tl-item__desc p:last-child, .hl-card__desc p:last-child, .step-card__desc p:last-child, .bento__card-desc p:last-child, .media-tabs__pane-body p:last-child, .hero__subline p:last-child { margin-bottom: 0; }

.feature__image-wrap { border-radius: var(--radius); overflow: hidden; }
.feature__image-wrap img { width: 100%; height: auto; display: block; }
.feature__image-wrap:empty { display: none; }

/* ── CTA BAND ── */
.cta-band {
  padding: var(--section-padding) 0;
}
/* Full-width — full-bleed background on the section, content in the normal maxw container */
.cta-band--full { padding: 0; }
.cta-band--full > .container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.cta-band--full .cta-band__inner { background: transparent; border-radius: 0; padding: 72px 0; flex-direction: row; justify-content: space-between; align-items: flex-end; text-align: left; gap: 56px; }
.cta-band--full.cta-band--navy { background: radial-gradient(120% 120% at 85% 12%, rgba(200,96,48,.38), transparent 55%), var(--navy); }
.cta-band--full.cta-band--terracotta { background: radial-gradient(130% 120% at 80% 8%, rgba(239,235,226,.22), transparent 58%), var(--terracotta); }
.cta-band--full .cta-band__content { max-width: 760px; }
.cta-band--full .cta-band__title, .cta-band--full .cta-band__subline { max-width: none; margin-left: 0; margin-right: 0; }
.cta-band--full .cta-band__subline { margin-bottom: 0; }
.cta-band--full .cta-band__aside { align-items: flex-end; flex: 0 0 auto; }
@media (max-width: 768px) {
  .cta-band--full .cta-band__inner { flex-direction: column; align-items: flex-start; padding: 56px 0; }
  .cta-band--full .cta-band__aside { align-items: flex-start; margin-top: 32px; }
}
/* Terracotta colour variant */
.cta-band--terracotta .cta-band__inner {
  background: radial-gradient(130% 120% at 80% 8%, rgba(239,235,226,.22), transparent 58%), var(--terracotta);
}
.cta-band--terracotta .cta-band__badge { color: rgba(255,255,255,.85); }
.cta-band--terracotta .btn--primary { background: #fff; color: var(--terracotta); }
.cta-band--terracotta .btn--primary:hover { background: rgba(255,255,255,.9); filter: none; }
.cta-band--terracotta .btn--white { background: transparent; border: 1px solid rgba(255,255,255,.55); color: #fff; }
.cta-band--terracotta .btn--white:hover { background: rgba(255,255,255,.12); }

.cta-band__inner {
  background:
    radial-gradient(120% 120% at 85% 12%, rgba(200,96,48,.38), transparent 55%),
    var(--navy);
  color: #fff !important;
  padding: 80px 40px;
  border-radius: var(--radius);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-band__badge {
  color: var(--terracotta-light);
  margin-bottom: 24px;
}

.cta-band__title {
  font-size: clamp(32px, 5vw, 56px);
  margin: 0 auto 20px;
  max-width: 800px;
  color: #fff !important;
}

.cta-band__subline {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto 40px;
  max-width: 600px;
}

.cta-band__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-band__aside { display: flex; flex-direction: column; align-items: center; }

/* ── CTA BAND UPDATES ── */
.cta-band__microtext {
  margin-top: 40px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

/* ── CARD GRID ── */
.card-grid { padding: var(--section-padding) 0; }
.card-grid__header { text-align: center; margin-bottom: 60px; }
.card-grid__eyebrow { font-weight: 500; color: var(--terracotta-light); font-size: 14px; line-height: 20px; margin-bottom: 12px; }
.card-grid__heading { font-size: 40px; }
.card-grid__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
/* Exactly 4 cards: 2x2 grid */
.card-grid__inner:has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) { .card-grid__inner:has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) { grid-template-columns: 1fr; } }
/* 6+ cards: lock to 3 columns so 6 items form a clean 3x2 grid */
.card-grid__inner:has(> .card:nth-child(6)) { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .card-grid__inner:has(> .card:nth-child(6)) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .card-grid__inner:has(> .card:nth-child(6)) { grid-template-columns: 1fr; } }
/* Exactly 5 cards: 2 on top row, 3 on bottom row */
.card-grid__inner:has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) { grid-template-columns: repeat(6, 1fr); }
.card-grid__inner:has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(-n+2) { grid-column: span 3; }
.card-grid__inner:has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+3) { grid-column: span 2; }
@media (max-width: 1100px) { .card-grid__inner:has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) { grid-template-columns: repeat(2, 1fr); } .card-grid__inner:has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card { grid-column: auto; } }
@media (max-width: 768px) { .card-grid__inner:has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) { grid-template-columns: 1fr; } .card-grid__inner:has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card { grid-column: auto; } }
/* Wider cards (2 per row, or 2x2) get larger text */
.card-grid__inner:has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) .card__title, .card-grid__inner:has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) .card__title { font-size: 24px; }
.card-grid__inner:has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) .card__desc,  .card-grid__inner:has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) .card__desc  { font-size: 16px; }
.card { background: var(--card); padding: 40px; border-radius: var(--radius); border: 1px solid var(--border); }
.card--image { padding: 0; overflow: hidden; }
.card--image .card__body { padding: 32px; }
.card--image .card__title { font-size: 24px; }
.card--image .card__desc { font-size: 16px; }
.card__image { aspect-ratio: 16/9; overflow: hidden; }
.card__image img { width: 100%; height: 100%; object-fit: cover; }
.card__icon { margin-bottom: 24px; }
.card__icon img { height: 48px; width: auto; }
.card__title { font-size: 20px; margin-bottom: 12px; }
.card__desc { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.card__link { font-size: 16px; font-weight: 500; color: var(--terracotta); display: inline-flex; align-items: center; gap: 6px; transition: color .15s; }
.card__link::after { content: "\2192"; font-weight: 400; transition: transform .16s ease; }
.card__link:hover::after { transform: translateX(4px); }

.card-grid__inner--gridlines { grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 768px) { .card-grid__inner--gridlines { grid-template-columns: 1fr; } }
.card-grid__inner--gridlines .card { border-radius: 0; border: none; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── PULL QUOTE ── */
.pull-quote { padding: var(--section-padding) 0; }
.pull-quote__card { position: relative; background: var(--navy); color: #fff; padding: 64px; border-radius: var(--radius); text-align: left; overflow: hidden; }
.pull-quote__mark { position: absolute; top: 8px; left: 40px; width: 160px; height: 160px; fill: var(--terracotta); opacity: .35; z-index: 0; pointer-events: none; }
.pull-quote__content { position: relative; z-index: 1; }
.pull-quote__text { font-size: clamp(24px, 4vw, 36px); line-height: 1.2; margin-bottom: 40px; font-weight: 300; }
.pull-quote__author { display: flex; align-items: center; justify-content: flex-start; gap: 16px; }
.pull-quote__portrait img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.pull-quote__meta { text-align: left; }
.pull-quote__name { font-weight: 400; font-size: 18px; }
.pull-quote__role { font-size: 14px; opacity: 0.6; }

/* ── PROOF BAR (stats) ── */
.proof-bar { padding: 40px 0; }
.proof-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: var(--maxw); margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.proof-bar__item { text-align: center; padding: 40px 24px; }
.proof-bar__item + .proof-bar__item { border-left: 1px solid var(--border); }
@media (max-width: 768px) {
    .proof-bar__grid { grid-template-columns: repeat(2, 1fr); }
    .proof-bar__item + .proof-bar__item { border-left: none; }
    .proof-bar__item:nth-child(even) { border-left: 1px solid var(--border); }
    .proof-bar__item:nth-child(n+3) { border-top: 1px solid var(--border); }
}
.proof-bar__value { font-size: clamp(24px, 3vw, 34px); color: var(--navy); letter-spacing: -0.02em; margin-bottom: 6px; }
.proof-bar__label { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ── COMPLIANCE STRIP ── */
.compliance-strip { padding: 24px 0; background: #fff; border-bottom: 1px solid var(--border); }
.compliance-strip__inner { display: flex; align-items: center; gap: 32px; }
.compliance-strip__eyebrow { font-weight: 500; color: var(--terracotta-light); font-size: 14px; line-height: 20px; margin-bottom: 12px; }
.compliance-strip__list { display: flex; gap: 24px; font-size: 12px; color: var(--muted); }
.compliance-strip__item::after { content: '•'; margin-left: 24px; opacity: 0.3; }
.compliance-strip__item:last-child::after { content: none; }

/* ── CONTACT SECTION ── */
.contact-section { padding: var(--section-padding) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: stretch; }
.contact-info { display: flex; flex-direction: column; }
.contact-details { display: flex; flex-direction: column; }
.contact-detail { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-detail:first-child { border-top: 1px solid var(--border); }
.contact-detail__label { font-size: 16px; font-weight: 400; color: var(--muted); }
.contact-detail__value { font-size: 16px; font-weight: 500; color: var(--navy); text-align: right; }

.contact-form-wrap { background: #fff; padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 40px 80px -20px rgba(20, 33, 61, 0.08); }

/* Contact card — portrait left, details right, glass tint */
.contact-card {
    width: fit-content; max-width: 100%; margin: 40px 0 0; margin-top: auto;
    display: flex; align-items: stretch; gap: 0;
    padding: 10px;
    border-radius: var(--radius); overflow: hidden;
    background: color-mix(in srgb, var(--navy) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--navy) 12%, transparent);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.section-bg--navy .contact-card {
    background: color-mix(in srgb, #fff 10%, transparent);
    border-color: color-mix(in srgb, #fff 16%, transparent);
}
.contact-card__image { flex: 0 0 clamp(190px, 23vw, 250px); align-self: flex-start; }
.contact-card__image img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.contact-card__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 10px 6px 8px 20px; }
.contact-card__name { font-size: 23px; color: var(--navy); line-height: 1.15; margin-bottom: 4px; }
.contact-card__title { font-size: 16px; color: var(--muted); }
.contact-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }
.contact-card__meta { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-card__meta li, .contact-card__meta a {
    font-family: var(--mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
    color: var(--navy); text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
}
.contact-card__meta a::after { content: "\2192"; font-weight: 400; transition: transform .16s ease; }
.contact-card__meta a:hover { color: var(--terracotta); }
.contact-card__meta a:hover::after { transform: translateX(4px); }
.contact-card__li { flex: 0 0 auto; color: var(--navy); display: inline-flex; transition: color .15s; }
.contact-card__li:hover { color: var(--terracotta); }
.section-bg--navy .contact-card__name,
.section-bg--navy .contact-card__meta li,
.section-bg--navy .contact-card__meta a,
.section-bg--navy .contact-card__li { color: #fff; }
.section-bg--navy .contact-card__title { color: rgba(255,255,255,.7); }
.form-placeholder { padding: 32px; text-align: center; border: 2px dashed var(--border); border-radius: var(--radius); }

/* ── PROSE SECTION ── */
.prose-section { padding: var(--section-padding) 0; }
.prose-section__heading { font-size: 40px; margin-bottom: 48px; color: var(--navy); }
.prose-section__content { font-size: 18px; }

/* ── FONTS (variable) ── */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/InterVariable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ── COOKIE BANNER ── */
#cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 20px 40px rgba(20, 33, 61, 0.1);
    z-index: 9999;
}
.cookie-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1200px; margin: 0 auto; }
.cookie-banner__content p { margin: 0; font-size: 14px; color: var(--navy); }
.cookie-banner__actions { display: flex; gap: 12px; }
.cookie-banner__actions .btn { padding: 10px 20px; font-size: 13px; }

@media (max-width: 768px) {
    .cookie-banner__inner { flex-direction: column; align-items: flex-start; }
}
/* ── SECTION HEADER (shared partial) ── */
.section-header { margin-bottom: 56px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.section-header__main { max-width: 50rem; }
.section-header--centered { text-align: left; justify-content: space-between; }
.section-header--centered .section-header__main { max-width: none; margin-left: 0; margin-right: 0; }
.section-header--centered .section-header__intro { margin-left: 0; margin-right: 0; }
.section-header__eyebrow { font-weight: 500; color: var(--terracotta-light); font-size: 14px; line-height: 20px; margin-bottom: 12px; }
.section-header__heading { font-size: 56px; line-height: 62px; font-weight: 300; color: #111827; margin-bottom: 20px; letter-spacing: -0.02em; }
.section-header__intro { font-size: 18px; color: var(--muted); max-width: 40rem; line-height: 1.6; }
/* Optional text button, bottom-right of the header */
.section-header__link { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 500; color: var(--navy); white-space: nowrap; margin-bottom: 20px; transition: color .15s; }
.section-header__link .arr { display: none; }
.section-header__link::after { content: "\2192"; font-weight: 400; transition: transform .16s ease; }
.section-header__link:hover { color: var(--terracotta); }
.section-header__link:hover::after { transform: translateX(4px); }

/* ── STEPS (card layout) ── */
.steps { padding: var(--section-padding) 0; }
.steps__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; list-style: none; }
.step-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.step-card__image { aspect-ratio: 16/9; overflow: hidden; }
.step-card__image img { width: 100%; height: 100%; object-fit: cover; }
.step-card__body { padding: 32px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.step-card__number { color: var(--terracotta); }
.step-card__title { font-size: 20px; color: var(--navy); }
.step-card__desc { font-size: 16px; color: var(--muted); line-height: 1.6; }

/* ── BENTO (with images) ── */
.bento { padding: var(--section-padding) 0; }
.bento__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; gap: 16px; }
/* Without a featured card the 3-col grid leaves odd gaps — fit the columns
   to the card count instead. Multiples of 3 stay on three columns. */
.bento__grid:not(:has(> .bento__card--large)):has(> .bento__card:nth-child(2)):not(:has(> .bento__card:nth-child(3))) { grid-template-columns: repeat(2, 1fr); }
.bento__grid:not(:has(> .bento__card--large)):has(> .bento__card:nth-child(4)):not(:has(> .bento__card:nth-child(5))) { grid-template-columns: repeat(2, 1fr); }
.bento__grid:not(:has(> .bento__card--large)):has(> .bento__card:nth-child(8)):not(:has(> .bento__card:nth-child(9))) { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .bento__grid:not(:has(> .bento__card--large)):has(> .bento__card:nth-child(8)):not(:has(> .bento__card:nth-child(9))) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .bento__grid,
  .bento__grid:not(:has(> .bento__card--large)):has(> .bento__card:nth-child(2)):not(:has(> .bento__card:nth-child(3))),
  .bento__grid:not(:has(> .bento__card--large)):has(> .bento__card:nth-child(4)):not(:has(> .bento__card:nth-child(5))),
  .bento__grid:not(:has(> .bento__card--large)):has(> .bento__card:nth-child(8)):not(:has(> .bento__card:nth-child(9))) {
    grid-template-columns: 1fr;
  }
  .bento__grid > .bento__card { grid-column: auto !important; grid-row: auto !important; }
}
.bento__card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform 0.2s ease; }
.bento__card:hover { transform: translateY(-3px); }
.bento__card--large { background: var(--navy); grid-column: span 2; grid-row: span 2; }
.bento__card--large:not(:has(.bento__card-image)) {
    background:
        radial-gradient(130% 100% at 80% 15%, rgba(200,96,48,.32), transparent 55%),
        linear-gradient(155deg, #0E1B33 0%, #14213D 100%);
}
/* Featured spans as many rows as there are small cards, so they stack in the right column */
.bento__grid:has(> .bento__card:nth-child(4)) .bento__card--large { grid-row: span 3; }
.bento__grid:has(> .bento__card:nth-child(5)) .bento__card--large { grid-row: span 4; }
@media (max-width: 768px) {
  .bento__card--large { grid-column: span 1 !important; grid-row: span 1 !important; }
  .bento__card--large .bento__card-title { font-size: 20px; }
  .bento__card--large .bento__card-desc { font-size: 16px; }
  .bento__card--large .bento__card-link { font-size: 16px; }
}
/* Large cell: full-bleed image on top */
.bento__card-image { aspect-ratio: 16/9; overflow: hidden; padding: 12px; }
.bento__card-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.bento__card-inner { padding: 18px 24px 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.bento__card--large .bento__card-inner { padding: 22px 28px 28px; }
/* Featured card: copy sits above the image */
.bento__card--large .bento__card-inner { order: 1; flex: 0 0 auto; }
.bento__card--large .bento__card-image { order: 2; margin-top: auto; padding: 0 28px 28px; }
.bento__card-title { font-size: 24px; line-height: 1.25; color: var(--navy); }
.bento__card--large .bento__card-title { color: #fff; font-size: 36px; line-height: 1.15; }
.bento__card-desc { font-size: 16px; color: var(--muted); line-height: 1.6; }
.bento__card--large .bento__card-desc { color: rgba(255,255,255,0.65); font-size: 18px; }
.bento__card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 500; color: var(--terracotta); }
.bento__card-link::after { content: "\2192"; font-weight: 400; transition: transform .16s ease; }
.bento__card:hover .bento__card-link::after { transform: translateX(4px); }
.bento__card--large .bento__card-link { color: var(--terracotta-light); font-size: 18px; }

/* ── LOGO BAR (marquee) ── */
.logo-bar { padding: 60px 0; overflow: hidden; }
.logo-bar__label { text-align: center; margin-bottom: 32px; }
.logo-bar__track-wrap { overflow: hidden; position: relative; max-width: 50rem; margin: 0 auto; }
.logo-bar__track-wrap::before,
.logo-bar__track-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none; }
.logo-bar__track-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.logo-bar__track-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.logo-bar__track { display: flex; gap: 60px; width: max-content; animation: logo-scroll 30s linear infinite; }
.logo-bar__track:hover { animation-play-state: paused; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-bar__track { animation: none; } }
.logo-bar__item { display: flex; align-items: center; flex-shrink: 0; }
.logo-bar__img { height: 44px; width: auto; opacity: 0.45; filter: grayscale(100%); }

/* ── STICKY HIGHLIGHTS ── */
.sticky-hl { padding: var(--section-padding) 0; }
.sticky-hl__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
@media (max-width: 1024px) {
  .sticky-hl__grid { grid-template-columns: 1fr; gap: 48px; }
  .sticky-hl__sidebar { position: static; top: auto; }
}
.sticky-hl__sidebar { position: sticky; top: 120px; }
.sticky-hl__cards { display: flex; flex-direction: column; gap: 24px; }
.hl-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.hl-card__image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hl-card__body { padding: 40px; }
.hl-card__dot { position: absolute; top: 32px; right: 32px; width: 12px; height: 12px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 4px rgba(200,96,48,.15); }
.hl-card__eyebrow { font-weight: 500; color: var(--terracotta-light); font-size: 14px; line-height: 20px; margin-bottom: 16px; }
.hl-card__title { font-size: 28px; color: var(--navy); margin-bottom: 16px; }
.hl-card__desc { font-size: 16px; color: var(--muted); line-height: 1.6; }
.hl-card__bullets { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; }
.hl-card__bullet { position: relative; padding-left: 1.5em; font-size: 16px; color: var(--muted); }
.hl-card__bullet::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 0.55em; height: 0.55em; background: var(--terracotta); border-radius: 3px; }
@media (max-width: 560px) { .hl-card__bullets { grid-template-columns: 1fr; } }
/* Per-card colour styles */
.hl-card--terracotta { border-color: var(--terracotta); border-width: 2px; }
.hl-card--navy { background: var(--navy); border-color: var(--navy); }
.hl-card--navy .hl-card__title { color: #fff; }
.hl-card--navy .hl-card__desc,
.hl-card--navy .hl-card__bullet { color: rgba(255,255,255,.72); }
.hl-card--navy .hl-card__dot { box-shadow: 0 0 0 4px rgba(255,255,255,.12); }

/* ── TEXT CARDS GRID (4-col) ── */
.text-cards-grid { padding: var(--section-padding) 0; }
.tcg__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; list-style: none; }
@media (max-width: 1024px) { .tcg__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tcg__grid { grid-template-columns: 1fr; } }
.tcg__card { background: var(--card); padding: 36px 28px; }
.tcg__title { font-size: 18px; color: var(--navy); margin-bottom: 12px; }
.tcg__body { font-size: 16px; color: var(--muted); line-height: 1.6; }

/* ── TESTIMONIALS ── */
.testimonials { padding: var(--section-padding) 0; }
.testimonials__list { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.t-card { background: radial-gradient(120% 120% at 92% 8%, rgba(200,96,48,.07), transparent 55%), var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; box-shadow: 0 4px 24px rgba(20,33,61,.07); }
@media (max-width: 900px) { .t-card { grid-template-columns: 1fr; } }
.t-card__body { position: relative; padding: 40px; display: flex; flex-direction: column; gap: 28px; justify-content: space-between; }
.t-card__mark { position: absolute; top: 40px; left: 40px; width: 44px; height: auto; fill: var(--terracotta); opacity: .28; z-index: 0; pointer-events: none; }
.t-card__quote { position: relative; z-index: 1; margin-top: 54px; }
.t-card__quote p { font-size: clamp(20px, 2.4vw, 28px); color: var(--navy); line-height: 1.35; font-weight: 300; }
.t-card__footer { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.t-card__name { font-size: 20px; color: var(--navy); font-style: normal; font-weight: 500; }
.t-card__role { font-size: 17px; color: var(--muted); }
.t-card__portrait { padding: 12px; display: flex; }
.t-card__portrait img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; border-radius: var(--radius); }
.t-card--navy { background: var(--navy); }
.t-card--navy .t-card__quote p, .t-card--navy .t-card__name { color: #fff; }
.t-card--navy .t-card__role { color: rgba(255,255,255,.6); }
.t-card--navy .t-card__mark { fill: var(--terracotta-light); opacity: .5; }
.t-card--sand { background: var(--bg2); }

/* ── TIMELINE ── */
.timeline { padding: var(--section-padding) 0; }
.timeline__list { list-style: none; position: relative; }
.tl-item { position: relative; display: grid; grid-template-columns: auto auto 1fr; column-gap: 32px; align-items: start; row-gap: 10px; padding: 32px 0; border-top: 1px solid var(--border); }
.tl-item:first-child { border-top: 0; }
.tl-item__content { display: contents; }
.tl-item__year { grid-column: 1; grid-row: 1; align-self: center; font-size: 20px; color: var(--terracotta); }
.tl-item__marker { grid-column: 2; grid-row: 1; align-self: center; }
.tl-item__marker::before { content: ''; display: block; width: 14px; height: 14px; border-radius: 4px; background: var(--terracotta); }
.tl-item__title { grid-column: 3; grid-row: 1; font-size: 28px; color: var(--navy); max-width: 640px; }
.tl-item__desc { grid-column: 3; grid-row: 2; font-size: 18px; color: var(--muted); line-height: 1.6; max-width: 720px; }
.tl-item__image { position: absolute; top: 50%; right: 0; width: 210px; transform: translateY(-50%) rotate(4deg) scale(.96); transform-origin: center; opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .28s ease; z-index: 5; }
.tl-item:hover .tl-item__image { opacity: 1; transform: translateY(-50%) rotate(4deg) scale(1); }
.tl-item__image img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: 0 22px 44px -14px rgba(20,33,61,.35); }
@media (max-width: 768px) {
  .tl-item { grid-template-columns: auto auto 1fr; column-gap: 22px; padding: 24px 0; }
  .tl-item__title, .tl-item__desc { max-width: none; }
  .tl-item__image { position: static; grid-column: 1 / -1; opacity: 1; transform: none; width: 100%; margin-top: 16px; pointer-events: auto; }
  .tl-item:hover .tl-item__image { transform: none; }
}

/* ── TEAM ── */
.team { padding: var(--section-padding) 0; }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; }
@media (max-width: 768px) { .team__grid { grid-template-columns: 1fr; } }
.team-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.team-card__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.team-card__info { padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.team-card__name { font-size: 17px; color: var(--navy); }
.team-card__role { font-size: 14px; color: var(--muted); }
.team-card__linkedin { margin-top: 10px; color: var(--muted); display: inline-flex; transition: color 0.2s; }
.team-card__linkedin:hover { color: var(--terracotta); }
.team__bottom { margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 32px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.team__bottom-text { font-size: 16px; color: var(--muted); }

/* ── COMPARISON ── */
.comparison { padding: var(--section-padding) 0; }
.custom-html { padding: var(--section-padding) 0 0; }
/* Per-section background (set via ACF 'Baggrund') */
.section-bg--white { background: var(--card); }
.section-bg--sand { background: var(--bg2); }
.section-bg--navy { background: var(--navy); }
/* Navy background: invert only text that sits directly on the section
   (never card interiors — cards keep their own white background & dark text). */
.section-bg--navy .section-header__heading,
.section-bg--navy .prose-section__heading,
.section-bg--navy .tl-item__title,
.section-bg--navy .team-card__name,
.section-bg--navy .faq__question,
.section-bg--navy .media-tabs__pane-heading,
.section-bg--navy .hero__title,
.section-bg--navy .contact-detail__value,
.section-bg--navy .section-header__link { color: #fff; }
.section-bg--navy .section-header__intro,
.section-bg--navy .feature__text,
.section-bg--navy .prose-section__content,
.section-bg--navy .tl-item__desc,
.section-bg--navy .team-card__role,
.section-bg--navy .faq__answer,
.section-bg--navy .media-tabs__pane-body,
.section-bg--navy .hero__subline,
.section-bg--navy .contact-detail__label,
.section-bg--navy .compliance-strip__item { color: rgba(255,255,255,.72); }
.section-bg--navy .media-tabs__tab { color: rgba(255,255,255,.6); }
.section-bg--navy .media-tabs__tab.is-active { color: #fff; }
.section-bg--navy .media-tabs__tab-square { background: rgba(255,255,255,.4); }
.section-bg--navy .contact-detail,
.section-bg--navy .contact-detail:first-child,
.section-bg--navy .faq__item { border-color: rgba(255,255,255,.15); }

/* Hero optional background image */
.hero { position: relative; }
.hero__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,33,61,.5), rgba(20,33,61,.72)); }
.hero--has-bg .container { position: relative; z-index: 1; }
.hero--has-bg .hero__title { color: #fff; }
.hero--has-bg .hero__subline { color: rgba(255,255,255,.8); }
.comparison__wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.comparison__table { width: 100%; border-collapse: collapse; }
.comparison__th { padding: 16px 24px; text-align: left; font-size: 13px; color: var(--muted); border-bottom: 2px solid var(--border); }
.comparison__th--edora { color: var(--terracotta); }
.comparison__row:nth-child(even) { background: rgba(20,33,61,.025); }
.comparison__td { padding: 16px 24px; font-size: 16px; color: var(--navy); border-bottom: 1px solid var(--border); }
.comparison__td--edora { color: var(--terracotta); font-weight: 500; }
.comparison__td--others { color: var(--muted); }
.comparison__row:last-child .comparison__td { border-bottom: none; }

/* ── VIDEO BLOCK ── */
.video-block { padding: var(--section-padding) 0; }
.video-block__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: center; }
@media (max-width: 1024px) { .video-block__grid { grid-template-columns: 1fr; gap: 40px; } }
.video-block__heading { font-size: clamp(24px, 3vw, 36px); color: var(--navy); margin-bottom: 16px; }
.video-block__body { font-size: 17px; color: var(--muted); line-height: 1.6; }
.video-block__ratio { position: relative; padding-bottom: 56.25%; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.video-block__ratio iframe,
.video-block__ratio video { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ── MEDIA TABS (scrollytelling) ── */
.media-tabs { padding: var(--section-padding) 0; }
.media-tabs__layout { display: grid; grid-template-columns: minmax(0, .4fr) minmax(0, .9fr); gap: 48px; align-items: start; justify-content: space-between; }
.media-tabs__nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 120px; }
.media-tabs__tab { display: flex; align-items: center; gap: 14px; background: none; border: none; padding: 14px 0; text-align: left; font-family: inherit; font-size: 20px; font-weight: 400; color: var(--muted); border-radius: var(--radius); cursor: pointer; transition: color 0.15s; }
.media-tabs__tab-square { width: 18px; height: 18px; flex-shrink: 0; border-radius: 5px; background: var(--muted); opacity: .35; transition: background .15s, opacity .15s; }
.media-tabs__tab:hover { color: var(--navy); }
.media-tabs__tab.is-active { color: var(--terracotta); font-weight: 500; }
.media-tabs__tab.is-active .media-tabs__tab-square { background: var(--terracotta); opacity: 1; }
.media-tabs__panes { display: flex; flex-direction: column; gap: 72px; }
.media-tabs__pane-inner { display: flex; flex-direction: column; gap: 28px; }
.media-tabs__pane-image { order: -1; }
.media-tabs__pane-image img { width: 100%; border-radius: var(--radius); display: block; }
.media-tabs__pane-heading { font-size: clamp(22px, 3vw, 32px); color: var(--navy); margin-bottom: 16px; }
.media-tabs__pane-body { font-size: 18px; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) {
    .media-tabs__layout { grid-template-columns: 1fr; gap: 32px; }
    .media-tabs__nav { position: static; flex-direction: column; gap: 2px; }
    .media-tabs__tab { padding: 10px 0; font-size: 17px; }
    .media-tabs__panes { gap: 56px; }
}

/* ── LATEST POSTS (dynamic) ── */
.latest-posts { padding: var(--section-padding) 0; }

/* ── DATACENTER MAP ── */
.dc-map { padding: var(--section-padding) 0; }
.dc-map__frame { position: relative; max-width: 720px; margin: 0 auto; }
.dc-map__img { width: 100%; height: auto; display: block; }
.dc-map__placeholder { padding: 120px 20px; text-align: center; color: var(--muted); border: 2px dashed var(--border); border-radius: var(--radius); }
.dc-map__pin { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dc-map__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 4px rgba(200,96,48,.2); }
.dc-map__dot::after { content: ''; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--terracotta); animation: dc-pulse 2s ease-out infinite; }
@keyframes dc-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dc-map__dot::after { animation: none; } }
.dc-map__label { font-family: var(--mono); font-size: 14px; letter-spacing: .04em; color: var(--navy); background: var(--bg); padding: 2px 6px; border-radius: 4px; white-space: nowrap; }

/* ── FAQ ── */
.faq { padding: var(--section-padding) 0; }
.faq__layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: stretch; }
@media (max-width: 1024px) { .faq__layout { grid-template-columns: 1fr; gap: 48px; } .faq__aside { display: block; } .faq__aside .section-header { position: static; } .faq__still { margin-top: 32px; } }
.faq__aside { display: flex; flex-direction: column; gap: 32px; }
.faq__aside-inner { flex: 1; }
.faq__aside .section-header { display: block; margin-bottom: 0; position: sticky; top: 120px; }
.faq__list { display: flex; flex-direction: column; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__question { list-style: none; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-size: 20px; font-weight: 500; color: var(--navy); transition: color .15s; }
.faq__question:hover { color: var(--terracotta); }
.faq__item[open] .faq__question { color: var(--terracotta); }
.faq__question::-webkit-details-marker { display: none; }
.faq__icon { width: 20px; height: 20px; flex-shrink: 0; position: relative; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; background: currentColor; border-radius: 2px; transition: transform 0.2s; }
.faq__icon::before { width: 2px; height: 12px; top: 4px; left: 9px; }
.faq__icon::after  { width: 12px; height: 2px; top: 9px; left: 4px; }
details[open] .faq__icon::before { transform: rotate(90deg); opacity: 0; }
/* Smooth open/close — the row collapses from 1fr to 0fr.
   display is set explicitly so <details> keeps the panel in layout. */
.faq__answer {
  display: grid; grid-template-rows: 0fr;
  opacity: 0;
  font-size: 16px; color: var(--muted); line-height: 1.7;
  content-visibility: visible;
  transition: grid-template-rows .38s cubic-bezier(.22,.9,.3,1),
              opacity .28s ease;
}
.faq__item[open] .faq__answer { grid-template-rows: 1fr; opacity: 1; }
.faq__item.is-closing .faq__answer,
.faq__item.is-opening .faq__answer { grid-template-rows: 0fr; opacity: 0; }
.faq__answer > * { overflow: hidden; min-height: 0; }
.faq__item[open] .faq__answer > * { padding-bottom: 20px; }
.faq__item.is-closing .faq__answer > *,
.faq__item.is-opening .faq__answer > * { padding-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .faq__answer { transition: none; }
}
.faq__still { margin-top: auto; background: var(--navy); color: #fff; padding: 32px; border-radius: var(--radius); }
.faq__still-heading { font-size: 24px; margin-bottom: 16px; }
.faq__still-body { font-size: 16px; color: rgba(255,255,255,0.65); margin-bottom: 32px; line-height: 1.6; }

/* ── BLOG ARCHIVE ── */
.blog-archive { min-height: 60vh; }
.archive-header { padding: 140px 0 40px; background: transparent; }
.archive-header__eyebrow { font-weight: 500; color: var(--terracotta-light); font-size: 14px; line-height: 20px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.archive-header__title { font-size: clamp(44px, 7vw, 84px); color: var(--navy); margin-bottom: 16px; }
.archive-header__intro { font-size: 18px; color: var(--muted); max-width: 600px; }
.blog-archive__body { padding: 80px 0 100px; }
.blog-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease; }
.blog-card:hover { transform: translateY(-3px); }
.blog-card__image-wrap { display: block; padding: 12px; }
.blog-card__image { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; border-radius: 8px; }
.blog-card__content { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card__meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.blog-card__category { color: var(--terracotta); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.blog-card__date, .blog-card__rt { font-size: 14px; color: var(--muted); }
.blog-card__title { font-size: 20px; color: var(--navy); line-height: 1.2; }
.blog-card__title a { color: inherit; }
.blog-card__title a:hover { color: var(--terracotta); }
.blog-card__excerpt { font-size: 16px; color: var(--muted); line-height: 1.6; }
.blog-card__author { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--muted); }
.blog-card__avatar { border-radius: 50%; }
/* Featured card */
.blog-card--featured { flex-direction: row; margin-bottom: 48px; }
@media (max-width: 900px) { .blog-card--featured { flex-direction: column; } }
.blog-card--featured .blog-card__image-wrap { flex: 0 0 55%; }
.blog-card--featured .blog-card__image { aspect-ratio: 4/3; height: 100%; }
.blog-card--featured .blog-card__content { padding: 20px 28px 24px; justify-content: center; }
.blog-card--featured .blog-card__title { font-size: clamp(24px, 3vw, 36px); }
/* Grid */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr)); gap: 24px; }
.blog-pagination { margin-top: 60px; display: flex; justify-content: center; }
.blog-pagination .page-numbers { display: inline-flex; align-items: center; gap: 8px; }
.blog-archive__empty { text-align: center; padding: 80px 0; color: var(--muted); }

/* ── SINGLE POST ── */
.single-post { padding-top: 0; }
.post-header { padding: 140px 0 60px; text-align: left; }
.post-header__meta { display: flex; align-items: center; justify-content: flex-start; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.post-header__category { color: var(--terracotta); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.post-header__date, .post-header__rt { font-size: 13px; color: var(--muted); }
.post-header__title { font-size: clamp(32px, 5vw, 60px); color: var(--navy); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 40px; max-width: 20ch; }
.post-header__author { display: inline-flex; align-items: center; justify-content: flex-start; gap: 12px; text-align: left; }
.post-header__avatar { border-radius: 50%; }
.post-header__author-meta { display: flex; flex-direction: column; gap: 2px; }
.post-header__author-name { font-size: 16px; color: var(--navy); }
.post-featured-image__img { width: 100%; border-radius: var(--radius); max-height: 560px; object-fit: cover; }
.post-body { padding: 80px 0 100px; }
.container--narrow { max-width: 760px; margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
.post-content { font-size: 18px; line-height: 1.75; color: var(--navy); }
.post-content p { margin-bottom: 28px; }
.post-content h2 { font-size: clamp(22px, 3vw, 32px); margin: 60px 0 20px; }
.post-content h3 { font-size: clamp(18px, 2.5vw, 24px); margin: 48px 0 16px; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 28px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote { border-left: 3px solid var(--terracotta); padding: 4px 0 4px 24px; margin: 40px 0; font-size: 20px; color: var(--muted); font-style: italic; }
.post-content a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.post-content img { border-radius: var(--radius); margin: 40px 0; }
.post-content code { font-family: var(--mono); font-size: 0.9em; background: rgba(20,33,61,.06); padding: 2px 6px; border-radius: 4px; }
.post-content pre { background: var(--navy); color: #fff; padding: 28px; border-radius: var(--radius); overflow-x: auto; margin-bottom: 28px; }
.post-content pre code { background: none; padding: 0; font-size: 14px; }
.post-footer { margin-top: 60px; padding-top: 32px; border-top: 1px solid var(--border); }
.post-footer__tags { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.post-footer__tags a { color: var(--terracotta); }

/* Single post: two-column layout with sticky sidebar */
.post-layout { max-width: var(--maxw); margin: 0 auto; padding: 80px var(--gutter) 100px; }
.post-layout__grid { display: grid; grid-template-columns: minmax(0, 900px) 340px; gap: 72px; align-items: start; }
.post-main { min-width: 0; }
.post-main .post-content { font-size: 18px; line-height: 1.75; color: var(--navy); }
.post-content h2, .post-content h3 { scroll-margin-top: 110px; }
.post-sidebar { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 960px) {
    .post-layout__grid { grid-template-columns: 1fr; gap: 48px; }
    .post-sidebar { position: static; }
}

/* Author byline at the end of the article (plain text, no box) */
.post-author-note { margin-top: 32px; }
.post-author-note__name { font-size: 16px; font-weight: 500; color: var(--navy); margin-bottom: 8px; }
.post-author-note__bio { font-size: 15px; color: var(--muted); line-height: 1.6; max-width: 640px; }

/* Related posts section */
.related-posts { padding: 80px 0 100px; border-top: 1px solid var(--border); }

/* Sidebar cards (compact) */
.sidebar-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.sidebar-card__title { font-weight: 500; color: var(--terracotta-light); font-size: 13px; line-height: 18px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }

/* On this page (TOC) — small square markers like media tabs */
.post-toc__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.post-toc__link { display: flex; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.45; transition: color .15s; }
.post-toc__link::before { content: ''; flex: 0 0 auto; width: 9px; height: 9px; margin-top: 5px; border-radius: 2px; background: var(--border); transition: background .15s; }
.post-toc__link:hover { color: var(--navy); }
.post-toc__link.is-active { color: var(--navy); }
.post-toc__link.is-active::before { background: var(--terracotta); }
.post-toc__link--h3 { padding-left: 17px; }

/* Newsletter card (compact) */
.newsletter-card { background: var(--navy); border-radius: var(--radius); padding: 20px; color: rgba(255,255,255,.8); }
.newsletter-card .success-message, .newsletter-card .error-message, .newsletter-card p { color: rgba(255,255,255,.8); }
.newsletter-card__eyebrow { font-weight: 500; color: var(--terracotta-light); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.newsletter-card__title { font-size: 20px; color: #fff; margin-bottom: 8px; }
.newsletter-card__text { font-size: 14.5px; color: rgba(255,255,255,.72); line-height: 1.6; margin-bottom: 16px; }
.newsletter-card__input { width: 100%; padding: 11px 13px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font-family: inherit; font-size: 14px; margin-bottom: 12px; }
.newsletter-card__input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-card__btn { width: 100%; padding: 11px; border: none; border-radius: var(--radius); background: var(--terracotta); color: #fff; font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .15s; }
.newsletter-card__consent { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 14px; font-size: 12.5px; color: rgba(255,255,255,.6); line-height: 1.5; }
.newsletter-card__consent input { margin-top: 3px; flex: 0 0 auto; accent-color: var(--terracotta); }
.newsletter-card__consent a { color: var(--terracotta-light); text-decoration: underline; text-underline-offset: 2px; }
.newsletter-card__btn:hover { background: var(--terracotta-light); }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION · HEADER · FOOTER
   Ported from the Edora Cloud navigation prototype.
   Uses the theme's existing :root tokens (--navy, --terracotta,
   --bg, --mono, --sans). --orange is aliased to --terracotta.
   ═══════════════════════════════════════════════════════════ */

:root { --orange: var(--terracotta); --header-h: 72px; }

/* ── HEADER (transparent, adapts to the section behind it) ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
/* Once scrolled, a light scrim keeps the nav legible over content */
.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: color-mix(in srgb, var(--navy) 8%, transparent);
}
.header.is-dark.is-scrolled {
  background: color-mix(in srgb, var(--navy) 82%, transparent);
  border-bottom-color: rgba(255,255,255,.12);
}

/* Colour inversion when a dark section sits behind the header */
.header .logo img, .nav-trigger, .btn-login, .lang-toggle, .burger span,
.btn-white, .header .chev {
  transition: color .3s ease, background-color .3s ease, border-color .3s ease, opacity .3s ease;
}
.header.is-dark .nav-trigger,
.header.is-dark .btn-login,
.header.is-dark .lang-toggle { color: rgba(255,255,255,.82); }
.header.is-dark .nav-trigger:hover,
.header.is-dark .nav-item.open .nav-trigger,
.header.is-dark .btn-login:hover,
.header.is-dark .lang-toggle:hover { color: #fff; }
.header.is-dark .burger span { background: rgba(255,255,255,.75); }
.header.is-dark .btn-white {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,.35);
}
.header.is-dark .btn-white:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); }
/* Swap the wordmark for its light counterpart */
.logo .logo__light { display: none; }
.header.is-dark .logo .logo__dark  { display: none; }
.header.is-dark .logo .logo__light { display: block; }
.header .row { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.bar { display: flex; align-items: center; justify-content: flex-start; gap: 92px; height: 72px; }

/* WordPress admin bar offset (logged-in only) */
body.admin-bar .header { top: 32px; }
body.admin-bar .mega   { top: calc(var(--header-h) + 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar .header { top: 46px; }
  body.admin-bar .mega   { top: calc(var(--header-h) + 46px); }
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 40px; width: auto; display: block; transition: opacity .3s ease; }

.nav { display: flex; align-items: center; height: 100%; gap: 0; list-style: none; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-trigger {
  display: flex; align-items: center; gap: 5px; height: 100%;
  padding: 0 16px; font-size: 16px; font-weight: 400; letter-spacing: -.01em;
  color: rgba(20,33,61,.72); cursor: pointer; transition: color .15s;
  background: none; border: 0; font-family: inherit; text-decoration: none;
}
.nav-trigger:hover, .nav-item.open .nav-trigger { color: var(--navy); }
.nav-trigger::first-letter { text-transform: uppercase; }
.dcard-title::first-letter { text-transform: uppercase; }
.nav-trigger .chev {
  width: 16px; height: 16px; transition: transform .2s, opacity .2s; opacity: .5;
}
.nav-item.open .nav-trigger .chev { transform: rotate(180deg); opacity: .7; }

.cta-group { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn-login { font-size: 16px; color: rgba(20,33,61,.6); transition: color .15s; letter-spacing: -.01em; text-decoration: none; }
.btn-login:hover { color: var(--navy); }
.btn-solid {
  font-size: 16px; font-weight: 400; letter-spacing: -.01em;
  padding: 9px 20px; background: var(--terracotta); color: #fff;
  border-radius: var(--radius); transition: filter .15s; text-decoration: none;
}
.btn-solid:hover { filter: brightness(1.1); }
.btn-white {
  font-size: 16px; font-weight: 400; letter-spacing: -.01em;
  padding: 9px 20px; background: #fff; color: var(--navy);
  border: 1px solid rgba(20,33,61,.14); border-radius: var(--radius);
  transition: border-color .15s, background .15s; text-decoration: none;
  display: inline-flex; align-items: center;
}
.btn-white:hover { border-color: rgba(20,33,61,.28); background: rgba(255,255,255,.85); }

/* Thin arrow on hover — header text buttons */
.btn-login, .btn-solid { display: inline-flex; align-items: center; }
.btn-solid::after {
  content: "→"; width: 0; opacity: 0; overflow: hidden; margin-left: 0;
  transition: width .16s ease, opacity .16s ease, margin-left .16s ease;
}
.btn-solid:hover::after { width: 1em; opacity: 1; margin-left: 7px; }

/* ── MEGA MENU ── */
.mega {
  position: fixed;
  top: var(--header-h); left: 0; right: 0; width: 100%;
  background: #F7F4EF;
  border-bottom: 1px solid rgba(20,33,61,.10);
  box-shadow: 0 24px 48px -12px rgba(20,33,61,.16);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .18s ease, visibility .16s;
  z-index: 190; overflow: hidden;
}
.nav-item.open .mega { opacity: 1; visibility: visible; transform: translateY(0); }

/* Blur the page behind an open dropdown. The header takes the same solid
   colour as the panel while open, so the two read as one surface and the
   scrim can't show through the transparent bar. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 180;
  background: rgba(20,33,61,.16);
  backdrop-filter: blur(7px) saturate(120%);
  -webkit-backdrop-filter: blur(7px) saturate(120%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, visibility .22s;
}
body:has(.nav-item.open)::after { opacity: 1; visibility: visible; }

.header:has(.nav-item.open) {
  background: #F7F4EF;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.header.is-dark:has(.nav-item.open) { background: var(--navy); }
@media (prefers-reduced-motion: reduce) { body::after { transition: none; } }

.mega-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px var(--gutter) 44px;
  display: block;
}

.mega-cols { display: grid; grid-template-columns: max-content max-content minmax(400px, 1fr); gap: 96px; align-content: start; align-items: stretch; }
.mega-col { max-width: 300px; display: flex; flex-direction: column; gap: 2px; }
.mega-col.feature { width: 100%; max-width: 620px; justify-self: end; padding: 0; display: block; }
.mega-col.feature > .feat { width: 100%; height: 100%; }

.d-section {
  font-family: var(--mono); font-size: 12px; letter-spacing: .05em;
  text-transform: uppercase; font-weight: 400; color: rgba(20,33,61,.42);
  margin-bottom: 8px;
}

.dcard {
  display: flex; flex-direction: column; gap: 1px; padding: 9px 0;
  transition: opacity .12s;
}
.dcard-title {
  font-size: 18px; font-weight: 400; letter-spacing: -.02em;
  color: var(--navy); line-height: 1.3; transition: color .12s;
}
.dcard:hover .dcard-title { color: var(--terracotta); }
.dcard-desc {
  font-size: 14.5px; color: rgba(20,33,61,.5); line-height: 1.5;
  letter-spacing: -.005em; margin-top: 2px;
}

/* feature column — image IS the card, text overlaid */
/* ── MEGA MENU FEATURE CARD ─────────────────────────────────────
   Sits flush with the right edge of the dropdown and matches the
   height of the link columns beside it. Never taller than them. */
.feat {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  padding: 22px;
  background:
    radial-gradient(130% 100% at 75% 10%, rgba(254,92,0,.28), transparent 55%),
    linear-gradient(155deg, #0E1B33 0%, #14213D 100%);
  background-color: #14213D;
}
/* Line texture rising from the bottom */
.feat::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(to right, currentColor 0 1px, transparent 1px 9px);
  color: rgba(255,255,255,.16);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 62%);
  mask-image: linear-gradient(to top, #000 0%, transparent 62%);
  pointer-events: none;
}

.feat-copy { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.feat-title { position: relative; font-size: 26px; font-weight: 400; letter-spacing: -.02em; line-height: 1.2; color: #fff; margin-bottom: 10px; }
.feat-desc { position: relative; font-size: 16px; color: rgba(255,255,255,.7); line-height: 1.55; margin-bottom: 20px; }
.feat-btn {
  position: relative; margin-top: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 400; padding: 13px 24px;
  background: var(--terracotta); color: #fff; border-radius: var(--radius);
  transition: filter .14s; width: fit-content; text-decoration: none;
}
.feat-btn:hover { filter: brightness(1.08); }
.feat-btn svg { width: 0; height: 15px; opacity: 0; overflow: hidden; margin-left: 0; transition: width .16s ease, opacity .16s ease, margin-left .16s ease; }
.feat-btn:hover svg { width: 15px; opacity: 1; margin-left: 7px; }

/* CTA card with an image: copy left, image filling the right */
.feat--has-img { flex-direction: row; align-items: center; gap: 22px; }
.feat--has-img > .feat-img {
  position: relative; flex: 0 0 46%; align-self: center;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; overflow: hidden;
}
.feat--has-img > .feat-img img {
  max-width: 100%; max-height: 300px;
  width: auto; height: auto; object-fit: contain; display: block;
}

/* Quote card */
.feat--quote { justify-content: flex-start; }
.feat-mark { position: relative; width: 34px; height: auto; fill: var(--terracotta-light); opacity: .5; margin-bottom: 16px; }
.feat-quote { position: relative; font-size: 21px; font-weight: 400; line-height: 1.4; letter-spacing: -.01em; color: #fff; margin-bottom: 18px; }
.feat--quote .feat-cite { position: relative; margin-top: auto; }
.feat--quote .feat-img { position: relative; width: 72px; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.feat--quote .feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feat-cite-name { display: block; font-size: 16px; font-weight: 500; color: #fff; font-style: normal; }
.feat-cite-role { display: block; font-size: 14px; color: rgba(255,255,255,.6); margin-top: 2px; }

/* Background variants */
.feat--terracotta {
  background:
    radial-gradient(130% 100% at 75% 10%, rgba(255,255,255,.16), transparent 55%),
    linear-gradient(155deg, #d4783a 0%, var(--terracotta) 100%);
  background-color: var(--terracotta);
}
.feat--terracotta::before { color: rgba(255,255,255,.22); }
.feat--terracotta .feat-mark { fill: #fff; opacity: .5; }
.feat--terracotta .feat-desc,
.feat--terracotta .feat-cite-role { color: rgba(255,255,255,.85); }
.feat--terracotta .feat-btn { background: #fff; color: var(--terracotta); }
.feat--terracotta .feat-btn:hover { background: rgba(255,255,255,.9); filter: none; }
.feat--sand, .feat--white { color: var(--navy); }
.feat--sand { background: linear-gradient(155deg, #fbf9f6 0%, var(--bg2) 100%); background-color: var(--bg2); }
.feat--white { background: #fff; background-color: #fff; border: 1px solid var(--border); }
.feat--sand::before, .feat--white::before { color: rgba(20,33,61,.16); }
.feat--sand .feat-title, .feat--white .feat-title,
.feat--sand .feat-quote, .feat--white .feat-quote,
.feat--sand .feat-cite-name, .feat--white .feat-cite-name { color: var(--navy); }
.feat--sand .feat-desc, .feat--white .feat-desc,
.feat--sand .feat-cite-role, .feat--white .feat-cite-role { color: var(--muted); }
.feat--sand .feat-mark, .feat--white .feat-mark { fill: var(--terracotta); opacity: .35; }

/* ── FOOTER (light, full-width) ── */
.footer { background: var(--navy); padding: 72px 0 32px; }
.footer .row { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.footer-main { display: grid; grid-template-columns: 320px 1fr; gap: 0; }

/* Nav columns (right) */
.footer-nav-wrap { border-left: 1px solid rgba(255,255,255,.1); padding-left: 56px; }
.footer-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding-bottom: 48px; }
.footer-row + .footer-row { padding-top: 48px; border-top: 1px solid rgba(255,255,255,.1); }
.fcol { padding: 0 32px 0 0; }
.fcol:last-child { padding-right: 0; }
.fcol h4 {
  font-size: 12px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 18px; font-family: var(--mono);
}
.fcol ul { list-style: none; }
.fcol li { padding: 0 0 10px; }
.fcol li a {
  font-size: 20px; font-weight: 400; letter-spacing: -.03em;
  color: rgba(255,255,255,.72); transition: color .12s;
  display: flex; align-items: center; justify-content: flex-start; text-decoration: none;
}
.fcol li a .arr { width: 0; opacity: 0; overflow: hidden; margin-left: 0; transform: translateX(-6px); transition: width .14s, opacity .14s, margin-left .14s, transform .14s; }
.fcol li a:hover { color: #fff; }
.fcol li a:hover .arr { width: 18px; opacity: 1; margin-left: 6px; transform: translateX(0); }
.fcol li a.hot { color: var(--terracotta-light); }

/* Brand panel (left) */
.footer-brand { padding-right: 56px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.footer-brand__logo { margin-bottom: 28px; }
.footer-brand__logo img { height: 52px; width: auto; display: block; }
.footer-brand__wordmark { font-weight: 600; color: #fff; font-size: 22px; letter-spacing: -.02em; }
.footer-brand__tagline { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 32px; }
.footer-brand__certs { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 40px; }
.footer-brand__certs img { height: 40px; width: auto; display: block; opacity: .9; }
.footer-brand__top { align-self: stretch; }
.footer-brand__ctas { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }

.footer-cta-solid {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 400; letter-spacing: -.02em; padding: 13px 22px;
  background: var(--terracotta); color: #fff; border-radius: var(--radius);
  transition: filter .15s; text-decoration: none;
}
.footer-cta-solid:hover { filter: brightness(1.1); }
.footer-cta-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border: 1px solid rgba(255,255,255,.22);
  background: transparent; color: rgba(255,255,255,.8); border-radius: var(--radius);
  transition: border-color .15s, color .15s, background .15s; text-decoration: none;
}
.footer-cta-ghost:hover { border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.06); }
.footer-cta-solid svg { width: 0; opacity: 0; overflow: hidden; margin-left: 0; transition: width .16s ease, opacity .16s ease, margin-left .16s ease; }
.footer-cta-solid:hover svg { width: 13px; opacity: 1; margin-left: 7px; }
.footer-cta-ghost::after {
  content: "\2192"; width: 0; opacity: 0; overflow: hidden; margin-left: 0;
  transition: width .16s ease, opacity .16s ease, margin-left .16s ease;
}
.footer-cta-ghost:hover::after { width: 1em; opacity: 1; margin-left: 7px; }

/* Bottom strip */
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-bottom__copy { font-size: 12.5px; color: rgba(255,255,255,.4); letter-spacing: -.01em; }
.footer-bottom__links { display: flex; flex-wrap: wrap; align-items: center; }
.footer-bottom__links a { font-size: 12.5px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .14s; }
.footer-bottom__links a:hover { color: #fff; }
.footer-bottom__links a:not(:last-child)::after { content: "\00b7"; margin: 0 10px; color: rgba(255,255,255,.25); }

/* language switcher — globe + chevron, glass dropdown */
.lang-switcher { position: relative; display: inline-flex; align-items: center; }
.lang-toggle { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; color: rgba(20,33,61,.6); padding: 6px; border-radius: var(--radius); transition: color .15s; }
.lang-toggle:hover { color: var(--navy); }
.lang-toggle__globe { width: 21px; height: 21px; }
.lang-toggle__chev { width: 12px; height: 12px; opacity: .55; transition: transform .18s ease; }
.lang-switcher.open .lang-toggle__chev { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 170px; background: rgba(247,244,239,.7); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius); box-shadow: 0 16px 40px -10px rgba(20,33,61,.22); padding: 6px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .14s ease, transform .14s ease, visibility .14s; z-index: 210; }
.lang-switcher.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu__item a { display: block; padding: 9px 12px; border-radius: 5px; font-size: 16px; color: rgba(20,33,61,.72); text-decoration: none; transition: background .12s, color .12s; }
.lang-menu__item a:hover { background: rgba(20,33,61,.06); color: var(--navy); }
.lang-menu__item.is-current a { color: var(--navy); font-weight: 500; }


/* mobile */
.burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { display: block; width: 20px; height: 1.5px; background: rgba(20,33,61,.6); border-radius: 2px; }
@media (max-width: 1024px) {
  .nav, .cta-group .btn-login { display: none; }
  .burger { display: flex; }
  .mega-inner { padding: 32px 24px; }
  .mega-cols { grid-template-columns: 1fr; gap: 40px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { padding-right: 0; margin-bottom: 40px; }
  .footer-nav-wrap { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.1); padding-top: 40px; }
  .footer-row { grid-template-columns: 1fr 1fr; gap: 32px; }
  .fcol { padding: 0 24px 0 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .footer-row { grid-template-columns: 1fr; }
}

/* ── FOOTER NAV (menu-driven columns) ── */
.footer-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 0; }
@media (max-width: 1024px) { .footer-nav { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px)  { .footer-nav { grid-template-columns: 1fr; } }

/* ============================================================
   RESPONSIVE REFINEMENTS
   ============================================================ */

/* Feature: image always above text when stacked */
@media (max-width: 900px) {
  .feature__content-wrap { order: 2; }
  .feature__image-wrap { order: 1; }
}

/* Header → hamburger drawer on tablet/mobile */
.mobile-menu { display: none; }
@media (max-width: 1024px) {
  .nav { display: none; }
  .cta-group .btn-white, .cta-group .btn-solid, .cta-group .btn-login { display: none; }
  .burger { display: flex; }
  .burger span { transition: transform .2s, opacity .2s; }
  .burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .mobile-menu { display: block; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; background: var(--bg); z-index: 190; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  body.admin-bar .mobile-menu { top: calc(var(--header-h) + 46px); }
  .mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
  body.menu-open { overflow: hidden; width: 100%; }
  .mobile-menu__inner { padding: 24px var(--gutter) 64px; display: flex; flex-direction: column; max-width: 100%; box-sizing: border-box; }
  /* Drill-down mobile nav (two levels) */
  .mnav { position: relative; max-width: 100%; overflow-x: hidden; }
  .mnav__panel { display: none; }
  .mnav__panel.is-active { display: block; max-width: 100%; animation: mnav-in .22s ease; }
  @keyframes mnav-in { from { transform: translateX(14px); opacity: 0; } to { transform: none; opacity: 1; } }
  .mnav__list { list-style: none; margin: 0; padding: 0; }
  .mnav__drill, .mnav__toplink {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; padding: 16px 0; font-size: 21px; color: var(--navy);
    background: none; border: 0; border-bottom: 1px solid var(--border);
    text-decoration: none; cursor: pointer; text-align: left; font-family: inherit; letter-spacing: -.01em;
  }
  .mnav__drill svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--muted); }
  .mnav__back {
    display: inline-flex; align-items: center; gap: 8px; background: none; border: 0;
    padding: 4px 0 20px; font-size: 15px; color: var(--muted); cursor: pointer; font-family: inherit;
  }
  .mnav__back svg { width: 15px; height: 15px; }
  .mnav__group-label {
    font-family: var(--mono); text-transform: uppercase; font-size: 12px; letter-spacing: .05em;
    color: var(--terracotta-light); margin: 22px 0 2px;
  }
  .mnav__link {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--border);
  }
  .mnav__link-title { font-size: 18px; color: var(--navy); overflow-wrap: anywhere; }
  .mnav__link-desc { font-size: 14px; color: var(--muted); line-height: 1.4; }
  .mnav__actions { display: flex; flex-direction: column; gap: 10px; margin: 32px 0 24px; }
  .mnav__actions .btn-solid, .mnav__actions .btn-white { width: 100%; justify-content: center; }
  .mnav__lang { display: flex; gap: 22px; }
  .mnav__lang-item { font-size: 16px; color: var(--muted); text-decoration: none; }
  .mnav__lang-item.is-current { color: var(--navy); font-weight: 500; }
}

/* General mobile refinements */
@media (max-width: 768px) {
  :root { --gutter: 16px; }

  h1 { font-size: 42px; line-height: 1.05; }
  h2 { font-size: 32px; line-height: 1.12; }

  .section-header { margin-bottom: 28px; }
  .section-header__heading { font-size: 42px; line-height: 1.1; }

  .card { padding: 24px; }

  .tl-item__title { font-size: 22px; }
  .tl-item__year { font-size: 16px; }
  .tl-item__desc { font-size: 16px; }

  .t-card__body { padding: 24px; }

  .faq__still { display: none; }

  /* Contact: stack, form below the text */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-info { order: 1; }
  .contact-form-wrap { order: 2; padding: 24px; }
  .contact-info { display: block; }
  .contact-card { width: auto; max-width: none; margin: 24px 0 0; padding: 8px; }
  .contact-card__image { flex: 0 0 clamp(96px, 30vw, 128px); }
  .contact-card__body { padding: 4px 2px 2px 14px; gap: 10px; }
  .contact-card__name { font-size: 16px; margin-bottom: 2px; }
  .contact-card__title { font-size: 13px; }
  .contact-card__foot { margin-top: 12px; gap: 10px; }
  .contact-card__meta li, .contact-card__meta a { font-size: 11px; letter-spacing: .03em; gap: 4px; }
  .contact-card__li svg { width: 15px; height: 15px; }

  .cta-band__inner { padding: 40px 22px; }
  .cta-band__title { line-height: 1.12; }

  /* Proof bar: single stacked column */
  .proof-bar__grid { grid-template-columns: 1fr; }
  .proof-bar__item:nth-child(even) { border-left: none; }
  .proof-bar__item:not(:first-child) { border-top: 1px solid var(--border); }

  /* Footer: logo full width, then nav, then buttons + certs at the bottom */
  .footer-main { display: flex; flex-direction: column; gap: 40px; }
  .footer-brand, .footer-brand__top { display: contents; }
  .footer-brand__logo { order: 1; width: 100%; margin-bottom: 0; }
  .footer-brand__logo img { height: 44px; }
  .footer-nav-wrap { order: 2; border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.1); padding-top: 32px; }
  .footer-brand__ctas { order: 3; }
  .footer-brand__certs { order: 4; margin-top: 0; }
}


/* Mobile text size + equal-width buttons + link-buttons */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .section-header__intro, .feature__text, .card__desc, .tcg__body, .tl-item__desc,
  .hl-card__desc, .step-card__desc, .bento__card-desc, .media-tabs__pane-body,
  .prose-section__content, .cta-band__subline { font-size: 15px; }

  /* CTA groups: stacked, full/equal width buttons */
  .hero__actions, .cta-band__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__actions { max-width: 300px; margin-left: auto; margin-right: auto; }
  .hero__actions .btn, .cta-band__actions .btn { width: 100%; justify-content: center; }

  /* Section & feature links become full-width orange buttons, placed BELOW the content */
  .container:has(> .section-header) { display: flex; flex-direction: column; }
  .container > .section-header { display: contents; }
  .container > .section-header .section-header__main { margin-bottom: 28px; }
  .container > .section-header .section-header__link { order: 99; margin-top: 32px; }
  .section-header__link, .feature__link {
    display: inline-flex; justify-content: center; align-items: center;
    width: 100%; padding: 13px 22px; margin-bottom: 0;
    background: var(--terracotta); color: #fff;
    border: 0; border-radius: var(--radius);
  }
  .section-header__link:hover, .feature__link:hover { filter: brightness(1.06); color: #fff; }
}

/* ============================================================
   WAVEFORM — campaign graphic (vertical lines), bottom of blocks
   ============================================================ */
.waveform {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
    pointer-events: none; overflow: hidden;
    height: clamp(70px, 9vw, 130px);
    display: flex; align-items: flex-end; justify-content: space-between;
}
.waveform__bar {
    display: block;
    flex: 0 0 auto;
    width: 1.5px;
    background: currentColor;
    transform-origin: 50% 100%;
}
/* Bars start hidden only once JS has taken over (fail-safe if JS never runs) */
.waveform.is-armed .waveform__bar { transform: scaleY(0); }
.waveform--navy  { color: color-mix(in srgb, var(--navy) 34%, transparent); }
.waveform--light { color: color-mix(in srgb, #fff 26%, transparent); }
/* On dark backgrounds the navy variant would vanish — flip it to light.
   .section-bg--navy covers every block placed in a navy section (hero,
   steps, card-grid, testimonials, and anything added later). */
.section-bg--navy .waveform--navy,
.hero--has-bg .waveform--navy,
.t-card--navy .waveform--navy { color: color-mix(in srgb, #fff 26%, transparent); }

/* Entrance: bars grow up, staggered left → right */
.waveform.is-in .waveform__bar {
    animation: waveform-rise .55s cubic-bezier(.22,.9,.3,1) both;
    animation-delay: calc(var(--i) * 6ms);
}
@keyframes waveform-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
    .waveform__bar { transform: scaleY(1); }
    .waveform.is-in .waveform__bar { animation: none; }
}

/* Host blocks: stacking context + keep content above the graphic */
.hero, .cta-band__inner, .t-card { position: relative; }
.hero > .container, .cta-band__inner > *:not(.waveform) { position: relative; z-index: 1; }
.hero--has-waveform { padding-bottom: clamp(80px, 10vw, 150px); }
.cta-band__inner--has-waveform { padding-bottom: clamp(90px, 11vw, 160px); }
.t-card--has-waveform .t-card__body { padding-bottom: 96px; }
.t-card__body > .waveform { height: 76px; }
/* Full-width waveform along the bottom of a section, behind its content */
.has-section-waveform { position: relative; padding-bottom: clamp(90px, 11vw, 170px); }
.has-section-waveform > .container { position: relative; z-index: 1; }
.has-section-waveform > .waveform { height: clamp(140px, 17vw, 250px); z-index: 0; }
@media (max-width: 768px) { .waveform__bar { width: 1px; } }

/* ============================================================
   ENTRANCE ANIMATIONS
   Directional, text-led. Elements are only hidden once JS arms
   them (.reveal-ready), so content survives a JS failure.
   ============================================================ */
.reveal-ready [data-reveal] { opacity: 0; }
.reveal-ready [data-reveal="up"]    { transform: translateY(20px); }
.reveal-ready [data-reveal="rise"]  { transform: translateY(52px); }
.reveal-ready [data-reveal="right"] { transform: translateX(44px); }
.reveal-ready [data-reveal="left"]  { transform: translateX(-44px); }
.reveal-ready [data-reveal="media"] { transform: translateY(26px) scale(.982); }
.reveal-ready [data-reveal="zoom"]  { transform: translateY(34px) scale(1.06); transform-origin: 50% 100%; }

.reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition: opacity .95s cubic-bezier(.2,.75,.25,1),
                transform 1.05s cubic-bezier(.2,.75,.25,1);
    transition-delay: calc(var(--d, 0) * 95ms);
}
.reveal-ready [data-reveal="zoom"].is-visible {
    transition: opacity 1.05s cubic-bezier(.2,.75,.25,1),
                transform 1.25s cubic-bezier(.18,.72,.24,1);
}

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

/* ============================================================
   ADAPTIVE HEADER — dark-section overrides
   Kept last in the file so they win over the mobile media
   queries and the later-declared burger / lang-switcher rules.
   ============================================================ */
.header.is-dark .logo .logo__dark { display: none; }
.header.is-dark .logo .logo__light { display: block; }
.header.is-dark .nav .nav-trigger,
.header.is-dark .cta-group .btn-login,
.header.is-dark .cta-group .lang-toggle { color: rgba(255,255,255,.85); }
.header.is-dark .nav .nav-trigger:hover,
.header.is-dark .nav .nav-item.open .nav-trigger,
.header.is-dark .cta-group .btn-login:hover,
.header.is-dark .cta-group .lang-toggle:hover { color: #fff; }
.header.is-dark .lang-toggle__globe,
.header.is-dark .lang-toggle__chev { color: inherit; }
.header.is-dark .cta-group .burger span { background: rgba(255,255,255,.85); }
.header.is-dark .cta-group .btn-white {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.4);
}
.header.is-dark .cta-group .btn-white:hover {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6);
}

/* ============================================================
   MOBILE TYPE SCALE & LAYOUT
   One consistent scale so every section reads the same way.
   Kept last so it settles the cascade.
   ============================================================ */
@media (max-width: 768px) {

  /* ── Type scale ──
     display 40 · section heading 34 · block title 20 · body 15 · label 13 */
  h1, .hero__title { font-size: 40px; line-height: 1.06; }
  h2 { font-size: 34px; line-height: 1.12; }
  .section-header__heading,
  .cta-band__title { font-size: 34px; line-height: 1.12; }
  .hero__subline { font-size: 16px; margin-bottom: 32px; }

  .card__title, .step-card__title, .hl-card__title, .tcg__title,
  .tl-item__title, .media-tabs__pane-heading, .bento__card-title,
  .blog-card__title, .faq__question, .team-card__name { font-size: 20px; line-height: 1.25; }
  .bento__card--large .bento__card-title { font-size: 20px; }

  .card__desc, .step-card__desc, .hl-card__desc, .tcg__body, .tl-item__desc,
  .media-tabs__pane-body, .bento__card-desc, .bento__card--large .bento__card-desc,
  .blog-card__excerpt, .faq__answer, .section-header__intro, .feature__text,
  .prose-section__content, .cta-band__subline, .hl-card__bullet { font-size: 15px; line-height: 1.6; }

  .section-header__eyebrow, .card-grid__eyebrow, .hl-card__eyebrow,
  .compliance-strip__eyebrow, .archive-header__eyebrow,
  .text-mono, .cta-band__badge { font-size: 13px; }

  .media-tabs__tab { font-size: 16px; }
  .tl-item__year { font-size: 15px; }

  /* ── Hero sits closer to the header ── */
  .hero { padding: calc(var(--header-h) + 28px) 0 56px; }
  .hero__grid { gap: 36px; }

  /* ── Section header spacing ── */
  .section-header { margin-bottom: 24px; }

  /* ── Cards: tighter padding ── */
  .card { padding: 20px; }
  .card--image .card__body { padding: 20px; }
  .step-card__body, .hl-card__body { padding: 20px; }
  .bento__card-inner,
  .bento__card--large .bento__card-inner { padding: 20px; }

  /* ── Bento: same layout as desktop, just tighter padding ── */
  .bento__card--large .bento__card-image { padding: 0 20px 20px; }
  .bento__card--large .bento__card-link { font-size: 15px; }

  /* ── CTA band ── */
  .cta-band__inner { padding: 36px 20px; }

  /* ── Testimonials ── */
  .t-card__body { padding: 20px; }
  .t-card__mark { top: 20px; left: 20px; width: 34px; }
  .t-card__quote { margin-top: 40px; }
  .t-card__quote p { font-size: 21px; line-height: 1.4; }
  .t-card__name { font-size: 16px; }
  .t-card__role { font-size: 14px; }
  .t-card__body > .waveform { display: none; }
  .t-card--has-waveform .t-card__body { padding-bottom: 20px; }

  /* ── FAQ: the heading stays with you while the list scrolls ── */
  .faq__layout { display: block; }
  .faq__aside { display: block; margin-bottom: 28px; }
  .faq__aside-inner { position: sticky; top: calc(var(--header-h) + 12px); z-index: 5; }
  .faq__aside-inner .section-header { margin-bottom: 0; }
  .faq__list { margin-top: 8px; }
  .faq__question { padding: 16px 0; }

  /* ── Sticky highlights: nothing sticks ── */
  .sticky-hl__sidebar, .sticky-hl__sidebar .section-header { position: static; top: auto; }

  /* ── Card grid: always a single column ── */
  .card-grid__inner { grid-template-columns: 1fr; }
  .card-grid__inner > .card { grid-column: auto; }

  /* ── Waveform: fewer lines, allowed to sit behind content ── */
  .waveform__bar:nth-child(even) { display: none; }
  .has-section-waveform { padding-bottom: clamp(56px, 12vw, 90px); }
  .has-section-waveform > .waveform { height: clamp(90px, 24vw, 140px); }
}

/* ============================================================
   DROPDOWNS FOLLOW THE HEADER
   When the header is over a dark section, the mega menu and the
   mobile drawer switch to the same dark treatment.
   ============================================================ */
.mega, .mobile-menu { transition: background-color .3s ease, border-color .3s ease; }

/* Desktop mega menu */
.header.is-dark .mega {
  background: var(--navy);
  border-bottom-color: rgba(255,255,255,.12);
}
.header.is-dark .d-section { color: rgba(255,255,255,.45); }
.header.is-dark .dcard-title { color: #fff; }
.header.is-dark .dcard-desc { color: rgba(255,255,255,.55); }
.header.is-dark .dcard:hover { background: transparent; }
.header.is-dark .dcard:hover .dcard-title { color: var(--terracotta-light); }
/* On a dark mega menu the navy card would disappear into the panel, so it
   lifts slightly. The explicit background variants keep their own colour. */
.header.is-dark .feat--navy,
.header.is-dark .feat:not([class*="feat--"]) {
  background: linear-gradient(155deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,.05) 100%);
  border: 1px solid rgba(255,255,255,.1);
}
.header.is-dark .feat--sand,
.header.is-dark .feat--white { border-color: transparent; }

/* Language dropdown */
.header.is-dark .lang-menu {
  background: color-mix(in srgb, var(--navy) 82%, transparent);
  border-color: rgba(255,255,255,.16);
}
.header.is-dark .lang-menu__item a { color: rgba(255,255,255,.75); }
.header.is-dark .lang-menu__item a:hover { background: rgba(255,255,255,.08); color: #fff; }
.header.is-dark .lang-menu__item.is-current a { color: #fff; }

/* Mobile drawer (lives outside .header, so it follows the root class) */
.header-dark .mobile-menu { background: var(--navy); }
.header-dark .mnav__drill,
.header-dark .mnav__toplink { color: #fff; border-bottom-color: rgba(255,255,255,.14); }
.header-dark .mnav__drill svg { color: rgba(255,255,255,.5); }
.header-dark .mnav__back { color: rgba(255,255,255,.6); }
.header-dark .mnav__link { border-bottom-color: rgba(255,255,255,.14); }
.header-dark .mnav__link-title { color: #fff; }
.header-dark .mnav__link-desc { color: rgba(255,255,255,.55); }
.header-dark .mnav__lang-item { color: rgba(255,255,255,.6); }
.header-dark .mnav__lang-item.is-current { color: #fff; }
.header-dark .mnav__actions .btn-white {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.4);
}