/* ==========================================================================
   Fonts (self-hosted, latin subset, SIL Open Font Licence; variable where available)
   ========================================================================== */

@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; 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: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; 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: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; 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; }

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  /* Site (Revolut-style) */
  --ink: #191C1F;
  --ink-2: #4A5058;
  --ink-3: #5D646C;
  --ink-4: #8A9098;          /* only for large text (client strip), 3.2:1 */
  --line: #ECEDF0;
  --bg: #ffffff;
  --bg-grey: #F4F5F7;
  --btn-light: #F1F2F4;
  --dark: #0F1114;
  --dark-line: #2A2E34;
  --on-dark-2: #AEB4BB;
  --accent: #1a73e8;
  --accent-ink: #0B57C2;
  --blue-soft: #E7EEFC;
  --green-soft: #DDF3E8;
  --peach: #FFE9D6;
  --live: #22C38E;
  --sk-slate: #293F4A;       /* background of the Simon-Kucher logo JPG; three-act card */

  /* Tool (getplace-style) */
  --t-ink: #1B3139;
  --t-ink-2: #4d5f66;
  --t-muted: #5f6e74;        /* design used #7a8a90; darkened for AA on small text */
  --t-line: #e6e9eb;
  --t-line-2: #dfe3e6;
  --t-grid: #eef0f3;
  --t-bg: #f7f8fa;
  --t-blue-soft: #EAF1FD;
  --t-base: #8a97a0;
  --t-up: #0E6B3F;
  --t-down: #A3271B;

  --font: "Schibsted Grotesk", system-ui, Arial, sans-serif;
  --font-tool: "IBM Plex Sans", system-ui, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1280px;
  --pad-x: 48px;
  --nav-h: 72px;
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; overflow-x: hidden; }
h1, h2, h3, h4, p, dl, dd, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-ink); }
[hidden] { display: none !important; }
/* Homepage content is rendered by main.js; keep it invisible until then so nothing shifts. */
html.js-pending body { visibility: hidden; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 8px 16px; border-radius: 999px; background: var(--ink); color: #fff;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.pad { padding-left: var(--pad-x); padding-right: var(--pad-x); }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }

/* ==========================================================================
   Components
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px;
  border: 0; border-radius: 999px;
  gap: 8px;
  font: 600 15px/1 var(--font);
  cursor: pointer;
  white-space: nowrap;
}
.btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2c3035; color: #fff; }
.btn--light { background: var(--btn-light); color: var(--ink); }
.btn--light:hover { background: #e4e6e9; color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #E4E6E9; color: var(--ink); }
/* Outlined button for dark backgrounds (Contact block) */
.btn--outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-row--center { justify-content: center; }

.pill {
  align-self: flex-start;
  padding: 8px 14px; border-radius: 999px;
  background: var(--btn-light);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.tag--glass { background: rgba(255, 255, 255, 0.12); color: #fff; }
.tag--live { background: var(--live); color: #08261B; font-weight: 700; }
.tag--grey { background: var(--btn-light); color: var(--ink); }
.tag--white { background: #fff; color: var(--accent-ink); }

.eyebrow { font-size: 14px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.eyebrow--peach { color: #7A4A1C; }

.section { padding-top: 96px; padding-bottom: 96px; }
.section--tall { padding-top: 112px; padding-bottom: 112px; }
.section--grey { background: var(--bg-grey); }
.section--dark { background: var(--dark); color: #fff; }
.section--projects { padding-top: 0; padding-bottom: 112px; }
.impact { display: flex; flex-direction: column; gap: 24px; margin-top: -32px; }
.impact__title { font-size: 14px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.project:target, .project:focus { outline: none; }

.h2 { text-wrap: balance; font-size: 64px; line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
.lead { font-size: 20px; line-height: 1.45; color: var(--ink-2); max-width: 620px; }
.lead--sm { font-size: 18px; line-height: 1.5; max-width: 380px; }
.section--dark .lead { color: var(--on-dark-2); }
.section-head { display: flex; flex-direction: column; gap: 16px; }
.section-head--center { align-items: center; text-align: center; }
.section-head--center .h2 { max-width: 820px; }
.section-head--split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0 var(--pad-x);
}
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; flex: none; }
.nav__name-short { display: none; }
.nav__links { flex: none; }
.nav__links { display: flex; gap: 8px; font-size: 15px; font-weight: 500; }
.nav__links a { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; }
.nav__links a.is-current { background: var(--btn-light); color: var(--ink); font-weight: 700; }
.nav__toggle {
  display: none; align-items: center; gap: 10px; height: 40px; padding: 0 16px;
  border: 0; border-radius: 999px; background: var(--btn-light); color: var(--ink);
  font: 600 14px var(--font); cursor: pointer;
}
.nav__toggle-icon, .nav__toggle-icon::before, .nav__toggle-icon::after { display: block; width: 14px; height: 1.5px; background: currentColor; transition: transform 0.15s ease; }
.nav__toggle-icon { position: relative; }
.nav__toggle-icon::before, .nav__toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav__toggle-icon::before { top: -4.5px; }
.nav__toggle-icon::after { top: 4.5px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon::before { transform: translateY(4.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon::after { transform: translateY(-4.5px) rotate(-45deg); }

/* Compact nav (set by main.js when the full name and the links do not fit on one row) */
.nav.is-compact .nav__name { font-size: 20px; }
.nav.is-compact .nav__name-full { display: none; }
.nav.is-compact .nav__name-short { display: inline; }
.nav.is-compact .nav__toggle { display: inline-flex; }
.nav.is-compact .nav__links {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; gap: 4px; padding: 12px var(--pad-x) 20px;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}
.nav.is-compact .nav__links.is-open { display: flex; }
.nav.is-compact .nav__links a { width: 100%; height: 48px; font-size: 17px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding-top: 104px; padding-bottom: 72px; }
.hero__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: center; }
.hero__photo { width: 240px; aspect-ratio: 1; border-radius: 999px; overflow: hidden; background: var(--bg-grey); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__simple { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero__name { font-size: 76px; line-height: 0.98; font-weight: 800; letter-spacing: -0.035em; }
.hero__sentence { max-width: 60ch; font-size: 22px; line-height: 1.5; font-weight: 400; color: var(--ink-2); }
.hero__stage {
  position: relative;
  border-radius: 36px;
  background: var(--dark);
  padding: 40px 32px;
  min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

/* ==========================================================================
   Tool card (getplace-style, IBM Plex)
   ========================================================================== */

.tool-card {
  width: 100%; max-width: 620px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  font-family: var(--font-tool);
  color: var(--t-ink);
}
.tc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--t-line); }
.tc-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.tc-icon { color: var(--accent); display: inline-flex; }
.tc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--t-blue-soft); color: var(--accent-ink);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.tc-badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.tc-body { padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 16px; }
.tc-scope { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tc-eyebrow { font-size: 11px; font-weight: 600; color: var(--t-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-right: 4px; }
.tc-select, .t-select {
  height: 32px; padding: 0 28px 0 10px;
  border-radius: 6px; border: 1px solid var(--t-line-2);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='%234d5f66' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M2 3.5l3 3 3-3'/%3E%3C/svg%3E") no-repeat right 9px center;
  appearance: none;
  font: 13px var(--font-tool); color: var(--t-ink);
  cursor: pointer;
}
.tc-select:hover, .t-select:hover { border-color: var(--accent); }
.tc-chip { padding: 5px 10px; border-radius: 6px; border: 1px solid var(--t-line-2); font-size: 13px; }
.tc-question { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.tc-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tc-kpi { border: 1px solid var(--t-line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tc-kpi__label { font-size: 12px; color: var(--t-ink-2); }
.tc-kpi__value { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tc-kpi__delta { font-size: 11px; font-weight: 600; }
.is-up { color: var(--t-up); }
.is-down { color: var(--t-down); }

/* 52-week chart */
.pc { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 6px; }
.pc-y { position: relative; font: 500 10px var(--font-mono); color: var(--t-muted); }
.pc-tick { position: absolute; right: 0; transform: translateY(-50%); }
.pc-plot { position: relative; border-bottom: 1px solid var(--t-line-2); }
.pc-grid { position: absolute; left: 0; right: 0; border-top: 1px solid var(--t-grid); }
.pc-band { position: absolute; top: 0; bottom: 0; background: var(--t-blue-soft); }
.pc-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pc-base { fill: none; stroke: var(--t-base); stroke-width: 1.5; stroke-dasharray: 5 4; }
.pc-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.pc-dot {
  position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border-radius: 999px; background: #fff; border: 2px solid var(--accent);
}
.pc-label {
  position: absolute; transform: translate(-50%, -150%);
  padding: 2px 6px; border-radius: 4px;
  background: var(--t-ink); color: #fff;
  font-size: 10px; font-weight: 600; white-space: nowrap; line-height: 1.4;
}
.pc-x { position: relative; height: 14px; font: 500 10px var(--font-mono); color: var(--t-muted); }
.pc-x span { position: absolute; top: 0; }
.pc-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 12px; color: var(--t-ink-2); }
.pc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pc-key { display: inline-block; }
.pc-key--line { width: 16px; height: 2px; background: var(--accent); }
.pc-key--base { width: 16px; border-top: 2px dashed var(--t-base); }
.pc-key--band { width: 12px; height: 12px; border-radius: 2px; background: var(--t-blue-soft); }

/* ==========================================================================
   Client strip
   ========================================================================== */

.clients { padding-top: 24px; padding-bottom: 72px; }
.clients__inner { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.clients__caption { font-size: 14px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; text-align: center; }
.clients__list {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 44px;
  width: 100%;
}
.client { display: flex; align-items: center; justify-content: center; min-height: 56px; }
.client__logo { display: block; width: auto; max-width: 160px; object-fit: contain; }
/* Stand-in for a client whose logo file isn't uploaded yet */
.client__wordmark { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-2); white-space: nowrap; }
.clients__list.is-discreet { font-size: 19px; font-weight: 700; color: var(--ink-3); gap: 12px 32px; }
.clients__list.is-discreet .client { min-height: 0; }

/* ==========================================================================
   Tools
   ========================================================================== */

.tool-tile { border-radius: 32px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.tool-tile--white { background: #fff; }
.tool-tile--blue { background: var(--blue-soft); }
.tool-tile__title { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.tool-tile__text { font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.tool-tile--blue .tool-tile__text { color: #33465F; }
.tool-tile--wide .tool-tile__text { max-width: 760px; }

/* Home: technologies strip */
.tech { padding-top: 8px; padding-bottom: 96px; }
.tech__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.tech__title { font-size: 14px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.tech__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tech__list li { padding: 10px 18px; border-radius: 999px; background: var(--btn-light); font-size: 16px; font-weight: 600; }

/* Tools page: one block per tool (copy + tool card on the dark stage) */
.tool-blocks { display: flex; flex-direction: column; gap: 40px; }
.tool-block { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.tool-block:nth-of-type(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.tool-block:nth-of-type(even) .tool-block__copy { order: 2; }
.tool-block__copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.tool-block__title { font-size: 48px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }
.tool-block__text { font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.tool-block__stage { min-height: 0; padding: 40px 32px; }

/* Assortment preview scatter */
.ac-plot { position: relative; }
.ac-svg { display: block; width: 100%; height: auto; }
.ac-axis { font: 500 10px var(--font-mono); fill: var(--t-muted); }
.ac-axis-title { font: 600 11px var(--font-tool); fill: var(--t-ink-2); }
.ac-cut { position: absolute; top: 8px; right: 12px; padding: 2px 6px; border-radius: 4px; background: var(--t-ink); color: #fff; font-size: 10px; font-weight: 600; }
.ac-key { display: inline-block; width: 9px; height: 9px; }
.ac-key--keep { border-radius: 999px; background: var(--accent); }
.ac-key--review { background: #B86E00; transform: rotate(45deg); }
.ac-key--delist { background: var(--t-down); }

/* ==========================================================================
   Impact
   ========================================================================== */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.stat__logo { order: -2; height: 32px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.stat__logo img { display: block; width: auto; max-width: 150px; object-fit: contain; }
.stat__wordmark { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-2); }
.stat__value { order: -1; border-top: 2px solid var(--ink); padding-top: 20px; font-size: 56px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat__label { font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.stat__caption-wrap { margin-top: auto; padding-top: 4px; }
.stat__caption { display: inline-block; padding: 3px 12px; border: 1px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); }
.stat__caption:hover { background: var(--ink); color: #fff; }

/* ==========================================================================
   Projects
   ========================================================================== */

.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project { border-radius: 28px; padding: 32px; min-height: 320px; display: flex; flex-direction: column; gap: 12px; }
/* Colour by employer (data.js projects.employerTones) */
.project--dark { background: var(--ink); color: #fff; }
.project--light { background: var(--btn-light); color: var(--ink); }
.project__sector { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 14px; font-weight: 600; }
.project__sector { opacity: 0.85; }
.project__firm { font-weight: 500; }
.project__client { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.project__text { font-size: 16px; line-height: 1.5; opacity: 0.88; }
.project__did { display: flex; flex-direction: column; gap: 6px; padding-left: 18px; list-style: disc; font-size: 15px; line-height: 1.45; opacity: 0.88; }
.project__result { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; padding-top: 14px; border-top: 1.5px solid currentColor; border-top-color: color-mix(in srgb, currentColor 22%, transparent); }
.project__result strong { font-size: 32px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.project__result span { font-size: 15px; line-height: 1.4; opacity: 0.88; }
.project__more { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; opacity: 0.88; }
.project .disclosure { margin-top: auto; }
.project__link { align-self: flex-start; margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.project__link:hover { color: #fff; text-decoration-thickness: 2px; }
.project__link ~ .disclosure { margin-top: 0; }
.project__link span { display: inline-block; transition: transform 0.15s ease; }
.project__link:hover span { transform: translateX(3px); }
.project--dark .project__link:focus-visible { outline-color: #fff; }
.project--dark .disclosure:focus-visible { outline-color: #fff; }
.project--more { justify-content: center; gap: 8px; }

/* Collapsible project group (Excel-style row group handle) */
.proj-group { display: flex; align-items: center; gap: 12px; margin-top: -24px; }
.proj-group__panel { margin-top: -24px; }
.proj-group__line { flex: 1; height: 1px; background: #C9CDD2; }
.proj-group__btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 4px 6px 4px 0; border: 0; background: none;
  font: 600 15px var(--font); color: var(--ink); cursor: pointer;
}
.proj-group__box {
  width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink); border-radius: 3px; background: #fff;
  font: 700 15px/1 var(--font-mono); flex: none;
}
.proj-group__btn:hover .proj-group__label { text-decoration: underline; text-underline-offset: 3px; }
.proj-group__btn:hover .proj-group__box { background: var(--ink); color: #fff; }
.proj-group__panel { transition: height 0.35s ease, opacity 0.35s ease; }
.project--more { border: 2px dashed #D3D7DC; color: var(--ink-3); }
.project--more .project__text { opacity: 1; }
.project__more-title { font-size: 22px; font-weight: 700; color: var(--ink); }

/* ==========================================================================
   Experience
   ========================================================================== */

.experience { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 0 64px; align-items: start; }
.experience__side { display: flex; flex-direction: column; gap: 32px; align-self: stretch; }
@media (min-width: 861px) {
  .experience__head { position: sticky; top: calc(var(--nav-h) + 24px); }
}
.acts-card { border-radius: 28px; background: var(--sk-slate); color: #fff; padding: 32px; display: flex; flex-direction: column; gap: 8px; container-type: inline-size; }
/* Photo | name + two lines | logo on the right, centred on the photo. Narrow card: logo under the lines. */
.acts-card__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "photo who brand"; align-items: center; gap: 12px 20px; }
.acts-card__photo { grid-area: photo; }
.acts-card__who { grid-area: who; }
.acts-card__brand { grid-area: brand; justify-self: end; }
@container (max-width: 420px) {
  .acts-card__head { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "photo who" "photo brand"; row-gap: 10px; }
  .acts-card__who { align-self: end; }
  .acts-card__brand { justify-self: start; align-self: start; }
}
.acts-card__who { display: flex; flex-direction: column; gap: 4px; }
.acts-card__name { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.acts-card__logo { display: block; height: 30px; width: auto; flex: none; }
.acts-card__line { display: flex; flex-direction: column; font-size: 15px; line-height: 1.45; color: #C9CED4; } /* 6.97:1 on --sk-slate */
.acts-card__photo { width: 112px; height: 112px; border-radius: 999px; overflow: hidden; background: #1F313A; flex: none; }
.acts-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* About: three-act card (left, sticky; top set by main.js so a card taller than the screen
   scrolls until its bottom shows, then sticks) and Languages + Rugby (right) */
.about-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 48px; align-items: start; margin-top: 16px; }
.about-grid__side { align-self: stretch; }
.about-grid__main { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
@media (min-width: 861px) {
  .about-grid .acts-card { position: sticky; top: calc(var(--nav-h) + 24px); }
}
.experience__head { display: flex; flex-direction: column; gap: 16px; }
.job { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 26px 0; border-top: 1px solid var(--dark-line); }
.job__org { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.job__role { margin-top: 4px; font-size: 16px; color: #D5DAE0; }
.job__place { margin-top: 2px; font-size: 15px; color: var(--on-dark-2); }
.job__years { font-size: 15px; color: var(--on-dark-2); text-align: right; white-space: nowrap; }
.job__toggle { grid-column: 1 / -1; }
.job .disclosure { margin-top: 10px; color: #fff; }
.job .disclosure:focus-visible { outline-color: #fff; }
.job__more { margin-top: 10px; max-width: 60ch; font-size: 16px; line-height: 1.55; color: #D5DAE0; }
.job__more p + p { margin-top: 8px; }
.education { margin-top: 40px; }
.education__title { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-dark-2); padding-bottom: 8px; }
.edu { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 20px 0; border-top: 1px solid var(--dark-line); }
.edu__degree { font-size: 20px; font-weight: 700; }
.job__tag {
  display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px;
  border: 1px solid #5B6168; color: #fff; font-size: 13px; font-weight: 600; vertical-align: 1px;
}

/* Disclosure toggle */
.disclosure {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  min-height: 36px; padding: 0; border: 0; background: none; color: inherit;
  font: 600 15px var(--font); cursor: pointer;
}
.disclosure__icon {
  width: 22px; height: 22px; border-radius: 999px; border: 1.5px solid currentColor; position: relative; flex: none;
}
.disclosure__icon::before, .disclosure__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%); transition: transform 0.15s ease;
}
.disclosure__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.disclosure[aria-expanded="true"] .disclosure__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.disclosure:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   About + Beyond work
   ========================================================================== */

.panel { border-radius: 32px; padding: 44px; display: flex; flex-direction: column; gap: 18px; }
.panel--peach { background: var(--peach); }
.panel--grey { background: var(--btn-light); }
.panel__title { font-size: 40px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
.panel__title--peach { color: #2B1A0A; }
.panel__text { font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.acts { display: flex; flex-direction: column; gap: 22px; margin: 8px 0 0; padding: 0; list-style: none; }
.act { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding-top: 18px; border-top: 1px solid #DDE0E4; }
.act__n { font-size: 15px; font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; padding-top: 3px; }
.act__title { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.act__text { margin-top: 6px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.acts-card .act { border-top-color: rgba(255, 255, 255, 0.2); }
.acts-card .act__n { color: #9EC2FA; } /* 6.07:1 */
.acts-card .acts { margin-top: 16px; }
.acts-card .act__text { color: #D5DAE0; font-size: 16px; } /* 7.84:1 */
.acts-card .act__title { color: #fff; }
.about-sub { display: flex; flex-direction: column; gap: 20px; }
.about-sub__title { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
/* Languages: compact list, one row per language (name + level left, short line right) */
.langs-list { border: 1.5px solid var(--line); border-radius: 28px; padding: 4px 28px; container-type: inline-size; }
.lang { display: grid; grid-template-columns: 190px minmax(0, 1fr); grid-template-areas: "name text" "level text"; column-gap: 24px; row-gap: 2px; padding: 18px 0; align-items: start; }
.lang + .lang { border-top: 1px solid var(--line); }
.lang__name { grid-area: name; font-size: 20px; font-weight: 800; letter-spacing: -0.015em; }
.lang__level { grid-area: level; font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.lang__text { grid-area: text; min-width: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); overflow-wrap: break-word; }
/* Narrow list (whatever the screen size): name and level above the text */
@container (max-width: 560px) {
  .lang { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "level" "text"; }
  .lang__text { margin-top: 6px; }
}
/* Rugby box: label across the top, then content (left) and the video (right, sticky on desktop) */
/* Rugby box: same card style as the Languages list */
.rugby { --rugby-value-size: 26px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "video"; background: #fff; border: 1.5px solid var(--line); border-radius: 28px; padding: 28px; }
.rugby__copy { grid-area: copy; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.rugby__video { grid-area: video; min-width: 0; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.rugby .video-wrap { margin-top: 0; }
.rugby__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rugby__stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--btn-light); }
.rugby__stat-value { order: -1; font-size: var(--rugby-value-size); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.rugby__stat-label { font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.rugby__block { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.rugby__sub { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 4px; }
.rugby__club { font-size: 18px; font-weight: 700; color: var(--ink); }
.rugby__meta { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.side-jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.side-job { border-radius: 28px; border: 1.5px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.side-job__head { display: flex; justify-content: space-between; align-items: center; min-height: 48px; gap: 4px 16px; flex-wrap: wrap; }
.side-job__org { font-size: 24px; font-weight: 800; letter-spacing: -0.015em; }
.side-job__years { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.side-job__role { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.side-job__text { margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.side-jobs--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vol__about a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.vol__about a:hover { color: var(--ink); }
.vol__roles { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.vol__roles-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-outline { padding: 3px 10px; border: 1px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); }
.honours { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid #DDE0E4; }
.honours__title { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.honours__list { display: flex; flex-direction: column; gap: 8px; }
.honours__list li { display: flex; flex-direction: column; }
.honours__club { font-size: 15px; font-weight: 700; color: var(--ink); }
.honours__titles { font-size: 15px; color: var(--ink-2); }
.side-job__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; min-width: 0; }
.side-job__logo { display: block; width: auto; height: 48px; border-radius: 8px; flex: none; }
.side-job__overview { margin-top: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.video {
  margin-top: auto; border-radius: 20px; background: var(--dark);
  aspect-ratio: 16 / 8; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.video { position: relative; }
.video iframe { width: 100%; height: 100%; border: 0; }
.video__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.video__play { position: relative; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.video-wrap { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.video-wrap .video { margin-top: 0; }
.video__caption { font-size: 14px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
/* Same size and weight as the stat values below it; a tighter gap keeps it attached to the tiles */
.rugby__heading { font-size: var(--rugby-value-size); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-bottom: -6px; }
.panel__text--peach { color: #4A3220; }
.video__play {
  width: 64px; height: 64px; border-radius: 999px; border: 0;
  background: #fff; color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform 0.15s ease;
}
.video__play:hover { transform: scale(1.06); }
.video__play:focus-visible { outline-color: #fff; outline-offset: 4px; border-radius: 999px; }

/* ==========================================================================
   Contact + footer
   ========================================================================== */

.contact { padding-bottom: 48px; }
.contact__block {
  border-radius: 40px; background: var(--dark); color: #fff;
  padding: 88px 56px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
}
.contact__title { text-wrap: balance; font-size: 72px; line-height: 1; font-weight: 800; letter-spacing: -0.035em; max-width: 820px; }
.contact__text { font-size: 20px; }
.contact .btn:focus-visible { outline-color: #fff; }
.contact__phone { font-size: 17px; }
.contact__phone a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.contact__phone a:hover { color: #fff; text-decoration-thickness: 2px; }
.contact__phone a:focus-visible { outline-color: #fff; }
.footer { padding-bottom: 48px; }
.footer__inner { padding: 32px 8px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ink-3); }
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.footer__links a:hover { color: var(--accent-ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 0; }
  .about-grid .acts-card { position: static; }
}

/* Client logos: one row while all 7 fit (about 1100px of content), then 4 + 3 */
@media (max-width: 1240px) {
  .clients__list:not(.is-discreet) { max-width: 720px; margin: 0 auto; gap: 28px 0; }
  .clients__list:not(.is-discreet) .client { flex: 0 0 25%; }
}

@media (max-width: 1100px) {
  .hero__name { font-size: 64px; }
  .hero__grid { gap: 40px; }
  .hero__photo { width: 200px; }
  .tool-block, .tool-block:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tool-block:nth-of-type(even) .tool-block__copy { order: 0; }
}

@media (max-width: 860px) {
  :root { --pad-x: 16px; --nav-h: 64px; }
  .hero { padding-top: 56px; padding-bottom: 48px; }
  .hero__name { font-size: 52px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero__photo { width: 120px; }
  .hero__sentence { font-size: 20px; }
  .experience, .side-jobs, .side-jobs--three, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-grid { gap: 40px; margin-top: 0; }
  .tool-block { gap: 24px; }
  .tool-block:nth-of-type(even) .tool-block__copy { order: 0; }
  .tool-block__title { font-size: 34px; }
  .tool-block__stage { padding: 24px 12px; }
  .about-sub__title { font-size: 28px; }
  .acts-card { padding: 24px; border-radius: 24px; }
  .clients__list { gap: 24px 36px; }
  .tech { padding-bottom: 72px; }
  .projects { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h2 { font-size: 40px; }
  .contact__title { font-size: 44px; }
  .hero__stage { min-height: 0; padding: 24px 12px; border-radius: 28px; }
  .section, .section--tall { padding-top: 72px; padding-bottom: 72px; }
  .section--projects { padding-top: 0; }
  .tool-tile, .panel { padding: 28px; border-radius: 28px; }
  .stat__value { font-size: 44px; }
  .contact__block { padding: 56px 24px; border-radius: 32px; }
  .experience { gap: 32px 0; }
}

@media (max-width: 520px) {
  .langs-list { padding: 4px 20px; border-radius: 24px; }
  .rugby { padding: 20px; border-radius: 24px; }
  .rugby__stats { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rugby__stat { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
  .rugby__stat-value { order: 0; }
  .rugby { --rugby-value-size: 22px; }
  .rugby__stat-label { order: -1; }
  .hero__name { font-size: 44px; }
  .hero__sentence { font-size: 18px; }
  .tech__list li { font-size: 15px; padding: 8px 14px; }
  .clients__list:not(.is-discreet) { gap: 24px 0; }
  .clients__list:not(.is-discreet) .client { flex: 0 0 50%; }
  .client { min-height: 48px; }
  .client__logo { max-width: 120px; }
  .tc-head, .tc-body { padding-left: 16px; padding-right: 16px; }
  .tc-kpis { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--t-line); border-radius: 10px; }
  .tc-kpi { border: 0; border-radius: 0; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label value" "label delta"; column-gap: 12px; align-items: center; }
  .tc-kpi + .tc-kpi { border-top: 1px solid var(--t-line); }
  .tc-kpi__label { grid-area: label; font-size: 13px; }
  .tc-kpi__value { grid-area: value; text-align: right; font-size: 18px; }
  .tc-kpi__delta { grid-area: delta; text-align: right; }
  .stat__value { font-size: 36px; }
  .job__org { font-size: 22px; }
  .job, .edu { grid-template-columns: minmax(0, 1fr); }
  .job__years { text-align: left; order: -1; font-size: 14px; }
  .act { grid-template-columns: 34px minmax(0, 1fr); }
  .acts-card__photo { width: 88px; height: 88px; }
  .side-job__head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .acts-card__head { column-gap: 16px; }
  .acts-card__name { font-size: 21px; }
  .panel__title { font-size: 32px; }
  .contact__title { font-size: 38px; }
}

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