/* ═══════════════════════════════════════════════════════════════════
   Center for Stress Intelligence — Global Styles
   Brand: Clean sans-serif, bold CSI monogram, shield-color accents
   ═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand palette — calm, welcoming, therapist's-office feel */
  --black:       #2c3e50;
  --charcoal:    #34495e;
  --ink:         #2c3e50;
  --ink-light:   #5a6d7e;
  --ink-muted:   #8a9bab;
  --rule:        #dce5ec;
  --cream:       #f8fafb;
  --cream-dark:  #edf2f5;
  --white:       #ffffff;

  /* Primary brand blues & greens */
  --blue:        #3a7ca5;
  --blue-dark:   #2c5f7c;
  --blue-light:  #e8f1f8;
  --sage:        #6b9a7d;
  --sage-light:  #e8f2ec;
  --warm:        #c9a96e;

  /* Type accent colors — softened, harmonious */
  --lighthouse:  #d4a843;
  --alchemist:   #c4784a;
  --firefighter: #b85450;
  --stoic:       #5a8a6a;
  --diplomat:    #4a85a8;
  --container:   #7a6a9a;

  /* Lighter tints for backgrounds */
  --lighthouse-pale:  #fbf5e4;
  --alchemist-pale:   #f8ede4;
  --firefighter-pale: #f8e8e7;
  --stoic-pale:       #e8f2ec;
  --diplomat-pale:    #e4eef6;
  --container-pale:   #eee8f4;

  /* UI */
  --gold:        #c9a96e;
  --gold-light:  #faf5ea;

  /* Typography */
  --font-display: 'Overpass', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Overpass', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-sans:    'Overpass', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  80px;
  --space-xxl: 120px;

  /* Layout */
  --max-width:   1200px;
  --max-reading: 760px;
  --radius:      6px;
  --radius-lg:   12px;
  --shadow:      0 2px 16px rgba(0,0,0,0.06);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.10);
  --shadow-hover:0 12px 48px rgba(0,0,0,0.14);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--black); }

/* ── Navigation ───────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(44, 62, 80, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.3s;
}

.site-nav.scrolled {
  box-shadow: 0 4px 24px rgba(44,62,80,0.2);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: white;
}

.nav-brand-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: white;
  line-height: 1;
}

.nav-brand-text {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.6);
  padding: 8px 18px;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

.nav-links a:hover {
  color: white;
  background: rgba(255,255,255,0.07);
}

.nav-links a.active {
  color: white;
  background: rgba(255,255,255,0.1);
}

.nav-cta {
  background: white !important;
  color: var(--black) !important;
  font-weight: 600 !important;
  padding: 8px 22px !important;
}

.nav-cta:hover {
  background: var(--cream) !important;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--charcoal);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: var(--radius); width: 100%; }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(165deg, #2c3e50 0%, #3a7ca5 60%, #5a9a8a 100%);
  color: white;
  padding: calc(68px + var(--space-xxl)) var(--space-md) var(--space-xxl);
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* Soft animated gradient orb */
.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 154, 125, 0.12) 0%, rgba(58, 124, 165, 0.06) 40%, transparent 70%);
  filter: blur(60px);
  animation: heroOrb 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroOrb {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 40px) scale(1.15); }
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-lg);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-bottom: var(--space-md);
}

.hero h1 em {
  font-style: normal;
  color: #a8d8c8;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
  color: rgba(255,255,255,0.5);
  max-width: 560px;
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.btn-primary {
  background: white;
  color: var(--black);
}

.btn-primary:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.15);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.6);
  color: white;
}

.btn-dark {
  background: #2c3e50;
  color: white;
}

.btn-dark:hover {
  background: #3a7ca5;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-arrow::after {
  content: '\2192';
  font-size: 16px;
  transition: transform 0.2s;
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ── Pressure Stat Banner ─────────────────────────────────────────── */
.pressure-banner {
  background: #34495e;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  color: white;
}

.pressure-banner-inner {
  max-width: 700px;
  margin: 0 auto;
}

.pressure-banner .stat-line {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-transform: uppercase;
}

.pressure-banner .stat-line em {
  font-style: normal;
  color: #a8d8c8;
}

.pressure-banner .stat-sub {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  margin-top: var(--space-sm);
  letter-spacing: 0.04em;
}

/* ── Sections ─────────────────────────────────────────────────────── */
.section {
  padding: var(--space-xxl) var(--space-md);
}

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

.section-dark {
  background: #2c3e50;
  color: white;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header.centered {
  text-align: center;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-sm);
}

.section-dark .section-eyebrow {
  color: rgba(255,255,255,0.4);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 700px;
}

.section-header.centered .section-title {
  margin: 0 auto;
}

.section-desc {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-light);
  max-width: 580px;
  margin-top: var(--space-md);
}

.section-header.centered .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.section-dark .section-desc {
  color: rgba(255,255,255,0.5);
}

/* ── Card Grids ───────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: var(--space-md);
}

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

@media (max-width: 900px) { .card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; } }

/* ── Content Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-light);
}

/* ── Stress Type Cards (homepage preview) ─────────────────────────── */

/* Asymmetric grid: first and last cards span 2 cols */
.type-grid-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.type-grid-home .type-card--lighthouse { grid-column: span 2; }
.type-grid-home .type-card--container  { grid-column: span 2; }

/* Wide cards get horizontal layout */
.type-card--lighthouse .type-card-body,
.type-card--container .type-card-body {
  display: flex;
  flex-direction: column;
}

@media (min-width: 601px) {
  .type-card--lighthouse .type-card-body {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    column-gap: var(--space-md);
  }
  .type-card--lighthouse .type-card-body h3 { grid-column: 1; }
  .type-card--lighthouse .type-card-body .type-tagline { grid-column: 1; }
  .type-card--lighthouse .type-card-body p:not(.type-tagline) { grid-column: 2; grid-row: 1 / 4; align-self: center; }
  .type-card--lighthouse .type-card-body .type-link { grid-column: 1; }

  .type-card--container .type-card-body {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    column-gap: var(--space-md);
  }
  .type-card--container .type-card-body h3 { grid-column: 2; text-align: right; }
  .type-card--container .type-card-body .type-tagline { grid-column: 2; text-align: right; }
  .type-card--container .type-card-body p:not(.type-tagline) { grid-column: 1; grid-row: 1 / 4; align-self: center; }
  .type-card--container .type-card-body .type-link { grid-column: 2; text-align: right; justify-self: end; }
}

@media (max-width: 900px) { .type-grid-home { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .type-grid-home { grid-template-columns: 1fr; }
  .type-grid-home .type-card--lighthouse,
  .type-grid-home .type-card--container { grid-column: span 1; }
}

/* Base card */
.type-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.type-card-body {
  padding: 32px 28px;
}

.type-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--ink);
}

.type-card .type-tagline {
  font-family: var(--font-body);
  font-size: 16px;
  font-style: italic;
  color: var(--ink-light);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.type-card p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-light);
}

/* ── Per-type visual personality ──────────────────────────────────── */

/* LIGHTHOUSE: left border, warm radial glow, warm shadow on hover */
.type-card--lighthouse {
  border-left: 4px solid var(--lighthouse);
  border-top: 1px solid var(--rule);
  background: radial-gradient(ellipse at top right, var(--lighthouse-pale) 0%, var(--white) 60%);
}
.type-card--lighthouse:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(212, 168, 67, 0.15);
}

/* ALCHEMIST: dashed top border, slight rotation on hover */
.type-card--alchemist {
  border-top: 3px dashed var(--alchemist);
}
.type-card--alchemist:hover {
  transform: rotate(0.5deg) translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* FIREFIGHTER: L-shaped border, faint diagonal stripes, scale on hover */
.type-card--firefighter {
  border-left: 3px solid var(--firefighter);
  border-bottom: 3px solid var(--firefighter);
  border-top: 1px solid var(--rule);
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 12px,
      var(--firefighter-pale) 12px,
      var(--firefighter-pale) 13px
    );
}
.type-card--firefighter:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

/* STOIC: minimal, sharp, no accent — deliberately restrained */
.type-card--stoic {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.type-card--stoic:hover {
  transform: none;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

/* DIPLOMAT: double border effect, color transition on hover */
.type-card--diplomat {
  border: 1.5px solid var(--rule);
  outline: 2px solid var(--diplomat-pale);
  outline-offset: 3px;
}
.type-card--diplomat:hover {
  border-color: var(--diplomat);
  outline-color: var(--diplomat);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* CONTAINER: thick border, sharp square corners, hard offset shadow */
.type-card--container {
  border: 2.5px solid var(--ink-muted);
  border-radius: 2px;
  background: var(--container-pale);
}
.type-card--container:hover {
  transform: translateY(-4px);
  box-shadow: 5px 5px 0 var(--container);
}

.type-card .type-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: var(--space-md);
  transition: gap 0.2s;
}

.type-card .type-link:hover {
  gap: 12px;
}

/* ── Stress Type Detail Cards (types page) ────────────────────────── */
.type-detail {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow);
}

.type-detail-header {
  padding: var(--space-lg);
  color: white;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.type-detail-header .type-shield-lg {
  width: 72px;
  height: 82px;
  flex-shrink: 0;
}

.type-detail-header .type-shield-lg svg {
  width: 100%;
  height: 100%;
}

.type-detail-header .type-header-text .type-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 6px;
}

.type-detail-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.type-detail-body {
  padding: var(--space-lg);
}

.type-section {
  margin-bottom: var(--space-lg);
}

.type-section:last-child { margin-bottom: 0; }

.type-section-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--space-sm);
}

.type-section p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-light);
}

.type-section ul {
  list-style: none;
  padding: 0;
}

.type-section ul li {
  padding: 10px 0 10px 22px;
  position: relative;
  color: var(--ink-light);
  font-size: 15.5px;
  line-height: 1.65;
  border-bottom: 1px solid var(--rule);
}

.type-section ul li:last-child { border-bottom: none; }

.type-section ul li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--ink-muted);
}

.type-question-box {
  background: var(--gold-light);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
}

.type-question-box p {
  font-style: italic;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

.type-strategies { counter-reset: strategy; }
.type-strategies li { counter-increment: strategy; padding-left: 36px !important; }
.type-strategies li::before {
  content: counter(strategy) '.' !important;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  top: 11px;
}
.type-strategies li strong { color: var(--ink); }

/* Expandable type sections */
.type-detail-body.collapsed {
  max-height: 0;
  overflow: hidden;
  padding: 0 var(--space-lg);
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s;
}

.type-detail-body.expanded {
  max-height: 4000px;
  padding: var(--space-lg);
  transition: max-height 0.7s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s;
}

.type-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  background: none;
  border: none;
  border-top: 1px solid var(--rule);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.type-expand-btn:hover {
  background: var(--cream);
  color: var(--ink);
}

.type-expand-btn .chevron {
  transition: transform 0.3s;
  font-size: 16px;
}

.type-expand-btn.open .chevron {
  transform: rotate(180deg);
}

/* ── Core Premises ────────────────────────────────────────────────── */
.premise-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.premise-item:last-child { border-bottom: none; }

.premise-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
}

.premise-text {
  font-family: var(--font-body);
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* ── CTA Banner ───────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #2c3e50 0%, #3a7ca5 100%);
  color: white;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.cta-banner-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.cta-banner p {
  font-family: var(--font-body);
  font-size: 17px;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-lg);
  line-height: 1.65;
}

/* ── Matrix Visual ────────────────────────────────────────────────── */
.matrix-section {
  max-width: 800px;
  margin: 0 auto var(--space-xl);
}

.matrix-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  margin: var(--space-lg) 0;
}

.matrix-grid {
  position: absolute;
  inset: 40px 0 40px 40px;
  border-left: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
}

.matrix-label {
  position: absolute;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.matrix-label-top {
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.matrix-label-bottom {
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.matrix-label-left {
  left: -4px;
  top: 50%;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: left center;
}

.matrix-label-right {
  right: -4px;
  top: 50%;
  transform: rotate(90deg) translateX(-50%);
  transform-origin: right center;
}

.matrix-dot {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.matrix-dot:hover {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: 10;
}

@media (max-width: 600px) {
  .matrix-dot { width: 72px; height: 72px; font-size: 9px; }
}

/* ── What is Stress Intelligence? ─────────────────────────────────── */
.si-definition {
  max-width: none;
  margin: 0;
  margin-left: 12%;
  text-align: left;
}

.si-definition blockquote {
  font-family: var(--font-body);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.5;
  color: var(--ink);
  position: relative;
  padding: var(--space-lg) 0 var(--space-lg) 40px;
  border-top: none;
  border-bottom: none;
  border-left: 6px solid var(--ink);
  max-width: 680px;
}

@media (max-width: 768px) {
  .si-definition {
    margin-left: 0;
    text-align: left;
  }
  .si-definition blockquote {
    padding-left: 24px;
    border-left-width: 4px;
  }
}

/* Dot-grid background for the about section */
.section-dotgrid {
  background-image: radial-gradient(circle, var(--rule) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: var(--white);
}

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
  background: #2c3e50;
  color: rgba(255,255,255,0.4);
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
}

.footer-brand { max-width: 340px; }

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 4px;
}

.footer-brand-full {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-sm);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }

.footer-col a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-sans);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── Page Hero (inner pages) ──────────────────────────────────────── */
.page-hero {
  background: linear-gradient(165deg, #2c3e50 0%, #3a7ca5 80%);
  color: white;
  padding: calc(68px + var(--space-xl)) var(--space-md) var(--space-xl);
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero .hero-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-sm);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 700px;
  margin-bottom: var(--space-md);
}

.page-hero .hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.65;
  color: rgba(255,255,255,0.45);
  max-width: 560px;
}

/* ── HBR Link Banner ─────────────────────────────────────────────── */
.hbr-banner {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.hbr-banner p {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink-light);
}

.hbr-banner a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .hbr-banner { flex-direction: column; text-align: center; }
}

/* ── Scroll Animations ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* ── Utility ──────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.reading-width { max-width: var(--max-reading); margin-left: auto; margin-right: auto; }

/* ── Typography Variants ─────────────────────────────────────────── */
.section-title--hero {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.03em;
}

.section-title--light {
  font-weight: 400;
  font-size: clamp(30px, 4.5vw, 48px);
}

.section-title--giant {
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.03em;
  font-weight: 800;
}

/* ── Hero Texture (layered radial glows) ─────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(107, 154, 125, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(58, 124, 165, 0.15) 0%, transparent 50%),
    linear-gradient(165deg, #2c3e50 0%, #3a7ca5 60%, #5a9a8a 100%);
}

/* ── Dark section grid-line texture ──────────────────────────────── */
.section-dark {
  background:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
    #2c3e50;
  background-size: 48px 48px, 48px 48px, 100% 100%;
}

/* ── Pressure Banner — left accent ───────────────────────────────── */
.pressure-banner {
  text-align: left;
  border-left: 5px solid var(--sage);
}

.pressure-banner-inner {
  margin: 0 auto;
  max-width: 700px;
  padding-left: var(--space-md);
}

/* ── Staggered Core Premises ─────────────────────────────────────── */
.premise-item:nth-child(odd) {
  padding-left: 0;
  padding-right: 15%;
}

.premise-item:nth-child(even) {
  padding-left: 15%;
  padding-right: 0;
}

.premise-item:first-child .premise-num {
  font-size: 72px;
  color: rgba(255,255,255,0.08);
}

.premise-item:nth-child(odd) {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.premise-item:nth-child(even) {
  border-bottom: none;
}

.premise-item:nth-child(1) { padding-bottom: 36px; }
.premise-item:nth-child(2) { padding-top: 20px; padding-bottom: 40px; }
.premise-item:nth-child(3) { padding-bottom: 28px; }
.premise-item:nth-child(4) { padding-top: 24px; padding-bottom: 44px; }
.premise-item:nth-child(5) { padding-top: 16px; }

@media (max-width: 768px) {
  .premise-item:nth-child(odd),
  .premise-item:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ── Scroll Reveal Variants ──────────────────────────────────────── */
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-none {
  opacity: 0;
  transform: none;
  transition: opacity 0.8s ease;
}

.reveal-none.visible {
  opacity: 1;
}

/* ── Services Mixed Layout ───────────────────────────────────────── */
.services-top .card:hover {
  transform: translateY(0);
  box-shadow: var(--shadow-hover);
  border-bottom: 3px solid var(--blue);
}

.card--primary {
  background: var(--blue-light);
  border-color: var(--blue);
}

.services-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.card--horizontal {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: 28px 32px;
  border-left: 4px solid var(--rule);
  border-radius: var(--radius);
  transition: background 0.3s, border-color 0.3s;
}

.card--horizontal:hover {
  transform: none;
  background: var(--cream);
}

.card--horizontal h3 {
  white-space: nowrap;
  min-width: 180px;
}

.card--accent-sage { border-left-color: var(--sage); }
.card--accent-blue { border-left-color: var(--blue); }
.card--accent-warm { border-left-color: var(--warm); }

@media (max-width: 600px) {
  .card--horizontal {
    flex-direction: column;
    gap: var(--space-xs);
  }
  .card--horizontal h3 { white-space: normal; min-width: 0; }
}

/* ── CTA Banner Asymmetry ────────────────────────────────────────── */
.cta-banner {
  text-align: left;
  overflow: hidden;
  position: relative;
}

.cta-banner-inner {
  margin: 0;
  margin-left: 8%;
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.cta-banner::after {
  content: '';
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 154, 125, 0.15) 0%, rgba(58, 124, 165, 0.08) 40%, transparent 70%);
  pointer-events: none;
}

.cta-banner .btn {
  border-radius: 4px;
}

@media (max-width: 768px) {
  .cta-banner { text-align: center; }
  .cta-banner-inner { margin: 0 auto; }
  .cta-banner::after { display: none; }
}

/* ── Interlude ───────────────────────────────────────────────────── */
.interlude {
  background: var(--cream-dark);
  padding: var(--space-xl) var(--space-md);
  overflow: hidden;
}

.interlude-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: right;
}

.interlude-inner p {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.interlude-inner em {
  font-style: italic;
  color: var(--blue);
}

@media (max-width: 600px) {
  .interlude-inner { text-align: left; }
}

/* ── Per-type Detail Cards (stress-types.html) ───────────────────── */
.type-detail[id="lighthouse"] h2 {
  text-shadow: 0 1px 8px rgba(212, 168, 67, 0.15);
}

.type-detail[id="alchemist"] {
  transform: rotate(-0.3deg);
  transition: transform 0.4s;
}
.type-detail[id="alchemist"]:hover,
.type-detail[id="alchemist"].open {
  transform: rotate(0deg);
}

@keyframes pulseLeftBorder {
  0%, 100% { border-left-color: var(--firefighter); }
  50% { border-left-color: rgba(184, 84, 80, 0.4); }
}
.type-detail[id="firefighter"] {
  border-left: 4px solid var(--firefighter);
  animation: pulseLeftBorder 3s ease-in-out infinite;
}

.type-detail[id="stoic"] {
  border-radius: 0;
}

.type-detail[id="diplomat"] {
  outline: 2px solid var(--diplomat-pale);
  outline-offset: 4px;
}

.type-detail[id="container"] {
  border-width: 3px;
  border-radius: 2px;
}
