/* ─── TOKENS ──────────────────────────────────────────────────────────────── */
:root {
  --ink:          #0F0F0E;
  --ink-muted:    #5A5956;
  --ink-subtle:   #9A9895;
  --paper:        #FFFFFF;
  --paper-tinted: #F7F5F1;
  --paper-accent: #EBF0F9;
  --accent:       #1C3B6A;
  --border:       #E3E0DA;

  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans:  'Mulish', system-ui, -apple-system, sans-serif;

  --max-w: 1100px;
  --radius: 5px;

  /* Spacing scale */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2.5rem;
  --sp-xl:  4rem;
  --sp-2xl: 6rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ol, ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ─── TYPOGRAPHY ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4.5vw, 2.875rem); } /* 46px at full width */
h2 { font-size: clamp(1.625rem, 3vw, 2.125rem); }
h3 { font-size: 1.2rem; font-weight: 700; font-family: var(--font-sans); }
h4 { font-size: 1rem; font-family: var(--font-sans); }

p { color: var(--ink-muted); }

/* ─── LAYOUT ──────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-md);
}

.section-pad { padding-block: var(--sp-2xl); }
.section-tinted { background: var(--paper-tinted); }

.section-header { max-width: 600px; }
.section-header h2 { margin-bottom: var(--sp-sm); }
.section-header--center {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.section-intro {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

/* ─── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 1.625rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: #2d2d2c; }

.btn-ghost {
  color: var(--ink);
  padding-inline: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}
.btn-ghost:hover { text-decoration-color: var(--ink); }

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--ink);
  background: none;
}
.btn-outline:hover { border-color: var(--ink); }

.btn-lg { padding: 0.9375rem 2rem; font-size: 1rem; }

/* ─── HEADER ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 1.375rem;
  width: auto;
  display: block;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-muted);
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--ink); }

.nav-cta {
  padding: 0.5rem 1.125rem !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius);
  color: var(--ink) !important;
  font-weight: 600 !important;
  transition: border-color 0.15s !important;
}
.nav-cta:hover { border-color: var(--ink) !important; }

/* ─── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  padding-block: var(--sp-2xl);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

.hero-copy { max-width: 540px; }

.hero-copy h1 {
  margin-bottom: var(--sp-md);
  letter-spacing: -0.02em;
}

.hero-byline {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: var(--sp-lg);
  color: var(--ink-muted);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.hero-slider {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.10);
  aspect-ratio: 4 / 3;
  background: var(--paper-tinted);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: hero-fade 24s infinite;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Stagger each slide by one quarter of the total cycle (24s / 4 = 6s) */
.hero-slide:nth-child(1) { animation-delay:  0s; }
.hero-slide:nth-child(2) { animation-delay:  6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }

/*
  Each image over its 24s cycle:
    0%    →  8.33% : fade in   (0s  → 2s)
    8.33% → 25%    : hold      (2s  → 6s)
    25%   → 33.33% : fade out  (6s  → 8s)
    33.33%→ 100%   : invisible

  The next slide's delay is 6s, so it begins fading IN at exactly
  the moment this slide begins fading OUT — producing a true crossfade
  with no blank gap between transitions.
*/
@keyframes hero-fade {
  0%     { opacity: 0; }
  8.33%  { opacity: 1; }
  25%    { opacity: 1; }
  33.33% { opacity: 0; }
  100%   { opacity: 0; }
}

/* ─── CREDIBILITY STRIP ───────────────────────────────────────────────────── */
.credibility-strip {
  border-block: 1px solid var(--border);
  padding-block: var(--sp-lg);
  background: var(--paper-tinted);
}

.credibility-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: var(--sp-md);
}

.credibility-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem var(--sp-sm);
}

.credibility-list li {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: var(--paper);
}

/* ─── DIFFERENTIATION ─────────────────────────────────────────────────────── */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
}

.diff-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.diff-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-tinted);
}

.diff-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.diff-card .diff-num,
.diff-card h3,
.diff-card p {
  padding-inline: var(--sp-lg);
}

.diff-card .diff-num { padding-top: var(--sp-lg); }
.diff-card p         { padding-bottom: var(--sp-lg); }

.diff-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--sp-sm);
}

.diff-card h3 {
  color: var(--ink);
  margin-bottom: 0.625rem;
  font-size: 1.0625rem;
}

.diff-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.diff-footnote {
  margin-top: var(--sp-xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--ink-muted);
  max-width: 680px;
}

.diff-footnote strong {
  color: var(--ink);
  font-weight: 600;
}

.diff-footnote a {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}

.diff-footnote a:hover {
  text-decoration-color: var(--ink);
}

/* ─── PROCESS ─────────────────────────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: var(--sp-xl);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: calc(12.5% + 0.25rem);
  right: calc(12.5% + 0.25rem);
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.process-step {
  padding: 0 var(--sp-md);
  position: relative;
  z-index: 1;
  text-align: center;
}

.process-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--paper-tinted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: var(--sp-md);
}

.process-step h3 {
  color: var(--ink);
  margin-bottom: 0.375rem;
  font-size: 1rem;
}

.process-step p {
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ─── OUTCOMES ────────────────────────────────────────────────────────────── */
.outcomes-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
}

.outcomes-grid li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: var(--sp-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.outcomes-marker {
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.1em;
}

.outcomes-grid li span:last-child {
  font-size: 0.9375rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
}

/* ─── CASE STUDIES ────────────────────────────────────────────────────────── */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
}

.case-card {
  padding: var(--sp-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.case-domain {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.case-problem {
  font-size: 0.9375rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.6;
}

.case-outcome {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.65;
  padding-top: var(--sp-xs);
  border-top: 1px solid var(--border);
}

.case-cta {
  margin-top: var(--sp-xl);
}

/* ─── POSITIONING ─────────────────────────────────────────────────────────── */
.positioning-inner {
  max-width: 680px;
}

.positioning-inner h2 {
  margin-bottom: var(--sp-md);
}

.positioning-inner p {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: var(--sp-sm);
}

.positioning-inner .btn {
  margin-top: var(--sp-md);
}

/* ─── ENGAGEMENT ──────────────────────────────────────────────────────────── */
.engagement-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
}

.engagement-step {
  padding: var(--sp-lg) var(--sp-lg) var(--sp-lg) 0;
  border-left: 2px solid var(--border);
  padding-left: var(--sp-md);
}

.engagement-step-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--sp-sm);
}

.engagement-step h3 {
  color: var(--ink);
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
}

.engagement-note {
  margin-top: var(--sp-xl);
  text-align: center;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--ink-subtle);
}

/* ─── FINAL CTA ───────────────────────────────────────────────────────────── */
.final-cta {
  background: var(--ink);
  padding-block: var(--sp-2xl);
}

.final-cta-inner {
  max-width: 640px;
}

.final-cta h2 {
  color: var(--paper);
  margin-bottom: var(--sp-sm);
  font-size: clamp(1.625rem, 3vw, 2.25rem);
}

.final-cta p {
  color: rgba(255,255,255,0.55);
  font-size: 1.0625rem;
  margin-bottom: var(--sp-lg);
}

.final-cta .btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.final-cta .btn-primary:hover { background: #f0ede8; }

/* ─── ADVISORY PAGE ───────────────────────────────────────────────────────── */
.advisory-hero { border-bottom: 1px solid var(--border); }

.advisory-hero-inner { max-width: 720px; }

.advisory-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-sm);
}

.advisory-hero h1 { margin-bottom: var(--sp-md); }

.advisory-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
}

.advisory-service-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.advisory-service-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.advisory-service-card h2 {
  font-size: 1.5rem;
}

.advisory-service-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

.advisory-service-detail {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  flex: 1;
}

.advisory-assess h3,
.advisory-deliverable h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 0.625rem;
}

.advisory-assess ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 0;
}

.advisory-assess ul li {
  font-size: 0.9rem;
  color: var(--ink);
  padding-left: 1rem;
  position: relative;
}

.advisory-assess ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--ink-subtle);
}

.advisory-deliverable p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.advisory-why-inner { max-width: var(--max-w); }

.advisory-why h2 { margin-bottom: var(--sp-xl); }

.advisory-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
}

.advisory-why-item {
  padding: var(--sp-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.advisory-why-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.advisory-why-item p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.advisory-process-steps { margin-top: var(--sp-xl); }

@media (max-width: 900px) {
  .advisory-services-grid,
  .advisory-why-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-xl);
}

.footer-inner {
  display: flex;
  gap: var(--sp-2xl);
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-brand .site-logo { margin-bottom: var(--sp-xs); }

.footer-brand p {
  font-size: 0.875rem;
  color: var(--ink-muted);
  max-width: 500px;
  line-height: 1.65;
  margin-top: 0.375rem;
}

.footer-nav {
  display: flex;
  gap: var(--sp-xl);
  flex: 1;
  justify-content: flex-end;
}

.footer-nav-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 0.875rem;
}

.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-nav-col a {
  font-size: 0.9rem;
  color: var(--ink-muted);
  text-decoration: none;
}
.footer-nav-col a:hover { color: var(--ink); }

.footer-offices {
  margin-top: var(--sp-md);
  margin-bottom: var(--sp-lg);
  display: flex;
  flex-direction: row;
  gap: var(--sp-lg);
}

.footer-office-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 0.5rem;
}

.footer-office address {
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.footer-office-reg {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-office-reg li {
  font-size: 0.75rem;
  color: var(--ink-subtle);
}

.footer-bottom {
  padding-block: var(--sp-md);
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--ink-subtle);
}

/* ─── ASSIGNMENT PAGE ─────────────────────────────────────────────────────── */
.assignment-inner {
  max-width: 720px;
}

.assignment-inner h1 {
  margin-bottom: var(--sp-xl);
}

.assignment-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.assignment-body > p {
  font-size: 1rem;
  color: var(--ink);
}

.assignment-body a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.assignment-list {
  list-style: decimal;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.assignment-list li {
  font-size: 1rem;
  color: var(--ink);
  padding-left: 0.25rem;
}

.assignment-faq {
  margin-top: var(--sp-lg);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.assignment-faq h2 {
  font-size: 1.375rem;
}

.faq-item h3 {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.375rem;
}

.faq-item p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-slider {
    display: none;
  }
  .diff-grid {
    grid-template-columns: 1fr;
  }
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-lg);
  }
  .process-steps::before { display: none; }
  .outcomes-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }
  .case-grid {
    grid-template-columns: 1fr;
  }
  .engagement-steps {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }
  .footer-inner {
    flex-direction: column;
    gap: var(--sp-lg);
  }
  .footer-nav {
    justify-content: flex-start;
    gap: var(--sp-lg);
  }
}

@media (max-width: 600px) {
  :root {
    --sp-2xl: 4rem;
    --sp-xl: 3rem;
  }
  .site-nav ul {
    gap: var(--sp-md);
  }
  .process-steps {
    grid-template-columns: 1fr;
  }
  .outcomes-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
