:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --ink: #14120d;
  --muted: #5f5a50;
  --line: #e0dad0;
  --accent: #1b4a3c;
  --band: #101110;
  --band-ink: #f3f0e9;
  --max: 1180px;
  --gap: clamp(20px, 4.5vw, 56px);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--paper); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--gap); }
.site-header { position: sticky; z-index: 5; top: 0; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); }
.wordmark { flex: 0 0 auto; color: var(--ink); font-size: 1rem; font-weight: 650; letter-spacing: -.02em; text-decoration: none; }
.top-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px, 2vw, 28px); font-size: .82rem; line-height: 1.3; white-space: nowrap; }
.top-nav a { color: var(--muted); text-decoration: none; }
.top-nav a:hover, .top-nav a:focus-visible { color: var(--accent); text-decoration: underline; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(2.5rem, 4.6vw, 3.85rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.02; }
h2 { margin-bottom: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.12; }
.eyebrow, .mono, .metric-label, .metric-value, .status, .project-scope, .project-result, .service-price, .company-details dt, .site-footer, .pipeline, .meta-grid dt, .result-table, .writing-date { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.eyebrow { margin: 0 0 18px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .18em; line-height: 1.5; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: 1.35fr 1fr; align-items: end; gap: clamp(32px, 6vw, 78px); padding-block: clamp(64px, 9vw, 112px) 48px; }
.hero h1 { max-width: 780px; }
.hero-copy { max-width: 46ch; margin-bottom: 28px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 10px 18px; border: 1px solid var(--accent); border-radius: 2px; color: var(--paper); background: var(--accent); font: inherit; font-size: .94rem; font-weight: 600; line-height: 1.35; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 150ms ease; }
.button:hover { color: var(--paper); background: #153a30; text-decoration: none; }
.text-link { font-weight: 600; }
.pipeline-card { min-width: 0; border: 1px solid var(--line); background: var(--paper); }
.pipeline-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.pipeline { margin: 0; padding: 8px 16px; list-style: none; font-size: 12px; line-height: 1.5; }
.pipeline li { display: grid; grid-template-columns: 24px 58px minmax(0, 1fr); gap: 8px; padding-block: 6px; }
.pipeline li span:first-child { color: var(--muted); }
.pipeline li span:nth-child(2) { color: var(--accent); }
.pipeline li span:last-child { overflow-wrap: anywhere; }
.pipeline-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pipeline-metrics div { min-width: 0; padding: 10px 8px; text-align: center; font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.pipeline-metrics div + div { border-left: 1px solid var(--line); }
.pipeline-note { margin: 0; padding: 0 16px 13px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; border-block: 1px solid var(--line); }
.metric { min-width: 0; padding: 18px 16px 20px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric-label { display: block; min-height: 2.8em; color: var(--muted); font-size: 10px; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
.metric-value { display: block; font-size: 1.9rem; font-variant-numeric: tabular-nums; line-height: 1.15; }
.section { padding-block: clamp(64px, 8vw, 96px); border-top: 1px solid var(--line); scroll-margin-top: 76px; }
.section-heading { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1fr); align-items: start; gap: 24px; margin-bottom: 32px; }
.section-heading > p { max-width: 60ch; margin: 0; color: var(--muted); }
.section-title { margin: 0; font: 500 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.project-card { display: flex; min-width: 0; flex-direction: column; padding: clamp(19px, calc(3vw - 1px), 31px); border: 1px solid transparent; background: var(--paper); transition: transform 150ms ease, border-color 150ms ease; }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.project-number { color: var(--muted); font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px; border: 1px solid var(--line); font-size: 10px; letter-spacing: .12em; line-height: 1.3; white-space: nowrap; }
.status-live::before { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); content: ""; }
.project-card h3 { margin: 0 0 10px; font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.project-card > p { margin: 0 0 18px; color: var(--muted); line-height: 1.5; }
.project-scope, .project-result { margin: 0 0 12px; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.project-scope span, .project-result span { margin-right: 8px; color: var(--muted); letter-spacing: .08em; }
.project-result { color: var(--accent); }
.project-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: auto; padding-top: 14px; font-size: .92rem; }
.project-links a { text-decoration: none; }
.project-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .project-card:hover { transform: translateY(-2px); border-color: var(--ink); } }
.ticker { display: flex; overflow: hidden; min-height: 56px; align-items: center; margin-top: 1px; border-block: 1px solid var(--line); color: var(--band-ink); background: var(--band); font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.ticker-track { display: flex; width: max-content; animation: ticker-scroll 34s linear infinite; }
.ticker-group { flex: 0 0 auto; padding-right: 2rem; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
.ticker-spacer { height: 72px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.service-card { display: flex; min-width: 0; flex-direction: column; padding: 24px; background: var(--paper); }
.service-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 22px; color: var(--muted); font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.service-card h3 { margin: 0 0 10px; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.service-card > p { color: var(--muted); }
.deliverables-label { margin: auto 0 10px; color: var(--muted); font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.deliverables { display: grid; gap: 9px; margin: 0 0 22px; padding: 0; list-style: none; font-size: .92rem; line-height: 1.5; }
.deliverables li { position: relative; padding-left: 16px; }
.deliverables li::before { position: absolute; top: .62em; left: 0; width: 8px; height: 8px; background: var(--accent); content: ""; }
.service-price { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.5; }
.writing-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.writing-list a { display: grid; grid-template-columns: 90px minmax(0, 1fr) 24px; align-items: center; gap: 16px; padding: 15px 12px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.writing-list a:hover { background: #f1ece3; }
.writing-date { color: var(--muted); font-size: 12px; }
.writing-title { overflow-wrap: anywhere; }
.writing-arrow { justify-self: end; color: var(--accent); }
.writing-all { margin: 18px 0 0; text-align: right; }
.company-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: clamp(32px, 7vw, 88px); align-items: start; }
.company-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.company-details div { min-width: 0; padding-block: 14px; border-bottom: 1px solid var(--line); }
.company-details dt { margin-bottom: 5px; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.company-details dd { margin: 0; overflow-wrap: anywhere; }
.how-we-work { position: sticky; top: 84px; align-self: start; padding: 22px; border: 1px solid var(--line); }
.how-we-work h3 { margin: 0 0 20px; font: 500 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.steps { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: work; }
.steps li { counter-increment: work; }
.steps h4 { margin: 0 0 4px; font-size: 1rem; font-weight: 600; }
.steps h4::before { margin-right: 8px; color: var(--accent); content: "0" counter(work) " /"; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.steps p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 7vw, 88px); }
.contact-intro h2 { margin-bottom: 18px; }
.contact-intro p { max-width: 42ch; color: var(--muted); }
.contact-form { min-width: 0; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: .92rem; font-weight: 600; }
.field input, .field textarea { width: 100%; min-width: 0; padding: 9px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); background: transparent; font: inherit; line-height: 1.5; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-status { min-height: 1.5em; margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
.contact-note { margin: 18px 0 0; color: var(--muted); font-size: .9rem; }
.site-footer { display: grid; gap: 7px; padding-block: 22px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.back-link { display: inline-block; margin-block: 28px; text-decoration: none; }
.case-header { padding-block: 36px 50px; border-bottom: 1px solid var(--line); }
.case-header h1 { max-width: 820px; }
.case-subtitle { max-width: 70ch; margin: 0 0 30px; color: var(--muted); font-size: 1.1rem; }
.meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.meta-grid div { min-width: 0; padding: 14px 16px; }
.meta-grid div + div { border-left: 1px solid var(--line); }
.meta-grid dt { margin-bottom: 5px; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.meta-grid dd { margin: 0; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.case-section { display: grid; grid-template-columns: minmax(150px, .45fr) minmax(0, 1fr); gap: 28px; padding-block: 42px; border-bottom: 1px solid var(--line); scroll-margin-top: 76px; }
.case-section h2 { font: 500 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.case-copy { min-width: 0; }
.case-copy > p:last-child { margin-bottom: 0; }
.decision-list { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.decision-list li h3 { margin: 0 0 6px; font-size: 1.12rem; font-weight: 600; line-height: 1.35; }
.decision-list li p { margin: 0; color: var(--muted); }
.result-table { width: 100%; border-block: 1px solid var(--line); border-collapse: collapse; font-size: .9rem; line-height: 1.5; }
.result-table td { padding: 13px 8px; border: 0; }
.result-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.caveats { margin: 22px 0 0; color: var(--muted); font-size: .9rem; }
.caveats strong { display: block; margin-bottom: 5px; color: var(--ink); font: 500 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.result-list { display: grid; gap: 10px; margin: 0; padding-left: 20px; }
.case-footer { display: flex; justify-content: space-between; gap: 18px; padding-block: 28px; }
.not-found { min-height: calc(100vh - 60px); display: grid; align-content: center; justify-items: start; gap: 16px; }
.not-found p { margin: 0; color: var(--muted); }

@media (max-width: 959px) {
  .hero { grid-template-columns: 1fr; }
  .pipeline-card { max-width: 620px; }
  .service-grid { grid-template-columns: 1fr; }
  .company-layout, .contact-layout { grid-template-columns: 1fr; }
  .how-we-work { position: static; }
}
@media (max-width: 899px) {
  .project-grid { grid-template-columns: 1fr; }
}
@media (min-width:900px) {
  .project-card--wide { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.75fr); column-gap: 48px; row-gap: 14px; align-items: start; }
  .project-card--wide .project-top { grid-column: 1/-1; }
  .project-card--wide>p:not(.project-scope):not(.project-result) { grid-column: 1; }
  .project-card--wide .project-scope,.project-card--wide .project-result,.project-card--wide .project-links { grid-column: 2; }
  .project-card--wide .project-links { padding-top: 0; }
}
@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; justify-content: center; gap: 0 14px; padding-block: 8px; }
  .top-nav { flex: 1 1 100%; justify-content: center; flex-wrap: wrap; gap: 7px 14px; font-size: .72rem; }
  .hero { padding-top: 52px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .metric { padding-inline: 10px; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .company-details { grid-template-columns: 1fr; }
  .writing-list a { grid-template-columns: 70px minmax(0, 1fr) 18px; gap: 10px; padding-inline: 6px; }
  .meta-grid { grid-template-columns: 1fr; }
  .meta-grid div + div { border-top: 1px solid var(--line); border-left: 0; }
  .case-section { grid-template-columns: 1fr; gap: 16px; }
  .case-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; animation: none; transition: none; }
  .ticker-group:nth-child(2) { display: none; }
}
