/* =============================================================
   Skramla AB — stylesheet
   Plain CSS, no frameworks. Design tokens via CSS custom properties.
   ============================================================= */

/* ---------- FONTS (Fira Sans, self-hosted, latin + latin-ext) ---------- */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/firasans-latin-300.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: 'Fira Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/firasans-latin-ext-300.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/firasans-latin-400.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: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/firasans-latin-ext-400.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/firasans-latin-400i.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: 'Fira Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/firasans-latin-ext-400i.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/firasans-latin-500.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: 'Fira Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/firasans-latin-ext-500.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/firasans-latin-600.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: 'Fira Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/firasans-latin-ext-600.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/firasans-latin-700.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: 'Fira Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/firasans-latin-ext-700.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- DESIGN TOKENS ---------- */
:root {
  --ink: #141414;
  --ink-2: #2a2a2a;
  --muted: #6b6660;
  --line: #1414141a;
  --line-2: #14141412;
  --paper: #F4F1EA;
  --paper-2: #EDE9E0;
  --card: #FFFFFF;
  --accent: #7b66e2;            /* decorative: marks, charts, borders */
  --accent-strong: #6a54d4;     /* text + button surfaces (WCAG AA on cream + with white) */
  --accent-ink: #ffffff;

  /* type scale */
  --fs-xxl: clamp(64px, 8.4vw, 132px);
  --fs-xl: clamp(40px, 4.6vw, 72px);
  --fs-lg: clamp(28px, 2.6vw, 40px);
  --fs-md: 20px;
  --fs-base: 16px;
  --fs-sm: 13px;
  --fs-xs: 11px;

  /* spacing */
  --pad-section: 120px;
  --pad-gutter: clamp(24px, 4vw, 64px);
  --radius: 2px;
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-padding-top: 88px; /* keep anchored sections clear of the sticky nav */
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: 'Fira Sans', system-ui, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* visible keyboard focus for all interactive elements */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* programmatic focus target for the skip link — no visible outline box */
main:focus { outline: none; }

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad-gutter);
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.nav-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  height: 72px; gap: 40px;
  position: relative;
}
.nav-logo { display: inline-flex; align-items: center; }
.logo { height: 26px; width: auto; }

/* nav menu is transparent to layout on desktop so its children sit in the grid */
.nav-menu { display: contents; }

.nav-links { display: flex; gap: 36px; justify-self: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em; color: var(--ink-2);
  padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav-links a:hover { border-color: var(--ink); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500;
  padding: 10px 18px; border: 1px solid var(--accent-strong); background: var(--accent-strong); color: var(--accent-ink);
  border-radius: 999px;
  transition: filter .2s;
}
.nav-cta:hover { filter: brightness(1.08); }

/* hamburger button (mobile only) */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0;
  border: none;
  background: transparent; cursor: pointer;
  justify-self: end;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 0 auto;
  background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { padding: 80px 0 var(--pad-section); position: relative; }
.hero-eyebrow {
  display: inline-flex; gap: 12px; align-items: center;
  font-size: 13px; font-weight: 500; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 32px;
}
.hero-eyebrow .bar { width: 40px; height: 1px; background: currentColor; }

.hero-title {
  font-size: var(--fs-xxl);
  line-height: 0.92;
  letter-spacing: -0.038em;
  font-weight: 500;
  margin: 0 0 40px;
  max-width: 18ch;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic; font-weight: 400;
  color: var(--muted);
}
.hero-title .nobreak { white-space: nowrap; }
/* .accent-mark sizing/colour is set inline per-instance in the markup. */

.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: end;
}

.hero-lede {
  font-size: var(--fs-md); line-height: 1.45; color: var(--ink-2);
  max-width: 46ch; margin: 0 0 40px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font: inherit; font-weight: 500; font-size: 15px;
  padding: 14px 22px; border-radius: 999px;
  border: 1px solid var(--accent-strong); background: var(--accent-strong); color: var(--accent-ink);
  cursor: pointer; transition: transform .15s, background .2s, color .2s, border-color .2s, filter .2s;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); filter: none; }
.btn svg { width: 12px; height: 14px; }

/* Hero viz */
.hero-viz {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  aspect-ratio: 4 / 3.3;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  margin: 0;
  max-width: 560px;
}
.hero-viz-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.hero-viz-head strong { color: var(--ink); font-weight: 600; letter-spacing: 0.12em; }
.hero-viz svg { flex: 1; width: 100%; }
/* ---------- SECTION COMMON ---------- */
section { padding: var(--pad-section) 0; }
.sec-head {
  margin-bottom: 64px; padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.sec-num {
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em;
  color: var(--muted); text-transform: uppercase;
  margin: 0 0 24px;
}
.sec-title {
  font-size: var(--fs-xl); line-height: 0.98; letter-spacing: -0.03em;
  font-weight: 500; margin: 0; max-width: 20ch;
}
.sec-title em { font-style: italic; font-weight: 400; color: var(--muted); }

.hex-dot { color: var(--accent); }

/* ---------- SERVICES ---------- */
.services {
  background: var(--paper-2);
}
.svc-list { display: grid; grid-template-columns: 1fr; }
.svc {
  display: grid; grid-template-columns: 80px 1.1fr 1fr 0.6fr; gap: 40px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  transition: padding-left .25s ease;
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc:hover { padding-left: 16px; }
.svc:hover .svc-name { color: var(--accent); }
.svc-idx {
  font-size: 13px; color: var(--muted); font-feature-settings: "tnum";
  padding-top: 6px;
}
.svc-name {
  font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.02em; margin: 0;
  transition: color .2s;
}
.svc-desc { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin: 0; }
.prod-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.prod-tag {
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px; line-height: 1.4;
}
.prod-tag.live { color: var(--accent-strong); border: 1px solid var(--accent-strong); }
.prod-tag.soon { color: var(--muted); border: 1px dashed var(--line); background: transparent; }
.prod-price {
  font-size: 13px; color: var(--muted); padding-top: 6px; text-align: right;
  display: flex; flex-direction: column; gap: 2px;
}
.prod-price strong {
  color: var(--ink); font-weight: 500; font-size: 18px; letter-spacing: -0.01em;
  font-feature-settings: "tnum";
}

/* ---------- IMPACT NUMBERS ---------- */
.impact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.impact-cell {
  padding: 48px 40px 44px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
}
.impact-cell:last-child { border-right: none; }
.impact-num {
  font-size: clamp(56px, 6vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 400;
  font-feature-settings: "tnum" 0;
  display: flex; align-items: baseline; gap: 6px;
}
.impact-num sup { font-size: 0.4em; color: var(--accent-strong); font-weight: 500; margin-left: 4px; }
.impact-label { font-size: 14px; color: var(--ink-2); max-width: 28ch; }

/* ---------- CASES ---------- */
.cases-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.case {
  background: var(--card); border: 1px solid var(--line); padding: 36px 36px 32px;
  display: flex; flex-direction: column; gap: 28px;
  min-height: 440px;
  position: relative;
  transition: transform .25s ease, border-color .2s;
}
.case:hover { border-color: var(--ink); }
.case-tag {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.case-tag .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }
.case-title {
  font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.12;
  margin: 0; max-width: 22ch;
}
.case-chart { flex: 1; display: flex; align-items: end; min-height: 160px; }
.case-chart svg { width: 100%; height: 160px; }
.case-stats { display: flex; flex-direction: column; gap: 16px; justify-content: flex-end; min-width: 160px; }
.case-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13px; color: var(--muted); }
.case-stat strong { color: var(--ink); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }

.case.wide { grid-column: span 2; flex-direction: row; align-items: stretch; gap: 56px; min-height: 340px; }
.case.wide .case-left { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.case.wide .case-chart { flex: 1.1; }

/* ---------- CLIENTS ---------- */
.clients { background: var(--paper-2); }
.client-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  list-style: none; padding: 0; margin: 0;
}
.client-cell {
  padding: 48px 40px;
  border-right: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); opacity: 0.78;
  transition: opacity .2s;
}
.client-cell:last-child { border-right: none; }
.client-cell:hover { opacity: 1; }
.client-logo {
  width: 100%; max-width: 170px; height: 60px;
  object-fit: contain; object-position: center;
}
/* names are conveyed via each logo's alt text; visible labels hidden */
.client-name { display: none; }

/* ---------- CTA / FOOTER ---------- */
.cta-block {
  padding: var(--pad-section) 0 calc(var(--pad-section) - 40px);
  border-top: 1px solid var(--line);
}
.cta-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px;
}
.cta-title {
  font-size: var(--fs-xl); letter-spacing: -0.03em; line-height: 0.98;
  font-weight: 500; margin: 0; max-width: 20ch;
}
.cta-side {
  display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 22px;
  font-size: 14px; color: var(--ink-2);
}
.cta-email {
  font-size: 24px; letter-spacing: -0.02em; font-weight: 500; color: var(--ink);
}
.cta-side a:not(.btn):not(.cta-email) { border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.cta-side a:not(.btn):not(.cta-email):hover { border-color: var(--ink); }

footer {
  padding: 48px 0 56px; border-top: 1px solid var(--line-2);
  font-size: 13px; color: var(--muted);
}
.foot-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px;
}
.foot-col h3 {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500; color: var(--muted); margin: 0 0 16px;
}
.foot-col a { display: block; color: var(--ink); padding: 4px 0; }
.foot-col a:hover { color: var(--accent-strong); }
.foot-logo { height: 22px; width: auto; margin-bottom: 12px; }
.foot-tagline { color: var(--ink-2); max-width: 24ch; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line-2);
}

/* ---------- OM OSS ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px;
  align-items: start;
  padding-bottom: 80px;
}
.about-lede {
  font-size: var(--fs-lg); line-height: 1.15; letter-spacing: -0.02em;
  font-weight: 500; margin: 0 0 28px; max-width: 22ch;
}
.about-lede em { font-style: italic; font-weight: 400; color: var(--muted); }
.about-body {
  font-size: 16px; line-height: 1.55; color: var(--ink-2);
  max-width: 52ch; margin: 0 0 32px;
}
.about-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.about-meta .cell {
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.about-meta .lab {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.about-meta .val {
  font-size: 22px; letter-spacing: -0.02em; font-weight: 500;
}

.about-team {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.team-member {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 28px 28px 32px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .2s;
}
.team-member:hover { border-color: var(--ink); }
.team-portrait {
  width: 72px; height: 72px; border-radius: 999px;
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.team-name {
  font-size: 22px; font-weight: 500; letter-spacing: -0.02em;
  margin: 8px 0 0;
}
.team-role {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 0; font-weight: 500;
}
.team-bio {
  font-size: 14px; line-height: 1.5; color: var(--ink-2);
  margin: 8px 0 0; max-width: 34ch;
}

/* ---------- DATA-VIZ UTIL ---------- */
.grid-lines line { stroke: var(--line-2); stroke-width: 1; }
.axis text { font-size: 10px; fill: var(--muted); font-family: 'Fira Sans'; letter-spacing: 0.04em; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-team { grid-template-columns: 1fr; }

  .hero-grid, .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-side { justify-content: start; }
  .svc { grid-template-columns: 40px 1fr; gap: 16px; }
  .svc-desc, .prod-price { grid-column: 2; text-align: left; padding-top: 0; }
  .impact-grid { grid-template-columns: 1fr; }
  .impact-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .impact-cell:last-child { border-bottom: none; }
  .client-grid { grid-template-columns: 1fr; }
  .client-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .client-cell:last-child { border-bottom: none; }
  .cases-list { grid-template-columns: 1fr; }
  .case.wide { flex-direction: column; grid-column: span 1; }
  .case-stats { min-width: 0; }
  /* keep x/y scale equal so SVG axis labels are not horizontally squished */
  .case-chart { min-height: 0; }
  .case-chart svg { height: auto; aspect-ratio: 600 / 160; }
  .foot-grid { grid-template-columns: 1fr 1fr; }

  /* ----- mobile nav ----- */
  .nav-inner { grid-template-columns: 1fr auto; gap: 16px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad-gutter) 24px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.08);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .nav.open .nav-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-links {
    display: flex; flex-direction: column; gap: 0; justify-self: stretch;
  }
  .nav-links a {
    padding: 16px 0; font-size: 18px;
    border-bottom: 1px solid var(--line-2); border-top: none;
  }
  .nav-cta {
    align-self: flex-start; margin-top: 20px;
    padding: 12px 22px; font-size: 15px;
  }
}

@media (max-width: 560px) {
  /* lower the hero floor + tighten vertical rhythm on narrow phones */
  :root { --fs-xxl: clamp(44px, 13vw, 64px); --pad-section: 80px; }
  .hero-title .nobreak { white-space: normal; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-meta { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
}
