/* Kenneth Younge Advisory - site styles
   Tokens and @font-face live in tokens.css. The identity layer at the end sets the North arrow look. */

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-text);
  font-size: var(--s-base);
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-signal-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--c-fir); }
:focus-visible { outline: 2px solid var(--c-signal); outline-offset: 3px; border-radius: 2px; }
.section--fir :focus-visible, .site-footer :focus-visible { outline-color: var(--c-paper); }
::selection { background: var(--c-glacier); color: var(--c-ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--sp-7) 0; }

h1, h2, h3, h4, .display {
  font-family: var(--f-display);
  font-weight: 450;
  color: var(--c-fir);
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.9rem); letter-spacing: -0.022em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 1.45rem + 2.3vw, 3.15rem); letter-spacing: -0.018em; }
h3 { font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem); line-height: 1.2; }
h4 { font-size: 1.15rem; line-height: 1.3; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; }

.lede { font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.35rem); line-height: 1.55; color: var(--c-ink); max-width: 38em; }
.muted { color: var(--c-stone); }
.small { font-size: var(--s-sm); }
.measure { max-width: var(--measure); }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* field label: mono, small caps-like, with the summit marker */
.eyebrow, .label {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-signal-deep);
}
.eyebrow { display: inline-flex; align-items: flex-start; gap: 0.7em; margin: 0 0 1.4rem; line-height: 1.5; }
.eyebrow::before {
  content: ""; width: 0.72em; height: 0.62em; flex: none; margin-top: 0.38em;
  background: var(--c-fir);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.label { color: var(--c-stone); letter-spacing: 0.1em; }

/* ------------------------------------------------------------ layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: clamp(20px, 5vw, 48px); }
.container--narrow { max-width: 860px; }
.section { position: relative; padding-block: clamp(72px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--paper2 { background: var(--c-paper-2); }
.section--glacier { background: var(--c-glacier); }
.section--fir { background: var(--c-fir); color: var(--c-paper); }
.section--fir h1, .section--fir h2, .section--fir h3 { color: var(--c-paper); }
.section--fir .eyebrow { color: var(--c-larch); }
.section--fir .eyebrow::before { background: var(--c-larch); }
.section--fir .muted, .section--fir .label { color: var(--c-glacier); }
.section--fir a:not(.btn) { color: var(--c-paper); }
.section--rule { border-top: 1px solid var(--c-line); }

.grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.stack > * + * { margin-top: var(--sp-5); }
.stack > .quote { padding-top: 28px; margin-top: 32px; border-top: 1px solid var(--c-line); }
.stack > .figure + .quote { border-top: 0; padding-top: 4px; }
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p:not(.eyebrow) { color: var(--c-ink); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--rev, .split--even { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.topo { position: relative; isolation: isolate; overflow: hidden; }
/* contour texture: ink-coloured line art behind the content; inverted to white on Fir */
.topo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("img/contours-wide.svg") center / cover no-repeat;
  opacity: var(--topo-opacity, 0.08);
}
.topo--band::before { background-image: url("img/contours-band.svg"); }
.topo--tall::before { background-image: url("img/contours-tall.svg"); }
.section--fir.topo::before { filter: brightness(0) invert(1); opacity: var(--topo-opacity, 0.1); }
.hero.topo::before, .page-hero.topo::before {
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 98%);
          mask-image: linear-gradient(to bottom, #000 45%, transparent 98%);
}
.sticky { position: sticky; top: 110px; }
@media (max-width: 960px) { .sticky { position: static; } }

/* ------------------------------------------------------------ mockup notice */
.mock-note {
  background: var(--c-ink); color: var(--c-glacier);
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  text-align: center; padding: 7px 16px; line-height: 1.4;
}
.mock-note a { color: var(--c-paper); }

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--c-paper) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); }
.nav a:not(.btn) {
  color: var(--c-ink); text-decoration: none; font-size: 0.97rem; font-weight: 500;
  padding: 6px 0; border-bottom: 1.5px solid transparent;
}
.nav a:not(.btn):hover { color: var(--c-fir); border-bottom-color: var(--c-line); }
.nav a[aria-current="page"] { color: var(--c-fir); border-bottom-color: var(--c-signal); }
.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 1px solid var(--c-line); border-radius: var(--r-sm);
    font: 500 0.9rem var(--f-text); color: var(--c-fir); padding: 9px 14px; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; }
  .nav-toggle span::before { top: -5px; } .nav-toggle span::after { top: 5px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-paper); border-bottom: 1px solid var(--c-line);
    padding: 8px clamp(20px, 5vw, 48px) 24px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--c-line); font-size: 1.05rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--c-line); box-shadow: inset 3px 0 0 var(--c-signal); padding-left: 12px; }
  .nav .btn { margin-top: 18px; justify-content: center; }
  .brand img { height: 38px; }
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font: 500 1rem/1.2 var(--f-text); letter-spacing: 0.005em;
  padding: 0.95em 1.4em; border-radius: var(--r-sm);
  background: var(--c-fir); color: var(--c-paper); border: 1.5px solid var(--c-fir);
  text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--c-fir-2); border-color: var(--c-fir-2); color: var(--c-paper); }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.cv-download .btn:hover .arrow { transform: translateY(2px); }   /* the CV download arrow points down */
.btn--ghost { background: transparent; color: var(--c-fir); border-color: var(--c-fir); }
.btn--ghost:hover { background: var(--c-fir); color: var(--c-paper); }
.btn--light { background: var(--c-paper); color: var(--c-fir); border-color: var(--c-paper); }
.btn--light:hover { background: var(--c-glacier); border-color: var(--c-glacier); color: var(--c-fir); }
.btn--line-light { background: transparent; color: var(--c-paper); border-color: color-mix(in srgb, var(--c-paper) 55%, transparent); }
.btn--line-light:hover { background: var(--c-paper); color: var(--c-fir); border-color: var(--c-paper); }
.btn--sm { padding: 0.7em 1.05em; font-size: 0.93rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow { font-weight: 500; text-decoration: none; display: inline-flex; gap: 0.45em; align-items: baseline; }
.link-arrow::after { content: "\2192"; transition: transform 0.15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-out::after { content: "\2197"; }

/* ------------------------------------------------------------ hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 80px); }
.hero + .section--tight { padding-top: 0; }
.hero .split { align-items: center; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.hero h1 { margin-bottom: 0.4em; }
.hero .lede { margin-bottom: 1.6em; }
.byline { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--c-stone); margin-top: 28px; line-height: 1.7; }
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(40px, 5vw, 72px); }
.page-hero h1 { max-width: 15em; }
.page-hero .lede { margin-top: 0.4em; }
@media (max-width: 960px) {
  .hero .split { grid-template-columns: 1fr; }
  .hero figure { max-width: 520px; }
}
@media (max-width: 480px) {
  .hero .btn-row .btn, .page-hero .btn-row .btn, .cta-band .btn-row .btn { width: 100%; justify-content: center; }
}

/* ------------------------------------------------------------ figures */
figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--r-sm); background: var(--c-paper-2); }
.figure figcaption, .caption {
  font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--c-stone);
  margin-top: 12px; display: flex; gap: 0.8em; line-height: 1.5;
}
.figure figcaption b { color: var(--c-signal-deep); font-weight: 500; white-space: nowrap; }
.figure--frame { position: relative; padding: 14px; }
.figure--frame::before {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--c-line); border-radius: var(--r-md); pointer-events: none;
}
.figure--frame .corner { position: absolute; font-family: var(--f-mono); font-size: 0.62rem; color: var(--c-stone); letter-spacing: 0.08em; background: var(--c-paper); padding: 0 6px; }
.figure--frame .corner--tl { top: -0.55em; left: 18px; }
.figure--frame .corner--br { bottom: 2.2em; right: 18px; }
.ratio-45 img { aspect-ratio: 4 / 5; object-fit: cover; }
.ratio-32 img { aspect-ratio: 3 / 2; object-fit: cover; }
.ratio-169 img { aspect-ratio: 16 / 9; object-fit: cover; }

/* ------------------------------------------------------------ ledger (stat band) */
.ledger { --lp: clamp(12px, 2vw, 28px); --col: calc(25cqi - 2 * var(--lp)); container-type: inline-size;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.ledger > div { padding: 28px var(--lp) 30px; border-left: 1px solid var(--c-line); }
.ledger > div:first-child { border-left: 0; padding-left: 0; }
/* each figure is exactly two lines - the figure, then its label - in one size for all four, scaled to the
   column (--col) and sized for the longest pair: "7 companies" and "Outstanding teaching & research" */
.ledger .num { font-family: var(--f-display); font-size: clamp(1.6rem, calc(var(--col) * 0.17), 3.2rem); line-height: 1.05; color: var(--c-fir); letter-spacing: -0.02em; font-variant-numeric: lining-nums; white-space: nowrap; }
.ledger .num small { font-size: 0.5em; letter-spacing: 0; }
.ledger p { margin: 12px 0 0; font-size: clamp(0.8rem, calc(var(--col) * 0.06), 1rem); color: var(--c-stone); line-height: 1.35; text-wrap: balance; }
@media (max-width: 1100px) {
  .ledger { --col: calc(50cqi - 2 * var(--lp)); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .ledger > div:nth-child(n+3) { border-top: 1px solid var(--c-line); }
}
@media (max-width: 560px) {
  .ledger { --col: 100cqi; grid-template-columns: 1fr; }
  .ledger .num { font-size: clamp(1.6rem, calc(var(--col) * 0.17), 2.75rem); }
  .ledger > div { border-left: 0; padding: 22px 0 24px; }
  .ledger > div + div { border-top: 1px solid var(--c-line); }
}

/* ------------------------------------------------------------ problem columns */
.facet { border-top: 2px solid var(--c-fir); padding-top: 22px; }
.facet .label { display: block; margin-bottom: 14px; color: var(--c-stone); }
.facet h3 { margin-bottom: 0.45em; }
.facet p { color: var(--c-ink); margin: 0; }

/* ------------------------------------------------------------ engagement cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-md);
  padding: 28px 26px 26px; text-decoration: none; color: var(--c-ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.section--paper2 .card { background: var(--c-paper); }
a.card:hover { border-color: var(--c-fir); transform: translateY(-2px); box-shadow: 0 10px 30px -18px rgba(23, 36, 31, 0.45); color: var(--c-ink); }
.card .label { margin-bottom: 18px; }
.card h3 { margin-bottom: 0.45em; }
.card p { margin: 0 0 1.2em; }
.card .meta { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--c-line); font-size: 0.88rem; color: var(--c-stone); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card .meta .go { color: var(--c-signal-deep); font-weight: 500; white-space: nowrap; }
.card--quiet { background: transparent; border-style: dashed; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ route (process) */
.route { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.route::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: 13px; height: 0;
  border-top: 2px dashed color-mix(in srgb, var(--c-fir) 45%, transparent);
}
.route li { position: relative; padding-top: 52px; }
.route li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 26px;
  background: var(--c-fir); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.route li:last-child::before { background: var(--c-signal); }
.route .label { display: block; margin-bottom: 10px; }
.route h3 { font-size: 1.35rem; margin-bottom: 0.4em; }
.route p { margin: 0; }
@media (max-width: 860px) {
  .route { grid-template-columns: 1fr; gap: 34px; padding-left: 48px; }
  .route::before { left: 13px; right: auto; top: 14px; bottom: 14px; height: auto; border-top: 0; border-left: 2px dashed color-mix(in srgb, var(--c-fir) 45%, transparent); }
  .route li { padding-top: 0; }
  .route li::before { left: -48px; top: 2px; }
}

/* ------------------------------------------------------------ quotes */
.quote { margin: 0; }
.quote blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); line-height: 1.38; color: var(--c-fir); font-weight: 400; }
.quote blockquote::before { content: "\201C"; color: var(--c-signal); margin-right: 0.05em; }
.quote blockquote::after { content: "\201D"; color: var(--c-signal); margin-left: 0.03em; }
.quote figcaption { margin-top: 18px; font-size: 0.92rem; line-height: 1.45; }
.quote figcaption strong { display: block; color: var(--c-ink); }
.quote figcaption span { color: var(--c-stone); }
.quote--big blockquote { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.22; letter-spacing: -0.01em; }

.quotes-masonry { columns: 3 300px; column-gap: 24px; }
.quotes-masonry .quote {
  break-inside: avoid; margin: 0 0 24px; padding: 26px 24px 22px;
  background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-md);
}
.quotes-masonry .quote blockquote { font-size: 1.12rem; line-height: 1.5; }

/* ------------------------------------------------------------ engagement detail */
.engagement { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); padding-block: clamp(44px, 6vw, 72px); border-top: 1px solid var(--c-line); }
.engagement:first-of-type { border-top: 0; }
.engagement .who { font-size: 0.98rem; color: var(--c-stone); margin-top: 0.4em; }
.engagement h2 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); line-height: 1.15; margin-bottom: 0.3em; }
.engagement dl { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 14px 24px; margin: 0; }
.engagement dt { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-fir); padding-top: 0.25em; }
.engagement dd { margin: 0; }
.engagement dd ul { margin: 0; padding-left: 1.1em; }
.engagement dd li + li { margin-top: 0.3em; }
@media (max-width: 860px) {
  .engagement { grid-template-columns: 1fr; }
  .engagement dl { grid-template-columns: 1fr; gap: 6px; }
  .engagement dd { margin-bottom: 12px; }
}

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a { font-size: 0.9rem; text-decoration: none; color: var(--c-fir); border: 1px solid var(--c-line); border-radius: 999px; padding: 7px 14px; background: var(--c-paper); }
.jump a:hover { border-color: var(--c-fir); }

/* ------------------------------------------------------------ pricing */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.price {
  border: 1px solid color-mix(in srgb, var(--c-paper) 25%, transparent); border-radius: var(--r-md);
  padding: 30px 28px; background: color-mix(in srgb, var(--c-fir-2) 55%, transparent);
}
.price .label { color: var(--c-glacier); }
.price .amount { font-family: var(--f-display); font-size: clamp(2.4rem, 2rem + 1.6vw, 3.3rem); line-height: 1; margin: 16px 0 8px; color: var(--c-paper); letter-spacing: -0.02em; }
.price .amount small { font-family: var(--f-text); font-size: 1rem; letter-spacing: 0; color: var(--c-glacier); margin-left: 6px; }
.price p { margin: 12px 0 0; color: var(--c-glacier); }
.terms { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; font-size: 0.95rem; color: var(--c-glacier); }
.terms div { border-top: 1px solid color-mix(in srgb, var(--c-paper) 25%, transparent); padding-top: 14px; }
.terms strong { color: var(--c-paper); display: block; margin-bottom: 4px; font-weight: 500; }
@media (max-width: 760px) { .price-grid, .terms { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .price .amount small { display: block; margin: 10px 0 0; } }

/* ------------------------------------------------------------ timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--c-line); }
.timeline li { position: relative; display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 20px; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--c-paper); border: 1.5px solid var(--c-fir); }
.timeline li.now::before { background: var(--c-signal); border-color: var(--c-signal); }
.timeline .when { font-family: var(--f-mono); font-size: 0.8rem; color: var(--c-stone); padding-top: 0.2em; letter-spacing: 0.02em; }
.timeline h3 { margin: 0 0 0.2em; font-size: 1.2rem; }
.timeline p { margin: 0; color: var(--c-stone); font-size: 0.97rem; }
@media (max-width: 620px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--c-line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
.facts li span:last-child { font-family: var(--f-mono); font-size: 0.82rem; color: var(--c-stone); }

/* ------------------------------------------------------------ papers */
.papers { list-style: none; margin: 0; padding: 0; }
.papers li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 20px; padding: 26px 0; border-top: 1px solid var(--c-line); }
.papers .year { font-family: var(--f-mono); color: var(--c-stone); font-size: 0.85rem; padding-top: 0.35em; }
.papers h2 { font-size: 1.35rem; line-height: 1.25; margin-bottom: 0.3em; }
.papers h2 a { color: var(--c-fir); text-decoration: none; }
.papers h2 a:hover { text-decoration: underline; }
.papers .venue { font-style: italic; margin: 0 0 0.3em; }
.papers .with { font-size: 0.93rem; color: var(--c-stone); margin: 0 0 0.6em; }
.papers .abs { margin: 0 0 0.6em; }
@media (max-width: 620px) { .papers li { grid-template-columns: 1fr; gap: 6px; } }

/* ------------------------------------------------------------ principles */
.principles { counter-reset: p; list-style: none; padding: 0; margin: 0; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 20px; padding: 28px 0; border-top: 1px solid var(--c-line); }
.principles li::before { content: counter(p, decimal-leading-zero); font-family: var(--f-mono); color: var(--c-stone); font-size: 0.85rem; padding-top: 0.5em; }
.principles h3 { margin-bottom: 0.35em; }
.principles p { margin: 0; max-width: 40em; }

.nots { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.nots li { display: flex; gap: 14px; align-items: baseline; }
.nots li::before { content: "\2715"; color: var(--c-signal-deep); font-size: 0.8em; flex: none; }

/* ------------------------------------------------------------ callout */
.callout { border: 1px solid var(--c-line); border-radius: var(--r-md); padding: clamp(24px, 3vw, 36px); background: var(--c-paper); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
.callout img { width: 56px; }
.callout h3 { margin-bottom: 0.35em; }
.callout p:last-child { margin-bottom: 0; }
@media (max-width: 620px) { .callout { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ video facade */
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--c-ink); border: 0; padding: 0; cursor: pointer; color: var(--c-paper); }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.78; transition: opacity 0.2s ease, transform 0.4s ease; }
.video:hover img { opacity: 0.68; transform: scale(1.01); }
.video::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(transparent, rgba(23, 36, 31, 0.88)); pointer-events: none; }
.video .play { z-index: 1; position: absolute; left: clamp(18px, 3vw, 32px); bottom: clamp(18px, 3vw, 32px); display: inline-flex; align-items: center; gap: 14px; font: 500 1rem var(--f-text); text-align: left; }
.video .play i { width: 58px; height: 58px; border-radius: 50%; background: var(--c-paper); display: grid; place-items: center; flex: none; }
.video .play i::after { content: ""; width: 0; height: 0; border-left: 16px solid var(--c-fir); border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.video .play small { display: block; font: 400 0.78rem var(--f-mono); letter-spacing: 0.04em; color: var(--c-glacier); margin-top: 3px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------ contact */
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-card { border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 32px 30px; background: var(--c-paper); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.contact-card h2 { font-size: 1.9rem; margin: 0; }
.contact-card p { margin: 0; }
.contact-card .btn { margin-top: auto; }
.email-big { font-family: var(--f-display); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); color: var(--c-fir); text-decoration: none; border-bottom: 1px solid var(--c-line); word-break: break-word; }
.email-big:hover { border-color: var(--c-signal); color: var(--c-fir); }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--c-line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 1.15em; width: 12px; height: 10px; background: var(--c-fir); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* ------------------------------------------------------------ prose (legal pages) */
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose p, .prose li { font-size: 1.02rem; }
.draft-flag { display: inline-block; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-signal-deep); border: 1px solid currentColor; border-radius: 3px; padding: 3px 8px; margin-bottom: 18px; }

/* ------------------------------------------------------------ CTA band */
.cta-band h2 { max-width: 14em; }
.cta-band .lede { color: var(--c-glacier); }
.cta-band .split { align-items: end; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--c-ink); color: var(--c-glacier); padding-block: 64px 36px; font-size: 0.95rem; }
.site-footer a { color: var(--c-paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--c-paper); }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px; padding-bottom: 44px; border-bottom: 1px solid color-mix(in srgb, var(--c-paper) 16%, transparent); }
.footer-top img { height: 48px; width: auto; margin-bottom: 20px; }
.footer-top p { max-width: 30em; color: var(--c-glacier); }
.footer-top h2 { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-larch); margin: 6px 0 16px; font-weight: 500; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-top: 24px; font-size: 0.84rem; color: color-mix(in srgb, var(--c-glacier) 85%, transparent); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-top > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ skip link */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--c-fir); color: var(--c-paper); padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; color: var(--c-paper); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .mock-note, .site-footer, .video { display: none; }
  body { background: #fff; }
}

/* ------------------------------------------------------------ Swiss footer row */
.footer-swiss {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px;
  padding: 22px 0; border-bottom: 1px solid color-mix(in srgb, var(--c-paper) 16%, transparent); font-size: 0.92rem;
}
.footer-swiss .based { display: inline-flex; align-items: center; gap: 10px; color: var(--c-paper); font-weight: 500; }
.footer-swiss .reach { font-family: var(--f-text); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-mint); }
.swiss-flag { width: 18px; height: 18px; flex: none; display: block; }

/* ------------------------------------------------------------ identity: North arrow 08, Codex colours */
h1, h2, h3, h4, .display { font-weight: 400; letter-spacing: -0.02em; line-height: 1.08; }
h1 { letter-spacing: -0.03em; line-height: 1.03; }
h3 { font-weight: 500; letter-spacing: -0.012em; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--c-teal); }
.lede { color: #2A3D42; }
.eyebrow, .label { font-family: var(--f-text); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.08em; }
.eyebrow { color: var(--c-teal); gap: 0.6em; }
.eyebrow::before { clip-path: none; width: 0.9em; height: 0.9em; margin-top: 0.24em; background: var(--c-bronze);
  -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
.label { color: var(--c-stone); }
.facet { border-top: 2px solid var(--c-ink); }
.facet .label { color: var(--c-teal); }
.byline { font-family: var(--f-text); letter-spacing: 0; font-size: 0.88rem; }
.figure figcaption, .caption { font-family: var(--f-text); letter-spacing: 0; font-size: 0.82rem; }
.figure figcaption b { color: var(--c-ink); font-weight: 600; }
.figure img { border-radius: var(--r-md); }
.figure--frame::before { border-color: var(--c-sand); }

/* buttons: the one solid use of teal */
.btn { background: var(--c-teal); border-color: var(--c-teal); color: #fff; }
.btn:hover { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-ink); color: var(--c-paper); }

/* header: the business card's one-line lockup */
/* 25% larger on Ken's note of 20.10.2026 (was 28px and 0.875rem) */
.brand { align-items: center; gap: 17px; color: var(--c-ink); text-decoration: none; }
.brand img { height: 35px; width: auto; }
.brand span { font-family: var(--f-text); font-weight: 500; font-size: 1.094rem; line-height: 1; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; }
.brand:hover { color: var(--c-ink); }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--c-teal); }
.nav .btn { white-space: nowrap; }
@media (max-width: 1240px) { .brand { gap: 14px; } .brand img { height: 31px; } .brand span { font-size: 0.95rem; letter-spacing: 0.14em; } }
@media (max-width: 1100px) { .brand img { height: 32px; } .brand span { font-size: 1.094rem; letter-spacing: 0.18em; } }
@media (max-width: 700px) { .brand { gap: 12px; } .brand img { height: 27px; } .brand span { font-size: 0.875rem; letter-spacing: 0.16em; } }
@media (max-width: 560px) { .brand { gap: 10px; } .brand img { height: 22px; } .brand span { font-size: 0.72rem; letter-spacing: 0.13em; } }
@media (max-width: 420px) { .nav-toggle { font-size: 0; gap: 0; padding: 12px; } }

/* bands: paper and a light grey; ink only for the pricing block; teal never fills a band */
.section--band { background: var(--c-band); }
.section--band .card, .section--band .quote, .section--band .price-card { background: var(--c-paper); }
.cta-band .lede { color: #2A3D42; }
.section--fir { background: var(--c-ink); }
.topo::before { opacity: var(--topo-opacity, 0.1); }
.section--fir.topo::before { filter: brightness(0) invert(1); opacity: 0.07; }
.price .label { color: var(--c-mint); }
.price { background: rgba(255, 255, 255, 0.05); border-color: rgba(245, 242, 234, 0.2); }

.quote blockquote { font-weight: 400; letter-spacing: -0.012em; color: var(--c-ink); }
.quote blockquote::before, .quote blockquote::after { color: var(--c-bronze); }
.quotes-masonry .quote { background: #FBF9F4; }
.ledger .num { font-weight: 400; letter-spacing: -0.035em; color: var(--c-teal); }
.ledger .num small { color: var(--c-stone); }
.ledger p b { font-weight: 500; color: var(--c-ink); }
.card .label { color: var(--c-teal); }
a.card:hover { border-color: var(--c-teal); }
.engagement dt { font-family: var(--f-text); font-weight: 500; letter-spacing: 0.08em; color: var(--c-teal); }
.timeline .when, .papers .year, .principles li::before { font-family: var(--f-text); color: var(--c-teal); }
.timeline li::before { border-color: var(--c-ink); }
.timeline li.now::before { background: var(--c-bronze); border-color: var(--c-bronze); }
.route::before { border-top: 2px dotted var(--c-sand); }
.route li::before { clip-path: none; width: 26px; height: 26px; background: var(--c-ink);
  -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
.route li:last-child::before { background: var(--c-bronze); }
@media (max-width: 860px) { .route::before { border-top: 0; border-left: 2px dotted var(--c-sand); } }
.checklist li::before { clip-path: none; width: 13px; height: 13px; top: 1.05em; background: var(--c-bronze);
  -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
.jump a { border-color: var(--c-sand); }
.jump a:hover { border-color: var(--c-teal); }

/* footer: ink with a bronze rule, the one-line lockup in mint as on the card */
.site-footer { background: var(--c-ink); border-top: 4px solid var(--c-bronze); }
.footer-top h2 { font-family: var(--f-text); font-weight: 500; letter-spacing: 0.08em; color: var(--c-mint); }
@media (min-width: 861px) { .footer-top { grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 2fr) auto; } }
.section--band.topo::before { opacity: var(--topo-opacity, 0.08); }
.brand-line { display: flex; align-items: center; gap: 12px; margin: 4px 0 22px; }
.footer-top .brand-line img { height: 26px; width: auto; margin: 0; }
.brand-line span { font-family: var(--f-text); font-weight: 500; font-size: 0.8rem; line-height: 1; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-mint); }
.mock-note { font-family: var(--f-text); }
.video .play small { font-family: var(--f-text); }

/* ------------------------------------------------------------ scroll reveals (site.js marks the elements and adds .motion) */
@keyframes kya-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes kya-veil {
  from { opacity: 0; transform: translateY(14px); clip-path: inset(-0.4em -0.3em 96% -0.3em); }
  to { opacity: 1; transform: none; clip-path: inset(-0.4em -0.3em -0.4em -0.3em); }
}
html.motion [data-reveal]:not(.is-in), html.motion [data-reveal="cascade"]:not(.is-in) > * { opacity: 0; }
html.motion [data-reveal="cascade"]:not(.is-in) { opacity: 1; }
html.motion [data-reveal="rise"].is-in { animation: kya-rise 0.8s cubic-bezier(.25, .72, .3, 1) var(--d, 0ms) backwards; }
html.motion [data-reveal="veil"].is-in { animation: kya-veil 0.9s cubic-bezier(.25, .72, .3, 1) var(--d, 0ms) backwards; }
html.motion [data-reveal="cascade"].is-in > * { animation: kya-rise 0.7s cubic-bezier(.25, .72, .3, 1) calc(var(--d, 0ms) + var(--i, 0) * 110ms) backwards; }
