/* ===================================================================
   Mimir IT Consultation Services — global styles
   ================================================================ */

/* ----- self-hosted fonts -----
   Previously three render-blocking requests to fonts.googleapis.com /
   fonts.gstatic.com sat on the critical path: first paint waited on DNS + TLS
   + HTTP to a third-party origin, then a second round trip for the files.
   preconnect hinted at it but could not remove the round trips.

   Google serves both families as VARIABLE fonts, so the 6 weights the site
   asked for were 6 references to 2 files. Declared here as weight ranges, which
   is why 400/500/600/700 all resolve from one 48KB file. Playfair 800 was
   requested but is used nowhere in this stylesheet, so it is not shipped.

   Also removes a third-party request for EU visitors. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/Inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/Inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/PlayfairDisplay-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/PlayfairDisplay-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0a1426;
  --bg-deep: #060c1a;
  --bg-alt: #0d182d;
  --surface: #131e36;
  --surface-2: #16223d;
  --border: rgba(201, 169, 97, 0.18);
  --border-soft: rgba(255, 255, 255, 0.06);
  --gold: #c9a961;
  --gold-soft: #d9bf85;
  --gold-deep: #a98c4a;
  --navy: #2d4663;
  --text: #f6f4ee;
  --text-soft: #cdd4e3;
  --text-dim: #8a96b3;
  --danger: #c46b6b;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 40px rgba(0,0,0,0.35);
  --shadow-card-hover: 0 1px 0 rgba(255,255,255,0.07) inset, 0 20px 60px rgba(0,0,0,0.55);

  --container: 1200px;
  --section-py: 96px;

  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-soft);
  background: var(--bg-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

/* ----- background layers ----- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 0%, #14223e 0%, #0a1426 35%, var(--bg-deep) 75%);
}
.bg-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,169,97,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,97,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  opacity: 0.6;
}
.bg-glow {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
  pointer-events: none;
}
.bg-glow--gold {
  width: 700px; height: 700px;
  top: -200px; left: -150px;
  background: radial-gradient(circle, #c9a961 0%, transparent 70%);
}
.bg-glow--blue {
  width: 800px; height: 800px;
  top: 30%; right: -250px;
  background: radial-gradient(circle, #2d4663 0%, transparent 70%);
  opacity: 0.35;
}

/* ----- layout ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: var(--section-py) 0;
  position: relative;
}
.section--alt {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015) 50%, transparent);
}
.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.section__sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0 auto;
  max-width: 640px;
}
.gold { color: var(--gold); }

/* ----- nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 20, 38, 0.6);
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(6, 12, 26, 0.85);
  border-bottom-color: rgba(201,169,97,0.2);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 96px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand__mark {
  height: 72px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 14px rgba(201,169,97,0.3));
}
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 8px;
}

/* Hamburger. Hidden above 800px, where the links show inline. */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 8px;
  cursor: pointer;
}
.nav__toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
}
.nav__links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--gold);
  transition: right 0.25s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { right: 0; }

@media (max-width: 800px) {
  .nav__inner { height: 76px; }
  .brand__mark { height: 52px; }

  /* The links used to be display:none here with no replacement, so all four
     primary nav items vanished on every phone -- on the product pages that
     left the logo and Contact as the only header links. */
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 0;
    background: rgba(10, 20, 38, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-soft);
  }
  .nav__links a:last-child { border-bottom: 0; }
}

/* ----- buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}
.btn .ic { width: 18px; height: 18px; }
.btn--sm { padding: 9px 16px; font-size: 0.88rem; }
.btn--lg { padding: 16px 28px; font-size: 1rem; }

.btn--gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #1a1408;
  box-shadow: 0 8px 30px rgba(201,169,97,0.25), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(201,169,97,0.45), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  /* WCAG 1.4.11 wants 3:1 for a control boundary; 0.18 alpha was far under,
     leaving the button edge effectively invisible. */
  border-color: rgba(255,255,255,0.35);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  transform: translateY(-2px);
}

/* 404 action row. Was an inline style attribute, which the CSP's
   style-src 'self' blocks -- moved into the stylesheet rather than weakening
   the policy with 'unsafe-inline'. */
.err__actions { margin-top: 32px; }

.footer__address {
  font-style: normal;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 0 10px;
}
.footer__hours {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 12px 0 0;
}

/* Skip link: the sticky header puts 6 links (9 with a breadcrumb) ahead of
   the content on every page. Off-screen until focused. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--gold);
  color: #1a1408;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

/* ----- keyboard focus -----
   Every interactive element here has a custom :hover and text-decoration:none,
   but nothing defined a focus style, so keyboard users fell back to the
   browser default ring — close to invisible on #060c1a and on the gold
   gradient buttons. --gold-soft measures 10.92:1 against --bg-deep. */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----- icons -----
   Bare element selector, applying to every <svg> on the site. That is correct
   for the current set -- all 100+ inline icons are stroke-only line art -- but
   it means any FILLED svg added later (a partner logo, an illustration) renders
   as an invisible outline with no obvious cause, from a rule 1,200 lines away.
   Add class="svg-filled" to opt out rather than fighting the specificity. */
svg { stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg.svg-filled { stroke: none; fill: currentColor; }
.ic--right { transition: transform 0.2s ease; }
.btn:hover .ic--right { transform: translateX(3px); }

/* ----- hero ----- */
.hero {
  padding: 100px 0 120px;
  text-align: center;
  position: relative;
}
.hero__inner { max-width: 880px; margin: 0 auto; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 22px;
}
/* Transform-only, deliberately: this is the LCP element and an opacity:0
   start would stop Chrome counting it until the 0.9s animation finished. */
.hero__title .line {
  display: block;
  transform: translateY(20px);
  animation: line-in 0.9s cubic-bezier(.16,1,.3,1) forwards;
}
.hero__title .line:nth-child(2) { animation-delay: 0.15s; }
@keyframes line-in {
  to { transform: translateY(0); }
}
.hero__eyebrow {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0 0 18px;
  font-style: italic;
}
.hero__lead {
  color: var(--text-soft);
  font-size: 1.08rem;
  max-width: 640px;
  margin: 0 auto 38px;
}
.hero__cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ----- grid + cards ----- */
.grid {
  display: grid;
  gap: 22px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.align-start { align-items: start; }

@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 660px) {
  /* Each section contributed 192px of pure padding -- roughly 29% of a
     375x667 viewport -- so a mobile visitor scrolled ~1,500px of empty space
     before reaching the contact CTA. */
  :root { --section-py: 56px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(201,169,97,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,169,97,0.35);
  box-shadow: var(--shadow-card-hover);
}
.card:hover::before { opacity: 1; }
.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(45, 70, 99, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 18px;
  border: 1px solid rgba(201,169,97,0.18);
}
.card__icon svg { width: 22px; height: 22px; }
.card__title {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text);
  font-size: 1.05rem;
  margin: 0 0 10px;
  line-height: 1.3;
}
.card__body {
  color: var(--text-dim);
  margin: 0;
  font-size: 0.94rem;
}

/* ----- timeline ----- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--gold), var(--border), transparent);
  opacity: 0.5;
}
.timeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
  position: relative;
  z-index: 1;
}
.timeline__dot {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.timeline__dot svg { width: 28px; height: 28px; }
.timeline__step:hover .timeline__dot {
  transform: scale(1.08);
  border-color: var(--gold);
}
.timeline__step h3 {
  color: var(--text);
  font-size: 1.05rem;
  margin: 0 0 6px;
}
.timeline__step p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
  max-width: 180px;
}

@media (max-width: 900px) {
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .timeline::before { display: none; }
}
@media (max-width: 520px) {
  .timeline { grid-template-columns: 1fr; }
}

.pill {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(45,70,99,0.4);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-style: italic;
}

/* ----- panel (why mimir) ----- */
.panel {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 36px 38px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}
.panel__row {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.panel__icon {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(45,70,99,0.45);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.panel__icon svg { width: 22px; height: 22px; }
.panel__row h3 {
  color: var(--text);
  font-size: 1.1rem;
  margin: 4px 0 8px;
}
.panel__row p {
  margin: 0;
  color: var(--text-dim);
}
.panel__divider {
  height: 1px;
  background: var(--border-soft);
  margin: 26px 0;
}

@media (max-width: 660px) {
  .panel { padding: 28px 22px; }
}

/* ----- lists (who it's for) ----- */
.col__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}
.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.list li:hover {
  transform: translateX(4px);
  border-color: rgba(201,169,97,0.3);
}
.list--neg li:hover { border-color: rgba(196,107,107,0.3); }
.list__icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.list__icon svg { width: 18px; height: 18px; }
.ic-bg {
  background: rgba(45,70,99,0.5);
  color: var(--gold);
  border: 1px solid rgba(201,169,97,0.15);
}
.ic-bg--neg {
  background: rgba(196,107,107,0.15);
  color: var(--danger);
  border: 1px solid rgba(196,107,107,0.25);
}
.quote {
  margin: 22px 0 0;
  padding: 16px 20px;
  background: rgba(45,70,99,0.3);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  color: var(--text-soft);
  font-style: italic;
  font-size: 0.95rem;
}

/* ----- about ----- */
.about-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
}
.about-card__badge {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a1408;
  box-shadow: 0 8px 24px rgba(201,169,97,0.4);
}
.about-card__badge svg { width: 26px; height: 26px; stroke-width: 2; }
.about-card__lead {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin: 12px auto 28px;
  max-width: 640px;
}
.rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 24px;
  opacity: 0.7;
}
.about-card__quote {
  color: var(--text);
  font-weight: 600;
  font-style: italic;
  margin: 0 0 36px;
  font-size: 1rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat {
  background: rgba(13,24,45,0.7);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 22px 16px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.stat:hover {
  border-color: rgba(201,169,97,0.3);
  transform: translateY(-3px);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 4px;
}
.stat__label {
  display: block;
  color: var(--text-dim);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

@media (max-width: 660px) {
  .about-card { padding: 38px 22px; }
  .stats { grid-template-columns: 1fr; }
}

/* ----- cta ----- */
.cta { padding: 120px 0 130px; text-align: center; }
.cta__inner { max-width: 760px; margin: 0 auto; }
.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.cta__title .line { display: block; }
.cta__sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0 0 32px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(45,70,99,0.5);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.85rem;
}
.badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.contact-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 18px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,169,97,0.4);
}
.contact-card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(45,70,99,0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  border: 1px solid rgba(201,169,97,0.18);
}
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card__label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 4px;
}
.contact-card__value {
  color: var(--text);
  font-weight: 500;
}

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

.contact-address {
  margin: 36px auto 0;
  max-width: 640px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  background: rgba(10,20,38,0.55);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-style: normal;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: left;
}
.contact-address__icon {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(45,70,99,0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  border: 1px solid rgba(201,169,97,0.18);
}
.contact-address__icon svg { width: 18px; height: 18px; }
.contact-address__lines { display: block; }
.contact-address__lines [itemprop] { color: var(--text); }
.contact-address__note {
  display: block;
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ----- footer ----- */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 28px;
  background: rgba(6,12,26,0.6);
  margin-top: 40px;
}
.footer__inner {
  display: grid;
  /* 5 columns: brand, contact, services, find-us, legal. The NAP block is on
     every page (partial NAP on 4 of 5 indexable pages was diluting the local-
     pack signal) and the services list joined it so the six service pages are
     linked site-wide, not only from the homepage section. */
  grid-template-columns: 1.2fr 0.95fr 1fr 1.1fr 1.05fr;
  gap: 40px;
  align-items: start;
}
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__logo { width: 200px; max-width: 100%; height: auto; opacity: 0.95; }
.footer__tag {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0;
  font-style: italic;
}
/* Was an <h4> directly after an <h2>, a heading-level skip on every page
   (two levels on 404.html). Now an <h2> styled identically. */
.footer__col .footer__heading {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 14px;
}
.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__col a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.footer__col a:hover { color: var(--gold); }
.footer__col--right {
  text-align: right;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.footer__col--right p { margin: 0 0 6px; }
.footer__line { color: var(--text-dim); font-style: italic; }
.footer__powered {
  text-align: center;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer__powered a { color: var(--gold-soft); text-decoration: none; }
.footer__powered a:hover { text-decoration: underline; }

/* Five columns need an intermediate step -- going straight from 5 to 1 left
   the 800-1100px range with columns too narrow for "Microsoft 365 Migration"
   to sit on one line. */
@media (max-width: 1100px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
}
@media (max-width: 800px) {
  .footer__inner { grid-template-columns: 1fr; text-align: left; gap: 28px; }
  .footer__col--right { text-align: left; }
}

/* ----- scroll reveal -----
   The hidden state is scoped to html.js, a class set by an inline script in
   each page's <head>. If JavaScript is disabled, blocked, or throws before
   that line runs, the class is never added and every .reveal block renders
   normally. Previously .reveal was opacity:0 by default and only the deferred
   IntersectionObserver could undo it, so any failure in main.js rendered the
   whole site as a blank navy screen.

   The hero is deliberately NOT a .reveal — it holds the LCP element, and
   Chrome does not count an element at opacity:0 towards LCP. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Anchor targets must clear the sticky nav (96px, 76px under 800px) or the
   section heading lands behind it on every nav click. */
:target,
section[id],
main[id] { scroll-margin-top: 112px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  /* Smooth scrolling is a specific trigger for vestibular disorders, and the
     rest of this block already honours the preference. */
  html { scroll-behavior: auto !important; }
}

/* ===================================================================
   Product pages (/products/) — breadcrumbs, product hero, spec table,
   feature list and sibling-product switcher.
   ================================================================ */

/* ----- breadcrumbs ----- */
.crumbs {
  padding: 26px 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before {
  content: "/";
  color: rgba(255,255,255,0.22);
}
.crumbs a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current="page"] { color: var(--text-soft); }

/* ----- product hero ----- */
.prod-hero { padding: 48px 0 80px; }
.prod-hero__inner { max-width: 820px; }
.prod-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(201,169,97,0.07);
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.prod-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.18);
}
.prod-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 16px;
}
.prod-hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--gold);
  margin: 0 0 20px;
  line-height: 1.3;
}
.prod-hero__lead {
  color: var(--text-soft);
  font-size: 1.06rem;
  max-width: 660px;
  margin: 0 0 34px;
}
.prod-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ----- feature list (icon + heading + body rows) ----- */
.flist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}
.flist li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.015);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.flist li:hover {
  border-color: var(--border);
  background: rgba(201,169,97,0.04);
  transform: translateY(-2px);
}
.flist__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(201,169,97,0.16), rgba(45,70,99,0.3));
  border: 1px solid var(--border);
  color: var(--gold);
}
.flist__icon svg { width: 20px; height: 20px; }
.flist h3 {
  color: var(--text);
  font-size: 1rem;
  margin: 0 0 6px;
  font-weight: 600;
}
.flist p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.55;
}

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

/* ----- spec rows (architecture / tech stack) ----- */
.spec {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.spec__row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-soft);
}
.spec__row:last-child { border-bottom: 0; }
.spec__key {
  color: var(--gold-soft);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
}
.spec__val {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 700px) {
  .spec__row { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
}

/* ----- sibling product switcher ----- */
.prod-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.switch-card {
  display: block;
  padding: 26px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.switch-card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: var(--shadow-card-hover);
}
.switch-card__label {
  display: block;
  color: var(--text-dim);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.switch-card__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 8px;
}
.switch-card__name svg { width: 18px; height: 18px; color: var(--gold); }
.switch-card:hover .switch-card__name svg { transform: translateX(3px); }
.switch-card__desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 800px) {
  .prod-switch { grid-template-columns: 1fr; }
}

/* ----- card used as a link (products hub) ----- */
.card--link { text-decoration: none; display: block; }
.card--link .card__title { display: flex; align-items: center; gap: 10px; }
.card--link .card__title svg { width: 18px; height: 18px; color: var(--gold); transition: transform 0.2s ease; }
.card--link:hover .card__title svg { transform: translateX(4px); }
.card__meta {
  display: block;
  margin-top: 16px;
  color: var(--gold-soft);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ----- 404 ----- */
.err { padding: 120px 0; text-align: center; }
.err__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--gold);
  line-height: 1;
  margin: 0 0 12px;
}

/* ===================================================================
   CV / profile page (/johan-welthagen/) — unlisted résumé page.
   Reuses the global shell (nav, sections, cards, footer) and adds a
   profile hero, skill clusters, a vertical role timeline, and a
   print stylesheet so the page saves cleanly to PDF.
   ================================================================ */

/* ----- profile hero ----- */
.cv-hero { padding: 40px 0 72px; }
.cv-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}
.cv-hero__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 14px;
}
.cv-hero__name .gold { display: block; }
.cv-hero__role {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--gold);
  margin: 0 0 22px;
  line-height: 1.35;
}
.cv-hero__lead {
  color: var(--text-soft);
  font-size: 1.04rem;
  max-width: 640px;
  margin: 0 0 26px;
}
.cv-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* facts panel on the right of the hero */
.cv-facts {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-card);
  padding: 24px 26px;
}
.cv-facts dl { margin: 0; }
.cv-facts dt {
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.cv-facts dd {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.cv-facts dd:last-of-type { margin-bottom: 0; }
.cv-facts a { color: var(--gold-soft); text-decoration: none; }
.cv-facts a:hover { text-decoration: underline; }

/* ----- role chips under the name ----- */
.cv-roles {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 26px;
}
.cv-roles li {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(201,169,97,0.06);
  color: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ----- skill clusters ----- */
.cv-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.cv-group {
  padding: 24px 26px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.015);
}
.cv-group__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}
.cv-group__icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(201,169,97,0.16), rgba(45,70,99,0.3));
  border: 1px solid var(--border);
  color: var(--gold);
}
.cv-group__icon svg { width: 18px; height: 18px; }
.cv-group h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.tags li {
  padding: 5px 11px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--text-soft);
  font-size: 0.83rem;
  line-height: 1.4;
}

/* ----- experience timeline ----- */
.cv-exp {
  list-style: none;
  margin: 0;
  padding: 0 0 0 34px;
  position: relative;
  max-width: 940px;
}
.cv-exp::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(201,169,97,0.15));
}
.cv-job { position: relative; padding-bottom: 40px; }
.cv-job:last-child { padding-bottom: 0; }
.cv-job::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 7px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(201,169,97,0.12);
}
.cv-job--past::before {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(45,70,99,0.25);
}
.cv-job__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.25;
}
.cv-job__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.cv-job__org { color: var(--gold-soft); font-weight: 600; }
.cv-job__meta .sep { color: rgba(255,255,255,0.2); }
.cv-job__dates {
  padding: 3px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.cv-job__dates--now {
  border-color: var(--border);
  background: rgba(201,169,97,0.07);
  color: var(--gold-soft);
}
.cv-points { list-style: none; margin: 0; padding: 0; }
.cv-points > li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.cv-points > li:last-child { margin-bottom: 0; }
.cv-points > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--gold);
  opacity: 0.75;
}
.cv-points .cv-detail {
  display: block;
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ----- education / courses ----- */
.cv-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  align-items: start;
}
.cv-entry {
  padding: 22px 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  margin-bottom: 18px;
}
.cv-entry:last-child { margin-bottom: 0; }
.cv-entry__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 4px;
}
.cv-entry__name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--text);
  margin: 0;
}
.cv-entry__year {
  color: var(--gold-soft);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.cv-entry__org {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin: 0 0 14px;
}
.cv-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(201,169,97,0.07);
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.cv-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.18);
}

@media (max-width: 960px) {
  .cv-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .cv-groups, .cv-two { grid-template-columns: 1fr; }
}

/* ----- print: save the page as a clean PDF résumé ----- */
@media print {
  @page { margin: 14mm 12mm; }
  html, body {
    background: #fff !important;
    color: #16202f !important;
    font-size: 10.5pt;
  }
  .bg-grid, .bg-glow, .nav, .crumbs, .footer, .cv-hero__cta,
  .cv-noprint { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section, .cv-hero { padding: 0 0 14pt !important; }
  .section--alt { background: none !important; }
  .container { max-width: none; padding: 0; }
  .section__head { text-align: left; margin: 0 0 14pt; max-width: none; }
  .section__title, .cv-hero__name, .cv-job__title, .cv-entry__name, .cv-group h3 {
    color: #0a1426 !important;
  }
  .section__title { font-size: 15pt; border-bottom: 1px solid #c9a961; padding-bottom: 4pt; }
  .section__sub, .cv-points .cv-detail, .cv-entry__org, .cv-job__meta { color: #4a566e !important; }
  .gold, .cv-hero__role, .cv-job__org, .cv-entry__year { color: #8a6d28 !important; }
  .cv-hero__lead, .cv-points > li, .tags li, .cv-facts dd { color: #1f2b3f !important; }
  .cv-hero__inner { grid-template-columns: 1fr 220px; gap: 20pt; }
  .cv-facts, .cv-entry, .cv-group {
    background: none !important;
    box-shadow: none !important;
    border: 1px solid #d8dde6 !important;
    padding: 10pt 12pt;
  }
  .cv-groups, .cv-two { gap: 10pt; }
  .cv-roles li, .tags li, .cv-job__dates, .cv-status {
    border-color: #d8dde6 !important;
    background: #f6f7f9 !important;
    color: #4a566e !important;
  }
  .cv-exp::before { background: #c9a961 !important; }
  .cv-job::before { background: #fff !important; border-color: #c9a961 !important; box-shadow: none !important; }
  .cv-job, .cv-entry, .cv-group { break-inside: avoid; page-break-inside: avoid; }
  .cv-job { padding-bottom: 16pt; }
  a { color: inherit !important; text-decoration: none !important; }
}

/* ===================================================================
   Insights / blog (/insights/)
   =================================================================== */
.container--narrow { max-width: 760px; }

.post { padding: 0 0 var(--section-py); }
.post__head { padding: 56px 0 8px; }
.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.post__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 8px;
}

/* Article prose. Measure is capped by .container--narrow; these rules only
   set rhythm and hierarchy inside the body copy. */
.post__body { color: var(--text-soft); font-size: 1.05rem; line-height: 1.75; }
.post__body > p { margin: 0 0 22px; }
.post__body .lede {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 28px;
}
.post__body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  color: var(--text);
  margin: 44px 0 14px;
  line-height: 1.25;
}
.post__body h3 {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--gold-soft);
  margin: 30px 0 10px;
}
.post__body ul,
.post__body ol { margin: 0 0 22px; padding-left: 22px; }
.post__body li { margin: 0 0 10px; }
.post__body strong { color: var(--text); font-weight: 600; }
.post__body em { color: var(--text); }
.post__body a { color: var(--gold-soft); }
.post__body .note {
  border-left: 3px solid var(--gold);
  background: var(--surface-2);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 0 0 24px;
  font-size: 0.98rem;
}

.post__cta {
  margin: 48px 0 8px;
  padding: 30px 28px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  text-align: center;
}
.post__cta h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
  margin: 0 0 10px;
}
.post__cta p { color: var(--text-dim); margin: 0 0 20px; }

.grid--insights { grid-template-columns: 1fr; gap: 20px; }
.grid--insights .card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0 0 10px;
}
.grid--insights .post__meta { margin-bottom: 12px; }

@media (max-width: 660px) {
  .post__head { padding-top: 32px; }
  .post__cta { padding: 24px 18px; }
}

/* Table of contents. Rank Math's readability check looks for one, but the real
   reason is that a 1,600-word page needs jump links -- and the anchors give
   Google candidate sitelinks for the result. */
.toc {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 22px 26px;
  margin: 0 0 32px;
}
.toc__title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}
.toc__list { margin: 0; padding-left: 20px; color: var(--text-dim); }
.toc__list li { margin: 0 0 7px; }
.toc__list a { color: var(--text-soft); text-decoration: none; }
.toc__list a:hover { color: var(--gold-soft); text-decoration: underline; }

.post__figure { margin: 32px 0; }
.post__figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  display: block;
}
.post__figure figcaption {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 10px;
  text-align: center;
}
.post__body code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}
