@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");
:root {
  --bg: #F9F8F6; --paper: #F9F8F6; --ink: #35414f;
  --muted: #7d8792; --line: #dfe3e7; --accent: #F2511B;
  --surface: #f0eeea; --surface2: #e9e6e0; --soft: #58616b;
  --serif: "My Font", Georgia, serif; --sans: "Inter", Arial, sans-serif;
}
body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: #FDD1BA; color: var(--ink); }
body :is(header, .top) { background: #F9F8F6f2; border-color: var(--line); }
body :is(.identity, .brand, .toplinks, .nav, .eyebrow, .label, .kicker, .micro, .meta dt, .back, .toc, .number) { font-family: "DM Sans", Arial, sans-serif; }
body :is(.eyebrow, .label, .kicker, .num, .number, .work .num) { color: var(--accent); }
body :is(h1,h2,h3,.quote,.pull,.bigline) { font-family: var(--serif); font-weight: 400; }
body :is(.dek,.prose,.details,.desc,.card p,.sequence-item p,.work .desc) { color: #58616b; }
body :is(.quote,.pull) { color: var(--accent); }
body :is(.image-frame,.image-frame.tight,.hero-art) { background: #eeece7; border-color: var(--line); }
body .callout { background: #FDD1BA55; border-color: var(--accent); color: var(--ink); }
body .panel { background: var(--surface); border-color: var(--line); }
body .concept { background: #C8D665; color: var(--ink); }
body .concept :is(p,.micro) { color: #45502c; }
body .concept-card { background: #F9F8F6; border-color: #b4c15a; }
body :is(.flow,.step) { border-color: var(--line); }
body .step { background: var(--surface); }
body .step p { color: #58616b; }
body :is(.footer,.end) { border-color: var(--line); color: var(--muted); }
body :is(.footer b,.end h2) { color: var(--ink); }
body a:hover { color: var(--accent); }
a:focus-visible,button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
/* Homepage paper palette. */
:root { --orange: #F2511B; --peach: #FDD1BA; --sky: #ADD6F7; --lime: #C8D665; --accent: var(--orange); }
body .callout { background: var(--peach); border-left-color: var(--orange); color: var(--ink); }
body .panel { background: var(--sky); border: 0; color: var(--ink); }
body .panel :is(p,b) { color: var(--ink); }
body :is(.two-col,.cards,.flow) > :is(.card,.step):nth-child(3n+1) { background: var(--peach); }
body :is(.two-col,.cards,.flow) > :is(.card,.step):nth-child(3n+2) { background: var(--sky); }
body :is(.two-col,.cards,.flow) > :is(.card,.step):nth-child(3n+3) { background: var(--lime); }
body :is(.two-col,.cards) > .card { padding: 26px; border: 0; }
body :is(.card,.step) :is(p,h3,.number,.micro) { color: var(--ink); }
body :is(.hero-art,.hero-image .image-frame) { background: var(--sky); padding: 18px; border: 0; }
body .image-block .image-frame { background: var(--peach); border: 0; }
body .pair figure:nth-child(2) .image-frame { background: var(--lime); }
body .comparison figure:first-child .image-frame { background: var(--peach); }
body .comparison figure:last-child .image-frame { background: var(--sky); }
body .concept { background: var(--lime); }
body .preview { background: #191918; }
body .work:nth-child(odd) .visual { background: var(--sky); }
body .work:nth-child(even) .visual { background: var(--peach); }
/* Understated section labels. */
body :is(.label, .kicker) { color: rgba(0, 0, 0, .6); font-weight: 400; }

body .section :is(.label, .kicker), body .project .label, body .intro .kicker { color: rgba(0, 0, 0, .6); font-weight: 400; }

/* Compact copy and paper-note cards, shared with the homepage palette. */
body .callout { font-size: 14px; line-height: 1.7; padding: 28px 32px; border: 0; transform: rotate(-.7deg); }
body :is(.two-col,.cards) { gap: 30px; padding: 8px 5px; }
body :is(.two-col,.cards) > .card { padding: 30px; transform: rotate(-1.4deg); }
body :is(.two-col,.cards) > .card:nth-child(even) { transform: rotate(1.2deg); }
body :is(.two-col,.cards,.flow) > :is(.card,.step):nth-child(4n+1) { background: var(--orange); color: #fff; }
body :is(.two-col,.cards,.flow) > :is(.card,.step):nth-child(4n+2) { background: var(--sky); color: var(--ink); }
body :is(.two-col,.cards,.flow) > :is(.card,.step):nth-child(4n+3) { background: var(--lime); color: var(--ink); }
body :is(.two-col,.cards,.flow) > :is(.card,.step):nth-child(4n+4) { background: var(--peach); color: #b94716; }
body :is(.card,.step) :is(p,h3,.number,.micro) { color: inherit; }
body :is(.card,.step) :is(.number,.micro) { font-weight: 400; opacity: .7; }
body :is(.card,.step) h3 { font-size: 24px; line-height: 1.15; margin: 22px 0 16px; }
body :is(.card,.step) p { font-size: 14px; line-height: 1.65; }
body .section:nth-of-type(4n+1) .callout { background: var(--peach); color: #b94716; }
body .section:nth-of-type(4n+2) .callout { background: var(--sky); color: var(--ink); }
body .section:nth-of-type(4n+3) .callout { background: var(--lime); color: var(--ink); }
body .section:nth-of-type(4n) .callout { background: var(--orange); color: #fff; }
@media (max-width:640px) {
  body :is(.two-col,.cards) > .card { padding: 25px; }
  body .callout { padding: 24px; }
}
body #decisions .card:nth-child(3n+1) { background: var(--lime); color: var(--ink); }
body #decisions .card:nth-child(3n+2) { background: var(--peach); color: #b94716; }
body #decisions .card:nth-child(3n) { background: var(--orange); color: #fff; }

body #process .two-col > .card:first-child { background: var(--lime); color: var(--ink); }
body #process .two-col > .card:nth-child(2) { background: var(--peach); color: #b94716; }

/* Give the return link breathing room above the case-study title. */
body .intro > .back { display: inline-block; margin-bottom: 28px; line-height: 1.5; }
@media (max-width:640px) { body .intro > .back { margin-bottom: 22px; } }

/* Consistent entry spacing and section navigation for gallery case studies. */
body :is(.intro,.hero) > .back { display: inline-block; margin-bottom: 28px; font: 400 12px/1.5 "DM Sans",Arial,sans-serif; text-decoration: none; color: #7d8792; }
.gallery-case-layout { display: grid; grid-template-columns: 205px minmax(0,1fr); gap: 60px; align-items: start; }
.gallery-case-layout > main { min-width: 0; }
.gallery-case-layout :is(.work,.project) { scroll-margin-top: 100px; }
body .topnav { display: flex; gap: 30px; font: 400 11px/1.5 "DM Sans",Arial,sans-serif; letter-spacing: .08em; }
body .topnav a { text-decoration: none; }
@media(max-width:960px) { .gallery-case-layout { display: block; } .gallery-case-layout > .toc { display: none; } }
@media(max-width:640px) { body :is(.intro,.hero) > .back { margin-bottom: 22px; } }
/* Quiet image surrounds; color belongs to the paper cards. */
body :is(.image-frame,.image-frame.tight,.hero-art,.hero-image .image-frame,.image-block .image-frame,.pair figure:nth-child(2) .image-frame,.comparison figure:first-child .image-frame,.comparison figure:last-child .image-frame) { background: #eeece7; border: 1px solid #dfe3e7; }
body .work:nth-child(n) .visual { background: #eeece7; }
/* Four individual paper notes, matching the homepage hats. */
body .flow { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; background: transparent; border: 0; padding: 8px 5px; }
body .flow > .step { min-height: 236px; padding: 26px; border: 0; transform: rotate(-2deg); transition: transform .3s ease; }
body .flow > .step:nth-child(2) { transform: rotate(1.5deg); }
body .flow > .step:nth-child(3) { transform: rotate(-1deg); }
body .flow > .step:nth-child(4) { transform: rotate(2deg); }
body .flow > .step > span { color: inherit; opacity: .7; font: 400 12px/1.65 "DM Sans",Arial,sans-serif; letter-spacing: .01em; }
body .flow > .step h3 { font-size: 29px; margin: 26px 0 10px; }
@media(hover:hover) { body .flow > .step:hover { transform: rotate(0deg) scale(1.02); } }
@media(max-width:650px) { body .flow { grid-template-columns: 1fr; gap: 24px; } }
@media(prefers-reduced-motion:reduce) { body .flow > .step { transition: none; } }