/* bissoruben.com · editorial minimal · light + dark */
:root {
  --bg: #fbfbfa;
  --bg-2: #f2f2ef;
  --ink: #121214;
  --ink-2: #5c5c5a;
  --ink-3: #8a8a86;
  --line: #e4e4e0;
  --accent: #8259f6;
  --accent-ink: #ffffff;
  --accent-soft: rgba(130, 89, 246, 0.12);
  --radius: 14px;
  --max: 1120px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Inter", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f0f11;
  --bg-2: #17171a;
  --ink: #f1f1ee;
  --ink-2: #a7a7a2;
  --ink-3: #6f6f6b;
  --line: #27272b;
  --accent: #9f84ff;
  --accent-ink: #0f0f11;
  --accent-soft: rgba(159, 132, 255, 0.16);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f11;
    --bg-2: #17171a;
    --ink: #f1f1ee;
    --ink-2: #a7a7a2;
    --ink-3: #6f6f6b;
    --line: #27272b;
    --accent: #9f84ff;
    --accent-ink: #0f0f11;
    --accent-soft: rgba(159, 132, 255, 0.16);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  overflow-x: hidden;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-links .hide-sm { display: none; }
@media (min-width: 720px) { .nav-links .hide-sm { display: inline; } }
.theme-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.05; font-weight: 600; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 58ch; line-height: 1.55; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.accent { color: var(--accent); }
em.soft { font-style: normal; color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 500; border: 1px solid var(--line); transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost:hover { border-color: var(--ink); }
.btn svg { width: 16px; height: 16px; }

/* ---------- sections ---------- */
section { padding: 96px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
.section-head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 720px; }
@media (min-width: 900px) { section { padding: 128px 0; } .section-head { margin-bottom: 64px; } }

/* ---------- hero ---------- */
.hero { padding: 72px 0 64px; }
.hero .grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 112px 0 88px; } .hero .grid { grid-template-columns: 1.35fr 1fr; gap: 64px; } }
.hero h1 { margin: 18px 0 22px; max-width: 12ch; }
.hero h1 .line { display: block; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.portrait { position: relative; width: min(100%, 420px); margin: 0 auto; aspect-ratio: 1; }
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.portrait .tag {
  position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  font-family: var(--mono); font-size: 12px; white-space: nowrap; box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.portrait .tag .pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-right: 8px; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5);} 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0);} 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0);} }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 64px; overflow: hidden; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 22px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
@media (min-width: 720px) { .stat { border-bottom: 0; } .stat:nth-child(2n) { border-right: 1px solid var(--line); } .stat:last-child { border-right: 0; } }
.stat .n { font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat .l { font-size: 13px; color: var(--ink-2); margin-top: 8px; }

/* ---------- work cards ---------- */
.work { display: grid; gap: 28px; }
.case {
  display: grid; gap: 22px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--bg-2);
  transition: border-color .2s ease, transform .2s ease;
}
.case:hover { border-color: var(--ink-3); transform: translateY(-2px); }
@media (min-width: 900px) { .case { grid-template-columns: 1fr 1fr; gap: 0; } .case.flip .media { order: 2; } }
.case, .case > * { min-width: 0; }
.case .media { position: relative; background: var(--bg-2); min-height: 260px; }
.case .media.diagram { background: #f4f4f1; padding: 18px; }
.case .media.diagram img { object-fit: contain; aspect-ratio: 4/3; height: 100%; }
.case .media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.case .media.frame { padding: 36px 0 0 36px; }
.case .media.frame img { border-radius: 14px 0 0 0; border: 1px solid var(--line); border-right: 0; border-bottom: 0; box-shadow: 0 20px 60px rgba(0,0,0,.14); aspect-ratio: auto; height: 100%; object-fit: cover; object-position: top left; }
.case .body { padding: 28px 24px 28px; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 900px) { .case .body { padding: 44px 44px; } }
.case h3 { margin-top: 4px; }
.case p { color: var(--ink-2); }
.metrics { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 6px; }
.metric .n { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.metric .l { font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.more { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.more svg { width: 14px; height: 14px; transition: transform .15s; }
.case:hover .more svg { transform: translateX(3px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 11.5px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--bg); }

/* more projects list */
.rows { border-top: 1px solid var(--line); margin-top: 56px; }
.row { min-width: 0; display: grid; grid-template-columns: 1fr; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
@media (min-width: 720px) { .row { grid-template-columns: 90px 1.1fr 2fr auto; } }
.row .y { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.row .t { font-weight: 600; letter-spacing: -0.01em; }
.row .d { color: var(--ink-2); font-size: 15px; }
.row .s { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.row a.t:hover { color: var(--accent); }

/* ---------- principles ---------- */
.principles { display: grid; gap: 18px; }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principle { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--bg-2); }
.principle .num { font-family: var(--mono); color: var(--accent); font-size: 12px; margin-bottom: 18px; }
.principle h3 { font-size: 21px; margin-bottom: 10px; }
.principle p { color: var(--ink-2); font-size: 15.5px; }
.stack { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.stack span { font-size: 13.5px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.proof { margin-top: 40px; display: grid; gap: 14px; }
@media (min-width: 720px) { .proof { grid-template-columns: repeat(3, 1fr); } }
.proof a { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s; }
.proof a:hover { border-color: var(--ink); }
.proof .k { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.proof .v { font-weight: 600; }

/* ---------- hardware timeline ---------- */
.versions { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .versions { grid-template-columns: repeat(5, 1fr); } }
.ver { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.ver img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .4s ease; }
.ver:hover img { transform: scale(1.04); }
.ver .cap { padding: 12px 14px; }
.ver .cap b { display: block; font-size: 14px; }
.ver .cap span { font-size: 12.5px; color: var(--ink-2); }
.ver .badge { position: absolute; top: 10px; left: 10px; font-family: var(--mono); font-size: 11px; background: var(--ink); color: var(--bg); padding: 4px 8px; border-radius: 6px; }

.gallery { margin-top: 56px; columns: 2; column-gap: 14px; }
@media (min-width: 720px) { .gallery { columns: 3; } }
.gallery figure { break-inside: avoid; margin: 0 0 14px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; background: var(--bg-2); }
.gallery img { width: 100%; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: 12.5px; color: var(--ink-2); padding: 10px 12px; }

.lightbox { position: fixed; inset: 0; background: rgba(8,8,10,.92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1200px, 100%); max-height: 86vh; border-radius: 10px; }
.lightbox .cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #ddd; font-size: 14px; }
.lightbox .x { position: absolute; top: 18px; right: 22px; color: #fff; font-size: 28px; background: none; border: 0; cursor: pointer; }

/* ---------- story ---------- */
.story { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .step { grid-template-columns: 120px 1fr; gap: 32px; padding: 26px 0; } }
.step .y { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 4px; }
.step b { display: block; font-family: var(--display); font-size: 19px; letter-spacing: -0.02em; margin-bottom: 4px; }
.step p { color: var(--ink-2); font-size: 15.5px; max-width: 64ch; }

/* ---------- writing ---------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-2); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card .k { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.card h3 { font-size: 20px; }
.card p { color: var(--ink-2); font-size: 15px; }
.card .go { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 500; }

/* ---------- contact ---------- */
.contact { text-align: left; }
.contact h2 { max-width: 14ch; }
.contact .email { font-family: var(--display); font-size: clamp(22px, 4vw, 40px); letter-spacing: -0.03em; font-weight: 600; margin: 26px 0 10px; display: inline-block; border-bottom: 2px solid var(--accent); }
.contact .email:hover { color: var(--accent); }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.links a { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.links a:hover { border-color: var(--ink); }

footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: 13.5px; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---------- case study pages ---------- */
.article { padding: 64px 0 96px; }
.article .head { max-width: 820px; margin-bottom: 48px; }
.article h1 { font-size: clamp(34px, 5.4vw, 60px); margin: 18px 0 20px; }
.article .meta { display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); margin-top: 22px; }
.article .meta b { color: var(--ink); font-weight: 500; }
.article .hero-img { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); margin: 0 0 56px; background: var(--bg-2); }
.article .hero-img img { width: 100%; }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); margin-bottom: 18px; font-size: 17px; }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose ul { color: var(--ink-2); margin: 0 0 18px 20px; }
.prose li { margin-bottom: 8px; }
.prose .callout { border-left: 3px solid var(--accent); padding: 6px 0 6px 20px; margin: 28px 0; color: var(--ink); font-family: var(--display); font-size: 20px; letter-spacing: -0.01em; line-height: 1.4; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 32px 0 48px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--bg-2); }
.kpi .n { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.kpi .l { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.figure { margin: 36px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.figure img { width: 100%; }
.figure figcaption { font-size: 13px; color: var(--ink-2); padding: 10px 14px; border-top: 1px solid var(--line); }
.two { display: grid; gap: 14px; margin: 36px 0; }
@media (min-width: 720px) { .two { grid-template-columns: 1fr 1fr; } }
.two .figure { margin: 0; }
.pager { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 72px; font-size: 15px; }
.pager a { display: flex; flex-direction: column; gap: 4px; }
.pager .k { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.pager a:hover { color: var(--accent); }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- v2 additions: B&W portraits, creds, banners ---------- */
.portrait img { background: #ffffff; border-radius: 28px; filter: grayscale(1) contrast(1.04); }
:root[data-theme="dark"] .portrait img { background: #f1f1ee; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .portrait img { background: #f1f1ee; } }
.creds { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; font-size: 13.5px; color: var(--ink-2); }
.creds span::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 600; }
.creds b { color: var(--ink); font-weight: 600; }

.banner { margin: 0 0 40px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.banner img { width: 100%; aspect-ratio: 21/9; object-fit: cover; object-position: center 40%; filter: grayscale(1); }
.banner figcaption { font-size: 13px; color: var(--ink-2); padding: 12px 16px; border-top: 1px solid var(--line); }

.story-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .story-grid { grid-template-columns: 1.5fr 1fr; gap: 64px; } .story-photo { position: sticky; top: 96px; } }
.story-photo { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.story-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(1); }
.story-photo figcaption { font-size: 13px; color: var(--ink-2); padding: 12px 16px; border-top: 1px solid var(--line); }

.contact-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.contact-photo { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.contact-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; filter: grayscale(1); }
.case .media img, .ver img, .gallery img, .article .hero-img img, .figure img { filter: grayscale(1); transition: filter .4s ease, transform .4s ease; }
.case:hover .media img, .ver:hover img, .gallery figure:hover img, .figure:hover img { filter: grayscale(0); }
.case .media.diagram img, .case .media.frame img { filter: none; }

/* ---------- v3: logo, product links, offers ---------- */
.brand .logo { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); }
.case { cursor: default; }
.case .actions { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.case .actions .more { padding-top: 0; margin-top: 0; }
.case .actions .more:hover { color: var(--accent); }
.visit { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.visit:hover { color: var(--accent); border-color: var(--accent); }
.offers { display: grid; gap: 12px; margin-top: 24px; }
.offer { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.offer b { font-weight: 600; }
.offer span { font-size: 14px; color: var(--ink-2); }

/* ---------- v4: transparent hero portrait ---------- */
.portrait img, :root[data-theme="dark"] .portrait img { background: transparent; border-radius: 0; object-fit: contain; filter: grayscale(1) contrast(1.04); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .portrait img { background: transparent; } }
.portrait { aspect-ratio: auto; }
.portrait::before { content: ""; position: absolute; inset: 12% 6% 0 6%; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-soft), transparent 72%); z-index: 0; }
.portrait img { position: relative; z-index: 1; }
.portrait .tag { z-index: 2; }

/* ---------- v5: UX review pass ---------- */
/* anchor targets clear the sticky nav */
section, [id] { scroll-margin-top: 84px; }
/* keyboard focus is visible everywhere */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
/* hero portrait dissolves into the page instead of a hard bottom edge */
.portrait img { -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); }
.portrait .tag { bottom: 6px; }
/* nothing above the fold waits for JavaScript */
.hero .reveal { opacity: 1; transform: none; }
/* nav links: clearer current-section affordance on hover */
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--accent); transition: right .2s ease; }
.nav-links a:hover::after { right: 0; }
/* case cards: image never taller than the text on wide screens, consistent rhythm */
@media (min-width: 900px) { .case .media img { aspect-ratio: auto; height: 100%; min-height: 420px; max-height: 560px; } }
.case .media.diagram img { max-height: none; }
/* gallery and figures reserve space to avoid layout shift */
.gallery img { aspect-ratio: 4/3; object-fit: cover; }
/* case study hero images: wide, not tall */
.article .hero-img img { aspect-ratio: 16/9; object-fit: cover; max-height: 620px; }
/* rows: hover lift and clearer hierarchy */
.row { transition: background .15s; padding-left: 8px; padding-right: 8px; margin: 0 -8px; border-radius: 10px; }
.row:hover { background: var(--bg-2); }
/* footer with navigation and socials */
footer .wrap { flex-direction: column; align-items: flex-start; gap: 18px; }
footer .fnav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer .fnav a:hover { color: var(--ink); }
footer .fmeta { display: flex; flex-wrap: wrap; gap: 8px 24px; width: 100%; justify-content: space-between; }
/* buttons: clearer pressed state */
.btn:active { transform: translateY(0) scale(.98); }
/* lead paragraphs never exceed a comfortable measure */
.case p, .principle p, .step p { max-width: 62ch; }

/* ---------- v6: WhatsApp ---------- */
.wa { width: 18px; height: 18px; flex: none; }
.links a { display: inline-flex; align-items: center; gap: 6px; }
.links .wa { width: 16px; height: 16px; color: #25d366; }
.btn .wa { color: #25d366; }
.btn.primary .wa { color: #25d366; }

/* ---------- v7: company logos ---------- */
.plogo { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; margin-right: 4px; }
.eyebrow .plogo { order: -1; }
.eyebrow:has(.plogo)::before { display: none; }
.tlogo { display: inline-flex; align-items: center; gap: 8px; }
.ventures { display: grid; gap: 10px; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; align-items: center; }
@media (min-width: 720px) { .ventures { grid-template-columns: auto repeat(4, 1fr); gap: 10px 18px; } }
.vlabel { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.venture { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; transition: background .15s; }
.venture:hover { background: var(--bg-2); }
.venture img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }
.venture span { display: grid; line-height: 1.25; }
.venture b { font-size: 14px; font-weight: 600; }
.venture small { font-size: 12px; color: var(--ink-2); }
.creds .faith::before { content: none; }
