/* =========================================================
   LEADING THROUGH — WEBSITE STYLESHEET
   Executive. Modern. Structured. Inflection-Point Anchored.
   ========================================================= */

/* ---------- 1. Color System ---------- */
:root {
  --graphite: #1F1F21;
  --graphite-soft: #3A3A3D;
  --ice-blue: #A7C7E7;
  --ice-blue-dark: #8FB5D4;
  --bone: #F5F3EF;
  --soft-graphite: #D3D7DD;
  --white: #FFFFFF;

  --font-header: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container-max: 1280px;
  --radius: 6px;
  --transition: 0.2s ease;
}

/* ---------- 2. Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--graphite);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 3. Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-header);
  color: var(--graphite);
}
h1 { font-weight: 700; font-size: 52px; line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-weight: 600; font-size: 36px; line-height: 1.3; margin-bottom: 24px; }
h3 { font-weight: 500; font-size: 24px; line-height: 1.4; margin-bottom: 12px; }
p { margin-bottom: 24px; }
p:last-child { margin-bottom: 0; }
strong, .emphasis { font-family: var(--font-body); font-weight: 500; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ice-blue-dark);
  margin-bottom: 12px;
}
.hero .eyebrow, .footer .eyebrow { color: var(--ice-blue); }

@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 21px; }
  body { font-size: 17px; }
}

/* ---------- 4. Layout & Grid ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 1024px) { .container { padding: 0 32px; } }
@media (max-width: 480px) { .container { padding: 0 20px; } }

.section { padding: 100px 0; }
.section--tight { padding: 64px 0; }
.section--bone { background-color: var(--bone); }
.section--white { background-color: var(--white); }
.section--graphite { background-color: var(--graphite); color: var(--white); }
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; align-items: center; }
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-cards--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1024px) {
  .grid-3, .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .grid-3, .grid-cards, .grid-cards--2 { grid-template-columns: 1fr; gap: 24px; }
}

.section-header { margin-bottom: 48px; max-width: 720px; }
.section-header h2 {
  display: inline-block;
  border-bottom: 2px solid var(--ice-blue);
  padding-bottom: 12px;
}
.section-header--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header--center h2 { border-bottom: none; }
.section-header--center .eyebrow { display: block; }

.intro-text { max-width: 680px; font-size: 20px; color: var(--graphite-soft); }

/* ---------- 5. Motifs ---------- */
.inflection-line {
  width: 120px;
  height: 4px;
  background-color: var(--ice-blue);
  transform-origin: left center;
  transform: scaleX(0) rotate(-8deg);
  transition: transform 0.6s ease;
}
.inflection-line.in-view { transform: scaleX(1) rotate(-8deg); }

.hero .inflection-line {
  position: absolute;
  top: 64px;
  right: 40px;
  width: 160px;
}
@media (max-width: 768px) {
  .hero .inflection-line { display: none; }
}

.split-divider {
  width: 60%;
  height: 2px;
  background-color: var(--soft-graphite);
  margin: 64px auto;
  position: relative;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.split-divider.in-view { opacity: 1; }
.split-divider::after {
  content: '';
  position: absolute;
  top: 0;
  right: -40px;
  width: 24px;
  height: 2px;
  background-color: var(--ice-blue);
}

.monogram-watermark {
  position: absolute;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.hero .monogram-watermark { bottom: -40px; right: -40px; width: 320px; height: 320px; }
.footer .monogram-watermark { bottom: -20px; right: 0; width: 220px; height: 220px; opacity: 0.06; }

/* ---------- 6. Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(245, 243, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--soft-graphite);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo .monogram { width: 32px; height: 32px; }
.nav-logo .wordmark {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--graphite);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 15px;
  color: var(--graphite);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background-color: var(--ice-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--graphite); font-weight: 600; }
.nav-cta-group { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background-color: var(--graphite); transition: var(--transition); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: var(--graphite);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  line-height: 1;
}
.mobile-menu a {
  display: block;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 28px;
  color: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid var(--graphite-soft);
}
.mobile-menu a[aria-current="page"] { color: var(--ice-blue); }
.mobile-menu .mobile-cta { margin-top: 32px; }

@media (max-width: 900px) {
  .nav-links, .nav-cta-group .btn-secondary { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 200px 0 120px;
}
.hero--primary { background-color: var(--graphite); color: var(--white); }
.hero--primary h1 { color: var(--white); }
.hero--bone { background-color: var(--bone); padding: 160px 0 90px; }
.hero--graphite-alt { background-color: var(--graphite); color: var(--white); padding: 160px 0 90px; }
.hero--graphite-alt h1 { color: var(--white); }

.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero p.hero-lede {
  font-size: 21px;
  color: var(--soft-graphite);
  max-width: 640px;
  margin-top: 24px;
}
.hero--bone p.hero-lede, .hero--bone p { color: var(--graphite-soft); }
.hero .btn { margin-top: 40px; }

@media (max-width: 768px) {
  .hero { padding: 140px 0 72px; }
  .hero--bone, .hero--graphite-alt { padding: 120px 0 56px; }
}

/* ---------- 8. Buttons / CTAs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 4px;
  border: none;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-primary { background-color: var(--ice-blue); color: var(--graphite); }
.btn-primary:hover { background-color: var(--ice-blue-dark); transform: translateY(-1px); }
.btn-secondary {
  background: none;
  color: inherit;
  padding: 16px 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}
.btn-secondary:hover { color: var(--ice-blue-dark); }
.btn-locked {
  background-color: var(--soft-graphite);
  color: var(--graphite);
  cursor: not-allowed;
}
.btn-locked svg { width: 16px; height: 16px; }

@media (max-width: 768px) {
  .btn-primary { width: 100%; justify-content: center; }
}

/* ---------- 9. Cards ---------- */
.card {
  background-color: var(--bone);
  border: 1px solid var(--soft-graphite);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(31,31,33,0.08); }
.card-icon {
  width: 40px;
  height: 40px;
  color: var(--ice-blue-dark);
  margin-bottom: 20px;
}
.card-icon svg { width: 100%; height: 100%; stroke: var(--ice-blue-dark); }
.card:hover .card-icon svg { stroke: var(--graphite); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--graphite-soft); margin-bottom: 16px; }
.card .card-tag {
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ice-blue-dark);
  margin-bottom: 12px;
  display: block;
}
.card .card-link { font-family: var(--font-header); font-weight: 600; font-size: 14px; color: var(--graphite); border-bottom: 1px solid var(--graphite); padding-bottom: 2px; }

.card--white { background-color: var(--white); }

.card--locked { opacity: 0.6; position: relative; }
.card--locked .card-icon svg { stroke: var(--soft-graphite); }
.card--locked:hover { transform: none; box-shadow: none; }

/* Pillar cards */
.pillar-card { text-align: left; padding: 0; background: none; border: none; }
.pillar-card:hover { transform: none; box-shadow: none; }
.pillar-number {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 14px;
  color: var(--ice-blue-dark);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  display: block;
}

/* Case study card */
.case-card { background-color: var(--white); border: 1px solid var(--soft-graphite); }
.case-card .card-tag { color: var(--ice-blue-dark); }

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- 10. Operating System Diagram ---------- */
.os-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}
.os-node {
  flex: 1;
  text-align: center;
  padding: 28px 16px;
  background-color: var(--white);
  border: 1px solid var(--soft-graphite);
  border-radius: var(--radius);
}
.os-node .pillar-number { text-align: center; }
.os-arrow { color: var(--ice-blue-dark); font-size: 24px; flex: 0 0 auto; }
@media (max-width: 768px) {
  .os-diagram { flex-direction: column; }
  .os-arrow { transform: rotate(90deg); }
}

/* ---------- 11. Forms ---------- */
.form { background-color: var(--white); padding: 48px; border-radius: var(--radius); border: 1px solid var(--soft-graphite); max-width: 640px; }
.form--bone { background-color: var(--bone); }
.form-row { margin-bottom: 24px; }
.form-row label {
  display: block;
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--graphite);
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--soft-graphite);
  border-radius: 4px;
  background-color: var(--white);
  color: var(--graphite);
  transition: border-color var(--transition);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--ice-blue);
}
.form-row textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 14px; color: var(--graphite-soft); margin-top: 16px; }
.form-success, .form-error { display: none; padding: 16px; border-radius: 4px; margin-bottom: 24px; font-family: var(--font-header); font-weight: 500; font-size: 15px; }
.form-success { background-color: var(--bone); border: 1px solid var(--ice-blue); }
.form-error { background-color: #fbeaea; border: 1px solid #d99; }

@media (max-width: 768px) {
  .form { padding: 32px 24px; }
}

/* ---------- 12. Footer ---------- */
.footer {
  position: relative;
  overflow: hidden;
  background-color: var(--graphite);
  color: var(--white);
  padding: 96px 0 40px;
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; position: relative; z-index: 1; }
.footer-brand .nav-logo .wordmark { color: var(--white); }
.footer-tagline { color: var(--ice-blue); font-family: var(--font-header); font-weight: 500; margin-top: 16px; max-width: 280px; }
.footer-col h4 { font-family: var(--font-header); font-weight: 600; font-size: 14px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--soft-graphite); margin-bottom: 20px; }
.footer-col a, .footer-col p { display: block; color: var(--white); opacity: 0.85; margin-bottom: 12px; font-size: 15px; }
.footer-col a:hover { color: var(--ice-blue); opacity: 1; }
.footer-bottom {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--graphite-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--soft-graphite);
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- 13. Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ice-blue);
  color: var(--graphite);
  padding: 12px 20px;
  z-index: 999;
  font-family: var(--font-header);
  font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; }

/* Locked state banner (Tools teaser) */
.locked-banner {
  background-color: var(--bone);
  border: 1px solid var(--soft-graphite);
  border-radius: var(--radius);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.locked-banner svg { width: 24px; height: 24px; stroke: var(--ice-blue-dark); flex: 0 0 auto; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ice-blue-dark);
  outline-offset: 2px;
}
