/* site.css — Jason C. Perez, shared styles
   Palette: warm paper / spruce green (the one signal) / clay (receipt flags ONLY).
   Type: Space Grotesk (display/UI) + Source Serif 4 (body) + JetBrains Mono (data/labels)
   + Instrument Serif italic (accent words — the brand signature). */

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

:root {
  --paper: #f5f1e6;
  --paper-2: #ece7d7;
  --white: #fbf9f3;
  --ink: #1d2420;
  --ink-2: #49524b;
  --ink-3: #7d857c;
  --spruce: #1e4d3a;
  --spruce-deep: #143527;
  --spruce-soft: #dde5db;
  --clay: #bd5b2a;
  --clay-deep: #9c4a20;
  --line: rgba(29, 36, 32, 0.16);
  --line-soft: rgba(29, 36, 32, 0.09);

  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --body: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --serif-accent: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1180px;
  --pad: 48px;
}

html { scroll-behavior: smooth; }
html, body { background: var(--paper); color: var(--ink); }

body {
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern", "onum";
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--spruce); color: var(--paper); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ───────── NAV ───────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
}
.wordmark span {
  font-family: var(--display);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
}
.nav-links > a:not(.btn) {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.nav-links > a:not(.btn):hover { border-bottom-color: var(--spruce); }
.nav-links > a.active { border-bottom-color: var(--spruce); }

/* ───────── BUTTONS ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0;
  background: var(--spruce);
  color: var(--paper);
  padding: 13px 24px;
  border-radius: 3px;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--spruce-deep); }
.btn .arrow { transition: transform 0.15s ease; font-family: var(--body); }
.btn:hover .arrow { transform: translateX(3px); }
/* On the spruce CTA band: paper button, spruce text. Clay stays out of the UI. */
.btn.btn-clay { background: var(--paper); color: var(--spruce-deep); }
.btn.btn-clay:hover { background: var(--white); }
.btn.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn.btn-nav { padding: 10px 18px; font-size: 14px; }

/* ───────── SECTION SCAFFOLD ───────── */
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }

.kicker {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--spruce);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.kicker::after { content: ""; width: 44px; height: 1px; background: var(--spruce); opacity: 0.5; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; text-wrap: balance; }

.h-display {
  font-weight: 700;
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1.0;
}
.h-section {
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.06;
  max-width: 22ch;
}
.accent {
  font-family: var(--serif-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.h-display .accent, .h-section .accent { color: var(--spruce); }

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 54ch;
  text-wrap: pretty;
}

/* ───────── HERO ───────── */
.hero { padding: 72px 0 84px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 72px;
  align-items: center;
}
.hero-copy .h-display { margin-bottom: 26px; }
.hero-copy .lede { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-aside { font-family: var(--display); font-size: 13.5px; color: var(--ink-3); margin-top: 18px; }

.hero-photo { position: relative; }
.hero-photo image-slot, .hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 24px 60px -28px rgba(29, 36, 32, 0.45);
}
.photo-caption {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-3);
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* ───────── STAT STRIP ───────── */
.stat-strip {
  background: var(--spruce);
  color: var(--paper);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.stat {
  padding: 44px 36px 46px;
  border-left: 1px solid rgba(245, 241, 230, 0.18);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .stat-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}
.stat .stat-num sup { font-size: 0.45em; font-weight: 600; color: var(--paper); opacity: 0.7; }
.stat p { font-size: 15.5px; line-height: 1.5; color: rgba(245, 241, 230, 0.78); max-width: 30ch; text-wrap: pretty; }
.stat p b { color: var(--paper); font-weight: 600; }

/* ───────── SERVICE CARDS ───────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 52px;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px -24px rgba(29, 36, 32, 0.35);
}
.svc-card .svc-no {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--spruce);
}
.svc-card h3 {
  font-weight: 600;
  font-size: 23px;
  line-height: 1.12;
}
.svc-card p { font-size: 16px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.svc-card .svc-link {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--spruce);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.svc-card .svc-link:hover { color: var(--spruce-deep); }

/* ───────── CASE FEATURE / CASE FILES ───────── */
.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}
.case-grid.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.case-photo image-slot, .case-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}
.case-body h3 { font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; margin-bottom: 18px; }
.case-body > p { font-size: 17.5px; line-height: 1.62; color: var(--ink-2); margin-bottom: 16px; max-width: 58ch; text-wrap: pretty; }
.case-body > p strong { color: var(--ink); }

.receipt {
  margin: 26px 0 8px;
  border-top: 1.5px solid var(--ink);
}
.receipt-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
  color: var(--ink-2);
}
.receipt-row .rv {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
.receipt-row .rv.flag { color: var(--clay-deep); }

.case-tag {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

/* ───────── PULL QUOTE ───────── */
.pull {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.pull blockquote {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.pull blockquote .accent { color: var(--spruce); }
.pull cite {
  display: block;
  margin-top: 22px;
  font-family: var(--display);
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-3);
}

/* ───────── PROCESS (services page) ───────── */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 52px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
}
.step {
  padding: 36px 32px 38px;
  border-left: 1px solid var(--line);
  position: relative;
}
.step:first-child { border-left: 0; }
.step .step-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.step .step-sub {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--spruce);
  margin-bottom: 16px;
}
.step p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.step::after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 38px;
  z-index: 2;
  width: 26px; height: 26px;
  background: var(--spruce);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.step:last-child::after { display: none; }

/* ───────── SERVICE DETAIL (services page) ───────── */
.svc-detail {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  padding: 64px 0;
  border-top: 1px solid var(--line-soft);
}
.svc-detail:first-of-type { border-top: 0; padding-top: 16px; }
.svc-detail .svc-head .svc-no {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--clay);
  margin-bottom: 12px;
  display: block;
}
.svc-detail h3 { font-weight: 600; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.08; margin-bottom: 14px; max-width: 14ch; }
.svc-detail .svc-for { font-size: 15.5px; color: var(--ink-3); font-style: italic; max-width: 30ch; }
.svc-detail .svc-body p { font-size: 17px; line-height: 1.62; color: var(--ink-2); margin-bottom: 16px; max-width: 58ch; text-wrap: pretty; }
.svc-detail .svc-body p strong { color: var(--ink); }

.deliverables {
  margin-top: 22px;
  border-top: 1.5px solid var(--ink);
}
.deliverables li {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
  color: var(--ink-2);
}
.deliverables li::before {
  content: "✓";
  font-family: var(--display);
  font-weight: 700;
  color: var(--spruce);
}

/* ───────── ABOUT ───────── */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: start;
}
.about-photo image-slot, .about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 24px 60px -28px rgba(29, 36, 32, 0.45);
}
.about-body p { font-size: 18px; line-height: 1.65; color: var(--ink-2); margin-bottom: 18px; max-width: 58ch; text-wrap: pretty; }
.about-body p strong { color: var(--ink); }

.fact-table {
  margin-top: 34px;
  border-top: 1.5px solid var(--ink);
  display: grid;
  grid-template-columns: auto 1fr;
}
.fact-table dt, .fact-table dd {
  padding: 12px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15.5px;
}
.fact-table dt {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-right: 36px;
  align-self: baseline;
}
.fact-table dd { color: var(--ink-2); }

/* ───────── CTA BAND ───────── */
.cta-band {
  background: var(--spruce);
  color: var(--paper);
}
.cta-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 92px var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
}
.cta-inner h2 {
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02;
  max-width: 18ch;
  margin-bottom: 16px;
}
.cta-inner h2 .accent { color: var(--paper); opacity: 0.92; }
.cta-inner p { font-size: 17px; line-height: 1.55; color: rgba(245, 241, 230, 0.8); max-width: 48ch; text-wrap: pretty; }

/* ───────── FOOTER ───────── */
.footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px var(--pad) 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  font-family: var(--display);
  font-size: 14px;
  color: var(--ink-3);
}
.footer-inner .f-name { font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; font-weight: 500; }
.footer-links a { border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: color 0.15s, border-color 0.15s; }
.footer-links a:hover { color: var(--spruce); border-bottom-color: var(--spruce); }

/* ───────── PAGE HEADER (interior pages) ───────── */
.page-head { padding: 72px 0 56px; }
.page-head .h-display { margin-bottom: 20px; }
.page-head .lede { max-width: 58ch; }

/* ───────── RESPONSIVE ───────── */
@media (max-width: 960px) {
  :root { --pad: 28px; }
  .hero-grid, .case-grid, .case-grid.flip, .about-grid, .svc-detail { grid-template-columns: 1fr; gap: 40px; }
  .svc-grid { grid-template-columns: 1fr; gap: 18px; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid rgba(245,241,230,0.18); padding: 28px 0; }
  .stat:first-child { border-top: 0; }
  .process { grid-template-columns: 1fr; }
  .step { border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .step::after { right: 32px; top: auto; bottom: -13px; transform: rotate(90deg); }
  .cta-inner { grid-template-columns: 1fr; padding: 64px var(--pad); }
  .nav-inner { height: auto; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; gap: 12px; }
  .nav-links { gap: 18px; flex-wrap: wrap; }
  .wordmark span { display: none; }
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 60px; }
}
