:root {
  --bg: #f6f4ef;
  --fg: #141414;
  --muted: #6b6862;
  --line: #dcd8cf;
  --accent: #1f5f55;
  --card: #ebe7de;
  --nav-bg: #133820;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --fg: #f1efe9;
    --muted: #9a968d;
    --line: #2b2a27;
    --accent: #6cc4ae;
    --card: #1c1b19;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav-bg);
  color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .2);
}
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 64px; }
.logo { display: block; text-decoration: none; }
.logo img { display: block; height: 38px; width: auto; }
.nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.nav a { text-decoration: none; font-size: 15px; color: rgba(255, 255, 255, .72); }
.nav a:hover { color: #fff; }
.nav a[aria-current], .nav a:focus-visible { color: #fff; text-decoration: underline; text-decoration-color: #6cc4ae; text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* Hero */
.hero { padding-top: clamp(26px, 4.75vw, 64px); padding-bottom: clamp(40px, 6.5vw, 76px); }
.eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 6vw, 80px); line-height: 1.02; letter-spacing: -.02em;
  margin: 0; max-width: 17ch;
}
/* Two-column hero: headline and intro on the left, an "at a glance" panel on the right */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero-split { padding-bottom: clamp(26px, 4vw, 56px); } /* same spacing as every other divider on the home page */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn { margin-top: 0; }
.hero-glance { background: var(--card); border-radius: 6px; padding: clamp(20px, 2.4vw, 28px); }
.hero-glance .status { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 15px; font-weight: 500; }
.hero-glance .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.hero-glance dl { margin: 0; display: grid; gap: 14px; }
.hero-glance dl > div { padding-top: 14px; border-top: 1px solid var(--line); }
.hero-glance dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.hero-glance dd { margin: 0; font-size: 15px; line-height: 1.45; }
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; align-items: start; }
}
.hero h1 em { color: var(--accent); font-style: italic; }
.hero p.lede { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 52ch; margin: 22px 0 0; text-wrap: balance; }
.hero p.lede a { color: var(--accent); text-underline-offset: 4px; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(40px, 5.5vw, 70px); padding-top: 26px; border-top: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: 1; letter-spacing: -.01em; }
.stat span { display: block; color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 24ch; }

/* Sections */
.section { padding-top: clamp(26px, 4vw, 56px); padding-bottom: clamp(26px, 4vw, 56px); border-top: 1px solid var(--line); }
.section.no-rule { border-top: 0; padding-top: 0; }
#contact.section { padding-bottom: clamp(40px, 6vw, 84px); } /* extra room at the end of the page */
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; gap: 16px; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 44px); margin: 0; }
.section-head span { color: var(--muted); font-size: 14px; }

/* Work grid */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(26px, 3.2vw, 44px) clamp(16px, 2.4vw, 26px); }
.work-card { text-decoration: none; display: block; }
.work-card:first-child { grid-column: 1 / -1; }
.work-card .meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; }
.work-card h3 { font-size: 19px; font-weight: 500; margin: 0; }
.work-card p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.work-card .year { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* Typographic project cover. Set --c (background) and optionally --t (text) inline. */
.cover {
  --t: #fff;
  position: relative; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden;
  background: var(--c, var(--card)); color: var(--t);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(20px, 3vw, 36px);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.work-card:first-child .cover { aspect-ratio: 16 / 7; }
.work-card:hover .cover { transform: translateY(-4px); }
.cover .brand { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.cover .big { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 9vw, 128px); line-height: .9; letter-spacing: -.03em; }
.work-card:not(:first-child) .cover .big { font-size: clamp(48px, 7vw, 96px); }
.cover .label { font-size: 15px; opacity: .85; margin-top: 10px; max-width: 30ch; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover img.cover-shot { inset: auto; top: 12%; right: 8%; width: auto; height: 118%; object-fit: contain; border-radius: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.cover:has(.cover-shot) > div { max-width: 55%; position: relative; z-index: 1; }
.cover .brand { position: relative; z-index: 1; }
.cover .brand.boxed { align-self: flex-start; background: var(--t); color: var(--c); opacity: 1; font-weight: 600; padding: 6px 10px 5px; border-radius: 3px; }
.cover img.cover-bg { object-position: center 40%; z-index: 0; top: calc(var(--bg-over, 95px) * -1); bottom: auto; height: calc(100% + var(--bg-over, 95px) * 2); will-change: transform; }
.cover:has(.cover-bg)::after { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--shade, none); pointer-events: none; }
.cover:has(.cover-bg) > div { position: relative; z-index: 1; }
.cover img.cover-shot { z-index: 1; will-change: transform; }
.cover img.cover-devices { inset: auto; top: 7%; right: -12%; width: 80%; height: auto; object-fit: contain; z-index: 0; }
.cover:has(.cover-devices) > div { position: relative; z-index: 1; }
.cover img.cover-wave { -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 78%, transparent); inset: auto; top: 7%; left: -62%; width: 190%; max-width: none; height: auto; object-fit: contain; mix-blend-mode: screen; z-index: 0; }
.cover:has(.cover-wave) > div { position: relative; z-index: 1; }
@media (max-width: 720px) { .cover img.cover-shot { top: 14%; right: 5%; height: 104%; border-radius: 14px; } .cover:has(.cover-shot) > div { max-width: 48%; } .cover:has(.cover-shot) .label { font-size: 13px; } }

/* About */
.about { display: grid; grid-template-columns: 140px 1fr 2fr; gap: 14px clamp(20px, 3.2vw, 44px); align-items: start; } /* same columns as .timeline li, so the text lines up */
.about .portrait { grid-column: 1 / 3; }
.about .bio { grid-column: 3; }
.about .portrait { aspect-ratio: 4 / 5; background: var(--card); border-radius: 4px; overflow: hidden; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.about .portrait img { width: 100%; height: 100%; object-fit: cover; }
.about .bio p { font-size: 19px; margin: 0 0 16px; }
.about dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 28px; margin: 28px 0 0; font-size: 15px; }
.about dt { color: var(--muted); }
.about dd { margin: 0; }

/* Contact */
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 6vw, 72px); line-height: 1.05; margin: 0 0 20px; }
.contact a.email { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 6px; font-size: .6em; word-break: break-all; }
.links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 26px; }
.links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.links a:hover { color: var(--fg); }

.btn {
  display: inline-block; padding: 12px 22px; border: 1px solid var(--fg); border-radius: 999px;
  text-decoration: none; font-size: 15px; margin-top: 12px;
}
.btn:hover { background: var(--fg); color: var(--bg); }


/* Case study */
.cs-hero { padding: clamp(26px, 4.75vw, 64px) 0 0; } /* matches .hero top spacing */
.cs-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 6vw, 76px); line-height: 1.04; letter-spacing: -.015em; margin: 0 0 16px; max-width: 20ch; }
.cs-hero .tagline { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 28px); color: var(--accent); margin: 0 0 22px; }
.cs-hero .summary { font-size: clamp(18px, 2vw, 21px); max-width: 60ch; margin: 0; text-wrap: pretty; }
.cs-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 48px 0 0; font-size: 15px; }
.cs-facts dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px; }
.cs-facts dd { margin: 0; }
.cs-facts .wide { grid-column: 1 / -1; }

.cs-section { display: grid; grid-template-columns: 1fr 2.4fr; gap: clamp(20px, 4vw, 64px); padding: clamp(38px, 5.5vw, 70px) 0; border-bottom: 1px solid var(--line); }
.cs-section > h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 34px); margin: 0; position: sticky; top: 96px; align-self: start; }
.cs-body { max-width: 68ch; }
.cs-body p, .cs-body li { font-size: 18px; }
.cs-body p { margin: 0 0 15px; }
.cs-body ul, .cs-body ol { padding-left: 20px; margin: 0 0 18px; }
.cs-body .kicker { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; margin-bottom: 22px; }
.cs-body h3 { font-size: 19px; font-weight: 500; margin: 36px 0 10px; }
.cs-body h3 .n { color: var(--accent); margin-right: 6px; }
.cs-body h3:first-child { margin-top: 0; }
.cs-body .callout { border-left: 2px solid var(--accent); padding-left: 20px; font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.4; margin: 28px 0; }
.cs-body .aside { color: var(--muted); font-size: 16px; }

.cs-figure { margin: 26px 0; }
.cs-figure .img { background: var(--card); aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; display: grid; place-items: center; color: var(--muted); font-size: 14px; text-align: center; padding: 16px; }
.cs-figure .img img { width: 100%; height: 100%; object-fit: cover; }
.cs-figure figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; }
/* Real media: show the whole image or video at its own shape */
.cs-figure .media { display: block; border-radius: 4px; overflow: hidden; background: var(--card); }
.cs-figure .media img, .cs-figure .media video { display: block; width: 100%; height: auto; }
.cs-figure .media.light { background: #fff; }
.cs-figure .media.phone { background: none; border-radius: 0; display: flex; justify-content: center; } /* portrait phone recordings */
.cs-figure .media.phone video { width: auto; max-width: 100%; max-height: var(--phone-h, 540px); border-radius: 14px; background: var(--card); }
.cs-figure .media.crop { aspect-ratio: 4 / 3; }
.cs-figure .media.crop img { height: 100%; object-fit: cover; object-position: top; }
.cs-figure .media.embed { aspect-ratio: 16 / 9; }
.cs-figure .media.embed iframe { display: block; width: 100%; height: 100%; border: 0; }
/* Side-by-side text + image columns inside a case study step */
.cs-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px clamp(20px, 3vw, 36px); align-items: start; margin: 18px 0 24px; }
.cs-split .cs-figure { margin: 0; }
.cs-split > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; } /* keeps the two videos and their captions on matching rows */
.cs-split { --phone-h: 540px; }
.cs-split > div > p { margin: 0; justify-self: center; width: 100%; max-width: calc(var(--phone-h) * 660 / 1200); font-size: 15px; line-height: 1.55; } /* same width as the phone video above (660x1200 recordings) */
@media (max-width: 720px) { .cs-split { grid-template-columns: 1fr; } }
.cs-figure.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.cs-figure.pair figcaption { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 720px) { .cs-figure.pair { grid-template-columns: 1fr; } }

/* Image slots awaiting real images: visible on localhost only. */
.todo { display: none; }
.draft .todo { display: block; }
.draft .todo .img { border: 1px dashed var(--muted); }
.draft .todo .img::before { content: "Image to add: "; font-weight: 500; margin-right: 4px; }

.cs-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 22px 20px; margin: 6px 0 22px; }
.cs-results.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-results .span-all { grid-column: 1 / -1; }
@media (max-width: 520px) { .cs-results.cols-2 { grid-template-columns: 1fr; } }
.cs-results div b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.5vw, 56px); line-height: 1; color: var(--accent); }
.cs-results div b.word { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.33; }
.cs-results div span { display: block; color: var(--muted); font-size: 15px; margin-top: 8px; }
.cs-results h4 { grid-column: 1 / -1; margin: 12px 0 -12px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

.learnings { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.learnings h3 { margin: 0 0 8px; font-size: 18px; }
.learnings p { margin: 0; font-size: 16px; color: var(--muted); }

.cs-next { padding-top: 44px; padding-bottom: 44px; }
.cs-next a { text-decoration: none; font-family: var(--serif); font-size: clamp(28px, 4vw, 48px); }
.cs-next a:hover { color: var(--accent); }

/* Resume */
.resume { padding-top: clamp(26px, 4.75vw, 64px); padding-bottom: 52px; max-width: 900px; }
.resume h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 64px); margin: 0; line-height: 1.05; }
.resume .title { font-size: 20px; margin: 8px 0 16px; }
.resume .contact-line { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.resume h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 38px 0 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.resume .intro { font-size: 18px; margin: 28px 0 0; }
.resume .stats { margin-top: 32px; }
.resume p, .resume li { font-size: 16px; }
.resume ul { padding-left: 20px; margin: 6px 0 0; }
.resume li { margin-bottom: 4px; }
.resume li a { text-underline-offset: 3px; text-decoration-color: var(--muted); }
.resume .muted { color: var(--muted); }
.co { display: grid; grid-template-columns: 1fr 2.6fr; gap: 14px 32px; margin-bottom: 32px; }
.co-head h3 { font-size: 20px; font-weight: 500; margin: 0 0 6px; }
.co-head p { color: var(--muted); font-size: 14px; margin: 0; }
.pos { margin-bottom: 22px; }
.pos:last-child { margin-bottom: 0; }
.pos-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pos-head .team { color: var(--muted); }
.pos-head .dates { margin-left: auto; color: var(--muted); font-size: 15px; }
.pos-sum { font-style: italic; color: var(--muted); margin: 4px 0 8px; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 32px; }
.cols.four { grid-template-columns: repeat(4, 1fr); }
.cols h4 { font-size: 15px; font-weight: 500; margin: 0 0 4px; }
.cols p { margin: 0; color: var(--muted); font-size: 15px; }


/* Mobile */
@media (max-width: 720px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card:first-child .cover { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .about .portrait { max-width: 360px; grid-column: auto; }
  .about .bio { grid-column: auto; }
  .cs-section { grid-template-columns: 1fr; }
  .cs-section > h2 { position: static; }
  .learnings { grid-template-columns: 1fr; }
  .co { grid-template-columns: 1fr; }
  .cols, .cols.four { grid-template-columns: 1fr 1fr; }
  .nav a.hide-sm { display: none; }
}

/* Print (resume) */
@media print {
  :root { --bg: #fff; --fg: #000; --muted: #444; --line: #ccc; }
  .site-header, .no-print { display: none !important; }
  body { font-size: 11pt; }
  .resume { padding: 0; max-width: none; }
  .resume h2 { margin-top: 20px; }
  .resume .pos, .resume .cols > div { break-inside: avoid; }
  .resume .stat b { font-size: 28px; }
  a { text-decoration: none; }
}

/* Solid button (login page) */
.btn.solid { background: var(--fg); color: var(--bg); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); }

/* Experience timeline (home page) */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 140px 1fr 2fr; gap: 14px clamp(20px, 3.2vw, 44px); padding: 26px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; padding-top: 0; } /* the section divider already sits above the first entry */
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .when { color: var(--muted); font-size: 15px; padding-top: 3px; }
.timeline .who h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; margin: 0 0 6px; }
.timeline .who p { color: var(--muted); font-size: 15px; margin: 0; }
.timeline .what p { margin: 0 0 14px; font-size: 17px; }
.timeline .what p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
  .timeline .what { margin-top: 8px; }
}

/* Login page */
.login { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 76px); align-items: start; padding-top: clamp(26px, 4.75vw, 64px); padding-bottom: clamp(46px, 8vw, 102px); }
.login h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 60px); line-height: 1.06; letter-spacing: -.015em; margin: 0 0 16px; }
.login-intro p:not(.eyebrow) { color: var(--muted); font-size: 18px; max-width: 46ch; margin: 0; }
.login-intro p:not(.eyebrow) + p { margin-top: 16px; }
.login-intro a { color: var(--accent); text-underline-offset: 3px; }
.login-form { background: var(--card); border-radius: 6px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; }
.login-form label { font-size: 14px; font-weight: 500; margin: 0 0 6px; }
.login-form input {
  font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; margin-bottom: 20px; width: 100%;
}
.login-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.login-form button { font: inherit; font-size: 15px; cursor: pointer; margin-top: 4px; align-self: flex-start; }
.form-error { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--fg); border-left: 3px solid var(--accent); padding: 10px 14px; margin: 0 0 20px; font-size: 15px; }
.form-note { color: var(--muted); font-size: 13px; margin: 16px 0 0; }
@media (max-width: 720px) { .login { grid-template-columns: 1fr; } }

/* Portfolio callout with inline password (home page) */
.gate { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; background: var(--card); border-radius: 6px; padding: clamp(24px, 4vw, 52px); }
.gate h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; margin: 0 0 16px; }
.gate p:not(.eyebrow) { color: var(--muted); margin: 0; max-width: 52ch; }
.gate-form { width: 100%; }
.gate-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.gate-row { display: flex; gap: 10px; }
.gate-row input {
  flex: 1; min-width: 0; font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 4px; padding: 11px 14px;
}
.gate-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.gate-row button { font: inherit; font-size: 15px; cursor: pointer; margin-top: 0; white-space: nowrap; }
.gate .gate-help { margin-top: 16px; font-size: 15px; }
.gate-help a { color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 720px) {
  .gate { grid-template-columns: 1fr; }
  .gate-row { flex-direction: column; }
  .gate-row button { align-self: flex-start; }
}
.timeline .what p.role { font-weight: 600; font-size: 16px; margin: 0 0 8px; }

/* Company logos on the resume (black-on-white images blended into either theme) */
.co-head h3 { display: flex; align-items: center; gap: 12px; }
.co-logo { height: 34px; width: auto; mix-blend-mode: multiply; }
.co-wordmark { height: 19px; width: auto; margin: 7px 0; mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) {
  .co-logo, .co-wordmark { filter: invert(1); mix-blend-mode: screen; }
}
@media print {
  .co-logo, .co-wordmark { filter: none; mix-blend-mode: normal; }
}

/* Client logo grid (home page). Cells hold a wordmark <span> or a logo <img>. */
.client-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px 12px; }
.client-grid li { display: grid; place-items: center; text-align: center; height: 84px; padding: 8px; }
.client-grid span { font-family: var(--serif); font-size: clamp(15px, 1.5vw, 19px); line-height: 1.2; color: var(--muted); transition: color .2s; }
.client-grid li:hover span { color: var(--fg); }
.client-grid img { height: 36px; width: auto; max-width: 78%; object-fit: contain; filter: grayscale(1); opacity: .6; transition: opacity .2s, filter .2s; }
.client-grid li:hover img { filter: none; opacity: 1; }
.client-grid img.lg { height: 64px; } /* square icon files that hold a wide wordmark */
.client-grid img.oval { height: 58px; } /* square file whose oval only fills the middle band; sized to match Lexus and Land Rover */
/* Logos whose source colors turn into pale grays get a little extra presence */
.client-grid img.boost { filter: grayscale(1) contrast(1.35) brightness(.85); opacity: .75; }
.client-grid li:hover img.boost { filter: none; opacity: 1; }
@media (prefers-color-scheme: dark) {
  /* Most logos are dark artwork: flip them to light gray so they show on the dark background */
  .client-grid img { filter: grayscale(1) invert(1); opacity: .7; }
  .client-grid li:hover img { filter: grayscale(1) invert(1); opacity: 1; }
  .client-grid img.boost { filter: grayscale(1) invert(1) brightness(1.3) contrast(1.15); opacity: .85; }
  .client-grid li:hover img.boost { filter: grayscale(1) invert(1) brightness(1.3) contrast(1.15); opacity: 1; }
}
@media (max-width: 900px) { .client-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .client-grid { grid-template-columns: repeat(3, 1fr); } .client-grid li { height: 68px; padding: 6px; } }
