/* Our story: a chaptered reading site for Pulp's investors, advisors and friends.
   Tokens follow the main site (Pulp Brand Kit v7): newsprint, noir, halftone, highlighter. */
@font-face { font-family: 'Milly'; src: url(/ourstory/assets/fonts/millysfont-regular.6cda677fba.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Libre Franklin'; src: url(/fonts/libre-franklin-variable.52e605852c.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ground: #F0F0EC;
  --type: #191A19;
  --muted: #565752;
  --line: #D0D0CC;
  --band: #E7E7E4;
  --card: #FFFFFF;
  --feature: #372F5C;
  --feature-type: #F0F0EC;
  --feature-muted: #E7E3F6;
  --thread: #5B4E9A;
  --ink-field: #372F5C;
  --hl: #E6F21A;
  --hl-type: #191A19;
  --bar: rgba(240, 240, 236, 0.82);
  --f: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --frame: 1180px;
  --col: 680px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #191A19; --type: #F0F0EC; --muted: #A9AAA5; --line: #3A3B3A; --band: #232423; --card: #212221;
    --feature: #372F5C; --feature-type: #F0F0EC; --feature-muted: #E7E3F6; --thread: #8E82C8; --ink-field: #E7E3F6;
    --bar: rgba(25, 26, 25, 0.82); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #191A19; --type: #F0F0EC; --muted: #A9AAA5; --line: #3A3B3A; --band: #232423; --card: #212221;
  --feature: #372F5C; --feature-type: #F0F0EC; --feature-muted: #E7E3F6; --thread: #8E82C8; --ink-field: #E7E3F6;
  --bar: rgba(25, 26, 25, 0.82); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--type); font-family: var(--f); font-size: 19px; line-height: 1.6; font-synthesis: none; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--thread); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--hl); color: var(--hl-type); }
.os-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--type); color: var(--ground); padding: 10px 14px; border-radius: 6px; }
.os-skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

.os-wrap { max-width: var(--frame); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.os-col { max-width: var(--col); }
.os-label { margin: 0; font-size: 12.5px; line-height: 1.3; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.os-muted { color: var(--muted); }
.os-balance { text-wrap: balance; }
.os-pretty { text-wrap: pretty; }

/* Top bar */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--ground); z-index: 60; }
.os-bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bar); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.os-bar__in { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.os-mark { display: inline-flex; color: var(--type); }
.os-mark svg { width: 76px; height: auto; }
.os-bar__title { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.os-bar__title a { text-decoration: none; }
.os-bar__sp { flex: 1; }
.os-bar__count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.os-bar__toc { font-size: 14px; font-weight: 700; text-decoration: none; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.os-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--thread); }
@media (max-width: 560px) { .os-bar__title { display: none; } }

/* Chapter opener */
.os-open { position: relative; overflow: hidden; background: var(--feature); color: var(--feature-type); }
.os-open__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px; align-items: center; padding-block: 72px 80px; }
.os-open__text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.os-open .os-label { color: var(--feature-muted); }
.os-num { font-size: clamp(64px, 10vw, 128px); line-height: 0.82; font-weight: 900; letter-spacing: -0.05em; color: var(--feature-muted); opacity: 0.55; font-variant-numeric: tabular-nums; }
.os-h1 { margin: 0; font-size: clamp(46px, 7.4vw, 104px); line-height: 1.02; font-weight: 880; letter-spacing: -0.045em; text-wrap: balance; }
.os-dek { margin: 0; max-width: 34ch; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.42; font-weight: 300; color: var(--feature-muted); text-wrap: pretty; }
.os-open__art { min-width: 0; display: flex; justify-content: center; }
.os-field { display: block; width: 100%; height: auto; }
.os-open--ink { background: #191A19; }
.os-open--paper { background: var(--ground); color: var(--type); }
.os-open--paper .os-label, .os-open--paper .os-dek { color: var(--muted); }
.os-open--paper .os-num { color: var(--thread); }

/* Prose */
.os-prose { padding-block: 72px 24px; }
.os-prose > * + * { margin-top: 22px; }
.os-prose h2 { margin: 56px 0 0; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.06; font-weight: 850; letter-spacing: -0.03em; text-wrap: balance; }
.os-prose h3 { margin: 40px 0 0; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.os-prose p, .os-prose li { text-wrap: pretty; }
.os-prose p { margin-bottom: 0; }
.os-prose ul, .os-prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 0; }
.os-lede { font-size: clamp(23px, 2.6vw, 29px); line-height: 1.42; font-weight: 300; letter-spacing: -0.01em; }
.os-pull { margin: 40px 0 8px; padding-top: 18px; border-top: 2px solid var(--type); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.14; font-weight: 850; letter-spacing: -0.025em; text-wrap: balance; }
.os-pull cite { display: block; margin-top: 14px; font-size: 15px; font-style: normal; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.os-quote { margin: 32px 0; padding: 28px 30px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.os-quote p { font-size: 21px; line-height: 1.5; font-weight: 400; }
.os-quote cite { display: block; margin-top: 14px; font-size: 15px; font-style: normal; font-weight: 700; color: var(--muted); }
.os-note { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Highlighter: one flat block behind one word, swept in when its section arrives */
.os-hl { background: linear-gradient(transparent 0 14%, var(--hl) 14% 92%, transparent 92%) no-repeat 0 0 / 100% 100%; color: var(--hl-type); padding: 0 0.16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.os-anim .os-hl { background-size: 0% 100%; transition: background-size 900ms var(--ease) 250ms; }
.os-anim .is-in .os-hl, .os-anim .os-hl.is-in { background-size: 100% 100%; }

/* Photographs */
.os-photo { position: relative; margin: 0; background: #191A19; color: #F0F0EC; overflow: hidden; }
.os-photo img { width: 100%; height: clamp(320px, 62vw, 720px); object-fit: cover; object-position: var(--focus, 50% 50%); }
.os-anim .os-photo img { transform: scale(1.06); transition: transform 2400ms var(--ease); }
.os-anim .os-photo.is-in img { transform: scale(1); }
.os-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.62)); }
.os-photo__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-block: 48px 20px; font-size: 16px; }
.os-photo__credit { font-size: 13px; opacity: 0.86; }

.os-plate { margin: 40px 0; display: flex; flex-direction: column; gap: 12px; }
.os-plate img { width: 100%; border-radius: 4px; filter: grayscale(1) contrast(1.04); }
.os-plate figcaption { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; font-size: 15px; line-height: 1.45; }
.os-plate__no { grid-row: span 2; font-size: 22px; font-weight: 850; color: var(--thread); font-variant-numeric: tabular-nums; }
.os-plate__src { font-size: 13px; color: var(--muted); }
.os-plate--wide { margin-inline: auto; }
@media (min-width: 1100px) { .os-plate--bleed { margin-left: -120px; margin-right: -120px; } }

/* Grids and cards */
.os-band { background: var(--band); }
.os-section { padding-block: 80px; }
.os-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 260px), 100%), 1fr)); gap: var(--gap, 20px); }
.os-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.os-card h3 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.os-card p { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--muted); }
.os-card--ink { background: #191A19; color: #F0F0EC; border-color: #191A19; }
.os-card--ink p { color: #C9C9C5; }
.os-card--feature { background: var(--feature); color: var(--feature-type); border-color: var(--feature); }
.os-card--feature p { color: var(--feature-muted); }
a.os-card { text-decoration: none; transition: transform 240ms var(--ease), border-color 240ms var(--ease); }
a.os-card:hover { transform: translateY(-3px); border-color: var(--thread); }

/* Contents */
.os-toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.os-toc a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: baseline; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: transform 240ms var(--ease), border-color 240ms var(--ease); }
.os-toc a:hover { transform: translateY(-3px); border-color: var(--thread); }
.os-toc__n { grid-row: span 2; font-size: 34px; line-height: 1; font-weight: 900; letter-spacing: -0.04em; color: var(--thread); font-variant-numeric: tabular-nums; }
.os-toc__t { font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.os-toc__d { font-size: 16px; line-height: 1.45; color: var(--muted); }

/* Facts strip */
.os-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--fmin, 200px), 100%), 1fr)); gap: 24px; border-top: 2px solid var(--type); padding-top: 24px; }
.os-fact b { display: block; white-space: nowrap; font-size: clamp(34px, 3.8vw, 48px); line-height: 1; font-weight: 900; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.os-fact span { display: block; margin-top: 8px; font-size: 15.5px; line-height: 1.4; color: var(--muted); }

/* Years */
.os-year { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px 48px; padding-block: 56px; border-top: 1px solid var(--line); }
.os-year__n { position: sticky; top: 88px; align-self: start; font-size: clamp(54px, 7vw, 92px); line-height: 0.9; font-weight: 900; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.os-year__body { display: flex; flex-direction: column; gap: 18px; max-width: var(--col); min-width: 0; }
.os-year__body h3 { margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; font-weight: 850; letter-spacing: -0.02em; text-wrap: balance; }
.os-year__body p { margin: 0; }
.os-qs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: q; }
.os-qs li { counter-increment: q; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; font-size: 18px; line-height: 1.45; }
.os-qs li::before { content: counter(q); font-weight: 800; color: var(--thread); font-variant-numeric: tabular-nums; }
.os-who { font-size: 15.5px; color: var(--muted); }
.os-who b { color: var(--type); }
@media (max-width: 760px) { .os-year { grid-template-columns: minmax(0, 1fr); } .os-year__n { position: static; } }

/* People */
.os-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(var(--pmin, 250px), 100%), 1fr)); gap: 16px; }
.os-person { scroll-margin-top: 84px; display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.os-person__name { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 21px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.os-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--dot, var(--line)); flex-shrink: 0; }
.os-person__role { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.os-person p { margin: 0; font-size: 16px; line-height: 1.5; }

/* Steps (Thinkwell flow) */
.os-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 0; border-top: 2px solid var(--type); counter-reset: s; }
.os-step { counter-increment: s; padding: 22px 20px 26px 0; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); }
.os-step::before { content: counter(s, decimal-leading-zero); font-size: 14px; font-weight: 800; color: var(--thread); font-variant-numeric: tabular-nums; }
.os-step b { font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
.os-step span { font-size: 16px; line-height: 1.5; color: var(--muted); }

/* The readout illustration */
.os-readout { display: flex; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.os-readout span { display: flex; align-items: center; padding: 0 14px; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; transition: flex-grow 1600ms var(--ease); }
.os-readout .v { background: var(--feature); color: var(--feature-type); }
.os-readout .i { background: #4A4B47; color: #F0F0EC; }
.os-readout .a { background: var(--band); color: var(--type); }
.os-readout .c { background: repeating-linear-gradient(135deg, var(--card) 0 6px, var(--band) 6px 12px); color: var(--muted); }

/* Letters */
.os-letter { position: relative; max-width: 760px; margin: 0 auto; padding: clamp(28px, 6vw, 72px); background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(0, 0, 0, 0.35); }
.os-letter p { margin: 0 0 18px; font-size: 19px; line-height: 1.65; }
.os-letter h3 { margin: 34px 0 14px; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--thread); }
.os-letter .os-sig { margin-top: 28px; font-size: 19px; line-height: 1.5; }
.os-letter .os-sig b { display: block; font-size: 22px; }
.os-letter__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.os-letter__head .os-mark svg { width: 90px; }
.os-field-slot { display: inline-block; min-width: 9ch; padding: 0 8px; border-bottom: 1.5px dashed var(--thread); color: var(--thread); font-weight: 600; font-size: 0.9em; line-height: 1.5; }
.os-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px 24px; margin: 8px 0 22px; padding: 18px 20px; background: var(--band); border-radius: 10px; }
.os-fields div { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.os-fields div span:last-child { color: var(--thread); font-weight: 700; font-size: 15px; }
.os-legal { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Pager and footer */
.os-pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; padding-block: 64px; }
.os-pager a { display: flex; flex-direction: column; gap: 6px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: var(--card); transition: transform 240ms var(--ease), border-color 240ms var(--ease); }
.os-pager a:hover { transform: translateY(-3px); border-color: var(--thread); }
.os-pager .next { text-align: right; background: var(--feature); color: var(--feature-type); border-color: var(--feature); }
.os-pager .next .os-label { color: var(--feature-muted); }
.os-pager b { font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
.os-foot { border-top: 1px solid var(--line); padding-block: 40px 56px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.os-foot__row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.os-foot .os-mark svg { width: 64px; }
.os-credits { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }

/* Buttons */
.os-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 12px; font-size: 17px; font-weight: 800; text-decoration: none; background: var(--feature-type); color: #191A19; transition: transform 240ms var(--ease); }
.os-btn:hover { transform: translateY(-2px); }
.os-btn svg { width: 18px; height: 18px; }

/* From the team: the story card on the cover */
.os-teamstory { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 18px 24px 18px 18px; background: #E7E3F6; color: #191A19; border-radius: 14px; text-decoration: none; transition: transform 240ms var(--ease); }
.os-teamstory:hover { transform: translateY(-3px); }
.os-teamstory img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 2px solid #191A19; box-shadow: 5px 5px 0 #1398D1; }
.os-teamstory__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.os-teamstory__k { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: #4A3F86; }
.os-teamstory b { font-size: clamp(21px, 2.4vw, 26px); line-height: 1.15; font-weight: 850; letter-spacing: -0.02em; }
.os-teamstory__d { font-size: 16px; line-height: 1.45; color: #4A4560; }
.os-teamstory__go svg { width: 28px; height: 28px; }
@media (max-width: 600px) { .os-teamstory { grid-template-columns: 64px minmax(0, 1fr); } .os-teamstory img { width: 64px; height: 64px; } .os-teamstory__go { display: none; } }

/* Milana's pages: her own corner of the site. Lilac graph paper, her blue (#1398D1), the brand highlighter,
   lowercase kickers and sticker chips. Same type and tokens as every other page. */
.mk {
  --ground: color-mix(in srgb, #E7E3F6 42%, #FFFFFF);
  --paper: #E7E3F6;
  --line: #D3CDE8;
  --band: #E7E3F6;
  --muted: #55506B;
  --card: #FFFFFF;
  --mk-ink: #372F5C;
  --mk-blue: #1398D1;
  --mk-grid: rgba(91, 78, 154, 0.14);
  --bar: color-mix(in srgb, #F4F2FB 84%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mk {
    --ground: color-mix(in srgb, #372F5C 30%, #191A19); --paper: color-mix(in srgb, #372F5C 62%, #191A19);
    --line: #403A58; --band: #2A2640; --muted: #B4AFC9; --card: color-mix(in srgb, #372F5C 26%, #212221);
    --mk-ink: #E7E3F6; --mk-grid: rgba(231, 227, 246, 0.075); --bar: color-mix(in srgb, #221F30 84%, transparent);
  }
}
:root[data-theme="dark"] .mk {
  --ground: color-mix(in srgb, #372F5C 30%, #191A19); --paper: color-mix(in srgb, #372F5C 62%, #191A19);
  --line: #403A58; --band: #2A2640; --muted: #B4AFC9; --card: color-mix(in srgb, #372F5C 26%, #212221);
  --mk-ink: #E7E3F6; --mk-grid: rgba(231, 227, 246, 0.075); --bar: color-mix(in srgb, #221F30 84%, transparent);
}
.mk-open, .mk-paper { background-color: var(--paper); background-image: linear-gradient(var(--mk-grid) 1px, transparent 1px), linear-gradient(90deg, var(--mk-grid) 1px, transparent 1px); background-size: 28px 28px; background-position: -1px -1px; }
.mk-open__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 64px 112px; }
@media (min-width: 900px) { .mk-open__in { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; } }
.mk-open__text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.mk-kicker { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 750; letter-spacing: 0.01em; color: var(--thread); }
.mk-kicker a { color: inherit; }
.mk-spark { color: var(--mk-blue); }
.mk-arrow { color: var(--mk-blue); font-weight: 800; }
.mk-h1 .os-hl { white-space: nowrap; }
.mk-h1 { margin: 0; font-size: clamp(48px, 7.2vw, 104px); line-height: 0.98; font-weight: 880; letter-spacing: -0.052em; text-wrap: balance; }
.mk-dek { margin: 0; max-width: 40ch; font-size: clamp(19px, 2vw, 23px); line-height: 1.45; font-weight: 400; color: var(--muted); text-wrap: pretty; }
.mk-chips { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.mk-chips li { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 1.5px solid var(--type); border-radius: 999px; background: var(--card); font-size: 15px; font-weight: 700; transform: rotate(-1.6deg); }
.mk-chips li:nth-child(2n) { transform: rotate(1.4deg); }
.mk-chips li:nth-child(3n) { transform: rotate(-0.6deg); }
.mk-portrait { position: relative; margin: 0 auto; width: min(440px, 84vw); }
.mk-portrait__frame { border: 2px solid var(--type); border-radius: 26px; overflow: hidden; box-shadow: 12px 12px 0 var(--mk-blue); transform: rotate(1.6deg); background: #E7E3F6; }
.mk-portrait__frame img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.mk-portrait figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 26px; padding-left: 6px; font-size: 15px; color: var(--muted); }
.mk-portrait figcaption b { font-size: 20px; color: var(--type); letter-spacing: -0.01em; }
.mk-sticker { position: absolute; top: -16px; left: -14px; padding: 10px 16px; border: 2px solid #191A19; border-radius: 999px; background: var(--mk-blue); color: #191A19; font-size: 16px; font-weight: 850; transform: rotate(-9deg); }
.os-anim .mk-portrait:not(.is-in) .mk-sticker { transform: rotate(-30deg) scale(0.4); opacity: 0; }
.mk-sticker { transition: transform 700ms cubic-bezier(0.3, 1.6, 0.5, 1) 500ms, opacity 300ms ease 500ms; }

.mk-tldr-wrap { position: relative; z-index: 2; margin-top: -56px; }
.mk-tldr { position: relative; max-width: 680px; margin: 0 auto; padding: 30px 28px 24px; background: var(--card); border: 2px solid var(--type); border-radius: 18px; box-shadow: 9px 9px 0 var(--thread); }
.mk-tldr__tag { position: absolute; top: -15px; left: 22px; margin: 0; padding: 3px 12px; border-radius: 999px; background: var(--type); color: var(--ground); font-size: 14px; font-weight: 850; letter-spacing: 0.02em; }
.mk-tldr ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; counter-reset: t; }
.mk-tldr li { counter-increment: t; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: baseline; font-size: 19px; line-height: 1.4; font-weight: 650; }
.mk-tldr li::before { content: counter(t, decimal-leading-zero); font-size: 14px; font-weight: 800; color: var(--mk-blue); padding-top: 3px; font-variant-numeric: tabular-nums; }

.mk-prose a { text-decoration-color: var(--mk-blue); text-decoration-thickness: 2px; }
.mk-note { display: block; margin: 0 0 10px; padding-left: 12px; border-left: 2px solid var(--mk-blue); font-size: 14px; line-height: 1.45; font-weight: 650; color: var(--thread); }
@media (min-width: 1180px) {
  .mk-note { float: right; clear: right; width: 210px; margin: 6px -250px 0 0; }
}
.mk-pull { margin: 52px 0 36px; font-size: clamp(36px, 5vw, 60px); line-height: 1.02; font-weight: 880; letter-spacing: -0.04em; text-wrap: balance; }
.mk-close { font-size: clamp(22px, 2.4vw, 27px); line-height: 1.4; font-weight: 650; letter-spacing: -0.01em; }
.mk-sign { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 16px; color: var(--muted); }
.mk-sign b { color: var(--type); }
.mk-circle { margin: 40px auto; max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.mk-circle figcaption { display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; line-height: 1.45; color: var(--muted); max-width: 34ch; }

.mk-paper { padding-block: 88px; margin-top: 56px; }
.mk-fig { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 48px; align-items: center; }
.mk-fig__art { display: flex; justify-content: center; min-width: 0; }
.mk-fig__text { display: flex; flex-direction: column; gap: 16px; max-width: 520px; min-width: 0; }
.mk-fig__text p { margin: 0; }
.mk-h2 { margin: 0; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.02; font-weight: 880; letter-spacing: -0.04em; text-wrap: balance; }

.mk-essaycard { display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin: 0 auto; padding: clamp(26px, 4vw, 40px); background: var(--feature); color: var(--feature-type); border: 2px solid var(--type); border-radius: 20px; box-shadow: 10px 10px 0 var(--mk-blue); text-decoration: none; transition: transform 240ms var(--ease), box-shadow 240ms var(--ease); }
.mk-essaycard:hover { transform: translate(-3px, -3px); box-shadow: 13px 13px 0 var(--mk-blue); }
.mk-essaycard .mk-kicker { color: var(--feature-muted); }
.mk-essaycard b { font-size: clamp(28px, 3.8vw, 46px); line-height: 1.04; font-weight: 880; letter-spacing: -0.035em; text-wrap: balance; }
.mk-essaycard__d { max-width: 52ch; font-size: 17.5px; line-height: 1.5; color: var(--feature-muted); }
.mk-essaycard__go { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 17px; font-weight: 800; color: var(--hl); }
.mk-essaycard__go svg { width: 20px; height: 20px; }

/* Milana's font: a type tester in her own hand */
.mk-font { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 980px) { .mk-font { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); column-gap: 56px; align-items: start; } }
.mk-font__play { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
@media (min-width: 980px) { .mk-font__play .mk-glyphs { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.mk-font__intro { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mk-font__intro p { margin: 0; }
.mk-type { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 22px 24px 20px; background: var(--card); border: 2px solid var(--type); border-radius: 20px; box-shadow: 10px 10px 0 var(--mk-blue); }
.mk-type__label { font-size: 14px; font-weight: 750; color: var(--thread); }
.mk-type__input { display: block; width: 100%; min-height: 2.6em; resize: vertical; margin: 0; padding: 10px 4px 6px; border: 0; border-bottom: 1.5px dashed var(--line); border-radius: 0; background: transparent; color: var(--mk-ink-type, var(--type)); font-family: 'Milly', var(--f); font-size: var(--mk-size, clamp(36px, 9vw, 64px)); line-height: 1.15; overflow: hidden; letter-spacing: 0.01em; caret-color: var(--mk-blue); outline: none; }
.mk-type__input:focus-visible { border-bottom-color: var(--mk-blue); }
.mk-type__input::selection { background: var(--hl); color: #191A19; }
.mk-type__controls { display: flex; flex-direction: column; gap: 12px; }
.mk-type__samples { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-type__samples button { min-height: 40px; padding: 0 14px; border: 1.5px solid var(--type); border-radius: 999px; background: var(--ground); color: var(--type); font: 700 14.5px/1 var(--f); cursor: pointer; transition: transform 200ms var(--ease); }
.mk-type__samples button:hover { transform: rotate(-2deg) translateY(-1px); }
.mk-type__tune { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.mk-type__size { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.mk-type__size input { width: min(220px, 48vw); accent-color: var(--mk-blue); }
.mk-type__inks { display: inline-flex; gap: 10px; }
.mk-type__inks button { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 2px solid var(--ground); background: var(--sw); box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; }
.mk-type__inks button.is-on { box-shadow: 0 0 0 2.5px var(--type); }
.mk-type__note { margin: 0; }
.mk-glyphs { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
@media (max-width: 600px) { .mk-glyphs { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; } .mk-glyphs li { font-size: 26px; border-radius: 10px; } }
.mk-glyphs li { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-family: 'Milly', var(--f); font-size: 34px; line-height: 1; transition: transform 220ms cubic-bezier(0.3, 1.6, 0.5, 1), background-color 220ms var(--ease), color 220ms var(--ease); }
.mk-glyphs li:hover { transform: scale(1.18) rotate(-4deg); background: var(--mk-blue); color: #191A19; }
.mk-font__credit { margin: 0; }

/* Milana's essay */
.mk-essay-open { display: flex; flex-direction: column; gap: 18px; padding-block: 72px 88px; }
.mk-bigq { margin: 18px 0 0; font-size: clamp(46px, 9vw, 128px); line-height: 1; font-weight: 900; letter-spacing: -0.055em; text-wrap: balance; }
.mk-circled { position: relative; display: inline-block; }
.mk-ring { position: absolute; left: -7%; top: -22%; width: 114%; height: 150%; overflow: visible; pointer-events: none; }
.mk-ring path { fill: none; stroke: var(--mk-blue); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1000; stroke-dashoffset: 0; }
.os-anim .mk-bigq .mk-ring path { stroke-dashoffset: 1000; transition: stroke-dashoffset 1400ms var(--ease) 400ms; }
.os-anim .mk-bigq.is-in .mk-ring path { stroke-dashoffset: 0; }
.mk-h1--essay { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -0.035em; max-width: 22ch; margin-top: 18px; }
.mk-meta { margin: 0; font-size: 15px; color: var(--muted); }
.mk-define { margin: 44px 0 !important; padding: 26px 28px; border-radius: 18px; background: var(--feature); color: var(--feature-type); font-size: clamp(21px, 2.3vw, 25px); line-height: 1.42; font-weight: 500; letter-spacing: -0.005em; box-shadow: 9px 9px 0 var(--mk-blue); }
.mk-define__tag { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 850; color: var(--hl); letter-spacing: 0.01em; }
.mk-plate img { filter: none; border-radius: 14px; }
.mk-plate figcaption { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .mk-plate--wide { margin-left: -120px; margin-right: -120px; } }
.mk-end { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 56px; align-items: center; }
.mk-end .mk-plate { margin: 0; }
.mk-end__text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.mk-end__text p { margin: 0; }
.mk-endq { font-size: clamp(38px, 5.4vw, 70px); line-height: 1.0; font-weight: 900; letter-spacing: -0.05em; text-wrap: balance; }

/* Reveal motion: content is visible at rest; motion only when scripts and motion preferences allow */
.os-anim [data-reveal] { transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.os-anim [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(18px); }
.os-anim [data-reveal="soft"]:not(.is-in) { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
@media print {
  .os-bar, .os-pager { display: none; }
  .os-open { background: none; color: inherit; }
}
