@font-face { font-family: 'Source Serif 4'; src: url('/fonts/serif.woff2') format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('/fonts/serif-italic.woff2') format('woff2'); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/fonts/hanken.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }

:root {
  --paper: #F3EEE4;
  --paper-2: #EAE3D5;
  --sheet: #FBF8F2;
  --ink: #15130F;
  --ink-2: rgba(21, 19, 15, .72);
  --ink-3: rgba(21, 19, 15, .55);
  --rule: rgba(21, 19, 15, .16);
  --oxide: #B8361C;
  --oxide-deep: #962A14;
  --u: 8px;
  --wrap: 1200px;
  --title: 'Source Serif 4', Georgia, serif;
  --body: 'Hanken Grotesk', -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'Hanken Grotesk', -apple-system, 'Segoe UI', Arial, sans-serif;
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .18' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .26 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper) var(--fibre); color: var(--ink); font: 400 18px/1.62 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h2 { font-family: var(--title); font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.015em; font-weight: 600; }
p { margin: 0 0 calc(var(--u) * 2); }
a { color: var(--ink); text-decoration-color: var(--oxide); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a:hover { color: var(--oxide-deep); }
.mono { font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.narrow { max-width: 860px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ink); color: var(--paper); padding: 8px 14px; }
:focus-visible { outline: 2px solid var(--oxide); outline-offset: 3px; }

.btn { display: inline-block; font: 600 16px/1 var(--body); color: var(--sheet); background: var(--ink); border: 1.5px solid var(--ink); padding: 15px 22px; border-radius: 2px; text-decoration: none; transition: background .2s, box-shadow .2s, transform .2s; cursor: pointer; }
.btn:hover { background: var(--oxide); border-color: var(--oxide); color: var(--sheet); transform: translateY(-1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-sm { padding: 10px 14px; font-size: 14px; }
.link-quiet { font-weight: 600; margin-left: 18px; }

/* Masthead */
.mast { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px clamp(16px, 4vw, 48px); background: rgba(243, 238, 228, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); transition: transform .35s ease; }
.mast.up { transform: translateY(-100%); }
.mark { text-decoration: none; display: flex; align-items: baseline; gap: 6px; }
.mark-b { font-family: var(--title); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.mark-ai { font-family: var(--body); font-size: 15px; font-weight: 500; color: var(--ink-2); }
.mast nav { display: flex; align-items: center; gap: clamp(12px, 2.6vw, 30px); }
.mast nav a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.mast nav a.on, .mast nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--oxide); }

/* The paper: first screen */
.paper { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "title fig" "rest fig"; grid-template-rows: auto 1fr; column-gap: clamp(24px, 4vw, 64px); align-items: start; max-width: 1440px; margin: 0 auto; padding: clamp(32px, 5vw, 72px) clamp(16px, 4vw, 48px) clamp(48px, 6vw, 88px); min-height: calc(100vh - 64px); }
.paper-title { grid-area: title; }
.paper-rest { grid-area: rest; }
.fig { grid-area: fig; align-self: center; }
.kicker { color: var(--ink-2); font-size: 15px; margin-bottom: 26px; }
.title { font-family: var(--title); font-weight: 650; font-size: clamp(44px, 5.1vw, 86px); line-height: .98; letter-spacing: -.02em; text-wrap: balance; }
.title em { font-style: italic; font-weight: 600; color: var(--oxide); }
.authors { margin: 26px 0 30px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 16px; color: var(--ink-2); font-style: italic; font-family: var(--title); }
.contents { list-style: none; margin: 0 0 32px; padding: 0; max-width: 620px; }
.contents a { display: grid; grid-template-columns: 26px auto 1fr auto; grid-template-areas: "n name dots p" ". what what what"; column-gap: 10px; align-items: baseline; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.c-num { grid-area: n; font-family: var(--mono); font-size: 12px; color: var(--oxide); }
.c-name { grid-area: name; font-family: var(--title); font-size: 26px; font-weight: 600; }
.c-dots { grid-area: dots; border-bottom: 1.5px dotted var(--ink-3); transform: translateY(-6px); transition: border-color .25s; }
.c-page { grid-area: p; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.c-what { grid-area: what; font-size: 15px; color: var(--ink-2); }
.contents a:hover .c-name { color: var(--oxide-deep); }
.contents a:hover .c-dots { border-color: var(--oxide); }
.paper-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* Fig. 1 */
.fig { margin: 0; }
.paper-rest .authors { margin-top: 30px; }
.fig-stage { position: relative; aspect-ratio: 1 / 1; background: var(--sheet); border: 1px solid var(--rule); box-shadow: 0 1px 0 rgba(21,19,15,.05), 0 30px 60px -36px rgba(60, 40, 20, .45); overflow: hidden; touch-action: pan-y; cursor: grab; }
.fig-stage:active { cursor: grabbing; }
.fig-stage::before { content: ''; position: absolute; inset: 14px; border: 1px solid var(--rule); pointer-events: none; z-index: 2; }
.fig-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fig-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; pointer-events: none; }
.no-gl .fig-still { opacity: 1; }
.fig-axis { position: absolute; left: 26px; bottom: 22px; color: var(--ink-3); z-index: 3; font-size: 13px; }
.fig-hint { position: absolute; right: 26px; top: 22px; color: var(--ink-3); z-index: 3; font-size: 13px; transition: opacity .5s; }
.fig-stage.touched .fig-hint { opacity: 0; }
.fig figcaption { margin-top: 14px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.fig figcaption b { color: var(--ink); margin-right: 6px; }
.red-key { color: var(--oxide); font-weight: 600; }

/* Sections */
section { padding: clamp(72px, 9vw, 128px) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-num { color: var(--oxide); margin-bottom: 10px; }
.sec-sub { color: var(--ink-2); margin-top: 16px; font-size: 19px; }
.results { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.result { padding: 26px 26px 30px 0; border-right: 1px solid var(--rule); }
.result + .result { padding-left: 26px; }
.result:last-child { border-right: 0; }
.result-meta { color: var(--ink-3); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tag { display: inline-block; font-family: var(--body); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--oxide); border: 1px solid var(--oxide); padding: 3px 7px; border-radius: 2px; margin: 0; }
.result-num { margin: 18px 0 14px; }
.big { display: block; font-family: var(--title); font-weight: 700; font-size: clamp(64px, 7vw, 104px); line-height: .9; letter-spacing: -.03em; }
.unit { display: block; font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.result h3 { font-family: var(--body); font-weight: 600; font-size: 19px; line-height: 1.35; }
.result h3 a { text-decoration: none; }
.result h3 a:hover { text-decoration: underline; text-decoration-color: var(--oxide); }
.more { margin-top: 36px; font-weight: 600; }

.inst-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.inst { display: flex; flex-direction: column; text-decoration: none; background: var(--sheet); border: 1px solid var(--rule); padding: 24px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.inst:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); border-color: var(--ink); color: var(--ink); }
.inst-fig { width: 100%; height: auto; display: block; margin-bottom: 18px; border-bottom: 1px solid var(--rule); padding-bottom: 14px; }
.inst-fig circle { fill: var(--ink); transition: transform .9s cubic-bezier(.2, .8, .2, 1), fill .3s; transform-box: fill-box; }
.inst-fig circle.hot { fill: var(--oxide); }
.inst-kind { color: var(--ink-3); margin-bottom: 6px; }
.inst h3 { font-family: var(--title); font-size: 38px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.inst-what { font-size: 16px; color: var(--ink-2); flex: 1; }
.inst-price { font-weight: 600; font-size: 15px; }
.inst-link { color: var(--oxide); margin: 0; }

.consult { background: var(--ink); color: var(--paper); }
.consult .sec-num { color: #E8775F; }
.consult-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.consult-list { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid rgba(243, 238, 228, .25); }
.consult-list li { font-family: var(--title); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.2; padding: 16px 0; border-bottom: 1px solid rgba(243, 238, 228, .25); }
.consult-how { color: rgba(243, 238, 228, .78); }
.consult .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.consult .btn:hover { background: var(--oxide); border-color: var(--oxide); color: var(--paper); box-shadow: 4px 4px 0 var(--paper); }

.author-lede { font-family: var(--title); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; margin-top: 20px; }

/* Inner pages */
.page-head { padding: clamp(56px, 7vw, 104px) 0 clamp(32px, 4vw, 56px); border-bottom: 2px solid var(--ink); }
.page-title { font-family: var(--title); font-weight: 700; font-size: clamp(60px, 9vw, 140px); line-height: .9; letter-spacing: -.03em; }
.page-lede { max-width: 760px; font-size: 21px; color: var(--ink-2); margin-top: 22px; }
.note-index { list-style: none; padding: 0; margin: 28px 0 0; columns: 2; column-gap: 40px; }
.note-index li { break-inside: avoid; margin-bottom: 12px; font-family: var(--body); font-size: 17px; line-height: 1.45; }
.note-index a { text-decoration: none; }
.note-index a:hover { color: var(--oxide-deep); }
.notes { padding-top: 24px; padding-bottom: 40px; }
.note { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 80px; }
.note-meta { color: var(--ink-3); line-height: 1.7; }
.note-num { margin-top: 18px; }
.note-body { max-width: 720px; }
.note-body h2 { font-size: clamp(28px, 3.2vw, 42px); margin-bottom: 22px; }
.note-body h3 { color: var(--oxide); margin: 22px 0 6px; font-family: var(--body); font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.note-source { color: var(--ink-3); font-family: var(--body); font-size: 15px; margin-top: 22px; padding-top: 12px; border-top: 1px dashed var(--rule); }
.cta-strip { padding: 48px 0; background: var(--sheet); border-top: 1px solid var(--rule); font-size: 20px; }

.products { padding-top: 32px; padding-bottom: 64px; }
.product { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 64px); align-items: center; padding: clamp(40px, 5vw, 72px) 0; border-bottom: 1px solid var(--rule); }
.product-fig { border: 1px solid var(--rule); background: var(--sheet); padding: 18px; }
.product h2 { margin-bottom: 14px; }
.product-what { font-size: 19px; color: var(--ink-2); }
.product-facts { display: grid; grid-template-columns: 70px 1fr; gap: 8px 16px; margin: 20px 0 26px; }
.product-facts dt { color: var(--ink-3); padding-top: 4px; }
.product-facts dd { margin: 0; font-weight: 500; }

.consult-page { display: grid; gap: 0; padding-bottom: 64px; }
.consult-page > section { padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--rule); }
.consult-page h2 { margin-bottom: 26px; }
.take-list { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 0 40px; margin: 0; }
.take-list dt { font-family: var(--title); font-size: 26px; font-weight: 600; padding: 18px 0; border-top: 1px solid var(--rule); }
.take-list dd { margin: 0; padding: 20px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
.how-steps { padding-left: 22px; max-width: 760px; }
.how-steps li { margin-bottom: 14px; }
.how-steps li::marker { font-family: var(--mono); color: var(--oxide); }
.note-line { color: var(--ink-2); }
.ask-form { display: grid; gap: 18px; max-width: 640px; }
.ask-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 16px; }
.ask-form .opt { font-weight: 400; color: var(--ink-3); }
.ask-form input, .ask-form textarea, .ask-form select { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; background: var(--sheet); border: 1.5px solid rgba(21, 19, 15, .3); border-radius: 2px; color: var(--ink); }
.ask-form input:focus, .ask-form textarea:focus, .ask-form select:focus { border-color: var(--ink); outline: 2px solid var(--oxide); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.errors { border: 1.5px solid var(--oxide); background: #FBEDE7; padding: 14px 18px; margin-bottom: 22px; max-width: 640px; }
.errors ul { margin: 6px 0 0; padding-left: 20px; }
.sent { border-left: 3px solid var(--oxide); padding: 10px 16px; background: var(--sheet); font-weight: 600; max-width: 640px; }

.colophon { border-top: 2px solid var(--ink); padding: 40px 0 56px; font-size: 15px; color: var(--ink-2); }
.colophon-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.colophon-name { font-family: var(--title); font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.colophon-links { display: flex; flex-direction: column; gap: 6px; }

/* Plates print in: a clip wipe as they enter */
.js .plate { clip-path: inset(0 0 100% 0); transform: translateY(18px); transition: clip-path .9s cubic-bezier(.2, .7, .1, 1), transform .9s cubic-bezier(.2, .7, .1, 1); }
.js .plate.in { clip-path: inset(0 0 0 0); transform: none; }

@media (max-width: 980px) {
  .paper { grid-template-columns: 1fr; grid-template-areas: "title" "fig" "rest"; min-height: 0; row-gap: 28px; }
  .fig { max-width: 640px; }
  .result-grid, .inst-grid { grid-template-columns: 1fr; }
  .result, .result + .result { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .consult-grid, .product, .take-list { grid-template-columns: 1fr; }
  .take-list dd { padding-top: 0; border-top: 0; }
  .note { grid-template-columns: 1fr; }
  .note-index { columns: 1; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .mast nav a:not(.btn) { display: none; }
  .mark-ai { display: none; }
  .contents a { grid-template-columns: 22px auto 1fr auto; }
  .c-name { font-size: 22px; }
  .link-quiet { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .plate { clip-path: none; transform: none; transition: none; }
  .inst-fig circle { transition: none; }
}

.consult-page .take-list h3 { color: var(--oxide); margin-bottom: 10px; }
