/* === TOKENS === */
:root {
  --ink: #0D1B2A;
  --ink-muted: #637084;
  --ground: #FFFFFF;
  --surface: #F3F5F8;
  --accent: #C45E1A;
  --accent-faint: rgba(196, 94, 26, 0.07);
  --rule: #E2E6EC;
  --nav-bg: rgba(255,255,255,0.96);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1100px;
  --pad-x: clamp(1.5rem, 6vw, 5rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E5ECF3;
    --ink-muted: #8FA0B3;
    --ground: #09151F;
    --surface: #101D28;
    --accent: #E07240;
    --accent-faint: rgba(224, 114, 64, 0.10);
    --rule: #1A2E3D;
    --nav-bg: rgba(9, 21, 31, 0.96);
  }
}

:root[data-theme="dark"] {
  --ink: #E5ECF3;
  --ink-muted: #8FA0B3;
  --ground: #09151F;
  --surface: #101D28;
  --accent: #E07240;
  --accent-faint: rgba(224, 114, 64, 0.10);
  --rule: #1A2E3D;
  --nav-bg: rgba(9, 21, 31, 0.96);
}

/* === BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--ground);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* === NAV === */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--ground) 38%, transparent 38%),
    conic-gradient(
      #2196F3 0deg 50deg,
      transparent 50deg 57deg,
      #4CAF82 57deg 107deg,
      transparent 107deg 114deg,
      #F4CF3B 114deg 164deg,
      transparent 164deg 171deg,
      #E8762A 171deg 221deg,
      transparent 221deg 228deg,
      #C0392B 228deg 278deg,
      transparent 278deg 285deg,
      #7C4DBC 285deg 335deg,
      transparent 335deg 342deg,
      #2196F3 342deg 360deg
    );
  flex-shrink: 0;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--ink-muted);
  font-weight: 400;
  letter-spacing: 0.015em;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-cta a {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-weight: 500 !important;
  transition: opacity 0.15s;
  display: inline-block;
}
.nav-cta a:hover { opacity: 0.85; }

/* === BUTTONS === */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
  border-radius: 4px;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.875rem 2rem;
}
.btn-primary:hover { opacity: 0.85; }
.btn-text {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  border-radius: 0;
}
.btn-text:hover { border-color: var(--ink); }

/* === SECTIONS === */
.section { padding: clamp(4rem, 8vw, 7rem) var(--pad-x); }
.section-alt { background: var(--surface); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.section-title em { font-style: italic; }
.section-body {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.75;
  max-width: 58ch;
  font-weight: 300;
}

/* === PAGE HERO (non-home pages) === */
.page-hero {
  padding: clamp(3.5rem, 7vw, 6rem) var(--pad-x) clamp(3rem, 5vw, 5rem);
  border-bottom: 1px solid var(--rule);
}
.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--ink);
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--ink-muted);
  line-height: 1.75;
  max-width: 52ch;
  font-weight: 300;
}

/* === HOME HERO === */
.home-hero {
  padding: clamp(5rem, 12vw, 9rem) var(--pad-x) clamp(4rem, 8vw, 6rem);
  max-width: var(--max-w);
  margin: 0 auto;
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7.5vw, 6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.06;
  text-wrap: balance;
  color: var(--ink);
  margin-bottom: 1.75rem;
  max-width: 14ch;
}
.hero-headline strong {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}
.hero-body {
  font-size: 1.1rem;
  color: var(--ink-muted);
  line-height: 1.75;
  max-width: 52ch;
  margin-bottom: 2.75rem;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-stat-row {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
}

/* === SERVICES GRID === */
.services-head { margin-bottom: 3rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
  background: var(--rule);
  gap: 1px;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--ground);
  padding: 2rem 1.75rem 2.25rem;
  transition: background 0.2s;
}
.service-card:hover { background: var(--accent-faint); }
.service-icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.service-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.service-desc {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* === ABOUT TWO-COL === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; gap: 3rem; } }
.about-body {
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.8;
  font-weight: 300;
  margin-top: 1.25rem;
}
.about-body + .about-body { margin-top: 1rem; }
.about-pull {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: balance;
  margin-top: 2.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
}

/* === VALUES === */
.values-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}
.values-list { display: flex; flex-direction: column; gap: 2rem; }
.value-item {
  padding-left: 1.25rem;
  border-left: 2px solid var(--rule);
  transition: border-color 0.2s;
}
.value-item:hover { border-color: var(--accent); }
.value-name {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.value-desc { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.65; }

/* === APPROACH === */
.approach-statement {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
  max-width: 680px;
  margin-bottom: 3.5rem;
}
.approach-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}
.pillar-title {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.pillar-desc { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.7; }

/* === CTA BAND === */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: clamp(4rem, 7vw, 6rem) var(--pad-x);
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  text-wrap: balance;
  margin-bottom: 1.5rem;
  color: #fff;
}
.cta-band p {
  font-size: 1rem;
  color: rgba(229, 236, 243, 0.7);
  margin-bottom: 2.5rem;
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-weight: 300;
}
.btn-light {
  background: #fff;
  color: var(--ink) !important;
  padding: 0.875rem 2rem;
}
.btn-light:hover { opacity: 0.9; }

/* === CONTACT === */
.contact-note {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-top: 1.25rem;
  font-weight: 300;
}
.contact-email {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-faint);
  padding-bottom: 2px;
  transition: border-color 0.15s;
}
.contact-email:hover { border-color: var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: flex; flex-direction: column; gap: 0.45rem; }
.form-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.form-input,
.form-textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  transition: border-color 0.15s, background 0.15s;
  outline: none;
  width: 100%;
}
.form-input:focus,
.form-textarea:focus { border-color: var(--accent); background: var(--ground); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-notice { font-size: 0.8rem; color: var(--ink-muted); }

/* === FOOTER === */
footer {
  background: var(--ink);
  color: rgba(229, 236, 243, 0.6);
  padding: 3rem var(--pad-x);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.footer-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--ink) 38%, transparent 38%),
    conic-gradient(
      #2196F3 0deg 50deg,
      transparent 50deg 57deg,
      #4CAF82 57deg 107deg,
      transparent 107deg 114deg,
      #F4CF3B 114deg 164deg,
      transparent 164deg 171deg,
      #E8762A 171deg 221deg,
      transparent 221deg 228deg,
      #C0392B 228deg 278deg,
      transparent 278deg 285deg,
      #7C4DBC 285deg 335deg,
      transparent 335deg 342deg,
      #2196F3 342deg 360deg
    );
}
.footer-logo-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(229, 236, 243, 0.9);
}
.footer-copy { font-size: 0.8rem; }
.footer-links { display: flex; gap: 1.75rem; list-style: none; }
.footer-links a {
  font-size: 0.8rem;
  text-decoration: none;
  color: rgba(229, 236, 243, 0.45);
  transition: color 0.15s;
}
.footer-links a:hover { color: rgba(229, 236, 243, 0.9); }

/* === FOCUS & MOTION === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
