/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:           #0c0b0a;
  --surface:      #151310;
  --surface-soft: #1d1a16;
  --text:         #ece8df;
  --muted:        #8e8779;
  --line:         rgba(255,255,255,0.08);
  --line-strong:  rgba(255,255,255,0.14);
  --accent:       #7aa39a;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Newsreader', Georgia, 'Times New Roman', serif;
  --measure:      66ch;
  --focus:        0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  height: 100%;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: rgba(122,163,154,0.22); }

/* ── Base elements ──────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}

/* Max ~72px — confident but not a poster */
h1 { font-size: clamp(2rem, 4.5vw, 4.5rem); max-width: 18ch; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); max-width: 32ch; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.85rem); font-weight: 500; }

p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a  { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
button, input, textarea, select { font: inherit; }
button  { cursor: pointer; }
img     { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }

/* ── Accessibility ──────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 20px;
  top: 20px;
  z-index: 200;
  width: auto;
  height: auto;
  padding: 10px 16px;
  overflow: visible;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-body);
}
*:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

#nav-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: min(1200px, calc(100% - 10rem));
  margin: 0 auto;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.25s ease, border-color 0.25s ease;
  background: var(--bg);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: var(--bg);
  border-bottom-color: var(--line);
}

.nav-shell {
  width: min(1200px, calc(100% - clamp(8rem, 16vw, 18rem)));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0;
}
.site-nav a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(236,232,223,0.65);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  letter-spacing: 0;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); }

.nav-cta {
  margin-left: 0.375rem;
  color: var(--text) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  padding: 0.375rem 0.875rem !important;
  font-size: 0.8125rem !important;
  border-radius: 2px;
  transition: border-color 0.15s ease, background 0.15s ease !important;
}
.nav-cta:hover {
  color: var(--text) !important;
  border-color: rgba(255,255,255,0.38) !important;
  background: rgba(255,255,255,0.04);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-atmos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Hero grid: text left, image right */
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 7rem 0 5rem;
}

.hero-left {
  display: grid;
  gap: 1.75rem;
}

/* Image: absolute, spans right half of hero — no box, no panel */
.hero-image-col {
  position: absolute;
  left: 52%;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.18) 18%, #000 44%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.18) 18%, #000 44%);
}

.hero-graph-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  opacity: 0.54;
  filter: grayscale(0.1) brightness(0.68);
  display: block;
}

/* ── Eyebrow / Section label ────────────────────────────────── */
.eyebrow,
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* ── Hero subhead / CTA subhead ─────────────────────────────── */
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(236,232,223,0.68);
  max-width: 52ch;
  margin: 0;
}

/* ── Buttons ────────────────────────────────────────────────── */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 2px;
  background: transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-primary:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.48);
  background: rgba(255,255,255,0.05);
}

.btn-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.btn-quiet:hover { color: var(--text); }

/* ── Sections ────────────────────────────────────────────────── */
.section {
  position: relative;
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
}

.section-label {
  margin-bottom: 1.5rem;
}

.section h2 {
  margin-bottom: 2rem;
}

.section-intro {
  color: var(--muted);
  max-width: var(--measure);
  margin-top: -1rem;
  margin-bottom: 2.25rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ── Thesis statement ───────────────────────────────────────── */
.thesis-section {
  padding: 2.5rem 0;
}

.thesis-frame {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.thesis-statement {
  max-width: 34ch;
  margin: 0 0 0 auto;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-align: right;
}

/* ── Manifesto list (What we help clarify) ──────────────────── */
.manifesto-list {
  border-top: 1px solid var(--line);
}

.manifesto-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 2rem;
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.manifesto-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.6;  /* aligns with h3 first line */
  letter-spacing: 0.02em;
}

.manifesto-body h3 {
  margin-bottom: 0.5rem;
}

.manifesto-body p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 58ch;
}

/* ── Prose layout (Who we help / How we work) ───────────────── */
.prose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.48fr);
  gap: 4rem;
  align-items: start;
}

.prose-body {
  display: grid;
  gap: 1.2rem;
}

.prose-lead {
  color: var(--text) !important;
  font-size: 1.125rem !important;
  line-height: 1.68 !important;
}

.prose-body p {
  color: var(--muted);
  line-height: 1.75;
}

.prose-image img {
  width: 100%;
  border-radius: 1px;
  filter: grayscale(0.2);
  opacity: 0.7;
}

/* ── Who we help cards ──────────────────────────────────────── */
.who-intro {
  max-width: var(--measure);
  margin: -1rem 0 2.25rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.who-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.who-card {
  display: grid;
  gap: 1.35rem;
  align-content: start;
  padding: 2.25rem;
  background: var(--surface-soft);
}

.who-card-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.who-icon {
  width: 120px;
  height: 120px;
  justify-self: center;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.who-card:hover .who-icon {
  opacity: 1;
}

.who-card p {
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.65;
}

/* ── How we work principles ─────────────────────────────────── */
.section-how {
  padding: 8rem 0;
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: 5rem;
  align-items: start;
}

.work-intro {
  display: grid;
  gap: 1.5rem;
}

.work-intro .section-label {
  margin-bottom: 0;
}

.work-intro h2 {
  margin-bottom: 0;
}

.work-intro p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.work-principles {
  display: grid;
}

.work-principles li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 2rem;
  padding: 0 0 2.25rem;
  border-bottom: 1px solid var(--line);
}

.work-principles li + li {
  padding-top: 2.25rem;
}

.work-principle-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
}

.work-principles h3 {
  margin-bottom: 0.65rem;
  color: var(--text);
}

.work-principles p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
}

/* ── Service grid (What we help with) ──────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 0.25rem;
}

.service-card {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.service-card-num {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.service-card-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition: color 0.15s ease;
  display: block;
}

.service-card:hover .service-card-title {
  color: var(--accent);
}

.service-card-desc {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.service-card-insights {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  align-self: end;
}

.service-insight-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  line-height: 1.45;
}

.service-insight-link::before {
  content: '→\00a0';
}

.service-insight-link:hover {
  color: var(--text);
}

/* ── Audience grid (Who we work with) ──────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 0.25rem;
}

.audience-item {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.audience-item-label {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  display: block;
}

.audience-item p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ── What we look at first ──────────────────────────────────── */
.section-look {
  overflow: hidden;
}

.look-atmos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.look-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.look-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.72fr;
  gap: 4.5rem;
  align-items: start;
}

.look-left h2 {
  margin-bottom: 0.75rem;
}

.look-list {
  border-top: 1px solid var(--line);
}

.look-list li {
  display: grid;
  gap: 0.15rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.look-list strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
}

.look-list span {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.look-right {
  position: sticky;
  top: 7rem;
}

.diagram-figure {
  margin: 0;
  padding-top: 0.5rem;
}

.hex-diagram {
  width: 100%;
  height: auto;
  max-width: 320px;
  display: block;
  margin: 0 auto;
}

/* ── Closing CTA ─────────────────────────────────────────────── */
.section-cta h2        { margin-bottom: 0.875rem; }
.section-cta .hero-sub { margin-bottom: 1.75rem; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  padding-bottom: 2.5rem;
}

.footer-inner {
  width: min(1200px, calc(100% - 4rem));
  margin: 0 auto;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.4fr 0.5fr 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-wordmark {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.footer-brand span {
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-nav {
  display: grid;
  gap: 0.375rem;
}

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

address {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.7;
}
address a { color: var(--muted); }
address a:hover { color: var(--text); }

.legal {
  color: var(--muted);
  font-size: 0.75rem;
  align-self: end;
  text-align: right;
  white-space: nowrap;
}

/* ── Responsive — tablet ────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 6rem 0 4rem;
  }

  .hero-image-col {
    display: none;
  }

  .prose-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .section-how {
    padding: 6rem 0;
  }

  .work-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .who-card-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .look-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .look-right {
    position: static;
  }

  .hex-diagram {
    max-width: 260px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .legal { text-align: left; }
}

/* ── Responsive — mobile ────────────────────────────────────── */
@media (max-width: 680px) {
  .container,
  .nav-shell,
  .footer-inner {
    width: calc(100% - 2.5rem);
  }

  .site-header .nav-shell { min-height: 58px; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 58px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.25rem 1.25rem 1rem;
    background: rgba(12,11,10,0.98);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1rem;
    color: rgba(236,232,223,0.7);
  }

  .nav-cta {
    margin-left: 0 !important;
    border: none !important;
    border-top: 1px solid var(--line) !important;
    padding: 0.875rem 0 !important;
    font-size: 1rem !important;
    color: var(--text) !important;
    margin-top: 0.25rem;
    background: transparent !important;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 5rem 0 3rem;
    gap: 2rem;
  }

  .manifesto-list li {
    grid-template-columns: 48px 1fr;
    gap: 1rem;
    padding: 2rem 0;
  }

  .section { padding: 3.5rem 0; }

  .section-how {
    padding: 5rem 0;
  }

  .work-principles li {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-bottom: 2rem;
  }

  .work-principles li + li {
    padding-top: 2rem;
  }

  .section-cta h2        { margin-bottom: 0.75rem; }
  .section-cta .hero-sub { margin-bottom: 1.5rem; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .legal { text-align: left; }
}

/* ── Responsive — narrow ────────────────────────────────────── */
@media (max-width: 620px) {
  .service-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Responsive — small mobile ──────────────────────────────── */
@media (max-width: 420px) {
  body { font-size: 17px; }

  .hero-image-col { display: none; }
}
