/* SCHRO · a 1935 physics paper about a cat in a box: cream paper, black ink, rubber stamps, margin notes, and the
   two quantum states printed as misregistered cyan / magenta plates that line up when you look. */
:root {
  --paper: #f4eedf;
  --paper-2: #ece4cf;
  --paper-3: #e3d8bd;
  --ink: #1b1813;
  --ink-2: #4b4438;
  --ink-3: #7a705f;
  --rule: rgba(27, 24, 19, .2);
  --rule-2: rgba(27, 24, 19, .09);
  --red: #c4351f;
  --cyan: #0096b8;
  --mag: #cf2a7f;
  --kraft: #c99a5b;
  --pencil: #2f4fa8;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --display: "Instrument Serif", "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --col: 700px;
  --card: #fbf8ef;
  --card-2: #fdfbf4;
  --glass: rgba(244, 238, 223, .86);
  --blend: multiply;
  color-scheme: light;
}
/* inside the box: the lid is closed, it's dark in here */
:root[data-box="closed"] {
  --paper: #15120e; --paper-2: #1d1914; --paper-3: #0c0a08;
  --ink: #eee5d1; --ink-2: #b8ac94; --ink-3: #857964;
  --rule: rgba(238, 229, 209, .2); --rule-2: rgba(238, 229, 209, .08);
  --red: #ff6b4f; --cyan: #34c6e6; --mag: #ff5aab; --pencil: #93b2ff;
  --card: #1c1813; --card-2: #201b15; --glass: rgba(21, 18, 14, .84); --blend: screen;
  color-scheme: dark;
}
:root[data-box="closed"] body { background-color: var(--paper);
  background-image: radial-gradient(900px 600px at 50% -10%, rgba(201, 154, 91, .12), transparent 70%), radial-gradient(700px 500px at 100% 100%, rgba(52, 198, 230, .06), transparent 70%); }
:root[data-box="closed"] .btn-ink, :root[data-box="closed"] .copy, :root[data-box="closed"] .toast { color: #15120e; }
:root[data-box="closed"] .bubble { background: var(--card); }
:root[data-box="closed"] .pg { background-image: linear-gradient(90deg, transparent 21px, rgba(255, 107, 79, .45) 21px 22.5px, transparent 22.5px),
  repeating-linear-gradient(180deg, transparent 0 27px, rgba(52, 198, 230, .14) 27px 28px); }
:root[data-box="closed"] .redact:hover, :root[data-box="closed"] .redact:focus, :root[data-box="closed"] .redact.open { background: rgba(255, 200, 80, .25); }
body, .run, .fig1, .table1, .eq2, .pg, .g-box, .g-card, .rev, .faq details { transition: background-color .5s, color .5s, border-color .5s; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; color: var(--ink); font: 400 18.5px/1.62 var(--serif); font-optical-sizing: auto; overflow-x: hidden;
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(1200px 800px at 50% -10%, #fbf7ec, transparent 70%),
    radial-gradient(900px 700px at 100% 100%, rgba(201, 154, 91, .14), transparent 70%);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
b, strong { font-weight: 600; }
::selection { background: rgba(207, 42, 127, .22); }
sup { font-size: .62em; line-height: 0; }
.sc { font: 600 13px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; margin: 0 0 12px; color: var(--ink-2); }

/* ---------------------------------------------------------------- running header */
.run { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; padding: 12px clamp(16px, 4vw, 44px);
  background: var(--glass); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid var(--ink); box-shadow: 0 3px 0 -2px var(--ink); }
.run-l { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 15px var(--serif); color: var(--ink-2); white-space: nowrap; }
.run-l img { width: 38px; height: 38px; object-fit: contain; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.run-l:hover img { transform: rotate(-8deg) translateY(-2px); }
.run-l i { font: italic 400 24px/1 var(--display); color: var(--ink); }
.run nav { display: flex; gap: 22px; margin-left: auto; }
.run nav a { font: 500 13px var(--mono); letter-spacing: .02em; text-decoration: none; color: var(--ink-2); position: relative; }
.run nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.run nav a:hover { color: var(--ink); }
.run nav a:hover::after, .run nav a.on::after { transform: scaleX(1); }
.run nav a.on { color: var(--ink); }
.progress { position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.lid { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; cursor: pointer; border-radius: 999px; flex: none;
  font: 500 12.5px var(--mono); color: var(--ink); background: transparent; border: 1.5px solid var(--ink); transition: background .3s, color .3s; }
.lid-k { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--paper-3); border: 1.5px solid var(--ink); }
.lid-k::after { content: ""; position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--ink);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
:root[data-box="closed"] .lid-k::after { transform: translateX(14px); background: var(--red); }
.lid:hover { background: var(--ink); color: var(--paper); }
.xbtn { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; color: var(--ink);
  border: 1.5px solid var(--ink); transition: transform .2s, background .2s, color .2s; }
.xbtn svg { width: 16px; height: 16px; fill: currentColor; }
.xbtn:hover { background: var(--ink); color: var(--paper); transform: rotate(-8deg); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none;
  font: 600 14px var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 11px 18px; border-radius: 3px; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .2s, color .2s; }
.btn-ink { color: var(--paper); background: var(--ink); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--red); }
.btn-ink:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--red); }
.btn-ink:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--red); }
.btn-line { color: var(--ink); background: transparent; border: 1.5px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-lg { padding: 15px 24px; font-size: 14.5px; }

/* ---------------------------------------------------------------- page */
.paper { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 44px) 40px; }
.grid2 { display: grid; grid-template-columns: minmax(0, var(--col)) minmax(0, 1fr); gap: 56px; align-items: start; }

/* ---------------------------------------------------------------- title block */
.title-block { position: relative; padding: 34px 0 30px; }
.journal { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink);
  font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.journal .mid { font: italic 400 17px/1 var(--display); letter-spacing: .02em; text-transform: none; color: var(--ink); }
.journal b { color: var(--ink); font-weight: 600; }

/* the title, printed twice off-register: cyan plate + magenta plate; looking at it lines them up */
.super { position: relative; display: inline-grid; margin: 26px 0 0 -6px; font: italic 400 clamp(96px, 17vw, 228px)/.86 var(--display);
  letter-spacing: -.03em; cursor: crosshair; outline: none; }
.super > span { grid-area: 1 / 1; }
.super .s-k { position: relative; color: var(--ink); mix-blend-mode: var(--blend); }
.super .s-c, .super .s-m { mix-blend-mode: var(--blend); transition: transform .7s cubic-bezier(.2, 1.4, .4, 1), opacity .5s; }
.super .s-c { color: var(--cyan); transform: translate(-9px, -5px); animation: drift-c 5s ease-in-out infinite; }
.super .s-m { color: var(--mag); transform: translate(9px, 5px); animation: drift-m 5s ease-in-out infinite; }
.super:hover .s-c, .super:focus .s-c, .super:hover .s-m, .super:focus .s-m { transform: translate(0, 0); animation: none; opacity: 0; }
@keyframes drift-c { 50% { transform: translate(-13px, -2px); } }
.super.jolt .s-c { animation: jolt-c .6s cubic-bezier(.2, 1.6, .4, 1); }
.super.jolt .s-m { animation: jolt-m .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes jolt-c { 30% { transform: translate(-26px, -8px); } }
@keyframes jolt-m { 30% { transform: translate(26px, 8px); } }
@keyframes drift-m { 50% { transform: translate(13px, 2px); } }
.paper-title { margin: 14px 0 0; max-width: 16em; font: 400 clamp(26px, 3.4vw, 42px)/1.12 var(--display); letter-spacing: -.005em; }
.paper-title i { color: var(--red); }
.authors { margin: 18px 0 2px; font: 500 19px var(--serif); font-variant: small-caps; letter-spacing: .04em; }
.affil { margin: 0 0 30px; font: italic 400 15px var(--serif); color: var(--ink-2); }

.abstract { position: relative; padding: 18px 0 16px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.abstract p { margin: 0 0 10px; text-align: justify; hyphens: auto; }
.abstract p:first-of-type::first-letter { float: left; font: 400 60px/.8 var(--display); margin: 7px 5px 0 0; color: var(--red); }
.kw { font-size: 15px; color: var(--ink-2); }
.kw span { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }

.eq, .eq2-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eq { margin: 22px 0; padding: 16px 0; font: 400 clamp(22px, 2.8vw, 31px)/1 var(--display); }
.eq-body { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.eq-body i { font-style: italic; }
.eq-n { font: 400 17px var(--serif); color: var(--ink-2); }
.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; margin: 0 4px; font-size: .72em; line-height: 1.15; }
.frac > span:first-child { border-bottom: 1.5px solid currentColor; padding: 0 4px 2px; }
.frac > span:last-child { padding-top: 3px; }

.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.ca { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 12px; border: 1px dashed var(--ink-3); border-radius: 3px;
  font: 500 13.5px var(--mono); background: var(--card); max-width: 100%; }
.ca > span { font-weight: 600; letter-spacing: .14em; color: var(--red); }
.ca code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.ca.live { border-style: solid; border-color: var(--ink); }
.ca.live code { color: var(--ink); }
.copy { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px; cursor: pointer; border-radius: 2px;
  background: var(--ink); color: var(--paper); border: 0; }
.socials { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.socials:empty { display: none; }
.socials a { font: 500 14px var(--mono); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--red); }

/* figure 1: the cat */
.fig { position: relative; margin: 0; }
.fig1 { padding: 14px 14px 12px; background: var(--card); border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--paper-3); transform: rotate(.6deg); }
.fig1 .cat { position: relative; aspect-ratio: 1; cursor: crosshair;
  background-image: linear-gradient(var(--rule-2) 1px, transparent 1px), linear-gradient(90deg, var(--rule-2) 1px, transparent 1px);
  background-size: 22px 22px; background-position: -1px -1px; }
.cat img { position: absolute; inset: 6% 4% 2%; width: 92%; height: 92%; object-fit: contain; transition: opacity .35s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.cat .cat-both { animation: bob 3.4s ease-in-out infinite; }
.cat .cat-pick { opacity: 0; transform: scale(.94); }
.cat:hover .cat-both, .cat.peek .cat-both { opacity: 0; }
.cat:hover .cat-pick, .cat.peek .cat-pick { opacity: 1; transform: scale(1); }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-1deg); } }
.bubble { position: absolute; left: 6%; top: 4%; max-width: 60%; padding: 6px 12px; font: 700 22px/1.05 var(--hand); color: var(--pencil);
  background: #fff; border: 1.5px solid var(--pencil); border-radius: 14px 14px 14px 2px; transform: rotate(-3deg); }
figcaption { margin-top: 10px; font: 400 14.5px/1.45 var(--serif); color: var(--ink-2); }
figcaption b { color: var(--ink); }

/* stamps and pencil notes */
.stamp { display: inline-block; font: 600 13px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--red);
  padding: 8px 12px; border: 2.5px solid var(--red); border-radius: 4px; filter: url(#rough); opacity: .86; mix-blend-mode: var(--blend);
  box-shadow: inset 0 0 0 1.5px rgba(196, 53, 31, .35); }
.st1 { position: absolute; right: -18px; bottom: 86px; transform: rotate(-11deg); background: var(--card); }
.st2 { margin-top: 26px; transform: rotate(5deg); }
.hand { font: 700 25px/1.05 var(--hand); color: var(--pencil); }
.h1 { position: absolute; right: 13%; top: 250px; transform: rotate(-6deg); }
.h1 svg { display: block; width: 80px; height: 60px; margin: 2px 0 0 30px; fill: none; stroke: var(--pencil); stroke-width: 2.2; stroke-linecap: round; }

/* ---------------------------------------------------------------- sections */
.sec { padding: 54px 0 20px; }
.h { display: flex; align-items: baseline; gap: 16px; margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--ink);
  font: 400 clamp(30px, 4vw, 46px)/1.05 var(--display); letter-spacing: -.01em; }
.h .num { font: 500 14px var(--mono); letter-spacing: .08em; color: var(--red); flex: none; transform: translateY(-4px); }
.h i { color: var(--ink-2); }
.body { margin: 0 0 22px; text-align: justify; hyphens: auto; }
.narrow { max-width: var(--col); }
.margin { padding-top: 6px; font-size: 15px; color: var(--ink-2); }
.margin .note { margin: 0 0 22px; padding-left: 12px; border-left: 1.5px solid var(--rule); line-height: 1.45; }
.margin .note sup { color: var(--red); font-weight: 600; }
.margin .hand { margin: 0 0 24px; transform: rotate(-3deg); }

.t-cap { font: 400 15px/1.4 var(--serif); color: var(--ink-2); margin-bottom: 10px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.t-cap b { color: var(--ink); }
.live { margin-left: auto; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.dot.on { background: var(--red); box-shadow: 0 0 0 0 rgba(196, 53, 31, .5); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(196, 53, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(196, 53, 31, 0); } }

.table1 { padding: 18px 20px 6px; background: var(--card); border: 1px solid var(--ink); }
.big { display: flex; align-items: baseline; gap: 10px; font: 400 clamp(64px, 10vw, 118px)/.95 var(--display); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; transform-origin: left center; }
.big small { font: 500 18px var(--mono); letter-spacing: .1em; color: var(--ink-2); }
.bump .big, .big.bump { animation: bump .5s; }
.table1.bump .big { animation: bump .5s; }
@keyframes bump { 30% { color: var(--red); transform: scale(1.03); } }
.t-usd { display: block; margin-top: 4px; font-style: italic; color: var(--ink-2); }
.gauge { position: relative; height: 10px; margin: 18px 0 6px; border: 1px solid var(--ink);
  background: repeating-linear-gradient(90deg, transparent 0 9px, var(--rule-2) 9px 10px); }
.gauge div { height: 100%; width: 3%; background: repeating-linear-gradient(-45deg, var(--ink) 0 3px, transparent 3px 6px); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.t-note { font: 500 12.5px var(--mono); color: var(--ink-3); }

table.bk { width: 100%; border-collapse: collapse; margin: 16px 0 12px; font-size: 16px; }
.bk th { text-align: left; font: 600 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  padding: 8px 0 6px; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ink); }
.bk th:last-child, .bk td:last-child { text-align: right; }
.bk td { padding: 8px 0; border-bottom: 1px solid var(--rule-2); font-variant-numeric: tabular-nums; }
.bk tr:last-child td { border-bottom: 1.5px solid var(--ink); }
.bk td:last-child { font: 500 15px var(--mono); }

.table2 { margin-top: 30px; }
#feed { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); font: 400 14px var(--mono); }
#feed li { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px dotted var(--rule); }
#feed li:last-child { border-bottom: 0; }
#feed li.empty { display: block; color: var(--ink-3); font-style: italic; font-family: var(--serif); }
#feed .side { font-weight: 600; font-size: 12px; letter-spacing: .1em; }
#feed .buy .side { color: var(--cyan); }
#feed .sell .side { color: var(--mag); }
#feed small { color: var(--ink-3); }
#feed .gift { color: var(--red); font-weight: 500; }

.eq2 { margin-top: 30px; padding: 18px 20px; border: 1px solid var(--ink); background: var(--card); }
.eq2-row { justify-content: flex-start; flex-wrap: wrap; font: 400 30px/1 var(--display); padding: 6px 0 10px; }
.big-frac { font-size: 1em; }
.big-frac input { width: 7.2em; font: 500 22px var(--mono); text-align: center; color: var(--ink); background: transparent; border: 0;
  border-bottom: 1.5px dashed var(--red); padding: 2px 0; outline: none; }
.big-frac input:focus { background: rgba(196, 53, 31, .06); }
.big-frac > span:last-child { font: 500 20px var(--mono); color: var(--ink-2); }
.op { color: var(--ink-2); }
.sym i { font-style: italic; }
.sym sub { font-size: .5em; font-style: normal; }
.res { display: inline-flex; align-items: baseline; gap: 8px; }
.res b { font: 400 44px/1 var(--display); font-weight: 400; color: var(--red); }
.res small { font: 500 13px var(--mono); color: var(--ink-2); }
.rg { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 6px 0; cursor: pointer; }
.rg::-webkit-slider-runnable-track { height: 1.5px; background: var(--ink); }
.rg::-moz-range-track { height: 1.5px; background: var(--ink); }
.rg::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8.5px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--red); }
.rg::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--red); }
.eq2-more { margin: 4px 0 6px; font-size: 16px; color: var(--ink-2); }
.eq2-more b { font: 500 15px var(--mono); color: var(--ink); }
.fine { margin: 6px 0 0; font: italic 400 13.5px/1.45 var(--serif); color: var(--ink-3); }

/* ---------------------------------------------------------------- §2 the experiment */
.lab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 30px; align-items: center; }
.lab-box { position: relative; aspect-ratio: 1; border: 1px solid var(--ink); background: var(--card);
  background-image: radial-gradient(circle, var(--rule) 1px, transparent 1.4px); background-size: 18px 18px; }
.lab-box img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; transition: opacity .3s, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.lab-open { opacity: 0; transform: translateY(14px) scale(.9); }
.lab-box.open .lab-closed { opacity: 0; transform: scale(1.06); }
.lab-box.open .lab-open { opacity: 1; transform: none; }
.lab-box.shake .lab-closed { animation: shake .12s linear infinite; }
@keyframes shake { 25% { transform: translate(-3px, 1px) rotate(-1.5deg); } 75% { transform: translate(3px, -1px) rotate(1.5deg); } }
.verdict { position: absolute; left: 50%; top: 12px; transform: translateX(-50%) rotate(-6deg) scale(.6); opacity: 0; white-space: nowrap;
  font: 600 18px/1 var(--mono); letter-spacing: .14em; padding: 9px 14px; border: 3px solid currentColor; border-radius: 4px; filter: url(#rough);
  transition: transform .3s cubic-bezier(.3, 1.8, .5, 1), opacity .2s; background: var(--card); }
.lab-box.open .verdict { opacity: 1; transform: translateX(-50%) rotate(-6deg) scale(1); }
.lab-box.up .verdict { color: var(--cyan); }
.lab-box.down .verdict { color: var(--mag); }
.lab-side .btn { width: 100%; }
.tally td.marks { font: 700 24px/1 var(--hand); color: var(--pencil); letter-spacing: .02em; text-align: left; padding-left: 10px; }
.tally .marks s { text-decoration-thickness: 2px; text-decoration-color: var(--red); margin-right: 8px; }
.tally tr.up td:first-child { color: var(--cyan); }
.tally tr.down td:first-child { color: var(--mag); }
.tally small { color: var(--ink-3); font-style: italic; }
.cat-says { margin: 4px 0 0; font: italic 400 17px/1.45 var(--serif); color: var(--ink-2); min-height: 3em; }

/* ---------------------------------------------------------------- §3 notebook */
.pages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin-top: 28px; }
.pg { position: relative; padding: 26px 18px 16px 30px; background-color: var(--card-2); border: 1px solid rgba(27, 24, 19, .25);
  background-image: linear-gradient(90deg, transparent 21px, rgba(196, 53, 31, .45) 21px 22.5px, transparent 22.5px),
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(0, 150, 184, .2) 27px 28px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 3px 5px 14px -6px rgba(60, 40, 10, .35); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.pg:nth-child(1) { transform: rotate(-1.4deg); } .pg:nth-child(2) { transform: rotate(1deg) translateY(10px); }
.pg:nth-child(3) { transform: rotate(-.6deg); } .pg:nth-child(4) { transform: rotate(1.5deg) translateY(6px); }
.pg:hover { transform: rotate(0) translateY(-4px); z-index: 2; }
.tape { position: absolute; left: 50%; top: -11px; width: 86px; height: 22px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(230, 210, 150, .62); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.pg:nth-child(even) .tape { transform: translateX(-50%) rotate(4deg); }
.pg-h { display: flex; justify-content: space-between; font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pg-h b { font-weight: 600; color: var(--red); border: 1.5px solid var(--red); padding: 1px 5px; border-radius: 2px; transform: rotate(-4deg); }
.pg-h b.ok { color: var(--cyan); border-color: var(--cyan); }
.pg h3 { margin: 12px 0 6px; font: 700 29px/1 var(--hand); color: var(--pencil); }
.pg p { margin: 0; font-size: 15.5px; line-height: 28px; }
.pg img { width: 54%; margin: 10px 0 0 auto; transform: rotate(4deg); }
.redact { filter: blur(3.4px); cursor: help; transition: filter .35s, background .35s; border-radius: 3px; outline: none;
  background: linear-gradient(90deg, rgba(0, 150, 184, .14), rgba(207, 42, 127, .14)); }
.redact:hover, .redact:focus, .redact.open { filter: none; background: rgba(255, 228, 120, .55); }

/* ---------------------------------------------------------------- §4 findings, appendix B */
.findings, .steps { list-style: none; counter-reset: n; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.findings li, .steps li { counter-increment: n; position: relative; padding: 16px 0 18px 54px; border-top: 1px solid var(--rule); }
.findings li::before, .steps li::before { content: counter(n); position: absolute; left: 0; top: 8px; font: italic 400 50px/1 var(--display); color: var(--red); }
.steps li::before { content: "B." counter(n); font-size: 34px; top: 16px; }
.steps li { padding-left: 60px; }
.findings h3, .steps h3 { margin: 0 0 4px; font: 600 19px var(--serif); }
.findings p, .steps p { margin: 0; font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.findings sup { color: var(--red); }

/* ---------------------------------------------------------------- appendix A: game */
.arena { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 26px; margin-top: 10px; }
.game { position: relative; aspect-ratio: 16 / 10; border: 1.5px solid var(--ink); background: var(--card); overflow: hidden; touch-action: manipulation; user-select: none; }
.game canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.g-hud { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding: 10px 14px; pointer-events: none;
  font: 600 15px var(--mono); border-bottom: 1px solid var(--rule); background: var(--glass); }
#g-lives { color: var(--red); letter-spacing: .2em; }
.g-over { position: absolute; inset: 0; display: grid; place-items: center; background: var(--glass); backdrop-filter: blur(3px); }
.g-card { text-align: center; max-width: 380px; padding: 22px; background: var(--card-2); border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--paper-3); }
.g-card img { width: 120px; margin: 0 auto 6px; }
.g-card h3 { margin: 0; font: 400 38px/1 var(--display); }
.g-card p { margin: 8px 0 16px; font-size: 16px; color: var(--ink-2); }
.g-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.g-side { display: flex; flex-direction: column; gap: 18px; }
.g-box { padding: 14px 16px; border: 1px solid var(--ink); background: var(--card); }
.lbl { display: block; font: 600 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.g-big { display: block; font: 400 64px/1 var(--display); margin-top: 4px; }
.muted { color: var(--ink-3); font-size: 14px; font-style: italic; }
.ranks { list-style: none; margin: 10px 0 0; padding: 0; font-size: 15.5px; }
.ranks li { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px dotted var(--rule); color: var(--ink-3); }
.ranks li b { font: 500 13px var(--mono); width: 34px; }
.ranks li.got { color: var(--ink); }
.ranks li.got::after { content: "✓"; margin-left: auto; color: var(--red); font-family: var(--hand); font-size: 22px; line-height: 1; }

/* ---------------------------------------------------------------- conclusion, references */
.final-in { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }
.final-art { width: 100%; transform: rotate(-3deg); }
.final-q { margin: 0 0 22px; font: 400 clamp(44px, 6vw, 76px)/1 var(--display); letter-spacing: -.01em; }
.final-q i { color: var(--red); }
.refs { max-width: var(--col); padding-top: 64px; font-size: 15px; color: var(--ink-2); }
.refs .sc { margin-top: 26px; padding-top: 10px; border-top: 1px solid var(--ink); }
.refs ol { margin: 0; padding-left: 24px; }
.refs li { margin-bottom: 6px; }
.refs li::marker { font: 500 13px var(--mono); color: var(--red); }
.refs p { margin: 0; }

/* ---------------------------------------------------------------- §2 theory: Fig. 2 */
.fig2 { padding: 16px; border: 1px solid var(--ink); background: var(--card); }
.wave-wrap { position: relative; height: 290px; cursor: crosshair; }
.wave-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave-read { position: absolute; right: 8px; top: 6px; font: 500 12.5px var(--mono); color: var(--ink-2); background: var(--card); padding: 3px 6px; }
.wave-stamp { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-7deg) scale(.6); opacity: 0; white-space: nowrap;
  font: 600 20px/1 var(--mono); letter-spacing: .16em; padding: 10px 16px; border: 3px solid currentColor; border-radius: 4px; filter: url(#rough);
  background: var(--card); transition: transform .3s cubic-bezier(.3, 1.8, .5, 1), opacity .25s; pointer-events: none; }
.wave-stamp.on { opacity: 1; transform: translate(-50%, -50%) rotate(-7deg) scale(1); }
.wave-stamp.up { color: var(--cyan); } .wave-stamp.down { color: var(--mag); }
.wave-bar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 12px 0 2px; border-top: 1px solid var(--rule); margin-top: 8px; }
.wave-stat { font: 400 14px var(--mono); color: var(--ink-2); }
.wave-stat b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.table3 { margin-top: 30px; }
.table3 .bk td:last-child { font: 400 15px var(--serif); }

/* ---------------------------------------------------------------- §5 history: timeline */
.tl { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 22px; position: relative; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 33px; height: 1.5px; background: var(--ink); }
.tl li { position: relative; padding-top: 54px; }
.tl li::before { content: ""; position: absolute; left: 0; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.tl li.real::before { background: var(--cyan); border-color: var(--cyan); }
.tl li.now::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 5px rgba(196, 53, 31, .18); }
.tl time { position: absolute; top: 0; left: 0; font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.tl h3 { margin: 0 0 4px; font: 400 25px/1.1 var(--display); }
.tl p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }

/* ---------------------------------------------------------------- §7 peer review */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rev { padding: 18px 20px; border: 1px solid var(--ink); background: var(--card); border-radius: 2px; }
.rev:nth-child(2) { transform: rotate(-.6deg); }
.rev-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font: 600 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.verdict-chip { font: 600 11.5px var(--mono); letter-spacing: .14em; padding: 4px 9px; border-radius: 999px; border: 1.5px solid currentColor; }
.verdict-chip.ok { color: var(--cyan); } .verdict-chip.no { color: var(--red); }
.verdict-chip.maybe { background: linear-gradient(90deg, var(--cyan), var(--mag)); color: var(--paper); border-color: transparent; }
.rev p { margin: 0 0 12px; font-size: 16px; line-height: 1.55; }
.rev .reply { margin: 0; padding: 10px 0 0 12px; border-top: 1px dashed var(--rule); border-left: 2px solid var(--red); font-style: italic; color: var(--ink-2); font-size: 15px; }
.rev .reply b { font-style: normal; color: var(--ink); }
.editor { margin: 22px 0 0; font: italic 400 20px var(--display); }
.editor b { font: 600 12.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; font-style: normal; color: var(--red); margin-right: 8px; }

/* ---------------------------------------------------------------- appendix C: FAQ */
.faq { max-width: 860px; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 2px; font: 400 25px/1.2 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--mono); color: var(--red); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--red); }
.faq details p { margin: 0 0 18px; max-width: var(--col); color: var(--ink-2); font-size: 17px; }

/* ---------------------------------------------------------------- cite */
.cite { position: relative; margin-bottom: 6px; }
.cite pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 400 13.5px/1.55 var(--mono); color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--red); }
.cite .copy { position: absolute; right: 10px; top: 10px; }

/* ---------------------------------------------------------------- the twin cats, in the page margins */
.twin { position: fixed; z-index: 5; width: 78px; text-align: center; cursor: crosshair; transition: opacity .25s, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.twin img { width: 62px; margin: 0 auto; filter: grayscale(1) contrast(1.2) sepia(.35); opacity: .72; animation: flick 2.6s steps(1) infinite; }
.twin span { display: block; margin-top: 2px; font: 700 17px/1 var(--hand); color: var(--pencil); }
.twin-a { left: 14px; top: 38vh; transform: rotate(-6deg); }
.twin-b { right: 14px; bottom: 16vh; transform: rotate(5deg); }
.twin-b img { animation-delay: 1.3s; }
.twin:hover img { filter: none; opacity: 1; animation: none; }
body.collapsed-a .twin-b, body.collapsed-b .twin-a { opacity: 0; transform: scale(.4); pointer-events: none; }
@keyframes flick { 0%, 100% { opacity: .72; } 47% { opacity: .25; } 50% { opacity: .72; } 52% { opacity: .35; } }

/* ---------------------------------------------------------------- misc */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 10px 16px; font: 500 14px var(--mono); color: var(--paper); background: var(--ink); box-shadow: 3px 3px 0 var(--red); transition: .25s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }
.js .pg.rv.in:nth-child(1) { transform: rotate(-1.4deg); } .js .pg.rv.in:nth-child(2) { transform: rotate(1deg) translateY(10px); }
.js .pg.rv.in:nth-child(3) { transform: rotate(-.6deg); } .js .pg.rv.in:nth-child(4) { transform: rotate(1.5deg) translateY(6px); }
.js .pg.rv.in:hover { transform: rotate(0) translateY(-4px); }

/* ================================================================ modern layer: floating pill header, soft rounded
   cards, an aurora behind the title, live chips, an observation lens for the cursor, smoother reveals */
:root { --ui: "Inter Tight", "Inter", system-ui, sans-serif; --r: 18px; --r-s: 12px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 1px 2px rgba(60, 40, 10, .06), 0 22px 44px -28px rgba(60, 40, 10, .42);
  --shadow-h: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 2px 4px rgba(60, 40, 10, .06), 0 30px 60px -30px rgba(60, 40, 10, .5); }
:root[data-box="closed"] { --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 22px 44px -26px rgba(0, 0, 0, .7);
  --shadow-h: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 30px 60px -28px rgba(0, 0, 0, .8); }

/* the header floats: a glass pill, detached from the edges */
.run { top: 12px; margin: 12px auto 0; max-width: 1180px; width: calc(100% - 32px); padding: 8px 8px 8px 14px; gap: 16px;
  border: 1px solid var(--rule); border-radius: 999px; box-shadow: var(--shadow); overflow: hidden; }
.run-l i { font-size: 22px; }
.run-l span { font-size: 14px; }
.run nav { gap: 4px; }
.run nav a { font: 500 14px var(--ui); letter-spacing: 0; padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.run nav a::after { display: none; }
.run nav a:hover { background: var(--rule-2); }
.run nav a.on { background: var(--ink); color: var(--paper); }
.progress { bottom: 0; height: 2px; }
.lid { font: 500 13px var(--ui); }
.xbtn { border-width: 1px; border-color: var(--rule); }

/* buttons: pills, a soft lift instead of the hard offset shadow */
.btn { font: 600 15px var(--ui); letter-spacing: -.005em; text-transform: none; border-radius: 999px; padding: 11px 20px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-ink { box-shadow: 0 8px 22px -10px rgba(27, 24, 19, .55), 0 0 0 0 var(--red); }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(27, 24, 19, .6), 0 0 0 4px rgba(196, 53, 31, .18); }
.btn-ink:active { transform: translateY(0); box-shadow: 0 4px 12px -6px rgba(27, 24, 19, .5); }
.btn-line { border-width: 1px; border-color: var(--rule); background: var(--card); }
.btn-line:hover { border-color: var(--ink); }
.copy { border-radius: 999px; font: 600 12px var(--ui); letter-spacing: .02em; text-transform: none; padding: 6px 12px; }

/* labels and small caps: the modern sans, not the typewriter */
.sc, .lbl, .bk th, .t-note, .live, .kw span, .pg-h, .rev-h, .journal, .editor b, .tl time { font-family: var(--ui); letter-spacing: .08em; }
.h .num { font: 600 13px var(--ui); letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--rule); color: var(--red); transform: translateY(-8px); }

/* cards: rounded, hairline border, soft depth, a lift on hover */
.fig1, .table1, .eq2, .fig2, .rev, .g-box, .g-card, .lab-box, .game, .cite pre, .ca {
  border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow); }
.ca, .cite pre { border-radius: var(--r-s); }
.ca { border-style: solid; }
.cite pre { border-left: 3px solid var(--red); }
.fig1 { transform: rotate(.4deg); padding: 14px; }
.fig1 .cat { border-radius: 12px; overflow: hidden; }
.table1, .eq2, .fig2, .rev, .g-box { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.table1:hover, .eq2:hover, .fig2:hover, .rev:hover, .g-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.rev:nth-child(2):hover { transform: rotate(-.6deg) translateY(-3px); }
.lab-box, .game { overflow: hidden; }
.g-card { border-radius: var(--r); }
.gauge { border-radius: 999px; overflow: hidden; border-color: var(--rule); height: 12px; }
.gauge div { border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--mag)); }
.verdict-chip { font-family: var(--ui); }
.faq details { padding: 0 6px; border-radius: 12px; transition: background .25s; }
.faq details:hover, .faq details[open] { background: var(--card); }
.pg { border-radius: 6px; }

/* the aurora: soft cyan / magenta light behind the title, drifting */
.title-block { isolation: isolate; }
.aurora { position: absolute; inset: -40px -10vw auto; height: 620px; z-index: -1; pointer-events: none; filter: blur(70px); opacity: .55; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: var(--blend); }
.aurora .a1 { width: 520px; height: 420px; left: 4%; top: 60px; background: rgba(0, 150, 184, .45); animation: drift1 16s ease-in-out infinite; }
.aurora .a2 { width: 480px; height: 420px; left: 30%; top: 20px; background: rgba(207, 42, 127, .38); animation: drift2 19s ease-in-out infinite; }
.aurora .a3 { width: 420px; height: 360px; right: 6%; top: 260px; background: rgba(201, 154, 91, .45); animation: drift1 22s ease-in-out infinite reverse; }
:root[data-box="closed"] .aurora { opacity: .35; }
@keyframes drift1 { 50% { transform: translate(60px, 40px) scale(1.1); } }
@keyframes drift2 { 50% { transform: translate(-50px, 50px) scale(.92); } }

/* live chips under the authors */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 30px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; font: 500 13.5px var(--ui); color: var(--ink-2);
  background: color-mix(in srgb, var(--card) 72%, transparent); border: 1px solid var(--rule); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.chip b { font: 600 13.5px var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.chip-hl { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.chip-hl b { color: var(--paper); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(196, 53, 31, .5); animation: ping 1.6s infinite; }

/* the observation lens (fine pointers only) */
.lens { position: fixed; left: 0; top: 0; z-index: 60; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .25s; }
.lens.on { opacity: 1; }
.lens::before { content: ""; position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--ink); transition: all .3s cubic-bezier(.2, 1.2, .3, 1); }
.lens.big::before { left: -26px; top: -26px; width: 52px; height: 52px; border-color: var(--red); background: rgba(196, 53, 31, .06); }
.lens span { position: absolute; left: 32px; top: -9px; font: 600 11px var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--red);
  white-space: nowrap; opacity: 0; transition: opacity .2s; }
.lens.big span:not(:empty) { opacity: 1; }

/* reveals: a little blur, then sharp (like a measurement) */
.js .rv { filter: blur(6px); transition: opacity .7s, transform .7s cubic-bezier(.2, .8, .2, 1), filter .7s; }
.js .rv.in { filter: none; }


/* ---------------------------------------------------------------- print details: preprint stamp, running heads,
   crop and registration marks, one coffee ring. Faint on purpose. */
.arxiv { position: fixed; z-index: 4; left: 26px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); transform-origin: center;
  white-space: nowrap; font: 500 15px var(--mono); letter-spacing: .02em; color: var(--ink-3); opacity: .55; pointer-events: none; }
.arxiv span { color: var(--ink-2); }
.paper { counter-reset: page 1; }
.sec { counter-increment: page; }
.sec > .h { position: relative; margin-top: 26px; }
.sec > .h::before { content: "Phys. Rev. Monad 1, 0.4 (2026)"; position: absolute; left: 0; top: -30px; font: 500 11px var(--ui);
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.sec > .h::after { content: counter(page); position: absolute; right: 0; top: -30px; font: italic 400 16px/1 var(--display); color: var(--ink-3); }
.crop { position: absolute; width: 22px; height: 22px; pointer-events: none; opacity: .5; }
.crop.tl { left: -30px; top: 14px; border-left: 1px solid var(--ink); border-top: 1px solid var(--ink); }
.crop.tr { right: -30px; top: 14px; border-right: 1px solid var(--ink); border-top: 1px solid var(--ink); }
.reg { position: absolute; right: -36px; top: 300px; width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1; opacity: .35; pointer-events: none; }
.ring { position: absolute; right: -70px; top: 118px; width: 190px; height: 190px; z-index: -1; stroke: #8c5f28; opacity: .22;
  mix-blend-mode: var(--blend); pointer-events: none; transform: rotate(-18deg); }
:root[data-box="closed"] .ring { stroke: #c99a5b; opacity: .12; }
:root[data-box="closed"] .arxiv { opacity: .4; }
.twin-a { top: auto; bottom: 7vh; left: 46px; }
@media (max-width: 1240px) { .arxiv, .crop, .reg { display: none; } .ring { right: -20px; } }
@media (max-width: 640px) { .ring { width: 130px; height: 130px; right: -40px; top: 90px; } .sec > .h::before { font-size: 10px; } }
/* ---------------------------------------------------------------- responsive */
@media (max-width: 1240px) { .twin { display: none; } }
@media (max-width: 1080px) {
  .run nav { display: none; }
  .run .lid { margin-left: auto; }
  .tl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
  .tl::before { display: none; }
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .rev:nth-child(2) { transform: none; }
  .grid2 { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .fig1 { max-width: 480px; margin: 0 auto; }
  .h1 { display: none; }
  .margin { display: flex; flex-wrap: wrap; gap: 0 26px; align-items: flex-start; }
  .margin .note { flex: 1 1 240px; }
  .pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .findings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arena { grid-template-columns: minmax(0, 1fr); }
  .g-side { flex-direction: row; } .g-side .g-box { flex: 1; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .run { padding: 10px 16px; gap: 10px; }
  .run-l span { display: none; }
  .lid { padding: 4px; }
  .lid-t { display: none; }
  .tl { grid-template-columns: minmax(0, 1fr); }
  .wave-wrap { height: 230px; }
  .faq summary { font-size: 21px; }
  .run .btn { padding: 10px 12px; font-size: 13px; }
  .paper { padding: 0 16px 30px; }
  .journal { font-size: 10.5px; letter-spacing: .08em; }
  .journal .mid { display: none; }
  .super { margin-top: 18px; font-size: clamp(96px, 34vw, 150px); }
  .super .s-c { transform: translate(-5px, -3px); } .super .s-m { transform: translate(5px, 3px); }
  @keyframes drift-c { 50% { transform: translate(-7px, -1px); } }
  @keyframes drift-m { 50% { transform: translate(7px, 1px); } }
  .abstract p { text-align: left; }
  .body { text-align: left; }
  .eq { font-size: 21px; }
  .eq-n { display: none; }
  .cta .btn { flex: 1 1 auto; }
  .st1 { right: 6px; bottom: 104px; }
  .h { flex-wrap: wrap; gap: 4px 12px; }
  .lab { grid-template-columns: minmax(0, 1fr); }
  .pages, .findings, .steps { grid-template-columns: minmax(0, 1fr); }
  .pg img { width: 40%; }
  .eq2-row { font-size: 24px; gap: 10px; }
  .big-frac input { width: 6.4em; font-size: 18px; }
  .big-frac > span:last-child { font-size: 15px; }
  .res b { font-size: 36px; }
  .game { aspect-ratio: 3 / 4; }
  .g-side { flex-direction: column; }
  .final-in { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .final-art { width: 60%; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .run { padding: 6px 6px 6px 10px; }
}
@media (max-width: 640px) {
  .run { width: calc(100% - 20px); top: 8px; margin-top: 8px; gap: 8px; }
  .chips { margin: -16px 0 24px; }
  .chip { font-size: 12.5px; padding: 6px 11px; }
  .aurora { height: 460px; filter: blur(50px); }
  .aurora .a1 { width: 300px; height: 260px; } .aurora .a2 { width: 280px; height: 260px; left: 40%; } .aurora .a3 { display: none; }
  .h .num { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) { .js .rv { filter: none; } }
