/* IntegrityStandard — Design Tokens & Components */

/* ── Fonts ── */
/* Century Gothic is a system font on many machines; Futura as web fallback via CDN */

:root {
  /* Typography */
  --font-display: 'Century Gothic', 'Raleway', 'Futura', sans-serif;
  --font-body: 'Century Gothic', 'Raleway', 'Futura', sans-serif;

  /* Type Scale */
  --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.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.1rem + 1.25vw, 2rem);
  --text-2xl: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);

  /* Spacing (4px base) */
  --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 Colors — warm, no harsh blacks */
  --color-bg: #FEFEFE;
  --color-surface: #F8F7F5;
  --color-surface-2: #F2F0ED;
  --color-text: #5E6660;
  --color-text-bold: #4A524C;
  --color-text-light: #7A7A7A;
  --color-text-faint: #A8A8A8;
  --color-accent: #5E6660;
  --color-accent-warm: #B8A99A;
  --color-divider: #D9D5CF;
  --color-divider-light: #E8E5E0;
  --color-footer-tagline: #C1C1C1;
  --color-footer-text: #A8A8A8;

  /* Layout */
  --content-narrow: 640px;
  --content-default: 900px;
  --content-wide: 1100px;

  /* Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(94, 102, 96, 0.06);
  --shadow-md: 0 4px 12px rgba(94, 102, 96, 0.08);
}

/* ── Global ── */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

a {
  color: var(--color-text-bold);
  text-decoration: none;
}
a:hover {
  color: var(--color-accent-warm);
}

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--color-text-bold);
  color: var(--color-bg);
  font-size: var(--text-sm);
  z-index: 100;
  border-radius: var(--radius-md);
}
.skip-link:focus {
  top: var(--space-2);
}

/* ── Header / Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(254, 254, 254, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--color-divider-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-light);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent-warm);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover {
  color: var(--color-text-bold);
}
.nav-links a:hover::after {
  width: 100%;
}

/* Pulse Check nav highlight */
.nav-pulse {
  color: var(--color-text-bold) !important;
  border: 1.5px solid var(--color-text-bold);
  padding: var(--space-1) var(--space-4);
  font-weight: 600 !important;
}
.nav-pulse:hover {
  background: var(--color-text-bold);
  color: var(--color-bg) !important;
}
.nav-pulse::after {
  display: none !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-bold);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(254, 254, 254, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-6);
    gap: var(--space-5);
    border-bottom: 1px solid var(--color-divider-light);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: var(--text-base); }
}

/* ── Section Rhythm ── */
.section {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) var(--space-6);
}
.section-inner {
  max-width: var(--content-default);
  margin: 0 auto;
}
.section-wide {
  max-width: var(--content-wide);
  margin: 0 auto;
}

/* ── Section Headings ── */
.section-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-warm);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-bold);
  margin-bottom: var(--space-6);
  line-height: 1.2;
}

.section-lead {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  max-width: 60ch;
}

/* Warm taupe divider */
.divider {
  width: 48px;
  height: 2px;
  background: var(--color-accent-warm);
  border: none;
  margin: var(--space-8) 0;
}
.divider-center {
  margin-left: auto;
  margin-right: auto;
}
.divider-hero {
  width: 80px;
}

/* ── Hero ── */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-24) var(--space-6) var(--space-16);
  text-align: center;
  position: relative;
}
.hero-content {
  max-width: 720px;
}
.hero-logo {
  max-width: 480px;
  width: 100%;
  height: auto;
  margin: 0 auto var(--space-6);
}
@media (max-width: 480px) {
  .hero-logo { max-width: 320px; }
}
.hero-statement {
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.7;
  max-width: 58ch;
  margin: 0 auto var(--space-8);
}
.hero-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-bold);
  border: 1.5px solid var(--color-text-bold);
  padding: var(--space-3) var(--space-8);
  text-decoration: none;
  transition: all 0.3s ease;
}
.hero-cta:hover {
  background: var(--color-text-bold);
  color: var(--color-bg);
}

/* ── Statement Emphasis (subtle bold callouts) ── */
.statement-emphasis {
  font-weight: 600;
  color: var(--color-text-bold);
  line-height: 1.75;
}

/* ── Purpose ── */
.purpose { background: var(--color-bg); }
.purpose-bold {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-bold);
  line-height: 1.5;
  margin-bottom: var(--space-6);
  max-width: 56ch;
}
.purpose-body p {
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}
.purpose-closer {
  font-weight: 700;
  color: var(--color-text-bold);
  margin-top: var(--space-8);
}

/* ── Values ── */
.values {
  background: var(--color-surface-2);
}
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}
.value-item {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-divider-light);
}
.value-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-bold);
  margin-bottom: var(--space-2);
  letter-spacing: 0.01em;
}
.value-item p {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.7;
}

/* ── How We Operate ── */
.operate { background: var(--color-surface); }
.operate-outcomes {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.operate-outcome {
  font-size: var(--text-base);
  color: var(--color-text);
  padding-left: var(--space-5);
  position: relative;
}
.operate-outcome::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 2px;
  background: var(--color-accent-warm);
}

/* ── Areas of Practice ── */
.practice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-10);
}
@media (min-width: 768px) {
  .practice-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.practice-card {
  padding: var(--space-8) 0;
  border-top: 2px solid var(--color-accent-warm);
}
.practice-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-bold);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}
.practice-card p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
}
.practice-closer {
  margin-top: var(--space-10);
  font-weight: 700;
  color: var(--color-text-bold);
  font-size: var(--text-base);
}

/* ── Engagement ── */
.engagement { background: var(--color-surface); }
.engagement-models {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-10);
}
@media (min-width: 640px) {
  .engagement-models { grid-template-columns: 1fr 1fr 1fr; gap: var(--space-10); }
}
.engagement-model h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-bold);
  margin-bottom: var(--space-3);
  letter-spacing: 0.01em;
}
.engagement-model p {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.7;
}
.engagement-model .model-number {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--color-accent-warm);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
  display: block;
}

/* ── Landscape ── */
.landscape {
  background: var(--color-surface-2);
}
.landscape-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.landscape-point {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 2fr 1fr; gap: var(--space-16); }
}
.about-text p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}
.about-photo {
  position: relative;
}
.about-photo img {
  width: 100%;
  max-width: 280px;
  filter: grayscale(10%);
}
@media (max-width: 767px) {
  .about-photo { order: -1; }
  .about-photo img { max-width: 200px; margin: 0 auto; }
}
.about-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-bold);
  margin-top: var(--space-4);
  letter-spacing: 0.04em;
}
.about-role {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

/* ── Contact / CTA ── */
.contact {
  background: var(--color-surface);
  text-align: center;
}
.contact-lead {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-bold);
  margin-bottom: var(--space-4);
  line-height: 1.5;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}
.contact-sub {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  max-width: 52ch;
  margin: 0 auto var(--space-8);
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  margin-top: var(--space-6);
}
.contact-details a,
.contact-details span {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  letter-spacing: 0.04em;
}
.contact-details a:hover {
  color: var(--color-text-bold);
}

/* ── Pulse Check ── */
.pulse-check {
  background: var(--color-bg);
  border-top: 1px solid var(--color-divider-light);
}

/* ── Footer ── */
.site-footer {
  padding: var(--space-12) var(--space-6) var(--space-8);
  text-align: center;
}
.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-footer-text);
  letter-spacing: 0.02em;
  text-align: center;
  max-width: none;
}

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

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
