/* =========================================================
   Sophia Berschauer — Portfolio
   Fonts: Inter, JetBrains Mono (SIL OFL 1.1), self-hosted in assets/fonts
   ========================================================= */

/* ---------- Self-hosted fonts (no requests to Google) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---------- Colour ---------- */
  --bg: #ffffff;
  --surface: #f4f4f2;      /* cards, pills */
  --surface-2: #ebebe7;    /* hover on light surfaces, placeholder UI */
  --line: #e3e3de;         /* dividers, hairlines */
  --ink: #141414;          /* primary text, dark surfaces */
  --ink-hover: #2a2a2a;    /* hover on dark surfaces */
  --ink-2: #3b3b38;        /* secondary text */
  --mute: #6d6d68;         /* tertiary text — 5.3:1 on white, 4.9:1 on surface */
  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, .7);
  --on-dark-3: rgba(255, 255, 255, .56);
  --ok: #1d9e58;
  --focus: #c9644a;

  /* Brand gradient stops */
  --c-peach: #f0a873;
  --c-rose: #d9707a;
  --c-plum: #8a4a78;
  --c-teal: #4f9a83;

  /* Gradients — shared with the project covers */
  --g-line: linear-gradient(100deg, var(--c-peach) 0%, var(--c-rose) 38%, var(--c-plum) 70%, var(--c-teal) 100%);
  --g-warm: linear-gradient(90deg, var(--c-peach), var(--c-plum));
  --g-green: linear-gradient(90deg, #8fcaa9, #1d4e4a);
  --g-rose: linear-gradient(90deg, #eaa7a0, #7d4256);
  --g-dominion:
    radial-gradient(90% 80% at 10% 0%, var(--c-peach) 0%, transparent 60%),
    radial-gradient(80% 90% at 100% 100%, #4a2a6b 0%, transparent 65%),
    linear-gradient(135deg, #c9644a, #5a2d4f);
  --g-marketplace:
    radial-gradient(90% 80% at 0% 0%, #a8d8bd 0%, transparent 60%),
    radial-gradient(80% 90% at 100% 100%, #123f3d 0%, transparent 65%),
    linear-gradient(135deg, var(--c-teal), #1d4e4a);
  --g-4bolta:
    radial-gradient(90% 80% at 0% 0%, #b4c6d8 0%, transparent 60%),
    radial-gradient(80% 90% at 100% 100%, #141d2a 0%, transparent 65%),
    linear-gradient(135deg, #5d7590, #23303f);
  --g-ecommerce:
    radial-gradient(90% 80% at 0% 0%, #f3d6bb 0%, transparent 60%),
    radial-gradient(80% 90% at 100% 100%, #6b3446 0%, transparent 65%),
    linear-gradient(135deg, #d38c86, #7d4256);

  /* ---------- Type ---------- */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-display: clamp(40px, 5vw, 68px);   /* h1 */
  --fs-h2: clamp(36px, 4.4vw, 60px);      /* section titles, contact */
  --fs-h3: clamp(22px, 2vw, 28px);        /* project titles */
  --fs-lead: clamp(22px, 2.1vw, 28px);    /* hero intro + traits */
  --fs-metric: clamp(28px, 2.4vw, 32px);  /* KPI values */
  --fs-title: 22px;                       /* card titles, cover titles */
  --fs-body-lg: clamp(18px, 1.5vw, 20px); /* quotes, contact copy */
  --fs-brand: 18px;                       /* logo, footer name */
  --fs-body: 16px;
  --fs-ui: 15px;                          /* nav, small buttons, meta */
  --fs-sm: 14px;                          /* badges, footnotes */
  --fs-xs: 13px;                          /* chips, labels */

  --lh-tight: 1.05;
  --lh-heading: 1.2;
  --lh-snug: 1.25;
  --lh-body: 1.5;

  --ls-display: -0.04em;
  --ls-heading: -0.025em;
  --ls-title: -0.015em;

  /* ---------- Space (4 / 8 scale) ---------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;

  --gap-grid: var(--s-4);                  /* between cards in a grid */
  --pad-card: clamp(24px, 2.5vw, 32px);    /* inside cards */
  --pad-block: clamp(32px, 5vw, 64px);     /* inside the contact block */
  --section: clamp(48px, 5vw, 72px);       /* between sections */
  --head-gap: clamp(24px, 3vw, 40px);      /* section title → content */

  /* ---------- Radius ---------- */
  --r-xl: 32px;   /* cards, covers, portrait, contact */
  --r-md: 16px;   /* nested tiles */
  --r-sm: 8px;    /* small inner shapes */
  --r-pill: 999px;

  --max: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --header-h: 76px;
  --ctl: 44px;    /* small controls: nav items, small buttons */
  --ctl-lg: 52px; /* main buttons */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--s-4)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-sm); }

.container { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s-4); top: -60px; z-index: 50; padding: 10px var(--s-4); background: var(--ink); color: var(--on-dark); border-radius: var(--r-pill); }
.skip:focus { top: var(--s-3); }

.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Text styles ---------- */
.t-h2, .section-head h2, .contact h2 {
  font-size: var(--fs-h2); font-weight: 500; line-height: var(--lh-tight); letter-spacing: var(--ls-display);
  text-wrap: balance;
}
.t-title, .card h3, .cover-title {
  font-size: var(--fs-title); font-weight: 500; line-height: var(--lh-heading); letter-spacing: var(--ls-title);
}
.t-body-mute, .card p, .info-head p { font-size: var(--fs-body); color: var(--mute); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-3);
  min-height: var(--ctl-lg); padding: 6px var(--s-6) 6px 6px;
  border-radius: var(--r-pill);
  font-size: var(--fs-body); font-weight: 500; line-height: 1.2; letter-spacing: -0.005em; white-space: nowrap;
  transition: background-color .2s ease;
}
.btn-ic {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  transition: transform .25s ease;
}
.btn:hover .btn-ic { transform: rotate(-45deg); }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark .btn-ic { background: var(--bg); color: var(--ink); }
.btn-dark:hover { background: var(--ink-hover); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light .btn-ic { background: var(--ink); color: var(--on-dark); }
.btn-light:hover { background: var(--surface-2); }
.btn-sm { min-height: var(--ctl); padding: 0 var(--s-5); gap: var(--s-2); font-size: var(--fs-ui); }
.btn-sm .i { width: 16px; height: 16px; }

.text-link {
  font-size: var(--fs-body); font-weight: 500;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px;
}

/* ---------- Gradient hover for links ---------- */
.mobile-nav a:not(.btn):hover span, .text-link:hover, .lang a:hover,
.footer-col a:hover span, .footer-bottom a:hover, .contact-list a:hover {
  background-image: var(--g-line);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.text-link:hover { text-decoration-color: var(--c-rose); }

/* ---------- Chips: gradient outline, no fill ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chips li {
  --chip-bg: var(--surface);
  padding: 7px 11px; /* + 1px border = 8 / 12 */
  border: 1px solid transparent; border-radius: var(--r-pill);
  background: linear-gradient(var(--chip-bg), var(--chip-bg)) padding-box, var(--chip-g, var(--g-warm)) border-box;
  font-size: var(--fs-xs); line-height: 1; color: var(--ink-2); white-space: nowrap;
}
.card:nth-child(1), .quote:nth-child(1) { --chip-g: var(--g-warm); }
.card:nth-child(2), .quote:nth-child(2) { --chip-g: var(--g-green); }
.card:nth-child(3) { --chip-g: var(--g-rose); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-6);
  min-height: var(--header-h);
}
.logo { font-size: var(--fs-brand); font-weight: 600; letter-spacing: var(--ls-title); justify-self: start; }
.nav-pill {
  display: flex; gap: 2px; padding: var(--s-1);
  background: var(--surface); border-radius: var(--r-pill);
}
.nav-pill a {
  display: inline-flex; align-items: center;
  min-height: calc(var(--ctl) - var(--s-2)); padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  font-size: var(--fs-ui); font-weight: 500; color: var(--ink-2);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.nav-pill a:hover, .nav-pill a:focus-visible {
  /* white pill + gradient text: two layers, clipped separately */
  background-image: var(--g-line), linear-gradient(var(--bg), var(--bg));
  -webkit-background-clip: text, padding-box; background-clip: text, padding-box;
  background-origin: content-box, padding-box; /* gradient spans the word, not the pill */
  color: transparent;
  box-shadow: 0 1px 2px rgba(20, 20, 20, .06), 0 2px 8px -2px rgba(20, 20, 20, .08);
}
.header-actions { display: flex; align-items: center; gap: var(--s-6); justify-self: end; }
.lang { display: inline-flex; gap: 6px; font-size: var(--fs-sm); font-weight: 500; color: var(--mute); }
.lang a[aria-current="true"] { color: var(--ink); }
.menu-btn {
  display: none; min-height: var(--ctl); padding: 0 var(--s-5);
  background: var(--surface); border: 0; border-radius: var(--r-pill);
  font-size: var(--fs-ui); font-weight: 500; cursor: pointer;
}
.mobile-nav { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav nav { display: flex; flex-direction: column; padding-block: var(--s-2) var(--s-6); }
.mobile-nav a:not(.btn) { padding: var(--s-4) 0; font-size: var(--fs-title); font-weight: 500; letter-spacing: var(--ls-title); line-height: var(--lh-heading); border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: var(--s-6); align-self: flex-start; gap: var(--s-2); padding: 0 var(--s-6); }
.mobile-nav .lang { margin-top: var(--s-6); font-size: var(--fs-ui); }
.mobile-nav .lang a { padding: 0; border: 0; font-size: inherit; letter-spacing: 0; }

/* ---------- Hero ---------- */
.hero-section { padding-block: clamp(40px, 5vw, 72px) var(--section); }
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hello, .sub, .traits { font-size: var(--fs-lead); font-weight: 500; line-height: var(--lh-snug); letter-spacing: var(--ls-heading); }
.sub { margin-top: var(--s-1); text-wrap: balance; }
.hero h1 {
  margin-top: clamp(24px, 2.8vw, 32px);
  font-size: var(--fs-display); font-weight: 500; line-height: var(--lh-tight); letter-spacing: var(--ls-display);
  text-wrap: balance;
}
.traits { margin-top: clamp(16px, 1.8vw, 24px); height: calc(1em * 1.25); white-space: nowrap; overflow: hidden; color: var(--mute); }
.typer { display: inline-flex; align-items: center; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 3px; background: linear-gradient(var(--c-peach), var(--c-plum)); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ctas { display: flex; align-items: center; gap: var(--s-8); flex-wrap: wrap; margin-top: clamp(32px, 3.6vw, 48px); }

/* Figma-style selection frame */
.sel {
  position: relative; display: inline-block;
  padding: 0 .1em; margin-inline: -.02em;
}
.sel::before, .frame::before {
  content: ""; position: absolute; inset: 0; padding: 1.5px;
  background: var(--g-line);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.sel-text { background: var(--g-line); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sel .h, .frame .h {
  position: absolute; z-index: 1; width: 9px; height: 9px;
  background: var(--bg); border: 1.5px solid var(--c-peach);
}
.sel .tl, .frame .tl { top: -5.5px; left: -5.5px; }
.sel .tr, .frame .tr { top: -5.5px; right: -5.5px; border-color: var(--c-plum); }
.sel .bl, .frame .bl { bottom: -5.5px; left: -5.5px; border-color: var(--c-rose); }
.sel .br, .frame .br { bottom: -5.5px; right: -5.5px; border-color: var(--c-teal); }

.portrait {
  position: relative;
  justify-self: end; width: 100%; max-width: 300px;
  aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.status {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-4) var(--s-2) var(--s-3);
  background: rgba(255, 255, 255, .86); border-radius: var(--r-pill);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: var(--fs-sm); font-weight: 500; line-height: 1.2; color: var(--ink-2); white-space: nowrap;
}
.portrait .status { position: absolute; left: var(--s-4); bottom: var(--s-4); }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(29, 158, 88, .16); }
.dot::after { /* soft pulse */
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .55; }
  70%, 100% { transform: scale(2.8); opacity: 0; }
}

/* ---------- Section heads ---------- */
.section-head { margin-bottom: var(--head-gap); }

/* ---------- Shared card surface ---------- */
.card, .info, .quote {
  padding: var(--pad-card);
  background: var(--surface); border-radius: var(--r-xl);
}

/* ---------- Expertise ---------- */
.expertise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-grid); }
.card { display: flex; flex-direction: column; gap: var(--s-8); }
.card-ic { width: 32px; height: 32px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.card p { margin: var(--s-3) 0 var(--s-6); }

/* ---------- Projects ---------- */
.projects { display: grid; gap: clamp(40px, 5vw, 72px); }
.project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--gap-grid); }
.project .cover { order: 2; }

.cover {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 520px; padding: var(--pad-card);
  border-radius: var(--r-xl); overflow: hidden; color: var(--on-dark);
  isolation: isolate;
}
.cover::after { /* bottom fade for legibility */
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%; z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, .28), transparent);
}
.cover--dominion { background: var(--g-dominion); }
.cover--marketplace { background: var(--g-marketplace); }
.cover--4bolta { background: var(--g-4bolta); }
.cover--ecommerce { background: var(--g-ecommerce); }

/* Placeholder "screen" — replace with a project screenshot later */
.shot {
  position: absolute; inset: var(--pad-card) var(--pad-card) 112px;
  display: grid; grid-template-columns: 22% 1fr; grid-template-rows: 32px 1fr; gap: var(--s-3);
  padding: 0 var(--s-4) var(--s-4);
  background: rgba(255, 255, 255, .94); border-radius: var(--r-md);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .35);
  transition: transform .35s ease;
}
.shot-bar { grid-column: 1 / -1; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 6px 50%, var(--line) 4px, transparent 4.5px), radial-gradient(circle at 20px 50%, var(--line) 4px, transparent 4.5px), radial-gradient(circle at 34px 50%, var(--line) 4px, transparent 4.5px); }
.shot-side { border-radius: var(--r-sm); background: repeating-linear-gradient(to bottom, var(--surface) 0 10px, transparent 10px 22px); }
.shot-main { border-radius: var(--r-sm); background: var(--surface); }
.cover:hover .shot { transform: translateY(-4px); }
.frame { position: absolute; inset: -8px; opacity: 0; transition: opacity .2s ease; }
.frame::before { background: rgba(255, 255, 255, .9); }
.cover:hover .frame { opacity: 1; }

.cover-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); }
.cover-ind { margin-top: var(--s-1); font-size: var(--fs-sm); color: rgba(255, 255, 255, .92); }
.cover-num { font-family: var(--mono); font-size: var(--fs-sm); color: rgba(255, 255, 255, .92); }

.info { display: flex; flex-direction: column; gap: var(--s-6); }
.info-head { display: flex; flex-direction: column; gap: var(--s-3); }
.info h3 { font-size: var(--fs-h3); font-weight: 500; line-height: var(--lh-heading); letter-spacing: var(--ls-heading); text-wrap: balance; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); margin-top: auto; }
.kpi-note { margin-top: calc(var(--s-2) * -1); font-size: var(--fs-sm); color: var(--mute); }
.kpis div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--s-2); padding: var(--s-4); background: var(--bg); border-radius: var(--r-md); }
.kpis dd { font-size: var(--fs-metric); font-weight: 500; line-height: 1; letter-spacing: -0.035em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.trend { margin-right: .25em; background: var(--g-line); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpis dt { font-size: var(--fs-xs); line-height: 1.35; color: var(--mute); }
.info .btn { align-self: flex-start; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--gap-grid); align-items: start; }
.quote { display: flex; flex-direction: column; gap: var(--s-6); }
.quote blockquote { max-width: 68ch; } /* comfortable line length when cards go full width */
.quote blockquote p { font-size: var(--fs-body-lg); line-height: var(--lh-body); letter-spacing: -0.01em; }
.quote blockquote b { font-weight: 600; color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-ui); line-height: 1.35; }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--g-dominion); color: var(--on-dark); font-size: var(--fs-sm); font-weight: 500; letter-spacing: .02em; flex: none; }
.quote:nth-child(2) .avatar { background: var(--g-marketplace); }
.quote b { font-weight: 600; }
.role { color: var(--mute); }

/* ---------- Contact ---------- */
.contact-section { padding-top: 0; }
.contact {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: end;
  padding: var(--pad-block);
  background: var(--ink); color: var(--on-dark); border-radius: var(--r-xl);
}
.contact-text p { margin-top: var(--s-6); max-width: 48ch; font-size: var(--fs-body-lg); color: var(--on-dark-2); }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-6); justify-self: end; }
.contact-list dt { font-size: var(--fs-xs); color: var(--on-dark-3); }
.contact-list dd { margin-top: var(--s-1); font-size: var(--fs-body-lg); overflow-wrap: anywhere; }
.contact-list a { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(255, 255, 255, .35); transition: text-decoration-color .2s ease; }
.contact-list a:hover { text-decoration-color: var(--c-peach); }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(48px, 6vw, 80px); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) 180px 180px; gap: var(--s-10) clamp(32px, 4vw, 64px); }
.footer-name { font-size: var(--fs-brand); font-weight: 600; letter-spacing: var(--ls-title); }
.footer-role { margin-top: var(--s-1); font-size: var(--fs-ui); color: var(--mute); }
.footer-h { font-size: var(--fs-ui); font-weight: 500; color: var(--mute); }
.footer-col ul { margin-top: var(--s-4); }
.footer-col a {
  display: block; padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-body); color: var(--ink-2);
  transition: color .2s ease, border-color .2s ease;
}
.footer-col a:hover { border-image: var(--g-line) 1; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-3) var(--s-8);
  margin-top: clamp(48px, 6vw, 80px);
  font-size: var(--fs-sm); color: var(--mute);
}
.footer-word {
  margin: clamp(8px, 1vw, 16px) 0 -0.3em;
  font-size: 37vw; font-weight: 600; line-height: 1; letter-spacing: -0.065em;
  text-align: center; white-space: nowrap;
  color: var(--surface);
  user-select: none; pointer-events: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .expertise { grid-template-columns: minmax(0, 1fr); }
  .project { grid-template-columns: minmax(0, 1fr); }
  .project .cover { order: 0; }
  .cover { min-height: 440px; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .nav-pill, .cv-link, .header-actions .lang { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }

  .hero { grid-template-columns: minmax(0, 1fr); }
  .portrait { order: -1; justify-self: start; aspect-ratio: 1 / 1; max-width: 240px; }

  .contact { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .contact-actions { justify-self: start; }
}

@media (max-width: 560px) {
  :root { --r-xl: 24px; --fs-metric: 24px; }
  .portrait { max-width: 168px; }
  .portrait .status { left: var(--s-3); bottom: var(--s-3); padding: 6px var(--s-3) 6px 10px; font-size: var(--fs-xs); }
  .ctas { gap: var(--s-6); }
  .cover { min-height: 360px; }
  .shot { bottom: 104px; }
  .kpis div { padding: var(--s-3); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

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


/* =========================================================
   Case study pages
   Built for scanning: every section = label → heading → one-line point → visual proof
   ========================================================= */
.case--dominion { --g-case: var(--g-dominion); --chip-g: var(--g-warm); }
.case--marketplace { --g-case: var(--g-marketplace); --chip-g: var(--g-green); --g-accent: linear-gradient(100deg, var(--c-teal), #1d4e4a); --tint: #e7f1ec; }
.case--4bolta { --g-case: var(--g-4bolta); --chip-g: linear-gradient(90deg, #b4c6d8, #23303f); --g-accent: linear-gradient(100deg, #5d7590, #23303f); --tint: #e9eef3; }
.case--ecommerce { --g-case: var(--g-ecommerce); --chip-g: var(--g-rose); --g-accent: linear-gradient(100deg, #d38c86, #7d4256); --tint: #f6ecec; }

.case {
  --section: clamp(40px, 4.4vw, 64px);    /* ~12% tighter than the homepage */
  --fs-case-h1: clamp(40px, 8.6vw, 128px); /* "European E-commerce" fits one line from tablet up */
  --fs-case-h2: clamp(30px, 3.4vw, 48px);
  --fs-stat: clamp(36px, 4vw, 56px);
  --fs-read: 17px;                        /* body copy on case pages */
}

/* ---------- Text styles ---------- */
.case-h2 {
  font-size: var(--fs-case-h2); font-weight: 500; line-height: 1.1; letter-spacing: -0.035em;
  text-wrap: balance;
}
.case-lead { margin-top: var(--s-5); max-width: 62ch; font-size: var(--fs-body-lg); line-height: var(--lh-body); color: var(--ink-2); }
.case-lead b, .read b { font-weight: 600; color: var(--ink); }
.case-head { max-width: 820px; margin-bottom: var(--head-gap); }
.read { font-size: var(--fs-read); line-height: var(--lh-body); color: var(--ink-2); }
.note { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--mute); }
.eyebrow { font-size: var(--fs-sm); font-weight: 600; color: var(--mute); }

/* Section label: gradient-outlined pill, same family as the chips */
.label {
  display: inline-flex; align-items: center;
  margin-bottom: var(--s-4); padding: 6px var(--s-3);
  border: 1px solid transparent; border-radius: var(--r-md); /* pill on one line, soft box if it wraps */
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--chip-g) border-box;
  font-size: var(--fs-sm); font-weight: 500; line-height: 1.2; color: var(--ink-2);
}

/* ---------- Cover ---------- */
.case-hero { padding-block: clamp(24px, 3vw, 40px) var(--section); }
.back {
  display: inline-flex; align-items: center; gap: var(--s-2);
  margin-bottom: clamp(24px, 3vw, 40px);
  font-size: var(--fs-ui); font-weight: 500; color: var(--mute);
}
.back:hover span { background-image: var(--g-line); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case-hero h1 { font-size: var(--fs-case-h1); font-weight: 500; line-height: .95; letter-spacing: -0.055em; }
.case-hero .case-lead { margin-top: var(--s-4); font-size: var(--fs-lead); line-height: var(--lh-snug); letter-spacing: var(--ls-heading); font-weight: 500; color: var(--ink); }
.case-hero .chips { margin-top: var(--s-6); }
.case-hero .chips li { --chip-bg: var(--bg); }

.case-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); margin-top: clamp(32px, 4vw, 48px); }
.case-facts div { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.case-facts dt { font-size: var(--fs-sm); color: var(--mute); }
.case-facts dd { margin-top: var(--s-1); font-size: var(--fs-read); font-weight: 500; line-height: var(--lh-snug); }

.hero-media {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: clamp(32px, 4vw, 48px);
  aspect-ratio: 16 / 7; border-radius: var(--r-xl);
  background: var(--g-case);
}
.hero-media .shot { inset: 9% 24% -6% 6%; }
.hero-phone {
  position: absolute; right: 7%; bottom: -6%; height: 84%; aspect-ratio: 9 / 18;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .96); border-radius: 28px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45);
}

/* ---------- Media placeholders — replace with real screens ---------- */
.media {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 16 / 10; border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface);
}
.ph-label, .media > span {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-3); border-radius: var(--r-pill);
  background: var(--bg);
  font-family: var(--mono); font-size: var(--fs-xs); color: var(--mute); text-align: center;
}
.ph-label::before, .media > span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--g-line); flex: none; }
.hero-phone .ph-label { background: var(--surface); }
.media--portrait { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 7; }
.media--phone { aspect-ratio: 9 / 17; }
.media--4-3 { aspect-ratio: 4 / 3; }


/* Captions as headings above visuals */
.cap { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--s-3); }
.cap b { font-size: var(--fs-title); font-weight: 500; line-height: var(--lh-heading); letter-spacing: var(--ls-title); }
.cap span { font-size: var(--fs-ui); color: var(--mute); }

/* Gradient backdrop, as on the cover: screens sit on the case gradient */
.showcase { padding: clamp(20px, 4vw, 56px); border-radius: var(--r-xl); background: var(--g-case); }
/* Secondary text on the gradients: lighter areas need more opacity than on black */
.showcase, .impact, .iteration .fix { --on-dark-2: rgba(255, 255, 255, .9); }
.showcase .media {
  background: rgba(255, 255, 255, .94); border-radius: var(--r-md);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .35);
}
.showcase .media > span { background: var(--surface); }
/* Smaller backdrop around a single screenshot inside a figure */
.showcase--frame { padding: clamp(12px, 2.2vw, 28px); border-radius: 24px; }

/* Real screenshots: fill the frame; click opens the lightbox */
.media > img, .shot > img, .hero-phone > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-media .shot:has(> img), .hero-phone:has(> img) { overflow: hidden; padding: 0; }
/* Dark product screens: dark frame behind the image while it loads */
.case--dominion :is(.shot, .hero-phone):has(> img), .cover--dominion .shot:has(> img) { background: #0b0b0b; }
/* Homepage cover with a real screenshot: no overflow clip, so the hover frame stays visible */
.cover .shot:has(> img) { display: block; padding: 0; }
.cover .shot > img { border-radius: inherit; }
.cover .shot > img, .hero-media .shot > img { object-position: top left; }
.case main img[role="button"] { cursor: zoom-in; }
.case main img[role="button"]:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0;
  padding: clamp(56px, 6vw, 80px) clamp(16px, 4vw, 48px) clamp(16px, 4vw, 48px);
  border: 0; background: rgba(20, 20, 20, .94); overflow: auto; cursor: zoom-out;
}
.lightbox[open] { display: flex; animation: lightbox-in .2s ease; }
.lightbox::backdrop { background: transparent; }
.lightbox img { flex: none; margin: auto; max-width: min(100%, 1800px); height: auto; border-radius: var(--r-md); cursor: default; }
.lightbox-close {
  position: fixed; top: var(--s-4); right: var(--s-4);
  height: var(--ctl); padding: 0 var(--s-5); border: 0; border-radius: var(--r-pill);
  background: var(--bg); color: var(--ink); font: inherit; font-size: var(--fs-ui); font-weight: 500; cursor: pointer;
}
html.no-scroll { overflow: hidden; }
@keyframes lightbox-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } }

/* ---------- Before / after ---------- */
.state {
  align-self: flex-start; margin-bottom: var(--s-2); padding: 4px var(--s-3);
  border: 1px solid transparent; border-radius: var(--r-pill); background: var(--surface);
  font-size: var(--fs-xs); font-weight: 600; color: var(--mute) !important;
}
.state--after { border: 1px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--g-line) border-box; color: var(--ink) !important; }

/* ---------- Grids ---------- */
.grid-2, .grid-3 { display: grid; gap: var(--gap-grid); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap-grid); }
.grid-main > .media, .grid-main > figure > .media { aspect-ratio: auto; height: 100%; min-height: 360px; }
.grid-main > figure { display: flex; flex-direction: column; }
.grid-main > figure > .media { flex: 1; }
.grid-main .stack { display: grid; grid-template-rows: 1fr 1fr; gap: var(--gap-grid); }
.grid-main .stack .media { aspect-ratio: 4 / 3; }

/* ---------- Summary + outcome ---------- */
.summary { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: stretch; }
.summary-lead { margin-top: var(--s-4); max-width: 30ch; font-size: var(--fs-lead); font-weight: 500; line-height: var(--lh-snug); letter-spacing: var(--ls-heading); text-wrap: balance; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); margin-top: clamp(32px, 3vw, 40px); }
.fact { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.fact h3 { margin-bottom: var(--s-2); font-size: var(--fs-read); font-weight: 600; line-height: var(--lh-snug); }

.impact {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: var(--s-6); padding: var(--pad-card);
  background: var(--g-case); border-radius: var(--r-xl); color: var(--on-dark);
}
.impact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .2), transparent 70%); }
.impact .eyebrow { margin-bottom: var(--s-3); color: var(--on-dark-2); }
.impact-group + .impact-group { padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, .22); }
.impact-group:last-child { margin-top: auto; }
.outcome { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.outcome strong { display: block; font-size: var(--fs-stat); font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.outcome span { display: block; margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--on-dark-2); }
.impact .kpis div { color: var(--ink); }
.impact .note { color: var(--on-dark-2); }
.impact--stack .outcome { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
.impact--stack .outcome div + div { padding-top: var(--s-6); border-top: 1px solid rgba(255, 255, 255, .22); }
.impact--stack .outcome strong { font-size: clamp(48px, 5vw, 72px); }
.impact--stack .outcome span { font-size: var(--fs-body); font-weight: 500; color: var(--on-dark); }
.impact--stack .outcome small { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--on-dark-2); }
.impact--stack .note { margin-top: auto; }

/* ---------- Challenges ---------- */
.probs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.prob { display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.prob-num {
  margin-bottom: var(--s-3);
  font-size: clamp(36px, 3.4vw, 48px); font-weight: 500; line-height: 1; letter-spacing: -0.04em;
  background: var(--g-accent, var(--g-line)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.prob h3 { font-size: var(--fs-h3); font-weight: 500; line-height: var(--lh-heading); letter-spacing: var(--ls-heading); }
.prob p { max-width: 44ch; font-size: var(--fs-read); color: var(--ink-2); }

/* ---------- Flow: one action → many updates ---------- */
.flow { display: grid; grid-template-columns: auto clamp(40px, 5vw, 72px) minmax(0, 1fr); align-items: center; gap: var(--s-4); margin-bottom: var(--gap-grid); padding: var(--pad-card); background: var(--surface); border-radius: var(--r-xl); }
.flow .eyebrow { grid-column: 1 / -1; }
.flow-source { display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-4) var(--s-6); font-size: var(--fs-body-lg); border-radius: var(--r-pill); background: var(--ink); color: var(--on-dark); font-weight: 500; white-space: nowrap; }
.flow-arrow { position: relative; height: 2px; background: var(--g-line); border-radius: 2px; }
.flow-arrow::after { content: ""; position: absolute; right: -1px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--c-teal); border-right: 2px solid var(--c-teal); transform: translateY(-50%) rotate(45deg); }
.flow-targets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.flow-targets li {
  padding: var(--s-4) var(--s-4); border: 1px solid transparent; border-radius: var(--r-pill);
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--chip-g) border-box;
  font-size: var(--fs-body-lg); font-weight: 500; line-height: 1.2; text-align: center; white-space: nowrap;
}

/* ---------- Recovery: steps + state + scope in one panel ---------- */
.recovery { display: grid; gap: clamp(20px, 2.5vw, 32px); color: var(--on-dark); }
.recovery .eyebrow { margin-bottom: calc(var(--s-3) * -1); color: var(--on-dark-2); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-grid); counter-reset: step; }
.steps li {
  position: relative; display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-5) var(--s-6);
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); border-radius: var(--r-md);
}
.steps li::before { counter-increment: step; content: "0" counter(step); margin-bottom: var(--s-2); font-size: var(--fs-sm); font-weight: 600; color: var(--on-dark-2); }
.steps b { font-size: var(--fs-title); font-weight: 500; line-height: var(--lh-heading); letter-spacing: var(--ls-title); }
.steps span { color: var(--on-dark-2); }
.steps li:not(:last-child)::after { /* connector */
  content: ""; position: absolute; top: 50%; right: calc(var(--gap-grid) * -1 - 1px); width: var(--gap-grid); height: 1px; background: rgba(255, 255, 255, .5);
}
.steps li:last-child { border-color: var(--bg); background: var(--bg); color: var(--ink); }
.steps li:last-child::before, .steps li:last-child span { color: var(--mute); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-grid); padding-top: clamp(20px, 2.5vw, 32px); border-top: 1px solid rgba(255, 255, 255, .22); }
.stats div { display: flex; flex-direction: column; gap: var(--s-2); }
.stats strong { font-size: var(--fs-stat); font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.stats span { font-size: var(--fs-ui); color: var(--on-dark-2); }

/* ---------- Phone groups ---------- */
.phone-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px); }
.phone-group { display: flex; flex-direction: column; gap: var(--s-5); }
.group-label { display: flex; flex-direction: column; gap: 2px; color: var(--on-dark); }
.group-label b { font-size: var(--fs-h3); font-weight: 600; line-height: var(--lh-heading); letter-spacing: var(--ls-heading); }
.group-label span { font-size: var(--fs-body); color: rgba(255, 255, 255, .86); }
.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }

/* ---------- Design system ---------- */
/* Captions share row 1, so both media blocks start and end on the same lines */
.ds-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto auto auto; gap: var(--gap-grid); }
.ds-main, .ds-side { display: grid; grid-template-rows: subgrid; }
.ds-main { grid-column: 1; grid-row: 1 / 4; }
.ds-side { grid-column: 2; grid-row: 1 / 3; }
.ds-grid .handoff { grid-column: 2; grid-row: 3; }
.ds-grid .cap { margin-bottom: 0; }
.ds-main .media { grid-row: 2 / 4; aspect-ratio: auto; }
.handoff { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--pad-card); background: var(--surface); border-radius: var(--r-xl); }
.handoff strong {
  font-size: clamp(56px, 6vw, 88px); font-weight: 500; line-height: .9; letter-spacing: -0.05em;
  background: var(--g-accent, var(--g-line)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.handoff .eyebrow { margin-top: calc(var(--s-2) * -1); }
.handoff b { font-size: var(--fs-title); font-weight: 500; line-height: var(--lh-heading); letter-spacing: var(--ls-title); }
.handoff p { color: var(--ink-2); }

/* ---------- Validation ---------- */
.method { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.method li {
  padding: var(--s-2) var(--s-4); border: 1px solid transparent; border-radius: var(--r-pill);
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--chip-g) border-box;
  font-size: var(--fs-ui); font-weight: 500;
}
.iteration { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: stretch; }
.iteration > div { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--pad-card); border-radius: var(--r-xl); }
.iteration .finding { background: var(--surface); }
.iteration .fix { position: relative; isolation: isolate; overflow: hidden; background: var(--g-case); color: var(--on-dark); }
.iteration .fix::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .2), transparent 70%); }
.iteration .fix .eyebrow, .iteration .fix p { color: var(--on-dark-2); }
.iteration b { font-size: var(--fs-h3); font-weight: 500; line-height: var(--lh-heading); letter-spacing: var(--ls-heading); }
.iteration p { font-size: var(--fs-read); color: var(--ink-2); }
.iteration .to { display: grid; place-items: center; color: var(--mute); }
.iteration .to .i { width: 24px; height: 24px; }
.feedback { margin-top: clamp(40px, 4vw, 56px); }
.feedback h3 { font-size: var(--fs-h3); font-weight: 500; line-height: var(--lh-heading); letter-spacing: var(--ls-heading); }
.feedback > .read { margin-top: var(--s-3); max-width: 62ch; }
.voices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-grid); margin-top: var(--s-6); }
.voice { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); padding: var(--pad-card); background: var(--surface); border-radius: var(--r-xl); }
.voice p { font-size: var(--fs-body-lg); line-height: var(--lh-body); letter-spacing: -0.01em; color: var(--ink-2); }
.voice p b { font-weight: 600; color: var(--ink); }
.voice figcaption { font-size: var(--fs-sm); color: var(--mute); }

/* ---------- Reflection ---------- */
.reflect-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.reflect { display: grid; gap: var(--s-8); }
.reflect > div { padding-top: var(--s-6); border-top: 1px solid var(--line); }
.reflect h3 { margin-bottom: var(--s-3); }

/* ---------- Next project: light row, doesn't compete with the contact block ---------- */
.next-section { padding-bottom: var(--section); }
.next-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: var(--s-2) var(--s-8);
  padding-block: clamp(32px, 4vw, 48px);
  border-block: 1px solid var(--line);
}
.next-label { font-size: var(--fs-sm); font-weight: 500; color: var(--mute); }
.next-title { grid-column: 1; justify-self: start; font-size: clamp(40px, 5vw, 72px); font-weight: 500; line-height: 1; letter-spacing: -0.045em; }
.next-sub { grid-column: 1; max-width: 56ch; color: var(--mute); }
.next-go { grid-column: 2; grid-row: 1 / span 3; display: inline-flex; align-items: center; gap: var(--s-4); font-weight: 500; }
.next-arrow {
  display: grid; place-items: center;
  width: clamp(56px, 5vw, 80px); height: clamp(56px, 5vw, 80px); border-radius: 50%;
  background: var(--g-next); color: var(--on-dark);
  transition: transform .25s ease;
}
.next-arrow .i { width: 24px; height: 24px; }
.next-card:hover .next-arrow { transform: rotate(45deg); }
.next-card:hover .next-title { background-image: var(--g-line); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Captions on the case gradient ---------- */
.showcase .cap b { color: var(--on-dark); }
.showcase .cap span { color: var(--on-dark-2); }

/* ---------- MVP scope: core vs later ---------- */
.scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-grid); }
.scope-card { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--pad-card); background: var(--surface); border-radius: var(--r-xl); }
.scope-card h3 { margin-top: calc(var(--s-2) * -1); font-size: var(--fs-h3); font-weight: 500; line-height: var(--lh-heading); letter-spacing: var(--ls-heading); }
.scope-card ul { display: grid; }
.scope-card li { padding: var(--s-3) 0; border-top: 1px solid rgba(20, 20, 20, .08); font-size: var(--fs-read); color: var(--ink-2); }
.scope-card--core { background: var(--tint, var(--surface)); }
.scope-card--core li { color: var(--ink); }

/* ---------- Stepper: shared five-section flow ---------- */
.stepper { margin-bottom: var(--gap-grid); padding: var(--pad-card); background: var(--surface); border-radius: var(--r-xl); }
.stepper ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2); margin-top: var(--s-4); counter-reset: st; }
.stepper li {
  position: relative; display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-pill); background: var(--bg);
  font-size: var(--fs-body); font-weight: 500; line-height: 1.2; white-space: nowrap;
}
.stepper li::before {
  counter-increment: st; content: counter(st); flex: none;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--g-case); color: var(--on-dark); font-size: var(--fs-sm); font-weight: 600;
}

/* ---------- Compact validation: text left, landing page right ---------- */
.validate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.validate-next { display: flex; flex-direction: column; gap: var(--s-1); margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.validate-next b { font-size: var(--fs-title); font-weight: 500; line-height: var(--lh-heading); letter-spacing: var(--ls-title); }
.validate .note { margin-top: var(--s-5); }

/* ---------- Moderation scenario: who does what ---------- */
.scenario { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-grid); margin-bottom: var(--gap-grid); }
.scenario li { position: relative; display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-5) var(--s-6); background: var(--surface); border-radius: var(--r-md); }
.scenario span { font-size: var(--fs-sm); font-weight: 600; color: var(--mute); }
.scenario b { font-size: var(--fs-title); font-weight: 500; line-height: var(--lh-heading); letter-spacing: var(--ls-title); }
.scenario li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: calc(var(--gap-grid) * -1); width: var(--gap-grid); height: 2px; background: var(--g-accent, var(--g-line));
}

/* ---------- Compatibility states (4Bolta) ---------- */
.cs {
  flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  color: #fff; font-size: 13px; font-weight: 700; line-height: 1;
}
.cs--ok { background: linear-gradient(180deg, #0A8F67, #047857); }
.cs--cond { background: linear-gradient(180deg, #DA5413, #C2410C); }
.cs--no { background: linear-gradient(180deg, #D61F4C, #BE123C); }
.cs--na { background: linear-gradient(180deg, #45556C, #334155); }

.ba { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); margin-bottom: clamp(32px, 4vw, 48px); }
.ba .to { display: grid; place-items: center; color: var(--mute); }
.ba .to .i { width: 24px; height: 24px; }
.ba-card { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--pad-card); background: var(--surface); border-radius: var(--r-xl); }
.ba-card .state { margin-bottom: 0; background: var(--bg); }
.ba-card:last-child { background: var(--tint, var(--surface)); }
.ba-ui {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3);
  padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--bg);
  font-size: var(--fs-title); font-weight: 500; letter-spacing: var(--ls-title);
  box-shadow: 0 1px 2px rgba(20, 20, 20, .06);
}
.ba-ui small { flex-basis: 100%; padding-left: calc(24px + var(--s-3)); font-size: var(--fs-sm); font-weight: 400; letter-spacing: 0; color: var(--mute); }
.ba-note { font-size: var(--fs-read); color: var(--ink-2); }
.ba-note b { font-weight: 600; color: var(--ink); }


/* ---------- Information levels + mobile row ---------- */
.level-num { margin-bottom: var(--s-1); font-size: var(--fs-sm); font-weight: 600; background: var(--g-accent, var(--g-line)); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.mobile-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: var(--gap-grid); color: var(--on-dark); }
.mobile-text { display: flex; flex-direction: column; gap: var(--s-3); }
.mobile-text .eyebrow { color: var(--on-dark-2); }
.mobile-text h3 { font-size: var(--fs-h3); font-weight: 600; line-height: var(--lh-heading); letter-spacing: var(--ls-heading); }
.mobile-text > p:not(.eyebrow) { color: rgba(255, 255, 255, .86); }
/* 4Bolta · Decision 03: step 03 under the two-step row; compact mobile row */
.d3-fitment { margin-top: var(--gap-grid); }
.mobile-row { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); padding: clamp(20px, 3vw, 40px) clamp(20px, 4vw, 56px); margin-top: clamp(48px, 6vw, 88px); }
.mobile-points { display: grid; gap: var(--s-3); margin-top: var(--s-2); }
.mobile-points li { display: flex; flex-direction: column; gap: 2px; padding-top: var(--s-3); border-top: 1px solid rgba(255, 255, 255, .22); }
.mobile-points b { font-size: var(--fs-body); font-weight: 600; }
.mobile-points span { font-size: var(--fs-sm); color: rgba(255, 255, 255, .86); }


/* ---------- Checkout: desktop + phone on the case gradient ---------- */
/* Phone sets the row height; the desktop frame stretches to match, captions share one line */
.checkout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.checkout figure { display: flex; flex-direction: column; }
.checkout figure:first-child .media { flex: 1; aspect-ratio: auto; }
.checkout figure:last-child .media { aspect-ratio: 9 / 17; }

/* ---------- Localization fragment ---------- */
.locale { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: var(--gap-grid); padding: var(--pad-card); background: var(--surface); border-radius: var(--r-xl); }
.locale h3 { margin-bottom: var(--s-2); font-size: var(--fs-h3); font-weight: 500; line-height: var(--lh-heading); letter-spacing: var(--ls-heading); }
.locale-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.field { display: flex; flex-direction: column; gap: 2px; padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); position: relative; }
.field span { font-size: var(--fs-xs); color: var(--mute); }
.field b { font-weight: 500; }
.field::after { content: ""; position: absolute; right: var(--s-4); top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); }

/* ---------- Contrast comparison ---------- */
.contrast { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); margin-bottom: clamp(32px, 4vw, 48px); }
.contrast .to { display: grid; place-items: center; color: var(--mute); }
.contrast .to .i { width: 24px; height: 24px; }
.contrast-card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--pad-card); background: var(--surface); border-radius: var(--r-xl); }
.contrast-card strong { font-size: var(--fs-stat); font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.contrast-sample { align-self: flex-start; padding: var(--s-3) var(--s-5); border-radius: var(--r-md); background: #fff; font-size: var(--fs-title); font-weight: 600; }
.contrast-verdict { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-ui); color: var(--ink-2); }
.contrast-verdict .cs { width: 20px; height: 20px; font-size: 11px; }
.contrast-ref { grid-column: 1 / -1; margin-top: var(--s-4); font-size: var(--fs-ui); color: var(--mute); }

/* E-commerce gradient is light at the top: darken it inside the results card so white labels read */
.case--ecommerce .impact { background: linear-gradient(rgba(70, 24, 40, .38), rgba(70, 24, 40, .38)), var(--g-case); }
/* Dominion: pure case gradient, no darkening layer or bottom shade */
.case--dominion .impact { background: var(--g-case); }
.case--dominion .impact::after { content: none; }

.case-sub { margin-top: var(--s-3); font-size: var(--fs-body-lg); color: var(--ink-2); }
.recovery .stats-label { grid-column: 1 / -1; margin-bottom: 0; }
.locale .eyebrow { margin-bottom: var(--s-2); }

/* ---------- Two plain text columns ---------- */
.text-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.text-cols > div { display: flex; flex-direction: column; gap: var(--s-2); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.text-cols .read { max-width: 52ch; }

/* ---------- Compact footer on inner pages ---------- */
.case .site-footer { padding-top: clamp(40px, 5vw, 64px); }
.case .footer-bottom { margin-top: clamp(32px, 4vw, 48px); }
.case .footer-word { font-size: 14vw; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .summary, .reflect-wrap, .validate { grid-template-columns: minmax(0, 1fr); }
  .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .probs { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
  .prob { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: var(--s-4); row-gap: var(--s-2); }
  .prob-num { grid-row: span 2; margin-bottom: 0; }
  .flow-targets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stepper ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .impact--stack .outcome { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact--stack .outcome div + div { padding-top: 0; border-top: 0; }
  .ds-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(4, auto); }
  .ds-main { grid-column: 1 / -1; grid-row: 1 / 3; }
  .ds-main .media { grid-row: 2; aspect-ratio: 16 / 10; }
  .ds-side { grid-column: 1; grid-row: 3 / 5; }
  .ds-grid .handoff { grid-column: 2; grid-row: 4; }
}

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .flow-arrow { width: 2px; height: 32px; margin-left: var(--s-8); background: linear-gradient(var(--c-peach), var(--c-teal)); }
  .flow-arrow::after { right: auto; left: 50%; top: auto; bottom: -1px; transform: translateX(-50%) rotate(135deg); }
  .flow-targets { width: 100%; }
  .facts, .grid-2, .grid-3, .voices, .phone-groups, .scope, .text-cols { grid-template-columns: minmax(0, 1fr); }
  .stepper ol { grid-template-columns: minmax(0, 1fr); }

  .grid-main, .ds-grid { grid-template-columns: minmax(0, 1fr); }
  .ds-grid { display: flex; flex-direction: column; }
  .ds-main, .ds-side { display: flex; flex-direction: column; gap: var(--s-3); }
  .grid-main > .media, .grid-main > figure > .media { min-height: 0; aspect-ratio: 4 / 3; }
  .grid-main .stack { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .ds-main .media { aspect-ratio: 4 / 3; }
  .hero-media, .media--wide { aspect-ratio: 4 / 3; }
  .phone-groups { gap: var(--s-10); }
  .hero-media .shot { inset: 10% 30% -6% 6%; }
  .hero-phone { right: 5%; height: 74%; }
  .steps, .scenario { grid-template-columns: minmax(0, 1fr); }
  .scenario li:not(:last-child)::after { top: auto; bottom: calc(var(--gap-grid) * -1); right: auto; left: 40px; width: 2px; height: var(--gap-grid); }
  .steps li:not(:last-child)::after { top: auto; bottom: calc(var(--gap-grid) * -1 - 1px); right: auto; left: 40px; width: 1px; height: var(--gap-grid); }
  .iteration { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 48px auto; }
  .iteration .to { transform: rotate(90deg); }
  .contrast { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 48px auto auto; }
  .contrast .to { transform: rotate(90deg); }
  .locale { grid-template-columns: minmax(0, 1fr); }
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .checkout figure:first-child .media { aspect-ratio: 16 / 10; }
  .checkout figure:last-child { width: min(100%, 260px); }
  .mobile-row { grid-template-columns: minmax(0, 1fr); }
  .ba { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 48px auto; }
  .ba .to { transform: rotate(90deg); }
}

@media (max-width: 560px) {
  .case { --fs-stat: 32px; --fs-read: 16px; }
  .case-facts { gap: var(--s-4); }
  .stats { gap: var(--s-5) var(--s-3); }
  .phones { gap: var(--s-3); }
  .next-go span:first-child { display: none; }
  .flow-targets li { padding: var(--s-3); font-size: var(--fs-ui); }
  .grid-main .stack:has(figure) { grid-template-columns: minmax(0, 1fr); }
  .locale-fields { grid-template-columns: minmax(0, 1fr); }
}


/* 4Bolta · Final compatibility results: crop the empty side margins (table spans x 355–1641 of 2000)
   so the table fills the frame; the bottom rows fall outside the frame, the lightbox shows the full image */
.media--zoom-results > img { inset: 0 auto auto -23.5%; width: 147%; height: auto; max-width: none; object-fit: fill; }

/* German contact heading: "Product Designerin" is longer — keep it and the "?" on one line on phones */
@media (max-width: 480px) { html:lang(de) .contact h2 { font-size: 31px; } }

/* ---------- Legibility on the case gradients (WCAG AA for small white text) ----------
   A soft dark scrim mirrors the gradient's light highlight in the top-left corner, where the
   small labels sit; small labels go full white. Strength per case: lighter gradients need more. */
.case { --scrim: .55; --scrim-all: 0; }
.case--marketplace { --scrim: .62; }
.case--4bolta { --scrim: .5; }
.case--ecommerce { --scrim: .3; }
.impact, .showcase:not(.showcase--frame), .iteration .fix { position: relative; isolation: isolate; --on-dark-2: #fff; }
.impact::before, .showcase:not(.showcase--frame)::before, .iteration .fix::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(150% 90% at 0% 0%, rgba(16, 10, 20, var(--scrim)), transparent 80%),
    linear-gradient(rgba(16, 10, 20, var(--scrim-all)), rgba(16, 10, 20, var(--scrim-all)));
}
.iteration .fix { --scrim-all: .26; }
.showcase .cap span, .group-label span, .mobile-text > p:not(.eyebrow), .mobile-points span { color: #fff; }
/* Home covers: stronger bottom fade under the project name and industries */
.cover::after { height: 55%; background: linear-gradient(to top, rgba(0, 0, 0, .58), transparent); }
.cover-ind { color: #fff; }

/* ---------- Narrow phones (≤ 400 px / 360 px) ---------- */
/* Long words (German compounds) break with hyphens instead of running off the screen */
h1, h2, h3, .cap b, .summary-lead, .case-lead { overflow-wrap: break-word; }
html:lang(de) :is(h1, h2, h3, .cap b, .summary-lead, .case-lead, .read, .info-head p) { -webkit-hyphens: auto; hyphens: auto; }
@media (max-width: 400px) {
  :root { --fs-metric: 20px; }
  .kpis div { padding: var(--s-3) var(--s-2); }
}
@media (max-width: 360px) {
  .contact h2 { font-size: 27px; }
  html:lang(de) .contact h2 { font-size: 25px; }
  .flow-targets, .kpis { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal { max-width: 760px; }
.legal h1 { margin-top: var(--s-6); font-size: clamp(36px, 5vw, 56px); font-weight: 500; line-height: 1.05; letter-spacing: var(--ls-heading); }
.legal h2 { margin-top: clamp(32px, 4vw, 44px); font-size: var(--fs-title); font-weight: 600; line-height: var(--lh-heading); }
.legal p { margin-top: var(--s-3); font-size: var(--fs-read); line-height: 1.6; color: var(--ink-2); }
.legal a:not(.back) { text-decoration: underline; text-underline-offset: 3px; }
.legal-lead { margin-top: var(--s-6) !important; font-size: var(--fs-body-lg) !important; color: var(--ink) !important; }
.legal-note, .legal-updated { font-size: var(--fs-sm) !important; color: var(--mute) !important; }
.legal-updated { margin-top: clamp(32px, 4vw, 44px) !important; }
html:lang(de) .legal { -webkit-hyphens: auto; hyphens: auto; }
/* Facts still to be supplied: impossible to miss on the page */
mark.todo { padding: 0 4px; border-radius: 4px; background: #ffe58a; color: #5a3d00; }
.legal-actions .lang { display: flex !important; }
.legal-footer .footer-bottom { margin-top: 0; padding-bottom: clamp(32px, 4vw, 48px); }
.footer-legal a:hover { color: var(--ink); }

/* ---------- Metric context: category + what it measures (home cards and case result cards) ---------- */
.kpi-head { display: flex; flex-direction: column; gap: 2px; }
.kpis + .kpi-head { margin-top: calc(var(--s-3) - var(--s-6)); }
.kpi-cat { font-size: var(--fs-ui); font-weight: 600; color: var(--ink); }
.kpi-desc { font-size: var(--fs-sm); line-height: 1.45; color: var(--mute); }
.impact-desc { margin-top: calc(var(--s-3) * -1 - var(--s-6) + var(--s-1)); font-size: var(--fs-sm); line-height: 1.45; color: #fff; max-width: 34ch; }

/* Dominion: finding → iteration now follows the post-launch feedback */
.feedback:first-child { margin-top: 0; }
.iteration--after { margin-top: clamp(32px, 4vw, 56px); }

/* 4Bolta · AI concept: the 4:3 screen at a calmer width, centred */
/* gradient backdrop spans the full grid; the 4:3 screen stays at a calm size in the middle */
.ai-review .showcase { padding: clamp(20px, 3.5vw, 48px); border-radius: var(--r-xl); }
.ai-review .media { max-width: 820px; margin-inline: auto; }
/* 4Bolta · Responsive experience: numbered points, larger type, clearer rhythm */
.mobile-row .mobile-text { gap: var(--s-4); }
.mobile-row .mobile-text > p:not(.eyebrow) { font-size: var(--fs-body-lg); line-height: 1.5; max-width: 46ch; }
.mobile-points { counter-reset: mp; gap: 0; margin-top: var(--s-2); }
.mobile-points li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: var(--s-4); row-gap: 2px; padding: var(--s-4) 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.mobile-points li::before { counter-increment: mp; content: "0" counter(mp); grid-row: 1 / span 2; padding-top: 3px; font-size: var(--fs-sm); font-weight: 600; color: #fff; }
.mobile-points b { font-size: var(--fs-body-lg); font-weight: 600; line-height: 1.3; }
.mobile-points span { font-size: var(--fs-body); line-height: 1.45; }

/* ---------- 4Bolta · research insight, launch outcomes, AI hypothesis ---------- */
.insight { display: block; max-width: 72ch; margin: calc(var(--s-6) * -1) 0 clamp(32px, 4vw, 48px); padding-left: var(--s-5); border-left: 2px solid; border-image: var(--g-accent, var(--g-line)) 1; font-size: var(--fs-read); line-height: 1.55; color: var(--ink-2); }
.insight-label { display: block; margin-bottom: var(--s-2); font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.insight b { font-weight: 600; color: var(--ink); }
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-grid); }
.outcome-card { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--pad-card); background: var(--surface); border-radius: var(--r-xl); }
.outcome-card strong { font-size: var(--fs-stat); font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.outcome-card b { margin-top: var(--s-2); font-size: var(--fs-body-lg); font-weight: 600; }
.outcome-card p { font-size: var(--fs-body); line-height: 1.45; color: var(--mute); }
.priority { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--gap-grid); padding: var(--pad-card); border-radius: var(--r-xl); background: var(--tint, var(--surface)); }
.priority .eyebrow { color: var(--ink); font-weight: 600; }
.priority-text { font-size: var(--fs-body-lg); line-height: 1.45; color: var(--ink); max-width: 60ch; }
.priority-text b { font-weight: 600; }
.hypothesis { margin-top: var(--s-3); text-align: center; font-size: var(--fs-body); color: var(--ink-2); }
.hypothesis b { color: var(--ink); }
@media (max-width: 900px) { .outcomes { grid-template-columns: minmax(0, 1fr); } }

/* Next-project arrow colour per target case (no inline styles: the CSP blocks style attributes) */
.next-card--dominion { --g-next: var(--g-dominion); }
.next-card--marketplace { --g-next: var(--g-marketplace); }
.next-card--4bolta { --g-next: var(--g-4bolta); }
.next-card--ecommerce { --g-next: var(--g-ecommerce); }

/* Marketplace pre-launch outcome · 4Bolta mobile evidence · E-commerce anonymisation note */
.validate-outcome { display: flex; flex-direction: column; gap: var(--s-1); margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.validate-outcome p:last-child { font-size: var(--fs-read); line-height: 1.55; color: var(--ink-2); }
.validate-outcome + .validate-next { margin-top: var(--s-6); }
.priority-data { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--mute); }
.case-note { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--mute); }

/* Hypothesis line under the AI concept; compact testing facts (E-commerce) */
.insight--hypothesis { margin: 0 0 clamp(32px, 4vw, 48px); }
.facts--testing { margin-top: 0; gap: var(--gap-grid); }
.facts--testing .fact { padding: var(--pad-card); border-top: 0; border-radius: var(--r-xl); background: var(--surface); }
.facts--testing .fact h3 { margin-bottom: var(--s-3); font-size: var(--fs-h3); font-weight: 500; line-height: var(--lh-heading); letter-spacing: var(--ls-heading); }
.facts--testing .fact .read { color: var(--ink-2); }

/* Selection frames: clear of the descenders of the line above and centred on the word
   (negative letter-spacing removes space after the last letter, so the right padding compensates). */
.sel { padding: 0 .14em 0 .1em; }
.sel::before { top: .1em; bottom: .04em; }
.sel .tl, .sel .tr { top: calc(.1em - 5.5px); }
.sel .bl, .sel .br { bottom: calc(.04em - 5.5px); }
/* "Product Designer" has a descender (g), so this frame reaches below it */
.contact .sel::before { bottom: -.16em; }
.contact .sel .bl, .contact .sel .br { bottom: calc(-.16em - 5.5px); }
