/* ============================================================
   DATUM MODULAR / Site styles
   Palette: Ink #1C1C1A · Warm gray #6B6760 · Stone #C9C4BA · Paper #F5F4F0
   Type: Jost (everything) · Mono: JetBrains Mono · Accent serif: Lora
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Lora:ital@0;1&display=swap');

:root {
  --ink: #1C1C1A;
  --gray: #6B6760;
  --stone: #C9C4BA;
  --stone-light: #E4E0D8;
  --paper: #F5F4F0;
  --white: #FFFFFF;
  --accent: #1C1C1A;
  --max: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --serif: "Lora", Georgia, serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, "Roboto Mono", monospace;
}

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

html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* Content links: ink, underlined; hover pure black (chrome links stay weight/color-differentiated) */
p a, .prose a, .contact-detail a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
p a:hover, .prose a:hover, .contact-detail a:hover { color: #000; }

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

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 600;
}

.lead { font-size: clamp(19px, 2.2vw, 22px); color: var(--gray); max-width: 60ch; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 244, 240, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--stone);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

/* Brand lockup: inline mark + live text wordmark (legible at any size) */
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark { width: 42px; height: 42px; color: var(--ink); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.19em;
  color: var(--ink);
}
.brand__tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--gray);
  margin-top: 6px;
}

.nav__links { display: flex; gap: 34px; align-items: center; }
.nav__links a {
  font-size: 14.5px;
  color: var(--gray);
  letter-spacing: 0.01em;
  transition: color 0.18s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.active { color: var(--ink); }
.nav__cta {
  border: 1px solid var(--ink);
  padding: 9px 18px;
  border-radius: 2px;
  color: var(--ink) !important;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav__cta:hover { background: var(--ink); color: var(--paper) !important; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.18s ease;
  cursor: pointer;
  border: 1px solid var(--ink);
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
/* On dark: primary = solid paper, secondary = ghost outline */
.btn--solid-light { background: var(--paper); color: var(--ink); border-color: var(--paper); font-weight: 600; }
.btn--solid-light:hover { background: var(--white); border-color: var(--white); }
.btn--light { border-color: var(--gray); color: var(--paper); background: transparent; }
.btn--light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- Hero (full-bleed photo) ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 38%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20,20,18,0.94) 0%, rgba(20,20,18,0.80) 34%, rgba(20,20,18,0.34) 66%, rgba(20,20,18,0.12) 100%),
    linear-gradient(0deg, rgba(20,20,18,0.45) 0%, rgba(20,20,18,0) 45%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: clamp(480px, 74vh, 700px);
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
}
.hero__copy { max-width: 600px; }
.hero .eyebrow { color: var(--stone); }
.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  margin: 20px 0 24px;
  letter-spacing: -0.02em;
  line-height: 1.04;
}
.hero p { font-size: clamp(17px, 1.8vw, 20px); color: var(--stone); max-width: 46ch; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 9vw, 104px) 0; }
.section-head { max-width: 64ch; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin: 14px 0 18px; }

.bg-paper { background: var(--paper); }
.bg-white { background: var(--white); }
.bg-stone { background: var(--stone-light); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink .eyebrow { color: var(--stone); }
.bg-ink .lead { color: var(--stone); }

/* ---------- Image placeholder slots (swap with <img> when photos land) ---------- */
.imgslot {
  position: relative;
  background-image: repeating-linear-gradient(45deg, #E4E0D8 0 14px, #EDEAE3 14px 28px);
  border: 1px solid var(--stone);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  overflow: hidden;
}
.imgslot--dark {
  background-image: repeating-linear-gradient(45deg, #2a2a27 0 14px, #232321 14px 28px);
  border-color: #34332f;
  color: var(--stone);
}
.imgslot__label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 20px;
  max-width: 34ch;
}
.imgslot__label b { display: block; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.imgslot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Capability / feature grid ---------- */
.grid { display: grid; gap: 1px; background: var(--stone); border: 1px solid var(--stone); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.cell {
  background: var(--paper);
  padding: 38px 34px;
}
.cell__num {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  color: var(--gray);
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}
.cell h3 { font-size: 20px; margin: 16px 0 12px; }
.cell p { color: var(--gray); font-size: 15.5px; }

/* ---------- Split / value statement ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split--top { align-items: start; }
.split--reverse > :first-child { order: 2; }
.statlist { display: grid; gap: 0; }
.statlist__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--stone);
}
.statlist__row:first-child { border-top: 1px solid var(--stone); }
.statlist__k { font-size: 15px; color: var(--gray); }
.statlist__v { font-size: 17px; font-weight: 600; text-align: right; }

/* ---------- Checklist (services capabilities) ---------- */
.checklist { display: grid; gap: 0; margin-top: 4px; }
.checklist li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--stone);
  font-size: 16px;
  color: var(--ink);
}
.checklist li:first-child { border-top: 1px solid var(--stone); }
.checklist__tick {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.checklist__tick svg { width: 11px; height: 11px; stroke: var(--paper); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step__num {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--gray);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--gray); }

/* ---------- Index numeral (Lora accent, brand §4) ---------- */
.index-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 54px);
  line-height: 1;
  color: var(--gray);
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

/* ---------- Timeline (about / experience) ---------- */
.timeline { display: grid; gap: 0; margin: 8px 0 0; }
.tl {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: clamp(20px, 4vw, 48px);
  padding: 28px 0;
  border-top: 1px solid var(--stone);
}
.tl:last-child { border-bottom: 1px solid var(--stone); }
.tl__when {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--gray);
  padding-top: 4px;
  white-space: nowrap;
}
.tl__now { color: var(--ink); font-weight: 600; }
.tl__role { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--ink); }
.tl__org { font-size: 15px; color: var(--gray); margin-top: 2px; }
.tl__desc { font-size: 15px; color: var(--gray); margin-top: 10px; max-width: 56ch; }
.tl--current .tl__role::after {
  content: "Current";
  display: inline-block;
  margin-left: 12px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--stone);
  border-radius: 999px;
  padding: 3px 10px;
  vertical-align: middle;
}

/* ---------- Selected work strip ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.work figcaption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gray);
  margin-top: 12px;
}
.work .imgslot { aspect-ratio: 4 / 3; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--paper); text-align: center; }
.cta-band h2 { font-size: clamp(28px, 4.4vw, 46px); margin-bottom: 20px; }
.cta-band p { color: var(--stone); max-width: 52ch; margin: 0 auto 34px; font-size: 19px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--stone);
  padding: 64px 0 36px;
  border-top: 1px solid #2c2c29;
}
.footer__top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 48px; }
.footer__brand { max-width: 360px; }
.footer__brand .brand { margin-bottom: 20px; }
.footer__brand .brand__mark { color: var(--paper); width: 40px; height: 40px; }
.footer__brand .brand__name { color: var(--paper); }
.footer__brand .brand__tag { color: var(--gray); }
.footer__brand p { font-size: 14.5px; color: var(--gray); }
.footer__cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer__col h4 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); margin-bottom: 16px; }
.footer__col a, .footer__col p { display: block; font-size: 14.5px; color: var(--gray); margin-bottom: 10px; transition: color 0.18s; }
.footer__col a:hover { color: var(--paper); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid #2c2c29;
  font-size: 13px;
  color: var(--gray);
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: clamp(64px, 8vw, 104px) 0 clamp(40px, 6vw, 60px); border-bottom: 1px solid var(--stone); }
.page-hero h1 { font-size: clamp(34px, 5.4vw, 56px); margin: 16px 0 22px; }
.page-hero p { font-size: clamp(18px, 2.2vw, 21px); color: var(--gray); max-width: 60ch; }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose p { margin-bottom: 22px; color: var(--ink); }
.prose p.muted { color: var(--gray); }

/* ---------- Portrait (about) ---------- */
.portrait { aspect-ratio: 4 / 5; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--stone);
  border-radius: 2px;
  background: var(--white);
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.18s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.contact-detail { padding: 22px 0; border-bottom: 1px solid var(--stone); }
.contact-detail:first-child { padding-top: 0; }
.contact-detail .k { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); margin-bottom: 6px; }
.contact-detail .v { font-size: 18px; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-s { margin-top: 14px; }
.divider { height: 1px; background: var(--stone); border: 0; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { height: 64px; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 16px; letter-spacing: 0.16em; }
  .brand__tag { font-size: 8px; letter-spacing: 0.28em; margin-top: 5px; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__links.open {
    display: flex;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    padding: 22px var(--gutter);
    gap: 20px;
    border-bottom: 1px solid var(--stone);
  }
  .hero__inner { min-height: 0; }
  .hero__scrim {
    background:
      linear-gradient(90deg, rgba(20,20,18,0.90) 0%, rgba(20,20,18,0.74) 60%, rgba(20,20,18,0.5) 100%),
      linear-gradient(0deg, rgba(20,20,18,0.5) 0%, rgba(20,20,18,0) 50%);
  }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; gap: 6px; }
  .tl__when { padding-top: 0; }
  .footer__top { flex-direction: column; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; }
}
