*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #f4efe4;
  --page-edge: #faf7ef;
  --card: #faf7ef;
  --card-line: #e8e1d2;
  --rule: #e2dacb;
  --ink: #26231d;
  --text: #4a453c;
  --muted: #6b6558;
  --faint: #8a8577;
  --clay: #a05e3b;
  --clay-soft: #efe7d6;
  --field: #ffffff;
  --dark-ink: #33302a;
  --display: 'IBM Plex Sans', sans-serif;
  --body: 'Inter', sans-serif;
  --maxw: 1080px;
}

[data-theme="dark"] {
  --paper: #201d18;
  --page-edge: #2a2620;
  --card: #262219;
  --card-line: #3a352b;
  --rule: #352f26;
  --ink: #f2ece0;
  --text: #cfc7b7;
  --muted: #a49c8c;
  --faint: #837c6d;
  --clay: #cd8a5f;
  --clay-soft: #34291f;
  --field: #201d18;
  --dark-ink: #171410;
}

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 2.2s ease, color 2.2s ease;
  position: relative;
  overflow-x: clip;
}
/* slow sunrise/sunset fade across themed surfaces */
.pill, .ghost, .client, .svc-card, .case, .case-img, .labs-card, .tl-card,
.ref-card, .contact-card, #nav, .circle, .sec-label, .badge, .clients-note,
.svc-tagline, .about-role, .case-meta, .labs-tag, .tl-year, .contact-p,
.contact-meta a, .f-label, #contact-form input, #contact-form textarea, .hero h1, .hero-sub {
  transition: background-color 2.2s ease, border-color 2.2s ease, color 2.2s ease;
}

/* Big gold background balls that cut across the page */
.bg-circles {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.circle {
  position: absolute; top: 0; left: 0; border-radius: 50%;
  background: #efd89a;
  opacity: 0.4;
  will-change: transform;
  transition: background-color 2.2s ease, opacity 2.2s ease;
}
[data-theme="dark"] .circle { background: #c98a3f; opacity: 0.16; }
.circle.c1 { width: 1150px; height: 1150px; }
.circle.c2 { width: 820px; height: 820px; }
/* keep content above the circles */
#nav, header.hero, section, footer, #mobile-menu { position: relative; z-index: 1; }
::selection { background: rgba(160,94,59,0.18); }
a { text-decoration: none; color: inherit; }
button { font-family: var(--body); border: none; background: none; cursor: pointer; color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Page frame — the inset "stock" edge */
body { box-shadow: inset 0 0 0 1px var(--page-edge); }

/* Shared */
.pill {
  display: inline-block;
  background: var(--dark-ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: 100px;
  transition: transform 0.2s, opacity 0.2s;
}
.pill:hover { transform: translateY(-1px); background: #46413a; }
[data-theme="dark"] .pill { background: var(--clay); color: #201d18; }
[data-theme="dark"] .pill:hover { background: #dc9c6f; transform: translateY(-1px); }
[data-theme="dark"] #contact-form .pill { background: var(--clay); color: #201d18; }
.ghost:hover { border-color: var(--clay); color: var(--ink); background: var(--clay-soft); }
[data-theme="dark"] .ghost { border-color: var(--clay); color: var(--clay); }
[data-theme="dark"] .ghost:hover { border-color: var(--clay); color: #201d18; background: var(--clay); }
.ghost {
  display: inline-block;
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 11px 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.ghost:hover { border-color: var(--faint); color: var(--ink); }
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 30px;
}
.sec-label::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--clay);
  flex-shrink: 0;
}
section, header.hero { max-width: var(--maxw); margin: 0 auto; padding: 0 34px 72px; }

/* Nav — full-width bar, content aligned to the page column */
#nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; margin: 0;
  padding: 22px max(34px, calc((100% - var(--maxw)) / 2 + 34px));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.logo { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.logo em { color: var(--clay); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-links a:not(.pill) {
  font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 100px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:not(.pill):hover { color: var(--ink); background: var(--card); }
.nav-links a.pill { font-size: 13px; padding: 9px 20px; margin-left: 8px; }
/* Vintage day/night flip switch */
.flip-switch { margin-left: 8px; padding: 0; display: flex; align-items: center; }
.fs-track {
  position: relative; display: block;
  width: 62px; height: 30px; border-radius: 100px;
  background: #e7ddc9;
  border: 1px solid #d8cdb6;
  box-shadow: inset 0 1px 3px rgba(120,100,60,0.22), inset 0 -1px 0 rgba(255,255,255,0.5);
  transition: background 0.8s ease, border-color 0.8s ease;
}
[data-theme="dark"] .fs-track {
  background: #322b20;
  border-color: #241e15;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5), inset 0 -1px 0 rgba(255,255,255,0.05);
}
.fs-ic {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity 0.6s ease;
}
.fs-sun { left: 8px; stroke: #c99a10; opacity: 0.85; }
.fs-moon { right: 8px; stroke: #9a927f; opacity: 0.5; }
[data-theme="dark"] .fs-sun { opacity: 0.35; stroke: #7a6f52; }
[data-theme="dark"] .fs-moon { opacity: 0.9; stroke: #e0c07a; }
.fs-knob {
  position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(180deg, #fbf6ec, #ece0c8);
  box-shadow: 0 2px 4px rgba(120,90,40,0.35), inset 0 1px 0 rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.75s cubic-bezier(0.68,-0.35,0.32,1.35), background 0.8s ease, box-shadow 0.8s ease;
}
[data-theme="dark"] .fs-knob {
  transform: translateX(32px);
  background: linear-gradient(180deg, #4a4030, #352c1e);
  box-shadow: 0 2px 5px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.12);
}
.fs-knob svg {
  position: absolute; width: 14px; height: 14px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity 0.5s ease, transform 0.75s cubic-bezier(0.68,-0.35,0.32,1.35);
}
.fs-knob-sun { stroke: #c99a10; opacity: 1; transform: rotate(0deg); }
.fs-knob-moon { stroke: #e0c07a; opacity: 0; transform: rotate(-90deg); }
[data-theme="dark"] .fs-knob-sun { opacity: 0; transform: rotate(90deg); }
[data-theme="dark"] .fs-knob-moon { opacity: 1; transform: rotate(0deg); }
#hamburger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
#hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
#mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 8px 34px 20px; background: var(--paper);
  position: sticky; top: 72px; z-index: 49;
}
#mobile-menu a { padding: 13px 0; font-size: 17px; color: var(--muted); }
#mobile-menu.open { display: flex; }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 76px; position: relative; }
.hero-avatar {
  position: absolute;
  top: 60px; right: -22px;
  width: 320px; height: auto;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(60,45,20,0.18));
  animation: avatar-bob 6s ease-in-out infinite;
}
[data-theme="dark"] .hero-avatar { filter: drop-shadow(0 12px 22px rgba(0,0,0,0.45)); }
@keyframes avatar-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}
.hero > .badge, .hero > h1, .hero > .hero-sub, .hero > .hero-btns { position: relative; z-index: 1; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body);
  font-size: 14px; font-weight: 500; color: var(--clay);
  margin-bottom: 24px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 60px);
  font-weight: 600; line-height: 1.05; letter-spacing: 0;
  color: var(--ink); margin-bottom: 22px; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--clay); }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 470px; line-height: 1.7; margin-bottom: 36px; text-wrap: pretty; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Clients */
.clients { display: flex; gap: 9px; flex-wrap: wrap; }
.client {
  background: var(--card); border: 1px solid var(--card-line);
  border-radius: 100px; padding: 9px 18px; font-size: 13px; color: var(--muted);
}
.client.hi { color: var(--ink); }
.clients-note { font-family: var(--body); font-size: 14px; color: var(--faint); margin-top: 18px; }

/* Services */
.svc-tagline { font-family: var(--body); font-size: 18px; color: var(--ink); max-width: 620px; margin: -12px 0 28px; line-height: 1.5; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.svc-grid.three { grid-template-columns: repeat(3, 1fr); }
.svc-card { background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; }
.svc-icon, .ai-icon, .labs-icon {
  width: 40px; height: 40px; border-radius: 12px; background: var(--clay-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.svc-icon svg, .ai-icon svg, .labs-icon svg { width: 19px; height: 19px; stroke: var(--clay); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 9px; }
.svc-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.svc-stack { margin-top: auto; padding-top: 16px; font-size: 12px; color: var(--faint); line-height: 1.7; }

/* Work case notes */
.case {
  display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start;
  padding: 30px 0; border-bottom: 1px solid var(--rule);
}
.case:first-of-type { padding-top: 0; }
.case-img {
  display: block; padding: 0; width: 100%;
  border-radius: 12px; overflow: hidden;
  background: var(--card); border: 1px solid var(--card-line);
  cursor: zoom-in; position: relative;
  transition: transform 0.25s;
}
.case-img:hover { transform: translateY(-3px); }
.case-img::after {
  content: '⤢'; position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; background: rgba(38,35,29,0.55); color: #f4efe4; border-radius: 8px;
  opacity: 0; transition: opacity 0.2s;
}
.case-img:hover::after { opacity: 1; }
.case-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.case-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.case h3 { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--ink); }
.case-meta { font-size: 13px; color: var(--clay); white-space: nowrap; }
.case p { font-size: 15px; color: var(--muted); line-height: 1.8; max-width: 640px; }

/* Independent AI projects */
.labs-intro { font-size: 15px; color: var(--muted); max-width: 480px; margin: -12px 0 26px; line-height: 1.7; }
.labs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.labs-card { background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; }
.labs-card h3 { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 9px; }
.labs-card p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.labs-tag { margin-top: auto; padding-top: 16px; font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--clay); }

/* Experience */
.tl-card { background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; padding: 34px; display: flex; flex-direction: column; gap: 0; }
.tl-row { display: grid; grid-template-columns: 90px 1fr; gap: 18px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.tl-row:first-child { padding-top: 0; }
.tl-row:last-child { border-bottom: none; padding-bottom: 0; }
.tl-year { font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--clay); }
.tl-row strong { display: block; font-size: 15px; color: var(--ink); font-weight: 500; }
.tl-row div span { font-size: 13px; color: var(--faint); }

/* References */
.ref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ref-card { background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; padding: 30px; }
.ref-card p { font-family: var(--body); font-size: 16px; color: var(--ink); line-height: 1.55; margin-bottom: 16px; }
.ref-card cite { font-size: 13px; font-style: normal; color: var(--faint); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; }
.about-card h2 { font-family: var(--display); font-size: 26px; font-weight: 600; color: var(--ink); }
.about-card h2 em { font-style: normal; color: var(--clay); }
.about-card p { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 14px; }
.about-person { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.about-photo { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 1px solid var(--card-line); flex-shrink: 0; }
.about-role { font-size: 14px; color: var(--clay); margin: 4px 0 0; }
.about-social { display: flex; gap: 12px; margin: 22px 0 6px; }
.about-social a { width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 1px solid var(--card-line); display: flex; align-items: center; justify-content: center; transition: background 0.2s, transform 0.2s; }
.about-social a:hover { background: var(--clay-soft); transform: translateY(-2px); }
.about-social svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.about-social a:hover svg { stroke: var(--clay); }
.about-cta { margin-top: 6px; }
.facts-card { gap: 0; }
.fact-row { display: grid; grid-template-columns: 100px 1fr; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.fact-row:first-child { padding-top: 0; }
.fact-row:last-child { border-bottom: none; padding-bottom: 0; }
.fact-k { font-family: var(--body); color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; font-size: 12px; font-weight: 600; }
.fact-row span:not(.fact-k) { color: var(--text); line-height: 1.6; }

/* Contact */
.contact-card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 18px; padding: 44px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.contact-card h2 { font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1.15; color: var(--ink); margin-bottom: 14px; }
.contact-card h2 em { font-style: normal; color: var(--clay); }
.contact-p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.contact-meta { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.contact-meta a { font-size: 14px; color: var(--muted); transition: color 0.2s; width: fit-content; }
.contact-meta a:hover { color: var(--clay); }
.f-label { display: block; font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--faint); margin-bottom: 7px; }
#contact-form input, #contact-form textarea {
  width: 100%; background: var(--field); border: 1px solid var(--card-line);
  border-radius: 10px; padding: 13px 15px; font-size: 15px; font-family: var(--body);
  color: var(--text); margin-bottom: 18px; outline: none; transition: border-color 0.2s, background 0.2s; resize: vertical;
}
#contact-form input::placeholder, #contact-form textarea::placeholder { color: var(--faint); }
#contact-form input:focus, #contact-form textarea:focus { border-color: var(--clay); }
#form-success { display: none; font-size: 15px; color: var(--clay); margin-top: 14px; }
#form-success.show { display: block; }

/* Footer */
footer {
  max-width: var(--maxw); margin: 0 auto; padding: 28px 34px 44px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
}
footer span { font-size: 13px; color: var(--faint); }
.foot-links { display: flex; gap: 22px; }
.foot-links a { font-size: 13px; color: var(--faint); transition: color 0.2s; }
.foot-links a:hover { color: var(--clay); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(30,27,22,0.92);
  display: none; align-items: center; justify-content: center;
  padding: 40px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,0.4); }
#lightbox-x {
  position: absolute; top: 20px; right: 24px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(244,239,228,0.14); font-size: 24px; line-height: 1; color: #f4efe4;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
#lightbox-x:hover { background: rgba(244,239,228,0.28); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1080px) {
  .hero-avatar { width: 230px; top: 30px; right: 0; opacity: 0.9; }
}
@media (max-width: 900px) {
  .svc-grid, .svc-grid.three, .labs-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-card { grid-template-columns: 1fr; }
  .contact-card { gap: 36px; }
  .hero-avatar { display: none; }
}
@media (max-width: 760px) {
  .case { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  #hamburger { display: flex; }
  section, header.hero { padding-left: 22px; padding-right: 22px; padding-bottom: 56px; }
  #nav { padding: 18px 22px; }
  .ref-grid { grid-template-columns: 1fr; }
  .contact-card, .about-card, .tl-card, .facts-card { padding: 28px; }
}


/* v7 conversion polish: benefits explainer + client-color case framing */
.benefits-sec {
  padding-top: 4px;
}
.benefits-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: stretch;
}
.benefit-copy {
  background: var(--dark-ink);
  color: var(--paper);
  border-radius: 18px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
[data-theme="dark"] .benefit-copy {
  background: var(--card);
  border: 1px solid var(--card-line);
  color: var(--ink);
}
.benefit-copy h2 {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.12;
  font-weight: 600;
  color: inherit;
  margin-bottom: 16px;
}
.benefit-copy p {
  color: color-mix(in srgb, currentColor 78%, transparent);
  font-size: 15px;
  line-height: 1.75;
}
.benefit-list {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 18px;
  padding: 28px;
}
.benefit-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.benefit-item:first-child { padding-top: 0; }
.benefit-item:last-child { padding-bottom: 0; border-bottom: none; }
.benefit-item > span {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--clay);
}
.benefit-item strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}
.benefit-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.work-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 28px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 26px;
}
.work-overview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  border: 1px solid var(--rule);
}
.work-overview > div {
  padding: 8px 12px 8px 0;
}
.overview-kicker {
  display: block;
  color: var(--clay);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.work-overview h2 {
  font-family: var(--display);
  color: var(--ink);
  font-size: 24px;
  line-height: 1.16;
  font-weight: 600;
  margin-bottom: 12px;
}
.work-overview p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.case-img {
  border-width: 1px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand, var(--clay)) 24%, transparent);
}
.case-img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand, var(--clay)) 22%, transparent), transparent 42%);
  opacity: 0.42;
}
.case-img::after {
  z-index: 2;
}
.brand-roche { --brand: #0b4ea2; }
.brand-ubs { --brand: #e60000; }
.brand-swisscom { --brand: #0057b8; }
.brand-migros { --brand: #f36f00; }
.brand-genies { --brand: #6b3fd6; }
.brand-netstream { --brand: #007f89; }
.brand-rebels { --brand: #ff6b57; }
.case-img.brand-roche,
.case-img.brand-swisscom {
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 14%, var(--card)), var(--card));
}
.case-img.brand-ubs,
.case-img.brand-migros,
.case-img.brand-genies,
.case-img.brand-netstream,
.case-img.brand-rebels {
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 10%, var(--card)), var(--card));
}
@media (max-width: 900px) {
  .benefits-grid,
  .work-overview {
    grid-template-columns: 1fr;
  }
  .work-overview > div {
    padding: 4px 4px 8px;
  }
}
