/* ==========================================================================
   WENDE LUVINGA — "Fjord Meets Savanna" Design System
   PMP® Certified Project Consultant · Bilingual Children's Author · Facilitator
   --------------------------------------------------------------------------
   1.  Design tokens (CSS custom properties)
   2.  Reset & base
   3.  Typography
   4.  Layout primitives
   5.  Textures & decorative motifs
   6.  Header & navigation
   7.  Buttons & links
   8.  Hero patterns
   9.  Cards (services, flip, blog, book)
   10. Data visualisations (counters, radar, orbit, flower, globe)
   11. Forms
   12. Footer
   13. Utilities
   14. Motion & scroll reveal
   15. Responsive
   16. Accessibility & print
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* ---- Brand palette: Fjord ---- */
  --nordic-deep:    #1E293B;   /* Slate / navy — dark sections            */
  --nordic-deeper:  #16202F;   /* Deeper slate for gradient stops         */
  --arctic-paper:   #F8FAFC;   /* Off-white paper — light sections        */
  --arctic-mist:    #EEF2F7;   /* Subtle tint for alternating bands       */

  /* ---- Brand palette: Savanna ---- */
  --terracotta:     #E07A5F;   /* African sunset — primary CTA            */
  --terracotta-dk:  #C9603F;   /* Hover / pressed state                   */
  --terracotta-lt:  #F0A48D;   /* Soft accents, glows                     */
  --savanna-gold:   #F2CC8F;   /* Highlights, badges, star ratings        */
  --savanna-gold-dk:#DFAF63;   /* Gold on light backgrounds (contrast)    */

  /* ---- Brand palette: Professional structure ---- */
  --pmp-teal:       #3D5A80;   /* Consultancy cards, timelines            */
  --pmp-teal-lt:    #5B7CA6;   /* Lighter teal for gradients              */
  --pmp-teal-dk:    #2C4460;   /* Deep teal                               */

  /* ---- Text ---- */
  --ink:            #0F172A;   /* Dark ink on light                       */
  --ink-soft:       #475569;   /* Secondary text on light                 */
  --ink-muted:      #64748B;   /* Tertiary / captions                     */
  --light:          #E2E8F0;   /* Light gray on dark                      */
  --light-soft:     #B6C2D2;   /* Secondary text on dark                  */

  /* ---- Surfaces & lines ---- */
  --surface:        #FFFFFF;
  --border:         #E2E8F0;
  --border-strong:  #CBD5E1;
  --border-dark:    rgba(226, 232, 240, .16);

  /* ---- Typography ---- */
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Fluid type scale (clamp: min, preferred, max) */
  --fs-xs:   0.8125rem;                                /* 13px */
  --fs-sm:   0.875rem;                                 /* 14px */
  --fs-base: 1rem;                                     /* 16px */
  --fs-md:   clamp(1.0625rem, 0.25vw + 1rem, 1.125rem);
  --fs-lg:   clamp(1.125rem, 0.5vw + 1rem, 1.3125rem);
  --fs-xl:   clamp(1.375rem, 0.8vw + 1.125rem, 1.75rem);
  --fs-2xl:  clamp(1.75rem, 1.6vw + 1.25rem, 2.5rem);
  --fs-3xl:  clamp(2.125rem, 2.6vw + 1.375rem, 3.25rem);
  --fs-4xl:  clamp(2.5rem, 4vw + 1.5rem, 4.25rem);

  --lh-tight: 1.15;
  --lh-snug:  1.32;
  --lh-body:  1.62;

  /* ---- Spacing scale ---- */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.5rem;
  --sp-6:  2rem;
  --sp-7:  2.75rem;
  --sp-8:  3.5rem;
  --sp-9:  4.5rem;
  --sp-10: 6rem;
  --sp-11: 8rem;

  /* Section rhythm — generous Nordic spacing */
  --section-y: clamp(2.5rem, 4.5vw, 4.25rem);

  /* ---- Radii ---- */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-2xl: 40px;
  --r-pill: 999px;

  /* ---- Elevation ---- */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, .12);
  --shadow-xl: 0 32px 72px rgba(15, 23, 42, .18);
  --shadow-warm: 0 18px 44px rgba(224, 122, 95, .22);
  --shadow-teal: 0 18px 44px rgba(61, 90, 128, .22);

  /* ---- Motion ---- */
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --t-fast:  .18s;
  --t-base:  .32s;
  --t-slow:  .6s;

  /* ---- Layout ---- */
  --container: 1200px;
  --container-narrow: 820px;
  --header-h: 76px;

  /* ---- Gradients ---- */
  --grad-sunset: linear-gradient(135deg, var(--terracotta) 0%, var(--savanna-gold) 100%);
  --grad-fjord:  linear-gradient(135deg, var(--pmp-teal) 0%, var(--nordic-deep) 100%);
  --grad-bridge: linear-gradient(90deg, var(--terracotta) 0%, var(--savanna-gold) 45%, var(--pmp-teal) 100%);
  --grad-dark:   linear-gradient(165deg, var(--nordic-deep) 0%, var(--nordic-deeper) 100%);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--arctic-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
svg { overflow: visible; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }

a { color: var(--pmp-teal); text-decoration: none; transition: color var(--t-fast) var(--ease-soft); }
a:hover { color: var(--terracotta); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-7) 0; }

::selection { background: var(--savanna-gold); color: var(--ink); }

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 var(--sp-3);
  text-wrap: balance;
}

h1 { font-size: var(--fs-4xl); font-weight: 700; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }

p { margin: 0 0 var(--sp-3); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--grad-sunset);
  border-radius: 2px;
}

/* Gold highlight for key phrases — the "bridge" line, wisdom quotes */
.gold {
  color: var(--savanna-gold-dk);
  font-style: italic;
}
.on-dark .gold, .section--dark .gold { color: var(--savanna-gold); }

.hl-gold {
  background: linear-gradient(180deg, transparent 62%, rgba(242, 204, 143, .55) 62%);
  padding: 0 .12em;
}

/* Pull quote */
.quote {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  border-left: 3px solid var(--savanna-gold);
  padding-left: var(--sp-5);
  margin: var(--sp-5) 0;
  max-width: 56ch;
}
.section--dark .quote { color: var(--light); border-left-color: var(--savanna-gold); }

/* ==========================================================================
   4. LAYOUT PRIMITIVES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container--narrow { max-width: var(--container-narrow); }
/* Wider than the standard container — used by the three-column editorial,
   which needs the extra width to keep each column above ~45 characters. */
.container--wide { max-width: 1440px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(1.75rem, 3vw, 2.5rem); }

.section--paper { background: var(--arctic-paper); }
.section--mist  { background: var(--arctic-mist); }
.section--white { background: var(--surface); }

.section--dark {
  background: var(--grad-dark);
  color: var(--light);
}
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5 { color: #fff; }
.section--dark p, .section--dark .lead { color: var(--light-soft); }
.section--dark a { color: var(--savanna-gold); }
.section--dark a:hover { color: var(--terracotta-lt); }

.section-head { max-width: 68ch; margin-bottom: var(--sp-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* Grids */
.grid { display: grid; gap: var(--sp-4); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--split { grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3.5vw, 3rem); align-items: center; }
.grid--sidebar { grid-template-columns: 1fr 1.35fr; gap: clamp(1.5rem, 3.5vw, 3rem); align-items: center; }

.stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.row--center { justify-content: center; }

/* ==========================================================================
   5. TEXTURES & DECORATIVE MOTIFS
   ========================================================================== */

/* Paper grain — subtle fibre texture, mimics quality book stock.
   Uses an inline SVG feTurbulence so there is zero extra HTTP request. */
.texture-paper { position: relative; isolation: isolate; }
.texture-paper::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .38;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.5'/%3E%3C/svg%3E");
}
.section--dark.texture-paper::before { opacity: .22; mix-blend-mode: overlay; }

/* Nordic geometric grid — structure, project management */
.texture-grid { position: relative; isolation: isolate; }
.texture-grid::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(61, 90, 128, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 90, 128, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 25%, transparent 78%);
}
.section--dark.texture-grid::before {
  background-image:
    linear-gradient(rgba(226, 232, 240, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, .07) 1px, transparent 1px);
}

/* Savanna sunset gradient blobs — organic warmth layered over the grid */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}
.blob--terracotta { background: radial-gradient(circle, rgba(224,122,95,.42), transparent 68%); }
.blob--gold       { background: radial-gradient(circle, rgba(242,204,143,.42), transparent 68%); }
.blob--teal       { background: radial-gradient(circle, rgba(61,90,128,.38), transparent 68%); }

.blob--a { width: 520px; height: 520px; top: -160px; right: -120px; animation: drift 26s var(--ease-soft) infinite alternate; }
.blob--b { width: 420px; height: 420px; bottom: -180px; left: -140px; animation: drift 32s var(--ease-soft) infinite alternate-reverse; }
.blob--c { width: 340px; height: 340px; top: 38%; left: 44%; opacity: .7; animation: drift 38s var(--ease-soft) infinite alternate; }

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(46px, -38px, 0) scale(1.12); }
}

/* Organic wave divider between sections */
.wave-divider { display: block; width: 100%; height: auto; margin-bottom: -1px; }
.wave-divider--flip { transform: rotate(180deg); margin-bottom: 0; margin-top: -1px; }

/* ==========================================================================
   6. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(248, 250, 252, .72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-base) var(--ease-soft),
              border-color var(--t-base) var(--ease-soft),
              box-shadow var(--t-base) var(--ease-soft);
}
.site-header.is-scrolled {
  background: rgba(248, 250, 252, .94);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

/* ---- Emblem: "WL" mark — an open book merging with a project timeline ---- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
  line-height: 1.15;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-weight: 600; }
.brand__role {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---- Desktop nav ---- */
.nav-links { display: flex; align-items: center; gap: var(--sp-1); }
.nav-links a {
  position: relative;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--r-sm);
  transition: color var(--t-fast) var(--ease-soft), background var(--t-fast) var(--ease-soft);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: var(--sp-3); right: var(--sp-3); bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-sunset);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-cta { margin-left: var(--sp-3); }

/* ---- Mobile toggle ---- */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  transition: background var(--t-fast) var(--ease-soft);
}
.nav-toggle:hover { background: rgba(61, 90, 128, .08); }
.nav-toggle span {
  display: block;
  position: relative;
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: background var(--t-fast) var(--ease-soft);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute; left: 0;
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--t-base) var(--ease-out), top var(--t-base) var(--ease-out);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* ---- Mobile drawer ---- */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 890;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-5) clamp(1.25rem, 4vw, 2.5rem) var(--sp-7);
  background: rgba(248, 250, 252, .98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--t-base) var(--ease-out),
              opacity var(--t-base) var(--ease-out),
              visibility var(--t-base);
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu a {
  padding: var(--sp-3) var(--sp-2);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a[aria-current="page"] { color: var(--terracotta); font-weight: 600; }
.mobile-menu .btn { margin-top: var(--sp-4); border-bottom: 0; justify-content: center; }

body.nav-open { overflow: hidden; }

/* Skip link */
.skip-link {
  position: absolute;
  left: 50%; top: -100px;
  transform: translateX(-50%);
  z-index: 1000;
  padding: var(--sp-3) var(--sp-5);
  background: var(--nordic-deep);
  color: #fff;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: top var(--t-base) var(--ease-out);
}
.skip-link:focus { top: 0; color: #fff; }

/* ==========================================================================
   7. BUTTONS & LINKS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.8125rem 1.625rem;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              background var(--t-base) var(--ease-soft),
              border-color var(--t-base) var(--ease-soft),
              color var(--t-base) var(--ease-soft);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn__arrow { transition: transform var(--t-base) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Primary — terracotta warmth, the main conversion action */
.btn--primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 6px 18px rgba(224, 122, 95, .28);
}
.btn--primary:hover {
  background: var(--terracotta-dk);
  color: #fff;
  box-shadow: var(--shadow-warm);
}

/* Teal — professional / consultancy actions */
.btn--teal {
  background: var(--pmp-teal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(61, 90, 128, .26);
}
.btn--teal:hover { background: var(--pmp-teal-dk); color: #fff; box-shadow: var(--shadow-teal); }

/* Gold — book / retail actions */
.btn--gold {
  background: var(--savanna-gold);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(242, 204, 143, .42);
}
.btn--gold:hover { background: var(--savanna-gold-dk); color: var(--ink); }

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn--outline:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background: rgba(224, 122, 95, .06);
}

.section--dark .btn--outline { color: var(--light); border-color: var(--border-dark); }
.section--dark .btn--outline:hover {
  color: #fff;
  border-color: var(--savanna-gold);
  background: rgba(242, 204, 143, .1);
}

/* Ghost */
.btn--ghost { background: transparent; color: var(--pmp-teal); padding-inline: var(--sp-2); }
.btn--ghost:hover { color: var(--terracotta); }

.btn--lg { padding: 1rem 2rem; font-size: var(--fs-base); }
.btn--sm { padding: 0.5625rem 1.125rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

/* Inline arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--terracotta);
}
.link-arrow svg { transition: transform var(--t-base) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   8. HERO PATTERNS
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2rem, 4.5vw, 3.75rem));
  padding-bottom: clamp(2.25rem, 4.5vw, 3.75rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__title { margin-bottom: var(--sp-5); }
.hero__sub { font-size: var(--fs-lg); color: var(--ink-soft); max-width: 58ch; }
.hero__actions { margin-top: var(--sp-5); }

/* ---- Home hero: split consultant / author with a centre "bridge" ---- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
  margin-top: var(--sp-8);
}

.hero-pane {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
  overflow: hidden;
}
.hero-pane:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hero-pane::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
}
.hero-pane--consultant::after { background: linear-gradient(90deg, var(--pmp-teal), var(--pmp-teal-lt)); }
.hero-pane--author::after     { background: var(--grad-sunset); }

.hero-pane__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
}
.hero-pane--consultant .hero-pane__icon { background: rgba(61, 90, 128, .1); color: var(--pmp-teal); }
.hero-pane--author .hero-pane__icon     { background: rgba(224, 122, 95, .12); color: var(--terracotta); }

.hero-pane__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.hero-pane--consultant .hero-pane__label { color: var(--pmp-teal); }
.hero-pane--author .hero-pane__label     { color: var(--terracotta); }

.hero-pane__text {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: var(--sp-5);
}

/* Centre bridge column */
.hero-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  min-width: 210px;
  text-align: center;
}
.hero-bridge__text {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  font-style: italic;
  line-height: 1.3;
  color: var(--savanna-gold-dk);
}
.hero-bridge__rule {
  width: 1px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(180deg, transparent, var(--border-strong), transparent);
}

/* ==========================================================================
   8b. ACCORDION HERO — expanding panels (home)
   --------------------------------------------------------------------------
   Left column: headline + gold "bridge" line + CTAs.
   Right column: three panels that expand on click / auto-rotate.
   Inactive panels show a vertically-stacked glowing title.
   ========================================================================== */
.hero-accordion {
  position: relative;
  display: flex;
  min-height: min(92vh, 860px);
  background: var(--grad-dark);
  overflow: hidden;
  isolation: isolate;
  color: var(--light);
}

/* Nordic grid overlay */
.hero-accordion__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
}

/* ---- Left: copy column ---- */
.hero-accordion__copy {
  position: relative;
  z-index: 3;
  flex: none;
  width: 38%;
  display: flex;
  align-items: center;
  padding: clamp(6rem, 10vw, 8rem) clamp(1.5rem, 4vw, 4rem) clamp(4rem, 8vw, 6rem);
  padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 5rem));
}

.hero-accordion__pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: .4375rem 1rem;
  margin-bottom: var(--sp-6);
  border-radius: var(--r-pill);
  background: rgba(224, 122, 95, .15);
  border: 1px solid rgba(224, 122, 95, .32);
  color: var(--terracotta-lt);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .04em;
}
.hero-accordion__pill i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  animation: dotPulse 2s var(--ease-soft) infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.82); }
}

.hero-accordion__title {
  font-size: clamp(2.25rem, 3.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: var(--sp-5);
}
.hero-accordion__title .grad {
  background: linear-gradient(100deg, var(--terracotta) 0%, var(--savanna-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* The centre "bridge" statement, highlighted in gold */
.hero-accordion__bridge {
  position: relative;
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-6);
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.5vw, 1.4375rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.36;
  color: var(--savanna-gold);
}
.hero-accordion__bridge::before {
  content: '';
  position: absolute;
  left: 0; top: .2em; bottom: .2em;
  width: 3px;
  border-radius: 3px;
  background: var(--grad-sunset);
}

.hero-accordion__lede {
  font-size: var(--fs-md);
  line-height: 1.68;
  color: var(--light-soft);
  margin-bottom: var(--sp-7);
  max-width: 42ch;
}

.hero-accordion__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---- Right: panel stage ---- */
.hero-accordion__stage {
  position: relative;
  flex: 1;
  overflow: hidden;
  z-index: 2;
}

.hpanel {
  position: absolute;
  top: 0; bottom: 0;
  overflow: hidden;
  cursor: pointer;
  /* --left and --w are written by JS */
  left: var(--left, 0%);
  width: var(--w, 20%);
  transition: left 1.2s var(--ease-soft), width 1.2s var(--ease-soft);
}
.hpanel.is-active { cursor: default; }

/* Panel artwork — gradient placeholder.
   Drop a photo in by setting  --photo: url('assets/img/your-photo.jpg')  */
.hpanel__art {
  position: absolute;
  inset: 0;
  background-image: var(--photo, none);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease-soft);
}
.hpanel.is-active .hpanel__art { transform: scale(1); }

.hpanel--consultancy .hpanel__art { background-color: #2E4A6B; }
.hpanel--books       .hpanel__art { background-color: #A85A42; }
.hpanel--workshops   .hpanel__art { background-color: #4A7259; }

/* Gradient art fallback drawn behind any photo */
.hpanel__art::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hpanel--consultancy .hpanel__art::before { background: linear-gradient(155deg, #3D5A80 0%, #5B7CA6 48%, #1E293B 100%); }
.hpanel--books       .hpanel__art::before { background: linear-gradient(155deg, #E07A5F 0%, #F2CC8F 52%, #C9603F 100%); }
.hpanel--workshops   .hpanel__art::before { background: linear-gradient(155deg, #7FA88C 0%, #F2CC8F 58%, #3D5A80 100%); }

/* Scrim */
.hpanel__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(12, 18, 30, .8);
  transition: background .6s var(--ease-soft);
  animation: panelBreath 6s var(--ease-soft) infinite;
}
.hpanel.is-active .hpanel__scrim {
  background: linear-gradient(160deg, rgba(20,30,46,.9) 0%, rgba(20,30,46,.58) 55%, rgba(20,30,46,.88) 100%);
  animation: none;
}
@keyframes panelBreath {
  0%, 100% { background: rgba(12, 18, 30, .8); }
  50%      { background: rgba(12, 18, 30, .68); }
}

/* Divider hairline between panels */
.hpanel::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  z-index: 4;
  background: rgba(255, 255, 255, .12);
}

/* ---- Inactive state: glowing vertical title ---- */
.hpanel__mini {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(4.5rem, 9vw, 6.5rem);
  transition: opacity .4s var(--ease-soft);
}
.hpanel.is-active .hpanel__mini { opacity: 0; pointer-events: none; }

.hpanel__halo {
  position: absolute;
  top: clamp(3.5rem, 7vw, 5rem);
  width: 60px; height: 60px;
  border-radius: 50%;
  filter: blur(26px);
  animation: dotPulse 3s var(--ease-soft) infinite;
}
.hpanel--consultancy .hpanel__halo { background: rgba(91, 124, 166, .55); }
.hpanel--books       .hpanel__halo { background: rgba(224, 122, 95, .55); }
.hpanel--workshops   .hpanel__halo { background: rgba(242, 204, 143, .5); }

.hpanel__mini-title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(.9375rem, 1.2vw, 1.125rem);
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  margin: 0;
  padding-inline: var(--sp-2);
}
.hpanel--consultancy .hpanel__mini-title { text-shadow: 0 0 18px #5B7CA6, 0 0 36px rgba(91,124,166,.4); }
.hpanel--books       .hpanel__mini-title { text-shadow: 0 0 18px #E07A5F, 0 0 36px rgba(224,122,95,.4); }
.hpanel--workshops   .hpanel__mini-title { text-shadow: 0 0 18px #F2CC8F, 0 0 36px rgba(242,204,143,.4); }

.hpanel__mini-bar {
  width: 22px; height: 2px;
  border-radius: 2px;
  margin-top: var(--sp-3);
  animation: dotPulse 3s var(--ease-soft) infinite;
}
.hpanel--consultancy .hpanel__mini-bar { background: var(--pmp-teal-lt); }
.hpanel--books       .hpanel__mini-bar { background: var(--terracotta); }
.hpanel--workshops   .hpanel__mini-bar { background: var(--savanna-gold); }

/* ---- Active state: full content ---- */
.hpanel__full {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: clamp(3rem, 6vw, 4rem) clamp(1.75rem, 3.2vw, 3.5rem) clamp(2.5rem, 4vw, 3rem);
  padding-top: calc(var(--header-h) + clamp(2rem, 4vw, 3.5rem));
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .5s var(--ease-out) .25s,
              transform .5s var(--ease-out) .25s,
              visibility .5s;
}
.hpanel.is-active .hpanel__full { opacity: 1; visibility: visible; transform: none; }

.hpanel__accent {
  width: 48px; height: 3px;
  border-radius: 3px;
  margin-bottom: var(--sp-5);
}
.hpanel--consultancy .hpanel__accent { background: var(--pmp-teal-lt); }
.hpanel--books       .hpanel__accent { background: var(--terracotta); }
.hpanel--workshops   .hpanel__accent { background: var(--savanna-gold); }

.hpanel__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.08;
  color: #fff;
  margin: 0 0 var(--sp-1);
}
.hpanel__sub {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-bottom: var(--sp-4);
}
.hpanel__rule { width: 64px; height: 1px; background: rgba(255,255,255,.2); margin-bottom: var(--sp-5); }

.hpanel__text {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-style: italic;
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
  margin-bottom: var(--sp-6);
  max-width: 34ch;
}

.hpanel__links { display: flex; flex-direction: column; gap: var(--sp-4); margin-bottom: auto; }
.hpanel__links a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, .72);
  transition: color var(--t-fast) var(--ease-soft);
}
.hpanel__links a:hover { color: #fff; }
.hpanel__links a span {
  width: 26px; height: 26px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: transform var(--t-base) var(--ease-out);
}
.hpanel__links a:hover span { transform: translateX(4px); }
.hpanel--consultancy .hpanel__links a span { background: rgba(91,124,166,.28); color: #9DB8D8; }
.hpanel--books       .hpanel__links a span { background: rgba(224,122,95,.28); color: var(--terracotta-lt); }
.hpanel--workshops   .hpanel__links a span { background: rgba(242,204,143,.24); color: var(--savanna-gold); }

/* ==========================================================================
   HERO PANEL VISUALS — one animated figure per panel, replacing the link lists
   --------------------------------------------------------------------------
   All three only animate in the ACTIVE panel (`.hpanel.is-active`). A
   collapsed panel is a 20%-wide strip where motion would be noise, and three
   concurrent loops would cost CPU for nothing. Below 1024px the accordion
   becomes a stacked grid with all three panels visible, so animation is
   switched off entirely there — three moving figures on a phone is busy and
   drains battery.
   ========================================================================== */
.hpanel__figure {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  overflow: hidden;
}

/* ---- 1 · BOOKS: covers drifting, glowing as they cross the centre ------- */
.covers {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Fade both edges so covers enter and leave rather than being clipped */
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.covers__track {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  width: max-content;
  padding-block: var(--sp-5);
}
.hpanel.is-active .covers__track {
  animation: coversDrift 28s linear infinite;
}
@keyframes coversDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* set repeated twice → seamless */
}

.covers__item {
  flex: none;
  width: 110px;                 /* 92px + 20% */
  border-radius: 3px 6px 6px 3px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
  opacity: .55;
  filter: saturate(.75);
  /* The glow pulse is offset per item via --i so the highlight travels
     along the row roughly in step with the drift. */
  animation: coverGlow 4.6667s var(--ease-soft) infinite;
  animation-delay: calc(var(--i, 0) * -0.7778s);
  animation-play-state: paused;
}
.hpanel.is-active .covers__item { animation-play-state: running; }

.covers__item img { display: block; width: 100%; height: auto; }

@keyframes coverGlow {
  0%, 72%, 100% {
    opacity: .55;
    filter: saturate(.75);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
    transform: translateY(0) scale(1);
  }
  12% {
    opacity: 1;
    filter: saturate(1.1) brightness(1.08);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .5),
                0 0 26px rgba(242, 204, 143, .65);
    transform: translateY(-7px) scale(1.06);
  }
  26% {
    opacity: .95;
    filter: saturate(1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .48),
                0 0 14px rgba(242, 204, 143, .3);
    transform: translateY(-3px) scale(1.02);
  }
}

/* ---- 2 · CONSULTANCY: glow walks the delivery stages, then all light up -- */
.stages { width: 100%; max-width: 330px; }

.stages__bar {
  transform-origin: left center;
  transform-box: fill-box;
  opacity: .3;
  animation: stageStep 12s var(--ease-soft) infinite;
  animation-delay: calc(var(--s, 0) * 1.5s);
  animation-play-state: paused;
}
.hpanel.is-active .stages__bar { animation-play-state: running; }

/* Each bar lights for its own beat, then everything lights together in the
   final "delivered" flourish at ~75–90% of the cycle. */
@keyframes stageStep {
  0%, 100%   { opacity: .3; filter: none; }
  6%, 11%    { opacity: 1; filter: drop-shadow(0 0 9px rgba(242, 204, 143, .85)); }
  16%        { opacity: .62; filter: none; }
  60%        { opacity: .62; }
  /* the whole-project flourish */
  70%, 82%   { opacity: 1; filter: drop-shadow(0 0 12px rgba(242, 204, 143, .9)); }
  92%        { opacity: .3; filter: none; }
}

.stages__label {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  fill: rgba(255, 255, 255, .5);
  animation: stageLabel 12s var(--ease-soft) infinite;
  animation-delay: calc(var(--s, 0) * 1.5s);
  animation-play-state: paused;
}
.hpanel.is-active .stages__label { animation-play-state: running; }
@keyframes stageLabel {
  0%, 100%  { fill: rgba(255, 255, 255, .5); }
  6%, 14%   { fill: #F2CC8F; }
  20%, 62%  { fill: rgba(255, 255, 255, .62); }
  70%, 82%  { fill: #fff; }
}

/* Completion tick, appearing only during the flourish */
.stages__done {
  opacity: 0;
  animation: stageDone 12s var(--ease-soft) infinite;
  animation-play-state: paused;
}
.hpanel.is-active .stages__done { animation-play-state: running; }
@keyframes stageDone {
  0%, 66%, 94%, 100% { opacity: 0; transform: scale(.7); }
  72%, 88%           { opacity: 1; transform: scale(1); }
}
.stages__done { transform-box: fill-box; transform-origin: center; }

/* ---- 3 · WORKSHOPS: petals lighting clockwise, one at a time ------------ */
.petals { width: 100%; max-width: 235px; }

.petals__petal {
  opacity: .3;
  transform-box: view-box;
  transform-origin: 200px 200px;
  animation: petalBlink 10s var(--ease-soft) infinite;
  animation-delay: calc(var(--p, 0) * 2s);       /* 5 petals × 2s = one turn */
  animation-play-state: paused;
}
.hpanel.is-active .petals__petal { animation-play-state: running; }

@keyframes petalBlink {
  0%, 100%  { opacity: .3; filter: none; transform: scale(1); }
  6%        { opacity: 1; filter: drop-shadow(0 0 14px rgba(242, 204, 143, .9)); transform: scale(1.07); }
  16%       { opacity: 1; filter: drop-shadow(0 0 10px rgba(242, 204, 143, .55)); transform: scale(1.04); }
  22%       { opacity: .3; filter: none; transform: scale(1); }
}

.petals__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  fill: rgba(255, 255, 255, .35);
  text-transform: uppercase;
  animation: petalLabel 10s var(--ease-soft) infinite;
  animation-delay: calc(var(--p, 0) * 2s);
  animation-play-state: paused;
}
.hpanel.is-active .petals__label { animation-play-state: running; }
@keyframes petalLabel {
  0%, 100% { fill: rgba(255, 255, 255, .35); }
  6%, 16%  { fill: #F2CC8F; }
  22%      { fill: rgba(255, 255, 255, .35); }
}

.petals__core { fill: rgba(242, 204, 143, .9); }
.petals__core-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  fill: var(--nordic-deep);
}

/* ---- Stop everything when the accordion flattens, or on request -------- */
@media (max-width: 1024px) {
  .hpanel__figure { margin-bottom: var(--sp-4); max-height: 180px; }
  .covers__track,
  .covers__item,
  .stages__bar, .stages__label, .stages__done,
  .petals__petal, .petals__label {
    animation: none !important;
  }
  /* Resting state has to look deliberate, not half-finished */
  .covers__item { opacity: .9; filter: none; }
  .stages__bar  { opacity: .85; }
  .stages__label, .petals__label { fill: rgba(255, 255, 255, .7); }
  .petals__petal { opacity: .9; }
}

@media (prefers-reduced-motion: reduce) {
  .covers__track,
  .covers__item,
  .stages__bar, .stages__label, .stages__done,
  .petals__petal, .petals__label {
    animation: none !important;
  }
  .covers__item { opacity: .9; filter: none; }
  .stages__bar { opacity: .85; }
  .petals__petal { opacity: .9; }
}

/* ---- Dot navigation ---- */
.hpanel__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
}
.hpanel__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  transition: width var(--t-base) var(--ease-out),
              border-radius var(--t-base) var(--ease-out),
              background var(--t-base) var(--ease-soft);
}
.hpanel__dot:hover { background: rgba(255, 255, 255, .55); }
.hpanel__dot.is-current { width: 28px; border-radius: 5px; }
.hpanel--consultancy .hpanel__dot.is-current { background: var(--pmp-teal-lt); }
.hpanel--books       .hpanel__dot.is-current { background: var(--terracotta); }
.hpanel--workshops   .hpanel__dot.is-current { background: var(--savanna-gold); }
.hpanel__count { font-size: var(--fs-xs); font-weight: 500; color: rgba(255,255,255,.38); margin-left: var(--sp-2); }

/* ---- Responsive: below 1024px the panels stack as cards ---- */
@media (max-width: 1024px) {
  .hero-accordion { flex-direction: column; min-height: 0; }
  .hero-accordion__copy {
    width: 100%;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
    padding-bottom: var(--sp-7);
  }
  .hero-accordion__stage {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-3);
    padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 6vw, 4rem);
  }
  .hpanel {
    position: static;
    width: auto;
    min-height: 300px;
    border-radius: var(--r-lg);
    transition: transform var(--t-base) var(--ease-out);
  }
  .hpanel::after { display: none; }
  .hpanel:hover { transform: translateY(-4px); }
  .hpanel__mini { display: none; }
  .hpanel__full {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: var(--sp-5);
    height: 100%;
  }
  .hpanel__scrim { animation: none; background: linear-gradient(165deg, rgba(20,30,46,.86), rgba(20,30,46,.72)); }
  .hpanel__nav { display: none; }
  .hpanel__title { font-size: var(--fs-xl); }
}

@media (max-width: 760px) {
  .hero-accordion__stage { grid-template-columns: 1fr; }
  .hpanel { min-height: 0; }
}

/* ==========================================================================
   8c. CONTACT HERO — copy on the left, form docked in the right third
   ========================================================================== */
.hero-contact {
  position: relative;
  background: var(--grad-dark);
  color: var(--light);
  padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-contact__grid {
  display: grid;
  grid-template-columns: 1.55fr minmax(340px, 1fr);   /* ≈ two thirds / one third */
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

/* ---- Left column ---- */
.hero-contact h1 { color: #fff; }
.hero-contact__sub {
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--light-soft);
  max-width: 46ch;
  margin-bottom: var(--sp-8);
}

/* Contact detail rows, dark-surface variant */
.hero-contact .contact-item__icon {
  background: rgba(242, 204, 143, .14);
  color: var(--savanna-gold);
}
.hero-contact .contact-item__label { color: #8397AE; }
.hero-contact .contact-item__value { color: #fff; }
.hero-contact .contact-item__value a { color: var(--savanna-gold); }
.hero-contact .contact-item__value a:hover { color: var(--terracotta-lt); }

.hero-contact .cred-seal {
  background: rgba(255, 255, 255, .05);
  border-color: var(--border-dark);
}
.hero-contact .cred-seal__label { color: #8397AE; }
.hero-contact .cred-seal__value { color: #fff; }
.hero-contact .cred-seal__mark { background: var(--savanna-gold); color: var(--nordic-deep); }

/* ---- Right column: the form card ---- */
.hero-contact__form {
  position: relative;
  padding: clamp(1.5rem, 2.4vw, 2.125rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--shadow-xl);
  color: var(--ink);
}
/* Warm accent rail along the top of the card */
.hero-contact__form::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--grad-sunset);
}

.hero-contact__form-head { margin-bottom: var(--sp-5); }
.hero-contact__form-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-1);
}
.hero-contact__form-note { font-size: var(--fs-sm); color: var(--ink-muted); margin: 0; }

/* ---- Compact form variant --------------------------------------------------
   Tuned so the whole form fits inside the hero on a ~900px-tall viewport
   without scrolling. Every value here is doing vertical-budget work:
   paired fields, tighter gaps, smaller controls, two-up inquiry chips. */
.form--compact { gap: 0.875rem; }

/* Name + Email share a row even in the narrow column */
.form--compact .form__row { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.form--compact .field { gap: 0.375rem; }
.form--compact .field__label { font-size: 0.8125rem; }
.form--compact .field__hint { font-size: 0.75rem; }

.form--compact .input,
.form--compact .select,
.form--compact .textarea {
  padding: 0.625rem 0.8125rem;
  font-size: 0.9375rem;
  border-radius: var(--r-sm);
}
.form--compact .textarea { min-height: 88px; }

.form--compact .btn { padding: 0.8125rem 1.5rem; }

/* ---- Inquiry chips: two per row, with a check indicator ---- */
.form--compact .inquiry-grid {
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.form--compact .inquiry-opt__box {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  min-height: 46px;
  padding: 0.5rem 0.625rem;
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
}

.form--compact .inquiry-opt__icon { font-size: 0.9375rem; flex: none; }

/* Radio-style check indicator, pushed to the right edge of the chip */
.form--compact .inquiry-opt__box::after {
  content: '';
  flex: none;
  margin-left: auto;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 8px;
  transition: background-color var(--t-fast) var(--ease-soft),
              border-color var(--t-fast) var(--ease-soft);
}

/* Selected: terracotta fill + white tick */
.form--compact .inquiry-opt input:checked + .inquiry-opt__box::after {
  border-color: var(--terracotta);
  background-color: var(--terracotta);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M1 4.2 3.5 6.7 9 1.2' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Tighten the fieldset legend above the chips */
.form--compact fieldset .field__label { margin-bottom: 0.4375rem; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-contact__grid { grid-template-columns: 1fr; gap: var(--sp-7); }
  .hero-contact__form { max-width: 620px; }
  /* Room to breathe again once the form is full-width */
  .form--compact { gap: var(--sp-4); }
  .form--compact .textarea { min-height: 120px; }
  .form--compact .inquiry-opt__box { font-size: 0.8125rem; min-height: 50px; }
}

@media (max-width: 560px) {
  .form--compact .form__row { grid-template-columns: 1fr; }
  /* Chips stay two-up as long as they fit; below this they stack */
  .form--compact .inquiry-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   9. CARDS
   ========================================================================== */
.card {
  position: relative;
  padding: clamp(1.25rem, 1.9vw, 1.625rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-soft);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

.card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: rgba(61, 90, 128, .1);
  color: var(--pmp-teal);
  margin-bottom: var(--sp-3);
}
.card__title { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.card__text { color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.68; }

.card--dark {
  background: rgba(255, 255, 255, .04);
  border-color: var(--border-dark);
  color: var(--light);
}
.card--dark .card__text { color: var(--light-soft); }
.card--dark:hover { border-color: rgba(242, 204, 143, .32); background: rgba(255, 255, 255, .07); }

/* ---- Flip cards (Consultancy services) ---- */
.flip {
  perspective: 1400px;
  height: 310px;
  cursor: pointer;
}
/* MOTION MODEL — hover and flip are deliberately separate gestures:
     · Pointing at a card raises and lights it (a state change, not a move)
     · Clicking/tapping is the ONLY thing that flips it
   Hover no longer flips anything, so sweeping the mouse across the grid
   leaves the cards still. */
.flip__inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .82s cubic-bezier(.25, .85, .3, 1);
}
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }

.flip__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  transition: box-shadow .28s var(--ease-soft),
              border-color .28s var(--ease-soft),
              background .28s var(--ease-soft);
}

.flip__front {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  justify-content: space-between;
}
.flip__front::before {
  content: '';
  position: absolute; inset: 0 0 auto 0;
  height: 4px;
  z-index: 3;
  background: linear-gradient(90deg, var(--pmp-teal), var(--pmp-teal-lt));
}

/* ---- HOVER STATE: a Material-style lift + tint, no flipping ------------
   The card rises, picks up a warm ambient glow, and a soft radial wash
   sweeps in from the top-left. Purely a state change — it signals
   "this is interactive" without committing to the flip. */
.flip {
  border-radius: var(--r-lg);
  transition: transform .28s var(--ease-out), filter .28s var(--ease-soft);
}
.flip:hover,
.flip:focus-visible {
  transform: translateY(-6px);
  outline: none;
}

.flip__front::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(224, 122, 95, .16), transparent 62%),
    linear-gradient(160deg, rgba(242, 204, 143, .16), transparent 55%);
  transition: opacity .3s var(--ease-soft);
}
.flip:hover .flip__front::after,
.flip:focus-visible .flip__front::after { opacity: 1; }

/* Ambient glow + accent ring while pointed at */
.flip:hover .flip__front,
.flip:focus-visible .flip__front {
  border-color: var(--terracotta-lt);
  box-shadow: 0 16px 40px rgba(224, 122, 95, .26),
              0 0 0 1px rgba(224, 122, 95, .3);
}
/* Keyboard focus gets a stronger ring so it's unmistakable */
.flip:focus-visible .flip__front {
  box-shadow: 0 16px 40px rgba(61, 90, 128, .3),
              0 0 0 3px var(--pmp-teal);
}

/* Card content sits above the wash */
.flip__front > *,
.flip__front .flip__hint { position: relative; z-index: 2; }

/* Pressed state — a small give, like a physical key */
.flip:active { transform: translateY(-2px) scale(.995); }

/* The hint flips its wording once the card is turned over */
.flip:hover .flip__hint,
.flip:focus-visible .flip__hint { color: var(--terracotta); }

.flip__back {
  transform: rotateY(180deg);
  background: var(--grad-fjord);
  border-color: transparent;
  color: var(--light);
  justify-content: center;
  box-shadow: var(--shadow-teal);
}
.flip__back h3 { color: #fff; font-size: var(--fs-lg); }
.flip__back .flip__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--light);
  line-height: 1.55;
}
.flip__back .flip__list li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--savanna-gold);
}

.flip__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(61, 90, 128, .16);
  margin-bottom: var(--sp-3);
}

/* ---- Photo flip cards: half image, half title on the front ----------------
   Front  = photo (top 50%) + theme title (bottom 50%)
   Back   = the description
   Drop a real photo in by setting  --photo: url('assets/img/your-photo.jpg')
   on the .flip__photo element. The gradient underneath stays as a fallback. */
.flip--photo { height: 380px; }

.flip--photo .flip__front {
  padding: 0;
  overflow: hidden;
}
.flip--photo .flip__front::before { display: none; }

/* NOTE: the artwork is layered with CSS multiple-backgrounds, NOT a
   ::before at z-index:-1 — a negative z-index would drop it behind the
   card's own white background and the front would render blank. Photo
   layer paints on top of the gradient; if --photo is unset the gradient
   shows through on its own. */
.flip__photo {
  position: relative;
  height: 50%;
  flex: none;
  background-image: var(--photo, none), var(--art, linear-gradient(150deg, #3D5A80, #5B7CA6));
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  overflow: hidden;
}

/* Each variant ships illustrated artwork. REPLACE the --photo value with a
   real photograph when you have one — the gradient stays as the fallback. */
.flip__photo--daycare {
  --photo: url('../assets/img/workshop-daycare.svg');
  --art: linear-gradient(150deg, #E07A5F 0%, #F2CC8F 100%);
}
.flip__photo--library {
  --photo: url('../assets/img/workshop-library.svg');
  --art: linear-gradient(150deg, #3D5A80 0%, #5B7CA6 100%);
}
.flip__photo--family {
  --photo: url('../assets/img/workshop-family.svg');
  --art: linear-gradient(150deg, #7FA88C 0%, #F2CC8F 100%);
}
.flip__photo--community {
  --photo: url('../assets/img/workshop-community.svg');
  --art: linear-gradient(150deg, #3D5A80 0%, #E07A5F 100%);
}

/* Soft fade where the photo meets the title block */
.flip__photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .92));
}

/* Icon badge floating over the photo */
.flip__photo-badge {
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-4);
  z-index: 2;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .92);
  color: var(--pmp-teal);
  box-shadow: var(--shadow-sm);
}

/* Bottom half: the theme */
.flip__theme {
  position: relative;
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-5);
  background: var(--surface);
  text-align: center;
}
.flip__theme-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-2);
  line-height: 1.2;
}
.flip__theme-tag {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--sp-3);
}
.flip--photo .flip__hint { justify-content: center; margin-top: auto; }

/* Back face */
.flip--photo .flip__back {
  background: var(--grad-fjord);
  text-align: left;
  justify-content: center;
}
.flip--photo .flip__back .flip__theme-tag { color: var(--savanna-gold); }
.flip--photo .flip__back p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--light);
}
.flip__hint {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---- Blog cards ---- */
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.post-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.post-card__media--books   { background: var(--grad-sunset); }
.post-card__media--consult { background: var(--grad-fjord); }
.post-card__media--parent  { background: linear-gradient(135deg, #7FA88C 0%, var(--savanna-gold) 100%); }
.post-card__media svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.post-card__body { padding: clamp(1.25rem, 2vw, 1.75rem); display: flex; flex-direction: column; flex: 1; }
.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--ink-muted);
}
.post-card__title { font-size: var(--fs-lg); margin-bottom: var(--sp-3); line-height: 1.28; }
.post-card__excerpt { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.68; flex: 1; margin-bottom: var(--sp-5); }

/* Category chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: .3125rem .75rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.chip--books   { background: rgba(224, 122, 95, .12); color: var(--terracotta-dk); }
.chip--consult { background: rgba(61, 90, 128, .12);  color: var(--pmp-teal); }
.chip--parent  { background: rgba(127, 168, 140, .18); color: #4A7259; }
.chip--gold    { background: rgba(242, 204, 143, .3);  color: #8A6626; }
.chip--dark    { background: rgba(255, 255, 255, .1);  color: var(--light); }

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: .375rem .875rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
}
.badge--gold {
  background: var(--savanna-gold);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(242, 204, 143, .45);
}
.badge--outline { border: 1.5px solid var(--border-strong); color: var(--ink-soft); }
.badge--pmp {
  background: rgba(61, 90, 128, .1);
  color: var(--pmp-teal);
  border: 1.5px solid rgba(61, 90, 128, .25);
}

/* ==========================================================================
   10. DATA VISUALISATIONS
   ========================================================================== */

/* ---- Stats banner with circular progress rings ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}

.stat { text-align: center; }

.stat__ring {
  position: relative;
  width: 132px; height: 132px;
  margin: 0 auto var(--sp-4);
}
.stat__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.stat__ring-track { fill: none; stroke: rgba(226, 232, 240, .16); stroke-width: 7; }
.stat__ring-bar {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 339.29;      /* 2πr where r = 54 */
  stroke-dashoffset: 339.29;
  transition: stroke-dashoffset 1.8s var(--ease-out);
}
.stat.is-visible .stat__ring-bar { stroke-dashoffset: var(--ring-offset, 68); }

.stat__ring-bar--terracotta { stroke: var(--terracotta); }
.stat__ring-bar--gold       { stroke: var(--savanna-gold); }
.stat__ring-bar--teal       { stroke: var(--pmp-teal-lt); }
.stat__ring-bar--mixed      { stroke: url(#ringGrad); }

.stat__value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.stat__num {
  font-family: var(--font-display);
  font-size: 2.125rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat__num--sm { font-size: 1.375rem; letter-spacing: .01em; }
.stat__label {
  font-size: var(--fs-sm);
  color: var(--light-soft);
  line-height: 1.45;
  max-width: 20ch;
  margin-inline: auto;
}

/* ---- Trust bar ---- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}
.trust-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  opacity: .68;
  filter: grayscale(1);
  transition: opacity var(--t-base) var(--ease-soft), filter var(--t-base) var(--ease-soft);
}
.trust-logo:hover { opacity: 1; filter: grayscale(0); }
.trust-logo__name {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.section--dark .trust-logo__name { color: var(--light-soft); }

/* ---- The "Bridge" SVG animation (home) ---- */
.bridge-viz { width: 100%; max-width: 760px; margin-inline: auto; }
.bridge-path {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: var(--dash, 900);
  stroke-dashoffset: var(--dash, 900);
}
.is-visible .bridge-path { animation: draw 2.4s var(--ease-out) forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }

.bridge-node { opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-visible .bridge-node { animation: popIn .5s var(--ease-out) forwards; }
.is-visible .bridge-node--start { animation-delay: .15s; }
.is-visible .bridge-node--book  { animation-delay: 1.0s; }
.is-visible .bridge-node--proj  { animation-delay: 1.5s; }
.is-visible .bridge-node--end   { animation-delay: 2.1s; }

@keyframes popIn {
  0%   { opacity: 0; transform: scale(.4); }
  70%  { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}

.bridge-pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease-soft) infinite; }
@keyframes pulse {
  0%, 100% { opacity: .35; transform: scale(1); }
  50%      { opacity: 0;   transform: scale(2.4); }
}

.bridge-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---- Radar chart (Consultancy: EU Funding Success) ---- */
.radar-wrap {
  position: relative;
  max-width: 480px;
  margin-inline: auto;
}
.radar-grid  { fill: none; stroke: rgba(226, 232, 240, .16); stroke-width: 1; }
.radar-axis  { stroke: rgba(226, 232, 240, .14); stroke-width: 1; }
.radar-shape {
  fill: rgba(224, 122, 95, .24);
  stroke: var(--terracotta);
  stroke-width: 2.5;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform 1.4s var(--ease-out);
}
.is-visible .radar-shape { transform: scale(1); }
.radar-point { fill: var(--savanna-gold); opacity: 0; transition: opacity .4s var(--ease-out) 1s; }
.is-visible .radar-point { opacity: 1; }
.radar-label {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .05em;
  fill: var(--light-soft);
  text-transform: uppercase;
}
.radar-legend {
  display: flex;
  justify-content: center;
  gap: var(--sp-5);
  margin-top: var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--light-soft);
}
.radar-legend span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.radar-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ==========================================================================
   VIZ TOOLTIP — shared by the radar axes and the Impact Orbit nodes
   --------------------------------------------------------------------------
   Both diagrams used to carry a description list underneath, which made each
   card as tall as its prose. The descriptions now surface in a tooltip that
   is ABSOLUTELY POSITIONED inside the diagram wrapper — out of normal flow,
   so opening one adds exactly zero height. That is what keeps the two duo
   cards the same size regardless of how long the copy is.
   ========================================================================== */
.viz-wrap { position: relative; }

/* Any element that opens a tooltip */
.viz-hotspot { cursor: pointer; }
.viz-hotspot:focus-visible { outline: none; }

/* SVG text triggers (radar axis labels) */
.radar-label.viz-hotspot { transition: fill .2s var(--ease-soft); }
.radar-label.viz-hotspot:hover,
.radar-label.viz-hotspot:focus-visible,
.radar-label.viz-hotspot.is-active { fill: var(--savanna-gold); }

/* Generous invisible hit area — SVG text alone is a fiddly target on touch */
.viz-hit { fill: transparent; cursor: pointer; }

/* Node-card triggers (orbit) */
.orbit-svg__node.viz-hotspot.is-active rect {
  fill: rgba(255, 255, 255, .15);
  stroke: var(--savanna-gold);
}
.orbit-svg__node.viz-hotspot:focus-visible rect { stroke: var(--savanna-gold); stroke-width: 2; }

/* Active marker dot on the radar */
.radar-point { transition: fill .2s var(--ease-soft); }
.radar-point.is-active { fill: #fff; }

/* ---- The tooltip itself ---- */
.viz-tip {
  position: absolute;
  z-index: 20;
  left: 0;
  top: 0;
  width: min(240px, 80%);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: rgba(15, 23, 42, .97);
  border: 1px solid rgba(242, 204, 143, .38);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(.97);
  transition: opacity .2s var(--ease-soft),
              transform .2s var(--ease-out),
              visibility .2s;
  pointer-events: none;          /* never swallows the pointer */
}
.viz-tip.is-open { opacity: 1; visibility: visible; transform: none; }

.viz-tip__title {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--savanna-gold);
  margin-bottom: 4px;
}
.viz-tip__text {
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--light);
  margin: 0;
}

/* Prompt shown before anything is selected */
.viz-hint {
  font-size: var(--fs-xs);
  color: #8397AE;
  text-align: center;
  margin-top: var(--sp-3);
}

/* Descriptions stay in the DOM for search engines and screen readers even
   though they only surface visually inside the tooltip. */
.viz-data {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .viz-tip { width: min(215px, 86%); }
}

/* ---- Impact Orbit -----------------------------------------------------
   Rendered as ONE SVG with a fixed viewBox rather than positioned HTML.
   Everything inside is locked to the viewBox coordinate system, so the
   diagram scales as a rigid unit — it cannot reflow, stretch, or distort
   at any screen width. No breakpoints needed. */
.orbit-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 460px;
  margin-inline: auto;
}

.orbit-svg__ring {
  fill: none;
  stroke: rgba(242, 204, 143, .22);
  stroke-width: 1.5;
  stroke-dasharray: 5 8;
}
.orbit-svg__ring--inner { stroke: rgba(226, 232, 240, .14); }

.orbit-svg__sun {
  transform-box: view-box;
  transform-origin: 260px 200px;
  animation: sunPulse 4.5s var(--ease-soft) infinite alternate;
}
@keyframes sunPulse { from { transform: scale(1); } to { transform: scale(1.045); } }

.orbit-svg__sun-label {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  fill: var(--nordic-deep);
}
.orbit-svg__sun-sub {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  fill: rgba(30, 41, 59, .68);
}

.orbit-svg__node rect {
  fill: rgba(255, 255, 255, .07);
  stroke: rgba(226, 232, 240, .18);
  stroke-width: 1;
  transition: fill .28s var(--ease-soft), stroke .28s var(--ease-soft);
}
.orbit-svg__node:hover rect {
  fill: rgba(255, 255, 255, .13);
  stroke: var(--savanna-gold);
}
.orbit-svg__icon  { color: var(--savanna-gold); }
.orbit-svg__label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  fill: #fff;
}


@media (prefers-reduced-motion: reduce) {
  .orbit-svg__sun { animation: none; }
}

/* ---- Book covers & 3D tilt (Books) ---- */
.shelf {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  position: relative;
}
/* Wooden shelf line beneath the books */
.shelf::after {
  content: '';
  position: absolute;
  left: -2%; right: -2%; bottom: -26px;
  height: 10px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, transparent, rgba(61,90,128,.22), rgba(61,90,128,.22), transparent);
}

.book { display: flex; flex-direction: column; }

.book__stage { perspective: 1200px; margin-bottom: var(--sp-5); }

/* NO fixed aspect-ratio: the collection mixes square picture books with a
   portrait A4-format workbook. Letting the image set its own height means
   every cover shows complete, at its true proportions, with no cropping. */
.book__cover {
  position: relative;
  max-width: 360px;
  margin-inline: auto;
  border-radius: 4px 10px 10px 4px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  box-shadow: var(--shadow-lg), -4px 0 0 rgba(0, 0, 0, .12) inset;
  will-change: transform;
  background: var(--arctic-mist);
  line-height: 0;                 /* kill the inline-image baseline gap */
}
.book__cover:hover { box-shadow: var(--shadow-xl); }

/* Portrait format (the A4 workbook) — slightly narrower so it doesn't
   tower over the square picture books when placed beside them. */
.book__cover--portrait { border-radius: 4px 8px 8px 4px; }

/* The real cover artwork — in normal flow, so it dictates the box height */
.book__cover-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

/* Spine highlight — makes the CSS cover read as a physical book */
.book__cover::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 16px;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.14) 55%, rgba(0,0,0,.06));
  z-index: 3;
}
/* Glossy sheen sweeping across on hover */
.book__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.22) 47%, transparent 58%);
  transform: translateX(-100%);
  transition: transform .8s var(--ease-out);
  pointer-events: none;
}
.book__cover:hover::after { transform: translateX(100%); }

.book__art { position: absolute; inset: 0; }
.book__art--hamisi { background: linear-gradient(160deg, #E07A5F 0%, #F2CC8F 52%, #3D5A80 100%); }
.book__art--pond   { background: linear-gradient(160deg, #3D5A80 0%, #5B7CA6 48%, #A8DCCA 100%); }

.book__cover-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem 1.5rem 1.5rem 2rem;
  color: #fff;
}
.book__cover-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.18;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
  margin: 0;
  color: #fff;
}
.book__cover-author {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .9;
}
.book__cover-langs {
  align-self: flex-start;
  padding: .25rem .625rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .22);
  backdrop-filter: blur(4px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

/* Edition card — cover thumbnail above the details. Used in "All Books".
   object-fit: contain (not cover) so square and portrait covers both show
   in full; the tinted box absorbs whatever letterboxing is left over. */
.card--book {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.book-thumb {
  flex: none;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: var(--sp-4);
  background: linear-gradient(160deg, var(--arctic-mist), #E3EAF2);
  border-bottom: 1px solid var(--border);
}
.book-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: var(--shadow-md);
}
.card--book__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-5);
}
.card--book__body .card__text { flex: 1; }

/* Language / format tag sitting on the thumbnail */
.book-thumb { position: relative; }
.book-thumb__tag {
  position: absolute;
  left: var(--sp-3);
  top: var(--sp-3);
  z-index: 2;
}

.book__badge { margin-bottom: var(--sp-3); }
.book__title { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.book__desc { color: var(--ink-soft); font-size: var(--fs-md); line-height: 1.68; margin-bottom: var(--sp-4); }

/* Author / illustrator credit line */
.book__credits {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-muted);
  margin-bottom: var(--sp-3);
}

/* "Also available in…" note */
.book__editions {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  padding: var(--sp-3) var(--sp-4);
  border-left: 3px solid var(--savanna-gold);
  background: rgba(242, 204, 143, .12);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: var(--sp-5);
}

/* Ticked feature lists (workbook section) */
.check-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.check-list li {
  position: relative;
  padding-left: 1.875rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-soft);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .15em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background-color: var(--pmp-teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='9' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M1 4.2 3.5 6.7 9 1.2' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.check-list--gold li::before { background-color: var(--terracotta); }

.stars { display: inline-flex; gap: 2px; color: var(--savanna-gold-dk); }

/* ==========================================================================
   BOOK ROW + MODAL (Books page)
   A single row of compact cards; clicking one opens the full record in a
   native <dialog>, which gives us focus trapping, Esc-to-close, and an
   inert background for free.
   ========================================================================== */
.book-row {
  display: grid;
  /* Six across in the wide container gives ~200px per card — the same size
     the five-card row had in the standard container, so nothing shrinks. */
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(.875rem, 1.6vw, 1.5rem);
  align-items: stretch;
}

.book-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  cursor: pointer;
  /* `background` must be in this list — without it the light→dark hover
     swap snaps instantly while everything else eases. */
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-soft),
              background var(--t-base) var(--ease-soft);
}

/* Children carry their own transitions so the whole card recolours as one
   unit rather than the text jumping ahead of the panel behind it. */
.book-card__cover,
.book-card__title,
.book-card__sub,
.book-card__more {
  transition: background var(--t-base) var(--ease-soft),
              color var(--t-base) var(--ease-soft),
              border-color var(--t-base) var(--ease-soft);
}
/* HOVER: the whole card turns over to the dark brand palette and lights up —
   a full state change rather than a lift. Card, cover well, and all three
   text levels shift together so nothing is left stranded on the old scheme. */
.book-card:hover,
.book-card:focus-visible {
  transform: translateY(-8px);
  background: var(--grad-dark);
  border-color: var(--savanna-gold);
  box-shadow: 0 22px 50px rgba(224, 122, 95, .3),
              0 0 0 1px rgba(242, 204, 143, .45);
}

.book-card:hover .book-card__cover,
.book-card:focus-visible .book-card__cover {
  background: linear-gradient(160deg, rgba(224, 122, 95, .28), rgba(61, 90, 128, .34));
  border-bottom-color: rgba(242, 204, 143, .32);
}

.book-card:hover .book-card__title,
.book-card:focus-visible .book-card__title { color: #fff; }

.book-card:hover .book-card__sub,
.book-card:focus-visible .book-card__sub { color: var(--light-soft); }

.book-card:hover .book-card__more,
.book-card:focus-visible .book-card__more { color: var(--savanna-gold); }

/* The cover itself brightens and gains a warm halo */
.book-card:hover .book-card__cover img,
.book-card:focus-visible .book-card__cover img {
  transform: scale(1.06);
  box-shadow: var(--shadow-lg), 0 0 22px rgba(242, 204, 143, .55);
}

/* Cover well — object-fit: contain so square and portrait covers both fit */
.book-card__cover {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: var(--sp-4);
  background: linear-gradient(160deg, var(--arctic-mist), #E3EAF2);
  border-bottom: 1px solid var(--border);
}
.book-card__cover img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-base) var(--ease-out);
}
.book-card:hover .book-card__cover img { transform: scale(1.045); }

.book-card__tag {
  position: absolute;
  left: var(--sp-3);
  top: var(--sp-3);
  z-index: 2;
}

.book-card__meta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
  padding: var(--sp-4);
}
.book-card__title {
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.28;
  color: var(--ink);
}
.book-card__sub {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  margin-top: auto;
}
.book-card__more {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.book-card:hover .book-card__more svg { transform: translateX(3px); }
.book-card__more svg { transition: transform var(--t-base) var(--ease-out); }

/* ---- The dialog ---- */
.book-modal {
  width: min(940px, calc(100vw - 2rem));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  border-radius: var(--r-xl);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.book-modal::backdrop {
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.book-modal[open] { animation: modalIn .34s var(--ease-out); }
.book-modal[open]::backdrop { animation: fadeIn .34s var(--ease-soft); }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.book-modal__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  z-index: 10;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: background var(--t-fast) var(--ease-soft), transform var(--t-fast) var(--ease-out);
}
.book-modal__close:hover { background: var(--terracotta); color: #fff; transform: rotate(90deg); }

.book-modal__body {
  max-height: min(88vh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ---- Detail record (lives in the page, cloned into the dialog) ---- */
.book-detail {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.75rem, 3vw, 2.75rem);
}
.book-detail__cover {
  position: relative;
  align-self: start;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--arctic-mist);
  line-height: 0;
}
.book-detail__cover img { display: block; width: 100%; height: auto; }

.book-detail__title { font-size: var(--fs-2xl); margin-bottom: var(--sp-2); }
.book-detail__body .book__desc { font-size: var(--fs-base); }
.book-detail__section-title {
  font-size: var(--fs-md);
  font-family: var(--font-display);
  font-weight: 600;
  margin: var(--sp-6) 0 var(--sp-3);
}

/* PROGRESSIVE ENHANCEMENT — note the direction of these defaults.
   Without JavaScript the full records are visible as ordinary stacked
   sections and the (non-functional) card row is hidden. A one-line inline
   script in <head> adds .js-dialog before first paint, which flips it to the
   card-row-plus-modal presentation. Defaulting this way round means a failed
   or blocked script degrades to readable content rather than a dead row of
   buttons — and it avoids any flash of the wrong layout. */
.book-row { display: none; }
.js-dialog .book-row { display: grid; }

.book-details { display: block; }
.js-dialog .book-details { display: none; }

.book-details > .book-detail {
  border-top: 1px solid var(--border);
  padding-inline: 0;
}
.book-details > .book-detail:first-child { border-top: 0; }

@media (max-width: 1080px) {
  .book-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .book-detail { grid-template-columns: 1fr; }
  .book-detail__cover { max-width: 240px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .book-row { grid-template-columns: repeat(2, 1fr); }
  .book-card__meta { padding: var(--sp-3); }
  .book-card__title { font-size: .875rem; }
  .book-modal {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
  }
  .book-modal__body { max-height: 100vh; }
}

/* ---- Globe / Finland ↔ Africa connection (Books) ---- */
.globe-wrap { max-width: 620px; margin-inline: auto; }
.globe-sphere { fill: rgba(61, 90, 128, .18); stroke: rgba(226, 232, 240, .2); stroke-width: 1; }
.globe-grid { fill: none; stroke: rgba(226, 232, 240, .12); stroke-width: .8; }
.globe-land { fill: rgba(242, 204, 143, .2); stroke: rgba(242, 204, 143, .4); stroke-width: 1; }

.globe-arc {
  fill: none;
  stroke: url(#arcGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
}
.is-visible .globe-arc { animation: draw 2.2s var(--ease-out) .3s forwards; }

.globe-city { fill: var(--terracotta); }
.globe-city--fi { fill: var(--pmp-teal-lt); }
.globe-halo { fill: none; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 2.8s var(--ease-soft) infinite; }
.globe-city-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  fill: var(--light);
}

/* ---- Parenting Flower / Emotional Vocabulary wheel (Workshops) ---- */
/* Flower on the left, caption and session facts on the right.
   The column split is weighted toward the flower (1.35 : 1) so it reads a
   little larger than a plain 50/50 without dominating the section.
   Everything inside the SVG is in viewBox units, so it scales proportionally. */
.flower-stage {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.flower-wrap {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}
.flower { width: 100%; height: auto; }

@media (max-width: 960px) {
  .flower-stage { grid-template-columns: 1fr; gap: var(--sp-6); }
  .flower-wrap { max-width: 480px; }
}

/* ---- Petals -----------------------------------------------------------------
   Two rules make this work, and breaking either one visibly wrecks the flower:

   1. The rotate() that positions each petal around the circle lives on the
      wrapping <g class="petal-wrap">, NEVER on the petal itself. A CSS
      `transform` REPLACES an element's `transform` attribute rather than
      combining with it, so a petal carrying both would snap back to 12 o'clock
      the instant it was hovered.

   2. The wrapper must have NO transform-origin of its own. `rotate(72 200 200)`
      already encodes its own pivot; adding transform-origin:200px 200px on top
      composes to a rotation about (400,400) and flings the petals off-centre.

   The petal's own scale uses an explicit translate → scale → translate instead
   of transform-origin, so it doesn't depend on how a given browser resolves
   transform-box defaults for SVG. Deterministic everywhere. */
.petal-wrap {
  /* Intentionally no transform properties here — see note 2 above. */
  pointer-events: auto;
}

.petal {
  cursor: pointer;
  transform-box: view-box;
  transform-origin: 0 0;          /* raw user units; the translates do the pivoting */
  transition: transform var(--t-base) var(--ease-out),
              filter var(--t-base) var(--ease-out),
              opacity var(--t-base) var(--ease-soft);
  opacity: .88;
}
.petal:hover, .petal:focus-visible, .petal.is-active {
  /* Scale about the flower centre (200,200) without relying on transform-origin */
  transform: translate(200px, 200px) scale(1.09) translate(-200px, -200px);
  opacity: 1;
  filter: drop-shadow(0 0 22px rgba(242, 204, 143, .75));
  outline: none;
}
/* Keyboard focus needs a visible ring that isn't just the glow */
.petal:focus-visible { stroke: #0F172A; stroke-width: 2.5; }
.petal-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  fill: var(--ink);
  pointer-events: none;
  text-transform: uppercase;
}
.flower-core {
  fill: url(#coreGrad);
  animation: coreBreath 4s var(--ease-soft) infinite alternate;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes coreBreath {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
.flower-core-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  fill: var(--ink);
  pointer-events: none;
}

/* Caption panel beside the flower — swaps content as petals are hovered */
.flower-tip {
  min-height: 152px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: opacity var(--t-base) var(--ease-soft), transform var(--t-base) var(--ease-out);
}
.flower-tip__topic {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--sp-2);
  color: var(--ink);
}
.flower-tip__quote {
  font-style: italic;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.7;
}
.flower-tip.is-swapping { opacity: 0; transform: translateY(6px); }

/* Session facts, stacked under the caption in the right-hand column */
.flower-meta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

@media (max-width: 720px) {
  .flower-tip { min-height: 0; padding: var(--sp-5); }
}

/* ==========================================================================
   MARQUEE — slowly drifting card row (About: "The Path")
   --------------------------------------------------------------------------
   The track holds the cards TWICE and translates by exactly -50%, so the
   second set arrives precisely where the first began — a seamless loop with
   no visible jump. The duplicate set is aria-hidden so screen readers and
   search engines only ever see the cards once.

   It pauses on hover and on keyboard focus, and is disabled outright for
   anyone who prefers reduced motion (drifting content is a common trigger
   for vestibular discomfort).
   ========================================================================== */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-4);
  /* Fade the cards out at both edges instead of cutting them off hard */
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee__track {
  display: flex;
  gap: var(--sp-4);
  width: max-content;
  animation: marqueeDrift var(--marquee-speed, 46s) linear infinite;
  will-change: transform;
}
@keyframes marqueeDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Pause when the reader engages with it */
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

/* ---- The cards ---- */
.path-card {
  flex: none;
  width: clamp(240px, 26vw, 300px);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease-out),
              box-shadow .3s var(--ease-out),
              border-color .3s var(--ease-soft);
}

/* Hover: lift, warm glow, and a small settle-wiggle */
.marquee:hover .path-card:hover,
.path-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--terracotta-lt);
  box-shadow: 0 18px 44px rgba(224, 122, 95, .28),
              0 0 0 1px rgba(224, 122, 95, .34);
  outline: none;
  animation: cardWiggle .55s var(--ease-soft);
}
@keyframes cardWiggle {
  0%   { rotate: 0deg; }
  25%  { rotate: -1.1deg; }
  55%  { rotate: .8deg; }
  80%  { rotate: -.35deg; }
  100% { rotate: 0deg; }
}

.path-card__year {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--sp-2);
}
.path-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}
.path-card__text {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* Step number, echoing the timeline it replaces */
.path-card__step {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(224, 122, 95, .12);
  color: var(--terracotta);
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.marquee-hint {
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  text-align: center;
  margin-top: var(--sp-3);
}

/* Motion off — becomes a normal horizontally-scrollable row */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
    scroll-snap-type: x mandatory;
  }
  .marquee__track { animation: none; width: auto; }
  .path-card { scroll-snap-align: start; }
  .marquee:hover .path-card:hover,
  .path-card:focus-visible { animation: none; }
}

/* ---- Timeline (About) ---- */
.timeline { position: relative; padding-left: var(--sp-7); }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--terracotta), var(--savanna-gold), var(--pmp-teal));
}
.timeline__item { position: relative; padding-bottom: var(--sp-5); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(var(--sp-7) * -1);
  top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--terracotta);
  box-shadow: 0 0 0 4px rgba(224, 122, 95, .12);
}
.timeline__year {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--sp-1);
}
.timeline__title { font-size: var(--fs-md); font-family: var(--font-display); font-weight: 600; margin-bottom: var(--sp-1); }
.timeline__text { font-size: var(--fs-sm); color: var(--ink-soft); }

/* ---- Headshot with geometric gold/terracotta frame (About) ---- */
.headshot {
  position: relative;
  width: min(320px, 78vw);
  margin-inline: auto;
  aspect-ratio: 1;
}
.headshot__frame {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: conic-gradient(from 210deg,
    var(--savanna-gold), var(--terracotta), var(--pmp-teal), var(--savanna-gold));
  animation: spinSlow 24s linear infinite;
  z-index: 0;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

.headshot__mask {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: var(--arctic-paper);
  z-index: 1;
}
.headshot__img {
  position: relative;
  z-index: 2;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
/* Decorative geometric corner marks — Nordic structure meets Savanna warmth */
.headshot__corner {
  position: absolute;
  width: 44px; height: 44px;
  z-index: 3;
  border: 3px solid var(--savanna-gold-dk);
}
.headshot__corner--tl { top: -22px; left: -22px; border-right: 0; border-bottom: 0; }
.headshot__corner--br { bottom: -22px; right: -22px; border-left: 0; border-top: 0; border-color: var(--terracotta); }

/* PMP credential seal */
.cred-seal {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-pill);
  background: rgba(61, 90, 128, .08);
  border: 1.5px solid rgba(61, 90, 128, .22);
}
.cred-seal__mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--pmp-teal);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: -.02em;
}
.cred-seal__label { font-size: var(--fs-xs); color: var(--ink-muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.cred-seal__value { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }

/* ==========================================================================
   11. FORMS
   ========================================================================== */
.form { display: grid; gap: var(--sp-5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }

.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}
.field__label .req { color: var(--terracotta); margin-left: 2px; }
.field__hint { font-size: var(--fs-xs); color: var(--ink-muted); }

.input, .select, .textarea {
  width: 100%;
  padding: 0.8125rem 1rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-base);
  line-height: 1.5;
  transition: border-color var(--t-fast) var(--ease-soft),
              box-shadow var(--t-fast) var(--ease-soft),
              background var(--t-fast) var(--ease-soft);
}
.input::placeholder, .textarea::placeholder { color: #9AA7B8; }

.input:hover, .select:hover, .textarea:hover { border-color: #AEBCCD; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(224, 122, 95, .14);
}
.textarea { resize: vertical; min-height: 150px; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
  cursor: pointer;
}

.input.has-error, .select.has-error, .textarea.has-error {
  border-color: #DC2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .1);
}
.field__error {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #DC2626;
}

/* Honeypot — visually hidden but not display:none, so bots still fill it */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Inquiry-type radio cards */
.inquiry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.inquiry-opt { position: relative; }
.inquiry-opt input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.inquiry-opt__box {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: border-color var(--t-fast) var(--ease-soft),
              background var(--t-fast) var(--ease-soft),
              box-shadow var(--t-fast) var(--ease-soft);
}
.inquiry-opt input:hover + .inquiry-opt__box { border-color: #AEBCCD; }
.inquiry-opt input:checked + .inquiry-opt__box {
  border-color: var(--terracotta);
  background: rgba(224, 122, 95, .06);
  box-shadow: 0 0 0 3px rgba(224, 122, 95, .12);
}
.inquiry-opt input:focus-visible + .inquiry-opt__box { outline: 2px solid var(--pmp-teal); outline-offset: 2px; }
.inquiry-opt__icon { font-size: 1.125rem; line-height: 1; }

/* Alerts (used on contact.php error render and thank-you) */
.alert {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  line-height: 1.6;
  border: 1.5px solid;
}
.alert--error   { background: #FEF2F2; border-color: #FCA5A5; color: #991B1B; }
.alert--success { background: #F0FDF4; border-color: #86EFAC; color: #14532D; }
.alert ul { margin: var(--sp-2) 0 0; padding-left: var(--sp-5); }
.alert li { list-style: disc; }

/* Contact info list */
.contact-item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact-item__icon {
  width: 44px; height: 44px;
  flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: rgba(224, 122, 95, .1);
  color: var(--terracotta);
}
.contact-item__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 2px; }
.contact-item__value { font-size: var(--fs-md); font-weight: 500; color: var(--ink); }

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--grad-dark);
  color: var(--light-soft);
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-5);
  position: relative;
  isolation: isolate;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border-dark);
}
.footer-brand .brand { color: #fff; }
.footer-brand .brand__role { color: var(--savanna-gold); }
.footer-tagline { font-size: var(--fs-sm); line-height: 1.68; margin-top: var(--sp-4); max-width: 34ch; }

.footer-head {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-4);
}
.footer-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-list a { font-size: var(--fs-sm); color: var(--light-soft); }
.footer-list a:hover { color: var(--savanna-gold); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  font-size: var(--fs-xs);
  color: #8397AE;
}
.footer-social { display: flex; gap: var(--sp-2); }
.footer-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  color: var(--light-soft);
  transition: all var(--t-base) var(--ease-soft);
}
.footer-social a:hover {
  color: var(--nordic-deep);
  background: var(--savanna-gold);
  border-color: var(--savanna-gold);
  transform: translateY(-2px);
}

/* ==========================================================================
   13. UTILITIES
   ========================================================================== */
.tc { text-align: center; }
.tl { text-align: left; }
.mx-auto { margin-inline: auto; }
/* Spacing utilities. These are deliberately one step tighter than the raw
   --sp scale: the pages use .mt-7 / .mt-8 liberally, and at full scale that
   was the single biggest source of page length. Remapping here tightens
   every page at once without touching a line of HTML. */
.mt-0 { margin-top: 0; } .mt-3 { margin-top: var(--sp-2); } .mt-4 { margin-top: var(--sp-3); }
.mt-5 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-5); } .mt-7 { margin-top: var(--sp-5); }
.mt-8 { margin-top: var(--sp-6); }
.mb-0 { margin-bottom: 0; } .mb-3 { margin-bottom: var(--sp-2); } .mb-4 { margin-bottom: var(--sp-3); }
.mb-5 { margin-bottom: var(--sp-4); } .mb-6 { margin-bottom: var(--sp-5); } .mb-7 { margin-bottom: var(--sp-5); }
.maxw-60 { max-width: 60ch; }
.relative { position: relative; }
.of-hidden { overflow: hidden; }

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

/* ==========================================================================
   DUO — two large cards side by side, spanning the container width.
   Used to pair the globe + CTA (books) and the orbit + radar (consultancy).
   ========================================================================== */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 2.4vw, 2rem);
  align-items: stretch;
}

.duo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.4vw, 2.125rem);
  border-radius: var(--r-2xl);
  overflow: hidden;
  isolation: isolate;
}

/* Fills */
.duo-card--dark  { background: var(--grad-dark); color: var(--light); }
.duo-card--teal  { background: var(--grad-fjord); color: var(--light); }
.duo-card--panel {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border-dark);
  color: var(--light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.duo-card h2,
.duo-card h3 { color: #fff; }
.duo-card p  { color: var(--light-soft); }

/* Warm glow bleeding in from a corner */
.duo-card--dark::before,
.duo-card--teal::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 420px; height: 420px;
  top: -170px; right: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 204, 143, .26), transparent 68%);
}
.duo-card--teal::before { background: radial-gradient(circle, rgba(224, 122, 95, .3), transparent 68%); }

/* Visualisation sits directly under the copy.
   It used to carry margin-top:auto to bottom-align paired cards, but when one
   card is taller that opens a large dead gap between the text and the graphic.
   Any leftover height now collects at the bottom of the card instead, which
   reads as breathing room rather than a hole. */
.duo-card__viz { margin-top: var(--sp-4); }

/* Vertically centred variant — for the CTA half */
.duo-card--center {
  justify-content: center;
  text-align: center;
}
.duo-card--center .row { justify-content: center; }

@media (max-width: 960px) {
  .duo { grid-template-columns: 1fr; }
  .duo-card { border-radius: var(--r-xl); }
}

/* CTA band */
.cta-band {
  position: relative;
  border-radius: var(--r-2xl);
  padding: clamp(1.75rem, 3.5vw, 3rem);
  background: var(--grad-fjord);
  color: var(--light);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--light-soft); }
.cta-band::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 460px; height: 460px;
  top: -180px; right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 204, 143, .3), transparent 68%);
}


/* ==========================================================================
   EDITORIAL — magazine treatment for the About long-version
   --------------------------------------------------------------------------
   WHY THIS IS SAFE HERE, AND WHEN IT WOULDN'T BE:
   Multi-column text on a scrolling page forces the reader back UP the screen
   each time a column ends. That is only acceptable while the columned block
   fits inside one viewport. This bio is ~1,600 characters, so at two columns
   the block lands around 380–510px tall — under one screen, so the eye never
   travels backwards.

   If this copy ever grows substantially, drop back to a single column. The
   max-height guard below is a safety net, not decoration.
   ========================================================================== */
.editorial { max-width: 1340px; margin-inline: auto; }

/* Standfirst — letterspaced small caps, newspaper dateline style */
.editorial__dateline {
  display: block;
  font-family: var(--font-body);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-5);
  border-bottom: 2px solid var(--ink);
}

/* The lede runs full width at a larger size before the columns begin */
.editorial__lede {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.1vw + .9rem, 1.375rem);
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: var(--sp-5);
}

/* ---- Broadsheet layout: prose two-thirds, side rail one-third ----------
   The rail earns its space by giving the page somewhere to go — About is a
   common search landing page and previously dead-ended. Splitting the width
   this way also IMPROVES the measure: two columns inside two-thirds of
   1340px is ~430px each (≈54 characters), closer to ideal than three
   columns across the full width was. */
.editorial__layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(2rem, 3.5vw, 3.25rem);
  align-items: start;
}

.editorial__body {
  column-count: 2;
  column-gap: clamp(1.75rem, 2.5vw, 2.5rem);
  column-rule: 1px solid var(--border-strong);   /* hairline between columns */
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  orphans: 2;                                    /* never strand a single line */
  widows: 2;
}
.editorial__body > p {
  margin: 0 0 var(--sp-4);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.editorial__body > p:last-child { margin-bottom: 0; }

/* ---- The rail ---- */
.editorial__rail {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-5));
  padding-left: clamp(1.25rem, 2vw, 2rem);
  border-left: 1px solid var(--border);
}
.editorial__rail-head {
  font-family: var(--font-body);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-4);
  border-bottom: 2px solid var(--terracotta);
}

.rail-post {
  display: block;
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
  color: inherit;
}
.rail-post:last-of-type { border-bottom: 0; margin-bottom: var(--sp-3); }
.rail-post:hover .rail-post__title { color: var(--terracotta); }

.rail-post__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: .6875rem;
  color: var(--ink-muted);
  margin-bottom: var(--sp-2);
}
.rail-post__title {
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: var(--sp-2);
  transition: color var(--t-fast) var(--ease-soft);
}
.rail-post__excerpt {
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ---- Responsive ------------------------------------------------------ */

/* Narrower desktops: keep the rail, drop the prose to one column so the
   measure doesn't collapse */
@media (max-width: 1180px) {
  .editorial { max-width: 1100px; }
  .editorial__layout { grid-template-columns: 1.75fr 1fr; }
  .editorial__body { column-count: 1; column-rule: none; }
}

/* Tablet and below: rail moves beneath the prose as a normal block */
@media (max-width: 900px) {
  .editorial__layout { grid-template-columns: 1fr; }
  .editorial__rail {
    position: static;
    padding-left: 0;
    padding-top: var(--sp-5);
    border-left: 0;
    border-top: 2px solid var(--border-strong);
  }
  /* Three-up once it's full width, rather than a tall stack */
  .editorial__rail-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
  }
  .rail-post { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
}

@media (max-width: 620px) {
  .editorial__rail-list { grid-template-columns: 1fr; }
  .rail-post {
    padding-bottom: var(--sp-4);
    margin-bottom: var(--sp-4);
    border-bottom: 1px solid var(--border);
  }
  .rail-post:last-of-type { border-bottom: 0; }
}

/* Drop cap on the first paragraph of the columned body */
.editorial__body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.55em;
  line-height: .82;
  font-weight: 700;
  color: var(--terracotta);
  padding: .06em .09em 0 0;
  margin-right: .02em;
}

/* Pull quote breaks out across both columns */
.editorial__body .quote {
  column-span: all;
  margin: var(--sp-5) 0;
  padding: var(--sp-4) 0 var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--savanna-gold);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  hyphens: none;
  font-size: var(--fs-lg);
}

/* Anything that shouldn't be split across a column break */
.editorial__body h3,
.editorial__body .quote { break-inside: avoid; }

/* ---- Single column below the breakpoint ------------------------------
   Phones get one column — two columns on a narrow screen would be roughly
   20 characters per line, which is unreadable, and the block would exceed
   the viewport height and reintroduce the scroll-back problem. */
@media (max-width: 860px) {
  .editorial__body {
    column-count: 1;
    column-rule: none;
    text-align: left;
    hyphens: none;
  }
  .editorial__body .quote {
    margin: var(--sp-5) 0;
    padding: var(--sp-3) 0 var(--sp-3) var(--sp-4);
    border-top: 0;
    border-bottom: 0;
    font-size: var(--fs-md);
  }
  .editorial__body > p:first-of-type::first-letter { font-size: 3.1em; }
}

/* Justified text needs decent hyphenation; if the browser lacks it, ragged
   right is the lesser evil at narrow widths. */
@supports not (hyphens: auto) {
  .editorial__body { text-align: left; }
}

/* ---- Long-form prose (About bio, workbook copy) ------------------------
   Narrow measure + tighter leading so the reading column doesn't stretch
   the page. Applied via .container--narrow, which only wraps prose. */
.container--narrow p { max-width: 68ch; }
.container--narrow .lead + p { margin-top: var(--sp-4); }
.stack { gap: var(--sp-3); }
.contact-item__value { line-height: 1.4; }
.timeline { padding-left: var(--sp-6); }
.timeline__title { margin-bottom: 2px; }
.timeline__text { line-height: 1.55; }
.card__text { line-height: 1.6; }
.footer-tagline { margin-top: var(--sp-3); line-height: 1.55; }
.footer-list { gap: 6px; }

/* ==========================================================================
   14. MOTION & SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-d1 { transition-delay: .09s; }
.reveal-d2 { transition-delay: .18s; }
.reveal-d3 { transition-delay: .27s; }
.reveal-d4 { transition-delay: .36s; }

/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-split { grid-template-columns: 1fr; gap: var(--sp-5); }
  .hero-bridge { min-width: 0; padding-block: var(--sp-2); }
  .hero-bridge__rule { display: none; }

  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--split, .grid--sidebar { grid-template-columns: 1fr; }

  .stats { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-7); }

  .shelf { grid-template-columns: 1fr; gap: var(--sp-8); }
  .shelf::after { display: none; }

  .flip { height: 320px; }

}

@media (max-width: 720px) {
  :root { --header-h: 68px; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .inquiry-grid { grid-template-columns: 1fr; }

  .brand__role { display: none; }
  .flip { height: 300px; }
  .timeline { padding-left: var(--sp-6); }
  .timeline::before { left: 6px; }
  .timeline__item::before { left: calc(var(--sp-6) * -1); width: 14px; height: 14px; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .cta-band { border-radius: var(--r-xl); }
  .blob { filter: blur(56px); }
  .blob--a { width: 320px; height: 320px; }
  .blob--b { width: 280px; height: 280px; }
  .blob--c { display: none; }
}

/* ==========================================================================
   16. ACCESSIBILITY & PRINT
   ========================================================================== */
:focus-visible {
  outline: 3px solid var(--pmp-teal);
  outline-offset: 3px;
  border-radius: 3px;
}
.section--dark :focus-visible { outline-color: var(--savanna-gold); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .bridge-path, .globe-arc { stroke-dashoffset: 0; }
  .bridge-node, .radar-point { opacity: 1; }
  .radar-shape { transform: scale(1); }
  .stat__ring-bar { stroke-dashoffset: var(--ring-offset, 68); }
  .blob { animation: none; }
}

@media print {
  .site-header, .mobile-menu, .site-footer, .nav-toggle,
  .blob, .cta-band, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .75em; color: #555; }
}
