/* e-akinito — a drafting sheet in light mode, a blueprint in dark mode.
   Fonts are self-hosted subsets (latin + greek) of GFS Didot, Commissioner and JetBrains Mono,
   plus Inter for the Mental Bound wordmark only. */

@font-face { font-family: "GFS Didot"; src: url(/assets/fonts/didot-greek.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "GFS Didot"; src: url(/assets/fonts/didot-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Commissioner"; src: url(/assets/fonts/commissioner-greek.woff2) format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Commissioner"; src: url(/assets/fonts/commissioner-latin.woff2) format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url(/assets/fonts/jbmono-greek.woff2) format("woff2"); font-weight: 400 600; font-display: swap; unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "JetBrains Mono"; src: url(/assets/fonts/jbmono-latin.woff2) format("woff2"); font-weight: 400 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "MB Inter"; src: url(/assets/fonts/inter-wordmark.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+20, U+42, U+4D, U+61, U+64-65, U+6C, U+6E-6F, U+74-75; }

:root {
  --f-display: "GFS Didot", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --paper: #F3EFE6;
  --paper-2: #EBE5D8;
  --sheet: #FBF9F4;
  --ink: #1B1A16;
  --ink-2: #48443C;
  --ink-3: #686256;
  --rule: #D9D1C0;
  --rule-2: #B9AE97;
  --grid: rgb(27 26 22 / 0.05);
  --grid-2: rgb(27 26 22 / 0.09);
  --red: #B3381C;
  --owner: #4B473F;
  --trade: #1F4C8C;
  --inspector: #2B6849;
  --shadow: rgb(70 54 24 / 0.22);
  --tape: rgb(205 189 148 / 0.5);
  --grain-blend: multiply;
  --grain-opacity: 0.38;

  --gutter: 16px;
  --masthead: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E2340;
    --paper-2: #0B1D37;
    --sheet: #12294A;
    --ink: #E9EFF6;
    --ink-2: #BDCADB;
    --ink-3: #94A8C0;
    --rule: #25436A;
    --rule-2: #395B85;
    --grid: rgb(233 239 246 / 0.05);
    --grid-2: rgb(233 239 246 / 0.1);
    --red: #FF8E73;
    --owner: #C9D2DD;
    --trade: #95BEF5;
    --inspector: #8ED6B1;
    --shadow: rgb(0 6 18 / 0.55);
    --tape: rgb(233 239 246 / 0.13);
    --grain-blend: screen;
    --grain-opacity: 0.12;
  }
}

@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--masthead) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Paper grain over everything; it never takes clicks. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .38 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
h1, h2 { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.005em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem); line-height: 1.08; margin: 14px 0 18px; max-width: 22ch; }
h3 { font: 600 1.1rem/1.3 var(--f-body); margin: 0; }

.wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 14px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.kicker { display: flex; align-items: center; gap: 12px; font: 500 0.72rem/1.3 var(--f-mono); letter-spacing: 0.14em; color: var(--ink-3); }
.kicker::before { content: ""; flex: none; width: 22px; height: 1.5px; background: var(--red); }

/* Masthead: stays at the top while the page scrolls, above the record card but under the grain. */
.masthead { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--rule); }
.masthead__row { display: flex; align-items: center; gap: 28px; min-height: var(--masthead); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__name { font: 400 1.55rem/1 var(--f-display); letter-spacing: 0.005em; }
.mark { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; }
.mark__dot { fill: var(--red); stroke: none; }
.nav { display: none; margin-left: auto; gap: 28px; }
.nav a { position: relative; font-size: 0.92rem; font-weight: 500; color: var(--ink-2); text-decoration: none; padding-block: 6px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.lang { display: flex; margin-left: auto; padding: 3px; border: 1px solid var(--rule-2); border-radius: 999px; }
.lang a { font: 500 0.72rem/1 var(--f-mono); letter-spacing: 0.08em; padding: 7px 11px; border-radius: 999px; color: var(--ink-2); text-decoration: none; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--ink); color: var(--paper); }
@media (min-width: 860px) { .nav { display: flex; } .nav + .lang { margin-left: 0; } }

/* Hero */
.hero { position: relative; padding-block: clamp(36px, 6vw, 72px) clamp(64px, 8vw, 104px); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-2) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 72% 45%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 75% at 72% 45%, #000 35%, transparent 80%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "drawing" "record"; gap: 28px; }
.hero__text { grid-area: text; padding-top: clamp(0px, 2vw, 24px); }
/* The longest line ("Με την απόδειξή της.") is about 9.7 em wide and must not wrap: sizes follow the column. */
.hero__title { font-size: clamp(1.85rem, 0.9rem + 5vw, 3.9rem); line-height: 1.03; margin: 20px 0 24px; text-wrap: initial; }
.hl { position: relative; white-space: nowrap; }
.hl::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.06em;
  bottom: -0.1em;
  height: 0.16em;
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8.5C60 4 120 9.5 180 5.5S260 6 298 3' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8.5C60 4 120 9.5 180 5.5S260 6 298 3' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hero__lead { font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem); line-height: 1.6; color: var(--ink-2); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.status { display: flex; align-items: center; gap: 10px; margin-top: 26px; font: 500 0.72rem/1.4 var(--f-mono); letter-spacing: 0.1em; color: var(--ink-3); text-transform: none; }
.status__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--inspector); box-shadow: 0 0 0 0 color-mix(in srgb, var(--inspector) 55%, transparent); }
.hero__drawing { grid-area: drawing; margin: 0; color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 2px; font: 600 0.95rem/1 var(--f-body); text-decoration: none; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--trade); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--sheet); }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* The drawing */
.drawing { width: 100%; height: auto; overflow: visible; }
.drawing .paper { fill: var(--paper); }
.drawing .thin { stroke-width: 0.7; }
.drawing .heavy { stroke-width: 1.8; }
.drawing .red { stroke: var(--red); }
.drawing .fruit { fill: var(--red); stroke: none; }
.drawing .lbl { fill: var(--ink-2); stroke: none; font: 500 9.5px var(--f-mono); letter-spacing: 0.06em; }
.drawing .lbl--red { fill: var(--red); }
.drawing .lbl--tag { font-size: 11px; }

/* The record card pinned to the drawing */
.record {
  --rot: -1.2deg;
  grid-area: record;
  position: relative;
  z-index: 2;
  width: min(100%, 384px);
  justify-self: center;
  margin-top: -32px;
  padding: 22px 22px 18px;
  background: var(--sheet);
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  box-shadow: 0 1px 0 var(--rule), 0 10px 22px -14px var(--shadow), 0 34px 60px -34px var(--shadow);
  transform: rotate(var(--rot));
}
.record::before { content: ""; position: absolute; top: -11px; left: 50%; width: 92px; height: 22px; background: var(--tape); transform: translateX(-50%) rotate(2.5deg); }
.record__tag { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 26px; height: 26px; border: 1.2px solid var(--red); border-radius: 50%; color: var(--red); font: 500 0.75rem/1 var(--f-mono); }
.record__kicker { font: 500 0.68rem/1.3 var(--f-mono); letter-spacing: 0.16em; color: var(--ink-3); }
.record__building { font: 400 1.4rem/1.2 var(--f-display); margin: 6px 0 4px; padding-right: 32px; }
.record__path { font: 500 0.68rem/1.3 var(--f-mono); letter-spacing: 0.1em; color: var(--ink-2); }
.record__list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.entry { position: relative; padding: 14px 0 14px 20px; border-bottom: 1px dashed var(--rule-2); }
.entry::before { content: ""; position: absolute; left: 0; top: 19px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink-2); background: var(--sheet); }
.entry:first-child::before { background: var(--ink-2); }
.entry:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 31px; bottom: -19px; width: 1px; background: var(--rule-2); }
.entry__date { font: 500 0.68rem/1.4 var(--f-mono); letter-spacing: 0.06em; color: var(--ink-3); padding-right: 104px; }
.entry__title { font-weight: 600; font-size: 0.98rem; line-height: 1.35; margin-top: 2px; padding-right: 104px; }
.entry__cond { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 0.84rem; color: var(--ink-2); }
.entry__prov { margin-top: 2px; font-size: 0.8rem; color: var(--ink-3); }
.entry .stamp { position: absolute; right: 2px; top: 14px; }
.meter { display: inline-flex; gap: 2px; }
.meter i { width: 7px; height: 7px; border: 1px solid var(--ink-3); }
.meter--5 i, .meter--2 i:nth-child(-n+2) { background: var(--ink-2); border-color: var(--ink-2); }
.record__note { display: flex; gap: 10px; margin-top: 14px; font-size: 0.82rem; line-height: 1.45; color: var(--red); }
.record__note::before { content: ""; flex: none; width: 14px; height: 1.5px; margin-top: 0.65em; background: currentColor; }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "text drawing" "record drawing"; column-gap: clamp(32px, 5vw, 72px); row-gap: 36px; align-items: start; }
  .hero__title { font-size: clamp(2.5rem, 4.3vw, 3.6rem); }
  .record { justify-self: end; margin: 0 -150px 0 0; }
}

/* Stamps: double-framed, slightly worn ink */
.stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 9px 6px;
  color: var(--owner);
  border: 1.5px solid currentColor;
  border-radius: 4px;
  outline: 1px solid currentColor;
  outline-offset: 2px;
  font-family: var(--f-mono);
  line-height: 1;
  transform: rotate(-6deg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 2.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E") 0 0 / 160px 160px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 2.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E") 0 0 / 160px 160px;
}
.stamp small { font-size: 0.52rem; font-weight: 500; letter-spacing: 0.22em; }
.stamp b { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; }
.stamp--trade { color: var(--trade); }
.stamp--inspector { color: var(--inspector); }
.stamp--lg { padding: 9px 16px 10px; border-width: 2px; outline-offset: 3px; transform: rotate(-4deg); }
.stamp--lg small { font-size: 0.6rem; }
.stamp--lg b { font-size: 1.02rem; }

/* The questions band */
.questions { background: var(--paper-2); border-block: 1px solid var(--rule); padding-block: clamp(64px, 9vw, 112px); }
.questions__q { font: 400 clamp(1.75rem, 1.15rem + 2.3vw, 3rem)/1.16 var(--f-display); }
.questions__q span { display: block; }
.questions__q span:nth-child(2) { color: var(--ink-2); }
.questions__q span:nth-child(3) { color: var(--ink-3); }
.questions__a { max-width: 52ch; margin-top: clamp(28px, 4vw, 44px); padding-left: 20px; border-left: 2px solid var(--red); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.22rem); color: var(--ink); }
@media (min-width: 720px) {
  .questions__q span:nth-child(2) { padding-left: 1.4em; }
  .questions__q span:nth-child(3) { padding-left: 2.8em; }
  .questions__a { margin-left: calc(2.8 * clamp(1.75rem, 1.15rem + 2.3vw, 3rem)); }
}

/* Sections */
.section { padding-block: clamp(76px, 10vw, 132px); }
.section + .section { border-top: 1px solid var(--rule); }
.section__head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__lead { font-size: clamp(1.05rem, 1rem + 0.25vw, 1.18rem); color: var(--ink-2); max-width: 56ch; }

.steps, .facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .steps, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .steps, .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step, .fact { border-top: 1px solid var(--ink); padding-top: 18px; }
.step__no { font: 500 0.72rem/1 var(--f-mono); letter-spacing: 0.12em; color: var(--red); }
.step__icon, .fact__icon { width: 44px; height: 44px; margin: 22px 0 18px; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.step__icon .accent { stroke: var(--red); }
.fact__icon { margin-top: 4px; }
.fact__icon .dots { stroke-width: 2.6; }
.step h3, .fact h3 { margin-bottom: 8px; }
.step p, .fact p { color: var(--ink-2); font-size: 0.98rem; }

.chain { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.12em; }
.chain li { position: relative; padding: 10px 14px; border: 1px solid var(--rule-2); background: var(--sheet); color: var(--ink-2); }
.chain li + li { margin-top: 18px; }
.chain li + li::before { content: ""; position: absolute; left: 22px; bottom: 100%; width: 1px; height: 18px; background: var(--rule-2); }
.chain .chain__key { border-color: var(--ink); color: var(--ink); }
.chain .chain__key:last-child { border-color: var(--red); color: var(--red); }
@media (min-width: 900px) {
  .chain { flex-direction: row; align-items: center; }
  .chain li + li { margin: 0 0 0 36px; }
  .chain li + li::before { left: auto; right: 100%; bottom: 50%; width: 36px; height: 1px; }
}

/* The app: screens from the new design in phone outlines. A swipeable row on phones, a grid above. */
.platforms { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.platforms li { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: 0.95rem; }
.platforms span { margin-left: 2px; font: 500 0.64rem/1 var(--f-mono); letter-spacing: 0.14em; color: var(--red); }
.screens { list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 290px); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; }
.screen { scroll-snap-align: start; }
.phone { padding: 7px; border: 1.5px solid var(--ink); border-radius: 42px; background: var(--sheet); box-shadow: 0 34px 60px -40px var(--shadow); }
.phone img { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 35px; }
.screen__no { display: block; margin-top: 22px; font: 500 0.72rem/1 var(--f-mono); letter-spacing: 0.12em; color: var(--red); }
.screen h3 { margin: 10px 0 6px; }
.screen p { color: var(--ink-2); font-size: 0.98rem; }
.screens__note { margin-top: 28px; font: 500 0.68rem/1.5 var(--f-mono); letter-spacing: 0.08em; color: var(--ink-3); }
@media (min-width: 720px) {
  .screens { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 40px; margin: 0; padding: 0; overflow: visible; }
  .screen { width: 100%; max-width: 300px; justify-self: center; }
  .screens__note { margin-top: 48px; }
}
@media (min-width: 1040px) {
  .screens { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .screen:nth-child(3n + 2) { margin-top: 56px; }
}

/* Tiers */
.section--tiers { background: var(--paper-2); }
.section + .section--tiers, .section--tiers + .section { border-top-color: var(--rule); }
.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.tier { padding: 34px 28px 30px; background: var(--sheet); border: 1px solid var(--rule); }
.tier .stamp { margin: 0 0 30px 4px; }
.tier__evidence { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; font-weight: 600; font-size: 1.08rem; }
.tier__evidence span { font: 500 0.66rem/1 var(--f-mono); letter-spacing: 0.16em; color: var(--ink-3); }
.tier p:last-child { color: var(--ink-2); font-size: 0.98rem; }
@media (min-width: 900px) {
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tier:nth-child(1) { margin-top: 48px; }
  .tier:nth-child(2) { margin-top: 24px; }
}
.example { max-width: 760px; margin-top: clamp(40px, 5vw, 56px); padding: 4px 0 4px 20px; border-left: 2px solid var(--red); }
.example__label { font: 500 0.68rem/1 var(--f-mono); letter-spacing: 0.16em; color: var(--red); margin-bottom: 10px; }
.example p:last-child { font-size: clamp(1.02rem, 1rem + 0.2vw, 1.12rem); color: var(--ink-2); }

/* Timeline */
.split { display: grid; gap: 48px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(48px, 7vw, 96px); } }
.points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.points li { display: flex; gap: 14px; color: var(--ink-2); }
.points li::before { content: ""; flex: none; width: 18px; height: 1.5px; margin-top: 0.82em; background: var(--red); }
.ledger { position: relative; padding: 30px clamp(20px, 3vw, 34px) 18px; background: var(--sheet); border: 1px solid var(--rule-2); box-shadow: 0 34px 60px -40px var(--shadow); }
.ledger__kicker { font: 500 0.68rem/1 var(--f-mono); letter-spacing: 0.16em; color: var(--ink-3); }
.ledger__entry { font: 400 1.55rem/1.2 var(--f-display); margin: 8px 0 18px; }
.ledger__rows { list-style: none; margin: 0; padding: 0; }
.ledger__rows li { position: relative; display: grid; gap: 3px; padding: 16px 0 16px 30px; border-top: 1px solid var(--rule); }
.ledger__rows li::before { content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink-2); background: var(--sheet); }
.ledger__rows li:not(:last-child)::after { content: ""; position: absolute; left: 4.5px; top: 33px; bottom: -21px; width: 1px; background: var(--rule-2); }
.ledger__date { font: 500 0.7rem/1.4 var(--f-mono); letter-spacing: 0.06em; color: var(--ink-3); }
.ledger__text { font-weight: 600; }
.ledger__detail { font-size: 0.92rem; color: var(--ink-2); }
.ledger__rows .ledger__tier::before { border-color: var(--trade); background: var(--trade); }
.ledger__tier .ledger__detail { color: var(--trade); font-weight: 600; }

/* Closing band: the sheet inverted */
.closing { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding-block: clamp(80px, 11vw, 136px); }
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--paper) 9%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--paper) 9%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
}
.closing__inner { position: relative; }
.closing .kicker { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.closing h2 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.6rem); line-height: 1.02; margin: 18px 0 20px; max-width: none; }
.closing__text { max-width: 50ch; margin-bottom: 36px; font-size: clamp(1.05rem, 1rem + 0.25vw, 1.18rem); color: color-mix(in srgb, var(--paper) 82%, transparent); }

/* Footer: a drawing's title block */
.titleblock { padding-block: 28px 40px; }
.titleblock__grid { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--ink); }
.tb { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 76px; padding: 14px 18px; border-top: 1px solid var(--ink); color: var(--ink); text-decoration: none; }
.tb:first-child { border-top: 0; }
.tb__label { font: 500 0.64rem/1 var(--f-mono); letter-spacing: 0.16em; color: var(--ink-3); }
.tb__value { font-size: 0.95rem; text-decoration: none; }
a.tb__value:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.tb__value a { text-decoration: none; color: var(--ink-2); }
.tb__value a[aria-current] { color: var(--ink); font-weight: 600; }
.tb__value a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.tb__value a + a::before { content: "·"; display: inline-block; margin: 0 9px; color: var(--ink-3); font-weight: 400; }
.tb__brand { display: flex; align-items: center; gap: 9px; font: 400 1.2rem/1 var(--f-display); }
.tb__brand .mark { width: 22px; height: 22px; }
.tb__brand small { font: 500 0.7rem/1 var(--f-mono); color: var(--ink-3); margin-left: 2px; }
.tb--by { align-items: flex-start; transition: background-color 0.2s; }
.tb--by:hover { background: var(--paper-2); }
.by { display: inline-flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--ink-2); }
.by img { width: 30px; height: 30px; }
.by__name { font: 700 1.12rem/1 "MB Inter", var(--f-body); letter-spacing: -0.02em; color: var(--ink); }
@media (min-width: 760px) {
  .titleblock__grid { grid-template-columns: 1.15fr 1fr 1.15fr 1.2fr; }
  .tb { border-top: 0; border-left: 1px solid var(--ink); }
  .tb:first-child { border-left: 0; }
  .tb--by { align-items: center; }
}

/* Motion: only when scripts run and the visitor has not asked for less */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { animation: rise 0.9s var(--ease) backwards; }
  .js .rise:nth-child(2) { animation-delay: 0.08s; }
  .js .rise:nth-child(3) { animation-delay: 0.16s; }
  .js .rise:nth-child(4) { animation-delay: 0.24s; }
  .js .rise:nth-child(5) { animation-delay: 0.32s; }
  .js .drawing .d { animation: draw 1.5s cubic-bezier(0.55, 0.05, 0.25, 1) backwards; }
  .js .drawing .d2 { animation-delay: 0.25s; }
  .js .drawing .d3 { animation-delay: 0.6s; }
  .js .drawing .d4 { animation-delay: 0.95s; }
  .js .drawing .d5 { animation-delay: 1.2s; }
  .js .drawing .d6 { animation: draw 1.4s cubic-bezier(0.55, 0.05, 0.25, 1) 1.6s backwards, fade 0.9s ease-out 1.7s backwards; }
  .js .record { animation: card 1s var(--ease) 0.7s backwards; }
  .js .stamp--press { animation: press 0.32s cubic-bezier(0.3, 0.6, 0.3, 1) 2.1s backwards; }
  .js .entry + .entry .stamp--press { animation-delay: 2.35s; }
  .status__dot { animation: pulse 2.6s ease-out infinite; }
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease-out, transform 0.8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .steps .reveal:nth-child(2), .js .facts .reveal:nth-child(2), .js .tiers .reveal:nth-child(2) { transition-delay: 0.08s; }
  .js .steps .reveal:nth-child(3), .js .facts .reveal:nth-child(3), .js .tiers .reveal:nth-child(3) { transition-delay: 0.16s; }
  .js .steps .reveal:nth-child(4), .js .facts .reveal:nth-child(4) { transition-delay: 0.24s; }
  .btn, .nav a::after { transition-duration: 0.2s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes card { from { opacity: 0; transform: translateY(28px) rotate(var(--rot)); } }
@keyframes press { from { opacity: 0; transform: rotate(-6deg) scale(1.6); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--inspector) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }
