:root {
  --paper: #fbfaf6;
  --paper-soft: #f5f1e5;
  --ink: #141414;
  --muted: #69645c;
  --line: #ded9ce;
  --yellow: #efe7b8;
  --yellow-deep: #e7d98f;
  --dark: #141414;
  --dark-2: #202020;
  --radius: 32px;
  --max: 1280px;
  --shadow: 0 20px 70px rgba(25, 22, 18, 0.09);
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  transition: all 180ms ease;
}
.brand:hover .brand-mark { background: var(--ink); color: white; }
.brand-text { display: grid; gap: 3px; line-height: 1; }
.brand-text strong { text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.82rem; }
.brand-text small { text-transform: uppercase; letter-spacing: 0.24em; color: var(--muted); font-size: 0.67rem; }
.site-nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.site-nav a:not(.nav-cta):hover { color: var(--ink); }
.nav-cta { color: #fff; background: var(--ink); padding: 10px 18px; border-radius: 999px; }
.nav-cta:hover { background: #333; }

.section,
.hero {
  padding: clamp(72px, 8vw, 126px) clamp(20px, 4vw, 56px);
}
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  max-width: var(--max);
  margin-inline: auto;
}
.hero {
  position: relative;
  max-width: none;
  min-height: calc(100vh - 78px);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 38%;
  background: var(--yellow);
  z-index: -2;
}
.grid-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background:
    linear-gradient(90deg, transparent 8%, var(--ink) 8% calc(8% + 1px), transparent calc(8% + 1px)),
    linear-gradient(90deg, transparent 28%, var(--ink) 28% calc(28% + 1px), transparent calc(28% + 1px)),
    linear-gradient(0deg, transparent 38%, var(--ink) 38% calc(38% + 1px), transparent calc(38% + 1px)),
    linear-gradient(0deg, transparent 70%, var(--ink) 70% calc(70% + 1px), transparent calc(70% + 1px));
  z-index: -1;
}
.hero h1,
.section-copy h2,
.section-heading h2,
.statement-band h2,
.site-footer h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.96;
  margin: 0;
}
.hero h1 { font-size: clamp(4.2rem, 9vw, 8.8rem); max-width: 850px; }
.hero-copy { max-width: 760px; }
.lead { color: #524e48; font-size: clamp(1.35rem, 2.2vw, 2.25rem); line-height: 1.45; max-width: 690px; margin: 32px 0 0; }
.overline,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 28px;
}
.overline.small { font-size: 0.68rem; margin-bottom: 16px; color: inherit; opacity: 0.8; }
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 48px;
  height: 1px;
  margin-right: 14px;
  vertical-align: middle;
  background: currentColor;
}
.eyebrow.light { color: #cfc9bd; }
.button-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 54px;
  padding: 0 24px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.76rem;
  font-weight: 800;
  transition: all 180ms ease;
}
.button.primary { background: var(--ink); color: white; }
.button.primary:hover { background: #333; transform: translateY(-1px); }
.button.secondary { background: rgba(255,255,255,0.72); border: 1px solid var(--line); }
.button.secondary:hover { border-color: var(--ink); transform: translateY(-1px); }

.image-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ddd6bd;
  box-shadow: var(--shadow);
  isolation: isolate;
  margin: 0;
  min-height: 520px;
}
.image-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.85) contrast(1.03);
}
.image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(239, 231, 184, 0.16);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}
.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background:
    linear-gradient(90deg, transparent 18%, var(--ink) 18% calc(18% + 1px), transparent calc(18% + 1px)),
    linear-gradient(90deg, transparent 48%, var(--ink) 48% calc(48% + 1px), transparent calc(48% + 1px)),
    linear-gradient(0deg, transparent 32%, var(--ink) 32% calc(32% + 1px), transparent calc(32% + 1px)),
    linear-gradient(0deg, transparent 64%, var(--ink) 64% calc(64% + 1px), transparent calc(64% + 1px));
  z-index: 2;
  pointer-events: none;
}
.image-card figcaption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;
  max-width: min(420px, calc(100% - 48px));
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.82);
  color: #37342f;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.68rem;
  font-weight: 800;
  backdrop-filter: blur(14px);
}
.hero-image { min-height: clamp(570px, 70vh, 790px); }
.hero-image img { object-position: 66% center; }
.problem-section .image-card { min-height: 560px; }
.problem-section .image-card img { object-position: 62% center; }
.capability-section .image-card { min-height: 560px; }
.capability-section .image-card img { object-position: 34% 62%; }
.closing-section .image-card { min-height: 620px; }
.closing-section .image-card img { object-position: 68% center; }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--dark);
  color: #fff;
  border-block: 1px solid #333;
}
.metric-strip div { padding: 28px clamp(22px, 4vw, 48px); border-right: 1px solid #333; }
.metric-strip div:last-child { border-right: 0; }
.metric-strip strong { display: block; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.26em; font-size: 0.72rem; }
.metric-strip span { display: block; margin-top: 12px; color: #c9c3b8; font-size: 0.92rem; line-height: 1.55; }

.section-copy h2,
.section-heading h2 { font-size: clamp(3.1rem, 6.2vw, 7.2rem); max-width: 960px; }
.section-copy p:not(.eyebrow) { color: #5e5a52; font-size: clamp(1.05rem, 1.45vw, 1.32rem); line-height: 1.72; margin: 24px 0 0; }
.diagnostics,
.capability-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) clamp(72px, 7vw, 110px);
}
.diagnostic,
.cap-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 10px 35px rgba(20,20,20,0.035);
}
.diagnostic { padding: 20px 22px; color: #49453f; line-height: 1.5; }
.diagnostic::before { content: "•"; margin-right: 10px; color: #a49968; }
.dark-section { background: var(--dark); color: white; }
.dark-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 88px);
}
.dark-section .section-copy p:not(.eyebrow) { color: #d0cac0; }
.process-list { display: grid; gap: 18px; }
.process-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  padding: 28px;
  background: rgba(255,255,255,0.035);
  border: 1px solid #303030;
  border-radius: 28px;
}
.process-card span { color: var(--yellow); font-family: var(--serif); font-size: 3.2rem; line-height: 1; letter-spacing: -0.04em; }
.process-card h3 { margin: 0; font-size: 1.45rem; }
.process-card p { margin: 10px 0 0; color: #c8c3ba; line-height: 1.62; }
.full-width-image { max-width: var(--max); margin: clamp(42px, 5vw, 72px) auto 0; }
.full-width-image { min-height: 460px; }
.full-width-image img { object-position: 74% 48%; }

.cap-card { padding: 28px; }
.cap-card span { color: #9e925d; font-family: var(--serif); font-size: 2rem; }
.cap-card h3 { margin: 22px 0 0; font-size: 1.3rem; }
.cap-card p { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }
.statement-band {
  margin: 0;
  padding: clamp(72px, 8vw, 118px) clamp(20px, 4vw, 56px);
  background: var(--yellow);
  border-block: 1px solid #d8cd91;
}
.statement-band p,
.statement-band h2 { max-width: var(--max); margin-inline: auto; }
.statement-band p { text-transform: uppercase; letter-spacing: 0.34em; font-size: 0.74rem; font-weight: 800; color: #5f594b; margin-bottom: 26px; }
.statement-band h2 { font-size: clamp(3rem, 6vw, 6.5rem); }
.evidence-section { max-width: var(--max); margin: 0 auto; }
.section-heading { margin-bottom: 48px; }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.case-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.case-image { margin: 0; background: #ddd6bd; }
.case-image img { width: 100%; height: 380px; object-fit: cover; filter: saturate(0.9) contrast(1.03); }
.case-card:first-child .case-image img { object-position: 50% center; }
.case-card:last-child .case-image img { object-position: 50% center; }
.case-body { padding: 34px; }
.case-body h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 3vw, 3.1rem); letter-spacing: -0.04em; }
.case-body p:not(.overline) { color: var(--muted); line-height: 1.68; font-size: 1.06rem; }
.closing-section { padding-bottom: clamp(86px, 10vw, 150px); }
.check-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 16px; }
.check-list li { color: #4f4a43; font-weight: 700; font-size: 1.1rem; }
.check-list li::before { content: "✓"; margin-right: 14px; color: #8e854f; }
.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 6vw, 96px);
  padding: clamp(70px, 8vw, 118px) clamp(20px, 4vw, 56px);
  background: var(--dark);
  color: white;
}
.site-footer > * { max-width: 640px; }
.site-footer h2 { font-size: clamp(2.7rem, 5vw, 5.4rem); }
.footer-contact { color: #c8c3ba; font-size: 1.1rem; line-height: 1.7; }
.footer-contact a,
.footer-contact span { display: block; color: white; margin-top: 18px; text-decoration: underline; text-decoration-color: #5e5e5e; text-underline-offset: 5px; }
.footer-contact span { text-decoration: none; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 90ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 230ms; }

@media (max-width: 980px) {
  .site-nav { display: none; }
  .section-grid,
  .dark-grid,
  .site-footer { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero::after { width: 48%; opacity: 0.7; }
  .diagnostics,
  .capability-cards { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: 1fr; }
  .metric-strip div { border-right: 0; border-bottom: 1px solid #333; }
  .metric-strip div:last-child { border-bottom: 0; }
}

@media (max-width: 620px) {
  .site-header { padding: 14px 18px; }
  .brand-text strong { letter-spacing: 0.18em; }
  .section,
  .hero { padding-inline: 18px; }
  .hero h1 { font-size: 4rem; }
  .section-copy h2,
  .section-heading h2 { font-size: 3rem; }
  .button-row { flex-direction: column; }
  .image-card,
  .case-card { border-radius: 24px; }
  .image-card,
  .hero-image { min-height: 430px; }
  .diagnostics,
  .capability-cards { grid-template-columns: 1fr; padding-inline: 18px; }
  .process-card { grid-template-columns: 1fr; }
  .case-image img { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
