/* ==========================================================================
   Tugba Ozdil portfolio: design system
   Aubergine, royal blue and dusty rose on white. Big clear type, tonal lavender panels.
   Fonts load from Google Fonts with system fallbacks. No JavaScript.
   ========================================================================== */

:root {
  /* Brand palette */
  --aubergine: #1f1530;   /* primary: headings, nav, primary buttons, dark sections */
  --blue: #4169d8;        /* interactive accent: links, focus, active states */
  --rose: #c47d96;        /* secondary accent: used sparingly, never as small text on white */
  --bg: #ffffff;

  /* Supporting tones */
  --ink: var(--aubergine);
  --ink-soft: #3d3350;
  --mute: #4f4663;
  --line: #e1dcea;
  --accent: var(--blue);
  --accent-text: #2a4aa8;  /* darker blue for small text on tinted panels (AA) */
  --rose-text: #8f4a65;    /* darker rose for small text (AA) */
  --on-dark: #dcd3f2;
  --blue-on-dark: #93abf2;  /* royal-blue family, AA on aubergine */

  /* Tonal surfaces */
  --wash: #f3f0fa;
  --lav: #d8ccf5;
  --blue-tint: #c5d4fa;
  --rose-tint: #f3c9d9;

  --display: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 12px;
  --r: 20px;
  --r-xl: clamp(22px, 3vw, 32px);

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --col-gap: clamp(1rem, 2.4vw, 2rem);
  --max: 1240px;
  --section: clamp(4.5rem, 10vw, 8rem);
  --ease: 160ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html { scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color var(--ease), background-color var(--ease), border-color var(--ease), transform var(--ease); }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100; text-decoration: none; border-radius: 999px; }
.skip-link:focus { top: 1rem; color: #fff; }

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

/* ---------- Layout primitives ---------- */

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--col-gap); }

@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .g-1-4 { grid-column: 1 / 4; }
  .g-1-5 { grid-column: 1 / 5; }
  .g-1-6 { grid-column: 1 / 6; }
  .g-1-7 { grid-column: 1 / 7; }
  .g-1-8 { grid-column: 1 / 8; }
  .g-1-10 { grid-column: 1 / 10; }
  .g-1-13 { grid-column: 1 / 13; }
  .g-4-13 { grid-column: 4 / 13; }
  .g-5-13 { grid-column: 5 / 13; }
  .g-6-13 { grid-column: 6 / 13; }
  .g-7-13 { grid-column: 7 / 13; }
  .g-8-13 { grid-column: 8 / 13; }
  .g-9-13 { grid-column: 9 / 13; }
}

/* Small label: sentence case, quiet */
.eyebrow { display: block; font: 500 0.875rem/1.4 var(--sans); color: var(--mute); }

/* Placeholder marker: anything wrapped in [[ ]] in content files */
.todo { background: #f3dbe4; color: #3d1f30; border-bottom: 2px dashed #a85a78; border-radius: 3px; padding: 0 0.2em; }

/* ---------- Header ---------- */

.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .site-header { position: sticky; top: 0; z-index: 20; } }
.site-header__inner { display: flex; flex-direction: column; gap: 0.75rem; padding-block: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.55rem; font: 600 1.25rem/1.2 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.wordmark::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--rose); }
.wordmark:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; font: 500 0.9375rem/1.2 var(--sans); }
.nav a { text-decoration: none; padding: 0.5rem 0.9rem; border-radius: 999px; }
.nav a:hover { background: var(--wash); color: var(--ink); }
.nav a[aria-current] { background: var(--lav); color: var(--ink); }
.nav .nav__contact { background: var(--ink); color: #fff; margin-left: 0.25rem; }
.nav .nav__contact:hover { background: var(--accent); color: #fff; }
@media (min-width: 720px) {
  .site-header__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3rem, 8vw, 6.5rem) 0; }
.hero__eyebrow { margin-bottom: 1.5rem; font-size: 1rem; }
.hero__title { font: 500 clamp(2.2rem, 5.6vw, 4.75rem)/1.05 var(--display); letter-spacing: -0.03em; max-width: none; text-wrap: balance; }
.hero__title strong { display: block; font-weight: inherit; color: var(--accent); }
.hero__lower { margin-top: clamp(2.5rem, 5vw, 4rem); row-gap: 2.5rem; align-items: start; }
.hero__intro { color: var(--ink-soft); max-width: 42rem; font-size: 1.1875rem; line-height: 1.55; }
.hero__intro p + p { margin-top: 1rem; }
.hero__cta { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 2rem; padding: 0.9rem 1.5rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.hero__cta:hover { background: var(--accent); color: #fff; }

.meta, .facts { display: grid; gap: 0; }
.meta > div, .facts > div { padding-block: 0.75rem; border-top: 1px solid rgba(18, 18, 43, 0.14); display: grid; gap: 0.15rem; align-content: start; }
.meta > div:first-child, .facts > div:first-child { border-top: 0; }
.meta dt, .facts dt { font: 600 0.875rem/1.4 var(--sans); color: var(--mute); }
.meta dd, .facts dd { font-size: 0.9688rem; line-height: 1.45; }
.hero .meta { background: var(--lav); border-radius: var(--r); padding: 0.75rem 1.5rem; }
@media (min-width: 560px) {
  .facts > div { grid-template-columns: 9rem 1fr; gap: 1.5rem; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section) 0; }
.hero + .section { padding-top: clamp(4rem, 8vw, 6.5rem); }
.section > .wrap.grid { row-gap: 1.25rem; }
.section__label { display: flex; gap: 0.9rem; align-items: baseline; align-self: start; margin-bottom: 1rem; }
.section__num { display: none; }
.section__title { font: 500 clamp(1.75rem, 3.2vw, 2.6rem)/1.08 var(--display); letter-spacing: -0.03em; }
@media (min-width: 900px) {
  .section__label { margin-bottom: 0; }
  .section__title { padding-top: 0.2rem; }
}

/* ---------- Selected work ---------- */

.work { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-column: 1 / -1; margin-top: 0.5rem; }
.feature { position: relative; background: var(--tint, var(--lav)); border-radius: var(--r-xl); padding: clamp(1.25rem, 3.4vw, 3rem); transition: transform 200ms ease; }
.work .feature:nth-child(1) { --tint: var(--lav); }
.work .feature:nth-child(2) { --tint: var(--blue-tint); }
.work .feature:nth-child(3) { --tint: var(--rose-tint); }
.work .feature:nth-child(4) { --tint: var(--blue-tint); }
.feature:hover { transform: translateY(-4px); }
.feature__title { font: 500 clamp(1.9rem, 3.6vw, 2.9rem)/1.06 var(--display); letter-spacing: -0.03em; }
.feature__title a { text-decoration: none; }
.feature__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-xl); }
.feature__title a:hover { color: var(--ink); }
/* The whole feature is the click target, so the focus ring goes around the whole feature */
.feature__title a:focus-visible { outline: none; }
.feature:has(.feature__title a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; }
.feature__kind { margin-bottom: 0.9rem; color: var(--ink-soft); font-weight: 600; }
.feature__kind b { display: none; }
.feature__summary { color: var(--ink-soft); max-width: 38rem; }
.feature .meta { margin-top: 1.75rem; }
.feature--lead .meta { margin-top: 0; }
@media (min-width: 900px) { .feature--lead .meta { margin-top: 0.4rem; } }
.feature__more { display: inline-flex; align-items: center; margin-top: 1.5rem; padding: 0.8rem 1.35rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.9688rem; transition: background-color var(--ease); }
.feature:hover .feature__more { background: var(--accent); }
.feature .fig__frame { background: transparent; }

/* Feature 1: wide visual on top, text below. Feature 2: text left, visual right. */
.feature--lead .fig { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.feature--lead .feature__row { row-gap: 1.75rem; align-items: start; }
.feature--split .feature__row { row-gap: 2rem; align-items: start; }
.feature--split .fig { margin: 0; }
.feature--split .feature__visual { order: -1; } /* image first on small screens, like the lead feature */
@media (min-width: 900px) {
  .feature--split .feature__text { order: 1; }
  .feature--split .feature__visual { order: 2; align-self: center; }
}

/* ---------- Capability list ---------- */

.caps { grid-column: 1 / -1; list-style: none; margin-top: 0.5rem; display: grid; gap: 0.5rem; }
.caps a { display: grid; gap: 0.35rem 1.5rem; padding: 1.4rem clamp(1rem, 2.4vw, 1.75rem); text-decoration: none; grid-template-columns: 1fr; align-items: baseline; background: var(--wash); border-radius: var(--r); }
.caps__n { display: none; }
.caps__name { font: 500 clamp(1.4rem, 2.2vw, 1.75rem)/1.15 var(--display); letter-spacing: -0.025em; }
.caps__desc { color: var(--ink-soft); font-size: 1rem; max-width: 42rem; }
.caps__arrow { display: none; }
.caps a:hover { background: var(--lav); color: var(--ink); }
@media (min-width: 900px) {
  /* Same 12-column rhythm as the rest of the page: description aligns with the intro text above */
  .caps a { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
  .caps__name { grid-column: 1 / 5; }
  .caps__desc { grid-column: 5 / 12; }
  .caps__arrow { display: grid; place-items: center; grid-column: 12 / 13; justify-self: end; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #fff; font-size: 1.1rem; transition: transform var(--ease), background-color var(--ease), color var(--ease); }
  .caps a:hover .caps__arrow { background: var(--ink); color: #fff; transform: translateX(3px); }
}

.more-link { display: inline-flex; margin-top: 1.75rem; padding: 0.8rem 1.35rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.more-link:hover { background: var(--accent); color: #fff; }

/* ---------- Prose / lead ---------- */

.b--lead { font: 500 clamp(1.4rem, 2.4vw, 1.95rem)/1.25 var(--display); letter-spacing: -0.025em; }
.b--p { color: var(--ink-soft); max-width: 40rem; }
.b--h3 { font: 600 1.3rem/1.3 var(--display); letter-spacing: -0.02em; margin-top: 0.75rem; }
.b--list { padding-left: 1.15rem; color: var(--ink-soft); max-width: 40rem; }
.b--list li { margin-bottom: 0.55rem; padding-left: 0.2rem; }
.b--list li::marker { color: var(--accent); }

.about-preview__text { font: 500 clamp(1.3rem, 2.2vw, 1.8rem)/1.35 var(--display); letter-spacing: -0.02em; max-width: 34em; }
.path { margin-top: 2.25rem; display: grid; gap: 0.75rem; }
.path > div { background: var(--wash); border-radius: var(--r); padding: 1.1rem 1.25rem; display: grid; gap: 0.15rem; }
.path > div:nth-child(1) { background: var(--lav); }
.path > div:nth-child(2) { background: var(--blue-tint); }
.path > div:nth-child(3) { background: var(--rose-tint); }
.path dt { font: 600 0.875rem/1.4 var(--sans); color: var(--ink-soft); }
.path dd { font: 600 1.2rem/1.3 var(--display); letter-spacing: -0.02em; }
@media (min-width: 720px) { .path { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 0.75rem; } }

/* ---------- Figures ---------- */

.fig { margin: 0 0 clamp(2rem, 4vw, 3rem); }
.fig__frame { aspect-ratio: var(--ratio, 16/9); position: relative; background: var(--wash); border-radius: var(--r); overflow: hidden; }
.fig__frame img { width: 100%; height: 100%; }
.fig__ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(0.9rem, 2vw, 1.5rem); background-image: radial-gradient(rgba(18, 18, 43, 0.12) 1px, transparent 1.4px); background-size: 18px 18px; }
.fig__tag { align-self: flex-start; font: 600 0.8125rem/1.4 var(--sans); color: var(--ink); background: var(--rose-tint); border-radius: 999px; padding: 0.2rem 0.7rem; }
.fig__hint { font: 500 clamp(0.9rem, 1.4vw, 1.0625rem)/1.4 var(--sans); color: var(--ink-soft); max-width: 36ch; }
.fig figcaption { margin-top: 0.8rem; font-size: 0.875rem; line-height: 1.5; color: var(--mute); max-width: 56ch; }
.fig-pair { display: grid; gap: 1.5rem var(--col-gap); }
.fig-pair .fig { margin-bottom: 0; }
@media (min-width: 720px) { .fig-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .fig--full { grid-column: 1 / 13; }
  .fig--wide { grid-column: 4 / 13; }
  .fig--inline { grid-column: 5 / 13; }
}

/* ---------- Case study hero ---------- */

.case-hero { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.case-hero__back { display: inline-flex; align-items: center; font: 500 0.9375rem/1 var(--sans); color: var(--ink); text-decoration: none; padding: 0.6rem 1rem; border-radius: 999px; background: var(--wash); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.case-hero__back:hover { background: var(--lav); color: var(--ink); }
.case-hero__title { font: 500 clamp(2.4rem, 6.4vw, 5.2rem)/1 var(--display); letter-spacing: -0.03em; max-width: 13em; text-wrap: balance; }
.case-hero__dek { margin-top: 1.75rem; font: 500 clamp(1.2rem, 2vw, 1.5rem)/1.4 var(--sans); color: var(--ink-soft); max-width: 36em; }
.case-hero .meta { margin-top: clamp(2rem, 4vw, 3rem); background: var(--lav); border-radius: var(--r); padding: 0.75rem 1.5rem; }
@media (min-width: 720px) {
  .case-hero .meta { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); column-gap: var(--col-gap); padding: 1.25rem 1.75rem; }
  .case-hero .meta > div { border-top: 0; padding-block: 0.25rem; }
}
.case-hero__figure { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.case-hero__figure .fig__frame { border-radius: var(--r-xl); }

.case-body > .section:first-child { padding-top: clamp(3.5rem, 7vw, 6rem); }

/* ---------- Blocks ---------- */

.b--cols { display: grid; gap: 0.75rem var(--col-gap); margin-block: 0.5rem 1rem; }
.b--cols .col { background: var(--wash); border-radius: var(--r); padding: 1.4rem 1.5rem 1.5rem; }
.b--cols .col:nth-child(1) { background: var(--lav); }
.b--cols .col:nth-child(2) { background: var(--blue-tint); }
.b--cols .col:nth-child(3) { background: var(--rose-tint); }
.b--cols .col:nth-child(4) { background: var(--blue-tint); }
.b--cols h3 { font: 600 1.25rem/1.25 var(--display); letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.b--cols p, .b--cols li { color: var(--ink-soft); font-size: 0.9688rem; line-height: 1.55; }
.b--cols ul { padding-left: 1.05rem; }
.b--cols li { margin-bottom: 0.5rem; }
.b--cols li::marker { color: var(--ink); }
@media (min-width: 720px) { .b--cols { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 1rem; } }

/* Four-up groups: two by two until there is room for four across */
@media (min-width: 720px) and (max-width: 1099px) { .b--cols[style*="--n:4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Quotes: the key line gets a highlighter swipe */
.b--quote { margin-block: clamp(1.5rem, 3vw, 2.5rem); }
.b--quote blockquote p { font: 500 clamp(1.5rem, 3vw, 2.4rem)/1.3 var(--display); letter-spacing: -0.03em; }
.b--quote blockquote p span, .b--quote blockquote p { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.b--quote blockquote p { background: linear-gradient(transparent 58%, var(--lav) 58%); display: inline; padding-inline: 0.1em; }
.b--quote figcaption { margin-top: 1.25rem; font: 500 0.9375rem/1.4 var(--sans); color: var(--mute); }

.b--timeline { list-style: none; display: grid; gap: 0; margin-block: 1.5rem 2rem; }
.b--timeline li { position: relative; border-left: 2px solid var(--ink); padding: 0 0 1.75rem 1.5rem; display: grid; gap: 0.35rem; align-content: start; }
.b--timeline li::before { content: ""; position: absolute; left: -7px; top: 0.25rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.b--timeline strong { font: 600 1.2rem/1.3 var(--display); letter-spacing: -0.02em; }
.b--timeline p { font-size: 0.9375rem; line-height: 1.55; color: var(--ink-soft); max-width: 28rem; }
@media (min-width: 900px) {
  .b--timeline { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: var(--col-gap); }
  .b--timeline li { border-left: 0; border-top: 2px solid var(--ink); padding: 1.25rem 0 0; }
  .b--timeline li::before { left: 0; top: -7px; }
}

.b--stages { margin-block: 0.5rem 1.5rem; }
.b--stages ol { list-style: none; display: grid; gap: 0.5rem; }
.b--stages li { background: var(--wash); border-radius: var(--r-sm); padding: 0.85rem 1rem; font: 600 1.0625rem/1.25 var(--display); letter-spacing: -0.015em; display: flex; gap: 0.9rem; align-items: baseline; }
.stages__n { font: 600 0.8125rem/1 var(--sans); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.stages__span { margin-top: 0.75rem; font: 600 0.9375rem/1.4 var(--sans); color: var(--ink); background: var(--blue-tint); border-radius: var(--r-sm); padding: 0.7rem 1rem; }
.stages__caption { margin-top: 0.9rem; font-size: 0.875rem; color: var(--mute); max-width: 56ch; }
@media (min-width: 900px) {
  .b--stages ol { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0.5rem; }
  .b--stages li { flex-direction: column; gap: 0.6rem; padding: 1rem; font-size: 1rem; min-height: 6.5rem; }
  .stages__span { text-align: center; }
}

.b--compare { display: grid; gap: 0.75rem var(--col-gap); margin-block: 0.5rem 1rem; }
.compare__item { border-radius: var(--r); padding: 1.25rem 1.5rem 1.5rem; background: var(--wash); }
.compare__item p { font: 500 1.2rem/1.4 var(--display); letter-spacing: -0.015em; margin-top: 0.5rem; color: var(--ink-soft); }
.compare__item--to { background: var(--blue-tint); }
.compare__item--to p { color: var(--ink); }
.compare__item .eyebrow { font-weight: 600; color: var(--ink-soft); }
@media (min-width: 720px) { .b--compare { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }

.b--threads { display: grid; gap: 1rem var(--col-gap); margin-block: 0.5rem 1rem; }
.thread { background: var(--wash); border-radius: var(--r); padding: 1.5rem; }
.thread:nth-child(1) { background: var(--lav); }
.thread:nth-child(2) { background: var(--blue-tint); }
.thread:nth-child(3) { background: var(--rose-tint); }
.thread header { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 1.25rem; }
.thread__n { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: #fff; font: 600 0.8125rem/1 var(--sans); }
.thread h3 { font: 600 1.35rem/1.2 var(--display); letter-spacing: -0.025em; }
.thread dl { display: grid; gap: 1.1rem; }
.thread dt { font: 600 0.875rem/1.4 var(--sans); color: var(--ink); margin-bottom: 0.2rem; }
.thread dd { font-size: 0.9688rem; line-height: 1.55; color: var(--ink-soft); }
.thread ul { padding-left: 1.05rem; }
.thread li { margin-bottom: 0.4rem; }
.thread li::marker { color: var(--ink); }
@media (min-width: 900px) { .b--threads { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); } }

.todo-block { border: 2px dashed #a85a78; background: #fbf1f5; border-radius: var(--r); padding: 1.1rem 1.35rem; font-size: 0.9688rem; line-height: 1.55; color: #3d1f30; }
.todo-block strong { display: block; font: 600 1rem/1.4 var(--display); color: #3d1f30; margin-bottom: 0.35rem; }
.todo-block ol { padding-left: 1.2rem; margin-top: 0.5rem; }
.todo-block li { margin-bottom: 0.2rem; }

/* ---------- Capabilities page ---------- */

.page-intro { padding-block: clamp(3rem, 8vw, 6rem) 0; }
.page-intro .eyebrow { font-size: 1rem; }
.page-title { font: 500 clamp(2.4rem, 6.2vw, 5rem)/1 var(--display); letter-spacing: -0.03em; max-width: 14em; }
.page-intro__lead { margin-top: 1.75rem; font: 500 clamp(1.2rem, 2vw, 1.5rem)/1.4 var(--sans); color: var(--ink-soft); max-width: 36em; }

.cap-jump { position: sticky; top: 0; z-index: 15; padding-block: 0.7rem; background: var(--bg); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .cap-jump { top: 4.1rem; } }
html:has(.cap-jump) { scroll-padding-top: 5.5rem; }
@media (min-width: 900px) { html:has(.cap-jump) { scroll-padding-top: 9rem; } }
@media (max-width: 899px) {
  .cap-jump .wrap { padding-inline: 0; }
  .cap-jump .cap-index { flex-wrap: nowrap; overflow-x: auto; padding-inline: var(--gutter, 1.25rem); scrollbar-width: none; }
  .cap-jump .cap-index::-webkit-scrollbar { display: none; }
  .cap-index li { flex: none; }
}
.cap-index { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cap-index a { display: inline-flex; padding: 0.5rem 0.95rem; border-radius: 999px; background: var(--wash); text-decoration: none; font: 600 0.875rem/1.2 var(--sans); }
.cap-index li:nth-child(6n+1) a { background: var(--blue-tint); }
.cap-index li:nth-child(6n+2) a { background: var(--lav); }
.cap-index li:nth-child(6n+3) a { background: var(--blue-tint); }
.cap-index li:nth-child(6n+4) a { background: var(--rose-tint); }
.cap-index li:nth-child(6n+5) a { background: var(--lav); }
.cap-index li:nth-child(6n+6) a { background: var(--blue-tint); }
.cap-index a span { display: none; }
.cap-index a:hover { background: var(--ink); color: #fff; }

.cap { padding-top: var(--section); }
.cap__head { row-gap: 1.25rem; align-items: start; }
.cap__name { display: flex; gap: 0.9rem; align-items: baseline; font: 500 clamp(1.9rem, 3.6vw, 2.8rem)/1.05 var(--display); letter-spacing: -0.03em; }
.cap__name span { display: none; }
.cap__value { font: 500 clamp(1.2rem, 2vw, 1.5rem)/1.4 var(--display); letter-spacing: -0.015em; }
.cap__examples { margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: 1rem; }
/* ---------- What I bring: scannable cards + full-screen detail ---------- */
.cap__examples { margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.xcard { position: relative; display: flex; flex-direction: column; gap: 1.1rem; background: var(--grey-card); border-radius: var(--r-xl); padding: 0.75rem 0.75rem 1.5rem; transition: transform var(--ease); }
.xcard:hover { transform: translateY(-2px); }
.xcard:has(a:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.xcard__img { display: block; text-decoration: none; }
.xcard__img .fig { margin: 0; }
.xcard__img .fig__frame { border-radius: var(--r); background: transparent; border-color: transparent; }
.xcard__body { display: flex; flex-direction: column; gap: 0.85rem; padding: 0 0.75rem; flex: 1; }
.xcard__title { font: 600 1.2rem/1.3 var(--display); letter-spacing: -0.02em; }
.xcard__title a { text-decoration: none; }
.xcard__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-xl); }
.xcard__label, .xdetail__out .xcard__label { display: block; font: 500 0.75rem/1.2 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue-on-dark); margin-bottom: 0.4rem; }
.xcard__out, .xdetail__out { background: var(--aubergine); color: #fff; border-radius: var(--r); padding: 1rem 1.15rem; }
.xcard__out p { font: 500 1rem/1.4 var(--display); letter-spacing: -0.01em; }
.xcard__row { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-soft); }
.xcard__row strong { color: var(--ink); font-weight: 600; margin-right: 0.35rem; }
.xcard__more { margin-top: auto; padding-top: 0.25rem; font-weight: 600; font-size: 0.9375rem; color: var(--accent-text); text-decoration: none; position: relative; z-index: 1; }
.xcard__more:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .xcard { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem; align-items: center; padding: 0.75rem 2rem 0.75rem 0.75rem; }
  .xcard__body { padding: 1.25rem 0; }
  .xcard__title { font-size: 1.4rem; max-width: 28ch; }
  .xcard__out p { font-size: 1.1rem; }
}


/* Full-screen detail (opened by the #id target, no JavaScript) */
.xdetail { display: none; position: fixed; inset: 0; z-index: 100; }
.xdetail:target { display: block; animation: xfade 0.18s ease both; }
@keyframes xfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .xdetail:target { animation: none; } }
html:has(.xdetail:target) { overflow: hidden; }
.xdetail__scrim { position: absolute; inset: 0; background: rgba(31, 21, 48, 0.55); }
.xdetail__sheet { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); padding: 0 var(--gutter) 3rem; }
@media (min-width: 900px) { .xdetail__sheet { inset: 1.25rem; border-radius: var(--r-xl); } }
.xdetail__bar { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 1rem 0; margin-inline: auto; max-width: 1100px; }
.xdetail__close { display: inline-flex; padding: 0.55rem 1rem; border-radius: 999px; background: var(--grey-card); font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.xdetail__close:hover { background: var(--ink); color: #fff; }
.xdetail__head, .xdetail__main, .xdetail__nav { max-width: 1100px; margin-inline: auto; }
.xdetail__head { padding-top: 1.25rem; }
.xdetail__title { font: 500 clamp(1.8rem, 3.6vw, 2.8rem)/1.1 var(--display); letter-spacing: -0.03em; margin-top: 0.75rem; max-width: 24ch; }
.xdetail__main { display: grid; gap: 2rem; margin-top: 2rem; align-items: start; }
@media (min-width: 900px) { .xdetail__main:has(.xdetail__img) { grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); gap: 3rem; } }
.xdetail__out { padding: 1.4rem 1.5rem; }
.xdetail__out p { font: 500 clamp(1.15rem, 2vw, 1.5rem)/1.4 var(--display); letter-spacing: -0.015em; }
.xdetail__out a { color: var(--blue-on-dark); }
.xdetail__grid { display: grid; gap: 1.5rem; margin-top: 1.75rem; }
.xdetail__grid dt { font: 600 0.875rem/1.4 var(--sans); color: var(--ink); margin-bottom: 0.35rem; }
.xdetail__grid dd { font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }
.xdetail__grid dd ul { padding-left: 1.1rem; }
.xdetail__grid dd li { margin-bottom: 0.4rem; }
.xdetail__grid dd li::marker { color: var(--ink); }
.xdetail__img .fig { margin: 0; }
.xdetail__img .fig__frame { border-radius: var(--r); background: var(--grey-card); }
.xdetail__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-weight: 600; font-size: 0.9375rem; }
.xdetail__nav a { text-decoration: none; color: var(--accent-text); max-width: 24rem; }
.xdetail__nav a:hover { text-decoration: underline; }
.xdetail :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.cap__related { margin-top: 1.5rem; font-size: 0.9688rem; display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; }
.cap__related .eyebrow { display: inline; margin-right: 0.25rem; }
.cap__related a { font-weight: 600; text-decoration: none; padding: 0.5rem 1rem; border-radius: 999px; background: var(--wash); }
.cap__related a:hover { background: var(--ink); color: #fff; }

/* ---------- About ---------- */

.career { list-style: none; grid-column: 1 / -1; }
.chapter { border-top: 1px solid var(--line); padding-block: 1.75rem 2.5rem; row-gap: 1rem; }
.chapter:first-child { border-top: 0; padding-top: 0.5rem; }
.chapter__when { font: 600 1.1rem/1.4 var(--display); letter-spacing: -0.02em; color: var(--accent-text); }
.chapter__title { font: 500 clamp(1.5rem, 2.6vw, 2.1rem)/1.12 var(--display); letter-spacing: -0.03em; }
.chapter__summary { margin-top: 0.75rem; color: var(--ink-soft); max-width: 40rem; }
.roles { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.5rem; }
.role { background: var(--wash); border-radius: var(--r); padding: 1.1rem 1.35rem; display: grid; gap: 0.5rem 1.5rem; }
.role__head { display: grid; gap: 0.1rem; align-content: start; }
.role__title { font: 600 1.1rem/1.35 var(--display); letter-spacing: -0.015em; }
.role__org { font-size: 0.9688rem; color: var(--ink-soft); }
.role__when { font-size: 0.875rem; color: var(--mute); }
.role ul { padding-left: 1.05rem; font-size: 0.9688rem; line-height: 1.55; color: var(--ink-soft); }
.role li { margin-bottom: 0.3rem; }
.role li::marker { color: var(--ink); }
@media (min-width: 720px) {
  .role { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
}

.principles { list-style: none; display: grid; gap: 0.5rem; }
.principles li { background: var(--wash); border-radius: var(--r); padding: 1.2rem 1.4rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.15rem; align-items: start; }
.principles__text { display: grid; gap: 0.3rem; }
.principles__icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; color: var(--ink); flex: none; }
.principles__icon .icon { width: 1.75rem; height: 1.75rem; }
.principles li:nth-child(5n+1) { background: var(--lav); }
.principles li:nth-child(5n+2) { background: var(--blue-tint); }
.principles li:nth-child(5n+3) { background: var(--rose-tint); }
.principles li:nth-child(5n+4) { background: var(--blue-tint); }
.principles li:nth-child(5n+5) { background: var(--lav); }
.principles strong { font: 600 1.3rem/1.25 var(--display); letter-spacing: -0.025em; }
.principles__text span { color: var(--ink-soft); font-size: 0.9688rem; max-width: 38rem; }


/* ---------- Homepage: design toolkit ---------- */
.toolkit { list-style: none; display: grid; gap: 0.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .toolkit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.toolkit li { background: var(--grey-card); border-radius: var(--r); padding: 1.2rem 1.4rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.15rem; align-items: center; }
.toolkit__mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; color: var(--ink); flex: none; }
.toolkit__mark .icon { width: 1.75rem; height: 1.75rem; }
.toolkit__logo { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.toolkit__text { display: grid; gap: 0.2rem; }
.toolkit__text strong { font: 600 1.2rem/1.25 var(--display); letter-spacing: -0.02em; }
.toolkit__text span { color: var(--ink-soft); font-size: 0.9688rem; }

/* ---------- Next up ---------- */

.nextup { padding-top: var(--section); }
.nextup .grid { row-gap: 1rem; }
.nextup__item { display: grid; gap: 0.5rem; align-content: space-between; min-height: 11rem; border-radius: var(--r-xl); background: var(--lav); padding: clamp(1.25rem, 3vw, 2rem); text-decoration: none; position: relative; }
.nextup__item.g-8-13, .nextup__item:nth-child(2) { background: var(--blue-tint); }
.nextup__item:hover { color: var(--ink); transform: translateY(-4px); }
.nextup .eyebrow { color: var(--ink-soft); font-weight: 600; }
.nextup__title { font: 500 clamp(1.5rem, 3vw, 2.3rem)/1.08 var(--display); letter-spacing: -0.03em; max-width: 14em; }
.nextup__arrow { font: 400 1.75rem/1 var(--sans); transition: transform var(--ease); }
.nextup__item:hover .nextup__arrow { transform: translateX(0.4rem); }

/* ---------- Contact and footer (dark ending) ---------- */

.section.contact { background: var(--ink); color: #fff; margin-top: var(--section); padding-block: var(--section) clamp(3rem, 6vw, 5rem); }
.contact .section__title { color: var(--on-dark); font-size: 1.25rem; letter-spacing: -0.01em; }
.contact .b--lead { color: #fff; font-size: clamp(1.3rem, 2.2vw, 1.75rem); max-width: 30em; }
.contact__email { margin-top: 1.75rem; font: 500 clamp(1.6rem, 5.4vw, 4.2rem)/1.05 var(--display); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.contact__email a { text-decoration-thickness: 3px; text-underline-offset: 0.14em; text-decoration-color: #93abf2; }
.contact__email a:hover { color: var(--on-dark); }
.contact__links { list-style: none; margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.9688rem; }
.contact__links li { display: flex; align-items: center; gap: 0.75rem; }
.contact__links a { font-weight: 600; text-decoration: none; padding: 0.7rem 1.2rem; border-radius: 999px; background: #fff; color: var(--ink); }
.contact__links a:hover { background: var(--on-dark); color: var(--ink); }
.contact__links span { font-size: 0.875rem; color: #b9aed0; }
.contact :focus-visible, .site-footer :focus-visible { outline-color: var(--on-dark); }

.site-footer { background: var(--ink); color: #b9aed0; font-size: 0.9375rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; padding-block: 1.75rem 2.5rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.fig--wide .fig__frame:has(img), .fig--full .fig__frame:has(img) { background: #fff; border: 1px solid var(--line); }
.fig--tint-lav .fig__frame:has(img) { background: var(--lav); border-color: transparent; }
.fig-pair .fig__frame:has(img) { background: #fff; border: 1px solid var(--line); }


/* ---------- Dark hero sections (aubergine) ---------- */

.hero, .page-intro, .case-hero { background: var(--ink); color: #fff; padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero .eyebrow, .page-intro .eyebrow { color: var(--on-dark); }
.hero__title, .page-title, .case-hero__title { color: #fff; }
.hero__title strong { color: var(--blue-on-dark); }
.hero__intro, .page-intro__lead, .case-hero__dek { color: var(--on-dark); }
.hero__cta { background: #fff; color: var(--ink); }
.hero__cta:hover { background: var(--lav); color: var(--ink); }
.case-hero__back { background: rgba(255, 255, 255, 0.12); color: #fff; }
.case-hero__back:hover { background: var(--lav); color: var(--ink); }
.hero :focus-visible, .page-intro :focus-visible, .case-hero :focus-visible { outline-color: var(--on-dark); }
.hero + .section { padding-top: clamp(4rem, 8vw, 6.5rem); }
.case-hero .eyebrow { color: var(--on-dark); }
.case-hero figcaption, .hero figcaption { color: var(--on-dark); }
.hero .meta, .case-hero .meta { color: var(--ink); }

/* ---------- Dark header ---------- */
.site-header { background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, 0.12); color: #fff; }
.wordmark, .wordmark:hover { color: #fff; }
.nav a { color: var(--on-dark); }
.nav a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.nav a[aria-current] { background: var(--lav); color: var(--ink); }
.nav .nav__contact { background: #fff; color: var(--ink); }
.nav .nav__contact:hover { background: var(--lav); color: var(--ink); }
.site-header :focus-visible { outline-color: var(--on-dark); }

/* ---------- Dark quick-jump bar ---------- */
.cap-jump { background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.cap-jump :focus-visible { outline-color: var(--on-dark); }

/* Quick-jump hover: darken the chip, keep dark text */
.cap-index a:hover { background-color: inherit; color: var(--ink); filter: brightness(0.86) saturate(1.15); }
.cap-index li:nth-child(6n+1) a:hover, .cap-index li:nth-child(6n+3) a:hover, .cap-index li:nth-child(6n+6) a:hover { background: var(--blue-tint); }
.cap-index li:nth-child(6n+2) a:hover, .cap-index li:nth-child(6n+5) a:hover { background: var(--lav); }
.cap-index li:nth-child(6n+4) a:hover { background: var(--rose-tint); }

/* Figure pairs with padding: equal-height frames, image inset */
.fig-pair--pad .fig__frame img { box-sizing: border-box; padding: clamp(0.75rem, 2vw, 1.5rem); }

/* Aside figure: caption in the left column, image in the right half */
@media (min-width: 900px) {
  .fig--aside { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .fig--aside .fig__frame { grid-column: 7 / 13; grid-row: 1; }
  .fig--aside figcaption { grid-column: 7 / 13; grid-row: 2; }
}

/* Long timelines (6+ points) stay vertical on wide screens */
@media (min-width: 900px) {
  .b--timeline--vertical { grid-template-columns: 1fr; }
  .b--timeline--vertical li { border-top: 0; border-left: 2px solid var(--ink); padding: 0 0 1.75rem 1.5rem; }
  .b--timeline--vertical li::before { left: -7px; top: 0.25rem; }
  .b--timeline--vertical li:last-child { padding-bottom: 0; }
}

/* Light grey figure frame (research + migration pair) */
.fig-pair .fig--tint-grey .fig__frame:has(img) { background: #f2f2f5; border-color: transparent; }

/* White figure pairs: no border, a subtle shadow lifts them off the page */
.fig-pair .fig:not(.fig--tint-grey) .fig__frame:has(img) { border: 0; box-shadow: 0 1px 2px rgba(31, 21, 48, 0.08), 0 6px 18px rgba(31, 21, 48, 0.07); }

/* Light grey frame for standalone figures too */
.fig--tint-grey .fig__frame:has(img) { background: #f2f2f5; border-color: transparent; }

/* Tighter vertical timeline: date in a left column, title and text beside it */
@media (min-width: 900px) {
  .b--timeline--vertical { margin-block: 1rem 1.5rem; }
  .b--timeline--vertical li { grid-template-columns: 10.5rem minmax(0, 1fr); column-gap: 1.25rem; row-gap: 0.1rem; padding: 0 0 1.1rem 1.5rem; align-items: baseline; }
  .b--timeline--vertical li .eyebrow { grid-column: 1; grid-row: 1 / span 2; }
  .b--timeline--vertical li strong { grid-column: 2; grid-row: 1; font-size: 1.0625rem; line-height: 1.35; }
  .b--timeline--vertical li p { grid-column: 2; grid-row: 2; max-width: none; font-size: 0.9375rem; line-height: 1.5; }
}

/* Inline highlight: ==text== */
mark.hl { background: linear-gradient(transparent 55%, var(--lav) 55%); color: var(--ink); font-weight: 600; padding-inline: 0.05em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Navbar: no brand dot, no divider underneath; a little more room between quick-jump pills */
.wordmark::before { content: none; }
.site-header { border-bottom: 0; }
.cap-index { gap: 0.65rem; }

/* Quick-jump pills: centred on wide screens (mobile keeps the scrollable row) */
@media (min-width: 900px) { .cap-jump .cap-index { justify-content: center; } }

/* Quick-jump: text tabs on a ruled strip with a jump-down arrow and blue underline on hover (no pill shapes) */
.cap-jump { padding-block: 0.5rem 0; }
.cap-jump .cap-index { gap: 0 1.9rem; }
.cap-jump .cap-index li a { gap: 0.45rem; align-items: center; padding: 1rem 0 0.8rem; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #fff; filter: none; transition: border-color 0.15s ease, color 0.15s ease; }
.cap-jump .cap-index li a::after { content: "\2193" / ""; color: var(--blue-on-dark); font-weight: 500; transition: transform 0.15s ease; }
.cap-jump .cap-index li a:hover, .cap-jump .cap-index li a:focus-visible { background: transparent; color: #fff; border-bottom-color: var(--blue-on-dark); filter: none; }
.cap-jump .cap-index li a:hover::after { transform: translateY(2px); }

/* Cards: one neutral cool grey (matches image frames) instead of per-card pastels */
.feature, .work .feature:nth-child(n) { --tint: var(--grey-card); }
.path > div:nth-child(n), .b--cols .col:nth-child(n), .compare__item--to, .thread:nth-child(n),
.principles li:nth-child(n), .nextup__item, .nextup__item:nth-child(n), .stages__span,
.caps a, .b--stages li, .compare__item, .role, .cap__related a { background: var(--grey-card); }
:root { --grey-card: #f2f2f5; }

/* ---------- Homepage hero: colour glow + fanned work visuals ---------- */
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 420px at 82% 22%, rgba(65, 105, 216, 0.5), transparent 70%),
    radial-gradient(520px 380px at 96% 85%, rgba(196, 125, 150, 0.4), transparent 70%),
    radial-gradient(480px 360px at 58% 110%, rgba(147, 171, 242, 0.2), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9rem);
  mask-image: linear-gradient(to bottom, transparent 0, #000 9rem);
}
.hero__art { display: none; }
@media (min-width: 1240px) {
  .hero { padding-bottom: calc(min(100vw, 1440px) * 0.1); } /* room so the visuals clear the headline */
  /* 1em = 1/1440 of the viewport (capped), so the whole cluster scales together */
  .hero__art { display: block; position: absolute; z-index: 0; right: 2.8%; bottom: -75em; width: 700em; height: 520em; font-size: calc(min(100vw, 1440px) / 1640); pointer-events: none; }
  .hero__shot { position: absolute; height: auto; border-radius: 20em; padding: 8em; box-sizing: border-box; background: #fff; box-shadow: 0 18em 40em rgba(8, 4, 20, 0.45); }
  .hero__shot--tracker { right: 0; bottom: 192em; width: 490em; }
  .hero__shot--migration { right: 290em; bottom: 96em; width: 330em; padding: 20em; background: var(--grey-card); border-radius: 22em; }
}


/* ---------- Homepage v2: proof strip, colour bands, outcome-first case studies ---------- */
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__ctas .hero__cta { margin-top: 0; }
.hero__cta--ghost { background: transparent; color: #fff; border: 1px solid #6c5f86; }
.hero__cta--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.proof { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.proof__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 0; }
.proof__list li { padding: 0.25rem 1.5rem; border-left: 1px solid var(--line); display: grid; gap: 0.7rem; align-content: start; }
.proof__list li:nth-child(odd) { border-left: 0; padding-left: 0; }
.proof__list b { font: 500 clamp(2.2rem, 4vw, 3rem)/1 var(--display); letter-spacing: -0.03em; color: var(--accent); }
.proof__list span { color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.5; }
@media (min-width: 900px) {
  .proof__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .proof__list li:nth-child(n) { border-left: 1px solid var(--line); padding-left: 1.75rem; }
  .proof__list li:first-child { border-left: 0; padding-left: 0; }
}

/* Case studies: no card, image with shadow, aubergine outcome block */
.feature, .work .feature:nth-child(n) { background: transparent; padding: 0; border-radius: 0; --tint: transparent; }
.feature:hover { transform: none; }
.work { gap: clamp(3.5rem, 7vw, 6rem); }
.feature .fig__frame { border-radius: 18px; overflow: visible; box-shadow: 0 2px 4px rgba(31, 21, 48, 0.06), 0 20px 48px rgba(31, 21, 48, 0.18); }
.feature .fig__frame img { border-radius: 18px; }
.feature__kind { color: var(--rose-text); }
.feature__title { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.feature__outcome { margin-top: 1.6rem; background: var(--ink); color: #fff; border-radius: 18px; padding: 1.35rem 1.6rem; max-width: 38rem; }
.feature__outcome span { display: block; margin-bottom: 0.5rem; font: 500 0.75rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-on-dark); }
.feature__outcome p { font: 500 1.25rem/1.4 var(--display); letter-spacing: -0.01em; }
.feature__more { background: transparent; color: var(--accent-text); padding: 0; margin-top: 1.5rem; }
.feature:hover .feature__more { background: transparent; text-decoration: underline; }
@media (min-width: 900px) {
  .feature--split .feature__row { align-items: center; column-gap: 3.5rem; }
  .feature--split .feature__text { grid-column: 1 / 7; grid-row: 1; }
  .feature--split .feature__visual { order: 0; grid-column: 7 / -1; grid-row: 1; }
  .feature--rev .feature__text { grid-column: 7 / -1; }
  .feature--rev .feature__visual { grid-column: 1 / 7; }
}

/* Work: ruled rows */
.caps { gap: 0; border-top: 1px solid var(--ink); }
.caps a, .caps a:hover { background: transparent; border-radius: 0; border-bottom: 1px solid #cfc8dd; padding: 1.5rem 0; }
.caps a:hover .caps__name { color: var(--accent-text); }
.caps__n { display: block; color: var(--accent); font: 500 0.875rem/1 var(--sans); }
.caps__arrow { display: block; color: var(--accent); font-size: 1.4rem; }
@media (min-width: 900px) {
  .caps a { grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.4fr) 2rem; gap: 1.5rem; }
}

/* Colour bands */
.band { margin-top: var(--section); padding-bottom: var(--section); }
.band + .band { margin-top: 0; }
.band .section__label { grid-column: 1 / -1; }
.band .section__label, .band .b.b--lead, .band .principles, .band .toolkit { grid-column: 1 / -1; }
.band--blue { background: var(--blue); color: #fff; }
.band--blue .section__title, .band--blue .b--lead { color: #fff; }
.band--rose { background: var(--rose-tint); }
.band--dark { background: var(--ink); color: #fff; }
.band--dark .section__title { color: #fff; }
.band--dark .about-preview__text { color: var(--on-dark); }
.band--dark .more-link { background: #fff; color: var(--ink); }
.band--dark .more-link:hover { background: var(--lav); color: var(--ink); }
.band--dark :focus-visible, .band--blue :focus-visible { outline-color: #fff; }
.band--dark + .contact { margin-top: 0; padding-top: 0; }
.band--dark + .contact > .wrap { border-top: 1px solid #4b3f63; padding-top: clamp(3rem, 6vw, 4.5rem); }

.band--blue .principles { grid-column: 1 / -1; gap: 2.5rem 2.25rem; margin-top: 1.5rem; }
.principles li:nth-child(n) { background: transparent; border-radius: 0; padding: 0; display: block; }
.band--blue .principles__icon { display: block; width: 2rem; height: 2rem; margin-bottom: 1.1rem; color: #fff; }
.band--blue .principles__icon .icon { width: 2rem; height: 2rem; }
.band--blue .principles__text span { color: #fff; }
@media (min-width: 900px) { .band--blue .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.band--rose .toolkit { grid-column: 1 / -1; gap: 2rem; margin-top: 0.5rem; }
.toolkit li:nth-child(n) { background: transparent; border-radius: 0; border-top: 2px solid var(--ink); padding: 1.5rem 0 0; display: block; }
.toolkit__mark { margin-bottom: 1.25rem; }
.toolkit__mark:has(.icon) { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--ink); color: var(--rose-tint); }
.toolkit__logo { width: 3.5rem; height: 3.5rem; }
.toolkit__text span { color: var(--ink); }
@media (min-width: 700px) { .band--rose .toolkit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .band--rose .toolkit { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.band--dark .path > div:nth-child(n) { background: transparent; border-radius: 0; border-top: 1px solid #4b3f63; padding: 1.1rem 0; grid-template-columns: 1fr; }
.band--dark .path > div:last-child { border-bottom: 1px solid #4b3f63; }
.band--dark .path dt { color: var(--blue-on-dark); }
.band--dark .path dd { color: #fff; }

/* Contact heading matches the About heading */
.contact .section__title { color: #fff; font: 500 clamp(1.75rem, 3.2vw, 2.6rem)/1.08 var(--display); letter-spacing: -0.03em; }
.contact .b--lead { font: 500 clamp(1.3rem, 2.2vw, 1.8rem)/1.35 var(--display); letter-spacing: -0.02em; color: var(--on-dark); max-width: 34em; }

/* About (dark band): copy left, ruled timeline right */
.band--dark .about__main, .band--dark .about__path { grid-column: 1 / -1; }
.band--dark .about-preview__text { font: 400 clamp(1.1rem, 1.6vw, 1.1875rem)/1.65 var(--sans); letter-spacing: 0; max-width: none; }
.band--dark .more-link { background: transparent; color: var(--blue-on-dark); padding: 0; margin-top: 1.75rem; }
.band--dark .more-link:hover { background: transparent; color: #fff; text-decoration: underline; }
.band--dark .path { margin-top: 1rem; }
.band--dark .path > div:nth-child(n) { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.25rem 0; }
.band--dark .path dt { font: 500 0.9375rem/1.4 var(--sans); }
.band--dark .path dd { font: 400 1.0625rem/1.4 var(--sans); letter-spacing: 0; text-align: right; }
@media (min-width: 900px) {
  .band--dark .section__label { grid-column: 1 / 7; grid-row: 1; }
  .band--dark .about__main { grid-column: 1 / 7; grid-row: 2; }
  .band--dark .about__path { grid-column: 7 / -1; grid-row: 1 / 3; align-self: center; margin: 0 0 0 3rem; }
}
.band--dark .path.about__path { display: block; }
.caps__desc { justify-self: start; text-align: left; }

/* Work rows: explicit columns, plain arrow with a centred hover circle */
@media (min-width: 900px) {
  .caps a { align-items: center; }
  .caps__n { grid-column: 1; }
  .caps__name { grid-column: 2; }
  .caps__desc { grid-column: 3; }
  .caps__arrow { grid-column: 4; justify-self: center; align-self: center; width: 2.5rem; height: 2.5rem; margin-right: -0.25rem; background: transparent; border-radius: 50%; line-height: 1; font-size: 1.25rem; padding-bottom: 0.1em; }
  .caps a:hover .caps__arrow { background: var(--accent); color: #fff; transform: none; }
  .caps a { grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.4fr) 2.5rem; }
}

/* Contact: same two-column layout and type as About */
.contact .contact__email { font: 500 clamp(1.4rem, 2.6vw, 2.1rem)/1.2 var(--display); letter-spacing: -0.02em; margin-top: 0; }
.contact .contact__email a { text-decoration: none; color: #fff; }
.contact .contact__email a:hover { color: var(--blue-on-dark); text-decoration: underline; }
.contact .contact__links { margin-top: 1rem; gap: 0.5rem 1.5rem; }
.contact .contact__links a { background: transparent; color: var(--blue-on-dark); padding: 0; border-radius: 0; }
.contact .contact__links a:hover { background: transparent; color: #fff; text-decoration: underline; }
.contact .contact__links span { display: none; }
@media (min-width: 900px) {
  .contact .contact__body { display: contents; }
  .contact .section__label { grid-column: 1 / 7; grid-row: 1; }
  .contact .b--lead { grid-column: 1 / 7; grid-row: 2; font: 400 clamp(1.1rem, 1.6vw, 1.1875rem)/1.65 var(--sans); letter-spacing: 0; color: var(--on-dark); }
  .contact .contact__email { grid-column: 7 / -1; grid-row: 1; align-self: end; margin-left: 3rem; padding-bottom: 1.25rem; border-bottom: 1px solid #4b3f63; }
  .contact .contact__links { grid-column: 7 / -1; grid-row: 2; align-self: start; margin: 0 0 0 3rem; }
}
@media (min-width: 900px) { .caps__arrow { display: grid; place-items: center; margin-right: 0; padding-bottom: 0; } }

/* Contact: rounded buttons, LinkedIn primary, email secondary */
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.cbtn { display: inline-flex; align-items: center; padding: 0.9rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; overflow-wrap: anywhere; }
.cbtn--primary, .contact .cbtn--primary { background: var(--blue); color: #fff; border: 1px solid var(--blue); }
.cbtn--primary:hover { background: #5578e0; border-color: #5578e0; color: #fff; }
.cbtn--ghost { background: transparent; color: #fff; border: 1px solid #6c5f86; }
.cbtn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
@media (min-width: 900px) {
  .contact .contact__actions { grid-column: 7 / -1; grid-row: 1 / 3; align-self: center; margin: 0 0 0 3rem; }
}

/* Work page cards: same treatment as the homepage case studies */
.xcard { background: transparent; border-radius: 0; padding: 0; gap: 1.5rem; }
.xcard:hover { background: transparent; padding: 0; transform: none; }
.xcard__img .fig__frame { overflow: visible; border-radius: 18px; box-shadow: 0 2px 4px rgba(31, 21, 48, 0.06), 0 20px 48px rgba(31, 21, 48, 0.18); }
.xcard__img .fig__frame img { border-radius: 18px; }
.xcard__body { padding: 0; gap: 1rem; }
.xcard__title { font: 500 clamp(1.5rem, 2.4vw, 1.9rem)/1.15 var(--display); letter-spacing: -0.025em; }
.xcard__out { border-radius: 18px; padding: 1.35rem 1.6rem; }
.xcard__out p { font-size: 1.2rem; line-height: 1.4; }
.xcard__more { padding-top: 0.5rem; font-size: 1rem; }
@media (min-width: 900px) {
  .xcard { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; padding: 0; }
  .xcard__body { padding: 0; }
  .xcard__title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); max-width: 26ch; }
  .xcard__out p { font-size: 1.2rem; }
  .xcard:nth-of-type(even) .xcard__img { order: 2; }
}
.cap__examples { gap: clamp(3rem, 6vw, 5rem); }

/* Work cards v2: quieter titles under the section heading */
.xcard__title, .xcard__title a { font: 600 clamp(1.2rem, 1.7vw, 1.4rem)/1.3 var(--display); letter-spacing: -0.02em; }
.xcard__title { max-width: 30ch; }
.xcard__out p { font-size: 1.125rem; }
.xcard:hover, .xcard__more:hover { transform: none; text-decoration: none; }
@media (min-width: 900px) { .xcard__title { font-size: clamp(1.2rem, 1.7vw, 1.4rem); } }

/* Work cards: frame hugs the image (no letterbox background) */
.xcard__img .fig__frame { aspect-ratio: auto; background: transparent; }
.xcard__img .fig__frame img { display: block; width: 100%; height: auto; object-fit: initial !important; }


/* Work cards: shadow follows the visible image (images have transparent margins) */
.xcard__img .fig__frame { box-shadow: none; overflow: visible; border-radius: 0; }
.xcard__img .fig__frame img { border-radius: 0; filter: drop-shadow(0 18px 28px rgba(31, 21, 48, 0.2)) drop-shadow(0 2px 3px rgba(31, 21, 48, 0.1)); }

/* Work page cards: nothing moves on hover */
.xcard, .xcard:hover, .xcard *, .xcard:hover * { transform: none !important; transition: none !important; }

.xcard a:hover, .xcard__title a:hover { color: inherit; }
.xcard__more:hover { color: var(--accent-text); }

/* Work cards: "Read more" matches the homepage case study link */
.xcard .xcard__more { display: inline-flex; align-items: center; align-self: flex-start; margin-top: 0.5rem; padding: 0; font-weight: 600; font-size: 0.9688rem; color: var(--accent-text); text-decoration: none; background: transparent; }
.xcard:hover .xcard__more, .xcard .xcard__more:hover { color: var(--accent-text); text-decoration: underline; background: transparent; }
.xcard .xcard__more { gap: 0.35rem; }

/* Work page section header: title with the description underneath (like How I work) */
.cap__head { row-gap: 0.9rem; }
.cap__head .cap__name, .cap__head .cap__value { grid-column: 1 / -1; }
.cap__name { font: 500 clamp(1.75rem, 3.2vw, 2.6rem)/1.08 var(--display); letter-spacing: -0.03em; }
.cap__value { font: 500 clamp(1.4rem, 2.4vw, 1.95rem)/1.25 var(--display); letter-spacing: -0.025em; max-width: 40rem; }
.cap__examples { margin-top: clamp(2.5rem, 5vw, 4rem); }
.cap__value { max-width: none; }
.cap__value { max-width: 60rem; font: 400 clamp(1.1rem, 1.6vw, 1.25rem)/1.55 var(--sans); letter-spacing: 0; color: var(--ink-soft); }

/* Cards whose image is bare content on a transparent canvas: grey panel with padding */
.xcard--framed .xcard__img .fig__frame { background: var(--grey-card); border-radius: 20px; padding: clamp(1.25rem, 3vw, 2.5rem); box-shadow: none; overflow: hidden; }
.xcard--framed .xcard__img .fig__frame img { filter: none; }

/* Work cards: larger titles again */
.xcard__title, .xcard__title a { font: 500 clamp(1.5rem, 2.4vw, 1.9rem)/1.15 var(--display); letter-spacing: -0.025em; }
@media (min-width: 900px) { .xcard__title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); max-width: 26ch; } }

/* Work cards: short summary instead of Situation / What I did rows */
.xcard__summary { color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.6; max-width: 38rem; }

/* Outcome blocks on cards: light lavender panel (Work cards + homepage case studies) */
.xcard__out, .feature__outcome { background: #ece6fb; color: var(--ink); }
.xcard__out .xcard__label, .feature__outcome span { color: #5b3fb0; }
.xcard__out p, .feature__outcome p { color: var(--ink); }

/* Cards with a smaller image on a white panel */
.xcard--white .xcard__img .fig__frame { background: #fff; border-radius: 20px; padding: clamp(1.5rem, 4.5vw, 3.5rem); box-shadow: 0 2px 4px rgba(31, 21, 48, 0.06), 0 20px 48px rgba(31, 21, 48, 0.14); overflow: hidden; }
.xcard--white .xcard__img .fig__frame img { filter: none; }

/* Case study hero: image without the lavender wash */

/* Case study contents bar: same as the Work page quick-jump, plus a persistent underline on the current section */
.toc .cap-index li a[aria-current="true"] { border-bottom-color: var(--blue-on-dark); }
/* Case study showcase image: light section below the hero */
.case-showcase { background: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0 0; }
.case-showcase .fig { max-width: 66rem; margin: 0 auto; }
.case-showcase .fig__frame { background: transparent; aspect-ratio: auto; overflow: visible; }
.case-showcase .fig__frame img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 1px 3px rgba(31, 21, 48, 0.12), 0 18px 48px rgba(31, 21, 48, 0.14); }

/* Case study header details: open rows on the dark hero */
.case-hero .meta { background: transparent; border-radius: 0; color: #fff; padding: 1.25rem 0 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.case-hero .meta > div { border-top-color: rgba(255, 255, 255, 0.14); }
.case-hero .meta dt { color: var(--blue-on-dark); }
.case-hero .meta dd { color: #fff; }
@media (min-width: 720px) {
  .case-hero .meta { padding: 1.25rem 0 0; }
}

/* Work page: numbered rows with a dark rule above each card */
.cap__examples { gap: 0; }
.xcard__index { margin: 0 0 1.5rem; padding-top: 0.9rem; border-top: 2px solid var(--ink); font: 600 0.8125rem/1 var(--sans); letter-spacing: 0.06em; color: var(--accent-text); }
.xcard__index:not(:first-child) { margin-top: clamp(3.5rem, 6vw, 5.5rem); }

/* Timeline, ruled rows: date left in blue, title and text right, hairlines between, final row highlighted */
@media (min-width: 900px) {
  .b--timeline--vertical { margin-block: 0.5rem 1.5rem; border-top: 1px solid var(--ink); }
  .b--timeline--vertical li { grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: 1.25rem; padding: 1.05rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .b--timeline--vertical li::before { content: none; }
  .b--timeline--vertical li:last-child { margin-left: -1rem; padding: 1.05rem 0 1.05rem 1rem; background: var(--wash, #f3f0fa); border-bottom-color: var(--accent); box-shadow: inset 3px 0 var(--accent); }
  .b--timeline--vertical li .eyebrow { color: var(--accent-text, var(--accent)); font-weight: 600; letter-spacing: 0.04em; }
}

/* Labelled columns: small blue label above a headline, bullets below */
.b--cols--labelled .col { display: flex; flex-direction: column; }
.b--cols--labelled .col p { order: -1; margin: 0 0 0.5rem; font: 600 0.75rem/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }

/* Outcome visual: dashed "next" blocks stacked on a solid foundation */
.b--grow { margin-block: 1rem 1.5rem; display: grid; gap: 0.75rem; }
.grow__cap { font: 600 0.75rem/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.grow__next { list-style: none; display: grid; gap: 0.75rem; }
.grow__next li { border: 1.5px dashed #9aa8d8; border-radius: var(--r-sm); background: rgba(197, 212, 250, 0.2); color: var(--accent-text); font: 500 1rem/1.3 var(--sans); padding: 1.1rem 1.25rem; display: flex; align-items: center; gap: 0.6rem; }
.grow__next li::before { content: "+"; font-weight: 600; }
.grow__base { display: grid; gap: 1.25rem; background: var(--blue); color: #fff; border-radius: var(--r); padding: 1.5rem 1.6rem; }
.grow__base .eyebrow { color: #dbe5ff; }
.grow__base h3 { font: 600 1.1875rem/1.25 var(--display); letter-spacing: -0.02em; margin: 0.45rem 0 0.25rem; }
.grow__base p { color: #eaf0ff; font-size: 0.9375rem; line-height: 1.5; }
@media (min-width: 720px) { .grow__next { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grow__base { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; } }

/* Carousel: swipeable slides with caption, arrows and dots */
.b--carousel { margin-block: 1rem 1.5rem; }
.carousel__track { position: relative; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r); outline-offset: 4px; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; }
.carousel__frame { aspect-ratio: 2000 / 1100; background: var(--grey-card, #f2f2f5); border-radius: var(--r); padding: clamp(0.5rem, 1.6vw, 1.25rem); }
.carousel__frame img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 1px 2px rgba(31, 21, 48, 0.08), 0 8px 24px rgba(31, 21, 48, 0.1); }
.carousel__bar { display: flex; align-items: flex-start; gap: 1rem; margin-top: 0.9rem; }
.carousel__cap { flex: 1; min-height: 3em; font: 400 0.9375rem/1.5 var(--sans); color: var(--ink-soft); }
.carousel__cap b { font-weight: 600; color: var(--ink); }
.carousel__ctrl { display: flex; align-items: center; gap: 0.75rem; }
.carousel__dots { display: flex; gap: 0.4rem; }
.carousel__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #c9c1d8; cursor: pointer; }
.carousel__dot[aria-current="true"] { background: var(--accent); transform: scale(1.25); }
.carousel__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.carousel__btn:hover { background: var(--wash); }
.carousel__btn[disabled] { opacity: 0.35; cursor: default; }
@media (max-width: 640px) { .carousel__bar { flex-direction: column; } .carousel__ctrl { align-self: flex-end; } }
@media (prefers-reduced-motion: reduce) { .carousel__track { scroll-behavior: auto; } }

.carousel__note { margin-top: 0.4rem; font: 400 0.8125rem/1.5 var(--sans); color: var(--mute); }

/* About: outside work, four short cards with an icon each */
.outside { list-style: none; display: grid; gap: 0.75rem; }
.outside li { background: var(--grey-card, #f2f2f5); border-radius: var(--r); padding: 1.3rem 1.4rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.outside__icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; color: var(--ink); }
.outside__icon .icon { width: 2rem; height: 2rem; stroke-width: 1.4; }
.outside__body { display: grid; gap: 0.3rem; padding-top: 0.15rem; }
.outside strong { font: 600 1.1875rem/1.3 var(--display); letter-spacing: -0.02em; }
.outside span.outside__text { color: var(--ink-soft); font-size: 0.9688rem; line-height: 1.55; }
@media (min-width: 720px) { .outside { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* About: compact career. Roles sit behind a toggle, current role stays open */
.chapter { padding-block: 1.5rem 1.75rem; }
.chapter .roles { margin-top: 1.1rem; }
.more { margin-top: 1rem; }
.more summary { list-style: none; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0; font: 500 0.9375rem/1.2 var(--sans); color: var(--accent-text); cursor: pointer; }
.more summary::-webkit-details-marker { display: none; }
.more summary span { color: var(--mute); }
.more summary::after { content: ""; width: 0.5rem; height: 0.5rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.15s; }
.more[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.more summary:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.more .roles { margin-top: 0.9rem; }

/* About: older chapters list their roles as plain text, no cards or dates */
.roles-plain { list-style: none; margin-top: 1.1rem; display: grid; gap: 0.6rem; }
.roles-plain li { display: flex; flex-wrap: wrap; gap: 0.1rem 0.75rem; align-items: baseline; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.roles-plain__title { font: 600 1.0625rem/1.35 var(--display); letter-spacing: -0.015em; }
.roles-plain__org { color: var(--ink-soft); font-size: 0.9688rem; }

/* roles-plain: one size across the line, dates muted and pushed right */
.roles-plain li { font: 400 1rem/1.4 var(--sans); }
.roles-plain__title { font: 600 1rem/1.4 var(--sans); letter-spacing: 0; }
.roles-plain__org { font-size: 1rem; }
.roles-plain__when { font-size: 1rem; color: var(--mute); margin-left: auto; }

/* About: open roles, ruled rows instead of grey cards, same type as the plain lists */
.roles--open { gap: 0; margin-top: 1.1rem; }
.roles--open .role { background: none; border-radius: 0; padding: 0.9rem 0 1rem; border-top: 1px solid var(--line); grid-template-columns: 1fr; gap: 0.4rem; }
.roles--open .role__head { display: flex; flex-wrap: wrap; gap: 0.1rem 0.75rem; align-items: baseline; }
.roles--open .role__title { font: 600 1rem/1.4 var(--sans); letter-spacing: 0; }
.roles--open .role__org, .roles--open .role__when { font-size: 1rem; }
.roles--open .role__org { color: var(--ink-soft); }
.roles--open .role__when { color: var(--mute); margin-left: auto; }
.roles--open .role ul { font-size: 1rem; line-height: 1.55; }

/* About: headshot beside the introduction */
.about-photo { margin: 0 0 1.5rem; max-width: 13rem; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--wash); }
@media (min-width: 900px) {
  .about-photo { grid-row: 2 / span 3; max-width: none; margin: 0; align-self: start; position: sticky; top: 6rem; }
}

/* About headshot: circular frame */
.about-photo { max-width: 11rem; }
.about-photo img { aspect-ratio: 1 / 1; border-radius: 50%; }
@media (min-width: 900px) { .about-photo { max-width: 15rem; } }

.about-photo { max-width: 12.5rem; }
@media (min-width: 900px) { .about-photo { max-width: 17.5rem; } }

/* Case study: AI process flow */
.b--aiflow { margin-block: 1rem 1.5rem; }
.b--aiflow ol { list-style: none; display: grid; gap: 0.75rem; }
.b--aiflow li { position: relative; background: var(--grey-card); border-radius: var(--r-sm); padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.aiflow__n { font: 600 0.8125rem/1 var(--sans); letter-spacing: 0.04em; color: var(--accent-text); }
.b--aiflow h3 { font: 600 1.125rem/1.25 var(--display); letter-spacing: -0.015em; }
.aiflow__tools { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.aiflow__tools span { font: 500 0.75rem/1 var(--sans); padding: 0.32rem 0.6rem; border-radius: 99px; border: 1px solid var(--accent); color: var(--accent-text); background: #fff; }
.b--aiflow li p { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-soft); }
.aiflow__loop { margin-top: 0.75rem; display: flex; gap: 0.75rem; align-items: flex-start; background: var(--wash); border-radius: var(--r-sm); padding: 0.9rem 1.1rem; font: 500 0.9375rem/1.5 var(--sans); color: var(--ink); box-shadow: inset 3px 0 var(--accent); }
.aiflow__loop svg { flex: none; color: var(--accent-text); margin-top: 0.1rem; }
@media (min-width: 900px) {
  .b--aiflow ol { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 1.1rem; }
  .b--aiflow li:not(:last-child)::after { content: ''; position: absolute; top: 1.35rem; right: -0.95rem; width: 0.8rem; height: 0.8rem; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg) scale(.8); }
}

/* AI flow refinements: neutral chevrons centred in the gap, quieter tool tags */
.aiflow__tools span { border: 0; background: #fff; color: var(--ink); border-radius: 6px; padding: 0.3rem 0.55rem; font: 500 0.75rem/1.1 var(--sans); }
@media (min-width: 900px) {
  .b--aiflow li:not(:last-child)::after { box-sizing: border-box; top: 50%; right: -0.8rem; width: 0.6rem; height: 0.6rem; border-top: 2px solid var(--mute); border-right: 2px solid var(--mute); transform: translateY(-50%) rotate(45deg); }
}

/* Homepage: AI proof points above the tool tiles */
.ai-points { grid-column: 1 / -1; list-style: none; display: grid; gap: 1.5rem; margin: 0.5rem 0 1.5rem; }
.ai-points li { display: grid; gap: 0.45rem; padding-top: 1rem; border-top: 1px solid var(--ink); align-content: start; }
.ai-points strong { font: 500 clamp(1.5rem, 2.4vw, 2rem)/1.1 var(--display); letter-spacing: -0.03em; }
.ai-points span { color: var(--ink-soft); font-size: 1rem; line-height: 1.5; max-width: 30rem; }
@media (min-width: 900px) { .ai-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); } }
#toolkit .toolkit { grid-column: 1 / -1; }
#toolkit .more-link { display: inline-block; margin-top: 1.25rem; }

/* Homepage AI band, take two: cards for the proof, quiet chips for the tools */
#toolkit .ai-points { gap: 0.75rem; margin: 0.5rem 0 2.25rem; }
#toolkit .ai-points li { background: #fff; border: 0; border-radius: var(--r); padding: 1.5rem 1.6rem 1.7rem; gap: 0.6rem; }
#toolkit .ai-points strong { font: 500 clamp(1.6rem, 2.6vw, 2.2rem)/1.1 var(--display); letter-spacing: -0.03em; }
#toolkit .ai-points span { max-width: none; }
#toolkit .toolkit__label { margin-bottom: -0.5rem; color: var(--ink); }
#toolkit .toolkit { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0; }
#toolkit .toolkit li:nth-child(n) { display: inline-flex; align-items: center; gap: 0.6rem; background: #fff; border: 0; border-radius: 99px; padding: 0.55rem 1.1rem 0.55rem 0.7rem; }
#toolkit .toolkit__mark { margin: 0; width: 1.75rem; height: 1.75rem; }
#toolkit .toolkit__mark:has(.icon) { width: 1.75rem; height: 1.75rem; background: transparent; color: var(--ink); border-radius: 0; }
#toolkit .toolkit__mark .icon { width: 1.4rem; height: 1.4rem; }
#toolkit .toolkit__logo { width: 1.75rem; height: 1.75rem; }
#toolkit .toolkit__text span { display: none; }
#toolkit .toolkit__text strong { font: 500 0.9375rem/1.2 var(--sans); letter-spacing: 0; }

/* AI band take three: softer cards, no tool row */
#toolkit .ai-points li { background: rgba(255, 255, 255, 0.45); }
#toolkit .ai-points { margin-bottom: 1.5rem; }


/* Homepage: How I work band sits flush against Contact */
.band--blue + .contact { margin-top: 0; }

/* Work detail overlay: three clear steps, outcome last, images on the page background */
.xdetail__text { display: grid; gap: 0; max-width: 40rem; }
.xdetail__sec { padding: 1.4rem 0 1.6rem; border-top: 1px solid var(--line); display: grid; gap: 0.7rem; }
.xdetail__sec:first-child { border-top: 2px solid var(--ink); }
.xdetail__sec h3 { font: 600 0.8125rem/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.xdetail__sec div, .xdetail__sec p { font-size: 1.0625rem; line-height: 1.65; color: var(--ink); max-width: 36rem; }
.xdetail__sec ul { padding-left: 1.15rem; display: grid; gap: 0.7rem; }
.xdetail__sec li::marker { color: var(--accent); }
.xdetail__sec.xdetail__out { margin-top: 0.75rem; padding: 1.5rem 1.6rem 1.7rem; border: 0; border-radius: var(--r); background: #ece6fb; color: var(--ink); }
.xdetail__sec.xdetail__out h3 { color: #5b3fb0; }
.xdetail__sec.xdetail__out p { font: 500 clamp(1.15rem, 1.8vw, 1.35rem)/1.45 var(--display); letter-spacing: -0.015em; max-width: none; }
.xdetail__img .fig__frame { background: transparent; border: 0; border-radius: 0; aspect-ratio: auto; overflow: visible; }
.xdetail__img .fig__frame img { display: block; width: 100%; height: auto; object-fit: initial !important; filter: drop-shadow(0 18px 28px rgba(31, 21, 48, 0.18)) drop-shadow(0 2px 3px rgba(31, 21, 48, 0.08)); }
@media (min-width: 900px) { .xdetail__img { position: sticky; top: 5.5rem; } }

/* Work overlay: previous / next across all capabilities */
.xdetail__nav a { display: grid; gap: 0.3rem; max-width: 22rem; }
.xdetail__next { text-align: right; justify-items: end; margin-left: auto; }
.xdetail__dir { font: 600 0.75rem/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.xdetail__navtitle { font: 600 1rem/1.35 var(--display); letter-spacing: -0.01em; color: var(--accent-text); }
.xdetail__sec.xdetail__out a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* AI flow v2: step title, card (text then tools), what it unlocked */
.b--aiflow li { background: none; border-radius: 0; padding: 0; gap: 0.6rem; display: grid; }
.aiflow__n { display: block; margin-bottom: 0.35rem; }
.aiflow__card { background: var(--grey-card); border-radius: var(--r-sm); padding: 1.1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: 0.9rem; justify-content: space-between; }
.aiflow__card p { font-size: 0.9375rem; line-height: 1.55; color: var(--ink); }
.aiflow__tools { margin-top: auto; }
.aiflow__tools span { background: var(--ink); color: #fff; border-radius: 8px; padding: 0.35rem 0.6rem; font: 500 0.75rem/1.1 var(--sans); }
.aiflow__unlocked { background: var(--lav); border-radius: var(--r-sm); padding: 0.8rem 1.15rem 0.95rem; display: grid; gap: 0.25rem; font: 500 1rem/1.35 var(--display); letter-spacing: -0.01em; color: var(--ink) !important; }
.aiflow__unlocked span { font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
@media (min-width: 900px) {
  .b--aiflow ol { grid-template-rows: auto 1fr auto; }
  .b--aiflow li { grid-row: span 3; grid-template-rows: subgrid; row-gap: 0.6rem; }
  .b--aiflow li:not(:last-child)::after { top: 3.2rem; }
}

/* Homepage AI band: before and after rows */
#toolkit .ai-points { display: none; }
.ai-ba { display: grid; gap: 0.6rem; margin: 0.5rem 0 1.5rem; }
.ai-ba__hd { display: none; font: 600 0.75rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.ai-ba__row { display: grid; gap: 0.5rem; }
.ai-ba__k { font: 600 0.75rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.ai-ba__before { background: rgba(255, 255, 255, 0.4); border-radius: var(--r-sm); padding: 1rem 1.15rem; color: #5a4f72; font-size: 1rem; line-height: 1.45; }
.ai-ba__arrow { display: none; }
.ai-ba__after { background: var(--ink); color: #fff; border-radius: var(--r-sm); padding: 1.1rem 1.25rem 1.2rem; display: grid; gap: 0.4rem; }
.ai-ba__after strong { font: 500 clamp(1.25rem, 2vw, 1.6rem)/1.2 var(--display); letter-spacing: -0.02em; }
.ai-ba__after span { color: #d6cdec; font-size: 0.9375rem; line-height: 1.5; }
@media (min-width: 900px) {
  .ai-ba { grid-template-columns: 9rem minmax(0, 1fr) 3.25rem minmax(0, 1.25fr); row-gap: 0.6rem; column-gap: 0; align-items: stretch; }
  .ai-ba__hd { display: block; padding-bottom: 0.25rem; }
  .ai-ba__hd--before { grid-column: 2; }
  .ai-ba__hd--after { grid-column: 4; }
  .ai-ba__row { display: contents; }
  .ai-ba__k { align-self: center; }
  .ai-ba__before { align-self: stretch; display: flex; align-items: center; }
  .ai-ba__arrow { display: flex; align-items: center; justify-content: center; font: 600 1.5rem/1 var(--sans); color: var(--ink); }
}
.ai-ba__after strong { font: 600 1.125rem/1.3 var(--display); letter-spacing: -0.015em; }
.ai-ba__after { gap: 0.3rem; padding: 1rem 1.25rem 1.1rem; }
.ai-ba__after span { font-size: 0.875rem; }
.ai-ba__before { font-size: 0.9375rem; }

/* AI flow polish: ruled step heads, chevrons centred on the cards */
.b--aiflow li::after { content: none !important; }
.aiflow__head { border-top: 2px solid var(--ink); padding-top: 0.7rem; display: grid; gap: 0.3rem; align-content: start; }
.aiflow__n { margin: 0; }
.b--aiflow h3 { font: 600 1.0625rem/1.25 var(--display); }
.aiflow__card { position: relative; }
@media (min-width: 900px) {
  .b--aiflow li:not(:last-child) .aiflow__card::after { content: ''; position: absolute; top: 50%; right: -0.84rem; width: 0.55rem; height: 0.55rem; box-sizing: border-box; border-top: 2px solid var(--mute); border-right: 2px solid var(--mute); transform: translateY(-50%) rotate(45deg); }
}
.aiflow__head { display: flex; gap: 0.6rem; align-items: baseline; }
.b--aiflow li .aiflow__card::after { content: none !important; }
.aiflow__n { font: 600 1.0625rem/1.25 var(--display); letter-spacing: normal; color: var(--ink); }
.aiflow__head { border-top: 0; padding-top: 0; }
