/* ============================================================
   THE BENCH — Launch Build
   Stage 06B / Stage 07 consolidated
   Last updated: 2026-06-29
   ============================================================ */

/* 1. DESIGN TOKENS */
:root {
  --bg-base:      #0c1118;
  --bg-raised:    #101820;
  --bg-card:      #152030;
  --bg-card-alt:  #1a2a3c;
  --bg-light:     #f5f1ec;

  --accent:       #b8935c;
  --accent-lt:    #cfa870;
  --gold:         #e0b56e; /* warm gold for icon/label accents; several rules referenced var(--gold) with no token defined */
  --accent-dim:   rgba(184,147,92,0.12);
  --accent-line:  rgba(184,147,92,0.30);

  --text-pri:     #ede8de;
  --text-sec:     #8a97a8;
  --text-muted:   #566070;

  --bdr:          #1c2c3e;
  --bdr-light:    #253547;

  --st-current:   #2a6a70;
  --st-current-bg:rgba(42,106,112,0.15);
  --st-reform:    #906428;
  --st-reform-bg: rgba(144,100,40,0.15);
  --st-watch:     #904e28;
  --st-watch-bg:  rgba(144,78,40,0.15);
  --st-impact:    #2a6a50;
  --st-impact-bg: rgba(42,106,80,0.15);

  --success:      #2f7058;
  --success-bg:   rgba(47,112,88,0.12);
  --error:        #8a3838;
  --error-bg:     rgba(138,56,56,0.12);

  /* Updated: taller nav, wider content */
  --nav-h:        88px;
  --banner-h:     0px;
  --content-w:    1240px;
  --radius:       3px;
  --radius-lg:    8px;

  --font-serif:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* 2. RESET */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--text-pri);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-lt); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* 3. TYPOGRAPHY */
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-pri);
}
h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-pri);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: 0.01em; }
h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-sec); }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.display-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-sec);
}
.small { font-size: 0.85rem; color: var(--text-muted); }
.italic { font-style: italic; }

/* 4. LAYOUT */
.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.section      { padding: 5rem 0; }
.section--lg  { padding: 7rem 0; }
.section--sm  { padding: 3rem 0; }
.section--alt { background: var(--bg-raised); }
.section--card{ background: var(--bg-card); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; }
.grid-2-3 { display: grid; grid-template-columns: 2fr 3fr; gap: 3rem; align-items: start; }

/* Page-intro split: text left, image right. Slightly wider image column. */
.grid-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.text-center { text-align: center; }
.text-right  { text-align: right; }
hr.rule         { border: none; border-top: 1px solid var(--bdr); margin: 2rem 0; }
hr.rule--accent { border-top-color: var(--accent-line); }

/* 5. BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary  { background: var(--accent); color: #1a0f00; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-lt); border-color: var(--accent-lt); color: #1a0f00; }
.btn-outline  { background: transparent; color: var(--text-pri); border-color: var(--bdr-light); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost    { background: transparent; color: var(--accent); border-color: transparent; padding-left: 0; }
.btn-ghost:hover { color: var(--accent-lt); }
.btn-sm       { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-group    { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* 6. BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge--current { background: var(--st-current-bg); color: var(--st-current); border: 1px solid rgba(42,106,112,0.3); }
.badge--reform  { background: var(--st-reform-bg);  color: var(--st-reform);  border: 1px solid rgba(144,100,40,0.3); }
.badge--watch   { background: var(--st-watch-bg);   color: var(--st-watch);   border: 1px solid rgba(144,78,40,0.3); }
.badge--impact  { background: var(--st-impact-bg);  color: var(--st-impact);  border: 1px solid rgba(42,106,80,0.3); }

/* 7. REMOVED LAUNCH BANNER */
.prototype-banner {
  background: #1a0e04;
  border-bottom: 1px solid #3a2a10;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0.45rem 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--banner-h);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 8. NAVIGATION */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11,15,22,0.96);
  border-bottom: 1px solid var(--bdr);
  backdrop-filter: blur(10px);
  height: var(--nav-h);
}
.nav-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo: badge image + text stack */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo img {
  height: 54px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
/* Text stack: always rendered, hidden only on img load error fallback */
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-text strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-pri);
}
.nav-logo-text small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.22rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-links a {
  color: var(--text-sec);
  font-size: 0.88rem;
  font-weight: 400;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius);
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-pri); }
.nav-links a.nav-cta {
  background: var(--accent);
  color: #1a0f00;
  font-weight: 500;
  margin-left: 0.5rem;
  padding: 0.5rem 1.1rem;
}
.nav-links a.nav-cta:hover { background: var(--accent-lt); color: #1a0f00; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--bdr-light);
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text-pri); margin: 4px 0; transition: 0.2s; }

/* Page content offset: banner + nav */
.page-wrapper {
  padding-top: var(--nav-h);
}

/* 9. PAGES */
.page        { display: none; }
.page.active { display: block; }

/* 10. HERO SECTIONS — full-width image above two-column text */
.hero {
  padding: 0 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero--home {
  padding: 0 0 5rem;
  position: relative;
  overflow: hidden;
}
/* Text-only heroes (FAQs, Legal): container is the first child, needs top spacing */
.hero > .container:first-child {
  padding-top: 4.5rem;
}

.hero-eyebrow {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero h1   { margin-bottom: 1.25rem; }
.hero-sub  { font-size: 1.15rem; color: var(--text-sec); line-height: 1.7; margin-bottom: 1.25rem; }
.hero-body { color: var(--text-sec); margin-bottom: 2rem; }

/* Full-width image band */
.hero-visual {
  position: relative;
  width: 100%;
  margin-bottom: 3rem;
  line-height: 0;
}
.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0.90) saturate(0.92);
}
/* Soft bottom gradient — image dissolves into section background */
.hero-visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32%;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-raised) 100%);
  pointer-events: none;
}

/* Two-column text layout below the image */
.hero-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.hero-copy-col { padding-top: 0.35rem; }

/* ==========================================================
   SECTION IMAGE — non-hero context
   ========================================================== */
.section-image {
  position: relative;
  height: clamp(360px, 32vw, 480px);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-base);
}
.section-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.97;
  filter: brightness(0.94) saturate(0.92);
}
.section-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(16,24,32,0.60) 0%,
    rgba(16,24,32,0.10) 30%,
    rgba(16,24,32,0.00) 55%,
    rgba(16,24,32,0.10) 80%,
    rgba(16,24,32,0.45) 100%
  );
}
.section-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(16,24,32,0.20) 0%,
    rgba(16,24,32,0) 20%,
    rgba(16,24,32,0) 76%,
    rgba(16,24,32,0.25) 100%
  );
}

/* ==========================================================
   HOME KNOWLEDGE FEATURE — full-width image above, two-column text below
   ========================================================== */
.home-knowledge-visual {
  position: relative;
  margin-bottom: 2.75rem;
  border-radius: 12px;
  overflow: hidden;
}
.home-knowledge-visual img {
  display: block;
  width: 100%;
  height: auto;
}
.home-knowledge-visual::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16%;
  background: linear-gradient(to bottom, transparent, var(--bg-base));
  pointer-events: none;
}
.home-knowledge-grid {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 4rem;
  align-items: start;
}

/* 11. SECTION HEADERS */
.section-header { margin-bottom: 3rem; }
.section-header--center { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-header p { color: var(--text-sec); margin-top: 1rem; }
.accent-bar { display: block; width: 36px; height: 2px; background: var(--accent); margin: 1.25rem 0; }
.accent-bar--center { margin: 1.25rem auto; }

/* 12. CARDS */
.card {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.card--accent-top  { border-top: 2px solid var(--accent); }
.card--accent-left { border-left: 3px solid var(--accent); }
.card--hover { transition: border-color 0.2s, transform 0.2s; }
.card--hover:hover { border-color: var(--bdr-light); transform: translateY(-2px); }
.card-number { font-family: var(--font-serif); font-size: 2rem; color: var(--accent); opacity: 0.5; margin-bottom: 0.75rem; line-height: 1; }
.card-title  { margin-bottom: 0.5rem; }
.card-body   { color: var(--text-sec); font-size: 0.95rem; }

/* 13. WHEN YOU MAY NEED */
.need-cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.25rem;
}
.need-card {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border-left: 3px solid var(--accent);
}
.need-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.need-card p  { font-size: 0.9rem; color: var(--text-sec); margin: 0; }

/* 14. SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.service-card:hover { border-color: var(--bdr-light); }
.service-card-number { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; margin-bottom: 1rem; }
.service-card h3 { margin-bottom: 0.65rem; }
.service-card p  { font-size: 0.9rem; color: var(--text-sec); margin: 0; }

.service-card--detail { background: var(--bg-card); border: 1px solid var(--bdr); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 1.5rem; }
.service-card--detail h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text-pri); }
.service-card--detail .service-summary { color: var(--text-sec); font-size: 1rem; margin-bottom: 1.25rem; }
.service-detail-list { margin: 0.75rem 0; padding: 0; }
.service-detail-list li { position: relative; padding-left: 1.25rem; font-size: 0.9rem; color: var(--text-sec); margin-bottom: 0.4rem; }
.service-detail-list li::before { content: '—'; position: absolute; left: 0; color: var(--accent); opacity: 0.6; }
.service-sub-heading { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin: 1.25rem 0 0.5rem; }

/* 15. PROCESS STEPS */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.process-step { position: relative; padding: 1.75rem; background: var(--bg-card); border: 1px solid var(--bdr); border-radius: var(--radius-lg); }
.process-step-num { font-family: var(--font-serif); font-size: 2.5rem; color: var(--accent); opacity: 0.35; line-height: 1; margin-bottom: 0.75rem; }
.process-step h3 { margin-bottom: 0.5rem; }
.process-step p  { font-size: 0.9rem; color: var(--text-sec); margin: 0; }

.process-full { display: flex; flex-direction: column; gap: 0; }
.process-full-step { display: grid; grid-template-columns: 80px 1fr; gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--bdr); }
.process-full-step:last-child { border-bottom: none; }
.process-full-num { font-family: var(--font-serif); font-size: 3rem; color: var(--accent); opacity: 0.25; text-align: right; line-height: 1; padding-top: 0.1rem; }
.process-full-content h3 { margin-bottom: 0.65rem; }
.process-full-content p  { color: var(--text-sec); font-size: 0.95rem; margin-bottom: 0.5rem; }
.process-full-content ul { margin: 0.5rem 0 0; padding: 0; }
.process-full-content ul li { position: relative; padding-left: 1.1rem; font-size: 0.9rem; color: var(--text-sec); margin-bottom: 0.3rem; }
.process-full-content ul li::before { content: '—'; position: absolute; left: 0; color: var(--accent); opacity: 0.5; }

/* 16. CALLOUTS */
.callout { padding: 1.5rem 1.75rem; border-radius: var(--radius-lg); border-left: 3px solid; }
.callout--warning { background: rgba(90,70,28,0.12); border-left-color: var(--accent); }
.callout--info    { background: rgba(42,106,112,0.08); border-left-color: var(--st-current); }
.callout--scope   { background: rgba(30,44,60,0.5); border-left-color: var(--bdr-light); }
.callout p { font-size: 0.9rem; color: var(--text-sec); margin: 0; }

/* 17. EVIDENCE WATCH */
.evidence-watch-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 2rem; }
.evidence-watch-grid--full { grid-template-columns: repeat(2,1fr); }
.ew-card {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.ew-card-header { margin-bottom: 1rem; }
.ew-card-title  { font-size: 1rem; font-weight: 600; color: var(--text-pri); margin-top: 0.65rem; margin-bottom: 0; line-height: 1.35; }
.ew-card-summary { font-size: 0.9rem; color: var(--text-sec); margin-bottom: 1rem; line-height: 1.65; }
.ew-card-why { background: var(--accent-dim); border-left: 2px solid var(--accent-line); padding: 0.75rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 1rem; }
.ew-card-why-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.3rem; }
.ew-card-why p { font-size: 0.85rem; color: var(--text-sec); margin: 0; line-height: 1.55; }
.ew-card-meta { border-top: 1px solid var(--bdr); padding-top: 0.85rem; margin-top: auto; display: flex; flex-direction: column; gap: 0.2rem; }
.ew-card-source { font-size: 0.78rem; color: var(--text-muted); }
.ew-card-source span { color: var(--text-sec); }
.ew-card-note { font-size: 0.78rem; font-style: italic; color: var(--text-muted); margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px dashed var(--bdr); line-height: 1.55; }
.ew-disclaimer { background: var(--bg-card); border: 1px solid var(--bdr); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 2rem; font-size: 0.82rem; color: var(--text-muted); font-style: italic; }

/* 18. KNOWLEDGE */
.knowledge-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.knowledge-topic { background: var(--bg-card); border: 1px solid var(--bdr); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.knowledge-topic h4 { font-size: 0.9rem; font-weight: 600; color: var(--text-pri); text-transform: none; letter-spacing: 0; margin-bottom: 0.4rem; }
.knowledge-topic p  { font-size: 0.85rem; color: var(--text-sec); margin: 0; }

/* 19. SUPPORT LIST */
.support-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin: 1.25rem 0; }
.support-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--text-sec); }
.support-list li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.6; flex-shrink: 0; }

/* 20. TECHNICAL ENQUIRY GUIDE */
.router-wrapper { background: var(--bg-card); border: 1px solid var(--bdr); border-radius: var(--radius-lg); padding: 2.5rem; margin: 2rem 0; }
.router-header { margin-bottom: 2rem; }
.router-header h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.router-header p { font-size: 0.9rem; color: var(--text-sec); margin-bottom: 0.5rem; }
.router-disclaimer-text { font-size: 0.8rem; color: var(--text-muted); font-style: italic; border-top: 1px solid var(--bdr); padding-top: 0.75rem; margin-top: 0.75rem; }
.router-progress { display: flex; align-items: center; gap: 0; margin-bottom: 2rem; }
.router-progress-step { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-raised); border: 1px solid var(--bdr-light); color: var(--text-muted); font-size: 0.8rem; font-weight: 600; flex-shrink: 0; transition: all 0.2s; }
.router-progress-step.active { background: var(--accent); border-color: var(--accent); color: #1a0f00; }
.router-progress-step.done   { background: rgba(184,147,92,0.25); border-color: var(--accent-line); color: var(--accent); }
.router-progress-line { flex: 1; height: 1px; background: var(--bdr); margin: 0 0.5rem; }
.router-progress-line.done { background: var(--accent-line); }

.router-question-panel { display: none; }
.router-question-panel.active { display: block; }
.router-question-panel h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.router-question-panel .step-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; display: block; }
.router-options { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.25rem; }
.router-opt-btn { text-align: left; padding: 0.85rem 1.1rem; background: var(--bg-raised); border: 1px solid var(--bdr); border-radius: var(--radius); color: var(--text-sec); font-size: 0.9rem; transition: all 0.15s; }
.router-opt-btn:hover    { border-color: var(--accent-line); color: var(--text-pri); background: var(--accent-dim); }
.router-opt-btn.selected { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.router-result-panel { display: none; padding: 1.75rem; background: var(--bg-raised); border: 1px solid var(--bdr-light); border-radius: var(--radius-lg); margin-top: 1.5rem; }
.router-result-panel.active { display: block; }
.router-result-route { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-line); padding: 0.2rem 0.65rem; border-radius: 2px; margin-bottom: 1rem; }
.router-result-panel h4 { font-size: 1rem; font-weight: 600; color: var(--text-pri); text-transform: none; letter-spacing: 0; margin-bottom: 0.75rem; }
.router-result-body { font-size: 0.9rem; color: var(--text-sec); white-space: pre-line; line-height: 1.7; margin-bottom: 1.5rem; }
.router-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.router-back-btn { background: none; border: 1px solid var(--bdr-light); color: var(--text-sec); padding: 0.6rem 1.1rem; border-radius: var(--radius); font-size: 0.85rem; transition: all 0.15s; }
.router-back-btn:hover { border-color: var(--bdr-light); color: var(--text-pri); }
.router-restart-btn { background: none; border: none; color: var(--text-muted); font-size: 0.82rem; padding: 0; text-decoration: underline; }
.router-restart-btn:hover { color: var(--text-sec); }

/* 21. CONTACT FORM */
.form-wrapper { max-width: 820px; margin: 0 auto; }
.form-prototype-note { background: #1a0e04; border: 1px solid #3a2a10; border-radius: var(--radius); padding: 0.85rem 1.25rem; font-size: 0.82rem; color: var(--accent); margin-bottom: 2rem; font-style: italic; }
.form-section { margin-bottom: 2.5rem; }
.form-section-heading { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); padding-bottom: 0.75rem; border-bottom: 1px solid var(--bdr); margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group--full { grid-column: 1 / -1; }

label { font-size: 0.85rem; font-weight: 500; color: var(--text-sec); }
label .required-mark { color: var(--accent); margin-left: 0.2rem; }
input[type="text"],input[type="email"],input[type="tel"],select,textarea {
  background: var(--bg-raised);
  border: 1px solid var(--bdr-light);
  border-radius: var(--radius);
  color: var(--text-pri);
  padding: 0.65rem 0.9rem;
  width: 100%;
  transition: border-color 0.15s;
}
input[type="text"]:focus,input[type="email"]:focus,input[type="tel"]:focus,select:focus,textarea:focus {
  outline: none;
  border-color: var(--accent);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a97a8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-helper { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }
.checkbox-group { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.5rem; }
.checkbox-item { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.checkbox-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.checkbox-item span { font-size: 0.85rem; color: var(--text-sec); }
.disclaimer-checkbox { background: var(--accent-dim); border: 1px solid var(--accent-line); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.disclaimer-checkbox .checkbox-item { align-items: flex-start; }
.disclaimer-checkbox .checkbox-item span { font-size: 0.88rem; color: var(--text-pri); line-height: 1.55; }
.honeypot-field { display: none !important; visibility: hidden; }
.form-submit-wrap { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--bdr); }
.form-message { display: none; padding: 1.25rem 1.5rem; border-radius: var(--radius-lg); margin-top: 1.25rem; font-size: 0.95rem; }
.form-message.success { display: block; background: var(--success-bg); border: 1px solid rgba(47,112,88,0.3); color: #6abf99; }
.form-message.error   { display: block; background: var(--error-bg);   border: 1px solid rgba(138,56,56,0.3); color: #c47070; }
.form-errors-list { font-size: 0.85rem; color: #c47070; margin-top: 0.75rem; padding: 0; }
.form-errors-list li { padding-left: 1rem; position: relative; margin-bottom: 0.3rem; }
.form-errors-list li::before { content: '·'; position: absolute; left: 0; }
input.field-error,select.field-error,textarea.field-error { border-color: var(--error) !important; }

/* 22. FAQ ACCORDION */
.faq-list { border-top: 1px solid var(--bdr); }
.faq-item { border-bottom: 1px solid var(--bdr); }
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--text-pri);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.15s;
}
.faq-btn:hover { color: var(--accent); }
.faq-btn[aria-expanded="true"] { color: var(--accent); }
.faq-icon { width: 20px; height: 20px; border: 1px solid var(--bdr-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; color: var(--text-muted); }
.faq-btn[aria-expanded="true"] .faq-icon { border-color: var(--accent); color: var(--accent); transform: rotate(45deg); }
.faq-panel { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.faq-panel.open { max-height: 600px; }
.faq-panel-inner { padding: 0 0 1.5rem; color: var(--text-sec); font-size: 0.95rem; line-height: 1.7; }
.faq-panel-inner ul { margin: 0.75rem 0; padding: 0; }
.faq-panel-inner ul li { position: relative; padding-left: 1.1rem; margin-bottom: 0.35rem; }
.faq-panel-inner ul li::before { content: '—'; position: absolute; left: 0; color: var(--accent); opacity: 0.5; }

/* 23. ABOUT SECTIONS */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.do-list li,.do-not-list li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.9rem; color: var(--text-sec); padding: 0.4rem 0; border-bottom: 1px solid var(--bdr); }
.do-list li:last-child,.do-not-list li:last-child { border-bottom: none; }
.do-list li::before     { content: '✓'; color: var(--st-impact); font-size: 0.9rem; flex-shrink: 0; margin-top: 0.1rem; }
.do-not-list li::before { content: '✕'; color: var(--text-muted); font-size: 0.9rem; flex-shrink: 0; margin-top: 0.1rem; }

/* 24. LEGAL */
.legal-section { margin-bottom: 3rem; }
.legal-section h3 { font-size: 1rem; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--bdr); color: var(--text-pri); }
.legal-section p,.legal-section ul { font-size: 0.9rem; color: var(--text-sec); }
.legal-section ul { padding: 0; margin: 0.5rem 0; }
.legal-section ul li { position: relative; padding-left: 1rem; margin-bottom: 0.35rem; }
.legal-section ul li::before { content: '—'; position: absolute; left: 0; color: var(--text-muted); }

/* 25. WHAT TO SEND */
.what-to-send-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin: 1.25rem 0; padding: 0; }
.what-to-send-list li { position: relative; padding-left: 1.1rem; font-size: 0.9rem; color: var(--text-sec); }
.what-to-send-list li::before { content: '—'; position: absolute; left: 0; color: var(--accent); opacity: 0.5; }

/* 26. CTA SECTIONS */
.cta-section { background: var(--bg-card); border-top: 1px solid var(--bdr); padding: 5rem 0; }
.cta-section--accent { background: linear-gradient(135deg, #0c1118 0%, #131e2c 100%); border-top: 1px solid var(--accent-line); }
.cta-inner { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-inner h2 { margin-bottom: 1rem; }
.cta-inner p  { color: var(--text-sec); margin-bottom: 2rem; }

/* 27. FOOTER */
.site-footer { background: #080d12; border-top: 1px solid var(--bdr); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--bdr); margin-bottom: 2rem; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 1rem; opacity: 0.82; object-fit: contain; }
.footer-brand-name { font-family: var(--font-serif); font-size: 1.15rem; color: var(--text-sec); margin-bottom: 1rem; }
.footer-disclaimer { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.footer-col h5 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { font-size: 0.85rem; color: var(--text-muted); transition: color 0.15s; }
.footer-col ul a:hover { color: var(--text-sec); }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer-company { font-size: 0.78rem; color: var(--text-muted); line-height: 1.7; }
.footer-company strong { color: var(--text-sec); }
.footer-contact a { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.footer-contact a:hover { color: var(--accent); }

/* 28. UTILITY */
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:1rem}.mb-4{margin-bottom:2rem}

/* 29. RESPONSIVE */

/* Collapse hero text to single column at 1024px */
@media (max-width: 1024px) {
  .hero-body-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 1100px) {
  .grid-2-3   { grid-template-columns: 1fr; }
  .services-grid,
  .need-cards,
  .process-steps { grid-template-columns: 1fr 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-logo img { height: 44px; }
  .nav-logo-text strong { font-size: 0.88rem; }
  .nav-logo-text small  { font-size: 0.52rem; }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(9,13,20,0.98);
    border-bottom: 1px solid var(--bdr);
    padding: 1rem 1.5rem;
    gap: 0.25rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0; border-radius: 0; font-size: 1rem; }
  .nav-links a.nav-cta { margin: 0.5rem 0 0; text-align: center; border-radius: var(--radius); }
  .nav-toggle { display: block; }

  /* Text-only heroes: reduce top spacing on mobile */
  .hero > .container:first-child { padding-top: 3rem; }
  /* Hero text grid gap tightening */
  .hero-body-grid { gap: 1.5rem; }

  /* Non-hero section-image panel height at mobile */
  .section-image { height: 220px; }

  /* Home knowledge feature: stack to single column on mobile */
  .home-knowledge-grid { grid-template-columns: 1fr; gap: 1.75rem; }

  /* All other grids */
  .services-grid,
  .need-cards,
  .process-steps,
  .evidence-watch-grid,
  .evidence-watch-grid--full,
  .grid-2,
  .grid-3,
  .about-grid,
  .knowledge-topics,
  .support-list,
  .what-to-send-list { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .checkbox-group { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; }

  .section    { padding: 3.5rem 0; }
  .section--lg{ padding: 4.5rem 0; }
}

@media (max-width: 480px) {
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }
  .router-wrapper { padding: 1.5rem; }
  .nav-logo-text { display: none; }  /* hide wordmark on very small screens, badge only */
}

/* 30. FOCUS STYLES */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   Stage 07 prototype visual patch 05
   Purpose: enlarge The Bench brand mark in the header.
--------------------------------------------------------- */

.site-nav {
  min-height: 128px;
}

.nav-inner {
  min-height: 128px;
}

.nav-logo {
  min-width: 430px;
  gap: 1.25rem;
}

.nav-logo img {
  height: 108px;
  max-height: 108px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text strong {
  font-size: 1.75rem;
  letter-spacing: 0.12em;
}

.nav-logo-text small {
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  margin-top: 0.35rem;
}

/* Keep mobile sensible */
@media (max-width: 900px) {
  .site-nav,
  .nav-inner {
    min-height: 86px;
  }

  .nav-logo {
    min-width: auto;
    gap: 0.75rem;
  }

  .nav-logo img {
    height: 60px;
    max-height: 60px;
  }

  .nav-logo-text strong {
    font-size: 1rem;
  }

  .nav-logo-text small {
    font-size: 0.56rem;
  }
}

/* ---------------------------------------------------------
   Stage 07 prototype visual patch 06
   Purpose: increase The Bench header brand by approx. 25%.
--------------------------------------------------------- */

.site-nav {
  min-height: 152px;
}

.nav-inner {
  min-height: 152px;
}

.nav-logo {
  min-width: 540px;
  gap: 1.5rem;
}

.nav-logo img {
  height: 136px;
  max-height: 136px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text strong {
  font-size: 2.15rem;
  letter-spacing: 0.12em;
}

.nav-logo-text small {
  font-size: 1.08rem;
  letter-spacing: 0.18em;
  margin-top: 0.42rem;
}

/* Keep navigation balanced beside larger brand */
.nav-links {
  align-items: center;
}

/* Mobile remains sensible */
@media (max-width: 900px) {
  .site-nav,
  .nav-inner {
    min-height: 94px;
  }

  .nav-logo {
    min-width: auto;
    gap: 0.8rem;
  }

  .nav-logo img {
    height: 68px;
    max-height: 68px;
  }

  .nav-logo-text strong {
    font-size: 1.08rem;
  }

  .nav-logo-text small {
    font-size: 0.62rem;
  }
}

/* ---------------------------------------------------------
   Stage 07 prototype visual patch 07
   Purpose: add breathing room above and below the header brand.
--------------------------------------------------------- */

.site-nav {
  min-height: 178px;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.nav-inner {
  min-height: 150px;
  align-items: center;
}

.nav-logo {
  align-items: center;
}

/* Keep the larger logo but stop it feeling squeezed */
.nav-logo img {
  height: 136px;
  max-height: 136px;
}

/* Slightly improve vertical rhythm of wordmark */
.nav-logo-text {
  justify-content: center;
}

.nav-logo-text strong {
  line-height: 1.05;
}

.nav-logo-text small {
  line-height: 1.1;
}

/* Mobile remains controlled */
@media (max-width: 900px) {
  .site-nav {
    min-height: 104px;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .nav-inner {
    min-height: 82px;
  }

  .nav-logo img {
    height: 68px;
    max-height: 68px;
  }
}

/* ---------------------------------------------------------
   Stage 07 prototype visual patch 09
   Purpose:
   - keep approved larger header/logo
   - stop page headings / labels sitting behind the sticky header
--------------------------------------------------------- */

html {
  scroll-padding-top: 210px;
}

/* Give every page intro section safe breathing room below sticky nav */
.page > .hero:first-child,
.page > section:first-child,
.page .hero:first-child {
  padding-top: clamp(4.5rem, 6vw, 6.5rem);
}

/* Extra clearance for non-home page intros where labels were clipping */
#page-about > section:first-child,
#page-services > section:first-child,
#page-how-it-works > section:first-child,
#page-knowledge > section:first-child,
#page-faqs > section:first-child,
#page-contact > section:first-child {
  padding-top: clamp(5.5rem, 7vw, 7.5rem);
}

/* Anchor/page navigation offset */
.hero,
.section,
section {
  scroll-margin-top: 210px;
}

/* Mobile clearance */
@media (max-width: 900px) {
  html {
    scroll-padding-top: 130px;
  }

  .page > .hero:first-child,
  .page > section:first-child,
  .page .hero:first-child,
  #page-about > section:first-child,
  #page-services > section:first-child,
  #page-how-it-works > section:first-child,
  #page-knowledge > section:first-child,
  #page-faqs > section:first-child,
  #page-contact > section:first-child {
    padding-top: 3.5rem;
  }

  .hero,
  .section,
  section {
    scroll-margin-top: 130px;
  }
}

/* ---------------------------------------------------------
   Stage 07 prototype visual patch 10
   Purpose:
   - keep full-image hero direction
   - stop hero image being too wide / wall-to-wall
   - keep full image visible with premium centred framing
--------------------------------------------------------- */

.hero-visual {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  padding-right: clamp(1.25rem, 3vw, 2.5rem);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* Keep the image large, but not overwhelming, on very wide screens */
@media (min-width: 1500px) {
  .hero-visual {
    max-width: 1280px;
  }
}

/* Mobile: keep full-width feel */
@media (max-width: 768px) {
  .hero-visual {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ---------------------------------------------------------
   Stage 08D — Evidence Readiness Checker
   --------------------------------------------------------- */

/* Homepage preview card */
.erc-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.erc-preview-body { flex: 1; }
.erc-preview-heading {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.25rem;
}
.erc-preview-copy {
  color: var(--text-sec);
  max-width: 620px;
  margin-bottom: 0;
  font-size: 0.97rem;
  line-height: 1.7;
}
.erc-preview-cta { flex-shrink: 0; }

/* Full checker wrapper */
.erc-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 2rem 0;
}

/* Disclaimer header */
.erc-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--bdr);
}
.erc-disclaimer-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

/* Individual question */
.erc-question--hidden { display: none; }
.erc-question-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.erc-question h3 { font-size: 1.1rem; margin-bottom: 1.25rem; }

/* Options */
.erc-options { display: flex; flex-direction: column; gap: 0.6rem; }
.erc-opt-btn {
  text-align: left;
  padding: 0.85rem 1.1rem;
  background: var(--bg-raised);
  border: 1px solid var(--bdr);
  border-radius: var(--radius);
  color: var(--text-sec);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.15s;
}
.erc-opt-btn:hover    { border-color: var(--accent-line); color: var(--text-pri); background: var(--accent-dim); }
.erc-opt-btn.selected { border-color: var(--accent);      color: var(--accent);   background: var(--accent-dim); }

/* Navigation */
.erc-nav { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.erc-back-btn {
  background: none;
  border: 1px solid var(--bdr-light);
  color: var(--text-sec);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.15s;
}
.erc-back-btn:hover { color: var(--text-pri); }

/* Results */
.erc-result { margin-top: 1.5rem; }
.erc-result-inner {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  border: 1px solid;
}
.erc-result-inner--a { background: rgba(47,112,88,0.08);   border-color: rgba(47,112,88,0.3); }
.erc-result-inner--b { background: var(--bg-raised);        border-color: var(--bdr-light); }
.erc-result-inner--c { background: rgba(144,100,40,0.08); border-color: rgba(144,100,40,0.3); }

.erc-result-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid;
  padding: 0.2rem 0.65rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.erc-result-label--a { color: #5fa88a;             border-color: rgba(47,112,88,0.4);   background: rgba(47,112,88,0.12); }
.erc-result-label--b { color: var(--accent);        border-color: var(--accent-line);    background: var(--accent-dim); }
.erc-result-label--c { color: var(--st-reform);     border-color: rgba(144,100,40,0.4);  background: rgba(144,100,40,0.10); }

.erc-result-heading {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-pri);
  font-family: var(--font-sans);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.erc-result-body {
  font-size: 0.92rem;
  color: var(--text-sec);
  line-height: 1.7;
}
.erc-result-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.erc-restart-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-sans);
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}
.erc-restart-btn:hover { color: var(--text-sec); }

/* Responsive */
@media (max-width: 768px) {
  .erc-preview-card {
    flex-direction: column;
    padding: 1.75rem;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .erc-wrapper { padding: 1.5rem; }
}

/* ---------------------------------------------------------
   Stage 08E — Common Evidence Gaps + What To Send Us
   --------------------------------------------------------- */

/* Homepage combined preview: two side-by-side cards */
.home-content-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.home-content-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem 2.25rem;
  display: flex;
  flex-direction: column;
}
.home-content-preview-heading {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.home-content-preview-copy {
  color: var(--text-sec);
  font-size: 0.92rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
}
.home-content-preview-card .btn { align-self: flex-start; }

/* Common Evidence Gaps — numbered card grid */
.gap-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.gap-card {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.gap-card-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  flex-shrink: 0;
  min-width: 2rem;
  text-align: right;
  padding-top: 0.05rem;
}
.gap-card-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-pri);
  line-height: 1.45;
}

/* Shared note style: evidence gap note and what-to-send note */
.gap-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-raised);
  border: 1px solid var(--bdr);
  border-left: 3px solid var(--accent-line);
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  color: var(--text-sec);
  font-style: italic;
  line-height: 1.65;
}

/* What To Send Us — checklist card */
.wts-card {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin: 1.75rem 0;
}
.wts-list {
  columns: 2;
  column-gap: 2rem;
  padding: 0;
  list-style: none;
  margin: 0;
}
.wts-list li {
  break-inside: avoid;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-pri);
  line-height: 1.5;
  margin-bottom: 0.55rem;
}
.wts-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
  flex-shrink: 0;
  margin-top: 0.47em;
}

/* Contact page: reduce double-padding gap between adjacent section--alt blocks */
#evidence-readiness-checker { padding-bottom: 2.5rem; }
#enquiry-guide-section      { padding-top:    2.5rem; }

/* Responsive */
@media (max-width: 768px) {
  .home-content-preview { grid-template-columns: 1fr; }
  .gap-cards            { grid-template-columns: 1fr; }
  .wts-list             { columns: 1; }
  .wts-card             { padding: 1.5rem 1.75rem; }
}

/* =========================================================
   STAGE 08F — EVIDENCE MAP / REVIEW WORKFLOW VISUAL
   ========================================================= */

/* ----------------------------------------------------------
   Homepage preview card
   ---------------------------------------------------------- */
.em-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.em-preview-heading {
  font-size: 1.45rem;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text-pri);
  margin: 0.75rem 0 0;
}
.em-preview-copy {
  font-size: 0.95rem;
  color: var(--text-sec);
  line-height: 1.65;
  margin: 1rem 0 0;
}
.em-preview-stages {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.em-mini-node {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  padding: 0.35rem 0.65rem;
  line-height: 1;
  white-space: nowrap;
}
.em-mini-node--faded { opacity: 0.35; }
.em-mini-arrow {
  color: var(--accent);
  opacity: 0.4;
  font-size: 1rem;
  line-height: 1;
}
.em-preview-cta { flex-shrink: 0; }

/* ----------------------------------------------------------
   Full route — How It Works page
   ---------------------------------------------------------- */
.em-intro {
  font-size: 0.97rem;
  color: var(--text-sec);
  line-height: 1.7;
  max-width: 680px;
  margin-top: 1.5rem;
}
.em-route { margin-top: 2.75rem; }

.em-flow-row {
  display: grid;
  grid-template-columns: 1fr 2.75rem 1fr 2.75rem 1fr;
  align-items: stretch;
}
.em-conn {
  display: flex;
  align-items: center;
  justify-content: center;
}
.em-conn-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
}
.em-turn {
  height: 1.75rem;
  position: relative;
}
.em-turn::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--accent);
  opacity: 0.2;
}
.em-node {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
}
.em-node--terminal {
  border-top: 2px solid var(--accent);
}
.em-stage-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.55;
  line-height: 1;
  margin-bottom: 0.65rem;
}
.em-node-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-pri);
  margin: 0 0 0.6rem;
  line-height: 1.3;
}
.em-node-desc {
  font-size: 0.86rem;
  color: var(--text-sec);
  line-height: 1.6;
  margin: 0;
}
.em-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-raised);
  border: 1px solid var(--bdr);
  border-left: 3px solid var(--accent-line);
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  color: var(--text-sec);
  font-style: italic;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .em-preview-card   { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .em-preview-stages { display: none; }
  .em-flow-row       { display: flex; flex-direction: column; gap: 0.75rem; }
  .em-conn           { display: none; }
  .em-turn           { display: none; }
}

/* =========================================================
   STAGE 08G — OUTPUT TYPES & NOT RIGHT ROUTE
   ========================================================= */

/* ----------------------------------------------------------
   Output Types — Services page
   ---------------------------------------------------------- */
.ot-intro {
  font-size: 0.97rem;
  color: var(--text-sec);
  line-height: 1.7;
  max-width: 680px;
  margin-top: 1.5rem;
}
.ot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.ot-card {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}
.ot-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-pri);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}
.ot-card-desc {
  font-size: 0.82rem;
  color: var(--text-sec);
  line-height: 1.55;
  margin: 0;
}

/* ----------------------------------------------------------
   When Not The Right Route — Services page
   ---------------------------------------------------------- */
.nr-intro {
  font-size: 0.97rem;
  color: var(--text-sec);
  line-height: 1.7;
  max-width: 680px;
  margin-top: 1.5rem;
}
.nr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 2rem;
}
.nr-item {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-left: 2px solid var(--accent-line);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-sec);
  line-height: 1.45;
}

@media (max-width: 1024px) {
  .ot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .ot-grid  { grid-template-columns: 1fr 1fr; }
  .nr-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ot-grid  { grid-template-columns: 1fr; }
}

/* Stage 08H footer logo scale patch */
footer .footer-brand-logo-large {
    width: 64px;
    max-width: 64px;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

/* =========================================================
   STAGE 08I — LEGAL, COOKIE, FOOTER LOGO
   ========================================================= */

/* ----------------------------------------------------------
   Footer logo — header-style treatment, scaled for footer
   ---------------------------------------------------------- */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 1;
  margin-bottom: 0;
}
.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.footer-logo-text strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-pri);
}
.footer-logo-text small {
  display: block;
  font-size: 0.59rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ----------------------------------------------------------
   Cookie banner — bottom of viewport
   ---------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--bg-card);
  border-top: 1px solid var(--bdr-light);
  padding: 1.1rem 2rem;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 200px; }
.cookie-banner-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-pri);
  margin-bottom: 0.3rem;
}
.cookie-banner-copy {
  font-size: 0.8rem;
  color: var(--text-sec);
  line-height: 1.5;
  margin: 0;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
}

/* ----------------------------------------------------------
   Cookie settings panel — modal overlay
   ---------------------------------------------------------- */
.cookie-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 2999;
  display: none;
}
.cookie-panel-overlay.is-visible { display: block; }
.cookie-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3000;
  background: var(--bg-card);
  border: 1px solid var(--bdr-light);
  border-radius: var(--radius-lg);
  width: min(560px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  display: none;
}
.cookie-panel.is-visible { display: block; }
.cookie-panel-inner { display: flex; flex-direction: column; }
.cookie-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.75rem 1rem;
  border-bottom: 1px solid var(--bdr);
}
.cookie-panel-header h3 {
  font-size: 1rem;
  margin: 0;
  color: var(--text-pri);
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.cookie-panel-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  line-height: 1;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.cookie-panel-close:hover { color: var(--text-pri); background: rgba(255,255,255,0.06); }
.cookie-panel-body { padding: 0.5rem 1.75rem; }
.cookie-category {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--bdr);
}
.cookie-category:last-child { border-bottom: none; }
.cookie-category-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}
.cookie-category h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-pri);
  margin: 0 0 0.3rem;
  text-transform: none;
  letter-spacing: 0;
}
.cookie-category p {
  font-size: 0.8rem;
  color: var(--text-sec);
  margin: 0;
  line-height: 1.55;
}
.cookie-always-on {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 0.1rem;
  flex-shrink: 0;
}
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bdr-light);
  border-radius: 22px;
  transition: background 0.2s;
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--accent); }
.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(18px);
  background: #fff;
}
.cookie-panel-footer {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 1rem 1.75rem 1.4rem;
  border-top: 1px solid var(--bdr);
}

@media (max-width: 768px) {
  .cookie-banner-inner  { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
  .cookie-banner-actions { width: 100%; }
}

/* Stage 08I footer logo badge size polish */
footer .footer-logo img,
.site-footer .footer-logo img {
    width: 84px;
    max-width: 84px;
    height: auto;
    flex: 0 0 auto;
}

footer .footer-logo,
.site-footer .footer-logo {
    align-items: center;
    gap: 0.85rem;
}

/* Stage 09C launch cleanup - prototype banner removed */
.prototype-banner,
.prototype-notice,
.build-status-banner {
  display: none !important;
}

/* Stage 09C launch cleanup - remove old prototype banner top offset */
html,
body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.site-header,
header.site-header,
.main-header,
header {
  top: 0 !important;
}

.prototype-banner,
.prototype-notice,
.build-status-banner {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}



/* ---------------------------------------------------------
   Stage 10 homepage clarity / positioning refinement
--------------------------------------------------------- */

.hero-boundary {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(242, 196, 109, 0.26);
  border-radius: 14px;
  background: rgba(242, 196, 109, 0.075);
  color: var(--text-sec);
  font-size: 0.92rem;
  line-height: 1.55;
}

.home-stage10-section {
  position: relative;
}

.stage10-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stage10-card,
.flow-panel,
.output-structure-card,
.scoping-card,
.team-card {
  border: 1px solid var(--bdr);
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  box-shadow: var(--shadow-soft);
}

.stage10-card {
  padding: 1.2rem;
}

.stage10-card h3,
.flow-panel h3,
.output-structure-card h3,
.scoping-card h3,
.team-card h3 {
  margin-bottom: 0.65rem;
}

.stage10-card p,
.flow-panel li,
.output-structure-card p,
.scoping-card p,
.scoping-card li,
.team-card p {
  color: var(--text-sec);
  font-size: 0.92rem;
  line-height: 1.55;
}

.evidence-flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.flow-panel {
  padding: 1.5rem;
}

.flow-panel ul {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  padding-left: 1.1rem;
}

.flow-panel--output {
  border-color: rgba(242, 196, 109, 0.34);
  background: rgba(242, 196, 109, 0.06);
}

.output-structure-card {
  margin-top: 1.25rem;
  padding: 1.5rem;
}

.output-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0;
}

.output-steps span {
  border: 1px solid var(--bdr);
  border-radius: 999px;
  padding: 0.65rem 0.75rem;
  color: var(--text-sec);
  font-size: 0.82rem;
  text-align: center;
  background: rgba(255,255,255,0.03);
}

.stage10-two-col {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: start;
}

.scope-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.scope-pill-grid span {
  border: 1px solid var(--bdr);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: var(--text-sec);
  background: rgba(255,255,255,0.035);
  font-size: 0.88rem;
}

.scoping-card {
  padding: 1.5rem;
}

.scoping-card ol {
  margin-top: 1rem;
  padding-left: 1.25rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.team-card {
  padding: 1.35rem;
}

.team-role {
  color: var(--gold) !important;
  font-size: 0.82rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

@media (max-width: 980px) {
  .stage10-card-grid,
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .output-steps {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .stage10-two-col,
  .evidence-flow-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .stage10-card-grid,
  .team-grid,
  .output-steps {
    grid-template-columns: 1fr;
  }
}


/* ---------------------------------------------------------
   Stage 10 technical topic icon grid
--------------------------------------------------------- */

.technical-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.topic-card {
  border: 1px solid var(--bdr);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255,255,255,0.035);
  min-height: 150px;
}

.topic-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(242, 196, 109, 0.28);
  background: rgba(242, 196, 109, 0.07);
}

.topic-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-icon--fire svg {
  fill: rgba(242, 196, 109, 0.18);
}

.topic-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.topic-card p {
  color: var(--text-sec);
  font-size: 0.86rem;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .technical-topic-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .technical-topic-grid {
    grid-template-columns: 1fr;
  }
}


/* ---------------------------------------------------------
   Stage 10 technical topic layout refinement
--------------------------------------------------------- */

.technical-topics-block {
  margin-top: 2.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--bdr);
}

.technical-topics-block h2 {
  max-width: 760px;
}

.technical-topics-intro {
  color: var(--text-sec);
  max-width: 720px;
  margin-top: 0.8rem;
  line-height: 1.65;
}

.technical-topics-block .technical-topic-grid {
  margin-top: 1.7rem;
}

.technical-topic-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.topic-card {
  min-height: 185px;
  padding: 1.15rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025));
}

.topic-card:hover {
  border-color: rgba(242, 196, 109, 0.34);
  transform: translateY(-1px);
}

.topic-icon svg,
.topic-icon svg path,
.topic-icon svg rect,
.topic-icon svg circle,
.topic-icon svg line,
.topic-icon svg polyline {
  stroke: var(--gold) !important;
  fill: none !important;
  opacity: 1 !important;
}

.topic-icon--fire svg path {
  fill: rgba(242, 196, 109, 0.2) !important;
  stroke: var(--gold) !important;
}

@media (max-width: 980px) {
  .technical-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .technical-topic-grid {
    grid-template-columns: 1fr;
  }
}


/* ---------------------------------------------------------
   Stage 10 scoping-side mini evidence route visual
--------------------------------------------------------- */

.scoping-side {
  display: grid;
  gap: 1rem;
}

.mini-route-visual {
  border: 1px solid rgba(242, 196, 109, 0.22);
  border-radius: 18px;
  padding: 1.3rem;
  background:
    radial-gradient(circle at 20% 10%, rgba(242,196,109,0.12), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.mini-route-header h3 {
  margin-top: 0.35rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.mini-route-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.mini-route-line::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 21px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242,196,109,0.55), transparent);
}

.mini-route-node {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  text-align: center;
}

.mini-route-node span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(242,196,109,0.42);
  background: rgba(12,18,24,0.92);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
}

.mini-route-node strong {
  color: var(--text);
  font-size: 0.76rem;
}

.mini-route-visual p {
  color: var(--text-sec);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-top: 1rem;
}

@media (max-width: 980px) {
  .mini-route-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .mini-route-line::before {
    display: none;
  }
}


/* ---------------------------------------------------------
   Stage 10 vertical route and icon visibility refinement
--------------------------------------------------------- */

.scoping-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.mini-route-visual {
  min-height: 360px;
}

.mini-route-line--vertical {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.15rem 0 1rem;
  position: relative;
}

.mini-route-line--vertical::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 21px;
  width: 1px;
  background: linear-gradient(180deg, rgba(242,196,109,0.6), rgba(242,196,109,0.08));
}

.mini-route-line--vertical .mini-route-node {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.8rem;
  align-items: center;
  text-align: left;
  justify-items: stretch;
  position: relative;
  z-index: 1;
}

.mini-route-line--vertical .mini-route-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(242,196,109,0.42);
  background: rgba(12,18,24,0.96);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 10px 22px rgba(0,0,0,0.25);
}

.mini-route-line--vertical .mini-route-node strong {
  display: block;
  font-size: 0.86rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.mini-route-line--vertical .mini-route-node small {
  display: block;
  color: var(--text-sec);
  font-size: 0.78rem;
  line-height: 1.4;
}

.mini-route-line--vertical + p {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* make the technical topic icons read as visible line icons */
.topic-icon svg,
.topic-icon svg path,
.topic-icon svg rect,
.topic-icon svg circle,
.topic-icon svg line,
.topic-icon svg polyline {
  stroke: var(--gold) !important;
  fill: none !important;
  opacity: 1 !important;
}

.topic-icon:not(.topic-icon--fire) svg path,
.topic-icon:not(.topic-icon--fire) svg rect,
.topic-icon:not(.topic-icon--fire) svg circle {
  fill: rgba(242,196,109,0.10) !important;
  stroke: var(--gold) !important;
}

.topic-icon--fire svg path {
  fill: rgba(242,196,109,0.24) !important;
  stroke: var(--gold) !important;
}

/* tighten the full-width topic section so it does not feel pushed too far down */
.technical-topics-block {
  margin-top: 1.7rem;
  padding-top: 1.75rem;
}


/* ---------------------------------------------------------
   Stage 10 spacing and icon clarity refinement
--------------------------------------------------------- */

/* reduce the dead space before the technical topic grid */
.technical-topics-block {
  margin-top: 0.85rem !important;
  padding-top: 1.15rem !important;
}

/* keep the scoping/review route useful, but stop it forcing too much vertical dead space */
.mini-route-visual {
  min-height: 310px !important;
  padding: 1.15rem !important;
}

.mini-route-line--vertical {
  gap: 0.65rem !important;
  margin: 0.9rem 0 0.75rem !important;
}

.mini-route-line--vertical .mini-route-icon {
  width: 40px !important;
  height: 40px !important;
}

.mini-route-line--vertical .mini-route-node {
  grid-template-columns: 40px 1fr !important;
  gap: 0.75rem !important;
}

.mini-route-line--vertical::before {
  left: 19px !important;
}

/* make the technical area icons clearer and more premium */
.topic-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  margin-bottom: 0.95rem !important;
  border: 1px solid rgba(242, 196, 109, 0.48) !important;
  background:
    radial-gradient(circle at 35% 25%, rgba(242,196,109,0.22), rgba(242,196,109,0.08) 58%, rgba(255,255,255,0.02)) !important;
  box-shadow:
    0 0 0 1px rgba(242, 196, 109, 0.08),
    0 12px 28px rgba(0,0,0,0.28) !important;
}

.topic-icon svg {
  width: 28px !important;
  height: 28px !important;
}

.topic-icon svg,
.topic-icon svg path,
.topic-icon svg rect,
.topic-icon svg circle,
.topic-icon svg line,
.topic-icon svg polyline {
  stroke: var(--gold) !important;
  stroke-width: 2.15 !important;
  fill: none !important;
  opacity: 1 !important;
}

.topic-icon:not(.topic-icon--fire) svg path,
.topic-icon:not(.topic-icon--fire) svg rect,
.topic-icon:not(.topic-icon--fire) svg circle {
  fill: rgba(242,196,109,0.12) !important;
  stroke: var(--gold) !important;
}

.topic-icon--fire svg path {
  fill: rgba(242,196,109,0.28) !important;
  stroke: var(--gold) !important;
}

.topic-card {
  min-height: 175px !important;
  padding: 1.2rem !important;
}

.topic-card h3 {
  font-size: 1.02rem !important;
}

.topic-card p {
  font-size: 0.88rem !important;
}


/* ---------------------------------------------------------
   Stage 10 evidence types card gap fix
--------------------------------------------------------- */

.evidence-types-card {
  margin-top: 1.35rem;
  padding: 1.15rem;
  border: 1px solid rgba(242, 196, 109, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(242,196,109,0.10), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.025));
  box-shadow: var(--shadow-soft);
}

.evidence-types-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.evidence-types-grid span {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  padding: 0.48rem 0.7rem;
  color: var(--text-sec);
  background: rgba(255,255,255,0.035);
  font-size: 0.82rem;
  line-height: 1;
}

.evidence-types-grid span:nth-child(1),
.evidence-types-grid span:nth-child(2),
.evidence-types-grid span:nth-child(3),
.evidence-types-grid span:nth-child(4) {
  border-color: rgba(242,196,109,0.22);
}


/* ---------------------------------------------------------
   Stage 10 left-gap removal for technical topic block
--------------------------------------------------------- */

@media (min-width: 981px) {
  .technical-topics-block {
    margin-top: -10.5rem !important;
    padding-top: 1.15rem !important;
    max-width: 590px;
  }

  .technical-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
  }

  .topic-card {
    min-height: 165px !important;
  }
}

@media (min-width: 1180px) {
  .technical-topics-block {
    margin-top: -11.5rem !important;
  }
}

@media (max-width: 980px) {
  .technical-topics-block {
    margin-top: 1.5rem !important;
    max-width: none;
  }
}


/* ---------------------------------------------------------
   Stage 10 tidy final structure for help/scoping/topics block
   This overrides earlier experimental spacing.
--------------------------------------------------------- */

/* keep the top row tidy */
.stage10-two-col {
  align-items: start !important;
}

/* remove the experimental pull-up and make the topic section full-width again */
@media (min-width: 981px) {
  .technical-topics-block {
    margin-top: 2.2rem !important;
    padding-top: 2rem !important;
    max-width: none !important;
    border-top: 1px solid rgba(255,255,255,0.10) !important;
  }

  .technical-topics-block h2,
  .technical-topics-intro {
    max-width: 760px !important;
  }

  .technical-topic-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    max-width: none !important;
  }
}

/* make topic cards feel deliberate rather than cramped */
.topic-card {
  min-height: 190px !important;
  padding: 1.15rem !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.topic-card h3 {
  font-size: 0.98rem !important;
  line-height: 1.18 !important;
  margin-bottom: 0.55rem !important;
}

.topic-card p {
  font-size: 0.86rem !important;
  line-height: 1.48 !important;
}

/* clearer, bigger icons without overpowering the cards */
.topic-icon {
  width: 46px !important;
  height: 46px !important;
  margin-bottom: 0.9rem !important;
}

.topic-icon svg {
  width: 27px !important;
  height: 27px !important;
}

/* make the right route card compact enough that it does not dominate the row */
.mini-route-visual {
  min-height: auto !important;
}

.mini-route-line--vertical {
  gap: 0.55rem !important;
}

.mini-route-line--vertical .mini-route-node small {
  font-size: 0.75rem !important;
}

/* stop the evidence chip card feeling like another heavy box */
.evidence-types-card {
  margin-top: 1.15rem !important;
}

/* responsive fallbacks */
@media (max-width: 980px) {
  .technical-topics-block {
    margin-top: 2rem !important;
    max-width: none !important;
  }

  .technical-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .technical-topic-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ---------------------------------------------------------
   Stage 10 final help/scoping/topics layout correction
   Purpose:
   - stop topic cards behaving like a narrow left-column block
   - make technical areas full-width, two rows of four
   - improve spacing under headings
   - make icons clearer
--------------------------------------------------------- */

/* give the intro copy more breathing room under the heading */
#page-home .stage10-two-col > div:first-child > h2 + p {
  margin-top: 0.8rem !important;
  line-height: 1.65 !important;
}

/* make typical evidence feel useful without being another heavy section */
#page-home .evidence-types-card {
  margin-top: 1.35rem !important;
  padding: 1.25rem !important;
  min-height: 135px;
}

#page-home .evidence-types-grid {
  gap: 0.62rem !important;
}

#page-home .evidence-types-grid span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.52rem 0.76rem !important;
}

#page-home .evidence-types-grid span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(242,196,109,0.75);
  box-shadow: 0 0 10px rgba(242,196,109,0.25);
}

/* final technical areas section: full width, not left-column */
#page-home .technical-topics-block {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  margin-top: 1.7rem !important;
  padding-top: 1.7rem !important;
  border-top: 1px solid rgba(255,255,255,0.10) !important;
}

/* make heading and intro read cleanly */
#page-home .technical-topics-block h2 {
  max-width: 940px !important;
  margin-bottom: 0 !important;
}

#page-home .technical-topics-intro {
  max-width: 900px !important;
  margin-top: 0.85rem !important;
  margin-bottom: 1.45rem !important;
  line-height: 1.65 !important;
}

/* force proper full-width 4 by 2 grid on desktop */
@media (min-width: 981px) {
  #page-home .technical-topic-grid {
    width: 100% !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }
}

/* wider, shorter, cleaner topic cards */
#page-home .topic-card {
  min-height: 155px !important;
  padding: 1.15rem !important;
  border-radius: 18px !important;
  display: grid !important;
  grid-template-rows: auto auto 1fr;
  align-content: start;
}

#page-home .topic-card h3 {
  font-size: 1rem !important;
  line-height: 1.18 !important;
  margin-bottom: 0.52rem !important;
}

#page-home .topic-card p {
  font-size: 0.86rem !important;
  line-height: 1.48 !important;
}

/* clearer icons */
#page-home .topic-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 16px !important;
  margin-bottom: 0.92rem !important;
  border: 1px solid rgba(242,196,109,0.52) !important;
  background:
    radial-gradient(circle at 35% 25%, rgba(242,196,109,0.28), rgba(242,196,109,0.10) 62%, rgba(255,255,255,0.025)) !important;
}

#page-home .topic-icon svg {
  width: 31px !important;
  height: 31px !important;
}

#page-home .topic-icon svg,
#page-home .topic-icon svg path,
#page-home .topic-icon svg rect,
#page-home .topic-icon svg circle,
#page-home .topic-icon svg line,
#page-home .topic-icon svg polyline {
  stroke: var(--gold) !important;
  stroke-width: 2.2 !important;
  fill: none !important;
  opacity: 1 !important;
}

#page-home .topic-icon:not(.topic-icon--fire) svg path,
#page-home .topic-icon:not(.topic-icon--fire) svg rect,
#page-home .topic-icon:not(.topic-icon--fire) svg circle {
  fill: rgba(242,196,109,0.13) !important;
  stroke: var(--gold) !important;
}

#page-home .topic-icon--fire svg path {
  fill: rgba(242,196,109,0.3) !important;
  stroke: var(--gold) !important;
}

/* route card should support the section, not dominate it */
#page-home .mini-route-visual {
  min-height: auto !important;
}

#page-home .mini-route-line--vertical {
  gap: 0.52rem !important;
}

/* responsive */
@media (max-width: 980px) {
  #page-home .technical-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  #page-home .technical-topic-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ---------------------------------------------------------
   Stage 10 detailed typical evidence card
--------------------------------------------------------- */

#page-home .evidence-types-card--detailed {
  min-height: 330px !important;
  padding: 1.35rem !important;
}

#page-home .evidence-types-intro {
  color: var(--text-sec);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-top: 0.75rem;
  margin-bottom: 1.05rem;
  max-width: 640px;
}

#page-home .evidence-types-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

#page-home .evidence-detail-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}

#page-home .evidence-detail-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 1px solid rgba(242,196,109,0.42);
  background: rgba(242,196,109,0.08);
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
}

#page-home .evidence-detail-card h3 {
  font-size: 0.88rem;
  line-height: 1.2;
  margin-bottom: 0.22rem;
  color: var(--text);
}

#page-home .evidence-detail-card p {
  color: var(--text-sec);
  font-size: 0.78rem;
  line-height: 1.42;
}

@media (max-width: 640px) {
  #page-home .evidence-types-detail-grid {
    grid-template-columns: 1fr;
  }
}


/* ---------------------------------------------------------
   Stage 10 final evidence icon and review route alignment
--------------------------------------------------------- */

/* centre evidence icons more cleanly inside their boxes */
#page-home .evidence-detail-icon {
  display: grid !important;
  place-items: center !important;
  text-align: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 0.95rem !important;
}

/* make the pencil/drawings icon slightly larger so it reads clearly */
#page-home .evidence-detail-icon:has(+ div h3) {
  line-height: 1 !important;
}

/* move the review route card down slightly to visually align with Typical Evidence */
#page-home .mini-route-visual {
  margin-top: 1.25rem !important;
}

/* keep the scoping card spacing tidy after moving the route card */
#page-home .scoping-side {
  gap: 0 !important;
}


/* ---------------------------------------------------------
   Stage 10 final alignment and topic icon definition
--------------------------------------------------------- */

/* line Review Route up better with the Typical Evidence card */
#page-home .mini-route-visual {
  margin-top: 2.35rem !important;
}

/* make only the icon artwork inside the topic boxes clearer */
#page-home .topic-icon svg,
#page-home .topic-icon svg path,
#page-home .topic-icon svg rect,
#page-home .topic-icon svg circle,
#page-home .topic-icon svg line,
#page-home .topic-icon svg polyline {
  stroke: #f2c46d !important;
  stroke-width: 2.85 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 5px rgba(242,196,109,0.42));
}

/* keep the nice gradient box, but improve icon contrast inside it */
#page-home .topic-icon:not(.topic-icon--fire) svg path,
#page-home .topic-icon:not(.topic-icon--fire) svg rect,
#page-home .topic-icon:not(.topic-icon--fire) svg circle {
  fill: rgba(242,196,109,0.18) !important;
  stroke: #f2c46d !important;
}

/* fire icon can stay filled but needs sharper definition */
#page-home .topic-icon--fire svg path {
  fill: rgba(242,196,109,0.34) !important;
  stroke: #f2c46d !important;
}

/* make the icon itself slightly larger without changing the surrounding card */
#page-home .topic-icon svg {
  width: 33px !important;
  height: 33px !important;
}


/* ---------------------------------------------------------
   Stage 10 final topic icon tuning
   Purpose: keep icons clear but reduce over-bright/thick look
--------------------------------------------------------- */

#page-home .topic-icon svg {
  width: 31px !important;
  height: 31px !important;
}

#page-home .topic-icon svg,
#page-home .topic-icon svg path,
#page-home .topic-icon svg rect,
#page-home .topic-icon svg circle,
#page-home .topic-icon svg line,
#page-home .topic-icon svg polyline {
  stroke: #f2c46d !important;
  stroke-width: 2.25 !important;
  opacity: 0.92 !important;
  filter: drop-shadow(0 0 3px rgba(242,196,109,0.24)) !important;
}

#page-home .topic-icon:not(.topic-icon--fire) svg path,
#page-home .topic-icon:not(.topic-icon--fire) svg rect,
#page-home .topic-icon:not(.topic-icon--fire) svg circle {
  fill: rgba(242,196,109,0.10) !important;
  stroke: #f2c46d !important;
}

#page-home .topic-icon--fire svg path {
  fill: rgba(242,196,109,0.22) !important;
  stroke: #f2c46d !important;
}

#page-home .topic-icon {
  border-color: rgba(242,196,109,0.44) !important;
  background:
    radial-gradient(circle at 35% 25%, rgba(242,196,109,0.20), rgba(242,196,109,0.08) 62%, rgba(255,255,255,0.02)) !important;
}


/* ---------------------------------------------------------
   Stage 10C homepage section polish
   Purpose:
   - bring outputs / before-after / process sections up to the same visual level
   - keep the core challenge section as a quieter editorial pause
--------------------------------------------------------- */

/* WHAT THE BENCH PROVIDES */

#page-home .home-outputs-upgrade .section-header {
  text-align: left;
  max-width: 860px;
  margin-left: 0;
  margin-right: auto;
}

#page-home .home-outputs-upgrade .stage10-card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}

#page-home .home-outputs-upgrade .stage10-card {
  position: relative;
  min-height: 178px;
  padding: 1.25rem !important;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(242,196,109,0.10), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
}

#page-home .home-outputs-upgrade .stage10-card::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(242,196,109,0.65), transparent);
}

#page-home .output-card-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 0.95rem;
  border: 1px solid rgba(242,196,109,0.42);
  background: rgba(242,196,109,0.08);
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

#page-home .home-outputs-upgrade .stage10-card h3 {
  font-size: 1.02rem;
  line-height: 1.2;
}

#page-home .home-outputs-upgrade .stage10-card p {
  font-size: 0.88rem;
  line-height: 1.52;
}

/* BEFORE AND AFTER */

#page-home .home-before-after-upgrade .section-header {
  text-align: left;
  max-width: 900px;
  margin-left: 0;
  margin-right: auto;
}

#page-home .home-before-after-upgrade .evidence-flow-grid {
  gap: 1rem !important;
}

#page-home .home-before-after-upgrade .flow-panel {
  position: relative;
  padding: 1.45rem !important;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(242,196,109,0.08), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025));
}

#page-home .home-before-after-upgrade .flow-panel h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

#page-home .home-before-after-upgrade .flow-panel h3::before {
  content: "IN";
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(242,196,109,0.35);
  background: rgba(242,196,109,0.07);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

#page-home .home-before-after-upgrade .flow-panel--output h3::before {
  content: "OUT";
}

#page-home .home-before-after-upgrade .flow-panel ul {
  padding-left: 0 !important;
  list-style: none;
}

#page-home .home-before-after-upgrade .flow-panel li {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 0.65rem;
  align-items: start;
}

#page-home .home-before-after-upgrade .flow-panel li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: rgba(242,196,109,0.78);
  box-shadow: 0 0 10px rgba(242,196,109,0.22);
}

#page-home .home-before-after-upgrade .output-structure-card {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025));
}

#page-home .home-before-after-upgrade .output-steps span {
  border-color: rgba(242,196,109,0.18);
}

/* HOW IT WORKS */

#page-home .home-process-upgrade .section-header,
#page-home .home-process-upgrade > .container > h2 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

#page-home .home-process-upgrade .process-card,
#page-home .home-process-upgrade .step-card,
#page-home .home-process-upgrade .workflow-card,
#page-home .home-process-upgrade .how-card {
  position: relative;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(242,196,109,0.09), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025)) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
}

#page-home .home-process-upgrade .process-card::after,
#page-home .home-process-upgrade .step-card::after,
#page-home .home-process-upgrade .workflow-card::after,
#page-home .home-process-upgrade .how-card::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(242,196,109,0.55), transparent);
}

/* fallback for the existing numbered cards if they use generic card classes */
#page-home .home-process-upgrade [class*="step"],
#page-home .home-process-upgrade [class*="process"] {
  transition: border-color 0.2s ease, transform 0.2s ease;
}

#page-home .home-process-upgrade [class*="step"]:hover,
#page-home .home-process-upgrade [class*="process"]:hover {
  border-color: rgba(242,196,109,0.28);
  transform: translateY(-1px);
}

/* responsive */

@media (max-width: 1100px) {
  #page-home .home-outputs-upgrade .stage10-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  #page-home .home-outputs-upgrade .stage10-card-grid,
  #page-home .home-before-after-upgrade .evidence-flow-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ---------------------------------------------------------
   Stage 10D final homepage polish
   Purpose:
   - clearer process numbers
   - hover polish for services and team cards
   - return wall build-up image in the best-fit location
--------------------------------------------------------- */

/* Clearer How It Works numbers */
#page-home .home-process-upgrade .process-number,
#page-home .home-process-upgrade .step-number,
#page-home .home-process-upgrade .workflow-number,
#page-home .home-process-upgrade .card-number,
#page-home .home-process-upgrade [class*="number"] {
  color: rgba(242,196,109,0.82) !important;
  opacity: 1 !important;
  text-shadow: 0 0 14px rgba(242,196,109,0.16);
}

/* Subtle hover polish for services */
#page-home .home-services-upgrade .service-card,
#page-home .home-services-upgrade .stage10-card,
#page-home .home-services-upgrade .card {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

#page-home .home-services-upgrade .service-card:hover,
#page-home .home-services-upgrade .stage10-card:hover,
#page-home .home-services-upgrade .card:hover {
  transform: translateY(-3px);
  border-color: rgba(242,196,109,0.34) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,0.28);
  background:
    radial-gradient(circle at 16% 0%, rgba(242,196,109,0.10), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.028)) !important;
}

/* Subtle hover polish for team cards */
#page-home .home-team-upgrade .team-card,
#page-home .home-team-upgrade .profile-card,
#page-home .home-team-upgrade .member-card,
#page-home .home-team-upgrade .stage10-card,
#page-home .home-team-upgrade .card {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

#page-home .home-team-upgrade .team-card:hover,
#page-home .home-team-upgrade .profile-card:hover,
#page-home .home-team-upgrade .member-card:hover,
#page-home .home-team-upgrade .stage10-card:hover,
#page-home .home-team-upgrade .card:hover {
  transform: translateY(-3px);
  border-color: rgba(242,196,109,0.34) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,0.28);
  background:
    radial-gradient(circle at 16% 0%, rgba(242,196,109,0.10), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.028)) !important;
}

/* Wall/system visual returned after the technical areas grid */
#page-home .system-build-visual {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1.1rem;
  align-items: stretch;
  border: 1px solid rgba(242,196,109,0.20);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(242,196,109,0.10), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025));
  box-shadow: var(--shadow-soft);
}

#page-home .system-build-visual__image {
  min-height: 260px;
  background: rgba(0,0,0,0.18);
}

#page-home .system-build-visual__image img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

#page-home .system-build-visual__copy {
  padding: 1.55rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#page-home .system-build-visual__copy h3 {
  margin-top: 0.55rem;
  font-size: 1.45rem;
  line-height: 1.15;
}

#page-home .system-build-visual__copy p {
  color: var(--text-sec);
  line-height: 1.6;
  margin-top: 0.85rem;
  font-size: 0.94rem;
}

@media (max-width: 900px) {
  #page-home .system-build-visual {
    grid-template-columns: 1fr;
  }

  #page-home .system-build-visual__copy {
    padding: 1.25rem;
  }
}


/* ---------------------------------------------------------
   Stage 10E wall visual fix and process card hover
--------------------------------------------------------- */

/* constrain returned wall visual so it does not break out full-width */
#page-home .system-build-visual {
  width: min(100% - 2rem, 1180px) !important;
  max-width: 1180px !important;
  margin: 1.4rem auto 0 !important;
}

/* make sure the image area renders correctly once the asset path is fixed */
#page-home .system-build-visual__image {
  min-height: 260px !important;
  overflow: hidden !important;
}

#page-home .system-build-visual__image img {
  width: 100% !important;
  height: 100% !important;
  min-height: 260px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* same hover treatment for How It Works cards */
#page-home .home-process-upgrade .process-grid > *,
#page-home .home-process-upgrade .steps-grid > *,
#page-home .home-process-upgrade .workflow-grid > *,
#page-home .home-process-upgrade .how-grid > *,
#page-home .home-process-upgrade .stage10-card-grid > *,
#page-home .home-process-upgrade [class*="grid"] > article,
#page-home .home-process-upgrade [class*="grid"] > div {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease !important;
}

#page-home .home-process-upgrade .process-grid > *:hover,
#page-home .home-process-upgrade .steps-grid > *:hover,
#page-home .home-process-upgrade .workflow-grid > *:hover,
#page-home .home-process-upgrade .how-grid > *:hover,
#page-home .home-process-upgrade .stage10-card-grid > *:hover,
#page-home .home-process-upgrade [class*="grid"] > article:hover,
#page-home .home-process-upgrade [class*="grid"] > div:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(242,196,109,0.34) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,0.28) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(242,196,109,0.10), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.028)) !important;
}

/* clearer process numbers */
#page-home .home-process-upgrade .process-grid > * > :first-child,
#page-home .home-process-upgrade .steps-grid > * > :first-child,
#page-home .home-process-upgrade .workflow-grid > * > :first-child,
#page-home .home-process-upgrade .how-grid > * > :first-child,
#page-home .home-process-upgrade [class*="grid"] > article > :first-child,
#page-home .home-process-upgrade [class*="grid"] > div > :first-child {
  color: rgba(242,196,109,0.82) !important;
  opacity: 1 !important;
  text-shadow: 0 0 14px rgba(242,196,109,0.16) !important;
}




/* ---------------------------------------------------------
   Stage 10H clean How It Works hover repair
   Scope: only the actual How It Works section.
--------------------------------------------------------- */

/* restore hero/header image so it is not affected by process hover experiments */
#page-home .hero-image,
#page-home .hero-visual,
#page-home .hero-media,
#page-home .hero-image-wrap {
  transform: none !important;
}

#page-home .hero-image:hover,
#page-home .hero-visual:hover,
#page-home .hero-media:hover,
#page-home .hero-image-wrap:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* keep enquiry/scoping card stable */
#page-home .scoping-side > *,
#page-home .mini-route-visual,
#page-home .evidence-types-card {
  transform: none;
}

/* baseline: make all six How It Works cards consistent */
#page-home .home-process-upgrade .process-grid > *,
#page-home .home-process-upgrade .steps-grid > *,
#page-home .home-process-upgrade .workflow-grid > *,
#page-home .home-process-upgrade .how-grid > *,
#page-home .home-process-upgrade .card-grid > * {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025)) !important;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease !important;
}

/* premium top highlight */
#page-home .home-process-upgrade .process-grid > *::after,
#page-home .home-process-upgrade .steps-grid > *::after,
#page-home .home-process-upgrade .workflow-grid > *::after,
#page-home .home-process-upgrade .how-grid > *::after,
#page-home .home-process-upgrade .card-grid > *::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(242,196,109,0.58), transparent);
  opacity: 0.7;
  pointer-events: none;
}

/* hover to match Services / Team cards */
#page-home .home-process-upgrade .process-grid > *:hover,
#page-home .home-process-upgrade .steps-grid > *:hover,
#page-home .home-process-upgrade .workflow-grid > *:hover,
#page-home .home-process-upgrade .how-grid > *:hover,
#page-home .home-process-upgrade .card-grid > *:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(242,196,109,0.34) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,0.28) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(242,196,109,0.14), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)) !important;
}

#page-home .home-process-upgrade .process-grid > *:hover::after,
#page-home .home-process-upgrade .steps-grid > *:hover::after,
#page-home .home-process-upgrade .workflow-grid > *:hover::after,
#page-home .home-process-upgrade .how-grid > *:hover::after,
#page-home .home-process-upgrade .card-grid > *:hover::after {
  opacity: 1;
  background: linear-gradient(90deg, rgba(242,196,109,0.82), transparent);
}

/* clearer numbers, but consistent on every card */
#page-home .home-process-upgrade .process-grid > * > :first-child,
#page-home .home-process-upgrade .steps-grid > * > :first-child,
#page-home .home-process-upgrade .workflow-grid > * > :first-child,
#page-home .home-process-upgrade .how-grid > * > :first-child,
#page-home .home-process-upgrade .card-grid > * > :first-child {
  color: rgba(242,196,109,0.82) !important;
  opacity: 1 !important;
  text-shadow: 0 0 14px rgba(242,196,109,0.16) !important;
}


/* ---------------------------------------------------------
   Stage 10I example output structure icons and section gap trim
--------------------------------------------------------- */

/* reduce the oversized gap after Before/After before How It Works */
#page-home .home-before-after-upgrade {
  padding-bottom: 3.25rem !important;
}

#page-home .home-before-after-upgrade + .home-process-upgrade {
  padding-top: 3.25rem !important;
}

/* tidy the Example output structure chips */
#page-home .output-steps span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 0.45rem;
}

#page-home .output-step-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  border-radius: 8px;
  border: 1px solid rgba(242,196,109,0.36);
  background: rgba(242,196,109,0.08);
  color: rgba(242,196,109,0.88);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 10px rgba(242,196,109,0.08);
}

#page-home .output-steps span:hover .output-step-icon {
  border-color: rgba(242,196,109,0.58);
  background: rgba(242,196,109,0.12);
  color: rgba(242,196,109,0.96);
}

@media (max-width: 760px) {
  #page-home .home-before-after-upgrade {
    padding-bottom: 2.5rem !important;
  }

  #page-home .home-before-after-upgrade + .home-process-upgrade {
    padding-top: 2.5rem !important;
  }
}


/* ---------------------------------------------------------
   Stage 10J How It Works gradient hover only
   Scope: the six cards under
   "A structured route from enquiry to clear written output"
--------------------------------------------------------- */

#page-home .home-process-upgrade .process-grid > *,
#page-home .home-process-upgrade .steps-grid > *,
#page-home .home-process-upgrade .workflow-grid > *,
#page-home .home-process-upgrade .how-grid > *,
#page-home .home-process-upgrade .card-grid > * {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate;
}

/* hidden premium gradient layer */
#page-home .home-process-upgrade .process-grid > *::before,
#page-home .home-process-upgrade .steps-grid > *::before,
#page-home .home-process-upgrade .workflow-grid > *::before,
#page-home .home-process-upgrade .how-grid > *::before,
#page-home .home-process-upgrade .card-grid > *::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(242,196,109,0.18), transparent 42%),
    linear-gradient(135deg, rgba(242,196,109,0.08), rgba(255,255,255,0.035) 42%, rgba(255,255,255,0.018));
  transition: opacity 0.22s ease;
  pointer-events: none;
}

/* show gradient only on hover */
#page-home .home-process-upgrade .process-grid > *:hover::before,
#page-home .home-process-upgrade .steps-grid > *:hover::before,
#page-home .home-process-upgrade .workflow-grid > *:hover::before,
#page-home .home-process-upgrade .how-grid > *:hover::before,
#page-home .home-process-upgrade .card-grid > *:hover::before {
  opacity: 1;
}

/* keep the existing hover lift, but make the visual match the sections below */
#page-home .home-process-upgrade .process-grid > *:hover,
#page-home .home-process-upgrade .steps-grid > *:hover,
#page-home .home-process-upgrade .workflow-grid > *:hover,
#page-home .home-process-upgrade .how-grid > *:hover,
#page-home .home-process-upgrade .card-grid > *:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.028)) !important;
  border-color: rgba(242,196,109,0.36) !important;
}


/* ---------------------------------------------------------
   Stage 10K visible How It Works hover gradient
   Fixes hidden gradient layer by applying visible card background.
--------------------------------------------------------- */

#page-home .home-process-upgrade .process-grid > *,
#page-home .home-process-upgrade .steps-grid > *,
#page-home .home-process-upgrade .workflow-grid > *,
#page-home .home-process-upgrade .how-grid > *,
#page-home .home-process-upgrade .card-grid > * {
  background:
    linear-gradient(180deg, rgba(24,36,51,0.92), rgba(18,28,40,0.92)) !important;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease !important;
}

#page-home .home-process-upgrade .process-grid > *:hover,
#page-home .home-process-upgrade .steps-grid > *:hover,
#page-home .home-process-upgrade .workflow-grid > *:hover,
#page-home .home-process-upgrade .how-grid > *:hover,
#page-home .home-process-upgrade .card-grid > *:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(242,196,109,0.38) !important;
  box-shadow:
    0 18px 44px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(242,196,109,0.18) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(242,196,109,0.22), transparent 42%),
    linear-gradient(135deg, rgba(242,196,109,0.13), rgba(31,45,63,0.94) 38%, rgba(18,28,40,0.96)) !important;
}

/* remove the hidden before-layer approach for these cards */
#page-home .home-process-upgrade .process-grid > *::before,
#page-home .home-process-upgrade .steps-grid > *::before,
#page-home .home-process-upgrade .workflow-grid > *::before,
#page-home .home-process-upgrade .how-grid > *::before,
#page-home .home-process-upgrade .card-grid > *::before {
  display: none !important;
}

/* keep the premium gold top line visible */
#page-home .home-process-upgrade .process-grid > *::after,
#page-home .home-process-upgrade .steps-grid > *::after,
#page-home .home-process-upgrade .workflow-grid > *::after,
#page-home .home-process-upgrade .how-grid > *::after,
#page-home .home-process-upgrade .card-grid > *::after {
  opacity: 0.72 !important;
}

#page-home .home-process-upgrade .process-grid > *:hover::after,
#page-home .home-process-upgrade .steps-grid > *:hover::after,
#page-home .home-process-upgrade .workflow-grid > *:hover::after,
#page-home .home-process-upgrade .how-grid > *:hover::after,
#page-home .home-process-upgrade .card-grid > *:hover::after {
  opacity: 1 !important;
  background: linear-gradient(90deg, rgba(242,196,109,0.88), transparent) !important;
}


/* ---------------------------------------------------------
   Stage 10L exact How It Works card gradient hover
   Scope: only .home-process-upgrade .process-step cards.
--------------------------------------------------------- */

#page-home .home-process-upgrade .process-steps > .process-step {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  background:
    linear-gradient(180deg, rgba(24,36,51,0.92), rgba(18,28,40,0.92)) !important;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease !important;
}

#page-home .home-process-upgrade .process-steps > .process-step::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(242,196,109,0.58), transparent);
  opacity: 0.75;
  pointer-events: none;
}

#page-home .home-process-upgrade .process-steps > .process-step:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(242,196,109,0.38) !important;
  box-shadow:
    0 18px 44px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(242,196,109,0.16) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(242,196,109,0.18), transparent 42%),
    linear-gradient(135deg, rgba(242,196,109,0.11), rgba(31,45,63,0.94) 38%, rgba(18,28,40,0.96)) !important;
}

#page-home .home-process-upgrade .process-steps > .process-step:hover::after {
  opacity: 1 !important;
  background: linear-gradient(90deg, rgba(242,196,109,0.88), transparent) !important;
}

#page-home .home-process-upgrade .process-step-num {
  color: rgba(242,196,109,0.78) !important;
  opacity: 1 !important;
  text-shadow: 0 0 14px rgba(242,196,109,0.16) !important;
}

#page-home .home-process-upgrade .process-step:hover .process-step-num {
  color: rgba(242,196,109,0.94) !important;
}


/* ---------------------------------------------------------
   Stage 10M services number styling
   Match Our Services numbers to How It Works number feel.
--------------------------------------------------------- */

#page-home .home-services-upgrade .service-card-number {
  display: block !important;
  margin-bottom: 1.1rem !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 1.65rem !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  color: rgba(242,196,109,0.78) !important;
  opacity: 1 !important;
  text-shadow: 0 0 14px rgba(242,196,109,0.16) !important;
}

#page-home .home-services-upgrade .service-card:hover .service-card-number {
  color: rgba(242,196,109,0.94) !important;
  text-shadow: 0 0 18px rgba(242,196,109,0.22) !important;
}


/* ---------------------------------------------------------
   Stage 10N Our Services numbers match How It Works
   Scope: only service-card-number in Our Services section.
--------------------------------------------------------- */

#page-home .home-services-upgrade .service-card-number {
  display: block !important;
  margin-bottom: 0.95rem !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 1.95rem !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  color: rgba(242,196,109,0.78) !important;
  opacity: 1 !important;
  text-shadow: 0 0 14px rgba(242,196,109,0.16) !important;
}

#page-home .home-services-upgrade .service-card:hover .service-card-number {
  color: rgba(242,196,109,0.94) !important;
  text-shadow: 0 0 18px rgba(242,196,109,0.22) !important;
}


/* ---------------------------------------------------------
   Stage 10O shared number style
   Makes Our Services numbers match How It Works numbers.
--------------------------------------------------------- */

html body #page-home .home-process-upgrade .process-step-num,
html body #page-home .home-services-upgrade .service-card-number {
  display: block !important;
  margin: 0 0 0.95rem 0 !important;
  padding: 0 !important;
  font-family: var(--font-serif), Georgia, "Times New Roman", serif !important;
  font-size: 2.05rem !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: rgba(242,196,109,0.78) !important;
  opacity: 1 !important;
  text-shadow: 0 0 14px rgba(242,196,109,0.16) !important;
}

html body #page-home .home-process-upgrade .process-step:hover .process-step-num,
html body #page-home .home-services-upgrade .service-card:hover .service-card-number {
  color: rgba(242,196,109,0.94) !important;
  text-shadow: 0 0 18px rgba(242,196,109,0.22) !important;
}

/* ============================================================
   Stage 15D — focused homepage
   ============================================================ */

/* Evidence-area topic cards are now links */
a.topic-card {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
a.topic-card:hover {
  border-color: var(--accent);
  background: rgba(242,196,109,0.06);
  transform: translateY(-2px);
}
a.topic-card:hover h3 { color: var(--accent); }
a.topic-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Four-step process variant */
.process-steps--four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .process-steps--four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .process-steps--four { grid-template-columns: 1fr; }
}

/* Hero scope line — quiet, single-instance scope statement */
.hero-scope-line {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------------
   Stage 15E — hero/header image height control
   Purpose:
   - keep the full-width hero image band, framing and
     dark/gold treatment exactly as they are
   - reduce vertical dominance so the image supports the
     text instead of being the main event
   - width, padding and bottom-dissolve gradient unchanged
--------------------------------------------------------- */

/* Subpage heroes (evidence areas, services, about, etc.) */
.hero-visual img {
  height: clamp(220px, 26vw, 340px);
  max-height: 360px;
  object-fit: cover;
  object-position: center;
}

/* Homepage hero — slightly taller, still capped */
.hero--home .hero-visual img {
  height: clamp(230px, 30vw, 380px);
  max-height: 400px;
}

/* Mobile: image stays a banner, never takes over the screen */
@media (max-width: 768px) {
  .hero-visual img,
  .hero--home .hero-visual img {
    height: clamp(200px, 42vw, 260px);
    max-height: 260px;
  }
}

/* ---------------------------------------------------------
   Stage 15M — Stage 15H benefit icon tiles (homepage)
   Purpose:
   - the Stage 15H benefit icons are dark navy tiles with
     gold line art, so they render as small rounded badges
     rather than tinted glyphs
   - sized to support the card text, not dominate it
--------------------------------------------------------- */

.benefit-card-icon {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(242, 196, 109, 0.28);
  margin-bottom: 0.85rem;
  object-fit: cover;
  background: #0d1524; /* matches the icon artwork while loading */
}

/* ---------------------------------------------------------
   Stage 15Q — evidence page material/system figure strip
   Purpose:
   - restrained row of captioned image cards showing the
     materials/components an evidence page talks about
   - sits inside an existing section, below its card grid,
     so the page's alternating section rhythm is unchanged
--------------------------------------------------------- */

.evidence-figure-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.evidence-figure-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.evidence-figure {
  margin: 0;
  border: 1px solid var(--bdr);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.035);
}

.evidence-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #0d1524; /* matches artwork background while loading */
}

.evidence-figure figcaption {
  padding: 0.6rem 0.85rem;
  font-size: 0.78rem;
  color: var(--text-sec);
  line-height: 1.4;
}

@media (max-width: 980px) {
  .evidence-figure-grid,
  .evidence-figure-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .evidence-figure-grid,
  .evidence-figure-grid--three {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   Stage 18C — contact route choice + guided enquiry wizard
   ============================================================ */
.route-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.route-choice-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--bdr-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-pri);
  transition: border-color 0.2s, transform 0.2s;
}
.route-choice-card:hover,
.route-choice-card:focus-visible {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}
.route-choice-card h3 { font-size: 1.05rem; margin: 0; }
.route-choice-card p { color: var(--text-sec); font-size: 0.9rem; margin: 0; flex: 1; }
.route-choice-cta { color: var(--accent); font-size: 0.85rem; letter-spacing: 0.04em; }

#quick-question-form { max-width: 720px; }

/* Wizard chrome: honour the hidden attribute against flex display rules
   so the no-JS fallback renders the plain full form */
#wizard-progress[hidden],
#wizard-nav[hidden],
#wizard-step-title[hidden],
#wizard-review-section[hidden] { display: none; }

#wizard-step-title {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}
.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.wizard-nav #wizard-next { margin-left: auto; }
.wizard-review-list {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 0.4rem 1.25rem;
  font-size: 0.9rem;
}
.wizard-review-list dt { color: var(--text-sec); }
.wizard-review-list dd { margin: 0; color: var(--text-pri); overflow-wrap: anywhere; }

@media (max-width: 720px) {
  .route-choice-grid { grid-template-columns: 1fr; }
  .wizard-review-list { grid-template-columns: 1fr; gap: 0.1rem 0; }
  .wizard-review-list dd { margin-bottom: 0.6rem; }
}

/* ============================================================
   Stage 18D — services page route chooser
   ============================================================ */
#page-services .stuck-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}
#page-services .stuck-item {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-left: 3px solid var(--accent-line);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  font-size: 0.92rem;
  color: var(--text-sec);
}
.services-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
  margin-top: 2rem;
}
.services-route-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  text-decoration: none;
  color: var(--text-pri);
  transition: border-color 0.2s, transform 0.2s;
}
.services-route-card:hover,
.services-route-card:focus-visible {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}
.services-route-card h3 { font-size: 1.05rem; margin: 0; }
.services-route-card p { color: var(--text-sec); font-size: 0.9rem; margin: 0; flex: 1; }
.services-route-card .route-page-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.services-route-card .route-go {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

@media (max-width: 980px) {
  .services-route-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  #page-services .stuck-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Stage 18E — product knowledge evidence cards, partner
   logo tiles and process timeline polish (2026-07-07)
   ========================================================= */

/* --- Product knowledge evidence cards (/knowledge/, /products/) --- */
.pk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.35rem;
  align-items: stretch;
  margin-top: 2.25rem;
}
.pk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem 1.5rem;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.pk-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(184,147,92,0.05) 75%);
  opacity: 0.55;
}
.pk-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.pk-card-label {
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 0.26rem 0.7rem;
  margin-bottom: 1.1rem;
}
.pk-logo-tile {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin-bottom: 1.1rem;
  min-height: 56px;
}
.pk-logo-tile img {
  display: block;
  max-height: 34px;
  max-width: 100%;
  width: auto;
  height: auto;
}
.pk-card h3 { font-size: 1.02rem; margin-bottom: 0.55rem; }
.pk-card-desc { font-size: 0.88rem; color: var(--text-sec); line-height: 1.6; margin: 0 0 1rem; flex: 1; }
.pk-card-questions {
  border-top: 1px dashed var(--bdr-light);
  padding-top: 0.85rem;
  margin: 0 0 1rem;
}
.pk-card-questions-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}
.pk-card-questions ul { margin: 0; padding: 0; list-style: none; }
.pk-card-questions li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.82rem;
  color: var(--text-sec);
  line-height: 1.5;
  margin-bottom: 0.35rem;
}
.pk-card-questions li:last-child { margin-bottom: 0; }
.pk-card-questions li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.55;
}
.pk-card-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--accent);
}
.pk-card-link:hover { color: var(--accent-lt); }
.pk-card--all { background: var(--bg-raised); }
.pk-card--all .pk-card-label {
  color: var(--text-sec);
  background: transparent;
  border-color: var(--bdr-light);
}
.pk-logo-note {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.6;
}

/* --- Partner / product organisation strip (/products/) --- */
.pk-partner-strip {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--bdr);
}
.pk-partner-strip-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.pk-partner-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.pk-partner-tile {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 0.7rem 1.2rem;
}
.pk-partner-tile img {
  display: block;
  height: 26px;
  width: auto;
}

/* --- Product evidence partner CTA (Stage 18E addendum) --- */
.pk-partner-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
}
.pk-partner-cta-copy { max-width: 620px; }
.pk-partner-cta-copy h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.pk-partner-cta-copy p { font-size: 0.9rem; color: var(--text-sec); line-height: 1.6; margin: 0; }
.pk-partner-cta .btn { flex-shrink: 0; }
.pk-partner-cta-disclaimer {
  width: 100%;
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--bdr-light);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-muted);
}
.pk-partner-line {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-sec);
  max-width: 720px;
  line-height: 1.6;
}

/* --- Homepage route finder (Stage 18E second addendum) --- */
.rf-block {
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--bdr);
}
.rf-block h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.rf-intro {
  font-size: 0.9rem;
  color: var(--text-sec);
  margin: 0 0 1.5rem;
  max-width: 640px;
}
.rf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.rf-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  color: var(--text-pri);
  transition: border-color 0.2s, transform 0.2s;
}
.rf-card:hover,
.rf-card:focus-visible {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  color: var(--text-pri);
}
.rf-card-text { font-size: 0.92rem; font-weight: 500; line-height: 1.4; }
.rf-card-route {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 980px) { .rf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .rf-grid { grid-template-columns: 1fr; } }

/* --- Process timeline (/how-it-works/) --- */
.process-full--timeline { margin-top: 2.5rem; }
.process-full--timeline .process-full-step {
  grid-template-columns: 56px 1fr;
  gap: 1.4rem;
  padding: 0 0 2rem;
  border-bottom: none;
  position: relative;
}
.process-full--timeline .process-full-step:last-child { padding-bottom: 0; }
.process-full--timeline .process-full-step::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 56px;
  bottom: 0.3rem;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-line), rgba(184,147,92,0.06));
}
.process-full--timeline .process-full-step:last-child::before { display: none; }
.process-full--timeline .process-full-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding-top: 0;
  font-size: 1.3rem;
  opacity: 1;
  color: var(--accent);
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--accent-line);
  border-radius: 50%;
}
.process-full--timeline .process-full-content {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
}
.process-full-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--bdr-light);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  margin-bottom: 0.75rem;
}
.process-full--timeline .process-full-content h3 { font-size: 1.05rem; }

@media (max-width: 640px) {
  .process-full--timeline .process-full-step { grid-template-columns: 40px 1fr; gap: 0.9rem; }
  .process-full--timeline .process-full-num { width: 40px; height: 40px; font-size: 1rem; }
  .process-full--timeline .process-full-step::before { left: 20px; top: 44px; }
  .process-full--timeline .process-full-content { padding: 1.25rem 1.25rem; }
}

/* ---------------------------------------------------------
   Stage 18G-0 — Pre-upload visual polish (2026-07-08)
   Purpose:
   - larger, brighter benefit icon tiles so icons support
     scanning instead of disappearing
   - homepage evidence-area cards become horizontal
     (icon left, text right) with stronger contrast
   - related-product cards on evidence pages
   - labelled component figure strips
   - product page identity strip (logo + board photograph)
   - homepage "go deeper" route cards
   --------------------------------------------------------- */

/* Benefit icon tiles — bigger, clearer, brighter */
.benefit-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border-color: rgba(242, 196, 109, 0.45);
  box-shadow: 0 0 0 1px rgba(242, 196, 109, 0.06), 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Homepage evidence-area cards — horizontal, stronger, less washed out */
.technical-topic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.topic-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.15rem;
  align-items: start;
  min-height: 0;
  padding: 1.3rem 1.4rem;
  background: linear-gradient(135deg, var(--bg-card) 0%, #121b29 100%);
  border-color: var(--bdr-light);
}
.topic-card .benefit-card-icon {
  grid-row: 1 / span 2;
  margin-bottom: 0;
}
.topic-card h3 { margin-bottom: 0.3rem; font-size: 1.02rem; }
.topic-card p { font-size: 0.88rem; }
.topic-card:hover {
  border-color: rgba(242, 196, 109, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
@media (max-width: 640px) {
  .topic-card { padding: 1.1rem 1.15rem; }
  .topic-card .benefit-card-icon { width: 56px; height: 56px; }
}

/* Homepage output cards — glyph tiles get more presence */
#page-home .output-card-icon {
  width: 52px;
  height: 52px;
  font-size: 1.15rem;
  border-color: rgba(242, 196, 109, 0.5);
  background: rgba(242, 196, 109, 0.1);
}

/* Labelled component figure strips on evidence pages */
.evidence-figure-heading {
  margin-top: 2.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.evidence-figure-heading + .evidence-figure-grid { margin-top: 0.9rem; }

/* Related product knowledge cards (evidence pages) */
.rp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 1rem;
  margin-top: 1.6rem;
}
.rp-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bdr-light);
  border-radius: 16px;
  padding: 1.25rem 1.3rem;
  background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.rp-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.rp-card .pk-logo-tile { min-height: 48px; margin-bottom: 0.9rem; }
.rp-card h3 { font-size: 0.98rem; margin-bottom: 0.4rem; }
.rp-card p { font-size: 0.86rem; color: var(--text-sec); line-height: 1.55; flex: 1; margin-bottom: 0.9rem; }
.rp-card-link { font-size: 0.86rem; font-weight: 600; color: var(--accent); }
.rp-card-link:hover { color: var(--accent-lt); }

/* Product page identity strip — logo + board photograph */
.product-identity-strip {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 1rem;
  align-items: stretch;
  margin-top: 2rem;
}
.product-identity-strip .pk-logo-tile {
  margin-bottom: 0;
  justify-content: center;
  min-height: 96px;
}
.product-identity-strip .evidence-figure img { aspect-ratio: 21 / 9; }
@media (max-width: 720px) {
  .product-identity-strip { grid-template-columns: 1fr; }
}

/* Homepage "go deeper" route cards */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}
.explore-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bdr-light);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  background: linear-gradient(150deg, var(--bg-card) 0%, #121b29 100%);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.explore-card:hover {
  border-color: rgba(242, 196, 109, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}
.explore-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.explore-card h3 { font-size: 1.05rem; margin-bottom: 0.45rem; color: var(--text-pri); }
.explore-card p { font-size: 0.88rem; color: var(--text-sec); line-height: 1.55; flex: 1; margin-bottom: 1rem; }
.explore-card-route { font-size: 0.86rem; font-weight: 600; color: var(--accent); }
.explore-card:hover .explore-card-route { color: var(--accent-lt); }
.explore-logo-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.explore-logo-row span {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 0.35rem 0.55rem;
}
.explore-logo-row img { max-height: 18px; width: auto; height: auto; }
@media (max-width: 900px) {
  .explore-grid { grid-template-columns: 1fr; }
}

/* Homepage compact team line */
.team-note {
  border-left: 2px solid var(--accent-line);
  padding: 0.35rem 0 0.35rem 1.4rem;
  max-width: 760px;
}
.team-note p { color: var(--text-sec); margin-bottom: 0; }
.team-note a { font-weight: 600; }

/* --- Stage 18G-0 addendum: combined outcome/process flow + homepage tool routing --- */
/* Sections 4 and 5 share one background and read as a single "question in, written answer out" flow. */
#page-home .home-flow-top { padding-bottom: 2.75rem; }
#page-home .home-flow-bottom { padding-top: 0; }
#page-home .home-flow-bottom > .container {
  position: relative;
  border-top: 1px solid var(--bdr);
  padding-top: 2.75rem;
}
#page-home .home-flow-bottom > .container::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 2rem;
  width: 72px;
  height: 2px;
  background: var(--accent);
}
#page-home .home-flow-bottom .section-header { margin-bottom: 2.5rem; }

/* Pre-enquiry tools panel — routes to the contact-page checker and enquiry guide */
.home-tools-block {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(0, 2fr);
  gap: 1.75rem;
  align-items: center;
  margin-top: 2.75rem;
  padding: 1.9rem;
  background: var(--bg-raised);
  border: 1px solid var(--bdr);
  border-left: 3px solid var(--accent-line);
  border-radius: var(--radius-lg);
}
.home-tools-head h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.home-tools-head p { font-size: 0.9rem; color: var(--text-sec); margin-bottom: 0.85rem; }
.home-tools-more {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.home-tools-more:hover { color: var(--accent-lt); }
.home-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
@media (max-width: 900px) {
  .home-tools-block { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 640px) {
  .home-tools-grid { grid-template-columns: 1fr; }
}

/* --- Stage 18G-0 second addendum: external partner/product resource links --- */
.ext-resources {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bdr);
  max-width: 820px;
}
.ext-resources h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.ext-resources > p {
  font-size: 0.88rem;
  color: var(--text-sec);
  margin-bottom: 1.1rem;
  max-width: 720px;
}
.ext-resource-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
}
.ext-resource-list a {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-pri);
  transition: border-color 0.2s;
}
.ext-resource-list a::after {
  content: " \2197";
  color: var(--accent);
}
.ext-resource-list a:hover,
.ext-resource-list a:focus-visible {
  border-color: var(--accent-line);
  color: var(--text-pri);
}

/* ============================================================
   Stage 18H — final pre-upload visual detail polish
   ============================================================ */

/* --- Icon clarity pass ---
   The optimised benefit icons are now centre-cropped 320px webp
   derivatives (glyph fills the tile instead of sitting inside a
   large empty margin). CSS adds a uniform tile treatment and a
   slight lift so the gold linework reads at 56–80px. */
.benefit-card-icon {
  border-color: rgba(242, 196, 109, 0.5);
  filter: brightness(1.06) contrast(1.05);
}

/* --- Homepage "What you get back" small CTA links --- */
.home-flow-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  margin-top: 1.4rem;
}
.home-flow-links a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.home-flow-links a:hover { color: var(--accent-lt); }

/* --- Protherm Light identity strip with product photograph ---
   Three-tile variant: partner logo, product bag photo (portrait
   cutout on a light tile), build-up context illustration. */
.product-identity-strip--with-photo {
  grid-template-columns: minmax(200px, 260px) minmax(180px, 220px) 1fr;
}
.evidence-figure--product-photo img {
  aspect-ratio: auto;
  object-fit: contain;
  background: #f4f2ee;
  padding: 0.9rem;
  height: 100%;
  max-height: 260px;
}
@media (max-width: 900px) {
  .product-identity-strip--with-photo { grid-template-columns: 1fr 1fr; }
  .product-identity-strip--with-photo .pk-logo-tile { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .product-identity-strip--with-photo { grid-template-columns: 1fr; }
}

/* --- About team grid: four people, 2x2 balance --- */
#page-about .team-grid,
#team .team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
}

/* ============================================================
   Stage 18I — FAQ visual category layout
   Category overview cards up top (route-card language), then
   five soft card panels, each holding its accordion items.
   ============================================================ */

/* Category overview cards */
.faq-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 2.6rem;
}
.faq-cat-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border: 1px solid var(--bdr);
  border-radius: 16px;
  color: var(--text-pri);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.faq-cat-card:hover,
.faq-cat-card:focus-visible {
  border-color: rgba(242, 196, 109, 0.4);
  background: rgba(242, 196, 109, 0.05);
  transform: translateY(-2px);
}
.faq-cat-title {
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.3;
}
.faq-cat-desc {
  font-size: 0.8rem;
  color: var(--text-sec);
  line-height: 1.45;
}
.faq-cat-go {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Category section panels */
#page-faqs .faq-list { border-top: none; }
.faq-group {
  border: 1px solid var(--bdr);
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
  padding: 1.5rem 1.6rem 0.9rem;
  margin-bottom: 1.5rem;
  scroll-margin-top: 96px;
}
.faq-group:last-child { margin-bottom: 0; }
.faq-group-head {
  margin-bottom: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bdr);
}
.faq-group-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}
.faq-group-title {
  font-size: 1.3rem;
  margin-bottom: 0;
}
.faq-group-desc {
  color: var(--text-sec);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0.4rem 0 0;
}
.faq-group .faq-item:last-child { border-bottom: none; }

@media (max-width: 860px) {
  .faq-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .faq-cat-grid { grid-template-columns: 1fr; gap: 0.7rem; }
  .faq-group { padding: 1.2rem 1.1rem 0.7rem; }
}

/* ---------------------------------------------------------
   Stage 18J — live mobile header image layout hotfix
   Purpose:
   - remove the large blank band above image-led hero banners
     on mobile: the fixed nav already clears the top, so the
     extra 3.5rem mobile clearance pad only needs to be a
     slight intentional gap when the first thing in the hero
     is the full-width banner image
   - stop the mobile banner being zoom-cropped: the banners
     are 1920x640 (3:1) and the forced min 200px height was
     cropping the sides on narrow phones, so the composition
     never fit the screen; on phones the banner now keeps its
     natural proportions at full viewport width
   - text-only heroes (products, FAQs, legal pages) keep
     their existing mobile clearance
   - desktop (>900px) untouched
--------------------------------------------------------- */

@media (max-width: 900px) {
  .page > .hero:first-child:has(> .hero-visual),
  .page .hero:first-child:has(> .hero-visual) {
    padding-top: 0.75rem;
  }
}

@media (max-width: 768px) {
  .hero-visual {
    max-width: 100%;
    overflow: hidden;
  }
  .hero-visual img,
  .hero--home .hero-visual img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: cover;
    object-position: center;
  }
}

/* ---------------------------------------------------------
   Stage 18K — internal page hero gap hotfix (live, post-18J)
   Issue:
   - after the Stage 18J upload, internal page hero/header
     images showed an excessive and inconsistent vertical gap
     under the fixed nav, on desktop and mobile
   Root cause:
   - Stage 07 patch 09 stacked nav-clearance padding on top of
     the .page-wrapper nav offset: a generic
     clamp(4.5rem, 6vw, 6.5rem) on every first hero/section,
     plus larger per-page ID rules (about, services,
     how-it-works, knowledge, contact) at
     clamp(5.5rem, 7vw, 7.5rem) — hence the page-to-page
     variation; those ID rules (specificity 1-1-1) also
     out-ranked the Stage 18J mobile reduction (0-4-0), so the
     named pages kept the 3.5rem mobile gap
   Fix:
   - one final consistent rule for every internal image-led
     hero: a slight deliberate gap under the nav; the
     .page-wrapper padding-top already clears the fixed nav
   - text-only heroes (products, FAQs, legal pages) keep their
     existing clearance untouched
   - the homepage hero is excluded and unchanged
   - Stage 18J image sizing rules are untouched
--------------------------------------------------------- */

/* Desktop/tablet: consistent modest gap above internal hero images.
   Stage 18L correction (live, post-18K): the 18K value of
   1.25rem over-corrected on desktop and pushed internal hero
   images too far up under the nav; restored a moderate,
   consistent desktop gap between the old excessive clamp and
   the 18K over-tight value. Mobile (<=900px) keeps the 18K
   0.75rem rule below, which overrides this at those widths. */
.page > .hero:first-child:has(> .hero-visual):not(.hero--home),
.page .hero:first-child:has(> .hero-visual):not(.hero--home),
#page-about > .hero:first-child:has(> .hero-visual),
#page-services > .hero:first-child:has(> .hero-visual),
#page-how-it-works > .hero:first-child:has(> .hero-visual),
#page-knowledge > .hero:first-child:has(> .hero-visual),
#page-contact > .hero:first-child:has(> .hero-visual) {
  padding-top: clamp(2.5rem, 3vw, 3.5rem);
}

/* Mobile: keep the Stage 18J slight gap, now on every internal page */
@media (max-width: 900px) {
  .page > .hero:first-child:has(> .hero-visual):not(.hero--home),
  .page .hero:first-child:has(> .hero-visual):not(.hero--home),
  #page-about > .hero:first-child:has(> .hero-visual),
  #page-services > .hero:first-child:has(> .hero-visual),
  #page-how-it-works > .hero:first-child:has(> .hero-visual),
  #page-knowledge > .hero:first-child:has(> .hero-visual),
  #page-contact > .hero:first-child:has(> .hero-visual) {
    padding-top: 0.75rem;
  }
}

/* ---------------------------------------------------------
   Stage 18M — internal banner top gap exact fix (live, post-18L)
   Issue:
   - internal page banner images still rendered flush against
     the fixed nav after Stage 18L, while the homepage kept a
     slight visible gap
   Root cause (measured in a headless browser on the live page):
   - Stage 07 visual patches 05-07 grew the fixed header to a
     rendered height of 178px on desktop (min-height: 178px)
     and 104px on mobile, but --nav-h stayed at 88px, so
     .page-wrapper { padding-top: var(--nav-h) } only clears
     88px and the nav overhangs page content by 90px on
     desktop and 16px on mobile
   - the Stage 18K/18L hero padding-top (clamp 2.5-3.5rem =
     40-56px) therefore sat entirely UNDER the nav overhang:
     the banner top edge was hidden behind the nav and emerged
     exactly at its bottom border — reading as flush. The
     homepage only shows a gap because its larger clamp
     (4.5rem, 6vw, 6.5rem) pokes past the 178px line on wide
     screens
   Fix:
   - neutralise the now-superseded 18K/18L section padding on
     internal image-led heroes (it never produced visible
     space) and apply the gap directly to the banner wrapper
     (.hero-visual): nav overhang + the intended visible gap
   - desktop visible gap: 1.5rem  -> margin-top: 90px + 1.5rem
   - mobile  visible gap: 0.75rem -> margin-top: 16px + 0.75rem
   - .hero--home is excluded: homepage unchanged
   - .hero-visual margin-bottom (3rem) untouched: no new gap
     opens between the banner and the hero text below
   - text-only heroes (no .hero-visual) keep their existing
     clamp clearance, which already clears the 178px nav
   - Stage 18J image sizing/cropping rules untouched
--------------------------------------------------------- */

/* 1. Neutralise the superseded 18K/18L/18J hero padding on
      internal image-led heroes (ID variants keep out-ranking
      the Stage 07 per-page #page-* section:first-child rules) */
.page > .hero:first-child:has(> .hero-visual):not(.hero--home),
.page .hero:first-child:has(> .hero-visual):not(.hero--home),
#page-about > .hero:first-child:has(> .hero-visual):not(.hero--home),
#page-services > .hero:first-child:has(> .hero-visual):not(.hero--home),
#page-how-it-works > .hero:first-child:has(> .hero-visual):not(.hero--home),
#page-knowledge > .hero:first-child:has(> .hero-visual):not(.hero--home),
#page-contact > .hero:first-child:has(> .hero-visual):not(.hero--home) {
  padding-top: 0;
}

/* 2. Desktop: clear the 90px nav overhang plus a modest
      1.5rem visible gap, applied to the banner wrapper itself */
.page .hero:first-child:has(> .hero-visual):not(.hero--home) > .hero-visual {
  margin-top: calc(90px + 1.5rem);
}

/* 3. Mobile: clear the 16px nav overhang plus a smaller
      0.75rem visible gap */
@media (max-width: 900px) {
  .page .hero:first-child:has(> .hero-visual):not(.hero--home) > .hero-visual {
    margin-top: calc(16px + 0.75rem);
  }
}
