/* ==========================================================================
   Commercial Edge Strategy and Consulting — Phase 1 Stylesheet
   Official Brand Guide Palette + Floating Glass Pill Nav + Executive Motion
   ========================================================================== */

:root {
  /* Official Brand Guide Constants */
  --brand-navy: #061633;
  --brand-navy-alt: #101E3A;
  --brand-navy-deep: #040F24;
  --brand-gold: #F2B51B;
  --brand-gold-hover: #DDA312;
  --brand-white: #FFFFFF;
  --brand-offwhite: #F7F8FA;

  /* Light Mode Semantic Tokens (Default) */
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --surface: #FFFFFF;
  --surface-muted: #EEF1F6;
  --logo-ink: #061633;
  --ink: #061633;
  --ink-body: #1E2E4A;
  --ink-muted: #465672; /* >= 7.3:1 on #FFFFFF & #F7F8FA */
  --rule: rgba(6, 22, 51, 0.13);
  --rule-strong: rgba(6, 22, 51, 0.25);
  --hover-border: rgba(6, 22, 51, 0.34);
  --hover-shadow: 0 10px 26px rgba(6, 22, 51, 0.08);
  --focus-ring: #061633;
  --link-color: #061633;
  --badge-bg: rgba(6, 22, 51, 0.06);
  --badge-ink: #061633;
  --field-bg: #FFFFFF;
  --field-border: #BCC6D8;
  --error-ink: #B42318;
  --error-bg: #FEF3F2;

  /* Floating Frosted-Glass Pill Navbar Tokens (Light Mode) */
  --nav-glass-bg: rgba(255, 255, 255, 0.78);
  --nav-glass-bg-scrolled: rgba(255, 255, 255, 0.88);
  --nav-glass-border: rgba(6, 22, 51, 0.08);
  --nav-glass-border-scrolled: rgba(6, 22, 51, 0.14);
  --nav-glass-shadow: 0 8px 30px rgba(6, 22, 51, 0.08);
  --nav-glass-shadow-scrolled: 0 12px 36px rgba(6, 22, 51, 0.14);
  --nav-link-ink: #061633;
  --nav-link-hover-bg: rgba(6, 22, 51, 0.06);
  --nav-cta-bg: #061633;
  --nav-cta-bg-hover: #10244D;
  --nav-cta-ink: #FFFFFF;

  /* Typography */
  --font-display: 'Eurostile Extended', 'Eurostile', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type Scale */
  --t-h1: clamp(2rem, 3.1vw + 0.85rem, 3.35rem);
  --t-h2: clamp(1.7rem, 2.2vw + 0.85rem, 2.5rem);
  --t-h3: clamp(1.15rem, 0.7vw + 0.95rem, 1.4rem);
  --t-lead: clamp(1.02rem, 0.35vw + 0.94rem, 1.16rem);
  --t-body: 1rem;
  --t-small: 0.875rem;
  --t-label: 0.8125rem;

  /* Layout & Spacing Rhythm */
  --nav-clearance: 94px;
  --gutter: clamp(1.5rem, 5vw, 5rem);
  --max-wrap: 1240px;
  --sec-pad-y: clamp(4.5rem, 7vw, 6.75rem);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Motion */
  --ease-ui: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --bg: #061633;
  --bg-alt: #0B1A3A;
  --surface: #101E3A;
  --surface-muted: #16284C;
  --logo-ink: #FFFFFF;
  --ink: #FFFFFF;
  --ink-body: #DCE4F2;
  --ink-muted: #A6B6D0; /* >= 7.2:1 on #101E3A */
  --rule: rgba(255, 255, 255, 0.14);
  --rule-strong: rgba(255, 255, 255, 0.28);
  --hover-border: rgba(242, 181, 27, 0.48);
  --hover-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  --focus-ring: #F2B51B;
  --link-color: #FFFFFF;
  --badge-bg: rgba(242, 181, 27, 0.14);
  --badge-ink: #F2B51B;
  --field-bg: #091938;
  --field-border: #2C416B;
  --error-ink: #FDA29B;
  --error-bg: rgba(240, 68, 56, 0.14);

  /* Floating Frosted-Glass Pill Navbar Tokens (Dark Mode) */
  --nav-glass-bg: rgba(16, 30, 58, 0.74);
  --nav-glass-bg-scrolled: rgba(12, 24, 48, 0.85);
  --nav-glass-border: rgba(255, 255, 255, 0.12);
  --nav-glass-border-scrolled: rgba(255, 255, 255, 0.18);
  --nav-glass-shadow: 0 10px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --nav-glass-shadow-scrolled: 0 14px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --nav-link-ink: #EAF0FA;
  --nav-link-hover-bg: rgba(255, 255, 255, 0.09);
  --nav-cta-bg: #F2B51B;
  --nav-cta-bg-hover: #DDA312;
  --nav-cta-ink: #061633;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--nav-clearance) + 12px);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink-body);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.022em;
}

h1, h2 {
  font-family: var(--font-display);
}

h1 {
  font-size: var(--t-h1);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.028em;
}

h2 {
  font-size: var(--t-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.024em;
}

h3 {
  font-size: var(--t-h3);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
  max-width: 66ch;
}

ul, ol, dl, dd, blockquote {
  margin: 0;
  padding: 0;
}

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

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1.5rem;
  top: -120px;
  z-index: 200;
  padding: 0.65rem 1.1rem;
  background: var(--brand-gold);
  color: var(--brand-navy);
  font-weight: 700;
  font-size: var(--t-small);
  text-decoration: none;
  border-radius: 9999px;
}

.skip-link:focus {
  top: 0.6rem;
  outline: 2px solid var(--brand-navy);
  outline-offset: 2px;
}

/* Container & Equal Content Edges */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max-wrap));
  margin-inline: auto;
}

/* ==========================================================================
   HYBRID VECTOR BRAND LOGO (Zero Bitmap Auto-Trace on Typography)
   ========================================================================== */
.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo-svg,
.brand-logo {
  height: 42px;
  width: auto;
  overflow: visible;
}

.brand-logo--dark {
  display: none;
}

html[data-theme="dark"] .brand-logo--light {
  display: none;
}

html[data-theme="dark"] .brand-logo--dark {
  display: block;
}

.brand-logo-svg--footer,
.brand-logo--footer {
  height: 46px;
  width: auto;
  --logo-ink: #FFFFFF;
}

.logo-arc-primary,
.logo-wordmark,
.logo-subtitle {
  fill: var(--logo-ink);
  transition: fill 180ms var(--ease-ui);
}

.logo-arc-gold {
  fill: var(--brand-gold);
}

.logo-wordmark {
  font-family: 'Eurostile Extended', 'Eurostile', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 1px;
  text-rendering: geometricPrecision;
}

.logo-subtitle {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 33px;
  font-weight: 500;
  letter-spacing: 0.1px;
  text-rendering: geometricPrecision;
}

/* ==========================================================================
   1. FLOATING FROSTED-GLASS PILL NAVBAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 15px;
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
}

.header-shell {
  position: relative;
  pointer-events: none;
}

.header-pill {
  pointer-events: auto;
  position: relative;
  min-height: 64px;
  padding: 0.45rem 1.1rem 0.45rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 9999px;
  background-color: var(--nav-glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--nav-glass-border);
  box-shadow: var(--nav-glass-shadow);
  transition:
    background-color 220ms var(--ease-ui),
    border-color 220ms var(--ease-ui),
    box-shadow 220ms var(--ease-ui);
}

.site-header.is-scrolled .header-pill {
  background-color: var(--nav-glass-bg-scrolled);
  border-color: var(--nav-glass-border-scrolled);
  box-shadow: var(--nav-glass-shadow-scrolled);
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nav-link-ink);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 180ms var(--ease-ui),
    color 180ms var(--ease-ui);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--brand-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms var(--ease-enter);
}

.nav-link:hover {
  background-color: var(--nav-link-hover-bg);
}

.nav-link[aria-current="location"] {
  background-color: var(--nav-link-hover-bg);
  font-weight: 600;
}

.nav-link:hover::after,
.nav-link[aria-current="location"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--nav-link-ink);
  border: 1px solid var(--rule-strong);
  border-radius: 9999px;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease-ui),
    border-color 160ms var(--ease-ui);
}

.theme-toggle:hover {
  background-color: var(--nav-link-hover-bg);
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
  color: var(--brand-gold);
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 160ms var(--ease-ui),
    border-color 160ms var(--ease-ui),
    color 160ms var(--ease-ui),
    transform 160ms var(--ease-ui);
}

.btn--primary {
  background-color: var(--brand-gold);
  color: var(--brand-navy); /* 9.74:1 WCAG AAA contrast */
  border-color: var(--brand-gold);
}

.btn--secondary {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

/* Primary Pill Navbar CTA (#061633 Navy + #FFFFFF in Light; #F2B51B Gold + #061633 in Dark) */
.btn--nav-cta {
  min-height: 40px;
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9999px;
  background-color: var(--nav-cta-bg);
  color: var(--nav-cta-ink);
  border-color: var(--nav-cta-bg);
}

.btn--pill {
  border-radius: 9999px;
}

.btn--sm {
  min-height: 42px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--full {
  width: 100%;
}

.btn-arrow {
  flex-shrink: 0;
  transition: transform 180ms var(--ease-ui);
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background-color: var(--brand-gold-hover);
    border-color: var(--brand-gold-hover);
    transform: translateY(-1px);
  }

  .btn--secondary:hover {
    background-color: var(--surface-muted);
    border-color: var(--ink);
    transform: translateY(-1px);
  }

  .btn--nav-cta:hover {
    background-color: var(--nav-cta-bg-hover);
    border-color: var(--nav-cta-bg-hover);
    transform: translateY(-1px);
  }

  .btn:hover .btn-arrow,
  .text-cta:hover .btn-arrow {
    transform: translateX(3px);
  }
}

.btn:active {
  transform: translateY(1px) scale(0.988);
  transition-duration: 80ms;
}

/* Mobile Menu Button & Frosted-Glass Floating Drawer */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--nav-link-ink);
  border: 1px solid var(--rule-strong);
  border-radius: 9999px;
  cursor: pointer;
}

.menu-toggle__bars {
  position: relative;
  width: 16px;
  height: 2px;
  background-color: currentColor;
  transition: background-color 150ms var(--ease-ui);
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background-color: currentColor;
  transition: transform 180ms var(--ease-ui), top 180ms var(--ease-ui);
}

.menu-toggle__bars::before { top: -5px; }
.menu-toggle__bars::after { top: 5px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
  background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

@keyframes drawerFadeSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-drawer {
  pointer-events: auto;
  margin-top: 0.65rem;
  border-radius: 1.25rem;
  background-color: var(--nav-glass-bg-scrolled);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--nav-glass-border-scrolled);
  box-shadow: var(--nav-glass-shadow-scrolled);
  padding: 1rem 1.25rem 1.35rem;
  animation: drawerFadeSlide 200ms var(--ease-enter);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.15rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

/* ==========================================================================
   MODERATE EXECUTIVE SCROLL-REVEAL & TACTILE HOVER MICRO-INTERACTIONS
   ========================================================================== */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 500ms var(--ease-enter) var(--reveal-delay, 0ms),
    transform 500ms var(--ease-enter) var(--reveal-delay, 0ms);
}

html.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   2. HERO SECTION & CUSTOM ANIMATED SVG POSITIONING MAP
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-clearance) + clamp(0.75rem, 2.2vh, 2rem));
  padding-bottom: clamp(2.25rem, 4vh, 4rem);
  background-color: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

/* Subtle Hero Entrance (Opacity 1 from frame 0 for instant Lighthouse LCP!) */
html.js-enter .hero-copy,
html.js-enter .hero-visual {
  transform: translateY(8px);
  transition: transform 520ms var(--ease-enter);
}

html.js-enter .hero-visual {
  transition-delay: 80ms;
}

html.js-entered .hero-copy,
html.js-entered .hero-visual {
  transform: translateY(0);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--t-label);
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: clamp(0.75rem, 1.6vh, 1.2rem);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background-color: var(--brand-gold);
  flex-shrink: 0;
}

.hero-lead {
  margin-top: clamp(0.9rem, 1.8vh, 1.35rem);
  font-size: var(--t-lead);
  line-height: 1.58;
  color: var(--ink-body);
  max-width: 56ch;
}

.btn-row {
  margin-top: clamp(1.25rem, 2.4vh, 1.9rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.hero-reassurance {
  margin-top: clamp(0.75rem, 1.4vh, 1.05rem);
  font-size: var(--t-small);
  color: var(--ink-muted);
}

/* Compact Laptop Viewports (e.g. 1280x720, 1366x768, MacBook with browser chrome) */
@media (max-height: 780px) and (min-width: 1024px) {
  .hero {
    padding-top: calc(var(--nav-clearance) + 0.65rem);
    padding-bottom: 2rem;
  }

  h1 {
    font-size: clamp(2rem, 2.75vw + 0.8rem, 2.95rem);
  }

  .map-frame {
    padding: 0.95rem 1.1rem 0.85rem;
  }
}

@media (max-height: 700px) and (min-width: 1024px) {
  .hero {
    padding-top: calc(var(--nav-clearance) + 0.25rem);
    padding-bottom: 1.25rem;
  }
  h1 {
    font-size: clamp(1.9rem, 2.55vw + 0.75rem, 2.7rem);
  }
  .hero-lead {
    margin-top: 0.7rem;
    font-size: 1rem;
  }
  .btn-row {
    margin-top: 1.05rem;
  }
}

/* Positioning Map Frame */
.map-frame {
  background-color: var(--brand-navy);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem 1.1rem;
  color: var(--brand-white);
  box-shadow: 0 16px 38px rgba(6, 22, 51, 0.14);
}

html[data-theme="dark"] .map-frame {
  background-color: var(--brand-navy-alt);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.map-frame__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.map-frame__title {
  font-size: var(--t-label);
  font-weight: 600;
  color: #B8C7DF;
}

.map-replay {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #DCE5F4;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 150ms var(--ease-ui), color 150ms var(--ease-ui), border-color 150ms var(--ease-ui);
}

.map-replay:hover {
  background: rgba(242, 181, 27, 0.16);
  border-color: var(--brand-gold);
  color: var(--brand-white);
}

.map-replay:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

.positioning-map {
  width: 100%;
  height: auto;
}

.map-gridline {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.map-axis {
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 1.5;
}

.map-axis-tip {
  fill: none;
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-axis-label {
  fill: #B3C2DB;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
}

.map-crowd-zone {
  fill: rgba(255, 255, 255, 0.035);
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.map-crowd-dots circle {
  fill: #697D9E;
}

.map-crowd-label {
  fill: #9FB0CC;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
}

.map-origin-ring {
  fill: none;
  stroke: rgba(242, 181, 27, 0.45);
  stroke-width: 1.5;
  stroke-dasharray: 2 2;
}

.map-trajectory {
  stroke: var(--brand-gold);
  stroke-width: 2.6;
  stroke-linecap: round;
}

.map-offer-halo {
  fill: rgba(242, 181, 27, 0.15);
  stroke: rgba(242, 181, 27, 0.55);
  stroke-width: 1.25;
}

.map-offer-dot {
  fill: var(--brand-gold);
  stroke: var(--brand-navy);
  stroke-width: 2;
}

.map-offer-label {
  fill: var(--brand-white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
}

.map-destination-group {
  transition: opacity 280ms var(--ease-ui);
}

/* Diagonal Brand "Edge" Divider at Hero Base */
.hero-edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 1px),
    var(--rule) calc(50% - 1px),
    var(--rule) calc(50% + 1px),
    var(--bg-alt) calc(50% + 1px)
  );
  pointer-events: none;
}

/* ==========================================================================
   SHARED SECTION SCAFFOLDING & LINKS
   ========================================================================== */
.section {
  padding-block: var(--sec-pad-y);
  background-color: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.section--alt {
  background-color: var(--bg-alt);
}

.section-header {
  margin-bottom: clamp(2.5rem, 4.5vw, 3.5rem);
}

.section-intro {
  margin-top: 0.95rem;
  font-size: var(--t-lead);
  color: var(--ink-muted);
  max-width: 60ch;
}

.meta-heading {
  font-family: var(--font-sans);
  font-size: var(--t-label);
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

/* Drawn Underline Links */
.inline-link {
  color: var(--link-color);
  font-weight: 600;
  text-decoration: none;
  background-image:
    linear-gradient(var(--brand-gold), var(--brand-gold)),
    linear-gradient(var(--rule-strong), var(--rule-strong));
  background-size: 0% 2px, 100% 1px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 170ms var(--ease-ui);
}

.inline-link:hover {
  background-size: 100% 2px, 100% 1px;
}

.text-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--brand-gold);
  padding-bottom: 2px;
}

.text-cta--inverse {
  color: var(--brand-white);
}

.text-cta--gold {
  color: var(--brand-gold);
}

/* ==========================================================================
   3. VISION & MISSION
   ========================================================================== */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.vision-statement {
  font-size: clamp(1.22rem, 1.1vw + 0.95rem, 1.58rem);
  font-weight: 600;
  line-height: 1.42;
  color: var(--ink);
  max-width: 44ch;
}

.principles-bar {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.principle-item {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-body);
}

.principle-item strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   4. CAPABILITIES (Editorial List + Subtle Hover Refinement)
   ========================================================================== */
.capability-list {
  list-style: none;
  border-top: 1px solid var(--rule-strong);
}

.capability-row {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  padding: 1.85rem 1rem;
  margin-inline: -1rem;
  border-bottom: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  align-items: start;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .capability-row:hover {
    transform: translateY(-3px);
    background-color: var(--bg-alt);
    border-bottom-color: var(--hover-border);
  }
}

.capability-title-col {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.capability-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-muted);
  min-width: 1.8rem;
  transition: color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .capability-row:hover .capability-num {
    color: var(--ink);
  }
}

.capability-detail-col p + p {
  margin-top: 0.6rem;
}

.capability-outcome {
  color: var(--ink);
  font-size: 0.95rem;
}

.capability-outcome strong {
  font-weight: 700;
}

/* ==========================================================================
   5. WAYS TO WORK (Two Visually Distinct Panels + Restrained Hover Lift)
   ========================================================================== */
.ways-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

.way-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: var(--radius-md);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

/* Panel 1: Non-Executive Board Advisory — Corporate Navy */
.way-panel--board {
  background-color: var(--brand-navy);
  color: #DCE5F4;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid var(--brand-gold);
  box-shadow: 0 2px 8px rgba(6, 22, 51, 0.08);
}

html[data-theme="dark"] .way-panel--board {
  background-color: var(--brand-navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 4px solid var(--brand-gold);
}

.way-panel--board h3 {
  color: var(--brand-white);
}

.way-panel--board .way-panel__tag {
  color: var(--brand-gold);
}

.way-panel--board .way-panel__sub {
  color: #B4C3DC;
}

.way-panel--board .way-spec {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.way-panel--board .way-spec dt {
  color: var(--brand-white);
}

/* Panel 2: Fractional Commercial Advisory — Crisp Structural Panel */
.way-panel--fractional {
  background-color: var(--surface);
  color: var(--ink-body);
  border: 1px solid var(--rule-strong);
  border-top: 4px solid var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .way-panel--board:hover {
    transform: translateY(-3px);
    border-color: rgba(242, 181, 27, 0.45);
    border-top-color: var(--brand-gold);
    box-shadow: 0 14px 32px rgba(6, 22, 51, 0.22);
  }

  .way-panel--fractional:hover {
    transform: translateY(-3px);
    border-color: var(--hover-border);
    border-top-color: var(--ink);
    box-shadow: var(--hover-shadow);
  }
}

.way-panel__tag {
  font-size: var(--t-label);
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.way-panel__sub {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.way-specs {
  margin-block: 1.75rem;
}

.way-spec {
  padding-block: 1rem;
  border-top: 1px solid var(--rule);
}

.way-spec dt {
  font-size: var(--t-small);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.way-spec dd {
  font-size: 0.95rem;
  line-height: 1.58;
}

.way-panel__foot {
  padding-top: 0.5rem;
}

.ways-helper {
  margin-top: 1.75rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  max-width: 72ch;
}

/* ==========================================================================
   6. ROLE DETAIL + 6-ROW COMPARISON TABLE
   ========================================================================== */
.roles-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule-strong);
}

.role-col__head {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.role-col__head p {
  margin-top: 0.75rem;
  color: var(--ink-body);
}

.role-group {
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--rule);
}

.role-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.role-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.95rem;
  line-height: 1.58;
}

.role-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-gold);
}

.role-list strong {
  color: var(--ink);
}

/* Comparison Table */
.comparison-wrap {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--surface);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.comparison-table thead th {
  background-color: var(--bg-alt);
  color: var(--ink);
  font-weight: 700;
  font-size: var(--t-small);
}

.comparison-table tbody th {
  color: var(--ink);
  font-weight: 600;
  width: 24%;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.combined-note {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-alt);
  border-left: 3px solid var(--brand-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.combined-note p {
  max-width: 74ch;
  font-size: 0.95rem;
}

.combined-note strong {
  color: var(--ink);
}

/* ==========================================================================
   7. SUPPORT BY BUSINESS SIZE (Corporate Navy Band + Smooth Tab Transition)
   ========================================================================== */
.section--navy {
  background-color: var(--brand-navy);
  color: #DCE5F4;
}

html[data-theme="dark"] .section--navy {
  background-color: var(--brand-navy-alt);
}

.section--navy h2,
.section--navy h3 {
  color: var(--brand-white);
}

.section--navy .section-intro {
  color: #B4C3DC;
}

.tablist {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}

.tab-btn {
  min-height: 46px;
  padding: 0.65rem 1.3rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #DCE5F4;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  cursor: pointer;
  transition:
    background-color 180ms var(--ease-ui),
    color 180ms var(--ease-ui),
    border-color 180ms var(--ease-ui),
    transform 180ms var(--ease-ui);
}

.tab-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.tab-btn[aria-selected="true"] {
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--brand-navy); /* 9.74:1 contrast */
  font-weight: 700;
}

.tab-btn:focus-visible,
.tab-panel:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 3px;
}

@keyframes tabPanelFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-panel {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.tab-panel.is-switching {
  animation: tabPanelFade 200ms var(--ease-enter);
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}

.stage-label {
  font-family: var(--font-sans);
  font-size: var(--t-label);
  font-weight: 700;
  color: var(--brand-gold) !important;
  margin-bottom: 0.75rem;
}

.stage-col p {
  font-size: 0.96rem;
  line-height: 1.62;
  color: #E5ECF7;
}

.stage-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.stage-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.96rem;
  line-height: 1.56;
  color: #E5ECF7;
}

.stage-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-gold);
}

.stage-col .text-cta {
  margin-top: 1.25rem;
}

/* ==========================================================================
   8. APPROACH (4 Numbered Steps + Subtle Hover Refinement)
   ========================================================================== */
.steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule-strong);
}

.step-item {
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background-color: var(--surface);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .step-item:hover {
    transform: translateY(-3px);
    border-color: var(--hover-border);
    box-shadow: var(--hover-shadow);
  }
}

.step-badge {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .step-item:hover .step-badge {
    background-color: var(--brand-gold);
    border-color: var(--brand-gold);
    color: var(--brand-navy);
  }
}

.step-item h3 {
  margin-bottom: 0.6rem;
}

.step-item p {
  font-size: 0.95rem;
  color: var(--ink-body);
}

/* ==========================================================================
   9. PROOF SECTION (Explicitly Marked Client Placeholders + Hover Lift)
   ========================================================================== */
.proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 1.75rem;
  align-items: start;
}

.proof-founder,
.quote-slot {
  background-color: var(--surface);
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .proof-founder:hover,
  .quote-slot:hover {
    transform: translateY(-3px);
    border-color: var(--hover-border);
    box-shadow: var(--hover-shadow);
  }
}

.proof-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background-color: var(--badge-bg);
  color: var(--badge-ink);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.founder-inner {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.founder-portrait-slot {
  width: 124px;
  height: 148px;
  background-color: var(--bg-alt);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  padding: 0.5rem;
}

.founder-copy h3 {
  margin-bottom: 0.65rem;
}

.founder-copy p {
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.sector-tags {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sector-tag {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.proof-quotes {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.quote-slot blockquote p {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}

.quote-slot blockquote footer {
  margin-top: 0.85rem;
  font-size: var(--t-small);
  color: var(--ink-muted);
}

/* ==========================================================================
   10. CONTACT & ENQUIRY FORM (Corporate Navy Close + Crisp Form Card)
   ========================================================================== */
.section--contact {
  background-color: var(--brand-navy);
  color: #DCE5F4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.section--contact h2 {
  color: var(--brand-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-lead {
  margin-top: 1rem;
  font-size: var(--t-lead);
  color: #C7D4E8;
}

.contact-promises {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-promises li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: #E4ECF8;
}

.contact-promises li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 12px;
  height: 2px;
  background-color: var(--brand-gold);
}

.contact-direct {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-direct__label {
  font-size: var(--t-small);
  color: #A9B9D4;
  margin-bottom: 0.35rem;
}

.contact-direct__email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand-gold);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-direct__email:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 3px;
}

/* Form Card */
.contact-card {
  background-color: var(--surface);
  color: var(--ink-body);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

html[data-theme="dark"] .contact-card {
  background-color: var(--brand-navy-alt);
  border-color: rgba(255, 255, 255, 0.16);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row + .form-row {
  margin-top: 1.15rem;
}

.form-row--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

.field label {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.field .optional {
  font-weight: 400;
  color: var(--ink-muted);
}

.field .req {
  color: var(--error-ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 1rem; /* 16px prevents iOS Safari auto-zoom */
  color: var(--ink);
  background-color: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  transition: border-color 140ms var(--ease-ui), box-shadow 140ms var(--ease-ui);
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 2px var(--focus-ring);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--error-ink);
}

.field-error {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--error-ink);
}

.enquiry-form .btn--full {
  margin-top: 1.4rem;
}

.form-privacy-note {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.form-status {
  margin-top: 0.85rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: var(--t-small);
  font-weight: 600;
  background-color: var(--error-bg);
  color: var(--error-ink);
}

/* Confirmation View */
.enquiry-confirmation {
  padding-block: 1rem;
}

.confirmation-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--brand-gold);
  color: var(--brand-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.enquiry-confirmation h3 {
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.enquiry-confirmation p {
  color: var(--ink-body);
  font-size: 0.96rem;
}

.confirmation-meta {
  margin-top: 0.85rem;
  margin-bottom: 1.5rem;
  font-size: var(--t-small) !important;
  color: var(--ink-muted) !important;
}

/* ==========================================================================
   11. FOOTER (#061633 Corporate Navy + Reverse White-and-Gold Logo)
   ========================================================================== */
.site-footer {
  background-color: var(--brand-navy);
  color: #B4C3DC;
  padding-block: 3rem 3.25rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.25rem;
}

.footer-logo-link {
  display: inline-block;
  text-decoration: none;
}

.footer-tagline {
  margin-top: 0.85rem;
  font-size: var(--t-small);
  color: #9FB0CC;
  max-width: 44ch;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  text-align: right;
}

.footer-contact,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.footer-link,
.footer-modal-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--font-sans);
  font-size: var(--t-small);
  font-weight: 500;
  color: #DCE5F4;
  text-decoration: none;
  cursor: pointer;
}

.footer-link:hover,
.footer-modal-btn:hover {
  color: var(--brand-gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-link:focus-visible,
.footer-modal-btn:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 3px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: #8EA1C0;
}

/* ==========================================================================
   LEGAL MODALS (<dialog>) & UK GDPR / PECR COOKIE BANNER
   ========================================================================== */
.legal-dialog {
  width: min(680px, calc(100% - 2rem));
  max-height: 86vh;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
  background-color: var(--surface);
  color: var(--ink-body);
  box-shadow: 0 20px 48px rgba(4, 15, 36, 0.38);
}

.legal-dialog::backdrop {
  background: rgba(6, 22, 51, 0.68);
}

.dialog-inner {
  display: flex;
  flex-direction: column;
  max-height: 86vh;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.75rem;
  border-bottom: 1px solid var(--rule);
}

.dialog-head h2 {
  font-size: 1.35rem;
}

.dialog-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.dialog-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9375rem;
}

.dialog-body h3 {
  font-size: 1rem;
  margin-top: 0.5rem;
}

.dialog-body a {
  color: var(--ink);
  font-weight: 600;
}

.dialog-foot {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: flex-end;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 150;
  max-width: 960px;
  margin-inline: auto;
  background-color: var(--surface);
  color: var(--ink-body);
  border: 1px solid var(--rule-strong);
  border-left: 4px solid var(--brand-gold);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.35rem;
  box-shadow: 0 12px 32px rgba(6, 22, 51, 0.22);
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.cookie-banner__text {
  font-size: var(--t-small);
  line-height: 1.55;
  max-width: 58ch;
}

.inline-btn-link {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-grid > *,
.contact-grid > *,
.proof-layout > *,
.ways-grid > *,
.roles-columns > *,
.stage-grid > * {
  min-width: 0;
}

.contact-direct__email,
.footer-link {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (1260px, 1120px, 820px, 640px, 380px)
   ========================================================================== */
@media (max-width: 1260px) {
  .nav-link {
    padding: 0.35rem 0.6rem;
    font-size: 0.83rem;
  }

  .btn--nav-cta {
    padding: 0.5rem 0.95rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 1120px) {
  .primary-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-clearance) + 1.25rem);
    padding-bottom: 3.5rem;
  }

  .hero-grid,
  .proof-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .vision-grid,
  .principles-bar,
  .ways-grid,
  .roles-columns,
  .stage-grid {
    grid-template-columns: 1fr;
  }

  .capability-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-inline: 0;
    padding-inline: 0;
  }

  .footer-links-col {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-clearance: 82px;
    --gutter: 1rem;
  }

  .site-header {
    top: 12px;
  }

  .header-pill {
    min-height: 56px;
    padding: 0.35rem 0.65rem 0.35rem 1rem;
    gap: 0.5rem;
  }

  .theme-toggle,
  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .brand-logo-svg,
  .brand-logo {
    height: 36px;
  }

  @media (max-width: 480px) {
    .btn {
      white-space: normal;
      text-align: center;
      padding-inline: 1rem;
    }

    .map-frame {
      padding: 0.9rem 0.9rem 0.8rem;
    }
  }

  @media (max-width: 380px) {
    .brand-logo-svg,
    .brand-logo {
      height: 31px;
    }
  }

  .btn--nav-cta {
    display: none;
  }

  .btn-row {
    flex-direction: column;
  }

  .btn-row .btn {
    width: 100%;
  }

  .tablist {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .tab-btn {
    width: 100%;
    text-align: left;
  }

  .steps-grid,
  .form-row--split,
  .founder-inner {
    grid-template-columns: 1fr;
  }

  /* Stack comparison table cleanly on narrow viewports so zero horizontal overflow occurs */
  .comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table th,
  .comparison-table td {
    display: block;
    width: 100%;
  }

  .comparison-table tbody tr {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--rule);
  }

  .comparison-table tbody tr:last-child {
    border-bottom: 0;
  }

  .comparison-table tbody th {
    width: 100%;
    padding: 0 0 0.5rem 0;
    border-bottom: 0;
    font-size: 0.95rem;
    color: var(--ink);
  }

  .comparison-table tbody td {
    padding: 0.35rem 0;
    border-bottom: 0;
    font-size: 0.9rem;
  }

  .comparison-table tbody td::before {
    content: attr(data-col) ": ";
    font-weight: 700;
    color: var(--ink);
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1 1 100%;
  }
}

/* Global Reduced Motion Guardrail */
@media (prefers-reduced-motion: reduce) {
  html.js-reveal [data-reveal],
  html.js-enter .hero-copy,
  html.js-enter .hero-visual {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   PHASE 2: SHARED DROPDOWN, MULTI-PAGE LAYOUTS, FILTERS, FAQ & CMS READERS
   ========================================================================== */

/* Active page state in navbar */
.nav-link[aria-current="page"] {
  background-color: var(--nav-link-hover-bg);
  font-weight: 600;
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Accessible Services Dropdown inside Floating Pill Navbar */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  gap: 0.35rem;
  background: transparent;
  border: 0;
  font-family: var(--font-sans);
  cursor: pointer;
}

.nav-chevron {
  transition: transform 180ms var(--ease-ui);
}

.nav-dropdown-trigger[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 290px;
  list-style: none;
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--nav-glass-bg-scrolled);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--nav-glass-border-scrolled);
  box-shadow: var(--nav-glass-shadow-scrolled);
  z-index: 120;
}

.nav-dropdown-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  transition: background-color 150ms var(--ease-ui);
}

.nav-dropdown-link strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.nav-dropdown-link span {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

.nav-dropdown-link:hover,
.nav-dropdown-link[aria-current="page"] {
  background-color: var(--nav-link-hover-bg);
}

.nav-dropdown-link[aria-current="page"] strong {
  color: var(--ink);
}

/* Contextual cross-links on Home */
.way-panel__foot--split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.way-detail-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.way-detail-link:hover {
  color: var(--ink);
}

.way-detail-link--inverse {
  color: #B8C7DF;
}

.way-detail-link--inverse:hover {
  color: var(--brand-gold);
}

.proof-links {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

/* Sub-Page Executive Hero */
.page-hero {
  padding-top: calc(var(--nav-clearance) + clamp(2rem, 4vw, 3.25rem));
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  background-color: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: var(--t-label);
  color: var(--ink-muted);
}

.breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-hero h1 {
  max-width: 22ch;
}

.page-hero__lead {
  margin-top: 1.25rem;
  font-size: var(--t-lead);
  color: var(--ink-body);
  max-width: 62ch;
}

/* Dedicated Service Pillars & Cadence Grids */
.service-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.service-pillar {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background-color: var(--surface);
  border: 1px solid var(--rule-strong);
  border-top: 3px solid var(--brand-gold);
  border-radius: var(--radius-md);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .service-pillar:hover {
    transform: translateY(-3px);
    border-color: var(--hover-border);
    border-top-color: var(--brand-gold);
    box-shadow: var(--hover-shadow);
  }
}

.service-pillar h3 {
  margin-bottom: 0.7rem;
}

.service-pillar p {
  font-size: 0.95rem;
  color: var(--ink-body);
}

.cadence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.cadence-card {
  padding: 1.5rem;
  background-color: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
}

.cadence-card .meta-heading {
  color: var(--ink);
}

.cadence-card p {
  font-size: 0.94rem;
  color: var(--ink-body);
}

/* Executive FAQ Accordions (<details>/<summary>) */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule-strong);
  max-width: 78ch;
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 0;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  transition: transform 200ms var(--ease-ui), background-color 200ms var(--ease-ui);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--brand-navy);
}

.faq-answer {
  padding-bottom: 1.35rem;
  font-size: 0.95rem;
  color: var(--ink-body);
  max-width: 66ch;
}

/* Filter Bar & Pills (Case Studies & Insights) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.25rem;
}

.filter-pill {
  min-height: 42px;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid var(--rule-strong);
  background-color: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms var(--ease-ui), color 160ms var(--ease-ui), border-color 160ms var(--ease-ui);
}

.filter-pill:hover {
  background-color: var(--surface-muted);
}

.filter-pill[aria-pressed="true"] {
  background-color: var(--brand-navy);
  border-color: var(--brand-navy);
  color: var(--brand-white);
}

html[data-theme="dark"] .filter-pill[aria-pressed="true"] {
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--brand-navy);
}

/* Case Study & Insights Listing Grids */
.cs-grid,
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.cs-card,
.insight-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background-color: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .cs-card:hover,
  .insight-card:hover {
    transform: translateY(-3px);
    border-color: var(--hover-border);
    box-shadow: var(--hover-shadow);
  }
}

.cs-meta,
.insight-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.meta-pill {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  background-color: var(--badge-bg);
  color: var(--badge-ink);
  font-weight: 700;
  font-size: 0.76rem;
}

.cs-card h2,
.cs-card h3,
.insight-card h2,
.insight-card h3 {
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 0.8vw + 0.95rem, 1.38rem);
  line-height: 1.32;
  margin-bottom: 0.75rem;
}

.cs-card p,
.insight-card p {
  font-size: 0.94rem;
  color: var(--ink-body);
}

.cs-card__foot,
.insight-card__foot {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

/* Single Case Study & Long-Form Article Reader */
.cs-reader-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.cs-section-block + .cs-section-block {
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.cs-section-block h2 {
  font-size: clamp(1.25rem, 1vw + 1rem, 1.55rem);
  margin-bottom: 0.75rem;
}

.cs-sidebar {
  padding: 1.5rem;
  background-color: var(--bg-alt);
  border: 1px solid var(--rule-strong);
  border-top: 3px solid var(--brand-gold);
  border-radius: var(--radius-md);
}

.cs-sidebar h3 {
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.article-body {
  max-width: 66ch;
}

.article-body h2 {
  font-size: clamp(1.3rem, 1vw + 1rem, 1.65rem);
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
}

.article-body p + p {
  margin-top: 1.05rem;
}

.takeaways-box {
  margin-bottom: 2.25rem;
  padding: 1.5rem 1.75rem;
  background-color: var(--bg-alt);
  border-left: 4px solid var(--brand-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.takeaways-box h2 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  margin-top: 0;
  margin-bottom: 0.85rem;
}

/* About Page Timeline */
.timeline-list {
  list-style: none;
  border-top: 1px solid var(--rule-strong);
  max-width: 74ch;
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1.65rem;
  border-bottom: 1px solid var(--rule);
}

.timeline-period {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.timeline-item h3 {
  margin-bottom: 0.4rem;
}

/* Executive CTA Close Band on Sub-Pages */
.cta-band {
  background-color: var(--brand-navy);
  color: #DCE5F4;
  padding-block: clamp(3.75rem, 6vw, 5.25rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-band h2 {
  color: var(--brand-white);
  max-width: 24ch;
}

.cta-band p {
  margin-top: 0.9rem;
  color: #C7D4E8;
  font-size: var(--t-lead);
}

.cta-band .btn-row {
  margin-top: 1.75rem;
}

.cta-band .btn--secondary {
  color: var(--brand-white);
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-band .btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--brand-white);
}

.empty-filter-state {
  padding: 2rem;
  background-color: var(--bg-alt);
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius-md);
  color: var(--ink-muted);
}

/* Phase 2 Responsive Rules */
@media (max-width: 900px) {
  .service-pillars-grid,
  .cadence-grid,
  .cs-grid,
  .insights-grid,
  .cs-reader-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}
