/* --- start page navigation ------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--rule); }
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav-links { display: flex; gap: 28px; margin-right: auto; margin-left: 24px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.nav-cta .link { text-decoration: none; }

/* --- hero ---------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 8vw, 104px) 0 clamp(56px, 9vw, 120px); }
.hero::after { content: "46"; position: absolute; right: -2vw; bottom: -9vw; font: italic 300 clamp(260px, 38vw, 560px)/1 var(--serif);
  color: transparent; -webkit-text-stroke: 1px var(--rule); pointer-events: none; z-index: -1; letter-spacing: -.06em; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.kicker { display: flex; align-items: center; gap: 12px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { margin-top: 28px; font-size: clamp(44px, 6.2vw, 88px); line-height: .98; letter-spacing: -.035em; font-weight: 350; }
.hero h1 em { font-style: italic; color: var(--forest); font-weight: 400; }
.lead { margin-top: 28px; max-width: 34em; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 40px; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 56px 0 0; border-top: 1px solid var(--rule); }
.stats div { padding: 20px 32px 0 0; margin-right: 32px; border-right: 1px solid var(--rule-soft); }
.stats div:last-child { border-right: 0; margin-right: 0; }
.stats dd { order: -1; margin: 0; font: 400 clamp(30px, 3.2vw, 44px)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.stats dt { margin-top: 8px; font-size: 13px; color: var(--muted); max-width: 13em; line-height: 1.4; }
.stats div { display: flex; flex-direction: column; }
.footnote { margin-top: 16px; font-size: 13px; color: var(--faint); }

/* --- extract: list of the most common PKD codes ---------------------------------------- */
.extract { position: relative; background: var(--card); border: 1px solid var(--rule); padding: 28px 28px 20px;
  box-shadow: 0 1px 0 var(--rule-soft), 0 24px 48px -24px rgb(40 36 20 / .25); transform: rotate(.6deg); }
.extract::before { content: ""; position: absolute; inset: 10px -10px -10px 10px; border: 1px solid var(--rule); z-index: -1; background: var(--card); transform: rotate(-1.4deg); }
.extract-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.extract-head h2 { font: 500 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.extract-head span { font: 400 12px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.extract ol { list-style: none; margin: 0; padding: 0; counter-reset: item; }
.extract li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px dashed var(--rule);
  font-size: 14px; opacity: 0; transform: translateY(6px); animation: rise .5s cubic-bezier(.2, .7, .2, 1) forwards; }
.extract li code { font-size: 13px; color: var(--forest); font-weight: 500; }
.extract li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.extract li b { font: 500 13px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); }
.extract li.skeleton span { height: 10px; background: var(--rule-soft); border-radius: 2px; }
.extract-footer { margin-top: 14px; font-size: 12px; color: var(--faint); }
.seal { position: absolute; right: -30px; bottom: -40px; width: 104px; height: 104px; color: var(--seal); transform: rotate(-12deg); opacity: .85; pointer-events: none; }
.seal text { font: 600 9.5px var(--mono); letter-spacing: .2em; fill: currentColor; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* page intro: elements appear one after another */
.intro > * { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.intro > :nth-child(1) { animation-delay: .05s; } .intro > :nth-child(2) { animation-delay: .15s; }
.intro > :nth-child(3) { animation-delay: .25s; } .intro > :nth-child(4) { animation-delay: .35s; }
.intro > :nth-child(5) { animation-delay: .45s; } .intro > :nth-child(6) { animation-delay: .55s; }
.extract-intro { opacity: 0; animation: rise .9s .3s cubic-bezier(.2, .7, .2, 1) forwards; }

/* --- sections ---------------------------------------------------------------------------- */
.section { padding: clamp(64px, 10vw, 128px) 0; border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; margin-bottom: clamp(40px, 6vw, 72px); align-items: baseline; }
.section-head .kicker::before { display: none; }
.section h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; max-width: 16em; letter-spacing: -.03em; font-weight: 350; }
.section h2 em { font-style: italic; color: var(--forest); }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.features li { padding: 32px 40px 40px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px 16px; }
.features li:nth-child(odd) { border-right: 1px solid var(--rule); }
.features li:nth-child(even) { padding-left: 40px; }
.features .nr { font: 500 13px/1.9 var(--mono); color: var(--forest); }
.features h3 { font-size: 26px; line-height: 1.2; letter-spacing: -.01em; }
.features p { grid-column: 2; color: var(--muted); font-size: 16px; max-width: 30em; }
.features .tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.features .tags code { font-size: 12px; padding: 3px 8px; border: 1px solid var(--rule); border-radius: 2px; color: var(--muted); background: var(--card); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 20px; }
.steps li::before { content: counter(step); display: block; font: italic 300 96px/1 var(--serif); color: var(--forest); margin-bottom: 16px; letter-spacing: -.04em; }
.steps h3 { font-size: 24px; margin-bottom: 10px; }
.steps p { color: var(--muted); }
.steps code { font-size: 14px; background: var(--card); border: 1px solid var(--rule); padding: 1px 6px; color: var(--ink); }

.sources { width: 100%; border-collapse: collapse; font-size: 15px; }
.sources th, .sources td { text-align: left; padding: 20px 24px 20px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.sources thead th { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
.sources tbody th { font: 400 22px/1.2 var(--serif); width: 28%; }
.sources tbody th small { display: block; margin-top: 6px; font: 400 13px/1.4 var(--sans); color: var(--muted); }
.sources td { color: var(--muted); }
.sources td:last-child { font-family: var(--mono); font-size: 13px; color: var(--ink); white-space: nowrap; }
.note { margin-top: 32px; max-width: 46em; padding-left: 20px; border-left: 2px solid var(--seal); color: var(--muted); font-size: 15px; }

.closing { background: var(--forest-deep); color: #f3f0e8; padding: clamp(64px, 10vw, 120px) 0; position: relative; overflow: hidden; }
.closing::after { content: "46.43.Z  46.69.Z  46.73.Z  46.90.Z  46.18.Z  46.46.Z  46.74.Z  46.31.Z  46.52.Z  46.62.Z"; position: absolute; left: 0; right: 0; bottom: 24px;
  font: 500 13px/1 var(--mono); letter-spacing: .3em; color: rgb(243 240 232 / .18); white-space: nowrap; overflow: hidden; }
.closing .wrap { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.closing h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.03em; font-weight: 350; max-width: 12em; }
.closing h2 em { font-style: italic; color: #9fd6bd; }
.closing .btn { background: #f3f0e8; color: #143f31; border-color: #f3f0e8; }
.closing .btn:hover { background: #fff; }
.closing .link { color: #f3f0e8; text-decoration-color: rgb(243 240 232 / .4); }
.closing .cta { margin-top: 0; }

.footer { padding: 32px 0 48px; font-size: 13px; color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
