/* ===================================================================
   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; }
}

/* ---------- Flagship: Professional Services Automation (homepage) ----------
   The one section deliberately louder than the rest: it sits directly under
   the hero and is the only panel with a gold border, so it reads as the main
   offering and the six-card grid below reads as the supporting disciplines. */
.flagship { padding-top: 0; }
.flagship__panel {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  padding: 52px 48px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(201,169,97,0.45);
  background:
    radial-gradient(circle at 0% 0%, rgba(201,169,97,0.12), transparent 55%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-card-hover);
}
.flagship__chip {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201,169,97,0.45);
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.flagship__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 18px;
}
.flagship__lead {
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 0 22px;
}
.flagship__points {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.flagship__points li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
}
.flagship__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.flagship__points strong { color: var(--text); }
.flagship__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.flagship__side { display: grid; gap: 16px; align-content: center; }
.flagship__item {
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 18px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: rgba(10, 20, 38, 0.45);
}
.flagship__item .card__icon { grid-row: span 2; margin-bottom: 0; }
.flagship__item h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 6px;
}
.flagship__item p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }
@media (max-width: 980px) {
  .flagship__panel { grid-template-columns: 1fr; gap: 36px; padding: 40px 32px; }
}
@media (max-width: 660px) {
  .flagship__panel { padding: 30px 22px; }
  .flagship__cta .btn { width: 100%; justify-content: center; }
}

/* ===================================================================
   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;
}

/* Editorial identity. Content and SEO remain in the existing static generators. */
:root{color-scheme:light dark;--bg:light-dark(#f8f6f0,#171b19);--bg-deep:var(--bg);--bg-alt:light-dark(#efede5,#1c221e);--surface:light-dark(#fffdf8,#212823);--surface-2:var(--surface);--border:light-dark(#b8aa86,#796a45);--border-soft:light-dark(#d8d9ce,#3d483f);--gold:light-dark(#80631f,#d5b76a);--gold-soft:var(--gold);--gold-deep:var(--gold);--text:light-dark(#252e28,#f1f0e7);--text-soft:light-dark(#48564b,#cbd3c9);--text-dim:light-dark(#616b61,#afbcae);--navy:light-dark(#365040,#99b6a0);--danger:light-dark(#97392e,#efaaa1);--action:light-dark(#263d31,#d5b76a);--action-text:light-dark(#fffdf7,#182019);--control-border:light-dark(#797f72,#7f8b7f);--radius:4px;--radius-sm:4px;--shadow-card:none;--shadow-card-hover:none;--section-py:74px}
html[data-theme=light]{color-scheme:light}html[data-theme=dark]{color-scheme:dark}
body{background:var(--bg);color:var(--text-soft);overflow-wrap:break-word}.bg-grid,.bg-glow{display:none}.nav,.nav.is-scrolled{background:var(--surface);border-color:var(--border-soft);backdrop-filter:none}.nav__inner{height:88px;gap:18px}.brand__mark{height:61px;filter:none}.nav__links{gap:20px;margin-right:0}.nav__links a{font-size:.82rem}.appearance{font:500 .78rem var(--font-sans);padding:9px 7px;background:var(--bg);color:var(--text);border:1px solid var(--control-border);border-radius:4px;min-height:42px;max-width:100%}.appearance:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.nav__toggle{border-color:var(--control-border)}
.btn{border-radius:3px;font-weight:500;font-size:.9rem;box-shadow:none;transition:background .15s ease,border-color .15s ease}.btn--gold{background:var(--action);color:var(--action-text);box-shadow:none}.btn--gold:hover{background:var(--action);box-shadow:none;transform:none;filter:brightness(1.08)}.btn--ghost{color:var(--text);border-color:var(--control-border)}.btn--ghost:hover{color:var(--gold);transform:none;background:var(--bg-alt)}
.hero{padding:66px 0 70px;text-align:left}.hero__inner{max-width:var(--container);display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:64px;align-items:center}.hero__title{font-weight:400;font-size:clamp(2.6rem,4.5vw,3.8rem);letter-spacing:-.045em;line-height:1.12;margin-bottom:24px}.hero__title .line{animation:none;transform:none}.hero__title .gold{font-style:italic}.hero__eyebrow{font-size:.9rem;line-height:1.7}.hero__lead{font-size:1rem;line-height:1.8;margin:0 0 25px}.hero__cta{justify-content:flex-start}.editorial-kicker{font-size:.69rem;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);font-weight:600;margin:0 0 22px}.editorial-brief{background:var(--surface);border:1px solid var(--border-soft);padding:34px;position:relative}.editorial-brief:before{content:'';position:absolute;top:-2px;left:34px;width:52px;height:3px;background:var(--gold)}.editorial-brief h2{font:400 1.85rem/1.25 var(--font-display);color:var(--text);margin:14px 0 28px}.editorial-brief ol{list-style:none;counter-reset:brief;padding:0;margin:0}.editorial-brief li{counter-increment:brief;display:grid;grid-template-columns:24px 1fr;gap:15px;padding:21px 0;border-top:1px solid var(--border-soft)}.editorial-brief li:before{content:'0' counter(brief);font-size:.72rem;color:var(--gold);padding-top:2px}.editorial-brief li:last-child{padding-bottom:0}.editorial-brief strong{color:var(--text);font-size:.95rem;font-weight:500}.editorial-brief p{font-size:.83rem;line-height:1.7;margin:7px 0 0;color:var(--text-dim)}
.section--alt{background:var(--bg-alt)}.section__head{text-align:left;max-width:none;margin:0 0 36px}.section__title{font-weight:400;font-size:clamp(1.9rem,3.2vw,2.7rem)}.section__sub{margin:0;max-width:760px;font-size:1rem}.card,.card:hover{background:var(--surface);border-color:var(--border-soft);box-shadow:none;transform:none}.card::before{display:none}.card:hover{border-color:var(--gold)}.card__title{font-family:var(--font-display);font-weight:500;font-size:1.25rem}.card__icon,.contact-card__icon,.contact-address__icon,.flist__icon,.cv-group__icon{background:var(--bg-alt);border-color:var(--border-soft)}.flagship__panel{background:var(--surface);border-color:var(--border);box-shadow:none;border-radius:4px}.flagship__chip{border:0;background:none;padding:0;color:var(--gold);letter-spacing:.15em}.flagship__title{font-weight:400}.flagship__item{background:var(--bg);border-color:var(--border-soft);border-radius:4px}.flagship__points strong{font-weight:600}
.panel,.principle,.contact-card,.contact-address,.listbox,.cta,.cta__inner,.about__stats,.stat,.cv-facts,.cv-entry,.cv-group,.toc,.post__cta{background:var(--surface);box-shadow:none;border-color:var(--border-soft)}.panel::before,.cta::before,.cta__inner::before{display:none}.contact-card:hover{background:var(--bg-alt);box-shadow:none;transform:none;border-color:var(--gold)}.contact-card__value{overflow-wrap:anywhere}.contact-card__icon{color:var(--gold)}.timeline__num,.timeline__step::before{background:var(--surface);border-color:var(--border)}.timeline__title{font-weight:500}.quote{border-color:var(--border);color:var(--text)}.footer{background:var(--surface);border-color:var(--border-soft)}.footer__powered{border-color:var(--border-soft)}.footer__col .footer__heading{font-weight:500}.footer__logo{filter:none}.footer__col a{text-decoration:none}.footer__col a:hover{text-decoration:underline}.crumbs li+li::before,.cv-job__meta .sep{color:var(--text-dim)}
.prod-hero__title,.post__title{font-weight:400;letter-spacing:-.035em}.prod-hero{padding:42px 0 58px}.post__head{padding-top:36px}.post__body{line-height:1.85}.post__body h2{font-weight:500}.post__body h3{color:var(--text)}.post__body .note,.post__body code{background:var(--bg-alt);border-color:var(--border);color:var(--text-soft)}.post__figure img{border-color:var(--border-soft);border-radius:3px}.toc{border-radius:3px}.post__cta{border-radius:3px}.grid--insights .card{padding:30px;border:0;border-top:1px solid var(--border-soft);background:none;border-radius:0}.grid--insights .card__title{font-weight:400;font-size:1.6rem}.js .reveal{opacity:1;transform:none;transition:none}.hero__title .line,.hero__title .line:nth-child(2){animation:none}.stat__number{color:var(--gold)}
@media(max-width:1120px){.nav__inner{gap:12px}.nav__links{gap:13px}.brand__mark{height:52px}.nav__links a{font-size:.77rem}.nav__inner>.btn{font-size:.77rem;padding:9px 12px}.hero__inner{gap:35px}}
@media(max-width:960px){.nav__inner{height:80px;flex-wrap:wrap;position:relative}.nav__toggle{display:flex;margin-left:auto}.nav__links{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;gap:0;margin:0;padding:8px 0;background:var(--surface);border-bottom:1px solid var(--border-soft);box-shadow:0 12px 24px #0001;backdrop-filter:none}.nav__links.is-open{display:flex}.nav__links a{font-size:.95rem;padding:14px 24px;border-bottom:1px solid var(--border-soft)}.nav__links a:last-child{border-bottom:0}.nav__links a:after{display:none}.hero__inner{gap:26px}.editorial-brief{padding:26px}.editorial-brief h2{font-size:1.6rem}}
@media(max-width:720px){:root{--section-py:48px}.hero{padding:38px 0 46px}.hero__inner{grid-template-columns:1fr;gap:32px}.hero__title{font-size:clamp(2.5rem,8vw,3.4rem);max-width:620px}.hero__lead{font-size:.98rem}.editorial-brief{max-width:none}.section__head{margin-bottom:28px}.section__title{font-size:2rem}.post__title{font-size:2.3rem}.post__body{font-size:1rem}.grid--insights .card{padding:26px 0}.prod-hero{padding:30px 0 40px}.container{padding:0 22px}}
@media(max-width:480px){.nav__inner>.btn{display:none}.nav__inner{gap:10px;padding:0 16px;height:76px}.brand__mark{width:136px;height:auto}.appearance{font-size:.76rem;padding:8px 4px;min-height:42px}.nav__toggle{width:40px;height:42px;margin-left:auto}.hero__cta{gap:10px}.hero__cta .btn{padding:12px 16px;font-size:.83rem}.editorial-brief{padding:24px}.hero__title{font-size:2.6rem}.container{padding-left:20px;padding-right:20px}}
@media print{.appearance,.editorial-brief{display:none}.hero__inner{display:block}}
/* Appearance changes are immediate so foreground/background never transition apart. */
.nav__links .nav__mobile-contact{display:none}
@media(max-width:960px){.nav__links .nav__mobile-contact{display:block}}
.stats--principles .stat__num{font-size:clamp(1.35rem,2vw,1.8rem);line-height:1.3}
.nav,.nav.is-scrolled,.btn,.contact-card{transition:none}
.prod-hero + .section{padding-top:20px}
.contact-grid{margin-top:24px}
.editorial-brief .editorial-kicker{color:var(--gold);font-size:.69rem;line-height:1.5}
/* Do not animate colours across appearance changes: keep text and surface in sync. */
html[data-theme] *{transition-property:transform,opacity}

/* Picture preserves the existing image box and its intrinsic aspect ratio. */
picture.editorial-picture{display:contents}

/* Accessibility audit: theme-safe labels and visible links/focus. */
.pill,.badge{background:var(--bg-alt);color:var(--text);border-color:var(--border)}
.about-card,.switch-card{background:var(--surface)}
.about-card__badge{background:var(--action);color:var(--action-text);box-shadow:none}
.footer__powered a{text-decoration:underline;text-underline-offset:3px}
.skip-link{background:var(--action);color:var(--action-text);min-height:44px}
.crumbs:has(>a){display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px}
.crumbs:has(>a)>a{display:inline-block}
/* A working navigation remains available when JavaScript is disabled. */
html:not(.js) .nav__toggle,html:not(.js) .appearance{display:none}
@media(max-width:960px){
 html:not(.js) .nav{position:static}
 html:not(.js) .nav__inner{height:auto;min-height:80px;padding-top:12px;padding-bottom:12px}
 html:not(.js) .nav__links{display:flex;position:static;flex-basis:100%;order:3;box-shadow:none;border:0;padding:12px 0 0}
 html:not(.js) .nav__links a{padding:12px 0}
}

.about-card__lead a{color:var(--gold);text-decoration:underline;text-underline-offset:3px}

/* Contact action and availability share a row rhythm; status stays noninteractive. */
.cta__actions{display:flex;justify-content:center;align-items:stretch;gap:16px;flex-wrap:wrap}
.cta__actions>.btn,.cta__actions>.badge{box-sizing:border-box;min-height:56px;margin:0;padding:16px 24px;font-size:.9rem;line-height:1.5;border-radius:3px;justify-content:center}
.cta__actions>.badge{background:transparent}
@media(max-width:600px){.cta__actions{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr}.cta__actions>.btn,.cta__actions>.badge{width:100%}}

.contact-address__map{color:var(--gold);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}.contact-address__map:hover{text-decoration-thickness:2px}.contact-address__map:focus-visible{outline:2px solid var(--gold);outline-offset:4px}

.technology-band{margin:0 0 64px;padding:27px 0 29px;border-block:1px solid var(--border-soft);background:var(--bg)}.technology-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.technology-heading .editorial-kicker{margin:0 0 9px;font-size:.65rem;letter-spacing:.15em}.technology-heading h2{margin:0;font:400 clamp(1.35rem,2vw,1.65rem)/1.3 var(--font-display);color:var(--text)}.technology-pause{font:500 .75rem var(--font-sans);color:var(--text-soft);background:var(--surface);border:1px solid var(--control-border);padding:9px 15px;min-height:44px;border-radius:3px;cursor:pointer}.technology-pause[hidden]{display:none}.technology-viewport{overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--border) transparent}.technology-track{display:flex;width:max-content}.technology-track ul{display:flex;align-items:center;list-style:none;margin:0;padding:14px 0;width:max-content;flex-shrink:0}.technology-track li{display:flex;align-items:center;white-space:nowrap;font:500 clamp(1.25rem,2vw,1.6rem)/1.4 var(--font-sans);letter-spacing:-.035em;color:var(--text-soft);padding-right:48px}.technology-track li::after{content:'';width:4px;height:4px;flex-shrink:0;margin-left:48px;background:var(--gold);border-radius:50%}.technology-band.is-enhanced .technology-viewport{overflow:hidden;mask-image:linear-gradient(to right,#000 0%,#000 calc(100% - 40px),transparent 100%)}.technology-pause:focus-visible,.technology-viewport:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.editorial-service .technology-band{margin:0 0 36px}.editorial-service .technology-band>.container{padding-inline:0}

@media(max-width:600px){.technology-band{margin-bottom:42px;padding-block:23px}.technology-heading{gap:14px}.technology-heading h2{font-size:1.35rem}.technology-track li{padding-right:30px}.technology-track li::after{margin-left:30px}.technology-heading .editorial-kicker{font-size:.6rem}}
@media(prefers-reduced-motion:reduce){.technology-band .technology-track{animation:none!important;transform:none!important}.technology-band .technology-viewport{overflow-x:auto;mask-image:none}.technology-track > ul[aria-hidden=true],.technology-pause{display:none!important}}
@media print{.technology-band .technology-track{animation:none!important;transform:none!important;width:auto}.technology-track > ul[aria-hidden=true],.technology-pause{display:none!important}.technology-band .technology-viewport{overflow:visible;mask-image:none}.technology-track ul{flex-wrap:wrap;width:auto;gap:12px}.technology-track li{font-size:1rem}}

.technology-track a{display:inline-flex;align-items:center;min-height:44px;color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px;text-decoration-color:var(--border);transition:color .15s ease}
.technology-track a:hover{color:var(--gold);text-decoration-color:currentColor}
.technology-track a:focus-visible{outline:2px solid var(--gold);outline-offset:4px;color:var(--gold)}
.technology-band.is-keyboard .technology-track{animation:none;transform:none}
.technology-band.is-keyboard .technology-viewport{overflow-x:auto;mask-image:none}
.technology-band.is-keyboard .technology-track > ul[aria-hidden=true]{display:none}

/* Native scrolling supports touch, trackpads and a visible scrollbar. */
.technology-band.is-enhanced .technology-viewport{overflow-x:auto;mask-image:none;scroll-behavior:auto}
.technology-band .technology-track{animation:none!important;transform:none!important}
.technology-controls{display:flex;align-items:center;gap:8px;flex-shrink:0}
.technology-step{width:44px;height:44px;border:1px solid var(--control-border);border-radius:3px;background:var(--surface);color:var(--text);font:500 1.1rem var(--font-sans);cursor:pointer}
.technology-step[hidden]{display:none}.technology-step:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(max-width:600px){.technology-heading{align-items:flex-start;flex-direction:column;gap:12px}}
@media print{.technology-controls{display:none}}

/* Quiet, consistently spaced vendor marks above the footer. */
.technology-band{margin:0;padding:38px 0 30px}
.technology-heading{margin-bottom:20px}
.technology-track ul{padding:16px 0 22px}
.technology-track li{padding-right:56px}
.technology-track li::after{display:none}
.technology-track .vendor-link{position:relative;display:flex;justify-content:center;gap:10px;width:172px;height:64px;min-height:64px;text-decoration:none;color:var(--text-soft)}
.vendor-link img{display:block;width:160px;height:40px;object-fit:contain;filter:brightness(0);opacity:.72;transition:opacity .2s ease}
[data-theme="dark"] .vendor-link img{filter:brightness(0) invert(1)}
.vendor-link:hover img,.vendor-link:focus-visible img{opacity:1}
.vendor-link .vendor-name{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.vendor-label{font:500 1.3rem/1 var(--font-sans);letter-spacing:-.035em}
.vendor-microsoft img,.vendor-n-able img{width:29px;height:29px}
.vendor-meraki img{width:108px;height:54px}
.vendor-auvik img{width:112px;height:48px}
.editorial-service .technology-band{margin:0}
.editorial-service .technology-band>.container{padding-inline:24px}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .vendor-link img{filter:brightness(0) invert(1)}}
@media(max-width:600px){.technology-band{margin:0;padding-block:28px}.technology-track li{padding-right:28px}.technology-track .vendor-link{width:152px}.vendor-link img{max-width:144px}.vendor-microsoft img,.vendor-n-able img{max-width:29px}.vendor-label{font-size:1.15rem}}
