/* =============================================================
   Habitual Integrity Leadership — Stylesheet
   Brand: Navy #1B2A4A · Teal #2AAA8A · Gold #C9A227
   Type: Playfair Display (display) + DM Sans (body)
   ============================================================= */

/* ---------- TYPE SCALE (fluid) ---------- */
:root {
  --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);
  --text-hero: clamp(2.75rem, 0.5rem + 6vw, 6.5rem);
}

/* ---------- SPACING ---------- */
:root {
  --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;
  --space-32: 8rem;
}

/* ---------- BRAND TOKENS ---------- */
:root,
[data-theme='light'] {
  /* Brand palette */
  --brand-navy: #1b2a4a;
  --brand-navy-2: #263a62;
  --brand-navy-deep: #121d35;
  --brand-teal: #2aaa8a;
  --brand-teal-hover: #228971;
  --brand-teal-soft: #d6f0e7;
  --brand-gold: #c9a227;
  --brand-gold-hover: #a8871f;
  --brand-gold-soft: #f6ecc9;

  /* Surfaces */
  --color-bg: #fdfcf9;
  --color-surface: #ffffff;
  --color-surface-2: #f7f5ef;
  --color-surface-offset: #efece3;
  --color-border: #e4dfd3;
  --color-divider: #ece7d9;

  /* Text */
  --color-text: #1a1a1a;
  --color-text-2: #333333;
  --color-text-muted: #6b6a63;
  --color-text-faint: #a9a7a0;
  --color-text-inverse: #ffffff;

  /* Semantic roles */
  --color-primary: var(--brand-teal);
  --color-primary-hover: var(--brand-teal-hover);
  --color-accent-gold: var(--brand-gold);
  --color-accent-navy: var(--brand-navy);

  /* Refuse red/rust */
  --color-refuse: #b84a32;
  --color-refuse-soft: #f4dbd1;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(27, 42, 74, 0.06);
  --shadow-md: 0 8px 24px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 24px 60px rgba(27, 42, 74, 0.14);

  /* Transitions */
  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Widths */
  --content-narrow: 680px;
  --content-default: 1040px;
  --content-wide: 1240px;

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  color-scheme: light;
}

[data-theme='dark'] {
  --color-bg: #0f172a;
  --color-surface: #162339;
  --color-surface-2: #1b2a4a;
  --color-surface-offset: #233456;
  --color-border: #2c3e66;
  --color-divider: #263760;

  --color-text: #f2f1ea;
  --color-text-2: #d6d5ce;
  --color-text-muted: #a7a6a0;
  --color-text-faint: #6e6d67;
  --color-text-inverse: #0f172a;

  --color-primary: #39c29f;
  --color-primary-hover: #52d4b3;

  --brand-teal-soft: #1c3f36;
  --brand-gold-soft: #3b3420;
  --color-refuse-soft: #3e211a;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);

  color-scheme: dark;
}

/* ---------- BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  transition: background var(--transition-interactive), color var(--transition-interactive);
  overflow-x: hidden;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul[role='list'],
ol[role='list'] {
  list-style: none;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  line-height: 1.12;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
p,
li {
  text-wrap: pretty;
}
p {
  max-width: 68ch;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
a:hover {
  color: var(--color-primary-hover);
}

::selection {
  background: color-mix(in oklab, var(--brand-teal) 25%, transparent);
  color: var(--color-text);
}
:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 3px;
  border-radius: 4px;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}

@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;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--brand-navy);
  color: white;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 200;
  transition: top var(--transition-interactive);
}
.skip-link:focus {
  top: var(--space-4);
}

/* ---------- LAYOUT ---------- */
.container {
  width: min(100% - 2 * var(--space-6), var(--content-wide));
  margin-inline: auto;
}

.section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
  position: relative;
}

.section-head {
  max-width: 780px;
  margin-bottom: var(--space-16);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}
.eyebrow-gold {
  color: var(--brand-gold);
}
.eyebrow-dark {
  color: var(--brand-navy);
}
[data-theme='dark'] .eyebrow-dark {
  color: var(--color-primary);
}

.section-title {
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin-bottom: var(--space-5);
  font-weight: 600;
}
.section-title.light {
  color: #fff;
}
.section-lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 58ch;
  line-height: 1.55;
}
.section-lede.light {
  color: rgba(255, 255, 255, 0.82);
}
.section-head.center .section-lede {
  margin-inline: auto;
}
.muted-note {
  font-size: var(--text-sm);
  font-style: italic;
}

em {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--brand-gold);
}
.section-title em {
  color: var(--brand-gold);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-interactive);
  line-height: 1;
  white-space: nowrap;
}
.btn-sm {
  padding: 0.65rem 1.1rem;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--brand-teal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(42, 170, 138, 0.28);
}
.btn-primary:hover {
  background: var(--brand-teal-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(42, 170, 138, 0.36);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-block {
  width: 100%;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
}
.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  gap: var(--space-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.brand-mark {
  width: 40px;
  height: 40px;
  color: var(--brand-navy);
  flex-shrink: 0;
}
[data-theme='dark'] .brand-mark {
  color: var(--brand-teal);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-top: 0.2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-left: auto;
}
.site-nav a {
  color: var(--color-text-2);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: var(--space-1) 0;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--brand-teal);
  transition: width var(--transition-interactive);
}
.site-nav a:hover {
  color: var(--color-text);
}
.site-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  color: var(--color-text-2);
  transition: background var(--transition-interactive);
}
.theme-toggle:hover {
  background: var(--color-surface-2);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-interactive), opacity var(--transition-interactive);
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: var(--space-4) var(--space-6) var(--space-8);
  gap: var(--space-4);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.mobile-nav a {
  color: var(--color-text);
  font-size: var(--text-lg);
  font-weight: 500;
  padding: var(--space-2) 0;
  text-decoration: none;
}
.mobile-nav .btn {
  margin-top: var(--space-4);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  padding-block: var(--space-24);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 18, 36, 0.75) 0%, rgba(10, 18, 36, 0.55) 45%, rgba(10, 18, 36, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 18, 36, 0.85) 0%, rgba(10, 18, 36, 0.45) 65%, rgba(10, 18, 36, 0.35) 100%);
}

.hero-inner {
  position: relative;
  max-width: 900px;
}
.hero-inner::before {
  content: '';
  position: absolute;
  inset: -10% -20% -10% -20%;
  background: radial-gradient(ellipse at 35% 45%, rgba(10, 18, 36, 0.55) 0%, rgba(10, 18, 36, 0.25) 50%, transparent 75%);
  z-index: -1;
  pointer-events: none;
}
.hero .eyebrow {
  color: var(--brand-gold);
}
.hero .eyebrow::before {
  background: var(--brand-gold);
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-6);
  color: #fff;
}
.hero-title em {
  color: var(--brand-gold);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-inline: 0.04em;
}
.hero-sub {
  font-size: var(--text-lg);
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-8);
  line-height: 1.55;
}
.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}
.hero-meta {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.92);
  padding: var(--space-4) var(--space-6);
  background: rgba(10, 18, 36, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.hero-meta span {
  display: inline-flex;
  gap: var(--space-2);
  align-items: baseline;
}
.hero-meta strong {
  color: var(--brand-gold);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.15em;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  display: grid;
  place-items: center;
}
.hero-scroll span {
  display: block;
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: scroll-hint 2.2s ease-in-out infinite;
}
@keyframes scroll-hint {
  0% { transform: translateY(-6px); opacity: 0; }
  50% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(6px); opacity: 0; }
}

/* ---------- ABOUT ---------- */
.about {
  background: var(--color-bg);
}
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-16);
  align-items: center;
  margin-bottom: var(--space-24);
}
.about-figure {
  position: relative;
}
.about-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about-figure-caption {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  right: var(--space-5);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--brand-gold);
}
[data-theme='dark'] .about-figure-caption {
  background: rgba(22, 35, 57, 0.95);
}
.about-figure-caption span:first-child {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}
.about-figure-caption span:last-child {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.about-copy p {
  font-size: var(--text-base);
  color: var(--color-text-2);
  margin-bottom: var(--space-5);
  line-height: 1.65;
}
.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.credentials li {
  padding: 0.5rem 1rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-2);
  letter-spacing: 0.02em;
}

/* Pillars */
.pillars-head {
  font-size: var(--text-xl);
  text-align: center;
  margin-bottom: var(--space-12);
  color: var(--color-text);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-5);
}
.pillar {
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-teal);
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  font-style: italic;
  color: var(--brand-gold);
  margin-bottom: var(--space-4);
  line-height: 1;
}
.pillar h4 {
  font-size: 1.2rem;
  margin-bottom: var(--space-3);
  color: var(--color-text);
  font-weight: 600;
}
.pillar p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ---------- STORY ---------- */
.story {
  background: var(--color-surface-2);
  position: relative;
  overflow: hidden;
}
.story::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 70%;
  height: 120%;
  background: radial-gradient(circle, color-mix(in oklab, var(--brand-gold) 18%, transparent), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.story-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}
.story-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.story-copy p {
  font-size: var(--text-base);
  color: var(--color-text-2);
  margin-bottom: var(--space-5);
  line-height: 1.7;
}
.story-copy p strong {
  color: var(--brand-navy);
  font-weight: 700;
}
[data-theme='dark'] .story-copy p strong {
  color: var(--brand-teal);
}

.pull-quote {
  margin: var(--space-10) 0;
  padding: var(--space-6) var(--space-8);
  border-left: 3px solid var(--brand-gold);
  background: transparent;
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.35;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  font-weight: 500;
  max-width: none;
}
.pull-quote cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* ---------- FRAMEWORK ---------- */
.framework {
  background: var(--color-bg);
}
.framework-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}
.framework-card {
  padding: var(--space-10) var(--space-8);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.framework-card header {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
.framework-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}
.framework-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
  font-weight: 600;
}
.framework-card header p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.framework-card ul {
  display: grid;
  gap: var(--space-3);
}
.framework-card li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-divider);
}
.framework-card li:last-child {
  border-bottom: none;
}
.framework-card li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.refuse {
  background: linear-gradient(180deg, var(--color-refuse-soft) 0%, var(--color-surface) 50%);
}
.refuse .framework-tag {
  background: var(--color-refuse);
  color: #fff;
}
.refuse h3 {
  color: var(--color-refuse);
}
.refuse li::before {
  background: var(--color-refuse);
}
[data-theme='dark'] .refuse h3 {
  color: #e08c72;
}

.embrace {
  background: linear-gradient(180deg, var(--brand-teal-soft) 0%, var(--color-surface) 50%);
}
.embrace .framework-tag {
  background: var(--brand-teal);
  color: #fff;
}
.embrace h3 {
  color: var(--brand-teal);
}
.embrace li::before {
  background: var(--brand-teal);
}
[data-theme='dark'] .embrace h3 {
  color: var(--color-primary);
}

.framework-quote {
  max-width: 820px;
  margin: var(--space-16) auto 0;
  text-align: center;
  padding: var(--space-10) var(--space-6);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.framework-quote p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  font-weight: 500;
  max-width: none;
}
.framework-quote cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* ---------- SERVICES ---------- */
.services {
  position: relative;
  overflow: hidden;
  background: var(--brand-navy-deep);
  isolation: isolate;
  color: #fff;
}
.services-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
}
.services-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.services::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at top right, rgba(201, 162, 39, 0.15), transparent 60%),
    linear-gradient(180deg, rgba(18, 29, 53, 0.6) 0%, rgba(18, 29, 53, 0.92) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}
.service-card {
  padding: var(--space-8);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-interactive), background var(--transition-interactive), border-color var(--transition-interactive);
}
.service-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(42, 170, 138, 0.6);
}
.service-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brand-gold);
  letter-spacing: 0.2em;
  margin-bottom: var(--space-4);
}
.service-card h3 {
  color: #fff;
  font-size: 1.45rem;
  margin-bottom: var(--space-4);
  font-weight: 600;
  line-height: 1.2;
}
.service-desc {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
  line-height: 1.6;
}
.service-meta {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex-grow: 1;
  padding: var(--space-5) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.service-meta > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--space-3);
  align-items: start;
}
.service-meta dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-gold);
  font-weight: 600;
  padding-top: 2px;
}
.service-meta dd {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- DISC ---------- */
.disc {
  background: var(--color-surface-2);
}
.disc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}
.disc-card {
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid transparent;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.disc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.disc-letter {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 0.9;
  margin-bottom: var(--space-4);
  font-style: italic;
}
.disc-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-2);
  color: var(--color-text);
  font-weight: 600;
}
.disc-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
}
.disc-card > p:last-child {
  font-size: var(--text-sm);
  color: var(--color-text-2);
  line-height: 1.55;
}
.disc-d { border-top-color: #c74a3e; }
.disc-d .disc-letter { color: #c74a3e; }
.disc-i { border-top-color: #e8a33b; }
.disc-i .disc-letter { color: #e8a33b; }
.disc-s { border-top-color: var(--brand-teal); }
.disc-s .disc-letter { color: var(--brand-teal); }
.disc-c { border-top-color: var(--brand-navy); }
.disc-c .disc-letter { color: var(--brand-navy); }
[data-theme='dark'] .disc-c .disc-letter { color: #7a95c9; }
[data-theme='dark'] .disc-c { border-top-color: #7a95c9; }

.disc-cta {
  text-align: center;
  padding: var(--space-10);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 720px;
  margin-inline: auto;
}
.disc-cta p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  max-width: none;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  background: var(--color-bg);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}
.testimonial {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.testimonial:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.quote-mark {
  width: 42px;
  height: 42px;
  color: var(--brand-gold);
  opacity: 0.45;
  margin-bottom: var(--space-3);
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  font-weight: 500;
  font-style: italic;
}
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}
.testimonial figcaption strong {
  color: var(--color-text);
  font-weight: 600;
  font-size: var(--text-sm);
}
.testimonial figcaption span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--brand-navy);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at top left, rgba(42, 170, 138, 0.2), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(201, 162, 39, 0.15), transparent 60%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: var(--space-16);
  align-items: start;
}
.contact-copy .section-title {
  color: #fff;
}
.contact-list {
  margin: var(--space-10) 0;
  display: grid;
  gap: var(--space-5);
}
.contact-list li {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}
.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(42, 170, 138, 0.18);
  color: var(--brand-teal);
  flex-shrink: 0;
}
.contact-icon svg {
  width: 20px;
  height: 20px;
}
.contact-list li > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-list li > div > span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold);
  font-weight: 600;
}
.contact-list li a,
.contact-list li p {
  color: #fff;
  font-size: var(--text-base);
  text-decoration: none;
  max-width: none;
}
.contact-list li a:hover {
  color: var(--brand-teal);
}

.social-links {
  display: flex;
  gap: var(--space-3);
}
.social {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background var(--transition-interactive), transform var(--transition-interactive), color var(--transition-interactive);
}
.social svg {
  width: 18px;
  height: 18px;
}
.social:hover {
  background: var(--brand-teal);
  color: #fff;
  transform: translateY(-2px);
}

/* Form */
.contact-form {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: grid;
  gap: var(--space-4);
}
.contact-form h3 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.form-sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  max-width: none;
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.field label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-gold);
}
.field .optional {
  color: rgba(255, 255, 255, 0.5);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.field input,
.field textarea,
.field select {
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: var(--text-base);
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
  font-family: inherit;
  width: 100%;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A227' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}
.field select option {
  background: var(--brand-navy);
  color: #fff;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand-teal);
  background: rgba(255, 255, 255, 0.1);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.form-success {
  text-align: center;
  color: var(--brand-teal);
  font-weight: 500;
  padding: var(--space-3);
  background: rgba(42, 170, 138, 0.1);
  border-radius: var(--radius-md);
  margin-top: var(--space-2);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--brand-navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.brand-footer {
  color: #fff;
  margin-bottom: var(--space-4);
}
.brand-footer .brand-mark {
  color: #fff;
}
.brand-footer .brand-name {
  color: #fff;
}
.brand-footer .brand-sub {
  color: var(--brand-gold);
}
.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-5);
  max-width: none;
}
.footer-cert {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  max-width: none;
}
.cert-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand-gold);
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: var(--radius-full);
}
.site-footer h4 {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: var(--space-5);
  font-family: var(--font-body);
  font-weight: 600;
}
.footer-links {
  display: grid;
  gap: var(--space-3);
}
.footer-links a,
.footer-links li {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-sm);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--brand-teal);
}

.footer-base {
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
}
.footer-quote em {
  font-family: var(--font-display);
  color: rgba(255, 255, 255, 0.72);
  font-style: italic;
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .site-nav {
    display: none;
  }
  .header-actions .btn {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .mobile-nav.is-open {
    display: flex;
  }
  .about-grid,
  .story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .about-figure,
  .story-media {
    max-width: 420px;
    margin-inline: auto;
  }
  .disc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .framework-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 72px;
  }
  .brand-sub {
    display: none;
  }
  .brand-name {
    font-size: 1rem;
  }
  .hero {
    min-height: 88vh;
    padding-block: var(--space-20) var(--space-16);
  }
  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
  .hero-ctas .btn {
    flex: 1 1 auto;
    min-width: 140px;
  }
  .hero-meta {
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
  }
  .hero-meta span {
    font-size: 0.8rem;
  }
  .section {
    padding-block: clamp(var(--space-12), 12vw, var(--space-20));
  }
  .section-head {
    margin-bottom: var(--space-10);
  }
  .disc-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }
  .disc-card {
    padding: var(--space-6) var(--space-4);
  }
  .disc-letter {
    font-size: 2.5rem;
  }
  .framework-card {
    padding: var(--space-6);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    padding: var(--space-6);
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .pillars {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }
  .pillar {
    padding: var(--space-5) var(--space-4);
  }
  .pillar-num {
    font-size: 1.5rem;
  }
  .contact-form {
    padding: var(--space-6);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-inner {
    gap: var(--space-3);
  }
}

@media (max-width: 400px) {
  .pillars {
    grid-template-columns: 1fr;
  }
  .hero-meta {
    flex-direction: column;
    gap: var(--space-2);
  }
}
