/* ==========================================================================
   Florian Jörgensen — portfolio
   Swiss grid × editorial typography. One accent, used sparingly.
   ========================================================================== */

:root {
  --paper: #faf9f7;
  --paper-2: #f1eff3;
  --ink: #18161d;
  --ink-2: #4b4753;
  --ink-3: #6c6775;   /* ≥ 4.5:1 on --paper and --paper-2, so labels stay readable */
  --rule: #dedae4;
  --accent: #6b2fd1;
  --accent-soft: #c4b0fb; /* accent for text and focus rings on --ink */

  /* Hero field (assets/hero-field.js): shades of the accent, deep to light. */
  --field-1: #2e1a66;
  --field-2: #5a24c2;
  --field-3: #7a45e0;
  --field-4: #a083ee;

  /* Swap for self-hosted faces later; system stacks keep the site GDPR-clean. */
  --sans: "Helvetica Neue", Helvetica, "Inter", Arial, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Charter", "Sitka Text", Cambria, Georgia, serif;

  --fs-hero: clamp(2.6rem, 6.6vw + 0.4rem, 6.25rem);
  --fs-xl: clamp(2.25rem, 4.6vw + 0.4rem, 4.5rem);
  --fs-statement: clamp(1.9rem, 3.2vw + 0.5rem, 3.5rem);
  --fs-sub: clamp(1.45rem, 1.8vw + 0.6rem, 2.4rem);
  --fs-lead: clamp(1.15rem, 0.6vw + 1rem, 1.5rem);
  --fs-body: clamp(1.0625rem, 0.25vw + 1rem, 1.25rem);
  --fs-meta: clamp(0.8125rem, 0.15vw + 0.78rem, 0.9375rem);

  --gutter: clamp(20px, 4.5vw, 72px);
  --gap: clamp(16px, 2.2vw, 36px);
  --space-section: clamp(64px, 8vw, 128px);
  --space-block: clamp(32px, 4vw, 64px);
  --space-item: clamp(28px, 3.5vw, 56px); /* between items of one list, close to the Experience page's rhythm */
  --max: 1440px;

  /* Motion: one set of curves and durations for the whole site. Quick ease-out for UI feedback,
     a soft in-out for things that turn or open in place, a long glide for pictures and reveals. */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-flip: cubic-bezier(.6, 0, .2, 1);
  --ease-glide: cubic-bezier(.2, .7, .2, 1);
  --dur-press: 160ms;
  --dur-ui: 200ms;
  --dur-move: 400ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Cross-page anchors (about/#beliefs …) land below the sticky header. */
section[id] { scroll-margin-top: 72px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
s { text-decoration-thickness: 0.06em; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.skip { position: absolute; left: 8px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 10; transform: translateY(calc(-100% - 16px)); transition: transform var(--dur-ui) var(--ease-out); }
.skip:focus { transform: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

.serif { font-family: var(--serif); font-weight: 400; }
.muted { color: var(--ink-2); }
.lead { font-size: var(--fs-lead); line-height: 1.45; letter-spacing: -0.005em; }
.label, .eyebrow {
  display: block;
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

/* Placeholder marker: deliberately visible until content is supplied. */
.tbd {
  font-family: var(--sans);
  font-size: 0.8em;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
  border: 1px dashed currentColor;
  border-radius: 3px;
  padding: 0.05em 0.4em;
  white-space: normal;
}
.tbd::before { content: "TBD · "; opacity: 0.7; }

/* ---------- Links & CTAs ---------- */

.cta {
  display: inline-flex;
  gap: 0.35em;
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  transition: color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.cta:hover { color: var(--accent); }
.cta--primary { color: var(--paper); background: var(--ink); border: 0; padding: 0.85em 1.3em; }
.cta--primary:hover { color: var(--paper); background: var(--accent); }
.cta--primary:active { transform: scale(0.97); }
p a:not(.cta), dd a { border-bottom: 1px solid var(--rule); transition: border-color var(--dur-ui) var(--ease-out); }
p a:not(.cta):hover, dd a:hover { border-color: var(--ink); }

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

.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); }
@supports not (background: color-mix(in srgb, red, blue)) { .site-header { background: var(--paper); } }
@supports (animation-timeline: scroll()) {
  .site-header { animation: header-rule linear both; animation-timeline: scroll(); animation-range: 0 64px; }
  @keyframes header-rule { from { box-shadow: 0 1px 0 transparent; } to { box-shadow: 0 1px 0 var(--rule); } }
}
.site-header__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 18px; }
.icon { width: 1.05em; height: 1.05em; flex: none; }
/* Name (home), LinkedIn and the themes on one line; they wrap under each other on narrow screens. */
.site-id { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: var(--fs-meta); }
.site-name { font-weight: 600; letter-spacing: 0.01em; transition: color var(--dur-ui) var(--ease-out); }
.site-linkedin { display: inline-flex; padding: 4px; margin: -4px; color: var(--ink-2); transition: color var(--dur-ui) var(--ease-out); }
.site-themes { color: var(--ink-3); letter-spacing: 0.02em; padding-left: 12px; border-left: 1px solid var(--rule); }
.site-themes span { color: var(--accent); padding-inline: 0.15em; }
.site-name:hover, .site-linkedin:hover { color: var(--accent); }
.nav { display: flex; gap: clamp(18px, 2.6vw, 40px); font-size: var(--fs-meta); }
.nav a { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); transition: color var(--dur-ui) var(--ease-out); }
.nav a .icon { color: var(--ink-3); transition: color var(--dur-ui) var(--ease-out); }
.nav a[aria-current] { color: var(--ink); }
.nav a[aria-current] span { box-shadow: inset 0 -1px 0 currentColor; }
.nav a:hover, .nav a:hover .icon { color: var(--accent); }

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

.section { padding-block: var(--space-section) 0; }
.section--tight { padding-top: var(--space-block); }
.tinted { background: var(--paper-2); padding-block: clamp(48px, 6vw, 96px); margin-top: var(--space-section); }
.tinted + .section { padding-top: var(--space-section); }

.section-head {
  display: flex;
  gap: 1.2em;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  margin-bottom: clamp(24px, 3vw, 44px);
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.section-head__num { color: var(--accent); font-variant-numeric: tabular-nums; }
.section-head__more { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: var(--fs-body); font-weight: 600; color: var(--ink); transition: color var(--dur-ui) var(--ease-out); }
.section-head__more:hover { color: var(--accent); }

.statement {
  font-size: var(--fs-statement);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 500;
  max-width: 18ch;
}
.statement--xl { font-size: var(--fs-xl); max-width: 16ch; line-height: 1.02; letter-spacing: -0.032em; }
.section-intro { font-size: var(--fs-sub); line-height: 1.2; max-width: 26ch; color: var(--ink-2); margin-bottom: clamp(24px, 3vw, 44px); }
.closer { font-size: var(--fs-sub); line-height: 1.2; margin-top: var(--space-block); max-width: 26ch; font-style: italic; }

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

.hero { position: relative; padding-top: clamp(48px, 8vw, 128px); overflow: hidden; }
.hero > .wrap { position: relative; }
/* Cursor-reactive field (assets/hero-field.js). Fades out before the award logos. */
.hero__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 460px), transparent calc(100% - 200px));
  mask-image: linear-gradient(to bottom, #000 calc(100% - 460px), transparent calc(100% - 200px));
}
.hero__headline {
  font-size: var(--fs-hero);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 500;
  max-width: 13ch;
}
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(40px, 6vw, 96px); }
.hero__support { grid-column: 1 / span 5; font-size: var(--fs-sub); line-height: 1.18; font-style: italic; color: var(--ink); max-width: 20ch; }
.hero__desc { grid-column: 7 / span 5; grid-row: 1 / span 2; color: var(--ink-2); max-width: 36em; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }

/* Award logos: one shared height, grayscale until hovered (touch: until scrolled into view, assets/awards.js). */
.awards {
  --award-h: clamp(56px, 5vw + 20px, 88px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px clamp(28px, 3.5vw, 56px);
}
/* Home: the logos sit under the italic line, as far below it as the line sits below the headline. */
.hero .awards { grid-column: 1 / span 6; grid-row: 2; align-self: end; margin-top: clamp(40px, 6vw, 96px); }
.awards img {
  height: var(--award-h);
  width: auto;
  max-width: none;
  /* multiply drops the Red Dot logo's white box into the paper */
  mix-blend-mode: multiply;
  filter: grayscale(1) brightness(var(--gray-tone, 1));
  opacity: 0.72;
  transition: filter var(--dur-move) var(--ease-out), opacity var(--dur-move) var(--ease-out);
}
.awards li:hover img, .awards li.is-seen img { filter: none; opacity: 1; }

/* ---------- Selected work (Work page) ---------- */

/* Text beside the picture, sides alternating, so each project takes about half a screen. */
.project {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: center;
  padding-block: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--rule);
}
.project__text { grid-column: 1 / span 5; display: grid; gap: 18px; justify-items: start; }
.project__media { grid-column: 7 / span 6; }
.project--flip .project__text { grid-column: 8 / span 5; grid-row: 1; }
.project--flip .project__media { grid-column: 1 / span 6; grid-row: 1; }
.project__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: var(--fs-meta); color: var(--ink-3); }
.project__name { font-size: var(--fs-lead); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); }
.project__headline { font-size: var(--fs-sub); line-height: 1.12; letter-spacing: -0.02em; font-weight: 500; max-width: 22ch; }
.project__intro { color: var(--ink-2); max-width: 36em; }
.project .visual { margin-top: 0; }
.project .visual--screens { aspect-ratio: 4 / 3; }

/* The whole project is clickable; on hover the screens drift apart and the text takes the accent. */
.project { position: relative; }
.project__name a { transition: color var(--dur-ui) var(--ease-out); }
.project__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.project__name a:focus-visible { outline: 0; }
.project:has(.project__name a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.project__headline, .project .cta span { transition: color var(--dur-ui) var(--ease-out), transform var(--dur-move) var(--ease-out); }
.project .cta span { display: inline-block; }
.project:hover .project__headline, .project:hover .project__name a, .project:hover .cta { color: var(--accent); }
.project .frame img { transition: transform .8s var(--ease-glide); }

/* The link to the archive: a strip of small pictures from it; some lift on hover. */
.archive-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px var(--gap); padding-block: clamp(32px, 4vw, 56px); border-top: 1px solid var(--rule); }
.archive-link__label { display: inline-flex; gap: 0.35em; font-size: var(--fs-lead); font-weight: 500; letter-spacing: -0.01em; padding-bottom: 2px; border-bottom: 1px solid currentColor; transition: color var(--dur-ui) var(--ease-out); }
.archive-link__label span { display: inline-block; transition: transform var(--dur-move) var(--ease-out); }
.archive-link:hover .archive-link__label { color: var(--accent); }
.archive-link__strip { display: flex; gap: 10px; }
.archive-link__strip img { width: clamp(64px, 8vw, 120px); aspect-ratio: 4 / 3; object-fit: cover; object-position: left top; border-radius: 4px; transition: transform .6s var(--ease-glide); }
/* Each picture moves its own small distance on hover, up or down, so the strip loosens unevenly. */
.archive-link__strip img:nth-child(1) { --lift: -7px; }
.archive-link__strip img:nth-child(2) { --lift: 4px; }
.archive-link__strip img:nth-child(3) { --lift: -3px; }
.archive-link__strip img:nth-child(4) { --lift: 8px; }
.archive-link__strip img:nth-child(5) { --lift: -5px; }

/* Home: the case studies as small cards. */
.work-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.work-card { display: grid; gap: 8px; align-content: start; }
.work-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); margin-bottom: 8px; }
.work-card__img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .8s var(--ease-glide); }
.work-card__name { font-size: var(--fs-lead); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; transition: color var(--dur-ui) var(--ease-out); }
.work-card__title { color: var(--ink-2); line-height: 1.35; }
.work-card__tags { font-size: var(--fs-meta); color: var(--ink-3); }
.work-card__media .visual--screens { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; }
.work-card:hover .work-card__name { color: var(--accent); }
/* Hover motion: only with a mouse (no sticky hover after a tap) and when motion is welcome. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .project:hover .cta span, .archive-link:hover .archive-link__label span { transform: translateX(4px); }
  .archive-link:hover .archive-link__strip img { transform: translateY(var(--lift)); }
  .project:hover .frame img { transform: scale(1.03); }
  .work-card:hover .work-card__img { transform: scale(1.05); }
  .project:hover .screens__item--1, .work-card:hover .screens__item--1 { transform: translate(-1.5%, -2%); }
  .project:hover .screens__item--2, .work-card:hover .screens__item--2 { transform: translate(2%, -1.5%); }
  .project:hover .screens__item--3, .work-card:hover .screens__item--3 { transform: translate(0, 2.5%); }
}

.tags { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-meta); color: var(--ink-2); }
.tags li::before { content: "— "; color: var(--ink-3); }

/* ---------- Visuals ---------- */

.visual { margin-top: clamp(28px, 3.5vw, 48px); }

.frame { position: relative; background: var(--paper-2); overflow: hidden; }
.frame img { width: 100%; }
.frame--bare { background: none; overflow: visible; } /* cut-out images that bring their own shape and shadow */
.frame figcaption { font-size: var(--fs-meta); color: var(--ink-3); padding-top: 10px; background: var(--paper); }
.frame--empty { aspect-ratio: 16 / 7; display: flex; align-items: flex-end; padding: 20px; border: 1px dashed var(--rule); }
.frame--empty span { font-size: var(--fs-meta); color: var(--ink-3); }
.frame--empty::before {
  content: "";
  position: absolute;
  inset: 12% 0 0 18%;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.frame--empty span { position: relative; }
.frame--portrait.frame--empty { aspect-ratio: 4 / 5; }

.flow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4em 0; font-size: var(--fs-sub); letter-spacing: -0.02em; line-height: 1.2; font-weight: 500; }
.flow li { color: var(--ink-3); }
.flow li + li::before { content: "→"; padding-inline: 0.45em; color: var(--rule); font-weight: 400; }
.flow li:last-child { color: var(--ink); }
.flow li:last-child::before { color: var(--accent); }
/* Three screens, staggered: one large at the back, two overlapping in front. */
.visual--screens { display: block; position: relative; aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; }
.screens__item { position: absolute; width: 56%; border-radius: 6px; box-shadow: 0 1px 2px rgba(24, 22, 29, 0.08), 0 18px 48px -12px rgba(24, 22, 29, 0.28); transition: transform .5s var(--ease-glide); }
.screens__item--1 { left: 6%; top: 8%; }
.screens__item--2 { right: 5%; top: 20%; width: 46%; }
.screens__item--3 { left: 26%; top: 52%; width: 44%; }
/* Other arrangements, so each project's composition reads apart (each also sets its own ground colour). */
.visual--screens-b .screens__item--1 { left: 5%; top: 7%; width: 58%; }
.visual--screens-b .screens__item--2 { right: 4%; top: 16%; width: 50%; }
.visual--screens-b .screens__item--3 { left: 14%; top: 50%; width: 40%; }
.visual--screens-c .screens__item--1 { left: 30%; top: 7%; width: 62%; }
.visual--screens-c .screens__item--2 { left: 5%; top: 30%; width: 48%; }
.visual--screens-c .screens__item--3 { right: 6%; top: 56%; width: 34%; }
.visual--flow { border-top: 1px solid var(--rule); padding-top: 24px; }

.visual--converge { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr); align-items: center; gap: var(--gap); border-top: 1px solid var(--rule); padding-top: 24px; }
.converge__inputs { display: grid; gap: 2px; font-size: var(--fs-lead); color: var(--ink-3); }
.converge__inputs li { border-bottom: 1px solid var(--rule); padding-block: 6px; }
.converge__arrow { font-size: var(--fs-xl); color: var(--accent); line-height: 1; }
.converge__result { font-size: var(--fs-xl); letter-spacing: -0.03em; font-weight: 500; line-height: 1; }

.visual--reframe { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4em; font-size: var(--fs-xl); letter-spacing: -0.03em; font-weight: 500; line-height: 1.05; border-top: 1px solid var(--rule); padding-top: 24px; }
.reframe__from { color: var(--ink-3); }
.reframe__from s { text-decoration-color: var(--accent); text-decoration-thickness: 0.05em; }
.reframe__arrow { color: var(--rule); }

/* ---------- What I do ---------- */

.triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--space-block); }
/* A short accent stroke between title and text replaces rules and numbers. */
.triad h3::after, .principles h3::after { content: ""; display: block; width: 28px; height: 2px; background: var(--accent); margin-top: 16px; }
.triad h3 { font-size: var(--fs-sub); line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; margin-bottom: 18px; max-width: 12ch; }
.triad p { color: var(--ink-2); max-width: 30em; }

/* ---------- Beliefs ---------- */

.belief {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-block: var(--space-item);
  border-top: 1px solid var(--rule);
}
.belief:first-of-type { border-top: 0; padding-top: 0; }
.belief__num { grid-column: 1 / span 1; font-size: var(--fs-meta); color: var(--accent); padding-top: 0.9em; }
.belief__statement { grid-column: 2 / span 11; font-size: var(--fs-xl); line-height: 1.02; letter-spacing: -0.025em; max-width: 16ch; }
.belief__text { grid-column: 7 / span 5; margin-top: 20px; color: var(--ink-2); }
.belief__text p { max-width: 32em; }
/* Home: beliefs as sticky notes in shades of the accent; they turn over on hover, focus or tap. */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--space-block); }
.note { perspective: 1200px; aspect-ratio: 4 / 3; outline: none; cursor: pointer; }
/* Three barely different tones, light, dark, medium; the back is a shade darker than its own front. */
.note:nth-child(3n+1) { --note: #e9e0fc; --note-back: #d9cbf8; transform: rotate(-1.6deg); }
.note:nth-child(3n+2) { --note: #e1d5fb; --note-back: #d1c0f6; transform: rotate(1.2deg) translateY(10px); }
.note:nth-child(3n) { --note: #e5dafb; --note-back: #d5c6f7; transform: rotate(-0.6deg); }
.note__inner { position: relative; height: 100%; transform-style: preserve-3d; transition: transform .7s var(--ease-flip); }
.note:focus-visible .note__inner, .note.is-turned .note__inner { transform: rotateY(180deg); }
@media (hover: hover) { .note:hover .note__inner { transform: rotateY(180deg); } }
.note { -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .note { transition: scale var(--dur-move) var(--ease-out); }
  .note:active { scale: 0.98; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .note:hover { scale: 1.02; }
}
.note:focus-visible .note__face { outline: 2px solid var(--accent); outline-offset: 4px; }
.note__face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 2.2vw, 32px); backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 1px 2px rgba(24, 22, 29, 0.06), 0 14px 28px -14px rgba(24, 22, 29, 0.28); }
.note__front { background: var(--note); color: var(--ink); }
/* A faint paper grain over both faces. */
.note__face::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: 0.3; mix-blend-mode: multiply; pointer-events: none; }
.note__back { background: var(--note-back); color: var(--ink); transform: rotateY(180deg); justify-content: center; font-size: clamp(1.0625rem, 1vw + 0.85rem, 1.75rem); line-height: 1.3; letter-spacing: -0.01em; }
.note__statement { font-size: var(--fs-statement); line-height: 1.04; letter-spacing: -0.025em; font-weight: 400; }
.note__turn { align-self: flex-end; color: var(--accent); font-size: var(--fs-lead); line-height: 1; }
@media (prefers-reduced-motion: reduce) {
  .note__inner { transform: none !important; transition: none; }
  .note__back { transform: none; opacity: 0; transition: opacity var(--dur-ui) var(--ease-out); }
  .note:focus-visible .note__back, .note.is-turned .note__back { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) {
  .note:hover .note__back { opacity: 1; }
}
.contrast { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3em 0.7em; margin-top: 40px; font-size: var(--fs-sub); letter-spacing: -0.025em; color: var(--ink); font-weight: 500; line-height: 1.1; }
.contrast__vs { font-family: var(--serif); font-style: italic; font-size: 0.55em; color: var(--ink-3); font-weight: 400; }
.contrast__answer { margin-top: 16px; font-size: var(--fs-lead); font-style: italic; color: var(--ink); }

/* ---------- Leadership ---------- */

.leadership__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(40px, 5vw, 72px); }
.leadership__intro .lead { grid-column: 1 / span 6; max-width: 30em; }
.leadership__intro .muted { grid-column: 8 / span 4; font-size: var(--fs-body); align-self: end; }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--space-block); }
.principles h3 { font-size: var(--fs-meta); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.principles p { font-size: var(--fs-lead); line-height: 1.3; letter-spacing: -0.01em; }

/* ---------- Testimonial ---------- */

.quote { max-width: 1100px; margin-inline: auto; text-align: left; }
.quote blockquote { font-size: var(--fs-statement); line-height: 1.18; letter-spacing: -0.015em; position: relative; }
.quote blockquote::before { content: "“"; position: absolute; left: -0.6em; top: -0.05em; color: var(--accent); }
.quote figcaption { margin-top: 28px; display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-meta); }
.quote__who { display: flex; flex-direction: column; gap: 4px; }
.quote__who span { color: var(--ink-3); }
.quote figcaption.has-photo { flex-direction: row; align-items: center; gap: 16px; }
.quote__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }

/* ---------- AI ---------- */

.ai { border-top: 0; }
.ai__shift { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: var(--space-block); }
.ai__before { grid-column: 1 / span 3; font-size: var(--fs-lead); color: var(--ink-3); }
.ai__before s { text-decoration-color: var(--accent); }
.ai__before .label, .ai__after .label { margin-bottom: 14px; }
.ai__after { grid-column: 4 / span 9; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.steps li { counter-increment: s; border-top: 1px solid var(--ink); padding-top: 14px; font-size: var(--fs-lead); line-height: 1.2; letter-spacing: -0.01em; font-weight: 500; }
.steps li::before { content: "0" counter(s); display: block; font-size: var(--fs-meta); color: var(--accent); margin-bottom: 18px; font-weight: 400; }
.ai__statement { font-size: var(--fs-statement); line-height: 1.14; letter-spacing: -0.015em; max-width: 24ch; margin-top: var(--space-block); margin-left: calc((100% + var(--gap)) / 12 * 3); }

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

/* The photo is exactly as tall as the paragraph on the right: it takes the row's height without adding to it. */
.about-teaser__photo { grid-column: 1 / span 2; grid-row: 1; align-self: stretch; width: 100%; height: 0; min-height: 100%; object-fit: cover; }
/* Headline, text and photo share one top edge: the text is trimmed to its cap height. */
.about-teaser .statement { grid-column: 3 / span 6; grid-row: 1; max-width: none; align-self: start; text-box: trim-start cap alphabetic; }
.about-teaser__text { display: contents; }
.about-teaser__text .lead { grid-column: 9 / span 4; grid-row: 1; align-self: start; color: var(--ink-2); text-box: trim-both cap alphabetic; }
.about-teaser__text .cta { grid-column: 9 / span 4; grid-row: 2; justify-self: start; margin-top: 28px; }

/* ---------- Contact ---------- */


.site-footer { background: var(--ink); color: #a49fae; font-size: var(--fs-meta); }
.site-footer ::selection { background: var(--paper); color: var(--ink); }
.site-footer :focus-visible { outline-color: var(--accent-soft); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding-block: 20px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 7px; color: var(--paper); transition: color var(--dur-ui) var(--ease-out); }
.site-footer__links .icon { color: #a49fae; transition: color var(--dur-ui) var(--ease-out); }
.site-footer__links a:hover, .site-footer__links a:hover .icon { color: var(--accent-soft); }

/* ---------- Menu (phones) ---------- */

.menu-toggle, .menu-close { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -10px -10px -10px 0; padding: 0; border: 0; background: none; color: inherit; font-size: 1.4rem; cursor: pointer; }
.menu { display: none; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { padding-top: clamp(64px, 10vw, 176px); }
.page-hero__headline { font-size: var(--fs-hero); line-height: 0.98; letter-spacing: -0.04em; font-weight: 500; max-width: 13ch; }
.page-hero__intro { margin-top: clamp(32px, 4vw, 56px); max-width: 30ch; font-size: var(--fs-sub); line-height: 1.2; color: var(--ink-2); }
.page-hero__intro.lead { font-size: var(--fs-lead); max-width: 34em; line-height: 1.4; margin-left: calc((100% + var(--gap)) / 12 * 6); }
.about .page-hero__intro { font-style: italic; color: var(--ink); }
.page-hero--about .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.page-hero__text { grid-column: 1 / span 7; }
.page-hero__portrait { grid-column: 9 / span 4; }
.page-hero__download { margin-top: 28px; margin-left: calc((100% + var(--gap)) / 12 * 6); }
/* Experience: the intro sits beside the title, starting where the job titles do (column 6 plus
   the timeline's indent), its first line's cap height level with the title's x-height. */
.page-hero--xp .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.page-hero--xp .page-hero__headline { grid-column: 1 / span 5; grid-row: 1 / span 2; text-box: trim-start ex alphabetic; }
.page-hero--xp .page-hero__intro.lead, .page-hero--xp .page-hero__download { grid-column: 6 / -1; margin-left: 0; padding-left: 22px; }
.page-hero--xp .page-hero__intro.lead { margin-top: 0; text-box: trim-start cap alphabetic; }
@supports not (text-box: trim-start ex alphabetic) {
  .page-hero--xp .page-hero__intro.lead { margin-top: calc(var(--fs-hero) * 0.27); }
}

.approach .statement { max-width: 14ch; }
.approach__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--space-block); counter-reset: a; }
.approach__steps li { counter-increment: a; border-top: 1px solid var(--ink); padding-top: 18px; position: relative; }
.approach__steps li::before { content: "0" counter(a); display: block; font-size: var(--fs-meta); color: var(--accent); margin-bottom: 20px; }
.approach__steps li:not(:last-child)::after { content: "→"; position: absolute; right: 0; top: 18px; color: var(--ink-3); font-size: var(--fs-meta); line-height: 1.55; }
.approach__steps h3 { font-size: var(--fs-sub); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 14px; }
.approach__steps p { color: var(--ink-2); max-width: 22em; }

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

.cs-hero .eyebrow a { transition: color var(--dur-ui) var(--ease-out); }
.cs-hero .eyebrow a:hover { color: var(--ink); }
.cs-hero__headline { font-size: var(--fs-xl); line-height: 1.02; letter-spacing: -0.032em; font-weight: 500; max-width: 18ch; margin-top: 28px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px var(--gap); margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--ink); padding-top: 18px; font-size: var(--fs-meta); }
.facts dt { color: var(--ink-3); margin-bottom: 4px; }
.cs-note { margin-top: clamp(28px, 3vw, 44px); max-width: 62ch; padding: 16px 20px; background: color-mix(in srgb, var(--accent) 9%, var(--paper)); border-left: 3px solid var(--accent); font-size: var(--fs-meta); line-height: 1.5; color: var(--ink); }
.cs-note strong { color: var(--accent); font-weight: 600; margin-right: 4px; }
.cs-text { padding-block: var(--space-block) 0; }
.cs-text h2 { grid-column: 1 / span 3; font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; color: var(--ink-3); padding-top: 0.4em; }
.cs-text > div { grid-column: 4 / span 7; display: grid; gap: 1.1em; }
.cs-text .tags { margin-top: 12px; }
.cs-visual { margin-left: calc((100% + var(--gap)) / 12 * 3); }
.cs-statement { padding-block: var(--space-block); }
.cs-statement .statement { max-width: 22ch; }
.cs-image { margin-top: var(--space-block); }
.cs-image--inset { margin-left: calc((100% + var(--gap)) / 12 * 3); }
.cs-sequence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--space-block); }
.cs-sequence--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--gap); align-items: start; }
.cs-image + .cs-sequence--2 { margin-top: var(--gap); }
.cs-sequence .frame figcaption, .cs-image .frame figcaption { padding-top: 12px; }
/* App icons (section type 'icons'): one row of small icons with names, aligned with the text column. */
/* Product ecosystem (section type 'ecosystem'): app icons grouped by area, on a band of shared foundations. */
.cs-eco { margin-top: var(--space-block); }
.cs-eco__groups { display: grid; grid-template-columns: 1fr 2fr 4fr 1fr; gap: var(--gap); }
.cs-eco__group { border-top: 1px solid var(--ink); padding-top: 16px; }
.cs-eco__group .label { margin-bottom: 20px; }
.cs-eco ul { display: flex; flex-wrap: wrap; gap: 20px clamp(12px, 1.8vw, 28px); }
.cs-eco__group li { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 80px; }
.cs-eco__group img { width: 64px; height: 64px; }
.cs-eco__group span { font-size: var(--fs-meta); color: var(--ink-3); }
.cs-eco__base { margin-top: 28px; background: var(--paper-2); border-radius: 8px; padding: 20px 24px; display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; }
.cs-eco__base .label { margin: 0; }
.cs-eco__base li { font-size: var(--fs-body); color: var(--ink); }
.cs-eco__base li + li::before { content: "·"; margin-right: clamp(12px, 1.8vw, 28px); color: var(--ink-3); }
.cs-eco .caption { margin-top: 14px; font-size: var(--fs-meta); color: var(--ink-3); }
/* The key sentence of a text section ('highlight'), set on a soft tint instead of a separate block. */
.cs-text mark { background: #ebe4fb; color: var(--ink); font-weight: 600; padding: 0.06em 0.12em; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* Code windows (section type 'code'): set in type so they stay sharp, in the site's ink and accent. */
.cs-code { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); margin-top: var(--space-block); align-items: start; }
.cs-code--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.code__window { background: #1f1c26; color: #e9e6ee; border-radius: 10px; overflow: hidden; }
.code__bar { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid #2f2b38; }
.code__dots { width: 10px; height: 10px; border-radius: 50%; background: #4a4553; box-shadow: 16px 0 0 #4a4553, 32px 0 0 #4a4553; margin-right: 32px; }
.code__title { font: 500 var(--fs-meta) / 1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #9a94a5; }
.code pre, .code__rows { margin: 0; padding: 22px 24px 26px; font: 400 clamp(0.75rem, 0.35vw + 0.65rem, 0.9375rem) / 1.75 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-x: auto; }
.code pre { color: #8a8494; }
.code__key { color: #e9e6ee; }
.code__str { color: var(--accent-soft); }
.code__lit, .code__punct { color: #8a8494; }
.code__comment { color: #8a8494; }
.code__rows div { padding-left: calc(var(--indent) * 1.5em); }
.code__rows div + div { margin-top: 14px; }
.code__rows dt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.code__meta { color: #8a8494; font-size: 0.85em; letter-spacing: 0.06em; text-transform: uppercase; }
.code__rows dd { color: #e9e6ee; }
.code figcaption { font-size: var(--fs-meta); color: var(--ink-3); padding-top: 12px; }
.cs-image--diagram { margin-left: calc((100% + var(--gap)) / 12 * 3); }
.cs-image--diagram .frame { max-width: var(--diagram-w, 480px); background: none; }
.cs-image--diagram img { mix-blend-mode: multiply; } /* white diagram ground melts into the paper */
.cs-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--rule); }
.cs-list li { border-bottom: 1px solid var(--rule); padding-block: 10px; }
.cs-text a.cta { margin-top: 8px; }
.cs-numbers { margin-top: var(--space-block); }
.cs-numbers .label { margin-bottom: 18px; }
.cs-numbers dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-block) var(--gap); }
.cs-numbers dl > div { border-top: 1px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; }
.cs-numbers dt { font-size: var(--fs-meta); color: var(--ink-3); order: 2; margin-top: 10px; }
.cs-numbers__value { font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.032em; line-height: 1; order: 1; }
.cs-numbers__text { order: 3; margin-top: 14px; color: var(--ink-2); max-width: 26em; }
.cs-text--cont { padding-top: clamp(28px, 3.5vw, 48px); } /* continues the section above, no heading of its own */
.cs-statement + .cs-text--cont { padding-top: 0; }
.cs-shift { margin-top: var(--space-block); margin-left: calc((100% + var(--gap)) / 12 * 3); display: grid; gap: 22px; max-width: 46em; }
.cs-shift .label { display: block; margin-bottom: 6px; }
.cs-shift__from { font-size: var(--fs-lead); color: var(--ink-3); }
.cs-shift__from s { text-decoration-color: var(--accent); }
.cs-shift__to { font-size: var(--fs-sub); line-height: 1.2; letter-spacing: -0.015em; }
.cs-visual--section { margin-top: var(--space-block); }
.cs-visual--section > .label { margin-bottom: 14px; }
.cs-visual--section .visual { margin-top: 0; }
.cs-quote { padding-block: var(--space-block) 0; }
.quote--long { margin-left: calc((100% + var(--gap)) / 12 * 1); max-width: 980px; }
.quote--long blockquote { font-size: var(--fs-lead); line-height: 1.5; letter-spacing: 0; color: var(--ink-2); }
.quote--long blockquote::before { font-size: var(--fs-xl); line-height: 1; top: -0.08em; left: -0.65em; }
.quote--long mark { background: none; color: var(--ink); font-size: 1.32em; line-height: 1.3; letter-spacing: -0.01em; display: block; margin-block: 0.5em; }
.cs-pending { margin-top: var(--space-block); margin-left: calc((100% + var(--gap)) / 12 * 3); padding: clamp(28px, 4vw, 56px); border: 1px dashed var(--rule); display: grid; gap: 14px; max-width: 54em; }

.next__link { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--ink); }
.next__name { font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.03em; line-height: 1; transition: color var(--dur-ui) var(--ease-out); }
.next__title { font-size: var(--fs-lead); color: var(--ink-2); }
.next__link:hover .next__name { color: var(--accent); }

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

.chapter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-block: var(--space-item); border-top: 1px solid var(--rule); }
.chapter:first-of-type { border-top: 1px solid var(--ink); }
.chapter__num { grid-column: 1 / span 1; font-size: var(--fs-meta); color: var(--accent); padding-top: 0.7em; }
.chapter__title { grid-column: 2 / span 5; font-size: var(--fs-statement); line-height: 1.06; letter-spacing: -0.025em; font-weight: 500; max-width: 12ch; }
.chapter__body { grid-column: 7 / span 5; display: grid; gap: 1.1em; color: var(--ink-2); padding-top: 0.5em; }
.chapter__body p { max-width: 34em; }
.chapter__coda { color: var(--ink); font-size: var(--fs-lead); font-style: italic; line-height: 1.35; margin-top: 0.4em; }
.now .statement { max-width: 22ch; }
.story__more { margin-top: var(--space-block); }
.leadership__quote { margin-top: var(--space-section); }
.now__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(40px, 5vw, 72px); max-width: 1100px; }
.now__body .lead { color: var(--ink-2); }
.outside { padding-bottom: var(--space-section); } /* last section on About: keep the footer off it */
.outside__text { grid-column: 1 / span 6; }
.outside__list { display: grid; }
.outside__list li { font-size: var(--fs-sub); letter-spacing: -0.02em; line-height: 1.2; padding-block: 0.4em; border-bottom: 1px solid var(--rule); font-weight: 500; }
.outside__image { grid-column: 8 / span 5; align-self: end; }
.caption { margin-top: 14px; font-size: var(--fs-body); font-style: italic; color: var(--ink-2); max-width: 28ch; }

/* ---------- Experience ---------- */

.xp { --xp-pad: clamp(24px, 3vw, 44px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-block: var(--xp-pad); }
.xp:first-child { padding-top: 0; }
.xp--block { --xp-pad: clamp(40px, 5vw, 80px); }
.xp:has(+ .xp--block) { padding-bottom: clamp(40px, 5vw, 80px); } /* same space on both sides of the divider */
.xp + .xp--block { border-top: 1px solid var(--rule); }
.page-hero--xp + .section--tight { padding-top: clamp(72px, 11vw, 176px); }
.section--tight + .section--tight { padding-top: 0; }
.section--tight + .section--tight .xp:first-child { border-top: 1px solid var(--rule); padding-top: var(--xp-pad); }
.xp--block .xp__body { padding-left: 22px; } /* lines up with the job titles above */
.xp__aside { grid-column: 1 / span 4; align-self: start; position: sticky; top: 32px; }
.xp__org { font-size: var(--fs-statement); font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; margin-top: 24px; }
.xp__org small { display: block; font-size: var(--fs-meta); letter-spacing: 0; margin-top: 8px; font-weight: 400; }
.xp__period { font-size: var(--fs-meta); color: var(--ink-2); margin-top: 12px; font-variant-numeric: tabular-nums; }
.xp__meta { font-size: var(--fs-meta); color: var(--ink-3); margin-top: 2px; }
.xp__body { grid-column: 6 / span 7; display: grid; gap: 22px; align-content: start; padding-top: 0.5em; }
.xp__roles { font-size: var(--fs-lead); font-weight: 500; }
.xp .lead { color: var(--ink-2); font-size: var(--fs-body); }
.xp__lists { display: grid; gap: 14px; font-size: var(--fs-meta); border-top: 1px solid var(--rule); padding-top: 18px; }
.xp__lists div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; }
.xp__lists dt { color: var(--ink-3); }
.xp__lists a { border-bottom: 1px solid var(--rule); transition: border-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out); }
.xp__lists a:hover { color: var(--accent); border-color: currentColor; }

/* Several positions at one company: a small vertical timeline, newest first. */
.xp__timeline { display: grid; gap: 14px; }
/* One continuous line through all companies: each body draws its stretch, reaching into the
   space between entries; it starts at the first dot and ends with the last company's text. */
.xp:not(.xp--block) .xp__body { position: relative; padding-left: 22px; }
.xp:not(.xp--block) .xp__body::before { content: ""; position: absolute; left: 4px; top: calc(-1 * var(--xp-pad)); bottom: calc(-1 * var(--xp-pad)); width: 1px; background: var(--rule); }
.xp:not(.xp--block) .xp__body { --dot-y: calc(1.05em + 4.5px); } /* centre of the first dot: body padding + dot offset */
.xp:first-child .xp__body::before { top: var(--dot-y); }
/* The last company clips its own line, so the one before it reaches across the gap. */
.xp:has(+ .xp + .xp--block) .xp__body::before { bottom: calc(-2 * var(--xp-pad)); }
/* The line stops at the last dot: the last company's body clips it and its last dot covers what's below. */
.xp:has(+ .xp--block) .xp__body { overflow: hidden; }
.xp:has(+ .xp--block) .xp__timeline li:last-child::after { content: ""; position: absolute; left: -22px; top: calc(0.55em + 4.5px); width: 9px; height: 100vh; background: var(--paper); }
.xp__timeline li { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; }
.xp__timeline li::before { content: ""; position: absolute; z-index: 1; left: -22px; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink-3); box-sizing: border-box; }
.xp__timeline li.is-current::before { left: -24px; top: calc(0.55em - 2px); width: 13px; height: 13px; background: var(--accent); border-color: var(--accent); }
.xp__role { font-size: var(--fs-lead); font-weight: 500; line-height: 1.25; }
.xp__role-period { font-size: var(--fs-meta); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.xp__role-part { white-space: nowrap; }
@media (min-width: 861px) { .xp__timeline li { flex-wrap: nowrap; } }

/* Details (highlights, focus, selected work) collapse; titles and the short description stay. */
.xp__more summary { display: inline-flex; align-items: center; gap: 0.55em; cursor: pointer; list-style: none; font-size: var(--fs-meta); font-weight: 500; color: var(--ink); }
.xp__more summary::-webkit-details-marker { display: none; }
.xp__more summary::before { content: "+"; display: inline-block; width: 0.8em; font-size: 1.15em; line-height: 1; text-align: center; }
.xp__more summary { transition: color var(--dur-ui) var(--ease-out); }
.xp__more summary:hover { color: var(--accent); }
.xp__more[open] summary::before { content: "−"; }
.xp__more-close, .xp__more[open] .xp__more-open { display: none; }
.xp__more[open] .xp__more-close { display: inline; }
.xp__more-body { display: grid; gap: 22px; margin-top: 22px; }
@supports selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .xp__more { interpolate-size: allow-keywords; }
    .xp__more::details-content { block-size: 0; opacity: 0; overflow: hidden; transition: block-size var(--dur-move) var(--ease-in-out), opacity var(--dur-move) var(--ease-out), content-visibility var(--dur-move) allow-discrete; }
    .xp__more[open]::details-content { block-size: auto; opacity: 1; }
  }
}

.xp__bullets { display: grid; gap: 10px; font-size: var(--fs-meta); line-height: 1.55; color: var(--ink-2); max-width: 46em; }
.xp__bullets li { padding-left: 1.3em; position: relative; }
.xp__bullets li::before { content: "–"; position: absolute; left: 0; color: var(--ink-3); }

/* Company and school marks: logos stand on their own, in colour, at one optical height (scale per
   logo). Without a logo file, a monogram tile stands in. */
.org-logo {
  --logo-h: clamp(34px, 1.6vw + 22px, 46px);
  display: block;
  height: calc(var(--logo-h) * var(--logo-scale, 1));
  width: auto;
  max-width: 180px;
  mix-blend-mode: multiply;
}
/* The three main companies: the logo carries the name, so it replaces the heading text. */
.xp__brand .org-logo { --logo-h: clamp(44px, 2.4vw + 22px, 64px); max-width: 100%; }
.xp__tagline { font-size: var(--fs-lead); line-height: 1.3; color: var(--ink); margin-top: 22px; max-width: 18em; }
.org-logo.logo-tile--sm { --logo-h: 32px; max-width: 56px; object-fit: contain; object-position: left center; }
.logo-tile {
  --tile: clamp(52px, 3vw + 32px, 72px);
  display: grid;
  place-items: center;
  width: var(--tile);
  height: var(--tile);
  background: var(--paper-2);
  flex: none;
}
.logo-tile span { font-size: calc(var(--tile) * 0.34); font-weight: 600; letter-spacing: -0.02em; color: var(--accent); }
.logo-tile--sm { --tile: 44px; }
.tinted .logo-tile { background: var(--paper); }

.edu li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px var(--gap); padding-block: 20px; border-bottom: 1px solid var(--rule); align-items: center; }
.edu__text { display: grid; gap: 2px; }
.edu__degree { font-size: var(--fs-meta); color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.edu__field { font-size: var(--fs-lead); font-weight: 500; line-height: 1.3; }
.edu__school { font-size: var(--fs-meta); color: var(--ink-2); }
.edu__period { font-size: var(--fs-meta); color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Awards as a list with captions (Experience page). */
.awards--list { margin-top: 0; padding-top: 0; border-top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px var(--gap); align-items: end; }
.awards--list li { display: grid; gap: 18px; padding-top: 18px; border-top: 1px solid var(--rule); }
.awards--list li:nth-child(-n+2) { padding-top: 0; border-top: 0; } /* the section divider sits above the first row */
.awards--list img { --award-h: clamp(56px, 4vw + 24px, 84px); order: -1; filter: none; opacity: 1; }
.awards--list span { font-size: var(--fs-meta); color: var(--ink-2); }

.earlier { gap: 0; padding-top: 0; }
.earlier li { display: grid; grid-template-columns: 88px minmax(0, 5fr) minmax(0, 4fr) auto; gap: 4px var(--gap); padding-block: 14px; border-bottom: 1px solid var(--rule); align-items: center; font-size: var(--fs-meta); }
.earlier__mark { display: flex; align-items: center; min-height: 44px; }
.earlier .org-logo.logo-tile--sm { --logo-h: 32px; max-width: 88px; }
.earlier li:first-child { padding-top: 0.3em; }
.earlier li:last-child, .edu li:last-child { border-bottom: 0; padding-bottom: 0; }
.earlier__role { font-size: var(--fs-body); font-weight: 500; }
.earlier__org { color: var(--ink-2); }
.earlier__period { color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cv__when { color: var(--ink-3); white-space: nowrap; }


/* ---------- CV ---------- */

.cv { max-width: 980px; padding-block: clamp(48px, 7vw, 120px) var(--space-block); font-size: 1rem; }
.cv__header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.cv__name { font-size: clamp(2.2rem, 4vw + 0.5rem, 3.75rem); line-height: 1; letter-spacing: -0.035em; font-weight: 500; }
.cv__descriptor { margin-top: 12px; color: var(--ink-2); font-size: var(--fs-meta); letter-spacing: 0.02em; }
@media screen { .print-only { display: none !important; } }
.cv__contact { margin-top: 6px; color: var(--ink-2); font-size: var(--fs-meta); }
.cv__summary { font-family: var(--serif); font-size: var(--fs-lead); line-height: 1.45; padding-block: 36px; max-width: 42em; }
.cv__section { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: var(--gap); padding-block: 26px; border-top: 1px solid var(--rule); }
.cv__section > h2 { font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; padding-top: 0.25em; }
.cv__item + .cv__item { margin-top: 24px; }
.cv__item--compact + .cv__item--compact { margin-top: 14px; }
.cv__item-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.cv__item-head h3 { font-size: 1.0625rem; font-weight: 600; }
.cv__item-head h3 small { font-weight: 400; color: var(--ink-2); font-size: 0.9em; }
.cv__item-head span { font-size: var(--fs-meta); color: var(--ink-3); }
.cv__roles { font-size: var(--fs-meta); color: var(--ink-2); margin-top: 2px; }
.cv__item p { color: var(--ink-2); margin-top: 4px; max-width: 44em; }
.cv ul { display: grid; gap: 6px; margin-top: 10px; }
.cv ul li { padding-left: 1.1em; position: relative; color: var(--ink-2); max-width: 46em; }
.cv ul li::before { content: "–"; position: absolute; left: 0; color: var(--ink-3); }
.cv__section > div > ul { margin-top: 0; }
.cv ul.cv__roles { gap: 0; margin-top: 2px; }
.cv ul.cv__roles li { padding-left: 0; color: var(--ink-2); }
.cv ul.cv__roles li::before { content: none; }
.cv__section > div > p { color: var(--ink-2); }
.cv__caps { display: grid; gap: 8px; }
.cv__caps div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; }
.cv__caps dt { font-weight: 600; }
.cv__caps dd { color: var(--ink-2); }
.cv__scholarship { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.cv__scholarship strong { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Responsive — recomposed, not just stacked
   ========================================================================== */

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .work-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}

@media (max-width: 860px) {
  .site-header__inner { padding-block: 14px; }
  .site-themes, .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }

  /* Black panel that drops in from the top. */
  .menu { display: block; position: fixed; inset: 0 0 auto 0; z-index: 20; max-height: 100dvh; overflow-y: auto; background: var(--ink); color: var(--paper); box-shadow: 0 24px 60px -20px rgba(24, 22, 29, 0.5); transform: translateY(-100%); visibility: hidden; transition: transform var(--dur-move) var(--ease-out), visibility 0s linear var(--dur-move); }
  .menu-open .menu { transform: none; visibility: visible; transition: transform var(--dur-move) var(--ease-out), visibility 0s; }
  .menu ::selection { background: var(--paper); color: var(--ink); }
  .menu :focus-visible { outline-color: var(--accent-soft); }
  .menu__inner { padding-block: 14px 32px; }
  .menu__top { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-meta); }
  .menu-close { display: inline-flex; }
  .menu__nav { margin-top: 28px; }
  .menu__nav a { display: flex; align-items: center; gap: 14px; padding-block: 14px; border-top: 1px solid #2c2933; font-size: var(--fs-sub); letter-spacing: -0.01em; }
  .menu__nav li:last-child a { border-bottom: 1px solid #2c2933; }
  .menu__nav .icon { width: 0.8em; height: 0.8em; color: #a49fae; }
  .menu__nav a[aria-current] .icon, .menu__nav a[aria-current] { color: var(--accent-soft); }
  .menu__themes { margin-top: 24px; font-size: var(--fs-meta); color: #a49fae; letter-spacing: 0.02em; }
  .menu__themes span { color: var(--accent-soft); padding-inline: 0.15em; }
  .menu__linkedin { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: var(--fs-meta); }
  .menu__linkedin:hover, .menu__nav a:hover, .menu__nav a:hover .icon { color: var(--accent-soft); }

  .hero__grid { grid-template-columns: 1fr; row-gap: 28px; }
  .hero__support, .hero__desc, .hero .awards { grid-column: 1 / -1; grid-row: auto; }
  .hero .awards { margin-top: 12px; }

  /* Projects: picture on top, text below */
  .project { grid-template-columns: 1fr; row-gap: 20px; }
  .project__text, .project__media, .project--flip .project__text, .project--flip .project__media { grid-column: 1; }
  .project__media, .project--flip .project__media { grid-row: 1; }
  .project__text, .project--flip .project__text { grid-row: 2; }
  .project .visual--screens { aspect-ratio: 16 / 10; }
  .archive-link__strip { width: 100%; }
  .archive-link__strip img { flex: 1; min-width: 0; width: auto; }
  .archive-link__strip img:nth-child(n+4) { display: none; }
  .frame--empty { aspect-ratio: 4 / 3; }
  .frame--empty::before { inset: 16% 0 0 12%; }

  .flow { flex-direction: column; align-items: flex-start; font-size: var(--fs-lead); gap: 0; }
  .flow li { padding-block: 0.15em; }
  .flow li + li::before { content: "↓"; display: block; padding: 0 0 0.05em; font-size: 0.8em; }
  .visual--converge { grid-template-columns: 1fr; gap: 12px; }
  .converge__arrow { transform: rotate(90deg); justify-self: start; font-size: var(--fs-statement); }

  .triad { grid-template-columns: 1fr; row-gap: 40px; }

  .belief { grid-template-columns: 1fr; row-gap: 14px; }
  .belief__num, .belief__statement, .belief__text { grid-column: 1 / -1; }
  .belief__num { padding-top: 0; }
  .belief__text { margin-top: 10px; }

  .leadership__intro { grid-template-columns: 1fr; row-gap: 20px; }
  .leadership__intro .lead, .leadership__intro .muted { grid-column: 1 / -1; }

  .quote blockquote::before { position: static; display: block; margin-bottom: -0.2em; }

  .ai__shift { grid-template-columns: 1fr; row-gap: 36px; }
  .ai__before, .ai__after { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 2.6em 1fr; padding-block: 14px; border-top-color: var(--rule); }
  .steps li:first-child { border-top-color: var(--ink); }
  .steps li::before { margin: 0; padding-top: 0.25em; }
  .ai__statement, .cs-visual, .cs-pending, .cs-image--inset { margin-left: 0; }
  .notes { grid-template-columns: 1fr; row-gap: 20px; }
  .note { aspect-ratio: auto; height: 15rem; }
  .note__statement { font-size: 2.25rem; }
  .note:nth-child(3n+2) { transform: rotate(1.2deg); }

  .about-teaser .statement, .about-teaser__text .lead, .about-teaser__text .cta { grid-column: 1 / -1; grid-row: auto; }
  .about-teaser__photo { grid-column: 1 / -1; grid-row: auto; width: 40%; height: auto; min-height: 0; margin-bottom: 32px; }
  .section-head__more { font-size: var(--fs-meta); }
  .about-teaser__text .lead { margin-top: 32px; }


  .page-hero__intro.lead, .page-hero__download { margin-left: 0; }
  .page-hero--xp .wrap { display: block; }
  .page-hero--xp .page-hero__intro.lead, .page-hero--xp .page-hero__download { padding-left: 0; }
  .page-hero--xp .page-hero__intro.lead { margin-top: clamp(32px, 4vw, 56px); }


  .approach__steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .approach__steps li::after { display: none; }
  .approach__steps li::before { margin-bottom: 16px; }

  .cs-text h2, .cs-text > div { grid-column: 1 / -1; }
  .cs-text h2 { margin-bottom: 14px; }
  .cs-sequence, .cs-sequence--2 { grid-template-columns: 1fr; }
  .cs-code--2 { grid-template-columns: minmax(0, 1fr); }
  .cs-image--diagram, .cs-shift { margin-left: 0; }
  .cs-eco__groups { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .cs-eco__group li { width: 64px; }
  .cs-eco__group img { width: 52px; height: 52px; }
  .cs-eco__group span { font-size: 0.75rem; }
  .cs-eco__base { display: block; }
  .cs-eco__base .label { margin-bottom: 10px; }
  .cs-eco__base ul { gap: 4px 14px; }
  .cs-eco__base li + li::before { margin-right: 14px; }
  .cs-list { grid-template-columns: 1fr; }
  .cs-numbers dl { grid-template-columns: 1fr; row-gap: 36px; }
  .quote--long { margin-left: 0; }
  .quote--long blockquote::before { font-size: var(--fs-statement); }

  .page-hero--about .wrap { display: block; }
  .page-hero__portrait { margin-top: var(--space-block); max-width: 360px; }
  .chapter { grid-template-columns: 1fr; row-gap: 18px; }
  .chapter__num, .chapter__title, .chapter__body { grid-column: 1 / -1; }
  .chapter__num { padding-top: 0; }
  .now__body { grid-template-columns: 1fr; gap: 20px; }
  .outside__text, .outside__image { grid-column: 1 / -1; }
  .outside__image { margin-top: var(--space-block); }

  .xp { grid-template-columns: 1fr; row-gap: 24px; }
  .xp__aside, .xp__body { grid-column: 1 / -1; }
  .xp { --xp-pad: 36px; }
  .xp--block { --xp-pad: 44px; }
  .xp:has(+ .xp--block) { padding-bottom: 44px; }
  .xp--block .xp__body { padding-left: 0; }
  .xp:not(.xp--block) .xp__body::before, .xp:has(+ .xp + .xp--block) .xp__body::before { top: var(--dot-y); bottom: 0; } /* the company block sits between bodies here */
  .xp__aside { position: static; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: center; }
  .xp__aside .logo-tile { grid-row: span 3; align-self: start; }
  .xp__aside .xp__brand, .xp__aside .xp__tagline { grid-column: 1 / -1; }
  .xp__tagline { margin-top: 16px; }
  .xp__aside:has(.xp__brand) { display: block; }
  .xp__org { margin-top: 0; font-size: var(--fs-sub); }
  .xp__period { margin-top: 6px; }
  .xp__lists div { grid-template-columns: 1fr; gap: 2px; }

  .edu li { grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .edu__period { grid-column: 2; text-align: left; }

  .awards--list { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .earlier li { grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; }
  .earlier__mark { grid-row: span 3; align-self: start; min-height: 0; }
  .earlier .org-logo.logo-tile--sm { --logo-h: 24px; max-width: 56px; }
  .earlier__period { text-align: left; }

  .cv__section { grid-template-columns: 1fr; gap: 14px; }
  .cv__caps div { grid-template-columns: 1fr; gap: 0; }
  .cv__caps div + div { margin-top: 8px; }
}

@media (max-width: 480px) {
  /* Phones: one row per project, picture on the left. */
  /* Phones: one card per row, picture full width. */
  .work-cards { grid-template-columns: 1fr; row-gap: 36px; }
  .work-card__media { aspect-ratio: 16 / 10; }
  .approach__steps { grid-template-columns: 1fr; }
}

/* ---------- Archive (/archive/) ---------- */


.archive { --step: clamp(28px, 4.5vw, 80px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(56px, 7vw, 120px); align-items: start; }
.archive__item { grid-column: var(--col); margin-top: calc(var(--y) * var(--step)); }
.archive__media { position: relative; container-type: size; aspect-ratio: var(--ratio); overflow: hidden; background: var(--paper-2); }
.archive__media img { width: 100%; height: 100%; object-fit: cover; }
.archive__item--shot .archive__media { border-radius: 6px; box-shadow: 0 1px 2px rgba(24, 22, 29, 0.06), 0 18px 44px -18px rgba(24, 22, 29, 0.24); }
.archive__item--bare .archive__media { background: none; overflow: visible; }
.archive__item--bare .archive__media img { object-fit: contain; }
.archive__item figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font-size: var(--fs-meta); color: var(--ink-2); }
.archive__item figcaption span { color: var(--ink-3); }

/* Placeholder tiles in the accent family, until real images arrive. */
.archive__ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: clamp(12px, 1.4vw, 20px); }
.archive__ph span { position: relative; font-size: var(--fs-meta); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.archive__ph--1 { background: radial-gradient(120% 90% at 80% 10%, var(--field-3), transparent 60%), linear-gradient(160deg, var(--field-2), var(--field-1)); color: var(--accent-soft); }
.archive__ph--2 { background: var(--paper-2); color: var(--ink-3); }
.archive__ph--2::before { content: ""; position: absolute; inset: 12%; border-radius: 4px; background: var(--paper); box-shadow: 0 1px 2px rgba(24, 22, 29, 0.06), 0 18px 40px -16px rgba(24, 22, 29, 0.22); }
.archive__ph--3 { background: linear-gradient(200deg, var(--accent-soft), var(--field-4) 55%, var(--field-3)); color: var(--field-1); }
.archive__ph--4 { background: var(--ink); color: var(--accent-soft); }
.archive__ph--4::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(52%, 52cqh); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--field-3), var(--field-1) 70%); }

/* Scroll-in: the archive uses the site-wide reveal (assets/reveal.js). On top, archive.js lets each item
   trail the scroll a little (--drift), on its own transform and never eased. */
.js-archive .archive__item { transform: translateY(var(--drift, 0px)); }

@media (hover: hover) {
  .archive__item figcaption { opacity: 0; transform: translateY(-4px); transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out); }
  .archive__item:hover figcaption { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  /* Two columns: wide items take the row, narrow ones pair up. */
  .archive { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; row-gap: 40px; --step: 12px; }
  .archive__item { grid-column: 1 / -1; }
  .archive__item--narrow { grid-column: auto / span 1; }
}

@media (prefers-reduced-motion: reduce) {
  .js-archive .archive__item { transform: none; }
}

/* Reveal (assets/reveal.js): blocks settle in as they scroll into view, a short fade and a small rise.
   Content only starts hidden once reveal.js has run; the CV page has none.
   Keep the selector in step with SELECTOR in reveal.js. */
@media screen and (prefers-reduced-motion: no-preference) {
  .js-reveal body:not(.cv-page) :is(
    .hero .wrap > :not(.hero__grid), .hero__grid > *,
    .page-hero .wrap > :not(.page-hero__text), .page-hero__text > *,
    .section > .wrap > :not(.work-cards, .notes, .triad, .principles, .approach__steps, .lessons, .about-teaser__text, .archive),
    .archive > .archive__item, .work-cards > li, .notes > li, .triad > li, .principles > li, .approach__steps > li, .lessons > *, .about-teaser__text > *
  ) { transition: opacity .7s var(--ease-out) var(--rv-delay, 0s), translate .9s var(--ease-glide) var(--rv-delay, 0s), scale var(--dur-move) var(--ease-out); }
  .js-reveal body:not(.cv-page) :is(
    .hero .wrap > :not(.hero__grid), .hero__grid > *,
    .page-hero .wrap > :not(.page-hero__text), .page-hero__text > *,
    .section > .wrap > :not(.work-cards, .notes, .triad, .principles, .approach__steps, .lessons, .about-teaser__text, .archive),
    .archive > .archive__item, .work-cards > li, .notes > li, .triad > li, .principles > li, .approach__steps > li, .lessons > *, .about-teaser__text > *
  ):not(.is-in) { opacity: 0; translate: 0 18px; }
}

/* ==========================================================================
   Print — /cv doubles as the PDF source
   ========================================================================== */

@page { size: A4; margin: 16mm 16mm 18mm; }

@media print {
  :root { --gap: 18px; }
  html { font-size: 9.5pt; }
  body { background: #fff; font-size: 1rem; line-height: 1.45; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header, .site-footer, .skip, .no-print, .screen-only, .hero__field { display: none !important; }
  .wrap { padding: 0; max-width: none; }
  .cv { max-width: none; padding: 0; font-size: 1rem; }
  .cv__name { font-size: 26pt; }
  .cv__descriptor, .cv__contact, .cv__item-head span, .cv__roles, .label { font-size: 8.5pt; }
  .cv__summary { font-size: 11pt; padding-block: 14pt; }
  .cv__section { grid-template-columns: 30mm 1fr; gap: 8mm; padding-block: 10pt; }
  .cv__section > h2 { break-after: avoid; }
  .cv__section > h2 { font-size: 8pt; }
  .cv__item { break-inside: avoid; }
  .cv__item + .cv__item { margin-top: 10pt; }
  .cv__item-head h3 { font-size: 10.5pt; }
  .cv ul li, .cv__item p, .cv__caps dd { color: #333; }
  .cv__caps div { grid-template-columns: 30mm 1fr; }
  .tbd { color: var(--accent); }
  a { border: 0 !important; }
}


/* ---------- About: the Home treatments, in full ---------- */

/* Hero: portrait left, headline and intro beside it on one top edge (like the about teaser on Home). */
.page-hero--about .wrap { align-items: start; }
.page-hero--about .page-hero__portrait { grid-column: 1 / span 4; grid-row: 1; }
.page-hero--about .page-hero__text { grid-column: 6 / span 7; grid-row: 1; }
.page-hero--about .page-hero__headline { text-box: trim-start cap alphabetic; }
/* Beliefs: larger notes, since the back also carries the contrast. */
.beliefs--full .note { aspect-ratio: 1 / 1; }
.beliefs--full .note__back { justify-content: flex-start; gap: 0; }
.note__contrast { margin-top: auto; font-size: var(--fs-lead); letter-spacing: -0.02em; font-weight: 500; line-height: 1.1; }
.note__contrast .contrast__vs { color: inherit; opacity: 0.7; }
.note__answer { margin-top: 10px; font-style: italic; }
/* What the path taught me: four lessons with the accent stroke instead of numbers and rules. */
.lessons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 5vw, 80px) var(--gap); margin-top: var(--space-block); }
.lessons h3 { font-size: var(--fs-sub); line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; max-width: 18ch; }
.lessons h3::after { content: ""; display: block; width: 28px; height: 2px; background: var(--accent); margin-top: 16px; margin-bottom: 18px; }
.lessons p { color: var(--ink-2); max-width: 34em; }
.lessons p + p { margin-top: 0.8em; }
.lessons__coda { color: var(--ink); font-size: var(--fs-lead); font-style: italic; line-height: 1.35; }
.tinted + .section.tinted { margin-top: 0; }

@media (max-width: 860px) {
  .page-hero--about .page-hero__portrait { max-width: 220px; margin-top: 0; margin-bottom: 32px; }
  .beliefs--full .note { aspect-ratio: auto; height: 17rem; }
  .lessons { grid-template-columns: 1fr; row-gap: 40px; }
}
