/* laurinieminen.com: "Report, edition two"
   The site is Lauri's attainment report, set like a well-made annual report: warm paper, ink,
   one blue for "over 100 %", big grotesk headlines, condensed figures, a serif for other
   people's words and long reading. Dark ink sections carry the numbers, the recommendations
   and the close.
   Archivo (variable: weight + width) for his voice, headings, figures and UI.
   Source Serif 4 for quotes and long reading. Square corners; portraits are round.
   Motion: one entrance, the quota board, the client marquee, the recommendation stage,
   reveals that happen once. All of it sits behind html.motion. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-italic-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --paper-2: #edf0f4;   /* cool Nordic mist for alternate sections */
  --ink: #0c1322;       /* navy ink: text, and the dark sections */
  --ink-2: #152036;
  --slate: #586172;
  --mist: #9ba6ba;      /* secondary text on ink */
  --rule: rgba(12, 19, 34, 0.12);
  --rule-2: rgba(12, 19, 34, 0.24);
  --rule-dark: rgba(255, 255, 255, 0.16);
  --blue: #1f3fb0;
  --blue-bright: #86a0ff;

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(0.22, 0.85, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --max: 1440px;
  --pad: clamp(20px, 4.4vw, 72px);
  --gap: clamp(20px, 2.6vw, 44px);
  --section: clamp(80px, 10vw, 156px);
  --header-h: 72px;

  --fs-mega: clamp(72px, 11.2vw, 196px);
  --fs-d1: clamp(52px, 8.2vw, 136px);
  --fs-h2: clamp(38px, 5.2vw, 80px);
  --fs-h3: clamp(23px, 2.2vw, 32px);
  --fs-lede: clamp(19px, 1.6vw, 23px);
  --fs-body: 17px;
  --fs-small: 14px;

  /* the quota rule: 100 / 130 = 76.9 % ink, the rest blue, hard stop */
  --qrule: linear-gradient(90deg, var(--ink) 76.9%, var(--blue) 76.9%);
}
@media (max-width: 759px) {
  :root { --header-h: 64px; }
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--ink);
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body) / 1.55 var(--sans);
  font-kerning: normal;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; }
p, li, dd, blockquote { text-wrap: pretty; }
h2 { font-size: var(--fs-h2); line-height: 0.98; letter-spacing: -0.038em; }
h3 { font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -0.02em; }
strong { font-weight: 650; }
::selection { background: var(--blue); color: #fff; }

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease), background-color 160ms var(--ease), opacity 160ms var(--ease);
}
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.board :focus-visible, .recs :focus-visible, .contact :focus-visible, .site-footer :focus-visible, .section--ink :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.lede { font-size: var(--fs-lede); line-height: 1.45; max-width: 46ch; letter-spacing: -0.005em; }
.muted { color: var(--slate); }
.small { font-size: var(--fs-small); line-height: 1.45; color: var(--slate); }
.icon { flex: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: var(--pad); top: 10px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }
main:focus { outline: none; }

/* figures: condensed numerals with a smaller unit */
.u { font-size: 0.42em; font-stretch: 100%; font-weight: 560; letter-spacing: -0.01em; margin-left: 0.03em; }
.u--pre { font-size: 0.5em; margin: 0 0.04em 0 0; vertical-align: 0.62em; }

/* ---------------------------------------------------------------- buttons and links */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  font: 560 16px / 1.2 var(--sans);
  letter-spacing: -0.005em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: -1px; z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 460ms var(--ease-out);
}
.btn:hover { color: #fff; text-decoration: none; }
.btn:hover::before { transform: scaleY(1); }
.btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--primary:hover { border-color: var(--ink); }
.btn--small { min-height: 38px; padding: 0 14px; font-size: 14.5px; font-weight: 550; }

.text-link {
  font-weight: 560;
  text-decoration: none;
  padding-bottom: 4px;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 0% 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 100% 100% / 100% 2px no-repeat;
  transition: background-size 560ms var(--ease-out);
}
.text-link:hover { background-size: 100% 2px, 0% 2px; }
.text-link--light {
  background:
    linear-gradient(#fff, #fff) 0 100% / 0% 2px no-repeat,
    linear-gradient(var(--blue-bright), var(--blue-bright)) 100% 100% / 100% 2px no-repeat;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  view-transition-name: site-header;
  transition: transform 560ms var(--ease-out), border-color 300ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header.is-hidden { transform: translateY(-101%); }
.site-header__inner {
  display: flex; align-items: center; gap: 12px 36px;
  min-height: calc(var(--header-h) - 1px);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  margin-right: auto;
  font-weight: 640; font-size: 17px; letter-spacing: -0.015em;
  text-decoration: none;
}
.brand__avatar {
  width: 38px; height: 38px; flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-2);
}
.site-nav { position: relative; }
.site-nav ul { display: flex; gap: 6px 30px; }
.nav-link { display: block; padding: 10px 0; font-size: 15px; font-weight: 480; text-decoration: none; }
.nav-link:hover { color: var(--blue); }
.site-nav__bar {
  position: absolute; left: 0; bottom: 3px;
  width: 0; height: 2px;
  background: var(--blue);
  opacity: 0;
  pointer-events: none;
  transition: transform 480ms var(--ease-out), width 480ms var(--ease-out), opacity 200ms var(--ease);
}
.site-nav__bar.is-visible { opacity: 1; }
html:not(.js) .nav-link[aria-current="page"] { text-decoration: underline 2px var(--blue); text-underline-offset: 0.45em; }
.site-header__end { display: flex; align-items: center; gap: 18px; }

.lang { display: inline-flex; border: 1px solid var(--rule-2); }
.lang__opt {
  display: grid; place-items: center;
  min-width: 34px; height: 30px; padding: 0 6px;
  font-size: 12.5px; font-weight: 620; letter-spacing: 0.01em;
  color: var(--slate);
  text-decoration: none;
}
.lang__opt:hover { color: var(--ink); text-decoration: none; }
.lang__opt.is-active { background: var(--ink); color: #fff; }

.menu-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.menu-toggle__bar {
  position: absolute; left: 11px; right: 11px; height: 2px;
  background: currentColor;
  transition: transform 380ms var(--ease-out), top 380ms var(--ease-out);
}
.menu-toggle__bar:first-child { top: 17px; }
.menu-toggle__bar:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  overflow: auto;
  background: var(--paper);
}
.menu[hidden] { display: none; }
.menu__inner { display: flex; flex-direction: column; gap: 40px; padding-block: 16px 48px; }
.menu__links a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(36px, 10vw, 56px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05;
  text-decoration: none;
}
.menu__links a[aria-current="page"] { color: var(--blue); }
.menu__end { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.menu__mail { font-size: 18px; }

@media (max-width: 1023px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-block; }
}
@media (max-width: 599px) {
  .btn--header { display: none; }
  .site-header__end { gap: 14px; }
  .brand { font-size: 16px; gap: 10px; }
  .brand__avatar { width: 34px; height: 34px; }
}

/* ---------------------------------------------------------------- sections */

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--alt { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #fff; }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 18px var(--gap);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 76px);
}
.sec-head--stack { grid-template-columns: minmax(0, 1fr); }
.sec-head__sub { color: var(--slate); max-width: 40ch; font-size: 17px; line-height: 1.5; padding-bottom: 0.4em; }
.sec-head__sub--wide { max-width: 64ch; font-size: var(--fs-lede); line-height: 1.45; color: var(--ink); }
.section--ink .sec-head__sub { color: var(--mist); }
.sec-foot { margin-top: clamp(28px, 3vw, 44px); }

@media (max-width: 899px) {
  .sec-head { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- hero */

.hero { position: relative; overflow: clip; }
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(600px, min(calc(100svh - var(--header-h)), 64vw), 940px);
  align-items: end;
}
.hero__text {
  position: relative; z-index: 2;
  padding-block: clamp(24px, 4vw, 56px) clamp(40px, 5vw, 72px);
  max-width: min(64%, 900px);
}
.status {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: clamp(24px, 3vw, 40px);
  font-size: 14.5px; font-weight: 560; line-height: 1.35; letter-spacing: -0.005em;
}
.status__mark { position: relative; flex: none; width: 9px; height: 9px; background: var(--blue); }
.hero__title { display: block; font-weight: 600; }
.hero__name {
  display: block;
  font-size: var(--fs-mega);
  line-height: 0.84;
  letter-spacing: -0.052em;
  font-weight: 640;
  font-stretch: 100%;
  margin-left: -0.055em;
}
.ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.ln__i { display: inline-block; }
.hero__claim {
  display: block;
  text-wrap: balance;
  margin-top: clamp(24px, 2.6vw, 36px);
  max-width: 24ch;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 540;
}
.hero__lede {
  margin-top: 18px;
  max-width: 44ch;
  font-size: clamp(16.5px, 1.2vw, 18.5px);
  line-height: 1.5;
  color: var(--slate);
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-top: clamp(28px, 3vw, 40px); }
.actions .text-link { margin-left: 10px; }

.hero__media {
  position: absolute; z-index: 1;
  right: calc((100vw - min(100vw, var(--max))) / -2);
  bottom: 0;
  width: min(50vw, 820px);
  height: 96%;
  margin: 0;
  pointer-events: none;
}
.hero__portrait { position: absolute; inset: 0; }
.hero__img {
  position: absolute; right: 0; bottom: 0;
  width: auto; height: 100%; max-width: none;
  object-fit: contain; object-position: right bottom;
}
.badge {
  position: absolute; z-index: 3;
  right: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); bottom: 13%;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px 14px 16px;
  background: var(--blue); color: #fff;
  pointer-events: auto;
}
.badge__key {
  font: 760 clamp(34px, 3vw, 46px) / 0.9 var(--sans);
  font-stretch: 82%;
  letter-spacing: -0.012em;
}
.badge__key .u--pre { font-size: 0.55em; vertical-align: 0.55em; }
.badge__text { font-size: 15px; font-weight: 580; line-height: 1.25; max-width: 23ch; }

@media (max-width: 1199px) {
  .hero__lede { max-width: 38ch; }
}
@media (max-width: 1023px) {
  /* Phones and tablets (Pamir, 22 Nov 2026): the status and the name on the left, Lauri smaller
     on the right with the #1 badge on his chest, and the claim, lede and buttons full width under
     him. --hw is the cut-out's width and --hb the part of it that bleeds off the right edge. The
     status ends before his hair (20.7 % into the cut-out) and the name before the line of his
     shoulder beside the chin (18.3 %), so no small text sits on him. Position with top, right
     and width only: the entrance animates scale and opacity, never transform. */
  .hero__grid {
    --hw: min(61vw, 600px);
    --hbr: 0.212;
    --hb: calc(var(--hw) * var(--hbr));
    display: block;
    min-height: 0;
    padding-top: 16px;
  }
  .hero__text { max-width: none; padding-block: 0 56px; }
  .hero__head { min-height: calc(var(--hw) * 1.1372); }
  .status { align-items: flex-start; max-width: calc(100vw - var(--hw) * (0.793 - var(--hbr)) - var(--pad) - 12px); margin-bottom: 14px; }
  .status__mark { margin-top: 5px; }
  .hero__name { font-size: min(calc((100vw - var(--hw) * (0.842 - var(--hbr)) - var(--pad) - 10px) / 4.05), 120px); }
  .hero__claim { margin-top: clamp(26px, 5vw, 40px); }
  .hero__lede { max-width: 46ch; }
  .actions .text-link { margin-left: 0; }
  .hero__media {
    top: 16px; right: calc(var(--hb) * -1); bottom: auto;
    width: var(--hw); height: auto;
    aspect-ratio: 1400 / 1592;
  }
  .hero__img { inset: 0; width: 100%; height: 100%; object-position: left bottom; }
  .badge { right: calc(var(--hb) + var(--pad)); bottom: 2.5%; width: max-content; gap: 10px; padding: 9px 12px 9px 10px; }
  .badge__key { font-size: clamp(28px, 4vw, 40px); }
  .badge__text { font-size: clamp(12px, 1.7vw, 15px); max-width: 21ch; }
}
@media (max-width: 599px) {
  /* phones: Lauri a little taller, with more of his right shoulder off the edge so his face and
     the name keep their size (Pamir, 22 Nov 2026: make the hero a bit longer on mobile) */
  .hero__grid { --hw: 70vw; --hbr: 0.3; }
}

/* ---------------------------------------------------------------- quota board (dark) and chart */

.board { background: var(--ink); color: #fff; padding-block: clamp(64px, 7.4vw, 112px); }
.board__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px var(--gap);
  align-items: center;
}
.board__head h2 { max-width: 12ch; font-size: clamp(36px, 4.2vw, 64px); }
.board__figures {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(24px, 3vw, 44px);
  border-top: 1px solid var(--rule-dark);
}
.board__fig { padding: clamp(22px, 2.6vw, 36px) var(--gap) 0 0; }
.board__fig + .board__fig { padding-left: var(--gap); border-left: 1px solid var(--rule-dark); }
.board__num {
  display: block;
  font: 760 clamp(48px, 5.4vw, 88px) / 0.88 var(--sans);
  font-stretch: 82%;
  letter-spacing: -0.012em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.board__num .u { color: var(--blue-bright); }
.board__label { display: block; margin-top: 14px; max-width: 28ch; font-size: 15px; line-height: 1.45; color: var(--mist); }
@media (max-width: 699px) {
  .board__figures { grid-template-columns: minmax(0, 1fr); }
  .board__fig, .board__fig + .board__fig { padding: 22px 0 0; border-left: 0; }
  .board__fig + .board__fig { margin-top: 22px; border-top: 1px solid var(--rule-dark); }
}
.board__source { margin-top: 22px; max-width: 34ch; font-size: 15px; line-height: 1.5; color: var(--mist); }
/* the four-field (Lauri, 23 Nov 2026): over quota is one result of four, next to churn, deal size and cycle */
.board__four { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule-dark); }
.board__cell { padding: clamp(24px, 2.8vw, 40px) var(--gap) clamp(24px, 2.8vw, 40px) 0; border-bottom: 1px solid var(--rule-dark); }
.board__cell:nth-child(2n) { padding-left: var(--gap); padding-right: 0; border-left: 1px solid var(--rule-dark); }
@media (max-width: 599px) {
  .board__four { grid-template-columns: minmax(0, 1fr); }
  .board__cell, .board__cell:nth-child(2n) { padding: 22px 0; border-left: 0; }
}
@media (max-width: 1023px) {
  .board__grid { grid-template-columns: minmax(0, 1fr); }
  .board__head h2 { max-width: 16ch; }
}

.quota {
  --year-w: 52px;
  --fig-w: clamp(132px, 15vw, 250px);
  --qgap: clamp(12px, 1.8vw, 28px);
  --track-h: clamp(10px, 1.1vw, 16px);
  --base: rgba(255, 255, 255, 0.26);
  --over: var(--blue-bright);
  --line: rgba(255, 255, 255, 0.85);
}
.quota__plot {
  position: relative;
  display: grid;
  grid-template-columns: var(--year-w) minmax(0, 1fr) var(--fig-w);
  grid-template-rows: 30px;
  grid-auto-rows: auto;
  column-gap: var(--qgap);
  row-gap: clamp(6px, 1vw, 14px);
  align-items: center;
}
.quota__axis { grid-column: 2; grid-row: 1 / 5; align-self: stretch; position: relative; pointer-events: none; z-index: 2; }
.quota__line { position: absolute; top: 0; bottom: 0; left: 76.923%; width: 1px; background: var(--line); transform-origin: 50% 0; }
.quota__label {
  position: absolute; top: 2px; left: 76.923%;
  padding-left: 10px;
  font-size: 13px; font-weight: 560; letter-spacing: 0.005em; line-height: 20px;
  white-space: nowrap;
}
.quota__row { display: contents; }
.quota__row > * { grid-row: var(--r); }
.quota__year { grid-column: 1; font-size: 14px; color: var(--mist); font-variant-numeric: tabular-nums; }
.quota__track { grid-column: 2; display: flex; height: var(--track-h); }
.quota__base { flex: none; width: 76.923%; height: 100%; background: var(--base); }
.quota__over { flex: none; width: calc((var(--v) - 100) / 130 * 100%); min-width: 2px; height: 100%; background: var(--over); }
.quota__fig {
  grid-column: 3;
  justify-self: end;
  font: 760 clamp(56px, 7vw, 116px) / 0.92 var(--sans);
  font-stretch: 82%;
  letter-spacing: -0.012em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.quota__pct { font-size: 0.46em; font-stretch: 100%; font-weight: 520; letter-spacing: 0; color: var(--blue-bright); }
.quota__source { margin: 16px 0 0 calc(var(--year-w) + var(--qgap)); font-size: 14px; color: var(--slate); }

.quota--static {
  --fig-w: clamp(86px, 9vw, 128px);
  --track-h: 10px;
  --base: rgba(13, 14, 17, 0.2);
  --over: var(--blue);
  --line: var(--ink);
  padding: 24px 24px 20px;
  background: var(--paper);
}
.quota--static .quota__fig { font-size: clamp(36px, 3.6vw, 56px); }
.quota--static .quota__year { color: var(--slate); }
.quota--static .quota__pct { color: var(--blue); }
@media (max-width: 599px) {
  .quota { --year-w: 40px; --fig-w: 112px; }
  .quota__label { left: auto; right: 23.077%; padding: 0 10px 0 0; }
}

/* ---------------------------------------------------------------- clients marquee */

.clients { padding-block: clamp(20px, 2.2vw, 32px); border-bottom: 1px solid var(--rule); }
.clients__grid {
  display: grid;
  grid-template-columns: minmax(150px, 2.4fr) minmax(0, 9.6fr);
  gap: 20px var(--gap);
  align-items: center;
}
.clients__label { font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.clients__count { margin-top: 6px; font-size: 13.5px; color: var(--slate); font-variant-numeric: tabular-nums; }
.marquee {
  --logo-gap: clamp(44px, 5vw, 76px);
  position: relative;
  overflow: hidden;
  padding-block: 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__rail { display: flex; width: max-content; will-change: transform; }
.marquee__set { display: flex; align-items: center; gap: var(--logo-gap); padding-right: var(--logo-gap); }
.logo { flex: none; display: flex; align-items: center; height: 44px; color: var(--ink); opacity: 0.8; transition: opacity 300ms var(--ease); }
.logo:hover { opacity: 1; }
.logo__img {
  display: block;
  height: var(--h);
  width: calc(var(--h) * var(--r));
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
  mask: var(--src) center / contain no-repeat;
}
/* no motion: the first set as a calm wrapped row */
.marquee:not(.is-running) { -webkit-mask-image: none; mask-image: none; }
.marquee:not(.is-running) .marquee__rail { width: auto; }
.marquee:not(.is-running) .marquee__set { flex-wrap: wrap; row-gap: 18px; column-gap: clamp(28px, 3.4vw, 48px); padding-right: 0; }
.marquee:not(.is-running) .marquee__set[aria-hidden="true"] { display: none; }
@media (max-width: 899px) {
  .clients__grid { grid-template-columns: minmax(0, 1fr); }
  .clients__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
  .clients__label { max-width: none; }
  .clients__count { margin: 0; }
  .marquee { margin-inline: calc(var(--pad) * -1); --logo-gap: 44px; }
  .marquee:not(.is-running) { margin-inline: 0; }
  .logo__img { height: calc(var(--h) * 0.86); width: calc(var(--h) * var(--r) * 0.86); }
}

/* ---------------------------------------------------------------- case rows (home, cases, insights) */

.case-list { position: relative; border-top: 1px solid var(--ink); }
.cases .case-list { border-top: 0; }
.cases .case-list::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 2px; background: var(--qrule); z-index: 1;
  transform-origin: 0 50%;
}
.case-row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 44px;
  gap: 10px var(--gap);
  align-items: center;
  padding-block: clamp(26px, 3.2vw, 44px);
  border-bottom: 1px solid var(--rule-2);
  transition: color 320ms var(--ease);
}
.case-row::before {
  content: ""; position: absolute; z-index: -1;
  top: 0; bottom: -1px; left: calc(var(--pad) * -0.5); right: calc(var(--pad) * -0.5);
  background: var(--ink);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 620ms var(--ease-out);
}
.case-row:hover, .case-row:focus-within { color: #fff; }
.case-row:hover::before, .case-row:focus-within::before { transform: scaleY(1); }
.case-row__title { font-size: clamp(30px, 3.6vw, 56px); line-height: 1; letter-spacing: -0.035em; font-weight: 600; }
.case-row__title a { text-decoration: none; }
.case-row__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.case-row__title a:focus-visible { outline: none; }
.case-row:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.case-row__text { font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.45; max-width: 46ch; }
.case-row__text p + p { margin-top: 6px; }
.case-row:hover .case-row__text .small, .case-row:focus-within .case-row__text .small { color: var(--mist); }
.case-row__go { justify-self: end; display: grid; place-items: center; width: 44px; height: 44px; transition: transform 500ms var(--ease-out); }
.case-row:hover .case-row__go { transform: translateX(6px); }
@media (max-width: 899px) {
  .case-row { grid-template-columns: minmax(0, 1fr) 32px; }
  .case-row__title { grid-column: 1; }
  .case-row__text { grid-column: 1; }
  .case-row__go { grid-column: 2; grid-row: 1; }
}

/* ---------------------------------------------------------------- recommendations stage (dark) */
/* open (Lauri, 23 Nov 2026): his six recommendations as on his own site, two columns of rows with thin
   rules; each has its label, his excerpt, the person and a link to the full text */
.hrecs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule-dark); }
.hrec { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 3vw, 44px) var(--gap) clamp(28px, 3vw, 44px) 0; border-bottom: 1px solid var(--rule-dark); }
.hrec:nth-child(2n) { padding-left: var(--gap); padding-right: 0; border-left: 1px solid var(--rule-dark); }
.hrec__skill { font-size: 14px; line-height: 1.4; color: var(--blue-bright); }
.hrec__quote { margin: 14px 0 0; max-width: 34em; font: 400 clamp(20px, 1.75vw, 26px) / 1.32 var(--serif); letter-spacing: -0.012em; }
.hrec__quote p { text-indent: -0.4em; }
.hrec__note { margin-top: 10px; font-size: 13px; color: var(--mist); }
.hrec__by { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 26px; }
.hrec__avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; }
.hrec__id { display: flex; flex-direction: column; line-height: 1.35; }
.hrec__name { font-size: 16px; font-weight: 640; }
.hrec__meta { font-size: 14px; color: var(--mist); }
.hrec__more { margin-top: 18px; font-size: 15px; }
.recs__foot { margin-top: clamp(28px, 3vw, 44px); }
.avatar-initials { display: inline-grid; place-items: center; box-sizing: border-box; border-radius: 50%; border: 1px solid var(--rule-dark); background: rgba(255, 255, 255, 0.06); color: #fff; font: 600 15px / 1 var(--sans); letter-spacing: 0.02em; }
.recs-list .avatar-initials { border-color: var(--rule-2); background: var(--paper-2); color: var(--ink); font-size: 20px; }
@media (max-width: 899px) {
  .hrecs { grid-template-columns: minmax(0, 1fr); }
  .hrec, .hrec:nth-child(2n) { padding: 28px 0; border-left: 0; }
}

.recs { position: relative; overflow: clip; background: var(--ink); color: #fff; padding-block: var(--section); }
.recs__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end;
  gap: 16px 40px;
  margin-bottom: clamp(24px, 2.8vw, 44px);
}
.recs__stage {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px var(--gap);
  padding-top: clamp(36px, 4vw, 60px);
  border-top: 1px solid var(--rule-dark);
}
.recs__panels { position: relative; display: grid; align-items: start; }
@media (min-width: 900px) {
  .recs__panels { align-self: center; align-items: center; }
}
.rec-panel { grid-area: 1 / 1; }
.rec-panel__quote {
  font: 400 clamp(26px, 3vw, 48px) / 1.16 var(--serif);
  letter-spacing: -0.02em;
  max-width: 880px;
}
.rec-panel__quote p { text-indent: -0.4em; }
.rec-panel__by {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end; align-items: last baseline;
  gap: 22px 0; margin-top: clamp(28px, 3vw, 44px);
}
.rec-panel__who { display: flex; align-items: center; gap: 16px; }
.rec-panel__all { justify-self: start; font-size: 16px; }
.rec-panel__avatar { display: none; width: 52px; height: 52px; flex: none; border-radius: 50%; object-fit: cover; }
.rec-panel__id { display: flex; flex-direction: column; line-height: 1.4; }
.rec-panel__name { font-size: 16px; font-weight: 640; }
.rec-panel__meta { font-size: 15px; color: var(--mist); }
html.js .rec-panel { visibility: hidden; opacity: 0; transform: translateY(10px); transition: opacity 450ms var(--ease), transform 600ms var(--ease-out), visibility 0s linear 450ms; }
html.js .rec-panel.is-active { visibility: visible; opacity: 1; transform: none; transition: opacity 700ms var(--ease) 100ms, transform 900ms var(--ease-out) 100ms, visibility 0s; }
html:not(.js) .recs__panels { gap: 64px; }
html:not(.js) .rec-panel { grid-area: auto; }
html:not(.js) .recs__tabs { display: none; }
html:not(.js) .recs__stage { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .rec-panel__avatar { display: block; }
html:not(.js) .rec-panel + .rec-panel .rec-panel__all { display: none; }

.recs__side { align-self: start; }
.recs__tabs { display: flex; flex-direction: column; }
.rec-tab {
  position: relative;
  display: flex; align-items: center; gap: 18px;
  width: 100%;
  padding: 18px 0 18px 26px;
  background: none; border: 0;
  color: var(--mist);
  font: inherit; text-align: left;
  cursor: pointer;
  transition: color 300ms var(--ease);
}
.rec-tab:hover, .rec-tab[aria-selected="true"] { color: #fff; }
.rec-tab__avatar { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; filter: grayscale(1); opacity: 0.72; transition: filter 400ms var(--ease), opacity 400ms var(--ease); }
.rec-tab:hover .rec-tab__avatar, .rec-tab[aria-selected="true"] .rec-tab__avatar { filter: none; opacity: 1; }
.rec-tab__id { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.rec-tab__name { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.rec-tab__co { font-size: 16px; color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-tab__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--rule-dark); }
.rec-tab__bar > span { display: block; width: 100%; height: 100%; background: #fff; transform: scaleY(0); transform-origin: 50% 0; }
.rec-tab[aria-selected="true"] .rec-tab__bar > span { transform: scaleY(1); }
.recs.is-auto .rec-tab[aria-selected="true"] .rec-tab__bar > span { animation: rec-progress var(--rec-dur, 9000ms) linear both; }
.recs.is-paused .rec-tab[aria-selected="true"] .rec-tab__bar > span { animation-play-state: paused; }
@keyframes rec-progress { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.recs__note { margin-top: 22px; padding-left: 26px; font-size: 14px; color: var(--mist); }
@media (max-width: 899px) {
  .recs__stage { grid-template-columns: minmax(0, 1fr); }
  .recs__tabs { flex-direction: row; gap: 12px; }
  .rec-tab { flex: 1 1 0; justify-content: flex-start; padding: 18px 0 0; }
  .rec-tab__avatar { width: 52px; height: 52px; }
  .rec-tab__bar { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 2px; }
  .rec-tab__bar > span { transform: scaleX(0); transform-origin: 0 50%; }
  .rec-tab[aria-selected="true"] .rec-tab__bar > span { transform: scaleX(1); }
  .recs.is-auto .rec-tab[aria-selected="true"] .rec-tab__bar > span { animation-name: rec-progress-x; }
  .rec-tab__id { display: none; }
  .rec-panel__avatar { display: block; }
  .rec-panel__by { grid-template-columns: minmax(0, 1fr); }
  .recs__note { padding-left: 0; }
}
@keyframes rec-progress-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 599px) {
  .rec-panel__quote { font-size: clamp(25px, 7vw, 32px); }
}

/* ---------------------------------------------------------------- story */

.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px clamp(32px, 6vw, 112px);
  align-items: start; /* the photo's top edge level with the heading (Pamir, 22 Nov 2026) */
}
.story__photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
.story__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.story__body h2 { margin-bottom: clamp(24px, 2.4vw, 36px); font-size: clamp(32px, 3.4vw, 52px); }
.story__prose { font: 400 clamp(18px, 1.45vw, 21px) / 1.62 var(--serif); max-width: 56ch; }
.story__prose p + p { margin-top: 1em; }
/* option B: the turnaround in four beats, each a bold line and a short serif line */
.story__beats { list-style: none; margin: 0; padding: 0; max-width: 34em; border-top: 1px solid var(--ink); }
.story__beats li { padding-block: clamp(16px, 1.7vw, 22px); border-bottom: 1px solid var(--rule-2); }
.story__lead { font-size: clamp(19px, 1.6vw, 23px); font-weight: 650; line-height: 1.22; letter-spacing: -0.014em; text-wrap: balance; }
.story__text { margin-top: 6px; font: 400 clamp(16.5px, 1.2vw, 18px) / 1.55 var(--serif); color: #2b3446; text-wrap: pretty; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 36px; }
@media (max-width: 899px) {
  .story__grid { grid-template-columns: minmax(0, 1fr); }
  .story__photo { max-width: 520px; width: 100%; }
}

/* ---------------------------------------------------------------- contact (dark) and footer */

.contact { background: var(--ink); color: #fff; padding-block: var(--section) clamp(64px, 8vw, 112px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); }
.contact__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px var(--gap); align-items: end; }
.contact__head h2 { max-width: 15ch; }
.contact__text { font-size: 18px; color: var(--mist); max-width: 30ch; padding-bottom: 0.4em; }
.contact__main { border-top: 1px solid var(--rule-dark); padding-top: clamp(32px, 4vw, 56px); }
.contact__email {
  display: inline-block;
  font: 600 clamp(30px, 5.7vw, 96px) / 1.02 var(--sans);
  letter-spacing: -0.045em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact__email span {
  padding-bottom: 0.06em;
  background:
    linear-gradient(#fff, #fff) 0 100% / 0% 3px no-repeat,
    linear-gradient(var(--blue-bright), var(--blue-bright)) 100% 100% / 100% 3px no-repeat;
  transition: background-size 700ms var(--ease-out);
}
.contact__email:hover { text-decoration: none; }
.contact__email:hover span { background-size: 100% 3px, 0% 3px; }
.contact__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.contact__phone { font-size: 20px; font-weight: 520; letter-spacing: -0.01em; text-decoration: none; font-variant-numeric: tabular-nums; }
.contact__phone:hover { text-decoration: underline; }
.copy-btn {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 40px; padding: 0 16px;
  font: 560 14.5px / 1.2 var(--sans);
  color: #fff; background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background-color 180ms var(--ease);
}
.copy-btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: #fff; transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 460ms var(--ease-out);
}
.copy-btn:hover { color: var(--ink); border-color: #fff; }
.copy-btn:hover::before { transform: scaleY(1); }
.copy-btn.is-done { color: #fff; border-color: var(--blue-bright); background: var(--blue); }
.copy-btn.is-done::before { transform: scaleY(0); }
.contact__list { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 28px; font-size: 16px; }
.contact__list a { display: inline-flex; align-items: center; gap: 8px; color: var(--mist); text-decoration: none; }
.contact__list a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 899px) {
  .contact__head { grid-template-columns: minmax(0, 1fr); }
}

.site-footer { background: var(--ink); color: var(--mist); overflow: hidden; }
.site-footer__row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 32px;
  padding-block: 26px;
  border-top: 1px solid var(--rule-dark);
  font-size: 14px;
}
.site-footer__name { margin-right: auto; color: #fff; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* ---------------------------------------------------------------- inner pages */

.page-head { padding-top: clamp(40px, 5.6vw, 96px); }
.page-head > .wrap::after {
  content: ""; display: block;
  height: 2px; margin-top: clamp(32px, 4vw, 60px);
  background: var(--qrule);
  transform-origin: 0 50%;
}
.page-head__h1 {
  font-size: var(--fs-d1);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 620;
  max-width: 15ch;
  margin-left: -0.04em;
}
.page-head .lede { margin-top: clamp(24px, 2.6vw, 36px); }
/* page heads without a photo: title left, lede right on the title's baseline (Pamir, 22 Nov 2026:
   the stacked head left the right half empty). Wraps under the title when they don't fit. */
.page-head__split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px var(--gap); }
.page-head__split > .page-head__h1 { flex: 0 1 auto; }
.page-head__side { flex: 0 1 30rem; }
.page-head__side .lede { margin-top: 0; padding-bottom: 0.3em; }
.page-head__extra { margin-top: 32px; }
.page-head__extra .actions { margin-top: 0; }
.page-head--case .page-head__h1, .page-head--article .page-head__h1 { font-size: clamp(42px, 5.8vw, 96px); max-width: 18ch; }
.crumb { margin-bottom: 24px; font-size: 15px; }
.crumb a { color: var(--slate); text-decoration: none; }
.crumb a::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: 10px; vertical-align: middle; background: currentColor; }
.crumb a:hover { color: var(--ink); }
.page-head__grid { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px var(--gap); }
.page-head__grid > :first-child { flex: 1 1 420px; min-width: 0; }
.page-head__portrait { flex: 0 0 auto; width: clamp(180px, 22vw, 320px); overflow: hidden; }
.portrait { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--paper-2); }
.portrait--stage { aspect-ratio: 4 / 5; object-position: 40% 30%; }
.page-head__media-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px var(--gap); align-items: end; }
/* rounded corners: Pamir's pick for this photo (A, 22 Nov 2026); the rest of the site stays square */
.page-head__photo { justify-self: end; width: min(100%, 440px); aspect-ratio: 1; margin: 0; overflow: hidden; background: var(--paper-2); border-radius: clamp(16px, 1.9vw, 28px); }
.page-head__img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) {
  .page-head__media-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .page-head__photo { order: -1; justify-self: start; width: min(100%, 420px); }
}

/* the page head already ends in the quota rule: the first list below it starts without its own top rule */
.page-head + .section .case-list, .page-head + .section .recs-list, .page-head + .section .contact-details { border-top: 0; }
.page-head + .section.cases .case-list::before { display: none; }
.page-head + .section .case-row:first-child, .page-head + .section .rec:first-child { padding-top: 0; }
.page-head + .section .contact-details > div:first-child { padding-top: 0; }

/* long reading: always in the right-hand part of the grid */
.article-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap); row-gap: 40px; align-items: start; }
.article-grid > .prose { grid-column: 2; grid-row: 1; }
.prose { font-family: var(--serif); font-size: clamp(18px, 1.4vw, 20.5px); line-height: 1.64; max-width: 64ch; }
.prose > * + * { margin-top: 0.95em; }
.prose h2 {
  font-family: var(--sans);
  font-size: clamp(24px, 2.4vw, 34px); line-height: 1.12; letter-spacing: -0.025em;
  margin-top: 2em;
}
.prose h2:first-child { margin-top: 0; }
.prose h2 + * { margin-top: 0.6em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose ul { list-style: square; padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose a { text-decoration-color: var(--blue); text-decoration-thickness: 2px; }
.prose a:hover { text-decoration-color: var(--ink); }
.sources { font-family: var(--sans); font-size: 15px; color: var(--slate); }

/* articles: one centred reading column (Pamir, 22 Nov 2026: the offset grid under a huge title was
   hard to read, and the text ran straight into the rule above and the contact block below) */
.article-col { max-width: 720px; margin-inline: auto; }
.article-head { padding-top: clamp(40px, 5vw, 80px); }
.article-head .crumb { margin-bottom: clamp(28px, 3vw, 40px); }
.article-head__h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -0.032em; font-weight: 620; text-wrap: balance; }
.article-head__lede { margin-top: clamp(18px, 2vw, 26px); font-size: var(--fs-lede); line-height: 1.45; color: var(--slate); }
.article-head__meta { margin-top: 16px; }
.article-head .article-col::after {
  content: ""; display: block;
  height: 2px; margin-top: clamp(32px, 3.6vw, 48px);
  background: var(--qrule);
  transform-origin: 0 50%;
}
.motion .article-head .article-col::after { transform: scaleX(0); animation: draw 1200ms var(--ease-io) 420ms forwards; }
.article-body { padding-top: clamp(40px, 4.4vw, 64px); padding-bottom: clamp(80px, 9vw, 136px); }
.prose--article { font-size: clamp(18.5px, 1.35vw, 20px); line-height: 1.7; max-width: none; }
.prose--article > * + * { margin-top: 1.05em; }
.prose--article h2 { font-size: clamp(23px, 2vw, 30px); margin-top: 2.1em; }
.prose--article h2 + * { margin-top: 0.55em; }
.article-body .sources { margin-top: clamp(40px, 4vw, 56px); padding-top: 18px; border-top: 1px solid var(--rule-2); }
.photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.photo--award { aspect-ratio: 4 / 3; }
.photo--wide { aspect-ratio: 4 / 3; }

/* case pages */
.case-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: var(--gap); row-gap: 40px;
  align-items: start;
  padding-block: clamp(48px, 6vw, 88px);
}
.case-facts { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; background: var(--paper-2); }
.case-facts > div + div { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule-2); }
.case-facts dt { font-size: 14px; color: var(--slate); }
.case-facts dd { margin-top: 4px; font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.case-visual { padding-bottom: clamp(48px, 6vw, 88px); }
.next-link { padding-block: clamp(48px, 6vw, 88px); }
.next-link .small { margin-bottom: 16px; }
.next-link a {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) 44px; column-gap: var(--gap); row-gap: 8px;
  align-items: center;
  padding-block: 32px;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule-2);
  text-decoration: none;
}
.next-link__name { font-size: clamp(30px, 3.6vw, 56px); font-weight: 600; line-height: 1; letter-spacing: -0.035em; }
.next-link__text { font-size: 19px; line-height: 1.45; }
.next-link__go { display: grid; place-items: center; transition: transform 500ms var(--ease-out); }
.next-link a:hover .next-link__name { color: var(--blue); }
.next-link a:hover .next-link__go { transform: translateX(6px); }

/* the signal radar diagram (Signal radar case) */
.radar { display: grid; justify-items: start; gap: 14px; padding: clamp(24px, 4vw, 56px); background: var(--ink); color: #fff; }
.radar__label { font-size: 14px; color: var(--mist); }
.radar__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 12px;
  font-size: 15px; line-height: 1.3;
  background: transparent; border: 1px solid var(--rule-dark); color: #fff;
  transition: background-color 350ms var(--ease), color 350ms var(--ease), border-color 350ms var(--ease);
}
.chip.is-lit { background: var(--blue); border-color: var(--blue-bright); color: #fff; }
.radar__wire { position: relative; width: 1px; height: 40px; margin-left: 24px; background: var(--rule-dark); }
.radar__pulse { position: absolute; left: -3px; top: 0; width: 7px; height: 7px; background: var(--blue-bright); opacity: 0; }
.radar__wire.is-pulsing .radar__pulse { animation: pulse-down 700ms var(--ease-io) forwards; }
@keyframes pulse-down {
  0% { opacity: 0; transform: translateY(0); }
  15%, 85% { opacity: 1; }
  100% { opacity: 0; transform: translateY(33px); }
}
.radar__node { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; color: var(--ink); }
.radar__dot { position: relative; flex: none; width: 10px; height: 10px; background: var(--blue); }
.radar__node.is-active .radar__dot::after {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--blue);
  animation: ping 1.2s var(--ease-out);
}
.radar__node-text { display: flex; flex-direction: column; line-height: 1.3; }
.radar__node-text span { font-size: 14px; color: var(--slate); }
.radar__result { display: flex; align-items: baseline; gap: 14px; margin-top: 12px; }
.radar__result-num { font-size: clamp(44px, 6vw, 80px); font-weight: 760; font-stretch: 82%; line-height: 1; color: var(--blue-bright); letter-spacing: -0.012em; }
@keyframes ping {
  0% { transform: scale(1); opacity: 0.8; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}

/* experience */
.figures { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figures__item { padding: 0 var(--gap) 4px 0; }
.figures__item + .figures__item { padding-left: var(--gap); border-left: 1px solid var(--rule-2); }
.figures__fig { display: block; font: 760 clamp(52px, 5.8vw, 96px) / 0.88 var(--sans); font-stretch: 82%; letter-spacing: -0.012em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.figures__fig .u { color: var(--slate); }
.figures__text { display: block; margin-top: 16px; font-size: 15px; line-height: 1.45; color: var(--slate); max-width: 26ch; }
@media (max-width: 899px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .figures__item:nth-child(3) { padding-left: 0; border-left: 0; }
}

.timeline { border-top: 1px solid var(--ink); }
/* work history on navy (Pamir, 22 Nov 2026: try a dark background) */
.history .timeline { border-top-color: rgba(255, 255, 255, 0.7); }
.history .employer { border-bottom-color: var(--rule-dark); }
.history .employer__span, .history .employer__count, .history .role__dates, .history .role__note, .history .quota__source { color: var(--mist); }
.history .employer__roles::before { background: var(--rule-dark); }
.history .role::before { background: var(--ink); border-color: rgba(255, 255, 255, 0.7); }
.history .role:first-child::before { background: var(--blue-bright); border-color: var(--blue-bright); }
.history .role__bullets li::before { background: #fff; }
.history .quota--static { --base: rgba(255, 255, 255, 0.26); --over: var(--blue-bright); --line: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.05); }
.history .quota--static .quota__year { color: var(--mist); }
.history .quota--static .quota__pct { color: var(--blue-bright); }.employer {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px var(--gap);
  padding-block: clamp(36px, 4.4vw, 64px);
  border-bottom: 1px solid var(--rule-2);
}
/* the employer follows mid-screen while its roles scroll past (Pamir, 22 Nov 2026) */
.employer__head { position: sticky; top: calc(50svh - 64px); align-self: start; }
.employer__name { font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.03em; line-height: 1.02; }
.employer__span { margin-top: 10px; font: 760 clamp(30px, 3vw, 46px) / 1 var(--sans); font-stretch: 82%; letter-spacing: -0.012em; color: var(--slate); font-variant-numeric: tabular-nums; }
.employer__count { margin-top: 8px; font-size: 14px; color: var(--slate); }
.employer__roles { position: relative; }
.employer__roles::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 1px; background: var(--rule-2); }
.role { position: relative; padding: 0 0 clamp(32px, 3.4vw, 48px) 36px; }
.role:last-child { padding-bottom: 0; }
.role::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; background: var(--paper); border: 1px solid var(--ink); }
.role:first-child::before { background: var(--blue); border-color: var(--blue); }
.role__dates { font-size: 14px; color: var(--slate); font-variant-numeric: tabular-nums; }
.role__title { margin-top: 6px; font-size: clamp(21px, 1.9vw, 27px); line-height: 1.15; letter-spacing: -0.02em; }
.role__note { margin-top: 4px; font-size: 15px; color: var(--slate); }
.role__bullets { margin-top: 16px; max-width: 66ch; }
.role__bullets li { position: relative; padding-left: 20px; }
.role__bullets li + li { margin-top: 8px; }
.role__bullets li::before { content: ""; position: absolute; left: 2px; top: 0.68em; width: 5px; height: 5px; background: var(--ink); }
.role__visual { margin-top: 28px; max-width: 720px; }
.role__visual--photo { max-width: 460px; overflow: hidden; }
@media (max-width: 899px) {
  .employer { grid-template-columns: minmax(0, 1fr); }
  .employer__head { position: static; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
  .employer__name { flex-basis: 100%; }
  .employer__span, .employer__count { margin-top: 0; }
}

/* home "What I do": the three photos as tilted cards above the three cards (Lauri, 25 Nov 2026, after Sun Bay's
   phone hero; Pamir the same evening: the big cut-out stays in the hero and the three go lower down). Square
   corners and a white print frame keep them in this site's system; a hairline and one soft shadow, the only
   shadow on the site, lift them off the white page. The tilt is the rotate property on .deal__tilt; the entrance,
   once in view, animates only opacity and scale on .deal__frame. Place the cards with top, left or right and
   width only. */
.doing__head { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.deal { position: relative; justify-self: end; width: 100%; max-width: 840px; aspect-ratio: 100 / 56; margin: 0; }
.deal__card { position: absolute; }
.deal__card--a { left: 8%; top: 16%; width: 31%; }
.deal__card--b { left: 33%; top: 0; width: 34%; z-index: 2; }
.deal__card--c { right: 8%; top: 20%; width: 30%; }
.deal__tilt { rotate: var(--r); transition: rotate 700ms var(--ease-out), translate 700ms var(--ease-out); }
.deal__frame {
  overflow: hidden;
  border: clamp(5px, 0.55vw, 8px) solid #fff;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(12, 19, 34, 0.09), 0 26px 50px -14px rgba(12, 19, 34, 0.3), 0 6px 14px rgba(12, 19, 34, 0.08);
}
.deal__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .deal__card:hover { z-index: 3; }
  .deal__card:hover .deal__tilt { rotate: var(--rh); translate: 0 -8px; }
}
@media (max-width: 899px) {
  .doing__head { grid-template-columns: minmax(0, 1fr); }
  .deal { justify-self: center; max-width: 560px; aspect-ratio: 100 / 62; margin-top: 8px; }
  .deal__card--a { left: 3%; top: 15%; width: 35%; }
  .deal__card--b { left: 31.5%; top: 1%; width: 37%; }
  .deal__card--c { right: 3%; top: 19%; width: 34%; }
}
.motion.io [data-deal]:not(.is-in) .deal__frame { opacity: 0; }
.motion.io [data-deal].is-in .deal__frame { animation: deal-in 900ms var(--ease-out) backwards; animation-delay: calc(80ms + var(--i) * 130ms); }
@keyframes deal-in { from { opacity: 0; scale: 0.86; } }

/* home "What I do": Lauri's three as three cards (Lauri, 25 Nov 2026, after Sun Bay's "Mitä teemme" tiles).
   Square, on mist, the quota rule along the top of each, no shadow. The whole card links to its case and
   fills navy from the bottom on hover, like the case rows. */
.doing__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; gap: 0 var(--gap); }
.doing__card {
  /* a subgrid, so the titles, texts and case lines of the three cards line up */
  position: relative; isolation: isolate;
  grid-row: span 3;
  display: grid; grid-template-rows: subgrid; row-gap: 16px;
  min-height: clamp(280px, 25vw, 360px);
  padding: clamp(26px, 2.8vw, 44px);
  background: var(--paper-2);
  transition: color 320ms var(--ease);
}
.doing__card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--qrule); z-index: 1; }
.doing__card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 620ms var(--ease-out);
}
.doing__card:hover, .doing__card:focus-within { color: #fff; }
.doing__card:hover::after, .doing__card:focus-within::after { transform: scaleY(1); }
.doing__card:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.doing__title { font-size: clamp(28px, 2.8vw, 40px); line-height: 1; letter-spacing: -0.032em; font-weight: 640; }
.doing__title a { color: inherit; text-decoration: none; }
.doing__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.doing__title a:focus-visible { outline: none; }
.doing__text { max-width: 30ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.42; }
.doing__go {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  align-self: start; padding-top: 18px;
  border-top: 1px solid var(--rule-2);
  font-size: 15px; font-weight: 600; line-height: 1.3;
  transition: border-color 320ms var(--ease);
}
.doing__go svg { flex: none; display: block; width: 22px; height: 22px; transition: transform 500ms var(--ease-out); }
.doing__card:hover .doing__go, .doing__card:focus-within .doing__go { border-top-color: var(--rule-dark); }
.doing__card:hover .doing__go svg { transform: translateX(6px); }
@media (max-width: 899px) {
  .doing__cards { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 16px; }
  .doing__card { grid-row: auto; display: flex; flex-direction: column; min-height: 0; gap: 12px; }
  .doing__go { align-self: stretch; margin-top: 10px; }
}

/* ---------------------------------------------------------------- the AI-native GTM system (os) */
/* "Yksi käyttöjärjestelmä" section, design 3a (Pamir's handoff, 22 Nov 2026).
   Desktop (>= 1180px): horizontal flow diagram. Below: vertical rail.
   Colours are local custom properties; map them to site tokens if they exist. */
.os{
  --os-bg:#0b1120; --os-surface:#111a2e; --os-line:#263049; --os-line-strong:#3a4566;
  --os-port:#5b6688; --os-muted:#9aa3b8; --os-soft:#c3c9d8; --os-text:#e3e7f1; --os-accent:#8b9bff;
  background:var(--os-bg); color:#fff;
}
/* .wrap gives the site's max width and side padding, so the section lines up with the others */
.os__wrap{padding-block:clamp(56px,6vw,72px) clamp(64px,7vw,80px)}
.os__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:24px 64px;margin-bottom:clamp(40px,5vw,56px)}
.os__title{margin:0;font-weight:650;font-stretch:96%;font-size:clamp(30px,3.6vw,44px);line-height:1.05;letter-spacing:-0.022em;text-wrap:balance}
.os__lede{margin:0;max-width:27em;font-size:16px;line-height:1.55;color:var(--os-muted);text-wrap:pretty}
.os__flow{border-top:1px solid var(--os-line);padding-top:24px}
.os__kicker{margin:0;font-size:14px;line-height:1.4;color:var(--os-muted)}
.os__label--me .os__kicker{color:var(--os-accent)}
.os__name{margin:0;font-weight:650;font-size:22px;line-height:1.15;letter-spacing:-0.01em}
.os__inputs,.os__tasks,.os__acts{list-style:none;margin:0;padding:0}
.os__inputs{font-size:15px;color:var(--os-soft)}
.os__tasks{border:1px solid var(--os-line-strong);background:var(--os-line);display:grid;gap:1px;font-size:14.5px;line-height:1.35;color:var(--os-text)}
.os__tasks li{background:var(--os-surface);display:flex;align-items:center}
.os__acts{font-size:18px;font-weight:500}
.os__photo{display:block;width:64px;height:64px;border-radius:50%;object-fit:cover;background:var(--os-line);outline:1px solid var(--os-accent);outline-offset:4px}
.os__link{display:none}

@media (max-width:1179.98px){
  .os__stage{position:relative;padding:0 0 32px 52px}
  .os__stage::before{content:"";position:absolute;left:20px;top:10px;bottom:0;width:1px;background:var(--os-line-strong)}
  .os__stage::after{content:"";position:absolute;left:15.5px;top:6px;width:10px;height:10px;box-sizing:border-box;border-radius:50%;border:1.5px solid var(--os-soft);background:var(--os-bg)}
  .os__stage--ai::before{top:0;background:var(--os-accent)}
  .os__stage--ai::after{border-color:var(--os-accent)}
  .os__stage--me{padding-bottom:0}
  .os__stage--me::before{top:0;bottom:auto;height:2px;background:var(--os-accent)}
  .os__stage--me::after{display:none}
  .os__label{margin-bottom:12px}
  .os__label--me{padding-top:4px}
  .os__name{font-size:24px}
  .os__photo{position:absolute;left:0;top:2px;width:40px;height:40px;outline-offset:3px}
  .os__inputs{display:flex;flex-direction:column;gap:6px}
  .os__inputs li{position:relative}
  .os__inputs li::before{content:"";position:absolute;left:-31px;top:11px;width:23px;height:1px;background:var(--os-line-strong)}
  .os__tasks{font-size:15px}
  .os__tasks li{padding:12px 16px}
  .os__acts{display:flex;flex-direction:column;gap:8px;font-size:19px}
  .os__acts li{display:flex;align-items:center;gap:10px}
  .os__acts li::before{content:"";width:6px;height:6px;background:var(--os-accent);flex:none}
}
@media (min-width:640px) and (max-width:1179.98px){
  .os__tasks{grid-template-columns:1fr 1fr}
}

@media (min-width:1180px){
  .os__flow{display:grid;grid-template-columns:210px 120px minmax(0,1fr) 70px 64px 46px auto;grid-template-rows:auto 204px;row-gap:24px}
  .os__stage{display:contents}
  .os__link{display:block;overflow:visible;position:relative;z-index:1}
  .os__label--in{grid-column:1/3;grid-row:1}
  .os__inputs{grid-column:1;grid-row:2}
  .os__link--in{grid-column:2;grid-row:2}
  .os__label--ai{grid-column:3/5;grid-row:1}
  .os__tasks{grid-column:3;grid-row:2}
  .os__link--mid{grid-column:4;grid-row:2}
  .os__label--me{grid-column:5/8;grid-row:1}
  .os__photo{grid-column:5;grid-row:2;align-self:center}
  .os__link--fan{grid-column:6;grid-row:2}
  .os__acts{grid-column:7;grid-row:2}
  .os__inputs{display:grid;grid-auto-rows:34px;padding-right:12px;text-align:right}
  .os__inputs li{line-height:34px;white-space:nowrap}
  .os__tasks{grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,1fr);height:204px;box-sizing:border-box}
  .os__tasks li{padding:0 18px}
  .os__acts{display:grid;grid-auto-rows:34px;padding:34px 0 0 12px}
  .os__acts li{line-height:34px;white-space:nowrap}
  /* Hidden start state, only while the entrance has not played yet (set by os-flow.js). */
  .os--armed [data-draw]{stroke-dashoffset:100}
  .os--armed [data-fade]{opacity:0}
}

/* proof under the diagram: two Fonecta results, each a link to its case */
.os__proof{list-style:none;margin:clamp(44px,5vw,64px) 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--gap);border-top:1px solid var(--os-line)}
.os__proof-item{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:clamp(22px,2.4vw,30px) 0;color:#fff;text-decoration:none}
.os__proof-kicker{font-size:14px;line-height:1.4;color:var(--os-accent)}
.os__proof-lead{font-size:clamp(20px,1.9vw,26px);font-weight:650;line-height:1.15;letter-spacing:-0.015em;transition:color 300ms var(--ease)}
.os__proof-text{max-width:46ch;font-size:15.5px;line-height:1.5;color:var(--os-muted)}
.os__proof-more{display:inline-flex;align-items:center;gap:10px;margin-top:8px;font-size:15px;font-weight:600;color:#fff;border-bottom:1px solid var(--os-accent);padding-bottom:3px}
.os__proof-more svg{display:block;width:18px;height:18px;color:var(--os-accent);transition:transform 300ms var(--ease)}
.os__proof-item:hover .os__proof-lead{color:var(--os-accent)}
.os__proof-item:hover .os__proof-more svg{transform:translateX(4px)}
.os__proof-item:focus-visible{outline:2px solid #fff;outline-offset:4px}
@media (max-width:899.98px){
  .os__proof{grid-template-columns:minmax(0,1fr)}
  .os__proof li + li{border-top:1px solid var(--os-line)}
}

.trio { padding-block: clamp(56px, 6.4vw, 104px); }
.trio__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px var(--gap); align-items: center; }
.trio__text { font-size: clamp(21px, 2vw, 30px); font-weight: 600; line-height: 1.22; letter-spacing: -0.02em; max-width: 26ch; }
.trio__venn { margin: 0; justify-self: center; width: min(100%, 330px); }
.venn { display: block; width: 100%; height: auto; overflow: visible; }
.venn__ring { fill: transparent; stroke: var(--ink); stroke-width: 1.25; transition: fill 400ms var(--ease); }
.venn__ring:hover { fill: rgba(31, 63, 176, 0.06); }
.venn__lens { fill: rgba(31, 63, 176, 0.08); }
.venn__core circle { fill: var(--blue); }
.venn__pulse { fill: none; stroke: var(--blue); stroke-width: 1.25; opacity: 0; transform-origin: 210px 186px; pointer-events: none; }
.venn__label { font: 560 17px var(--sans); fill: var(--slate); }
.venn__me { font: 600 20px var(--sans); fill: #fff; pointer-events: none; }
/* motion: the circles draw in apart and meet, the overlaps tint, then Lauri lights up and pings */
.motion.io [data-venn] .venn__ring { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1200ms var(--ease-io), transform 1400ms var(--ease-out), fill 400ms var(--ease); }
.motion.io [data-venn] .venn__ring--a { transform: translate(-30px, -17px); }
.motion.io [data-venn] .venn__ring--b { transform: translate(30px, -17px); transition-delay: 120ms; }
.motion.io [data-venn] .venn__ring--c { transform: translate(0, 34px); transition-delay: 240ms; }
.motion.io [data-venn] .venn__lenses, .motion.io [data-venn] .venn__label { opacity: 0; transition: opacity 700ms var(--ease) 1100ms; }
.motion.io [data-venn] .venn__core, .motion.io [data-venn] .venn__me { opacity: 0; transition: opacity 800ms var(--ease) 1500ms; }
.motion.io [data-venn].is-in .venn__ring { stroke-dashoffset: 0; transform: none; }
.motion.io [data-venn].is-in .venn__lenses, .motion.io [data-venn].is-in .venn__label,
.motion.io [data-venn].is-in .venn__core, .motion.io [data-venn].is-in .venn__me { opacity: 1; }
.motion.io [data-venn].is-in .venn__pulse { animation: venn-pulse 3.2s var(--ease-out) 2.4s infinite; }
@keyframes venn-pulse { 0% { opacity: 0.55; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
@media (max-width: 899px) {
  .trio__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Experience: expertise and tools as their own navy band above the ledger (Pamir, 22 Nov 2026:
   a stylish set of its own) */
.skills__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px var(--gap); align-items: start; }
.skills__head h2 { font-size: clamp(34px, 3.6vw, 56px); max-width: 12ch; }
.skills__sub { margin-top: 20px; max-width: 34ch; font-size: 17px; line-height: 1.5; color: var(--slate); }
.skills__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); border-bottom: 1px solid var(--rule-2); }
.skills__list li { padding-block: clamp(14px, 1.6vw, 20px); border-top: 1px solid var(--rule-2); font-size: clamp(22px, 2.1vw, 30px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.skills__label { margin-top: clamp(32px, 3.4vw, 48px); font-size: 15px; color: var(--slate); }
.skills__tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.skills__tools li { padding: 10px 16px; border: 1px solid rgba(12, 19, 34, 0.24); font-size: 16px; line-height: 1.2; }
@media (max-width: 899px) {
  .skills__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 519px) {
  .skills__list { grid-template-columns: minmax(0, 1fr); }
}

/* Experience: education, certifications and languages as one ledger under the
   quota rule (Pamir, 22 Nov 2026: present them more clearly, as one professional whole) */
.ledger { position: relative; margin: 0; }
.ledger::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--qrule); }
.ledger__row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 14px var(--gap); padding-block: clamp(22px, 2.4vw, 32px); border-bottom: 1px solid var(--rule-2); }
.ledger__row:first-child { padding-top: clamp(28px, 3vw, 40px); }
.ledger dt { font-size: clamp(19px, 1.5vw, 22px); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.ledger dd { margin: 0; }
.ledger__items { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 18px var(--gap); }
.ledger__items li { display: flex; flex-direction: column; gap: 2px; }
.ledger__items strong { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.ledger__items span { font-size: 16px; line-height: 1.4; color: var(--slate); }
.ledger__items .ledger__fig { flex-direction: row; align-items: baseline; gap: 12px; }
.ledger__items .ledger__num { font: 760 clamp(36px, 3.2vw, 48px) / 0.9 var(--sans); font-stretch: 82%; letter-spacing: -0.012em; color: var(--ink); }
.ledger__items .ledger__label { font-size: 17px; color: var(--ink); max-width: 26ch; }
.ledger__tags { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 12px var(--gap); }
.ledger__tags li { position: relative; padding-left: 18px; font-size: 17px; line-height: 1.35; }
.ledger__tags li::before { content: ""; position: absolute; left: 1px; top: 0.6em; width: 5px; height: 5px; background: var(--ink); }
@media (max-width: 899px) {
  .ledger__row { grid-template-columns: minmax(0, 1fr); }
  .ledger__items, .ledger__tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 519px) {
  .ledger__tags, .ledger__items--figs { grid-template-columns: minmax(0, 1fr); }
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.facts .tags li + li { margin-top: 0; }
.tags li { padding: 6px 12px; border: 1px solid var(--rule-2); font-size: 14.5px; line-height: 1.3; }
@media (max-width: 1023px) {
  .facts__col { grid-column: span 6; }
  .facts__col--wide { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .facts__col { grid-column: 1 / -1; }
}

.link-list li + li { margin-top: 10px; }
.link-list a { display: inline-flex; align-items: center; gap: 8px; }
.link-list--big { font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -0.03em; }
.link-list--big a { text-decoration: none; }
.link-list--big a:hover { color: var(--blue); text-decoration: underline; }

/* insights (Pamir, 22 Nov 2026: lighter page) */
.sec-head--quiet { margin-bottom: clamp(20px, 2.4vw, 32px); }
.sec-head--quiet h2 { font-size: clamp(30px, 3vw, 46px); }
/* articles: long titles get the wide column and a quieter size, so they fit on two lines */
.case-list--articles .case-row { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr) 44px; align-items: start; padding-block: clamp(24px, 2.6vw, 36px); }
.case-list--articles .case-row__title { font-size: clamp(24px, 2.3vw, 34px); line-height: 1.12; letter-spacing: -0.022em; max-width: 34ch; }
.case-list--articles .case-row__text { font-size: 17px; padding-top: 0.25em; }
.case-list--articles .case-row__go { align-self: center; }
/* LinkedIn posts: two columns of short notes instead of a table */
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--ink); }
.post { position: relative; padding: 26px 0 28px; border-bottom: 1px solid var(--rule-2); }
.post__title { font-size: clamp(19px, 1.5vw, 22px); font-weight: 600; line-height: 1.25; letter-spacing: -0.012em; max-width: 30ch; }
.post__title a { text-decoration: none; }
.post__title a::before { content: ""; position: absolute; inset: 0; }
.post:hover .post__title a { color: var(--blue); }
.post__text { margin-top: 8px; max-width: 52ch; font-size: 16.5px; line-height: 1.5; color: var(--slate); }
.post .small { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; }
@media (max-width: 899px) {
  .case-list--articles .case-row { grid-template-columns: minmax(0, 1fr) 32px; }
  .posts { grid-template-columns: minmax(0, 1fr); }
}
.section .case-list { margin-top: 0; }

/* about: every section on one 5/7 grid, so right-hand content shares one left edge */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px var(--gap); }
.about-head { padding-top: clamp(48px, 6vw, 96px); padding-bottom: var(--section); }
.about-head .about-grid { align-items: start; }
.about-head__lede {
  margin-top: clamp(24px, 2.6vw, 36px);
  font-size: clamp(23px, 2.1vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.024em;
  font-weight: 500;
}
.about-head__intro { margin-top: clamp(24px, 2.6vw, 36px); font: 400 clamp(18px, 1.4vw, 20.5px) / 1.62 var(--serif); color: var(--ink); }
.about-head__intro p + p { margin-top: 0.9em; }
.about-head__photo { position: relative; overflow: hidden; aspect-ratio: 1 / 1.12; background: var(--paper-2); }
.about-head__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about-origin .about-grid { align-items: start; }
.about-origin__side { position: sticky; top: calc(var(--header-h) + 32px); }
.about-origin__h { margin-bottom: clamp(24px, 3vw, 40px); }
.about-origin__photo { overflow: hidden; }
.pull {
  margin-bottom: clamp(28px, 3vw, 44px);
  max-width: 22ch;
  font: 400 clamp(28px, 3vw, 48px) / 1.14 var(--serif);
  letter-spacing: -0.02em;
}
.about-method__head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px var(--gap);
  align-items: end; margin-bottom: clamp(32px, 4vw, 56px);
}
.about-method__intro { max-width: 52ch; font: 400 clamp(18px, 1.4vw, 20.5px) / 1.55 var(--serif); padding-bottom: 0.2em; }
.maxim { margin-top: clamp(32px, 3.4vw, 48px); padding-top: clamp(24px, 2.4vw, 32px); border-top: 1px solid var(--ink); }
.maxim p { max-width: 26ch; font: 400 clamp(24px, 2.4vw, 36px) / 1.18 var(--serif); letter-spacing: -0.02em; text-indent: -0.4em; }
@media (max-width: 899px) {
  .about-method__head { grid-template-columns: minmax(0, 1fr); }
}
.steps { border-top: 1px solid var(--ink); }
.step {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px var(--gap);
  align-items: start;
  padding-block: clamp(28px, 3.2vw, 46px);
  border-bottom: 1px solid var(--rule-2);
}
.step__head { display: grid; grid-template-columns: clamp(40px, 3.6vw, 58px) minmax(0, 1fr); column-gap: clamp(12px, 1.4vw, 22px); align-items: baseline; }
.step__num { font: 600 clamp(44px, 4vw, 62px) / 0.8 var(--sans); font-stretch: 74%; letter-spacing: -0.03em; color: var(--blue); }
.step__title { font-size: clamp(24px, 2.3vw, 34px); line-height: 1.08; letter-spacing: -0.02em; }
.step__text { margin: 0; padding-top: clamp(4px, 0.5vw, 8px); max-width: 52ch; color: var(--slate); font-size: 17.5px; }
.about-build .about-grid { align-items: start; }
.builds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--rule-dark); }
.build { padding-block: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--rule-dark); }
.build:nth-child(odd) { padding-right: 8px; }
.build__title { font-size: clamp(21px, 1.9vw, 27px); }
.build__text { margin-top: 12px; max-width: 40ch; color: var(--mist); }
.about-lab .about-grid { align-items: start; }
.about-lab__head .sec-head__sub { margin-top: 18px; }
.lab { border-top: 1px solid var(--ink); }
.lab__row { padding-block: 24px; border-bottom: 1px solid var(--rule-2); }
.lab__name { font-size: clamp(19px, 1.6vw, 22px); }
.lab__text { margin-top: 6px; max-width: 60ch; }
.tag {
  display: inline-block; margin-left: 8px; padding: 1px 8px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 560; line-height: 1.6;
  color: var(--blue); border: 1px solid currentColor;
  vertical-align: 2px;
}
@media (max-width: 899px) {
  .about-grid, .step { grid-template-columns: minmax(0, 1fr); }
  .about-head__photo { order: -1; max-width: 560px; aspect-ratio: 4 / 4.4; }
  .about-origin__side { position: static; }
  .about-origin__photo { max-width: 560px; }
  .builds { grid-template-columns: minmax(0, 1fr); }
}

/* recommendations page */
.recs-list { border-top: 1px solid var(--ink); }
.rec { padding-block: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--rule-2); }
.rec__figure { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px var(--gap); align-items: start; }
.rec__by { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.4; }
.rec__portrait { width: 72px; height: 72px; margin-bottom: 16px; border-radius: 50%; object-fit: cover; }
.rec__quote { font: 400 clamp(20px, 1.75vw, 26px) / 1.48 var(--serif); letter-spacing: -0.008em; max-width: 58ch; }
.rec__quote p + p { margin-top: 0.8em; }
.rec__quote p:first-child { text-indent: -0.4em; }
.quote__name { font-size: 17px; font-weight: 640; }
.quote__meta { color: var(--slate); }
.quote__meta--note { margin-top: 8px; font-size: 14px; }

/* contact page */
.contact-details { border-top: 1px solid var(--ink); }
.open-to__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px var(--gap); align-items: start; }
.open-to__h { font-size: clamp(30px, 3.2vw, 48px); }
.open-to__list { border-top: 1px solid var(--ink); }
.open-to__list li { padding-block: clamp(18px, 2vw, 26px); border-bottom: 1px solid var(--rule-2); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; letter-spacing: -0.01em; text-wrap: pretty; }
@media (max-width: 899px) {
  .open-to__grid { grid-template-columns: minmax(0, 1fr); }
}
.contact-details > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap); row-gap: 4px; padding-block: 24px; border-bottom: 1px solid var(--rule-2); align-items: baseline; }
.contact-details dt { font-size: 14px; color: var(--slate); }
.contact-details dd a { display: inline-flex; align-items: center; gap: 8px; }
.contact-details__big { font-size: clamp(24px, 3.4vw, 52px); font-weight: 600; letter-spacing: -0.035em; overflow-wrap: anywhere; text-decoration: none; }
.contact-details__big:hover { color: var(--blue); }

@media (max-width: 599px) {
  .prose, .about-head__intro, .rec__quote, .lab__text, .role__bullets { hyphens: auto; -webkit-hyphens: auto; }
  .story__prose p { text-wrap: pretty; }
}
@media (max-width: 899px) {
  .case-grid, .article-grid, .next-link a, .post, .rec__figure, .contact-details > div { grid-template-columns: minmax(0, 1fr); }
  .article-grid > .prose, .post__text, .post .small { grid-column: auto; grid-row: auto; }
  .case-facts { position: static; }
  .post__title { grid-row: auto; }
  .next-link__go { display: none; }
}

/* ---------------------------------------------------------------- motion
   Only with html.motion (no reduced-motion preference) and, for anything that waits for the
   viewport, html.io (set by site.js once IntersectionObserver is running). */

/* page load: the hero, once */
.motion .ln__i { transform: translateY(104%); animation: rise 1100ms var(--ease-out) forwards; animation-delay: calc(160ms + var(--l, 0) * 90ms); }
@keyframes rise { to { transform: none; } }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w__i { display: inline-block; }
.motion .w__i { transform: translateY(106%); animation: rise 950ms var(--ease-out) forwards; animation-delay: calc(120ms + var(--w) * 32ms); }
.motion .enter { opacity: 0; transform: translateY(14px); animation: enter 900ms var(--ease-out) forwards; animation-delay: calc(120ms + var(--d) * 80ms); }
@keyframes enter { to { opacity: 1; transform: none; } }
.motion .hero__portrait { opacity: 0; animation: fade-in 900ms var(--ease) 120ms forwards; }
.motion .hero__img { scale: 1.06; transform-origin: 70% 100%; animation: settle 2000ms var(--ease-out) 120ms forwards; }
.motion .badge { clip-path: inset(0 100% 0 0); animation: clip-open 800ms var(--ease-io) 1150ms forwards; }
.motion .status__mark::after {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--blue);
  animation: ping 2.8s var(--ease-out) 1.8s infinite;
}
@keyframes fade-in { to { opacity: 1; } }
@keyframes clip-open { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { scale: 1; } }
.motion .page-head > .wrap::after { transform: scaleX(0); animation: draw 1200ms var(--ease-io) 420ms forwards; }
@keyframes draw { to { transform: scaleX(1); } }

/* quota board: the 100 % line drops, grey bars run to it, the blue overage follows, figures count */
.motion.io .quota[data-quota] .quota__line { transform: scaleY(0); transition: transform 700ms var(--ease-io); }
.motion.io .quota[data-quota] .quota__label { opacity: 0; transition: opacity 400ms var(--ease) 400ms; }
.motion.io .quota[data-quota] .quota__base { clip-path: inset(0 100% 0 0); transition: clip-path 900ms var(--ease-io); transition-delay: calc(300ms + var(--i) * 130ms); }
.motion.io .quota[data-quota] .quota__over { clip-path: inset(0 100% 0 0); transition: clip-path 520ms var(--ease-out); transition-delay: calc(1150ms + var(--i) * 130ms); }
.motion.io .quota[data-quota] .quota__fig { opacity: 0; transform: translateY(18px); transition: opacity 500ms var(--ease), transform 900ms var(--ease-out); transition-delay: calc(300ms + var(--i) * 130ms); }
.motion.io .quota.is-playing .quota__line { transform: none; }
.motion.io .quota.is-playing .quota__label { opacity: 1; }
.motion.io .quota.is-playing .quota__base,
.motion.io .quota.is-playing .quota__over { clip-path: inset(0 0 0 0); }
.motion.io .quota.is-playing .quota__fig { opacity: 1; transform: none; }

/* the quota rule over the record and the cases draws across once, past the 100 % break */
.motion.io .cases .case-list::before { transform: scaleX(0); transition: transform 1400ms var(--ease-io); }
.motion.io .cases .case-list.is-in::before { transform: none; }

/* photos have no reveal animation: Pamir (22 Nov 2026) found the wipe up from the bottom cheap.
   Never wipe or slide an image in from an edge on this site. */


/* scroll-linked: the story photos drift a little against each other (where supported) */
@supports (animation-timeline: view()) {
  .motion .story__photo .story__img, .motion .about-head__img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  @keyframes drift { from { transform: scale(1.1) translateY(-3.5%); } to { transform: scale(1.1) translateY(3.5%); } }
}

.motion .menu.is-open .menu__links li { animation: menu-in 600ms var(--ease-out) both; animation-delay: calc(60ms + var(--i) * 45ms); }
.motion .menu.is-open .menu__end { animation: menu-in 600ms var(--ease-out) 320ms both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* page to page: a quiet cross-fade, the header stays put */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 200ms var(--ease) both; }
::view-transition-new(root) { animation: vt-in 320ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

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

/* ---------------------------------------------------------------- print: a one-page record */

/* ================================================================ dark theme
   The second preview (Pamir, 22 Nov 2026): black page, warm off-white text, Lauri's blue made
   brighter for black. Built with THEME=dark OUT_DIR=dist-dark node build.mjs; the light site never
   carries the theme-dark class, so none of this touches it. A class, not data-theme: a Chrome
   extension on Pamir's Mac rewrites data-theme to "light" on every page. */
html.theme-dark {
  color-scheme: dark;
  --paper: #0a0a0a;
  --paper-2: #141414;
  --deep: #000;
  --ink: #f2f0ea;
  --ink-2: #d9d7d0;
  --slate: #a5a39c;
  --mist: #a5a39c;
  --rule: rgba(255, 255, 255, 0.12);
  --rule-2: rgba(255, 255, 255, 0.22);
  --rule-dark: rgba(255, 255, 255, 0.16);
  --blue: #3f5ef8;
  --blue-bright: #8ea2ff;
  --qrule: linear-gradient(90deg, var(--ink) 76.9%, var(--blue) 76.9%);
  background: var(--deep);
}
/* the former navy bands become pure black, a step below the page */
html.theme-dark :is(.section--ink, .board, .recs, .contact, .site-footer, .radar) { background: var(--deep); }
html.theme-dark .history .role::before { background: var(--deep); }
/* fills that were navy with white text */
html.theme-dark .skip,
html.theme-dark .lang__opt.is-active { color: #000; }
html.theme-dark .btn:hover { color: #000; }
html.theme-dark .btn--primary:hover { border-color: var(--ink); }
html.theme-dark .copy-btn:hover { color: #000; }
html.theme-dark .case-row::before { background: var(--blue); }
html.theme-dark .doing__card::after { background: var(--blue); }
html.theme-dark .case-row:hover .case-row__text .small,
html.theme-dark .case-row:focus-within .case-row__text .small { color: rgba(255, 255, 255, 0.82); }
/* blue as text needs the bright blue on black */
html.theme-dark :is(.nav-link:hover, .menu__links a[aria-current="page"], .next-link a:hover .next-link__name,
  .link-list--big a:hover, .post:hover .post__title a, .step__num, .contact-details__big:hover, .quota--static .quota__pct, .tag) { color: var(--blue-bright); }
html.theme-dark .prose a { text-decoration-color: var(--blue-bright); }
/* the static quota chart sits on the page, not on a dark band */
html.theme-dark .quota--static { --base: rgba(255, 255, 255, 0.22); --line: rgba(255, 255, 255, 0.8); --over: var(--blue-bright); }
/* story, Venn and the GTM system */
html.theme-dark .story__text { color: var(--ink-2); }
html.theme-dark .venn__lens { fill: rgba(110, 135, 255, 0.2); }
html.theme-dark .venn__ring:hover { fill: rgba(110, 135, 255, 0.1); }
html.theme-dark .os {
  --os-bg: var(--deep); --os-surface: #101012; --os-line: #232326; --os-line-strong: #38383e;
  --os-port: #5f5f66; --os-muted: #a5a39c; --os-soft: #d2d0c9; --os-text: #ebe9e2; --os-accent: #8ea2ff;
}
html.theme-dark .os__link circle[fill="#0b1120"] { fill: var(--deep); }

@media print {
  @page { margin: 14mm; }
  html { background: #fff; }
  body { font-size: 10.5pt; overflow: visible; background: #fff; }
  .site-header, .menu, .skip, .actions, .copy-btn, .story, .recs, .clients, .cases, .sec-foot,
  .link-row, .site-footer__links, .page-head__portrait, .badge, .deal { display: none !important; }
  .hero__grid { min-height: 0; display: block; }
  .hero__media { display: none; }
  .hero__text { max-width: none; padding: 0; }
  .hero__name { font-size: 40pt; }
  .hero__claim { font-size: 16pt; }
  .board, .contact, .site-footer { background: none !important; color: #000; padding-block: 6mm; }
  .quota { --base: #bbb; --line: #000; }
  .quota__fig { font-size: 28pt; }
  .board__source, .contact__text, .contact__list a { color: #333; }
  .section { padding-block: 6mm; break-inside: avoid; }
  .ledger__fig { font-size: 30pt; }
  * { clip-path: none !important; opacity: 1 !important; transform: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
