/* ==========================================================
   vn-digitaldesign.de — Valesca Neumayer
   Colours, font sizes and spacing live in :root below.
   Change a value once and it updates everywhere.
   ========================================================== */

@font-face { font-family: "Barlow"; font-weight: 300; font-display: swap; src: url("../fonts/barlow-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 300; font-style: italic; font-display: swap; src: url("../fonts/barlow-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 800; font-display: swap; src: url("../fonts/barlow-latin-800-normal.woff2") format("woff2"); }

:root {
  /* type: three main sizes + one small size for labels */
  --t1: clamp(38px, 5vw, 72px);   /* section titles, pull quotes */
  --t2: clamp(23px, 2.3vw, 32px); /* card titles */
  --t3: 17px;                     /* body text, buttons */
  --t4: 14px;                     /* labels, badges, small print */

  /* colour */
  --lime: #e7ff58;
  --ink: #171717;
  --paper: #ffffff;
  --soft: #f5f5f2;
  --mute: #66665f;
  --line: #e3e3de;
  --error: #b42318;

  /* layout */
  --gutter: clamp(20px, 5vw, 80px);
  --max: 1320px;
  --section: clamp(80px, 10vw, 140px);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Barlow", system-ui, sans-serif; font-weight: 300; font-size: var(--t3); line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.t1 { font-size: var(--t1); letter-spacing: -0.035em; }
.t2 { font-size: var(--t2); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--lime); padding: 8px 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: var(--t4); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin: 0 0 18px; }
.eyebrow.center { text-align: center; }

/* ---------- buttons: one system for the whole site ----------
   primary   = dark fill -> hover: lime fill
   secondary = outline   -> hover: dark fill
   nav pill  = lime fill -> hover: outline                   */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 var(--t3)/1.2 "Barlow", sans-serif; text-decoration: none; padding: 14px 26px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--lime); color: var(--ink); }
.btn-2 { background: transparent; color: var(--ink); }
.btn-2:hover { background: var(--ink); color: #fff; }
.btn-ic svg { width: 18px; height: 18px; fill: currentColor; }
.btn .ext { font-weight: 400; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* text links (nav, footer) share one hover: underline grows in */
.nav-link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 2px; transition: background-size .25s; }
.nav-link:hover { background-size: 100% 1.5px; }
.back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; }
.back::before { content: "←"; transition: transform .2s; }
.back:hover::before { transform: translateX(-4px); }
.backbar { padding-top: 28px; padding-bottom: 8px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: inline-flex; }
.logo { height: 30px; width: auto; fill: var(--ink); }
.nav { display: flex; gap: clamp(16px, 3vw, 36px); align-items: center; font-weight: 400; }
.pill { text-decoration: none; background: var(--lime); border: 1.5px solid var(--lime); padding: 8px 18px; border-radius: 999px; font-weight: 600; transition: background .2s, border-color .2s; }
.pill:hover { background: transparent; border-color: var(--ink); }
@media (max-width: 560px) { .hide-sm { display: none; } }

/* ---------- hero ---------- */
.hero2 { padding: clamp(40px, 6vw, 90px) 0 0; overflow: hidden; }
.hero2-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t4); font-weight: 400; color: #3a3a3a; background: var(--soft); border-radius: 999px; padding: 3px 11px 3px 9px; margin-bottom: 26px; line-height: 1.6; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #2fbf5b; animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47,191,91,.45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(47,191,91,0); } }
.hero2 h1 { line-height: 1; }
.hero2 h1 b { font-weight: 800; letter-spacing: -0.045em; }
.mark { position: relative; font-weight: 800; letter-spacing: -0.045em; white-space: nowrap; z-index: 0; }
.mark::before { content: ""; position: absolute; left: -.06em; right: -.08em; bottom: .06em; height: .42em; background: var(--lime); border-radius: .12em; z-index: -1; transform-origin: left; transform: skewX(-8deg); animation: sweep .9s .35s cubic-bezier(.6,.1,.2,1) both; }
@keyframes sweep { from { transform: skewX(-8deg) scaleX(0); } to { transform: skewX(-8deg) scaleX(1); } }
.hero2-sub { color: #3a3a3a; max-width: 34em; margin: 26px 0 32px; }
.shapes { position: relative; aspect-ratio: 1 / 1.05; max-width: 500px; width: 100%; justify-self: end; }
.sh { position: absolute; display: block; }
.sh-circ { width: 56%; aspect-ratio: 1; border-radius: 50%; background: var(--lime); right: 4%; top: 6%; animation: float 9s ease-in-out infinite; }
.sh-tri { width: 50%; left: 2%; bottom: 8%; fill: none; stroke: var(--ink); stroke-width: 1.6; overflow: visible; animation: float 11s ease-in-out infinite reverse; }
.sh-sq { width: 30%; aspect-ratio: 1; right: 12%; bottom: 4%; background: var(--ink); border-radius: 6px; animation: spin 26s linear infinite; }
.badge { position: absolute; width: 34%; left: 6%; top: 4%; animation: spin 30s linear infinite; }
.badge text { font: 600 15.5px "Barlow", sans-serif; letter-spacing: .22em; fill: var(--ink); }
@keyframes float { 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.services2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; border-top: 1px solid var(--line); margin-top: clamp(50px, 7vw, 100px); padding: 40px 0 clamp(60px, 8vw, 96px); }
.services2 > div { display: flex; gap: 18px; align-items: flex-start; }
.services2 svg { width: 48px; height: 44px; flex: none; }
.services2 h3 { font-weight: 600; font-size: var(--t3); letter-spacing: 0; margin: 4px 0 4px; }
.services2 p { margin: 0; color: var(--mute); }
@media (max-width: 860px) {
  .hero2-grid { grid-template-columns: 1fr; }
  .shapes { max-width: 220px; justify-self: center; order: -1; }
  .services2 { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- about ---------- */
.about { background: var(--soft); padding: var(--section) 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-text h2 { margin-bottom: 32px; }
.about-text p { color: #333; max-width: 34em; }
.about-text .btns { margin-top: 32px; }
.about-photo { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- what you can expect (lime band) ---------- */
.expect { background: var(--lime); padding: var(--section) 0; }
.ex-list { list-style: none; padding: 0; margin: clamp(40px, 5vw, 72px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.ex-list li { background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; }
.ex-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--lime); font-weight: 800; font-size: var(--t4); }
.ex-list h3 { margin: 24px 0 14px; font-weight: 600; }
.ex-list p { margin: 0; color: #333; }
@media (max-width: 900px) { .ex-list { grid-template-columns: 1fr; } .ex-list h3 br { display: none; } }

/* ---------- section head ---------- */
.sh-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.sh-head h2 { margin-bottom: 18px; }
.sh-head p { color: var(--mute); margin: 0; max-width: 36em; }
.sh-row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; }
.sh-row h2 { margin: 0; }

/* ---------- selected work ---------- */
.work { padding: var(--section) 0; }
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 5vw, 72px) clamp(24px, 3vw, 48px); }
.cs { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.cs-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--soft); }
.cs-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.cs:hover .cs-img img { transform: scale(1.04); }
.cs-txt { padding-top: 24px; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.cs-meta { font-size: var(--t4); color: var(--mute); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.cs-num { font-weight: 800; color: var(--ink); background: var(--lime); border-radius: 6px; padding: 1px 8px; }
.cs h3 { margin-bottom: 12px; }
.cs-desc { color: #444; margin: 0 0 24px; max-width: 34em; }
.cs .btn { margin-top: auto; }
.cs:hover .btn-2 { background: var(--ink); color: #fff; }
@media (max-width: 820px) { .cases { grid-template-columns: 1fr; } }

/* scroll-in animation */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease-out, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .cases .reveal:nth-child(2n) { transition-delay: .12s; }
.js .ex-list .reveal:nth-child(2) { transition-delay: .1s; }
.js .ex-list .reveal:nth-child(3) { transition-delay: .2s; }

/* ---------- more projects ---------- */
.more { padding: 0 0 var(--section); }
.more .wrap { }
.more-inner { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); }
.stats { margin: 0; color: var(--mute); }
.stats b { color: var(--ink); }
.stats span { margin: 0 4px; }
.xp-grid { columns: 3 300px; column-gap: 20px; }
.xp-c { break-inside: avoid; background: var(--soft); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.xp-c header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.xp-c h3 { font-size: var(--t3); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.yr { font-size: var(--t4); color: var(--mute); white-space: nowrap; }
.xp-c ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.xp-c li { display: grid; padding-top: 12px; border-top: 1px solid var(--line); }
.xp-c li:first-child { padding-top: 0; border-top: 0; }
.pj { line-height: 1.35; font-weight: 400; }
.pm { font-size: var(--t4); color: var(--mute); }

/* ---------- trusted by ---------- */
.trusted { background: var(--soft); padding: var(--section) 0; }
.logo-grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.logo-grid li { aspect-ratio: 2 / 1; box-shadow: inset -1px -1px 0 var(--line); position: relative; }
.logo-grid li:nth-child(6n) { box-shadow: inset 0 -1px 0 var(--line); }
.logo-grid li:nth-last-child(-n+6) { box-shadow: inset -1px 0 0 var(--line); }
.logo-grid li:last-child { box-shadow: none; }
.logo-grid li > a, .logo-grid li > span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 12px; }
.logo-grid img { opacity: .75; transition: opacity .2s, transform .3s; }
.logo-grid a:hover img { opacity: 1; transform: scale(1.06); }
.logo-grid a::after { content: "↗"; position: absolute; top: 8px; right: 12px; font-size: var(--t4); color: var(--mute); opacity: 0; transition: opacity .2s; }
.logo-grid a:hover::after { opacity: 1; }
@media (max-width: 900px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-grid li, .logo-grid li:nth-child(6n), .logo-grid li:nth-last-child(-n+6) { box-shadow: inset -1px -1px 0 var(--line); }
  .logo-grid img { transform: scale(.85); }
}
.refs-cta { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; background: var(--paper); border-radius: var(--radius); padding: 24px 28px; }
.refs-cta p { margin: 0; color: #3a3a3a; }
.refs-cta b { color: var(--ink); }

/* ---------- client feedback ---------- */
.feedback { padding: var(--section) 0; }
.tq-stage { display: grid; }
.tq { grid-area: 1 / 1; margin: 0; }
.feedback.ready .tq { opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .35s, transform .45s cubic-bezier(.2,.7,.2,1), visibility 0s .45s; }
.feedback.ready .tq.on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .45s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.feedback:not(.ready) .tq { grid-area: auto; }
.feedback:not(.ready) .tq + .tq { margin-top: 64px; }
.tq blockquote { margin: 0; }
.tq-pull { font-size: var(--t1); font-weight: 300; line-height: 1.06; letter-spacing: -0.035em; margin: 0 0 28px; max-width: 17em; text-wrap: balance; }
.tq-full { color: var(--mute); max-width: 44em; margin: 0 0 32px; }
.tq figcaption { display: flex; align-items: center; gap: 14px; }
.tq figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.tq figcaption span { display: grid; line-height: 1.35; }
.tq figcaption small { color: var(--mute); font-size: var(--t3); }
.tq-nav { display: flex; align-items: center; gap: 24px; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.tq-dots { display: flex; gap: 10px; }
.tdot { width: 44px; height: 44px; border-radius: 50%; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .45; transition: opacity .2s, border-color .2s; }
.tdot img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.tdot:hover { opacity: .8; }
.tdot[aria-current="true"] { opacity: 1; border-color: var(--ink); }
.tq-count { color: var(--mute); margin-left: auto; font-variant-numeric: tabular-nums; }
.tq-count b { color: var(--ink); }
.tq-arrows { display: flex; gap: 10px; }
.tq-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 400 20px/1 "Barlow", sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.tq-btn:hover { background: var(--ink); color: #fff; }
@media (max-width: 560px) { .tq-dots { display: none; } .tq-count { margin-left: 0; } .tq-arrows { margin-left: auto; } }

/* ---------- contact ---------- */
.contact { padding: var(--section) 0; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.contact-intro h2 { margin-bottom: 24px; }
.contact-intro p { color: #3a3a3a; max-width: 28em; }
.email-line { display: grid; gap: 2px; margin-top: 28px; }
.email-line span { font-size: var(--t4); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.email-line b { user-select: all; }
.cform { display: grid; gap: 20px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.f { display: grid; gap: 6px; align-content: start; min-width: 0; border: 0; padding: 0; margin: 0; }
.f label, .f legend { font-weight: 600; padding: 0; }
.f legend span { font-weight: 300; color: var(--mute); margin-left: 6px; }
.f input, .f textarea { font: 300 var(--t3)/1.5 "Barlow", system-ui, sans-serif; color: var(--ink); background: var(--soft); border: 1.5px solid transparent; border-radius: 12px; padding: 12px 14px; width: 100%; transition: border-color .2s, background .2s; }
.f textarea { resize: vertical; min-height: 130px; }
.f input:focus, .f textarea:focus { outline: none; background: #fff; border-color: var(--ink); }
.f [aria-invalid="true"] { border-color: var(--error); }
.err { display: none; margin: 2px 0 0; color: var(--error); font-size: var(--t4); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.err.show { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chips label { position: relative; font-weight: 400; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 16px; border: 1.5px solid var(--ink); border-radius: 999px; transition: background .2s; user-select: none; }
.chips label:hover span { background: var(--soft); }
.chips input:checked + span { background: var(--lime); font-weight: 600; }
.chips input:checked + span::before { content: "✓ "; }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.f-note { font-size: var(--t4); color: var(--mute); margin: 0; }
.cform .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .f-row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; padding-top: 32px; padding-bottom: 32px; }
.f-logo .logo { height: 22px; display: block; }
.f-copy { color: var(--mute); }
.f-legal { display: flex; gap: 28px; font-weight: 400; }
.f-social { margin-left: auto; }
.soc { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; transition: background .2s, color .2s; }
.soc svg { width: 20px; height: 20px; fill: currentColor; }
.soc:hover { background: var(--ink); color: #fff; }
@media (max-width: 620px) { .f-social { margin-left: 0; } }

/* ==========================================================
   Case study pages
   ========================================================== */
.cs-hero { padding: clamp(32px, 5vw, 64px) 0 0; }
.cs-hero h1 { max-width: 16em; line-height: 1.04; }
.cs-lead { font-size: var(--t2); font-weight: 300; line-height: 1.3; color: #3a3a3a; max-width: 30em; margin: 24px 0 40px; letter-spacing: -0.01em; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0 0 clamp(40px, 5vw, 64px); padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--t4); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.facts dd { margin: 0; }
.cs-cover { border-radius: 24px; overflow: hidden; background: var(--soft); aspect-ratio: 16 / 10; }
.cs-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr 1fr; } }

.cs-sec { padding: clamp(56px, 7vw, 100px) 0 0; }
.cs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cs-card { background: var(--soft); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.cs-card p { margin: 0; }
.cs-card.dark { background: var(--ink); color: #fff; }
.cs-card.dark .eyebrow { color: var(--lime); }
@media (max-width: 820px) { .cs-two { grid-template-columns: 1fr; } }
.cs-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); }
.cs-label { position: sticky; top: 24px; align-self: start; display: flex; align-items: baseline; gap: 14px; }
.cs-n { font-size: var(--t4); font-weight: 800; background: var(--lime); border-radius: 6px; padding: 1px 8px; }
.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.bullets li { padding-left: 24px; position: relative; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.bullets b { display: block; font-weight: 600; }
@media (max-width: 820px) { .cs-row { grid-template-columns: 1fr; } .cs-label { position: static; } }
.fig { margin: clamp(32px, 4vw, 48px) 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.fig a { display: block; cursor: zoom-in; padding: clamp(8px, 1.5vw, 20px); }
.fig figcaption { font-size: var(--t4); color: var(--mute); padding: 0 20px 16px; }
.fig.narrow { max-width: 560px; }
.fig.small { max-width: 240px; }

.cs-next { padding: clamp(80px, 9vw, 130px) 0 var(--section); }
.next-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; text-decoration: none; color: inherit; background: var(--soft); border-radius: 24px; padding: clamp(24px, 3vw, 40px); }
.next-text h2 { margin-bottom: 14px; }
.next-text p { color: #3a3a3a; margin: 0 0 12px; }
.next-text .next-meta { font-size: var(--t4); color: var(--mute); margin-bottom: 24px; }
.next-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: #fff; }
.next-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.next-card:hover .next-img img { transform: scale(1.04); }
.next-card:hover .btn { background: var(--lime); color: var(--ink); }
@media (max-width: 820px) { .next-card { grid-template-columns: 1fr; } .next-img { order: -1; } }

.lb { position: fixed; inset: 0; background: rgba(15,15,15,.94); z-index: 50; display: none; overflow: auto; padding: 64px 16px 24px; cursor: zoom-out; }
.lb.open { display: block; }
.lb img { margin: 0 auto; max-width: min(2000px, 100%); border-radius: 8px; background: #fff; }
.lb .btn { position: fixed; top: 12px; right: 16px; background: var(--lime); color: var(--ink); border-color: var(--lime); padding: 8px 18px; }

/* ---------- legal + simple pages ---------- */
.legal { max-width: 760px; padding-top: clamp(24px, 4vw, 48px); padding-bottom: var(--section); }
.legal h1 { font-size: var(--t1); margin-bottom: 40px; }
.legal h2 { font-weight: 600; font-size: var(--t3); letter-spacing: 0; margin: 36px 0 8px; }
.legal p, .legal li { color: #333; }
.todo { background: var(--lime); padding: 0 4px; font-weight: 600; }
.note { border-left: 4px solid var(--lime); background: var(--soft); padding: 16px 20px; margin-bottom: 40px; }
.simple { padding: var(--section) 0; }
.simple h1 { margin-bottom: 24px; }
.simple p { color: #3a3a3a; margin-bottom: 32px; }

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

/* =========== v7 =========== */
/* case studies: one per row, big image, text below; image and button hover separately */
.cases { grid-template-columns: 1fr; gap: clamp(64px, 8vw, 120px); }
.cs { display: block; }
.cs-img { display: block; aspect-ratio: 16 / 8; border-radius: 24px; }
.cs-img img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.cs:hover .cs-img img { transform: none; }
.cs-img:hover img { transform: scale(1.03); }
.cs:hover .btn-2 { background: transparent; color: var(--ink); }
.cs .btn-2:hover { background: var(--ink); color: #fff; }
.cs-txt { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 16px clamp(24px, 5vw, 80px); padding-top: 28px; align-items: start; }
.cs h3 a { text-decoration: none; }
.cs h3 a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.cs-desc { margin-bottom: 20px; }
@media (max-width: 820px) { .cs-txt { grid-template-columns: 1fr; } .cs-img { aspect-ratio: 16 / 10; } }

/* more projects: typographic index, no cards */
.xp-grid { columns: 3 280px; column-gap: clamp(32px, 4vw, 64px); }
.xp-c { background: none; border-radius: 0; padding: 18px 0 8px; margin-bottom: 24px; border-top: 1.5px solid var(--ink); }
.xp-c li { border-top: 0; padding-top: 0; }
.xp-c ul { gap: 14px; }

/* trusted by: open, evenly aligned logo grid */
.trusted { background: var(--paper); border-top: 1px solid var(--line); }
.logo-grid { background: none; border-radius: 0; overflow: visible; grid-template-columns: repeat(6, 1fr); gap: 8px 24px; margin-top: 0; }
.logo-grid li, .logo-grid li:nth-child(6n), .logo-grid li:nth-last-child(-n+6) { aspect-ratio: auto; height: 104px; box-shadow: none; }
.logo-grid li > a, .logo-grid li > span { padding: 0; }
.logo-grid img { opacity: .7; transform: none; }
.logo-grid a:hover img { opacity: 1; transform: none; }
.logo-grid a::after { top: 18px; right: 8px; }
.refs-cta { background: var(--soft); margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 900px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } .logo-grid li, .logo-grid li:nth-child(6n), .logo-grid li:nth-last-child(-n+6) { height: 84px; box-shadow: none; } .logo-grid img { transform: scale(.85); } }

/* client feedback: dark, distinct */
.feedback { background: var(--ink); color: #fff; }
.feedback .eyebrow { color: var(--lime); margin: 0; }
.tq-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }
.tq-ctrl { display: flex; align-items: center; gap: 20px; }
.tq-count { color: rgba(255,255,255,.55); margin: 0; }
.tq-count b { color: #fff; }
.tq-btn { border-color: rgba(255,255,255,.6); color: #fff; }
.tq-btn:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.tq-full { color: rgba(255,255,255,.62); }
.tq figcaption small { color: rgba(255,255,255,.55); }
.tq-pull { color: #fff; }
.contact { border-top: 0; }

/* footer LinkedIn */
.soc { width: auto; height: auto; border: 0; border-radius: 0; background: none; transition: transform .2s; }
.soc svg { width: 34px; height: 34px; }
.soc:hover { background: none; color: var(--ink); transform: scale(1.12); }

/* case pages */
.back { font-weight: 400; }
.facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.9fr); gap: 20px 28px; }
.facts dt { margin-bottom: 2px; }
.next-card { transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s; }
.next-card:hover { transform: scale(1.015); box-shadow: 0 24px 50px -30px rgba(0,0,0,.35); }
.next-card:hover .next-img img { transform: none; }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr 1fr; } }

/* =========== v8 =========== */
/* buttons: primary hover = lime text, secondary hover = lime fill */
.btn:hover { background: var(--ink); color: var(--lime); }
.btn-2:hover, .cs .btn-2:hover { background: var(--lime); color: var(--ink); border-color: var(--ink); }
.next-card:hover .btn { background: var(--ink); color: var(--lime); }

/* services row: equal space above and below */
.services2 { padding: clamp(40px, 5vw, 64px) 0; margin-top: clamp(50px, 7vw, 100px); }

/* how I work: clearer scroll-in */
.js .ex-list .reveal { transform: translateY(56px) scale(.97); transition: opacity .8s ease-out, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .ex-list .reveal.in { transform: none; }
.js .ex-list .reveal .ex-n { transform: scale(.4); transition: transform .6s .35s cubic-bezier(.3,1.6,.5,1); }
.js .ex-list .reveal.in .ex-n { transform: none; }

/* selected work: stacking cards */
.cases { display: grid; grid-template-columns: 1fr; gap: 28px; }
.cs { position: sticky; top: calc(28px + var(--i) * 18px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; background: var(--soft); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3vw, 44px); box-shadow: 0 -12px 40px -28px rgba(0,0,0,.25); }
.cs-txt { display: flex; flex-direction: column; align-items: flex-start; padding: 0; }
.cs-img { aspect-ratio: 16 / 10; border-radius: 18px; background: #fff; }
.cs-desc { margin-bottom: 28px; }
@media (max-width: 860px) { .cs { position: static; grid-template-columns: 1fr; } .cs-img { order: -1; } }

/* more projects: no lines, spacing does the grouping */
.xp-c { border-top: 0; padding: 0; margin-bottom: 40px; }
.xp-c header { margin-bottom: 10px; padding-bottom: 0; }
.xp-c ul { gap: 10px; }

/* trusted by: logos + CTA in one soft box */
.logo-box { background: var(--soft); border-radius: 28px; padding: clamp(24px, 4vw, 56px); }
.refs-cta { background: none; padding: 28px 0 0; margin-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); border-radius: 0; }

/* feedback: directional slide */
.feedback { overflow: hidden; }
.feedback.ready .tq { transform: translateX(0); transition: opacity .4s, transform .5s cubic-bezier(.2,.7,.2,1), visibility 0s .5s; }
.feedback.ready .tq.on { transition: opacity .4s, transform .5s cubic-bezier(.2,.7,.2,1), visibility 0s; }

/* case pages: challenge + solution stacked, full width */
.cs-stack { display: grid; gap: 20px; }
.cs-stack .cs-card { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 12px clamp(24px, 5vw, 80px); }
.cs-stack .cs-card .eyebrow { margin: 4px 0 0; }
@media (max-width: 820px) { .cs-stack .cs-card { grid-template-columns: 1fr; } }

/* =========== v9 =========== */
/* nav fits on phones, About included */
@media (max-width: 560px) {
  .nav { gap: 16px; }
  .pill { padding: 7px 14px; }
  .logo { height: 26px; }
}
/* hero visual only on larger screens */
@media (max-width: 860px) { .shapes { display: none; } }

/* more projects: year sits right next to the company */
.xp-c header { justify-content: flex-start; gap: 10px; margin-bottom: 8px; }
.xp-c { margin-bottom: 32px; }
.xp-c ul { gap: 8px; }
.pj { line-height: 1.3; }
@media (max-width: 700px) {
  .xp-c { margin-bottom: 26px; }
  .xp-c header { flex-wrap: wrap; row-gap: 0; }
}

/* back link smaller */
.back { font-size: var(--t4); }

/* case pages: calmer solution box, centred section labels */
.cs-card.dark { background: var(--soft); color: var(--ink); box-shadow: inset 4px 0 0 var(--lime); }
.cs-card.dark .eyebrow { color: var(--ink); }
.cs-label { align-items: center; }

/* =========== v10 =========== */
/* CTA stands out as a white card inside the grey logo box */
.refs-cta { background: var(--paper); border-top: 0; border-radius: 18px; padding: 22px 26px; box-shadow: 0 10px 30px -22px rgba(0,0,0,.25); }
/* hover note for inactive companies */
.lg-note { position: relative; cursor: help; }
.lg-note .tip { position: absolute; left: 50%; bottom: calc(50% + 30px); transform: translate(-50%, 6px); background: var(--ink); color: #fff; font-size: var(--t4); line-height: 1.3; white-space: nowrap; padding: 6px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.lg-note .tip::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); }
.lg-note:hover .tip, .lg-note:focus .tip { opacity: 1; transform: translate(-50%, 0); }
.lg-note:hover img { opacity: 1; }

/* =========== v11 =========== */
/* case cards: number sits on the title line, client info below the text */
.cs-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.cs-head .cs-num { flex: none; font-size: var(--t4); line-height: 1; padding: 6px 9px; margin-top: .35em; }
.cs-head h3 { margin: 0; }
.cs-desc { margin: 0 0 10px; }
.cs-meta { margin: 0 0 26px; }
/* phones: bigger headline, lighter buttons */
@media (max-width: 560px) {
  .hero2 h1 { font-size: 46px; }
  .hero2 .btn { padding: 12px 20px; }
  .cs-head .cs-num { margin-top: .25em; }
}

/* =========== v12 =========== */
/* homepage: link to the full work page */
.all-work { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.all-work p { margin: 0; color: var(--mute); }
.all-work b { color: var(--ink); }

/* testimonials: horizontal card track with peeking cards */
.feedback { background: var(--soft); color: var(--ink); overflow: hidden; padding: var(--section) 0; }
.fb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.fb-head .sh-head, .fb-head .tq-arrows { margin-bottom: clamp(32px, 4vw, 48px); }
.fb-head .tq-arrows { display: flex; gap: 10px; }
.feedback .tq-btn { border-color: var(--ink); color: var(--ink); }
.feedback .tq-btn:hover { background: var(--lime); border-color: var(--ink); color: var(--ink); }
.feedback .tq-btn:disabled { opacity: .3; cursor: default; background: transparent; }
.qtrack { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding: 4px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 8px; scrollbar-width: none; }
.qtrack::-webkit-scrollbar { display: none; }
.qc { flex: 0 0 min(620px, 86vw); scroll-snap-align: start; margin: 0; background: var(--paper); border-radius: 24px; padding: clamp(26px, 3vw, 44px); display: flex; flex-direction: column; }
.qc-mark { width: 40px; height: 30px; fill: var(--lime); margin-bottom: 22px; flex: none; }
.qc blockquote { margin: 0 0 28px; flex: 1; }
.qc-pull { font-size: var(--t2); font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 14px; }
.qc-rest { color: var(--mute); margin: 0; }
.qc figcaption { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.qc figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.qc figcaption span { display: grid; line-height: 1.35; }
.qc figcaption small { color: var(--mute); font-size: var(--t4); }
@media (max-width: 560px) { .fb-head .tq-arrows { display: none; } }

/* work page */
.wp-hero { padding: clamp(48px, 7vw, 100px) 0 clamp(32px, 4vw, 56px); }
.wp-hero h1 { margin-bottom: 20px; }
.wp-hero p { color: var(--mute); max-width: 36em; margin: 0; }
.wp-cases { padding-bottom: var(--section); }
.wp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 5vw, 72px) clamp(24px, 3vw, 48px); }
.wc { display: flex; flex-direction: column; align-items: flex-start; }
.wc-img { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--soft); margin-bottom: 24px; }
.wc-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.wc-img:hover img { transform: scale(1.03); }
.wc h3 a { text-decoration: none; }
.wc h3 a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.wc .btn { margin-top: auto; }
@media (max-width: 820px) { .wp-grid { grid-template-columns: 1fr; } }

.archive { padding-bottom: var(--section); }
.ar-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: 28px; }
.ar-cols, .ar-list li { display: grid; grid-template-columns: 90px minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.3fr); gap: 20px; }
.ar-cols { font-size: var(--t4); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.ar-list { list-style: none; margin: 0; padding: 0; }
.ar-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ar-y { font-weight: 600; }
.ar-p { font-weight: 400; }
.ar-c, .ar-r { color: var(--mute); }
@media (max-width: 760px) {
  .ar-cols { display: none; }
  .ar-list li { display: block; padding: 12px 0; }
  .ar-y:empty { display: none; }
  .ar-list li.new-year { padding-top: 28px; }
  .ar-list li.new-year .ar-y { display: block; font-size: var(--t2); margin-bottom: 8px; }
  .ar-p { display: block; }
  .ar-c, .ar-r { font-size: var(--t4); }
  .ar-c::after { content: " · "; }
}
.wp-cta { padding-bottom: var(--section); }
.wp-cta .refs-cta { background: var(--soft); box-shadow: none; }

/* =========== v13 =========== */
/* case cards: number moves above the title, everything left-aligned */
.cs-eyebrow { font-size: var(--t4); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin: 0 0 10px; display: inline-flex; align-items: center; gap: 8px; }
.cs-eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1.5px var(--ink); }
.cs-title { margin: 0 0 14px; }
.cs-title a { text-decoration: none; }
.cs-title a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }

/* case pages: solution box in lime */
.cs-card.dark { background: var(--lime); box-shadow: none; color: var(--ink); }
.cs-card.dark .eyebrow { color: var(--ink); }

/* tactile press feedback on all buttons (most noticeable on phones) */
.btn, .pill, .tq-btn, .chips span, .soc { -webkit-tap-highlight-color: transparent; }
.btn:active, .pill:active, .tq-btn:active, .soc:active { transform: scale(.95); transition: transform .08s; }
.chips label:active span { transform: scale(.95); }
.btn, .pill, .tq-btn, .chips span { transition: background .2s, color .2s, border-color .2s, transform .25s cubic-bezier(.3,1.6,.5,1); }
@media (hover: none) {
  .btn:active { background: var(--lime); color: var(--ink); }
  .btn-2:active { background: var(--lime); color: var(--ink); }
}

/* =========== v14: all projects page =========== */
.wp-hero { padding-top: clamp(24px, 4vw, 48px); }
.ar-head { justify-content: flex-end; margin-bottom: 16px; }
.ar-cols { grid-template-columns: 90px minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 32px; }
.ar-list li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 20px; padding: 0; }
.ar-y { padding: 14px 0; }
.ar-row, .ar-case { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 32px; gap: 20px; padding: 14px 0; align-items: center; }
.ar-case { text-decoration: none; color: inherit; margin: 0 -14px; padding: 14px; border-radius: 12px; background: var(--soft); transition: background .2s; }
.ar-case:hover { background: var(--lime); }
.ar-case .ar-p { font-weight: 600; }
.ar-case:hover .ar-c, .ar-case:hover .ar-r { color: var(--ink); }
.tag { display: inline-block; margin-left: 10px; font-size: var(--t4); font-weight: 600; background: var(--lime); border: 1px solid var(--ink); border-radius: 999px; padding: 0 9px; vertical-align: 2px; }
.ar-case:hover .tag { background: var(--paper); }
.ar-go { font-size: var(--t2); line-height: 1; transition: transform .2s; justify-self: end; }
.ar-case:hover .ar-go { transform: translateX(4px); }
.ar-case:active { transform: scale(.98); }
@media (max-width: 760px) {
  .ar-list li { display: block; }
  .ar-y { padding: 0; }
  .ar-row, .ar-case { display: block; padding: 12px 0; }
  .ar-case { margin: 6px -12px; padding: 14px 12px; }
  .ar-p { display: block; }
  .ar-go { display: none; }
  .tag { margin: 6px 0 0; display: table; }
}

/* =========== v16 =========== */
/* services row: more air between items */
.services2 > div { gap: 22px; }
@media (max-width: 860px) { .services2 { gap: 44px; } }

/* homepage: just the button under the case studies */
.all-work { border-top: 0; padding-top: 0; justify-content: flex-start; }

/* all projects: count left, no rules around case-study rows, tighter end */
.ar-head { justify-content: flex-start; }
.ar-list li:has(.ar-case), .ar-list li:has(+ li .ar-case), .ar-list li:last-child { border-bottom: 0; }
.archive { padding-bottom: clamp(32px, 4vw, 56px); }

/* =========== v17 =========== */
/* case cards rise in like How I work */
.js .cases .reveal { opacity: 0; transform: translateY(56px) scale(.97); transition: opacity .8s ease-out, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: 0s; }
.js .cases .reveal.in { opacity: 1; transform: none; }

/* tertiary link: text + underline */
.link-3 { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; text-decoration-color: var(--lime); transition: text-decoration-color .2s; }
.link-3::after { content: "→"; text-decoration: none; display: inline-block; transition: transform .2s; }
.link-3:hover { text-decoration-color: var(--ink); }
.link-3:hover::after { transform: translateX(4px); }

/* case pages: intro text same size as body */
.cs-lead { font-size: var(--t3); line-height: 1.6; max-width: 40em; margin: 20px 0 36px; }

/* =========== v18: review fixes =========== */
/* header stays reachable on long pages */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.cs { top: calc(96px + var(--i) * 18px); }
.cs-label { top: 100px; }
/* tidy footer on phones */
@media (max-width: 620px) {
  .site-footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 20px 16px; align-items: center; }
  .f-copy { grid-column: 2; font-size: var(--t4); }
  .f-social { grid-column: 3; grid-row: 1; margin: 0; }
  .f-legal { grid-column: 1 / -1; grid-row: 2; }
}

/* =========== v19: language switch + merged client section =========== */
.lang { text-decoration: none; font-size: var(--t4); font-weight: 600; letter-spacing: .06em; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 10px; line-height: 1; transition: border-color .2s, background .2s; }
.lang:hover { border-color: var(--ink); }
.lang:active { transform: scale(.95); }
@media (max-width: 560px) { .nav { gap: 12px; } .pill { padding: 7px 12px; } .lang { padding: 5px 8px; } }
@media (max-width: 370px) { .nav .nav-link[href$="#about"] { display: none; } }

.trusted { padding-bottom: var(--section); }
.trusted .fb-head { margin-top: clamp(56px, 7vw, 96px); }
.trusted .fb-head h3 { margin-bottom: clamp(24px, 3vw, 36px); }
.trusted .fb-head .tq-arrows { margin-bottom: clamp(24px, 3vw, 36px); }
.trusted .qc { background: var(--soft); }
.trusted .refs-cta { margin-top: clamp(40px, 5vw, 64px); background: var(--soft); box-shadow: none; }
.trusted .logo-box { padding-bottom: clamp(24px, 4vw, 56px); }
.nav a { white-space: nowrap; }
@media (max-width: 420px) {
  .nav { gap: 10px; font-size: 15px; }
  .pill { padding: 6px 11px; }
  .logo { height: 24px; }
  :lang(de) .hero2 h1 { font-size: 38px; }
}

/* =========== v21 =========== */
/* quiet language switch, far right */
.lang-sw { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t4); font-weight: 600; letter-spacing: .04em; margin-left: 4px; }
.lang-sw.rev { flex-direction: row-reverse; }
.lang-sw .cur { color: var(--ink); }
.lang-sw .sep { color: var(--line); font-weight: 400; }
.lang-sw .lang { border: 0; padding: 0; border-radius: 0; color: var(--mute); font-weight: 400; text-decoration: none; }
.lang-sw .lang:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 420px) { .lang-sw { gap: 4px; margin-left: 0; } }

/* clients: quotes first (white cards), then one grey box with logos + CTA */
.trusted { padding-top: var(--section); }
.trusted .fb-head { margin-top: 0; }
.trusted .fb-head h2 { margin-bottom: clamp(32px, 4vw, 48px); }
.trusted .fb-head .tq-arrows { margin-bottom: clamp(32px, 4vw, 48px); }
.trusted .qc { background: var(--paper); border: 1px solid var(--line); }
.trusted .logo-box { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(32px, 4vw, 48px); }
.trusted .logo-box .eyebrow { margin-bottom: 8px; }
.trusted .refs-cta { background: var(--paper); box-shadow: 0 10px 30px -22px rgba(0,0,0,.25); margin-top: clamp(24px, 3vw, 40px); }

/* "See all projects": highlighter underline like the hero, arrow attached */
.link-3 { display: inline; gap: 0; font-weight: 600; text-decoration: none; background: linear-gradient(var(--lime), var(--lime)) 0 88% / 100% .42em no-repeat; padding: 0 2px; transition: background-size .25s; }
.link-3::after { content: " →"; display: inline; transition: none; }
.link-3:hover { background-size: 100% 100%; }
.link-3:hover::after { transform: none; }
.trusted .tq-btn { border-color: var(--ink); color: var(--ink); background: transparent; }
.trusted .tq-btn:hover { background: var(--lime); }
.trusted .tq-btn:disabled { opacity: .3; cursor: default; background: transparent; }

/* =========== v22 =========== */
/* logos: one calm, endlessly scrolling row (pauses on hover) */
.marquee { overflow: hidden; margin: 28px calc(-1 * clamp(24px, 4vw, 56px)) 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-track { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(48px, 6vw, 88px); width: max-content; animation: mq 60s linear infinite; padding-right: clamp(48px, 6vw, 88px); }
.marquee:hover .mq-track, .marquee:focus-within .mq-track { animation-play-state: paused; }
.mq-track li { flex: none; height: 64px; display: flex; align-items: center; position: relative; }
.mq-track li > a, .mq-track li > span { display: flex; align-items: center; height: 100%; }
.mq-track img { opacity: .7; transition: opacity .2s; }
.mq-track a:hover img, .mq-track .lg-note:hover img { opacity: 1; }
.mq-track a::after { content: none; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (max-width: 560px) { .mq-track img { transform: scale(.85); } .mq-track { animation-duration: 45s; } }
@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; padding: 0 24px; gap: 24px 48px; }
  .mq-track li[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; margin-inline: 0; }
}
.lg-note .tip { bottom: calc(100% - 4px); }

/* less space before the contact section */
.trusted { padding-bottom: clamp(48px, 6vw, 88px); }
.contact { padding-top: clamp(56px, 7vw, 96px); }

/* case study header: calmer on phones */
.cs-hero .eyebrow { letter-spacing: .06em; margin-bottom: 14px; }
@media (max-width: 820px) {
  .cs-hero h1 { font-size: 34px; line-height: 1.1; }
  .cs-lead { margin: 16px 0 28px; }
  .facts { grid-template-columns: 1fr; gap: 0; padding: 4px 0; margin-bottom: 32px; }
  .facts > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
  .facts > div:first-child { border-top: 0; }
  .facts dt { margin: 0; padding-top: 2px; letter-spacing: .06em; }
  .facts dd { font-size: 15px; line-height: 1.45; }
}

/* =========== v23 =========== */
/* single language toggle: shows the current language, click switches */
.lang-one { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; font-size: var(--t4); font-weight: 600; letter-spacing: .04em; color: var(--ink); padding: 6px 2px; transition: opacity .2s; }
.lang-one svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .7; }
.lang-one:hover { opacity: .6; }
.lang-one:active { transform: scale(.95); }
/* case study title a bit bigger on phones */
@media (max-width: 820px) { .cs-hero h1 { font-size: 40px; line-height: 1.08; } }

/* =========== v24 =========== */
/* logos: two smaller rows moving in opposite directions = more visible at once */
.marquee { margin-top: 20px; }
.marquee + .marquee { margin-top: 8px; }
.mq-track { zoom: .8; animation-duration: 45s; }
.marquee.rev .mq-track { animation-direction: reverse; }
@media (max-width: 560px) { .mq-track { zoom: .58; gap: 56px; animation-duration: 35s; } .mq-track img { transform: none; } }

/* no rule above "What clients say" */
.trusted { border-top: 0; }

/* all projects: more air, no rule after the last project of a year */
.ar-list li.new-year:not(:first-child) { margin-top: clamp(28px, 4vw, 48px); }
.ar-row, .ar-case { padding-top: 20px; padding-bottom: 20px; }
.ar-y { padding-top: 20px; }
.ar-list li:has(+ li.new-year) { border-bottom: 0; }
@media (max-width: 760px) {
  .ar-y { padding-top: 0; }
  .ar-row { padding: 18px 0; }
  .ar-case { margin: 10px -12px; padding: 18px 12px; }
  .ar-list li.new-year { padding-top: 8px; }
  .ar-list li.new-year:not(:first-child) { margin-top: 40px; }
  .ar-list li.new-year .ar-y { margin-bottom: 4px; }
}

/* =========== v25 =========== */
/* case cards: label + title + text as one group, button separate */
.cs-top { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.cs-top .cs-eyebrow, .cs-top .cs-title, .cs-top .cs-desc { margin: 0; }
.cs-eyebrow span { font-weight: 400; text-transform: none; letter-spacing: 0; }
.cs-eyebrow { flex-wrap: wrap; row-gap: 2px; }

/* logos a bit bigger */
.mq-track { zoom: .9; }
@media (max-width: 560px) { .mq-track { zoom: .72; } }

/* all projects: case-study rows use the same line layout as all others */
.ar-case { background: none; margin: 0; padding: 20px 0; border-radius: 0; }
.ar-case:hover { background: none; }
.ar-case .ar-p { font-weight: 400; }
.ar-case:hover .ar-p { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.ar-case:hover .tag { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.ar-go { display: none; }
.ar-list li:has(.ar-case), .ar-list li:has(+ li .ar-case) { border-bottom: 1px solid var(--line); }
.ar-list li:has(+ li.new-year), .ar-list li:last-child { border-bottom: 0; }
@media (max-width: 760px) { .ar-case { margin: 0; padding: 18px 0; } }

/* =========== v26 =========== */
/* case cards: label, then company line, then title; button closer */
.cs-label-grp { display: grid; gap: 4px; }
.cs-co { margin: 0; font-size: var(--t4); color: var(--mute); }
.cs-top { gap: 14px; margin-bottom: 20px; }
.cs .btn { margin-top: 0; }

/* case pages: no rule under the last fact on phones */
@media (max-width: 820px) { .facts { border-bottom: 0; padding-bottom: 0; } }

/* all projects: case-study rows get a round arrow button on the right */
.ar-go { display: grid; place-items: center; justify-self: end; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: 18px; line-height: 1; transition: background .2s, transform .2s; }
.ar-cols, .ar-row, .ar-case { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 44px; }
.ar-cols { grid-template-columns: 90px minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 44px; }
.ar-case:hover .ar-p { text-decoration: none; }
.ar-case:hover .ar-go { background: var(--lime); }
.ar-case:active .ar-go { transform: scale(.92); }
@media (max-width: 760px) {
  .ar-case { position: relative; padding-right: 64px; display: block; }
  .ar-case .ar-go { display: grid; position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
  .ar-case:active .ar-go { transform: translateY(-50%) scale(.92); }
}

/* less space before "What clients say" */
.work { padding-bottom: clamp(48px, 6vw, 88px); }
.trusted { padding-top: clamp(40px, 5vw, 72px); }
@media (min-width: 761px) { .ar-go { width: 40px; height: 40px; margin: -10px 0; } .ar-y { padding-top: 21px; } }

/* =========== v27 =========== */
/* bigger card titles everywhere (one size step for all t2 titles) */
:root { --t2: clamp(26px, 2.7vw, 38px); }
.t2 { line-height: 1.12; }
/* case cards: more air after the label, button closer to text */
.cs-label-grp { gap: 10px; }
.cs-top { margin-bottom: 14px; }
/* project arrows: centred without transforms so tap feedback can't shift them */
@media (max-width: 760px) {
  .ar-case .ar-go { top: 0; bottom: 0; margin: auto 0; transform: none; }
  .ar-case:active .ar-go { transform: scale(.92); }
}
@media (hover: none) { .ar-case:hover .ar-go { background: transparent; } .ar-case:active .ar-go { background: var(--lime); } }
.ex-list h3 { font-size: clamp(24px, 2.2vw, 32px); }

/* =========== v28: consistency pass =========== */
/* one scroll-in behaviour for everything (same as How I work) */
.js .reveal { opacity: 0; transform: translateY(56px) scale(.97); transition: opacity .8s ease-out, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .cases .reveal, .js .ex-list .reveal { transition-delay: 0s; }
.js .cs.reveal { transform: translateY(56px) scale(.97); }
.js .cs.reveal.in { transform: none; }
.js .ar-list li.reveal { transform: translateY(24px); }
.js .ar-list li.reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* type: only t1 / t2 / t3 / t4 */
@media (max-width: 420px) { .nav { font-size: var(--t4); } }
@media (max-width: 820px) { .facts dd { font-size: var(--t3); } }
.logo-intro { margin: 0; color: var(--mute); }

/* spacing: where two white sections meet, the gap is one section, not two */
.work { padding-bottom: calc(var(--section) / 2); }
.trusted { padding-top: calc(var(--section) / 2); padding-bottom: calc(var(--section) / 2); }
.contact { padding-top: calc(var(--section) / 2); }
.wp-hero { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(32px, 4vw, 56px); }
.archive { padding-bottom: calc(var(--section) / 2); }
.backbar { padding-top: 28px; padding-bottom: 0; }
.cs-next { padding-top: var(--section); }

/* form: more breathing room */
.cform { gap: 28px; }
.f-row { gap: 24px; }
.f { gap: 8px; }
.f input, .f textarea { padding: 14px 16px; }
.chips { gap: 12px; margin-top: 10px; }
.cform .btn { margin-top: 4px; }
.email-line { margin-top: 32px; }

/* all projects: quiet "Case study" label next to the arrow */
.ar-case { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.3fr) auto; }
.ar-cols, .ar-row { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 150px; }
.ar-cols { grid-template-columns: 90px minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 150px; }
.ar-case { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 150px; }
.ar-case > .ar-tag { display: none; }
.ar-go { position: relative; }
@media (min-width: 761px) {
  .ar-case { position: relative; }
  .ar-case .ar-tag { display: block; position: absolute; right: 56px; top: 50%; transform: translateY(-50%); font-size: var(--t4); color: var(--mute); }
}
@media (max-width: 760px) {
  .ar-case .ar-tag { display: block; position: absolute; right: 56px; top: 0; bottom: 0; height: 1.4em; margin: auto 0; font-size: var(--t4); color: var(--mute); }
  .ar-case { padding-right: 150px; }
}
@media (max-width: 400px) { .ar-case .ar-tag { display: none; } .ar-case { padding-right: 64px; } }
@media (max-width: 760px) {
  .ar-case { padding-right: 64px; }
  .ar-case .ar-tag, .ar-case > .ar-tag { display: inline; position: static; height: auto; margin: 0; color: var(--ink); font-weight: 600; }
  .ar-case .ar-r::after { content: " · "; color: var(--mute); }
}

/* =========== v29 =========== */
/* logos: static grid, larger, clickable */
.logo-grid2 { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 36px 24px; align-items: center; }
.logo-grid2 li { display: flex; justify-content: center; align-items: center; height: 72px; position: relative; }
.logo-grid2 li > a, .logo-grid2 li > span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 12px; transition: background .2s; }
.logo-grid2 img { opacity: .75; transition: opacity .2s; }
.logo-grid2 a:hover { background: var(--paper); }
.logo-grid2 a:hover img { opacity: 1; }
.logo-grid2 a::after { content: "↗"; position: absolute; top: 4px; right: 8px; font-size: var(--t4); color: var(--mute); opacity: 0; transition: opacity .2s; }
.logo-grid2 a:hover::after { opacity: 1; }
@media (max-width: 1000px) { .logo-grid2 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) {
  .logo-grid2 { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .logo-grid2 li { height: 64px; }
  .logo-grid2 img { transform: scale(1.1); }
}
/* "Let's talk" sits below the logo box, same style as on the projects page */
.trusted .talk-cta { margin-top: 20px; background: var(--soft); box-shadow: none; }
.trusted .logo-box { padding-bottom: clamp(24px, 4vw, 48px); }
@media (max-width: 620px) { .logo-grid2 img { transform: scale(.95); } .logo-grid2 { gap: 20px 24px; } }

/* v30 — logos without box, two-row slider, tighter card */
.trusted .logo-box { background: none; border-radius: 0; padding: 0; }
.trusted .marquee { margin-inline: 0; }
.mq-track { zoom: .8; }
@media (max-width: 560px) { .mq-track { zoom: .64; } }
.cs .cs-txt { gap: 0; }
.cs .cs-top { margin-bottom: 24px; }

/* v31 — UX pass: logo tiles, lang switch, footer, lightbox, toast, project rows */
/* trusted logos: calm tile grid, no motion */
.logo-sec { margin-top: calc(var(--section) / 2); }
.logo-h { margin: 0 0 clamp(20px, 2.4vw, 32px); max-width: 22em; }
.logo-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.logo-tiles li { position: relative; }
.logo-tiles li > a, .logo-tiles li > span { display: flex; align-items: center; justify-content: center; aspect-ratio: 5 / 2; border-radius: 16px; background: var(--soft); text-decoration: none; transition: background .2s; }
.logo-tiles img { max-width: 64%; height: auto; opacity: .8; transition: opacity .2s; }
.logo-tiles a::after { content: "↗"; position: absolute; top: 10px; right: 14px; font-size: var(--t4); color: var(--ink); opacity: 0; transition: opacity .2s; }
.logo-tiles a:hover { background: #ebebe6; }
.logo-tiles a:hover img { opacity: 1; }
.logo-tiles a:hover::after, .logo-tiles a:focus-visible::after { opacity: .6; }
.logo-tiles a:active { transform: scale(.98); }
@media (max-width: 860px) { .logo-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logo-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .logo-tiles img { zoom: .82; max-width: 78%; } .logo-tiles li > a, .logo-tiles li > span { aspect-ratio: 2 / 1; border-radius: 12px; } }

/* language switch: EN / DE, current one bold */
.lang-sw { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t4); letter-spacing: .04em; }
.lang-cur { font-weight: 600; color: var(--ink); }
.lang-div { color: var(--line); color: #c8c8c3; }
.lang-alt { color: var(--mute); text-decoration: none; padding: 6px 2px; transition: color .2s; }
.lang-alt:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* footer: page links on top, legal below */
.site-footer .wrap { display: block; padding-top: 40px; padding-bottom: 28px; }
.f-top { display: flex; align-items: center; gap: 24px 48px; }
.f-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.f-top .f-social { margin-left: auto; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 28px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--t4); }
.f-bottom .f-legal { gap: 24px; }
.f-bottom .nav-link { font-size: var(--t4); }
@media (max-width: 620px) {
  .f-top { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
  .f-top .f-social { grid-column: 2; grid-row: 1; margin: 0; }
  .f-nav { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
  .f-bottom { flex-direction: column-reverse; align-items: flex-start; }
}

/* lightbox: full screen, X top right */
.cs-sec .fig a { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 72px 24px 24px; background: rgba(15,15,15,.94); overflow: auto; cursor: default; opacity: 0; transition: opacity .2s; }
.lb[hidden] { display: none; }
.lb.open { opacity: 1; }
.lb-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; background: #fff; }
.lb-x { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .15s; }
.lb-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lb-x:hover { background: var(--lime); }
.lb-x:active { transform: scale(.92); }
@media (max-width: 560px) { .lb { padding: 72px 8px 16px; } .lb-x { top: 12px; right: 12px; } }

/* form toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px); padding: 14px 14px 14px 18px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: 0 16px 40px -12px rgba(0,0,0,.35); transform: translate(-50%, 16px); opacity: 0; transition: opacity .25s, transform .25s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast p { margin: 0; font-size: var(--t4); line-height: 1.45; max-width: 46ch; }
.toast-ic { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); position: relative; }
.toast-ic::after { content: ""; position: absolute; left: 8px; top: 5px; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.toast.bad .toast-ic { background: #ff6b5b; }
.toast.bad .toast-ic::after { left: 11px; top: 5px; width: 0; height: 9px; border-width: 0 2px 0 0; transform: none; box-shadow: 0 12px 0 -0px transparent; }
.toast-x { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; opacity: .7; }
.toast-x:hover { opacity: 1; background: rgba(255,255,255,.12); }
.toast-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cform button[disabled] { opacity: .6; cursor: progress; }

/* projects: the whole case row reacts */
.ar-case { border-radius: 12px; transition: background .2s, box-shadow .2s; }
.ar-case:hover { background: var(--soft); box-shadow: 0 0 0 12px var(--soft); }
.ar-case:hover .ar-p { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
@media (hover: none) { .ar-case:hover { background: none; box-shadow: none; } .ar-case:active { background: var(--soft); box-shadow: 0 0 0 8px var(--soft); } }
.toast.bad .toast-ic::after { content: "!"; inset: 0; left: 0; top: 0; width: auto; height: auto; border: 0; transform: none; box-shadow: none; text-align: center; line-height: 24px; font-weight: 700; font-size: 14px; color: var(--ink); }
.logo-h { max-width: none; }
@media (max-width: 560px) { .logo-tiles li > a, .logo-tiles li > span { aspect-ratio: 5 / 2; } .logo-tiles img { zoom: .74; } }

/* v32 — calmer footer, logo label, more tile air, cover zoom */
.fig.cs-cover { margin: 0; border: 0; border-radius: 24px; background: var(--soft); }
.fig.cs-cover a { padding: 0; height: 100%; }
.logo-h.eyebrow { margin: 0 0 20px; }
.logo-tiles { gap: 20px; }
@media (max-width: 560px) { .logo-tiles { gap: 12px; } }

.site-footer .wrap { padding-top: 36px; padding-bottom: 32px; }
.site-footer a { color: inherit; text-decoration: none; transition: color .2s; }
.f-top, .f-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.f-top .f-logo .logo { height: 22px; }
.f-nav { display: flex; gap: 32px; font-size: var(--t4); }
.f-nav a { color: var(--ink); }
.f-nav a:hover, .f-legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.f-bottom { margin-top: 24px; padding-top: 0; border-top: 0; font-size: var(--t4); color: var(--mute); }
.f-right { display: flex; align-items: center; gap: 32px; }
.f-legal { display: flex; gap: 32px; }
.f-legal a { color: var(--mute); font-size: var(--t4); }
.site-footer .soc { color: var(--mute); }
.site-footer .soc svg { width: 20px; height: 20px; }
.site-footer .soc:hover { color: var(--ink); }
@media (max-width: 620px) {
  .f-top { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
  .f-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; width: 100%; }
  .f-bottom { flex-direction: column-reverse; align-items: flex-start; margin-top: 32px; gap: 16px; }
  .f-right { width: 100%; justify-content: space-between; }
}

/* v33 */
/* case hero: no line above facts, label as lime tag */
.facts { border-top: 0; padding-top: 0; }
.cs-hero .eyebrow { display: inline-block; background: var(--lime); color: var(--ink); padding: 6px 12px; border-radius: 8px; margin-bottom: 20px; }
/* contact email: regular weight */
.email-line b { font-weight: 400; }
/* about: quiet LinkedIn link next to the button */
.about-text .btns { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.link-3.ext::after { content: " ↗"; }
/* footer v3 */
.f-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px 32px; flex-wrap: nowrap; }
.f-left { display: grid; gap: 20px; justify-items: start; }
.f-legal { display: grid; gap: 10px; justify-items: end; text-align: right; }
.f-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; }
@media (max-width: 620px) {
  .f-top { flex-direction: column; align-items: stretch; gap: 24px; }
  .f-left { gap: 24px; }
  .f-legal { justify-items: start; text-align: left; }
  .f-bottom { flex-direction: row; align-items: center; margin-top: 28px; }
}
/* toast icon: smaller, centred, svg check */
.toast { align-items: center; }
.toast-ic { width: 20px; height: 20px; display: grid; place-items: center; align-self: center; }
.toast-ic::after { content: none !important; }
.toast-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toast-ic .ic-bad, .toast.bad .toast-ic .ic-ok { display: none; }
.toast.bad .toast-ic .ic-bad { display: inline; }
.toast p b { font-weight: 600; }

/* v34 */
.cs .cs-tag, .cs-hero .eyebrow { display: inline-block; align-self: flex-start; background: var(--lime); color: var(--ink); padding: 6px 12px; border-radius: 8px; margin: 0; letter-spacing: .06em; }
.cs-hero .eyebrow { margin-bottom: 20px; }
.logo-h, .logo-h.eyebrow { font-size: var(--t3); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); margin: 0 0 clamp(28px, 3vw, 40px); }
.f-nav { display: grid; gap: 10px; justify-items: start; }
@media (max-width: 620px) { .f-nav { grid-template-columns: 1fr; gap: 10px; } .f-top { flex-direction: row; justify-content: space-between; align-items: flex-start; } }

/* v35 — logo section title, footer v4, mobile menu */
.logo-sec { margin-top: var(--section); }
.logo-head { margin-bottom: clamp(32px, 4vw, 48px); }
.logo-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.logo-tiles img { max-width: 70%; }
@media (max-width: 1000px) { .logo-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logo-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .logo-tiles li > a, .logo-tiles li > span { aspect-ratio: 3 / 2; border-radius: 10px; } .logo-tiles img { zoom: .6; max-width: 86%; } .logo-tiles a::after { top: 4px; right: 8px; } }

/* footer v4 */
.f-head { display: flex; align-items: center; justify-content: space-between; }
.site-footer .soc svg { width: 28px; height: 28px; }
.f-cols { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 24px; }
.f-nav, .f-legal { display: grid; gap: 10px; justify-items: start; text-align: left; }
.f-bottom { margin-top: 28px; }
@media (max-width: 620px) { .f-cols { gap: 16px; } }

/* hamburger + full-screen menu */
.burger, .mm-x { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.burger span, .mm-x span { position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s cubic-bezier(.2,.7,.2,1), width .3s; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; left: 18px; }
.burger:hover span:nth-child(2) { left: 10px; }
.burger:active { transform: scale(.92); }
@media (max-width: 760px) {
  .site-header .nav { display: none; }
  .burger { display: block; }
}
.mm { position: fixed; inset: 0; z-index: 90; background: #111; color: #fff; display: flex; flex-direction: column; opacity: 0; transition: opacity .3s ease; overflow-y: auto; }
.mm[hidden] { display: none; }
.mm.open { opacity: 1; }
.mm-top { display: flex; align-items: center; justify-content: space-between; height: 76px; flex: none; }
.mm .logo { fill: #fff; }
.mm-x { display: block; color: #fff; }
.mm-x span { top: 21px; }
.mm-x span:nth-child(1) { transform: rotate(45deg); }
.mm-x span:nth-child(2) { transform: rotate(-45deg); }
.mm-x:active { transform: scale(.92); }
.mm-nav { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding-top: 24px; padding-bottom: 24px; }
.mm-nav a { font-size: var(--t1); font-weight: 300; line-height: 1.15; letter-spacing: -.02em; color: #fff; text-decoration: none; width: fit-content; opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1), color .2s; }
.mm.open .mm-nav a { opacity: 1; transform: none; }
.mm.open .mm-nav a:nth-child(2) { transition-delay: .05s; }
.mm.open .mm-nav a:nth-child(3) { transition-delay: .1s; }
.mm.open .mm-nav a:nth-child(4) { transition-delay: .15s; }
.mm-nav a:hover, .mm-nav a:focus-visible { color: var(--lime); }
.mm-foot { flex: none; display: flex; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid rgba(255,255,255,.14); }
.mm .lang-sw { font-size: var(--t3); }
.mm .lang-cur { color: #fff; }
.mm .lang-alt { color: rgba(255,255,255,.55); }
.mm .lang-alt:hover { color: #fff; }
.mm .lang-div { color: rgba(255,255,255,.3); }
.mm-li { color: rgba(255,255,255,.75); text-decoration: none; font-size: var(--t3); }
.mm-li:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .mm, .mm-nav a { transition: none; } }
.mm > .wrap { width: 100%; box-sizing: border-box; }
.f-nav a, .f-legal a { white-space: nowrap; }

/* v36 — 17 logos, centred last row; menu circle reveal */
.logo-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; --cols: 6; }
.logo-tiles li { flex: 0 0 calc((100% - (var(--cols) - 1) * 16px) / var(--cols)); }
@media (max-width: 1000px) { .logo-tiles { --cols: 4; } }
@media (max-width: 560px) { .logo-tiles { --cols: 3; gap: 8px; } .logo-tiles li { flex-basis: calc((100% - 16px) / 3); } }

.mm { opacity: 1; clip-path: circle(0px at var(--cx, 100%) var(--cy, 0)); transition: clip-path .55s cubic-bezier(.7,0,.2,1); }
.mm.open { clip-path: circle(150% at var(--cx, 100%) var(--cy, 0)); }
.mm .mm-nav a { transition: opacity .4s ease, transform .5s cubic-bezier(.2,.7,.2,1), color .2s; }
.mm.open .mm-nav a { transition-delay: .25s; }
.mm.open .mm-nav a:nth-child(2) { transition-delay: .31s; }
.mm.open .mm-nav a:nth-child(3) { transition-delay: .37s; }
.mm.open .mm-nav a:nth-child(4) { transition-delay: .43s; }
.mm-foot, .mm-top .brand { opacity: 0; transition: opacity .3s ease; }
.mm.open .mm-foot, .mm.open .mm-top .brand { opacity: 1; transition-delay: .35s; }
.mm-foot { justify-content: flex-start; }
@media (prefers-reduced-motion: reduce) { .mm { transition: none; } }

/* v37 — lime tags: years, challenge/solution; logo last row left */
.logo-tiles { justify-content: flex-start; }
.cs-card.dark { background: var(--soft); }
.cs-stack .cs-card .eyebrow { justify-self: start; align-self: start; display: inline-block; background: var(--lime); color: var(--ink); padding: 6px 12px; border-radius: 8px; letter-spacing: .06em; margin: 0; }
.ar-y:not(:empty) { justify-self: start; align-self: start; }
.ar-list li.new-year .ar-y { display: inline-block; width: fit-content; height: fit-content; background: var(--lime); color: var(--ink); border-radius: 8px; padding: 4px 10px; line-height: 1.3; }
@media (min-width: 761px) { .ar-list li.new-year .ar-y { margin-top: 16px; padding: 4px 10px; font-size: var(--t4); letter-spacing: .04em; } }
@media (max-width: 760px) { .ar-list li.new-year .ar-y { font-size: var(--t3); margin-bottom: 8px; } }
.ar-case .ar-r::after { content: none !important; }

/* v38 — card label options, consistent figures, year alignment */
.cs-pill { justify-self: start; margin: 0; background: var(--lime); color: var(--ink); font-size: var(--t4); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 8px; }
.cs-numtag { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: var(--t4); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.cs-numtag span { background: var(--lime); color: var(--ink); letter-spacing: .02em; padding: 4px 8px; border-radius: 6px; }
.fig.cs-cover { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); }
.fig.cs-cover a { padding: clamp(8px, 1.5vw, 20px); box-sizing: border-box; }
.fig.cs-cover img { border-radius: 8px; }
@media (min-width: 761px) { .ar-list li.new-year .ar-y { margin-top: 18px; } }
.cs-numtag { flex-wrap: wrap; row-gap: 6px; }

/* v39 — feedback batch */
/* reveal: no fade-out flash on load; transitions only after first frames */
.js .reveal { transition: none; }
.js.rv .reveal { transition: opacity .8s ease-out, transform .8s cubic-bezier(.2,.7,.2,1); }
@media (min-width: 761px) { .js .reveal:not(.in) { transform: translateY(44px); } }

/* hero: one calm tempo for all shapes */
.sh-circ { animation: float 12s ease-in-out infinite; }
.sh-tri { animation: float 12s ease-in-out -4s infinite reverse; }
.sh-sq { animation: float 12s ease-in-out -8s infinite; }
.badge { animation: spin 48s linear infinite; }

/* primary button hover: lime fill, no visible border */
.btn:not(.btn-2):hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }

/* desktop-only refinements */
@media (min-width: 901px) {
  .about-grid { align-items: start; }
  .about-photo { aspect-ratio: 1 / 1; }
  .about-text { padding-top: 8px; }
}
@media (min-width: 1000px) {
  .sh-head, .logo-head { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; }
  .sh-head h2, .logo-head h2 { margin: 0; }
  .sh-head p, .logo-head p { max-width: 30em; padding-bottom: 8px; }
  .fb-head .sh-head { display: block; }
}
@media (min-width: 821px) {
  .cs-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .cs-stack .cs-card { display: flex; flex-direction: column; gap: 18px; height: 100%; box-sizing: border-box; }
  .cs-stack .cs-card .eyebrow { align-self: flex-start; }
}

/* next case banner label */
.next-card .cs-numtag { margin-bottom: 16px; }

/* footer desktop: one row of columns */
@media (min-width: 761px) {
  .site-footer .wrap { display: grid; grid-template-columns: minmax(0, 2fr) auto auto auto; grid-template-areas: "logo nav legal soc" "copy nav legal soc"; column-gap: clamp(48px, 7vw, 120px); row-gap: 0; align-items: start; padding-top: 48px; padding-bottom: 40px; }
  .f-head, .f-cols, .f-bottom { display: contents; }
  .f-logo { grid-area: logo; }
  .f-nav { grid-area: nav; }
  .f-legal { grid-area: legal; }
  .site-footer .soc { grid-area: soc; justify-self: end; }
  .f-bottom .f-copy { grid-area: copy; align-self: end; }
  .f-bottom { margin: 0; }
}

/* projects: "Case study" pill explains the arrow */
.ar-pill { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--lime); color: var(--ink); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
@media (min-width: 761px) {
  .ar-case { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.3fr) auto 44px; }
  .ar-case { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 150px; }
  .ar-case .ar-pill { position: absolute; right: 60px; top: 0; bottom: 0; margin: auto 0; height: fit-content; }
  .ar-case { position: relative; }
}
@media (max-width: 760px) {
  .ar-case .ar-pill { display: table; margin-top: 10px; }
}

/* mobile testimonial navigation */
.tq-mnav { display: none; }
@media (max-width: 560px) {
  .tq-mnav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
  .tq-mnav .tq-btn { width: 44px; height: 44px; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
  .tq-mnav .tq-btn:disabled { opacity: .3; }
  .tq-dots { display: flex !important; gap: 8px; }
  .tq-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width .25s, background .25s; }
  .tq-dots i.on { width: 22px; background: var(--ink); }
}

/* v40 — logo optical sizing (width comes from the build, scaled per breakpoint) */
.logo-tiles img { width: var(--w); max-width: none; zoom: 1; opacity: .85; }
@media (max-width: 1000px) { .logo-tiles img { width: calc(var(--w) * .85); } }
@media (max-width: 560px) { .logo-tiles img { width: calc(var(--w) * .66); zoom: 1; max-width: none; } }

/* v41 — feedback batch 2 */
/* buttons: lime hover keeps its dark stroke (primary + secondary alike) */
.btn:not(.btn-2):hover { background: var(--lime); border-color: var(--ink); color: var(--ink); }

/* one paragraph measure across the site */
:root { --measure: 28em; }
.sh-head p, .logo-head p, .contact-intro p, .about-text p, .cs-lead, .wp-hero p { max-width: var(--measure); }

/* about: photo ends level with the button row */
@media (min-width: 901px) {
  .about-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: stretch; }
  .about-photo { aspect-ratio: auto; height: 100%; min-height: 0; }
  .about-text { padding-top: 0; }
  .about-text h2 { margin-top: -0.12em; }
}

/* case cards: title is plain text */
.cs-title, .cs-title a { text-decoration: none !important; }

/* case hero: label like the home cards, body-size lead, facts as rows */
.cs-hero-tag { margin: 0 0 20px; }
.cs-lead { font-size: var(--t3); line-height: 1.6; font-weight: 300; margin: 18px 0 32px; }
@media (min-width: 821px) {
  .facts { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 680px; padding: 0; border: 0; margin-bottom: clamp(40px, 5vw, 64px); }
  .facts > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
  .facts > div:first-child { border-top: 0; }
  .facts dt { margin: 0; padding-top: 2px; letter-spacing: .06em; }
}

/* projects: one "Case study →" pill instead of pill + arrow button */
.ar-case:hover, .ar-case:active { background: none !important; box-shadow: none !important; }
.ar-case:hover .ar-p { text-decoration: none; }
.ar-case .ar-go { display: none !important; }
.ar-pill { transition: background .2s, color .2s; }
.ar-case:hover .ar-pill, .ar-case:focus-visible .ar-pill { background: var(--ink); color: var(--lime); }
@media (min-width: 761px) {
  .ar-case { padding-right: 0; }
  .ar-case .ar-pill { position: static; justify-self: end; align-self: center; }
}
@media (max-width: 760px) {
  .ar-case { padding-right: 0 !important; }
  .ar-case .ar-pill { display: table; margin-top: 10px; }
}

/* contact section in black, footer stays white */
.contact { background: var(--ink); color: #fff; padding: var(--section) 0; border: 0; }
.contact h2, .contact .f label, .contact .f legend { color: #fff; }
.contact-intro p, .contact .f legend span, .contact .f-note { color: rgba(255,255,255,.62); }
.contact .f-note a { color: #fff; }
.contact .email-line span { color: rgba(255,255,255,.5); }
.contact .email-line b { color: #fff; }
.contact .f input, .contact .f textarea { background: #262626; color: #fff; border-color: transparent; }
.contact .f input::placeholder, .contact .f textarea::placeholder { color: rgba(255,255,255,.4); }
.contact .f input:focus, .contact .f textarea:focus { background: #2e2e2e; border-color: var(--lime); }
.contact .f [aria-invalid="true"] { border-color: #ff8a7a; }
.contact .err { color: #ff8a7a; }
.contact .chips span { border-color: rgba(255,255,255,.55); color: #fff; }
.contact .chips label:hover span { background: rgba(255,255,255,.08); }
.contact .chips input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.contact .chips input:focus-visible + span { outline-color: var(--lime); }
.contact .btn { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.contact .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
.toast { border: 1px solid rgba(255,255,255,.14); }
.site-footer { border-top: 0; }
@media (min-width: 901px) {
  .about-photo { position: relative; }
  .about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 4%; }
}

/* v42 — secondary hover without stroke, full-width facts, project cards */
.btn-2:hover, .cs .btn-2:hover, .btn:not(.btn-2):hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.contact .btn:hover { background: #fff; border-color: #fff; }

@media (min-width: 821px) {
  .facts { max-width: none; }
  .facts > div { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 64px); }
}

.archive .ar-head { margin-bottom: clamp(24px, 3vw, 36px); }
.pj-group + .pj-group { margin-top: clamp(40px, 5vw, 64px); }
.pj-year { display: inline-block; margin: 0 0 16px; font-size: var(--t3); font-weight: 600; letter-spacing: .02em; background: var(--lime); color: var(--ink); padding: 4px 12px; border-radius: 8px; }
.pj-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pj-grid li { display: flex; }
.pj-card { flex: 1; display: flex; flex-direction: column; gap: 6px; background: var(--soft); border-radius: 16px; padding: 22px 24px; color: inherit; text-decoration: none; min-height: 128px; box-sizing: border-box; }
.pj-t { font-size: var(--t3); font-weight: 600; line-height: 1.35; }
.pj-m { font-size: var(--t4); color: var(--mute); }
.pj-card .ar-pill { align-self: flex-start; margin-top: auto; position: static !important; display: inline-block !important; }
.pj-card.is-case { background: #fff; border: 1.5px solid var(--ink); transition: transform .2s, box-shadow .2s; }
.pj-card.is-case .pj-m { margin-bottom: 14px; }
.pj-card.is-case:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.35); }
.pj-card.is-case:hover .ar-pill { background: var(--ink); color: var(--lime); }
.pj-card.is-case:active { transform: scale(.98); }
@media (max-width: 1000px) { .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pj-grid { grid-template-columns: 1fr; gap: 10px; } .pj-card { min-height: 0; padding: 18px 20px; } }
@media (hover: none) { .pj-card.is-case:hover { transform: none; box-shadow: none; } }

/* v43 — facts as four columns without lines (desktop), card periods, black CTA box */
@media (min-width: 821px) {
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.9fr); gap: 20px 28px; }
  .facts > div { display: block; padding: 0; border: 0 !important; }
  .facts dt { margin-bottom: 6px; }
}
.pj-d { font-size: var(--t4); color: var(--mute); font-variant-numeric: tabular-nums; }
.pj-card.is-case .pj-m { margin-bottom: 0; }
.pj-card.is-case .pj-d { margin-bottom: 14px; }

.wp-cta .refs-cta { background: var(--ink); color: #fff; border: 0; border-radius: var(--radius); padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px); }
.wp-cta .refs-cta p { color: rgba(255,255,255,.7); }
.wp-cta .refs-cta b { color: #fff; }
.wp-cta .refs-cta .btn { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.wp-cta .refs-cta .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
.site-footer { border-top: 1px solid var(--line); }
.wp-cta .refs-cta { flex-wrap: nowrap; } .wp-cta .refs-cta p { flex: 1 1 auto; max-width: 40em; } @media (max-width: 760px) { .wp-cta .refs-cta { flex-wrap: wrap; } }

/* v44 — CTA box with title, footer copy under logo */
.wp-cta .refs-cta { align-items: center; gap: 24px 48px; padding: clamp(28px, 4vw, 48px); }
.wp-cta .cta-txt { display: grid; gap: 10px; max-width: 34em; }
.wp-cta .cta-txt h2 { margin: 0; color: #fff; }
.wp-cta .cta-txt p { margin: 0; color: rgba(255,255,255,.7); }
.wp-cta .refs-cta .btn { flex: none; padding: 14px 26px; }
@media (min-width: 761px) {
  .site-footer .wrap { grid-template-rows: auto 1fr; }
  .f-bottom .f-copy { align-self: start; margin-top: 14px; }
}
.wp-hero h1 { margin-bottom: 0; } .wp-hero + .archive .ar-head, .archive .ar-head { margin-top: 0; }
.wp-hero { padding-bottom: 0 !important; } .archive { padding-top: 24px !important; }
.trusted { padding-bottom: var(--section) !important; }
.reply-note { display: flex; align-items: center; gap: 10px; margin: 28px 0 0; font-size: var(--t4); color: rgba(255,255,255,.62); }
.reply-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; }
.book-line { margin: 14px 0 0; font-size: var(--t4); color: rgba(255,255,255,.62); }
.contact .link-3 { color: #fff; font-weight: 600; }
.contact .link-3 { background: none !important; box-shadow: none !important; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.contact .link-3::before { display: none !important; }
.contact .link-3:hover { color: var(--lime); }

/* v45 — case figures: no frame, image with shadow + caption */
.cs-sec .fig, .fig, .fig.cs-cover { border: 0; background: none; overflow: visible; border-radius: 0; }
.fig a, .fig.cs-cover a { padding: 0; }
.fig img, .fig.cs-cover img { display: block; width: 100%; height: auto; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(17,17,17,.06), 0 12px 32px -12px rgba(17,17,17,.22); }
.fig.cs-cover img { object-fit: initial; }
.fig figcaption, .fig-cap { padding: 16px 0 0; margin: 0; max-width: 42em; font-size: var(--t4); line-height: 1.55; color: var(--mute); }
.fig figcaption b, .fig-cap b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 32px); align-items: start; margin-top: clamp(32px, 4vw, 48px); }
.fig-pair .fig { margin: 0; }
@media (max-width: 760px) { .fig-pair { grid-template-columns: 1fr; } .fig img { border-radius: 10px; } }
/* next case banner: no image on mobile */
@media (max-width: 760px) { .next-img { display: none !important; } }
/* home card thumbnails: whole image visible */
.cs-img img { object-fit: contain; object-position: center; }
.fig.cs-cover { margin-bottom: clamp(32px, 4vw, 48px); }

/* v46 — flat case figures in soft panels, button hovers, next banner */
.fig img, .fig.cs-cover img { box-shadow: none !important; border-radius: 0; background: none; }
.cs-sec .fig > a, .fig.cs-cover > a { display: block; background: var(--soft); border-radius: var(--radius); padding: clamp(16px, 3vw, 40px); }
.cs-sec .fig > a img, .fig.cs-cover > a img { border-radius: 6px; }
.fig-stack { display: grid; gap: clamp(16px, 2vw, 24px); margin-top: clamp(32px, 4vw, 48px); }
.fig-stack .fig { margin: 0; }
.fig figcaption, .fig-cap { padding-top: 14px; }
@media (max-width: 760px) { .cs-sec .fig > a, .fig.cs-cover > a { padding: 12px; border-radius: 14px; } }

/* buttons: primary black → white outline; secondary outline → lime; tertiary lime → black */
.btn:not(.btn-2):hover { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-2:hover, .cs .btn-2:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.pill:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
/* lime buttons on black sections keep a visible hover */
.contact .btn:hover, .wp-cta .refs-cta .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* next case banner: image only on desktop */
@media (max-width: 1000px) { .next-img { display: none !important; } .next-card { grid-template-columns: 1fr !important; } }

/* v47 */
/* section heads: paragraph's last line sits on the title baseline */
@media (min-width: 1000px) { .sh-head, .logo-head { align-items: last baseline; } .sh-head p, .logo-head p { padding-bottom: 0; margin-bottom: 0; } }

/* footer: © under logo, page + legal links on the right */
.f-cols { display: grid; grid-template-columns: 1fr auto auto; column-gap: clamp(40px, 6vw, 96px); align-items: start; margin-top: 24px; }
.f-cols .f-copy { align-self: start; font-size: var(--t4); color: var(--mute); }
.site-footer .f-bottom { display: none; }
@media (min-width: 761px) { .site-footer .wrap { display: block; } }
@media (max-width: 620px) { .f-cols { grid-template-columns: 1fr 1fr; row-gap: 28px; } .f-cols .f-copy { grid-column: 1 / -1; order: 3; } }

/* buttons on light vs dark */
.btn:not(.btn-2):hover { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-2:hover, .cs .btn-2:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.pill:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.contact .btn, .wp-cta .refs-cta .btn { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.contact .btn:hover, .wp-cta .refs-cta .btn:hover { background: transparent; border-color: var(--lime); color: var(--lime); }

/* case hero spacing */
.cs-lead { margin: 20px 0 clamp(48px, 6vw, 80px); max-width: 34em; }

/* case figures: white panel, light stroke, even padding */
.cs-sec .fig > a, .fig.cs-cover > a { background: #fff; border: 1px solid var(--line); padding: clamp(16px, 3vw, 40px); line-height: 0; }
.fig.cs-cover img, .cs-sec .fig img { display: block; }

/* avolta design system bento */
.bento { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.3fr); grid-template-areas: "side btn form" "side table table"; gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(32px, 4vw, 48px); }
.bento .fig { margin: 0; }
.bento .fig > a { height: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.bento .fig img { max-height: 520px; width: auto; max-width: 100%; }
.bento-0 { grid-area: side; } .bento-1 { grid-area: btn; } .bento-2 { grid-area: table; } .bento-3 { grid-area: form; }
.bento-0 img { max-height: 560px !important; }
@media (max-width: 760px) { .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "side btn" "side btn" "form form" "table table"; } }

/* next case banner: small image on the right on tablet, hidden on phones */
@media (max-width: 1000px) and (min-width: 761px) {
  .next-card { grid-template-columns: minmax(0, 1fr) 220px !important; }
  .next-img { display: block !important; order: 0 !important; }
}
@media (max-width: 760px) { .next-img { display: none !important; } .next-card { grid-template-columns: 1fr !important; } }

/* lightbox zoom */
.lb-stage { overflow: hidden; touch-action: none; }
.lb img { transition: transform .15s ease-out; transform-origin: center; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.lb.zoomed img { cursor: grab; transition: none; }
.lb-zoom { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; background: #fff; border-radius: 999px; padding: 4px; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.lb-zb { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; }
.lb-zb:hover { background: var(--lime); }
.lb-zv { min-width: 52px; text-align: center; font-size: var(--t4); font-variant-numeric: tabular-nums; }
.site-footer .wrap { display: block !important; }
.site-footer .f-head { display: flex !important; align-items: center; justify-content: space-between; }
.site-footer .f-cols { display: grid !important; }
.site-footer .f-logo, .site-footer .f-nav, .site-footer .f-legal, .site-footer .soc, .site-footer .f-copy { grid-area: auto !important; }
.site-footer .f-nav, .site-footer .f-legal { display: grid !important; gap: 10px; justify-items: start; }
.f-cols .f-copy { white-space: nowrap; } .site-footer .f-cols { margin-top: 28px; }

/* v48 */
/* facts: equal gaps between the four items */
@media (min-width: 821px) {
  .facts { display: flex !important; flex-wrap: nowrap; gap: clamp(40px, 5vw, 80px); }
  .facts > div { flex: 0 1 auto; min-width: 0; }
  .facts > div:last-child { flex: 0 1 26em; }
}
/* hero + screenshot figures: stroke on the image itself, no padding */
.fig.cs-cover > a, .cs-sec .fig.shot > a, .cs-sec .fig.bare > a { padding: 0; border: 0; background: none; }
.fig.cs-cover img, .cs-sec .fig.shot img { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cs-sec .fig.bare img { border-radius: 0; }
/* bento: sidebar fills its tile */
.bento .bento-0 > a { padding: 0; align-items: stretch; overflow: hidden; }
.bento .bento-0 img { width: 100%; height: 100%; max-height: none !important; object-fit: cover; object-position: top center; }

/* v49 */
:root { --radius: 20px; }
/* one radius for every box and image */
.cs, .cs-img, .next-card, .next-img, .cs-cover, .fig.cs-cover, .fig.cs-cover img, .cs-sec .fig > a, .cs-sec .fig.shot img, .cs-stack .cs-card, .qc, .pj-card, .refs-cta, .wp-cta .refs-cta, .about-photo, .logo-tiles li > a, .logo-tiles li > span, .bento .fig > a { border-radius: var(--radius) !important; }
.next-img img, .cs-img img { border-radius: 0 !important; }

/* clients: intro under the title, logos after the testimonials */
.fb-title p { margin: 16px 0 0; max-width: var(--measure); color: var(--mute); }
.fb-head { align-items: end; }
.trusted .logo-sec { margin-top: clamp(56px, 7vw, 96px); }

/* facts: equal gaps, team takes the rest */
@media (min-width: 821px) {
  .facts { display: grid !important; grid-template-columns: max-content max-content max-content minmax(0, 1fr); column-gap: clamp(40px, 5vw, 72px); }
  .facts > div, .facts > div:last-child { flex: none; }
}

/* case page rhythm: same gap above and below the challenge/solution boxes at every width */
:root { --cs-gap: clamp(72px, 9vw, 134px); }
.cs-sec { padding-top: var(--cs-gap) !important; margin-top: 0 !important; }
.fig.cs-cover { margin-bottom: 0 !important; }
.cs-hero { padding-bottom: 0 !important; }

/* next case banner on tablet: half/half */
@media (max-width: 1000px) and (min-width: 761px) { .next-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; } }

/* clickable cards: no lift, no shadow — the button/tag reacts */
.next-card:hover { transform: none !important; box-shadow: none !important; }
.next-card:hover .btn { background: #fff !important; border-color: var(--ink) !important; color: var(--ink) !important; }
.pj-card.is-case:hover { transform: none !important; box-shadow: none !important; }

/* design system sidebar: show dashed outline completely */
.bento .bento-0 > a { padding: 16px !important; align-items: center; }
.bento .bento-0 img { object-fit: contain; height: 100%; width: auto; max-width: 100%; }

/* smooth page-to-page transitions */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
html { background: #fff; }
.fig.cs-cover, .cs-cover { aspect-ratio: auto !important; overflow: visible !important; background: none !important; height: auto !important; } .fig.cs-cover > a { display: block; }
.fb-title h2 { margin: 0 !important; }
.fb-title p { margin-top: 20px !important; }
.trusted .fb-head { margin-bottom: clamp(32px, 4vw, 48px) !important; }
.trusted .fb-head { align-items: end; } .trusted .tq-arrows { align-self: end; margin-bottom: 4px; }

/* v50 — learning quote, roomier logo tiles */
.cs-learn { padding-top: var(--cs-gap); }
.learn { margin: 0; padding: clamp(40px, 6vw, 88px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px clamp(24px, 5vw, 80px); align-items: start; }
.learn-k { margin: 6px 0 0; justify-self: start; background: var(--lime); color: var(--ink); font-size: var(--t4); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 8px; }
.learn-q { margin: 0; font-size: var(--t2); font-weight: 300; font-style: italic; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); text-wrap: pretty; }
@media (max-width: 820px) { .learn { grid-template-columns: 1fr; } }

.logo-tiles li > a, .logo-tiles li > span { aspect-ratio: 16 / 9 !important; }
.logo-tiles img { width: calc(var(--w) * .78); }
@media (max-width: 1000px) { .logo-tiles img { width: calc(var(--w) * .68); } }
@media (max-width: 560px) { .logo-tiles img { width: calc(var(--w) * .52); } }
.logo-tiles li { position: relative; }
.logo-tiles a::after { top: -9px !important; right: -9px !important; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; line-height: 1; transform: scale(.6); transition: opacity .2s, transform .2s; }
.logo-tiles a:hover::after, .logo-tiles a:focus-visible::after { opacity: 1 !important; transform: scale(1); }
.logo-tiles, .logo-sec { overflow: visible; }

/* v51 — client quote on case page */
.cs-quote { padding-top: var(--cs-gap); }
.cq { margin: 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px clamp(24px, 5vw, 80px); }
.cq blockquote { grid-column: 2; margin: 0; font-size: var(--t2); font-weight: 300; line-height: 1.3; letter-spacing: -.01em; position: relative; }
.cq blockquote::before { content: "“"; position: absolute; left: -.55em; top: -.12em; color: var(--lime); font-weight: 800; font-size: 1.6em; line-height: 1; }
.cq figcaption { grid-column: 2; display: grid; gap: 2px; font-size: var(--t4); }
.cq figcaption span { color: var(--mute); }
@media (max-width: 820px) { .cq { grid-template-columns: 1fr; } .cq blockquote, .cq figcaption { grid-column: 1; } .cq blockquote { padding-top: .6em; } .cq blockquote::before { left: 0; top: -.45em; } }
.cs-quote + .cs-learn .learn { border-top: 0; }
.cq blockquote::before { content: none !important; }
.cq .qc-mark { grid-column: 2; margin: 0; }
.cq blockquote { padding-top: 0 !important; }
@media (max-width: 820px) { .cq .qc-mark { grid-column: 1; } }
.cs-quote + .cs-learn { padding-top: clamp(48px, 6vw, 80px); }

/* v52 — tighter desktop frame: wider content, less vertical air */
:root { --max: 1440px; --gutter: clamp(20px, 4vw, 64px); --section: clamp(72px, 8vw, 112px); --cs-gap: clamp(64px, 7.5vw, 112px); }
.hero2 { padding-top: clamp(32px, 4.5vw, 64px); }

/* v53 */
/* services: four modules + note */
.services2 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 1100px) { .services2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { .services2 { grid-template-columns: 1fr !important; } }
.svc-note { margin: 28px 0 0; font-size: var(--t4); color: var(--mute); }
/* how I work head like other sections */
.expect .sh-head { margin-bottom: clamp(32px, 4vw, 56px); }
.expect .sh-head h2 { margin: 0; }
/* selected work: intro starts where the card image column starts */
@media (min-width: 861px) {
  .work .sh-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) !important; column-gap: clamp(24px, 4vw, 64px) !important; padding-inline: clamp(24px, 3vw, 44px); }
}
/* clients arrows down to the quotes */
.trusted .fb-head { display: flex !important; justify-content: space-between; align-items: flex-end !important; }
.trusted .tq-arrows { align-self: flex-end !important; margin: 0 !important; }
/* case facts: spread across the full width, equal gaps */
@media (min-width: 821px) {
  .facts { display: flex !important; justify-content: space-between; gap: 32px; }
  .facts > div { flex: 0 0 auto !important; }
}
/* case body text: shorter lines */
.cs-row .cs-body { max-width: 40em; }
@media (min-width: 861px) { .work .sh-head h2 { margin-left: calc(-1 * clamp(24px, 3vw, 44px)) !important; } }

/* v54 — section heads: title left, intro right-aligned to the content edge */
@media (min-width: 1000px) {
  .sh-head, .work .sh-head, .expect .sh-head, .trusted .sh-head { display: flex !important; justify-content: space-between; align-items: last baseline; gap: 48px; padding-inline: 0 !important; }
  .sh-head p { max-width: 30em !important; margin: 0; }
  .work .sh-head h2 { margin-left: 0 !important; }
}
.trusted .fb-head { display: block !important; }
.trusted .fb-head .sh-head { margin-bottom: clamp(24px, 3vw, 36px); }
.trusted .tq-arrows { display: flex; justify-content: flex-end; }
/* case sections: text column pushed right, ends with the content edge */
@media (min-width: 821px) { .cs-row { grid-template-columns: minmax(0, 1fr) minmax(0, 40em) !important; } .cs-row .cs-body { max-width: none; } }
/* all projects: equal cards */
.pj-grid { grid-auto-rows: 1fr; }
.pj-t { white-space: normal; }
@media (min-width: 1001px) { .pj-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
.pj-card { min-height: 172px !important; } @media (max-width: 560px) { .pj-card { min-height: 164px !important; } }
/* v55 – section heads: side by side down to tablet, stacked only on phones; clients head back to title+copy left, arrows right; case rows never overlap */
.sh-head,.work .sh-head,.expect .sh-head{display:flex!important;justify-content:space-between;align-items:last baseline;gap:clamp(32px,5vw,64px);padding-inline:0!important;max-width:none!important}
.sh-head h2,.work .sh-head h2,.expect .sh-head h2{margin:0!important;flex:0 1 auto}
.sh-head p,.work .sh-head p,.expect .sh-head p{flex:0 1 26em;max-width:26em!important;margin:0!important;padding:0!important}
@media (max-width:640px){
  .sh-head,.work .sh-head,.expect .sh-head{display:block!important}
  .sh-head p,.work .sh-head p,.expect .sh-head p{max-width:none!important;margin-top:16px!important}
}
.trusted .fb-head{display:flex!important;justify-content:space-between;align-items:flex-end!important;gap:24px}
.trusted .fb-title p{max-width:30em}
.trusted .tq-arrows{flex:none}
@media (min-width:821px){ .cs-row{grid-template-columns:minmax(12em,1fr) minmax(0,40em)!important} }
.pj-m{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:1180px){ .ex-list{grid-template-columns:1fr} .ex-list h3 br{display:none} }
.ex-list p{text-wrap:pretty}
/* v56 – How I work back to three columns (stack only on phones/small tablets); hero lead never runs into the shapes */
@media (min-width:901px) and (max-width:1180px){ .ex-list{grid-template-columns:repeat(3,1fr)} .ex-list h3 br{display:inline} }
.ex-list p{text-wrap:wrap}
.hero2-sub{max-width:min(34em,100%)}
.hero2-sub{max-width:min(28em,86%)!important}
.hero2-sub{text-wrap:pretty}
@media (max-width:720px){
  .sh-head,.work .sh-head,.expect .sh-head{display:block!important}
  .sh-head p,.work .sh-head p,.expect .sh-head p{max-width:none!important;margin-top:16px!important}
}
/* v57 – projects banner: primary + secondary button */
.wp-cta .cta-btns{display:flex;flex-wrap:wrap;gap:12px;flex:none}
.wp-cta .refs-cta .btn.btn-2{background:transparent;border-color:rgba(255,255,255,.55);color:#fff}
.wp-cta .refs-cta .btn.btn-2:hover{background:var(--lime);border-color:var(--lime);color:var(--ink)}
@media (max-width:760px){ .wp-cta .cta-btns{width:100%} }
@media (max-width:1100px){ .wp-cta .refs-cta{flex-wrap:wrap!important} .wp-cta .cta-txt{flex:1 1 100%} }
