*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --paper: #FBF8F3;
  --sand: #F2EBDF;
  --ink: #22201C;
  --muted: #6E665C;
  --accent: #B8562B;
  --sea: #3F6B78;
  --sea-soft: #DCE7E8;
  --clay-soft: #F1DDD0;
  --line: rgba(34,32,28,0.14);
}
html { scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif; font-weight: 300;
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.serif { font-family: 'DM Serif Display', serif; font-weight: 400; }

/* NAV */
nav.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251,248,243,0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav.top .wrap { display: flex; justify-content: space-between; align-items: center; height: 64px; gap: 16px; }
.logo { font-family: 'DM Serif Display', serif; font-size: 1.2rem; text-decoration: none; white-space: nowrap; }
.links { display: flex; gap: 26px; list-style: none; }
.links a {
  white-space: nowrap; text-decoration: none; font-size: 0.76rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500; color: var(--muted);
}
.links a:hover, .links a.on { color: var(--accent); }

/* TYPE */
.eyebrow {
  display: block; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500; color: var(--accent); margin-bottom: 18px;
}
h1 {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02; letter-spacing: -0.02em;
}
h1 em, h2 em { color: var(--sea); }
h2 {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.12; letter-spacing: -0.01em;
}
h3 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 1.45rem; line-height: 1.25; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 48ch; }
p + p { margin-top: 16px; }

section { padding: 88px 0; border-bottom: 1px solid var(--line); }
section.tint { background: var(--sand); }
.section-head { margin-bottom: 44px; }
.section-head p { margin-top: 14px; color: var(--muted); max-width: 56ch; }

/* BUTTONS */
.btn {
  display: inline-block; text-decoration: none; font-weight: 500; font-size: 0.9rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); }
.btn:not(.solid):hover { background: var(--ink); color: var(--paper); }
.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* HERO */
.hero { padding: 104px 0 88px; }
.hero h1 { max-width: 13ch; }
.hero .lede { margin-top: 28px; }
.statement {
  font-family: 'DM Serif Display', serif; font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.3; max-width: 30ch;
}

/* TWO COL */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* SERVICES */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { padding: 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.service .num { font-size: 0.75rem; font-weight: 500; color: var(--accent); letter-spacing: 0.1em; }
.service h3 { margin: 10px 0 8px; font-size: 1.25rem; }
.service p { font-size: 0.93rem; color: var(--muted); }

/* CLIENTS */
.clients { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: baseline; }
.clients span { font-family: 'DM Serif Display', serif; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--ink); opacity: .82; }
.nda { margin-top: 28px; color: var(--muted); max-width: 60ch; font-size: 0.95rem; }

/* CASE CARDS */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { text-decoration: none; display: block; }
.cover {
  aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; position: relative;
  display: flex; align-items: flex-end; padding: 26px;
  transition: transform .3s ease;
}
.card:hover .cover { transform: translateY(-4px); }
.cover .big {
  font-family: 'DM Serif Display', serif; font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.08; position: relative; z-index: 1; max-width: 14ch;
}
.cover svg.art { position: absolute; inset: 0; width: 100%; height: 100%; }
.c-sea { background: var(--sea); color: #F4F1EA; }
.c-clay { background: var(--clay-soft); color: var(--ink); }
.c-ink { background: var(--ink); color: var(--paper); }
.c-sand { background: #E6DCCB; color: var(--ink); }
.card .meta { margin-top: 16px; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--accent); }
.card h3 { margin-top: 6px; }
.card p { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }

/* CASE STUDY PAGE */
.cs-hero { padding: 92px 0 64px; }
.cs-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 16ch; }
.cs-hero .lede { margin-top: 24px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.facts dd { font-size: 0.98rem; }
.pull {
  font-family: 'DM Serif Display', serif; font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.22; max-width: 26ch;
}
.pull-sub { margin-top: 18px; color: var(--muted); max-width: 58ch; }

/* PROCESS GRAPHIC */
.process { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; counter-reset: step; }
.process.four { grid-template-columns: repeat(4, 1fr); }
.process li { position: relative; padding: 0 18px 0 0; }
.process li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--sea); color: var(--sea);
  font-weight: 500; font-size: 0.95rem; position: relative; z-index: 1; margin-bottom: 18px;
}
.process li::after {
  content: ""; position: absolute; top: 26px; left: 52px; right: 0; height: 1.5px; background: var(--sea); opacity: .35;
}
.process li:last-child::after { display: none; }
.process h4 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 1.2rem; margin-bottom: 6px; }
.process p { font-size: 0.92rem; color: var(--muted); }

/* DIAGRAM BOX */
.figure { margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.figure figcaption { margin-top: 18px; font-size: 0.82rem; color: var(--muted); }
.lane { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stage { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.stage .hd { background: var(--sea); color: #F4F1EA; font-weight: 500; font-size: 0.85rem; padding: 10px 12px; letter-spacing: .04em; }
.stage ul { list-style: none; padding: 10px 12px; }
.stage li { font-size: 0.82rem; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.stage li:last-child { border-bottom: none; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { border-radius: 12px; padding: 22px; }
.panel .tag { font-size: 0.7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; display: block; }
.panel.before { background: var(--sand); }
.panel.before .tag { color: var(--muted); }
.panel.after { background: var(--sea-soft); }
.panel.after .tag { color: var(--sea); }
.bar { height: 9px; border-radius: 5px; background: rgba(34,32,28,.16); margin: 8px 0; }
.blk { border-radius: 8px; background: #fff; padding: 10px 12px; margin: 8px 0; font-size: 0.82rem; border-left: 3px solid var(--sea); }
.blk b { font-weight: 500; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 0.75rem; background: var(--ink); color: #EDE6D8; border-radius: 6px; padding: 8px 10px; margin-top: 6px; }

.funnel { display: grid; gap: 10px; max-width: 640px; margin: 0 auto; }
.funnel div { border-radius: 10px; padding: 14px 18px; display: flex; justify-content: space-between; gap: 16px; font-size: 0.92rem; }
.funnel b { font-weight: 500; }
.funnel span { color: var(--muted); text-align: right; }

/* LISTS */
.roles { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.roles li { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.92rem; }
.delivered { list-style: none; }
.delivered li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr; gap: 20px; }
.delivered li:last-child { border-bottom: 1px solid var(--line); }
.delivered b { font-weight: 500; }
.delivered span { color: var(--muted); }

.request { background: var(--ink); color: var(--paper); border-radius: 18px; padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.request h3 { font-size: 1.7rem; }
.request p { color: #C9C1B3; margin-top: 6px; max-width: 46ch; }
.request .btn { border-color: var(--paper); color: var(--paper); }
.request .btn:hover { background: var(--paper); color: var(--ink); }

.pager { display: flex; justify-content: space-between; gap: 20px; padding: 40px 0; }
.pager a { text-decoration: none; }
.pager small { display: block; font-size: 0.72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.pager span { font-family: 'DM Serif Display', serif; font-size: 1.3rem; }
.pager a:hover span { color: var(--accent); }

/* SAMPLES */
.group { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 30px 0; border-top: 1px solid var(--line); }
.group:last-child { border-bottom: 1px solid var(--line); }
.group .meta { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.group .desc { color: var(--muted); margin-bottom: 14px; max-width: 58ch; }
.samples { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.samples a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 0.9rem;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  transition: border-color .2s, color .2s;
}
.samples a::after { content: "\2197"; font-size: 0.8rem; color: var(--muted); }
.samples a:hover { border-color: var(--accent); color: var(--accent); }

/* ABOUT */
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.skills h4 { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--accent); margin-bottom: 10px; }
.skills ul { list-style: none; }
.skills li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.note { margin-top: 32px; padding: 24px 26px; background: var(--sand); border-radius: 14px; }

/* CONTACT */
.contact-list { list-style: none; }
.contact-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  text-decoration: none; padding: 22px 0; border-top: 1px solid var(--line);
  transition: color .2s, padding .2s;
}
.contact-list li:last-child a { border-bottom: 1px solid var(--line); }
.contact-list .k { font-family: 'DM Serif Display', serif; font-size: 1.6rem; }
.contact-list .v { color: var(--muted); font-size: 0.92rem; text-align: right; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent); padding-left: 8px; }

/* FOOTER */
footer { padding: 44px 0 52px; font-size: 0.85rem; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer ul { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .services { grid-template-columns: 1fr 1fr; }
  .process, .process.four { grid-template-columns: 1fr; gap: 26px; }
  .process li { padding: 0 0 0 72px; min-height: 52px; }
  .process li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .process li::after { top: 52px; left: 26px; right: auto; width: 1.5px; height: calc(100% - 26px); }
  .lane { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .links { gap: 12px; }
  .logo { font-size: 1.05rem; }
  .links a { font-size: 0.7rem; letter-spacing: .08em; }
  .links .hide-sm { display: none; }
  .hero { padding: 64px 0 56px; }
  section { padding: 60px 0; }
  .two, .cards, .group, .compare { grid-template-columns: 1fr; gap: 22px; }
  .group { gap: 10px; }
  .services, .skills, .lane { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 16px; }
  .delivered li { grid-template-columns: 1fr; gap: 4px; }
  .figure { padding: 20px; }
  .request { padding: 30px 24px; }
  .contact-list .k { font-size: 1.3rem; }
  .pager { flex-direction: column; }
}
