/*
  Maple Quanta Inc. — shared site stylesheet
  Art direction: Canadian AI/quantum advisory — authoritative, precise, trustworthy
  Brand colors: Deep Navy (#1a2f5a), Dark Green (#1d5c46), Maple Red accent (#c8202a), warm off-white
  Typography: Instrument Serif (display) + Satoshi (body)
*/

:root, [data-theme="light"] {
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Satoshi', 'Inter', system-ui, sans-serif;

  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;

  --color-bg:               #f8f7f5;
  --color-surface:          #faf9f7;
  --color-surface-2:        #ffffff;
  --color-surface-offset:   #f1eeea;
  --color-surface-offset-2: #ebe7e2;
  --color-divider:          #ddd8d2;
  --color-border:           #d2cdc6;

  --color-text:             #1a1612;
  --color-text-muted:       #6b6460;
  --color-text-faint:       #a8a29c;
  --color-text-inverse:     #f8f7f5;

  --color-red:              #c8202a;
  --color-red-hover:        #a81821;
  --color-red-active:       #8a1019;
  --color-red-highlight:    #f4dcdd;

  --color-navy:             #1a2f5a;
  --color-navy-hover:       #132246;
  --color-navy-active:      #0d1830;
  --color-navy-highlight:   #d0d8ea;

  --color-green:            #1d5c46;
  --color-green-hover:      #144735;
  --color-green-active:     #0d3527;
  --color-green-highlight:  #d7e7df;

  --color-primary:          var(--color-navy);
  --color-primary-hover:    var(--color-navy-hover);
  --color-primary-active:   var(--color-navy-active);
  --color-primary-highlight: var(--color-navy-highlight);

  --color-accent:           var(--color-red);
  --color-accent-hover:     var(--color-red-hover);

  --radius-sm: 0.25rem; --radius-md: 0.5rem;
  --radius-lg: 0.75rem; --radius-xl: 1.25rem; --radius-full: 9999px;

  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 3px rgba(26, 22, 18, 0.08);
  --shadow-md: 0 4px 16px rgba(26, 22, 18, 0.1);
  --shadow-lg: 0 16px 40px rgba(26, 22, 18, 0.14);

  --content-default: 1060px;
  --content-narrow: 720px;
}

[data-theme="dark"] {
  --color-bg:               #141210;
  --color-surface:          #1a1714;
  --color-surface-2:        #201d1a;
  --color-surface-offset:   #1d1a17;
  --color-surface-offset-2: #242018;
  --color-divider:          #2a2620;
  --color-border:           #363028;
  --color-text:             #d8d2ca;
  --color-text-muted:       #857e76;
  --color-text-faint:       #524e48;
  --color-text-inverse:     #141210;
  --color-red:              #e8585e;
  --color-red-hover:        #d03840;
  --color-red-highlight:    #3a1e20;
  --color-navy:             #5b7ec4;
  --color-navy-hover:       #3e61a8;
  --color-navy-highlight:   #1e2840;
  --color-green:            #55b58e;
  --color-green-hover:      #3d9a75;
  --color-green-highlight:  #17332a;
  --color-primary:          var(--color-navy);
  --color-primary-hover:    var(--color-navy-hover);
  --color-primary-highlight: var(--color-navy-highlight);
  --color-accent:           var(--color-red);
  --color-accent-hover:     var(--color-red-hover);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:#141210;--color-surface:#1a1714;--color-surface-2:#201d1a;
    --color-surface-offset:#1d1a17;--color-divider:#2a2620;--color-border:#363028;
    --color-text:#d8d2ca;--color-text-muted:#857e76;--color-text-faint:#524e48;
    --color-text-inverse:#141210;
    --color-red:#e8585e;--color-red-hover:#d03840;--color-red-highlight:#3a1e20;
    --color-navy:#5b7ec4;--color-navy-hover:#3e61a8;--color-navy-highlight:#1e2840;
    --color-green:#55b58e;--color-green-hover:#3d9a75;--color-green-highlight:#17332a;
    --color-primary:var(--color-navy);--color-primary-hover:var(--color-navy-hover);
    --color-primary-highlight:var(--color-navy-highlight);
    --color-accent:var(--color-red);--color-accent-hover:var(--color-red-hover);
    --shadow-sm:0 1px 3px rgba(0,0,0,0.3);
    --shadow-md:0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg:0 16px 40px rgba(0,0,0,0.5);
  }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  min-height: 100dvh; line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  transition: background var(--transition), color var(--transition);
}
img, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; }
p, li { text-wrap: pretty; max-width: 72ch; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(200, 32, 42, 0.15); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0; }

/* ── Layout ── */
.container { width: min(var(--content-default), 100% - var(--space-8)); margin-inline: auto; }
.container-narrow { width: min(var(--content-narrow), 100% - var(--space-8)); margin-inline: auto; }
section { padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }

/* ── Skip link ── */
.skip-link {
  position: absolute; top: var(--space-4); left: var(--space-4);
  padding: var(--space-2) var(--space-4); background: var(--color-navy);
  color: #fff; border-radius: var(--radius-md); font-size: var(--text-sm);
  font-weight: 700; z-index: 100; translate: 0 -200%;
  transition: translate var(--transition);
}
.skip-link:focus { translate: 0; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 247, 245, 0.9);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(26, 22, 18, 0.1);
  transition: background var(--transition), border-color var(--transition);
}
[data-theme="dark"] .site-header { background: rgba(20, 18, 16, 0.9); border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6); height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-sm); font-weight: 700;
  color: var(--color-text); transition: opacity var(--transition);
}
.brand:hover { opacity: 0.8; }
.brand-logo-img {
  width: 40px; height: 40px; object-fit: contain;
  border-radius: var(--radius-md);
}
.brand-name { letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: var(--space-6); list-style: none; }
.nav-links a {
  font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted);
  transition: color var(--transition); position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--color-red); border-radius: 1px;
  scale: 0 1; transition: scale var(--transition); transform-origin: left;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { scale: 1 1; }

.nav-actions { display: flex; align-items: center; gap: var(--space-3); }

.theme-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: var(--radius-full); color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}
.theme-btn:hover { background: var(--color-surface-offset); color: var(--color-text); }

.btn-nav-cta {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-5); border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 600;
  background: var(--color-navy); color: #fff;
  transition: background var(--transition), box-shadow var(--transition), translate var(--transition);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
[data-theme="dark"] .btn-nav-cta { background: #1a2f5a; }
.btn-nav-cta:hover { background: var(--color-navy-hover); box-shadow: var(--shadow-md); translate: 0 -1px; }

.mobile-menu-btn {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-md); color: var(--color-text-muted);
  transition: background var(--transition);
}
.mobile-menu-btn:hover { background: var(--color-surface-offset); }

.mobile-nav {
  display: none; position: fixed; inset: 72px 0 0;
  background: var(--color-bg); z-index: 40;
  padding: var(--space-6); border-top: 1px solid rgba(26,22,18,0.08);
  overflow-y: auto; flex-direction: column; gap: var(--space-2);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  font-size: var(--text-base); font-weight: 500; color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover { background: var(--color-surface-offset); color: var(--color-text); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 600;
  background: var(--color-navy); color: #fff;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), box-shadow var(--transition), translate var(--transition);
}
[data-theme="dark"] .btn-primary { background: #1a2f5a; }
.btn-primary:hover { background: var(--color-navy-hover); box-shadow: var(--shadow-lg); translate: 0 -2px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 600; color: var(--color-text);
  border: 1px solid rgba(26,22,18,0.2);
  transition: border-color var(--transition), background var(--transition), translate var(--transition);
}
[data-theme="dark"] .btn-ghost { border-color: rgba(255,255,255,0.25); }
.btn-ghost:hover { border-color: var(--color-navy); background: var(--color-surface-offset); translate: 0 -1px; }
.btn-inverse {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 600;
  background: #fff; color: #1a2f5a; box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), translate var(--transition), background var(--transition);
}
.btn-inverse:hover { box-shadow: var(--shadow-lg); translate: 0 -2px; background: #f1eeea; }
.btn-outline-inverse {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 600; color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  transition: border-color var(--transition), background var(--transition), translate var(--transition);
}
.btn-outline-inverse:hover { border-color: #fff; background: rgba(255,255,255,0.08); translate: 0 -1px; }

/* ── Section label / heading pattern ── */
.section-intro { margin-bottom: clamp(var(--space-10), 5vw, var(--space-16)); }
.section-label {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-red); margin-bottom: var(--space-4);
}
.section-label::before { content: ''; width: 20px; height: 2px; background: var(--color-red); border-radius: 1px; }
h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl); font-weight: 400;
  line-height: 1.1; letter-spacing: -0.01em; color: var(--color-text);
  margin-bottom: var(--space-6);
}
h1 em { font-style: italic; color: var(--color-red); }
h2 {
  font-family: var(--font-display); font-size: var(--text-2xl);
  font-weight: 400; line-height: 1.15; letter-spacing: -0.01em;
  color: var(--color-text); margin-bottom: var(--space-4);
}
.section-intro > p { color: var(--color-text-muted); max-width: 58ch; }

/* ── Home hero ── */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(248, 247, 245, 0.96) 0%, rgba(248, 247, 245, 0.88) 44%, rgba(248, 247, 245, 0.42) 74%, rgba(248, 247, 245, 0.12) 100%),
    url("/assets/maple-quanta-hero-background.webp") center / cover no-repeat,
    var(--color-bg);
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
}
[data-theme="dark"] .hero {
  background:
    linear-gradient(90deg, rgba(20, 18, 16, 0.93) 0%, rgba(20, 18, 16, 0.8) 48%, rgba(20, 18, 16, 0.35) 100%),
    url("/assets/maple-quanta-hero-background.webp") center / cover no-repeat,
    var(--color-bg);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(26, 47, 90, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 47, 90, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 60% 0%, black 20%, transparent 70%);
}
.hero::after {
  content: ''; position: absolute; top: -10%; right: -5%; width: 45vw; height: 55vh;
  background: radial-gradient(ellipse, rgba(200, 32, 42, 0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 300px;
  gap: var(--space-16); align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-red);
  margin-bottom: var(--space-5);
}
.hero-eyebrow::before {
  content: ''; width: 24px; height: 2px;
  background: var(--color-red); border-radius: 1px;
}
.hero-lead {
  font-size: var(--text-base); color: var(--color-text-muted);
  line-height: 1.75; max-width: 52ch; margin-bottom: var(--space-8);
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center;
}

/* Signal cards (home hero aside) */
.signal-panel { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.signal-card {
  padding: var(--space-4);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), translate var(--transition), border-color var(--transition);
}
.signal-card:hover { box-shadow: var(--shadow-md); translate: 0 -2px; }
.signal-card:nth-child(1) { border-top: 2px solid var(--color-red); }
.signal-card:nth-child(2) { border-top: 2px solid var(--color-navy); }
.signal-card:nth-child(3) { border-top: 2px solid var(--color-green); }
.signal-card:nth-child(4) { border-top: 2px solid var(--color-navy); opacity: 0.9; }
.signal-label {
  display: block; font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: var(--space-1);
}
.signal-card:nth-child(1) .signal-label { color: var(--color-red); }
.signal-card:nth-child(2) .signal-label { color: var(--color-navy); }
.signal-card:nth-child(3) .signal-label { color: var(--color-green); }
.signal-card:nth-child(4) .signal-label { color: var(--color-navy); }
.signal-card small { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.5; }

/* ── Page hero (interior pages, deep navy) ── */
.page-hero {
  background: #1a2f5a; color: #fff;
  padding-block: clamp(var(--space-12), 8vw, var(--space-20));
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 70% 0%, black 15%, transparent 70%);
}
.page-hero > .container, .page-hero > .container-narrow { position: relative; z-index: 1; }
.crumb {
  display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap;
  margin-bottom: var(--space-8); color: rgba(255,255,255,0.5);
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.crumb a { transition: color var(--transition); }
.crumb a:hover { color: #fff; }
.crumb span[aria-hidden] { opacity: 0.4; }
.page-hero .hero-eyebrow { color: #9fd8bd; }
.page-hero .hero-eyebrow::before { background: #9fd8bd; }
.page-hero h1 { color: #fff; margin-bottom: var(--space-5); font-size: clamp(2.5rem, 1rem + 3.5vw, 4.25rem); }
.page-hero h1 em { color: #f08090; }
.page-hero .hero-lead { color: rgba(255,255,255,0.72); }
.page-hero .hero-lead:last-child { margin-bottom: 0; }

/* ── Generic card grids ── */
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.card {
  padding: var(--space-8); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), translate var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); translate: 0 -2px; }
.card h3 {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: 400; color: var(--color-text); margin-bottom: var(--space-3);
}
.card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.65; max-width: none; }

/* Audience cards */
.audience-card { border-left: 3px solid transparent; }
.audience-card:hover { border-left-color: var(--color-navy); }

/* ── Expertise / service-link cards (home) ── */
.expertise-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4);
}
.expertise-card {
  display: flex; flex-direction: column;
  padding: var(--space-6) var(--space-8); background: var(--color-surface-2);
  border: 1px solid var(--color-border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), translate var(--transition), border-color var(--transition);
}
.expertise-card:hover { box-shadow: var(--shadow-lg); translate: 0 -3px; border-color: var(--color-navy); }
.expertise-num {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: rgba(200,32,42,0.14); font-weight: 400; line-height: 1;
  margin-bottom: var(--space-3); letter-spacing: -0.02em;
}
[data-theme="dark"] .expertise-num { color: rgba(232, 88, 94, 0.2); }
.expertise-card h3 {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: 400; color: var(--color-text);
  margin-bottom: var(--space-2); line-height: 1.2;
}
.expertise-card p {
  font-size: var(--text-sm); color: var(--color-text-muted);
  line-height: 1.6; max-width: none; margin-bottom: var(--space-4);
}
.expertise-card .link-arrow { margin-top: auto; }
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 600; color: var(--color-navy);
  transition: color var(--transition), gap var(--transition);
}
.link-arrow:hover { color: var(--color-red); gap: var(--space-3); }

/* ── Service detail blocks (services page) ── */
.service-detail {
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-6);
}
.service-detail:target { border-color: var(--color-navy); }
.service-detail-kicker {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-green); margin-bottom: var(--space-3);
}
.service-detail h2 { margin-bottom: var(--space-3); font-size: var(--text-xl); }
.service-detail-what {
  font-size: var(--text-base); color: var(--color-text-muted);
  line-height: 1.75; max-width: 68ch; margin-bottom: var(--space-8);
}
.service-facets { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.service-facet h3 {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-navy); margin-bottom: var(--space-3);
  padding-bottom: var(--space-2); border-bottom: 1px solid var(--color-divider);
}
.service-facet ul { list-style: none; display: grid; gap: var(--space-2); }
.service-facet li {
  font-size: var(--text-sm); color: var(--color-text-muted);
  padding-left: var(--space-4); position: relative; line-height: 1.55; max-width: none;
}
.service-facet li::before {
  content: ''; position: absolute; left: 0; top: 0.58em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-red); opacity: 0.7;
}
.service-detail-cta { margin-top: var(--space-8); display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ── Insight cards ── */
.insight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.insight-card {
  padding: var(--space-8); background: var(--color-surface-2);
  border: 1px solid var(--color-border); border-top: 3px solid var(--color-red);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: box-shadow var(--transition), translate var(--transition);
}
.insight-card:hover { box-shadow: var(--shadow-md); translate: 0 -2px; }
.insight-kicker { font-size: var(--text-xs); font-weight: 700; color: var(--color-red); text-transform: uppercase; letter-spacing: 0.05em; }
.insight-card h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; color: var(--color-text); line-height: 1.2; }
.insight-card > p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.65; max-width: none; flex-grow: 1; }
.insight-card .link-arrow { margin-top: auto; font-weight: 700; }
.section-footer-link { margin-top: var(--space-8); }

/* ── Resource / download cards ── */
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.resource-card {
  padding: var(--space-8); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: var(--space-3);
  transition: box-shadow var(--transition), translate var(--transition);
}
.resource-card:hover { box-shadow: var(--shadow-md); translate: 0 -2px; }
.resource-card h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; color: var(--color-text); }
.resource-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.65; max-width: none; flex-grow: 1; }
.resource-kicker {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-green);
}
.resource-card .link-arrow { margin-top: auto; }
.badge-soon {
  display: inline-block; width: fit-content;
  padding: 0.15rem var(--space-3); border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 700;
  background: var(--color-green-highlight); color: var(--color-green);
}

/* ── Values (navy band) ── */
.values { background: #1a2f5a; color: rgba(255,255,255,0.92); }
.values .section-label { color: rgba(255,255,255,0.45); }
.values .section-label::before { background: rgba(255,255,255,0.45); }
.values h2 { color: #fff; }
.values .section-intro > p { color: rgba(255,255,255,0.65); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.value-card {
  padding: var(--space-8); border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  transition: background var(--transition);
}
.value-card:hover { background: rgba(255,255,255,0.09); }
.value-icon {
  width: 44px; height: 44px; margin-bottom: var(--space-5);
  display: grid; place-items: center; border-radius: var(--radius-lg);
  background: rgba(200, 32, 42, 0.15); border: 1px solid rgba(200, 32, 42, 0.3);
  color: #f08090;
}
.value-card h3 {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: 400; color: #fff; margin-bottom: var(--space-3);
}
.value-card p { font-size: var(--text-sm); color: rgba(255,255,255,0.65); line-height: 1.65; max-width: none; }

/* ── About page pieces ── */
.about-text > p { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.75; margin-bottom: var(--space-4); }
.corporate-note {
  padding: var(--space-5) var(--space-6); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.65;
  margin-top: var(--space-6); max-width: none;
}
.corporate-note strong { color: var(--color-text); }
.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.founder-card {
  padding: var(--space-6); background: var(--color-surface-2);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.founder-name { font-size: var(--text-base); font-weight: 700; color: var(--color-text); margin-bottom: var(--space-1); }
.founder-role {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-red); margin-bottom: var(--space-3);
}
.founder-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; max-width: none; }
.founder-card p:not([class]) + p:not([class]) { margin-top: var(--space-3); }
.founder-card .link-arrow { margin-top: var(--space-4); }

.about-visual {
  position: sticky; top: calc(72px + var(--space-8));
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-visual-header { padding: var(--space-8); background: #1a2f5a; color: #fff; }
.about-visual-header .logo-display { width: 64px; height: 64px; object-fit: contain; margin-bottom: var(--space-4); }
.about-visual-label {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: var(--space-2);
}
.about-visual-header h3 {
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: 400; line-height: 1.2;
}
.about-stats { background: var(--color-surface); border: 1px solid var(--color-border); border-top: none; }
.stat-row {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid rgba(26,22,18,0.07);
  display: grid; grid-template-columns: minmax(4.5rem, 5.5rem) minmax(0, 1fr); align-items: start; gap: var(--space-3);
}
.stat-row:last-child { border-bottom: none; }
.stat-value {
  font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.1; white-space: nowrap;
  font-weight: 400; color: var(--color-navy); min-width: 0;
}
.stat-desc { min-width: 0; font-size: var(--text-xs); color: var(--color-text-muted); }
.about-layout { display: grid; grid-template-columns: 1fr 360px; gap: var(--space-16); align-items: start; }

/* ── Contact ── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: start; }
.contact-info > p { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.75; margin-bottom: var(--space-6); }
.contact-details { display: grid; gap: var(--space-3); }
.contact-detail { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); color: var(--color-text-muted); }
.contact-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-red); flex-shrink: 0; margin-top: 0.55em; }
.contact-detail a { color: var(--color-text); font-weight: 600; transition: color var(--transition); }
.contact-detail a:hover { color: var(--color-navy); }

.contact-form-wrap {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: var(--space-8); box-shadow: var(--shadow-md);
}
.form-field { margin-bottom: var(--space-5); }
.form-field label {
  display: block; font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-text-muted); margin-bottom: var(--space-2);
}
input, textarea {
  width: 100%; padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2); color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  font-size: var(--text-sm); line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus {
  outline: none; border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(26, 47, 90, 0.12);
}
input::placeholder, textarea::placeholder { color: var(--color-text-faint); }
textarea { min-height: 130px; resize: vertical; }
.btn-submit {
  width: 100%; padding: var(--space-3) var(--space-6);
  background: var(--color-navy); color: #fff;
  border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600;
  box-shadow: var(--shadow-md); cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), translate var(--transition);
}
[data-theme="dark"] .btn-submit { background: #1a2f5a; }
.btn-submit:hover { background: var(--color-navy-hover); box-shadow: var(--shadow-lg); translate: 0 -2px; }
.form-consent { display: flex; gap: var(--space-3); align-items: flex-start; margin-bottom: var(--space-5); }
.form-consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.25rem; flex: 0 0 auto; accent-color: var(--color-navy); }
.form-consent label { display: block; margin: 0; font-size: var(--text-xs); font-weight: 500; letter-spacing: normal; line-height: 1.55; text-transform: none; color: var(--color-text-muted); }
.form-consent a { color: var(--color-navy); text-decoration: underline; text-underline-offset: 0.15em; }
.form-note { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-4); line-height: 1.6; max-width: none; }

/* ── CTA band ── */
.cta-band { background: #1d5c46; color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 30% 100%, black 15%, transparent 70%);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.75); }
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-8); flex-wrap: wrap;
}
.cta-band-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.cta-band .btn-inverse { color: #1d5c46; }

/* ── Why pillars (home) ── */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.pillar {
  padding: var(--space-6); background: var(--color-surface-2);
  border: 1px solid var(--color-border); border-top: 3px solid var(--color-navy);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), translate var(--transition);
}
.pillar:hover { box-shadow: var(--shadow-md); translate: 0 -2px; }
.pillar:nth-child(1) { border-top-color: var(--color-red); }
.pillar:nth-child(3) { border-top-color: var(--color-green); }
.pillar h3 { font-size: var(--text-sm); font-weight: 700; line-height: 1.35; color: var(--color-text); margin-bottom: var(--space-2); }
.pillar p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; max-width: none; }

/* ── Methodology flow (home) ── */
.method-flow {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4);
}
.method-step {
  counter-increment: step; position: relative;
  padding: var(--space-6) var(--space-5);
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.method-step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1; letter-spacing: -0.02em;
  color: rgba(200, 32, 42, 0.22); margin-bottom: var(--space-3);
}
[data-theme="dark"] .method-step::before { color: rgba(232, 88, 94, 0.3); }
.method-step:not(:last-child)::after {
  content: '→'; position: absolute; top: var(--space-6);
  right: calc(-0.5 * var(--space-4)); translate: 50% 0;
  color: var(--color-red); font-weight: 700; z-index: 1;
}
.method-step h3 {
  font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--color-navy); margin-bottom: var(--space-2);
}
.method-step p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; max-width: none; }

/* ── Hero secondary CTA (home) ── */
.hero-secondary-cta { margin-top: var(--space-5); }

/* ── Service "why it matters" note (services page) ── */
.service-why {
  margin-top: var(--space-8); padding: var(--space-4) var(--space-6);
  background: var(--color-surface); border-left: 3px solid var(--color-navy);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.65; max-width: none;
}
.service-why strong { color: var(--color-text); }

/* ── Trust band (home) ── */
.trust-band { background: var(--color-surface-offset); }
.trust-inner { display: grid; grid-template-columns: 1fr 340px; gap: var(--space-16); align-items: center; }
.trust-points { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.trust-point { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); color: var(--color-text-muted); }
.trust-point svg { flex-shrink: 0; margin-top: 0.2em; color: var(--color-green); }

/* ── Footer ── */
.site-footer { background: #1a2f5a; color: rgba(255,255,255,0.55); padding-block: var(--space-8); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: var(--space-3); color: #fff; font-weight: 700; font-size: var(--text-sm); }
.footer-logo { width: 32px; height: 32px; object-fit: contain; }
.footer-nav { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.footer-nav a { font-size: var(--text-xs); font-weight: 500; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-nav a:hover { color: #fff; }
.footer-legal { font-size: var(--text-xs); line-height: 1.6; text-align: right; color: rgba(255,255,255,0.35); }
.footer-legal a { color: rgba(255,255,255,0.45); text-decoration: underline; text-underline-offset: .15em; transition: color var(--transition); }
.footer-legal a:hover { color: #fff; }

/* ── Scroll reveal ── */
.reveal { opacity: 0; translate: 0 20px; transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), translate 0.6s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; translate: 0 0; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ── Section background alternates ── */
.section-offset { background: var(--color-surface-offset); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-10); }
  .signal-panel { grid-template-columns: repeat(4, 1fr); max-width: 100%; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .method-flow { grid-template-columns: repeat(2, 1fr); }
  .method-step:not(:last-child)::after { display: none; }
  .about-layout { grid-template-columns: 1fr; }
  .about-visual { position: static; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-inner { grid-template-columns: 1fr; gap: var(--space-10); }
  .service-facets { grid-template-columns: 1fr; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .btn-nav-cta { display: none; }
  .mobile-menu-btn { display: flex; }
  .card-grid-2, .card-grid-3, .resource-grid, .insight-grid,
  .contact-layout, .founder-grid, .expertise-grid, .value-grid,
  .pillar-grid, .method-flow { grid-template-columns: 1fr; }
  .signal-panel { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .footer-legal { text-align: left; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .signal-panel { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions a { text-align: center; justify-content: center; }
  h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
}
