@import url(fonts/fonts.css);

:root {
  --paper: #f2efe8;
  --paper2: #e9e5dc;
  --ink: #121212;
  --soft: #66625a;
  --rule: rgba(18, 18, 18, 0.14);
  --red: #ff4a1c;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { /* paper grain from a fine dot grid */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: 0.35; mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(0, 0, 0, 0.09) 0.6px, transparent 0.7px); background-size: 3px 3px;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.page { container-type: inline-size; }
.wrap { width: min(1440px, 100% - 64px); margin: 0 auto; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }

.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ——— masthead ——— */
.mast { position: sticky; top: 0; z-index: 40; background: color-mix(in oklab, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.mast .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; }
.mast .name { font: 500 15px/1 var(--sans); text-decoration: none; letter-spacing: -0.01em; }
.mast .mid { font: 400 15px/1 var(--sans); color: var(--soft); display: flex; align-items: center; gap: 10px; }
.mast .mid i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.mast nav { justify-self: end; display: flex; gap: 2px; }
.mast nav a { text-decoration: none; height: 44px; padding: 0 14px; display: flex; align-items: center; border-radius: 999px; font-weight: 500; font-size: 15px; transition: background 0.2s; }
.mast nav a:hover { background: rgba(0, 0, 0, 0.06); }
.mast nav a.tg { gap: 8px; margin-left: 10px; padding: 0 18px 0 15px; background: var(--ink); color: var(--paper); transition: background 0.25s; }
.mast nav a.tg:hover { background: var(--red); }

/* ——— hero ——— */
.hero { padding: 7vh 0 0; }
.hero h1 { font: 400 clamp(60px, 11.5cqi, 210px)/0.9 var(--serif); letter-spacing: -0.035em; margin: 0; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: 0.28em; margin-bottom: -0.22em; }
.hero h1 .ln > span { display: inline-block; transform: translateY(calc(100% + 0.35em)); transition: transform 1.2s var(--ease); }
.hero.go h1 .ln > span { transform: none; }
.hero h1 .ln:nth-child(2) > span { transition-delay: 0.12s; }
.hero h1 .ln:nth-child(3) > span { transition-delay: 0.24s; }
.hero h1 em { color: var(--red); }
.hero .row { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 40px; padding: 48px 0 56px; border-bottom: 1px solid var(--ink); margin-top: 40px; }
.smallcaps { font: 500 12px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
.hero .row p { margin: 0; font-size: 20px; line-height: 1.5; }
.hero .row .go { justify-self: end; align-self: end; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 500; transition: gap 0.3s var(--ease), background 0.3s; }
.link-arrow:hover { gap: 16px; background: var(--red); }

/* ——— numbers ——— */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); }
.nums div { padding: 40px 28px 36px; border-left: 1px solid var(--rule); }
.nums div:first-child { border-left: 0; padding-left: 0; }
.nums b { display: block; font: 400 clamp(56px, 7cqi, 120px)/0.9 var(--serif); letter-spacing: -0.03em; margin-bottom: 14px; }
.nums b small { font-size: 0.45em; color: var(--red); margin-left: 0.04em; }
/* The label only: the counter span inside <b> keeps the big serif (a bare `.nums span`
   once shrank it to 15px and squeezed the digits together with b's inherited letter-spacing). */
.nums div > span { color: var(--soft); font-size: 15px; }

/* ——— ticker ——— */
/* Sits on the content column and melts into the paper at both ends of it. */
.ticker { border-bottom: 1px solid var(--rule); padding: 18px 0; white-space: nowrap; }
.ticker .rail {
  overflow: hidden;
  --fade: clamp(48px, 8cqi, 140px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
.ticker .rail > div { display: inline-flex; gap: 48px; animation: tick 40s linear infinite; padding-right: 48px; }
.ticker span { font: italic 400 34px/1 var(--serif); }
.ticker span::after { content: '✳'; font-style: normal; color: var(--red); margin-left: 48px; font-size: 22px; vertical-align: middle; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ——— index ——— */
.sec-h { display: flex; justify-content: space-between; align-items: end; padding: 110px 0 28px; border-bottom: 1px solid var(--ink); }
.sec-h h2 { font: 400 clamp(44px, 6cqi, 96px)/0.95 var(--serif); letter-spacing: -0.03em; margin: 0; }
.index { list-style: none; margin: 0 0 40px; padding: 0; }
.index a {
  display: grid; grid-template-columns: 70px 1.5fr 1fr 70px 1.2fr 40px; align-items: center; gap: 20px;
  padding: 26px 16px; margin: 0 -16px; border-bottom: 1px solid var(--rule); text-decoration: none; position: relative; overflow: hidden;
}
.index a::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform 0.45s var(--ease); z-index: -1; }
.index a:hover::before { transform: scaleY(1); }
.index a > * { transition: color 0.3s, transform 0.45s var(--ease); }
.index a:hover > * { color: var(--paper); }
.index a:hover .t { transform: translateX(14px); }
.index .no { font: 500 13px/1 var(--sans); color: var(--soft); letter-spacing: 0.08em; }
.index .t { font: 400 clamp(32px, 3.4cqi, 54px)/1 var(--serif); letter-spacing: -0.02em; }
.index .c, .index .y { color: var(--soft); font-size: 15px; }
.index .m { font-size: 15px; line-height: 1.4; }
.index .ar { justify-self: end; font-size: 22px; }
.index .draft { font: 500 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: var(--paper2); color: var(--soft); margin-left: 10px; vertical-align: middle; }
.peek { position: fixed; left: 0; top: 0; width: 360px; aspect-ratio: 16 / 10; z-index: 30; pointer-events: none; border-radius: 10px; overflow: hidden;
  opacity: 0; transform: translate(-50%, -50%) scale(0.6) rotate(-4deg); transition: opacity 0.3s ease, transform 0.5s var(--ease); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); }
.peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* ——— cases ——— */
.case { display: grid; grid-template-columns: minmax(340px, 0.8fr) 1.2fr; gap: 64px; padding: 90px 0 110px; border-top: 1px solid var(--ink); }
.case .side { position: sticky; top: 100px; align-self: start; }
.case .kick { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; }
.case .kick .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.case h2 { font: 400 clamp(56px, 6.5cqi, 120px)/0.9 var(--serif); letter-spacing: -0.035em; margin: 0 0 18px; }
.case .tl { font: italic 400 clamp(24px, 2.2cqi, 34px)/1.15 var(--serif); margin: 0 0 32px; color: var(--soft); }
.case dl { display: grid; grid-template-columns: 90px 1fr; gap: 10px 16px; margin: 0 0 34px; font-size: 15px; }
.case dt { color: var(--soft); }
.case dd { margin: 0; }
.case .mets { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); margin-bottom: 30px; }
.case .mets div { padding: 20px 16px 18px 0; border-bottom: 1px solid var(--rule); }
.case .mets div:nth-child(odd) { border-right: 1px solid var(--rule); }
.case .mets div:nth-child(even) { padding-left: 18px; }
.case .mets b { display: block; font: 400 clamp(38px, 3.6cqi, 60px)/0.95 var(--serif); letter-spacing: -0.02em; margin-bottom: 6px; }
.case .mets span { font-size: 14px; color: var(--soft); line-height: 1.35; display: block; }
.case .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; font-weight: 500; font-size: 16px; transition: background 0.25s, color 0.25s, gap 0.3s var(--ease); }
.pill.solid { background: var(--ink); color: var(--paper); }
.pill.solid:hover { background: var(--c); color: #fff; gap: 14px; }
.pill.line { box-shadow: inset 0 0 0 1px var(--ink); background: transparent; }
.pill.line:hover { background: var(--ink); color: var(--paper); }

.main > * + * { margin-top: 56px; }
.screen { position: relative; border-radius: 14px; overflow: hidden; background: #111; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06); aspect-ratio: 16 / 9; }
.screen > img, .screen > video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* A still cover keeps its own proportions, so nothing is cut; on hover the whole frame grows, not the picture inside it. */
.screen.still { aspect-ratio: auto; }
.screen.still > img, .screen.still > video { height: auto; }
.screen:not(.live):hover { transform: scale(1.015); }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; opacity: 0; transition: opacity 0.5s ease; }
.screen.live iframe { opacity: 1; }
.screen .playbtn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 104px; height: 104px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); transition: transform 0.4s var(--ease), background 0.3s, opacity 0.4s; }
.screen .playbtn svg { width: 30px; height: 30px; margin-left: 4px; }
.screen .playbtn:hover { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.screen.live .playbtn { opacity: 0; transform: translate(-50%, -50%) scale(0.4); pointer-events: none; }
.screen .ph { position: absolute; inset: 0; display: grid; place-items: center; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 14px, transparent 14px 28px), color-mix(in oklab, var(--c) 30%, #1a1a1a); }
.screen .ph span { font: italic 400 clamp(60px, 8cqi, 140px)/1 var(--serif); color: rgba(255, 255, 255, 0.9); }
.screen .full { position: absolute; right: 14px; bottom: 14px; height: 44px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 14px; font-weight: 500; opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s; backdrop-filter: blur(6px); }
.screen.live .full { opacity: 1; transform: none; }
.prose { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.prose .lede { grid-column: 1 / -1; font: 400 clamp(28px, 2.6cqi, 40px)/1.2 var(--serif); letter-spacing: -0.01em; margin: 0; }
.prose h3 { margin: 0 0 10px; }
.prose p { margin: 0; font-size: 18px; line-height: 1.6; }
.revs h3 { margin: 0 0 18px; }
.revs > div { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.revs figure { margin: 0; padding: 24px 22px 4px 0; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.revs figure + figure { padding-left: 22px; border-left: 1px solid var(--rule); }
.revs blockquote { margin: 0; font: italic 400 clamp(22px, 1.9cqi, 28px)/1.2 var(--serif); }
.revs blockquote::before { content: '“'; }
.revs blockquote::after { content: '”'; }
.revs figcaption a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--soft); text-decoration: none; transition: color 0.25s; }
.revs figcaption a:hover { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 9px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); font-size: 14px; }
.strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.strip button { all: unset; cursor: zoom-in; flex: 0 0 auto; height: 260px; border-radius: 10px; overflow: hidden; scroll-snap-align: start; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); transition: transform 0.4s var(--ease); background: #ddd; }
.strip button:hover { transform: translateY(-4px); }
.strip img { height: 100%; width: auto; }
.nda { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nda div { aspect-ratio: 16 / 10; border-radius: 10px; display: grid; place-items: center; background: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.04) 0 12px, transparent 12px 24px), var(--paper2); color: var(--soft); font: 500 12px/1 var(--sans); letter-spacing: 0.14em; }
.nda div span { display: flex; gap: 8px; align-items: center; }
/* Effects that bleed on every side stop short of the screen edge; upward the cards stay open. */
.live-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; overflow-x: clip; overflow-clip-margin: 12px; }
/* No box shadow here: layers.js lays one on the paper under the moving card. The corner is the game's
   (14 of a 220 × 308 card); the top margin is the 40 card px a character may rise over the card. */
.live-cards .card-live { border-radius: 6.364% / 4.545%; margin-top: 18.2%; }
/* The video is recorded on the same paper tone as the panel, so its edges disappear */
.anim { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; padding: 30px; border-radius: 14px; background: var(--paper2); }
.anim video { width: min(560px, 100%); aspect-ratio: 1000 / 1080; justify-self: center; display: block; }
.anim h4 { font: 400 clamp(30px, 2.6cqi, 42px)/1.05 var(--serif); margin: 12px 0 0; }
/* Turntables: columns sized by each figure's aspect, so every figure stands at the same height on one line.
   The shadow sits on the panel under the base; the frames themselves are transparent. */
.spin { display: grid; gap: 26px; padding: 30px; border-radius: 14px; background: var(--paper2); }
.spin h4 { font: 400 clamp(30px, 2.6cqi, 42px)/1.05 var(--serif); margin: 12px 0 0; }
.spin .figs { display: grid; gap: 4%; align-items: end; }
.spin .fig { position: relative; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.spin .fig.held { cursor: grabbing; }
.spin .fig canvas { position: relative; display: block; width: 100%; height: 100%; }
.spin .fig::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: -3%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 30, 20, 0.28), transparent); }
.xp { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: 30px; border-radius: 14px; background: var(--paper2); }
.xp .stage { aspect-ratio: 800 / 815; width: min(420px, 100%); justify-self: center; }
.xp h4 { font: 400 clamp(30px, 2.6cqi, 42px)/1.05 var(--serif); margin: 0 0 22px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 48px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 2px; background: var(--ink); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px var(--paper2), 0 0 0 5px var(--ink); }
.range::-moz-range-track { height: 2px; background: var(--ink); }
.range::-moz-range-thumb { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--c); }
.scale { display: flex; justify-content: space-between; }

/* ——— about ——— */
.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; padding: 90px 0 110px; border-top: 1px solid var(--ink); }
.portrait { aspect-ratio: 4 / 5; border-radius: 12px; background: #151515; position: relative; overflow: hidden; display: grid; place-items: center; }
.portrait::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 9px); }
.portrait span { font: italic 400 clamp(140px, 16cqi, 280px)/1 var(--serif); color: var(--paper); position: relative; }
.portrait span i { color: var(--red); font-style: normal; }
.about .q { font: 400 clamp(44px, 5cqi, 84px)/0.98 var(--serif); letter-spacing: -0.03em; margin: 0 0 36px; }
.about .q em { color: var(--red); }
.about p { font-size: 20px; line-height: 1.55; margin: 0 0 18px; max-width: 36em; }
.path { margin: 40px 0; border-top: 1px solid var(--rule); }
.path div { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.path b { font-weight: 500; }
.skl { font: italic 400 28px/1.35 var(--serif); }
.skl span:not(:last-child)::after { content: ' · '; color: var(--red); font-style: normal; }
.portrait.photo::before { display: none; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about .portrait { align-self: start; }
.life { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.life > div { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #ddd; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); transition: transform 0.4s var(--ease); }
.life > div:hover { transform: translateY(-4px); }
.life video, .life img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ——— contact ——— */
.contact { border-top: 1px solid var(--ink); padding: 100px 0 60px; }
.contact h2 { font: 400 clamp(90px, 18cqi, 320px)/0.85 var(--serif); letter-spacing: -0.05em; margin: 0 0 50px; }
.contact h2 a { text-decoration: none; background: linear-gradient(var(--red), var(--red)) 0 92% / 0 6px no-repeat; transition: background-size 0.6s var(--ease); }
.contact h2 a:hover { background-size: 100% 6px; }
.contact .row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.contact .row a { padding: 26px 0; text-decoration: none; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--rule); margin-right: 28px; font-size: 18px; transition: color 0.3s; }
.contact .row a:hover { color: var(--red); }
.contact .row small { display: block; color: var(--soft); font-size: 13px; margin-bottom: 4px; }
.colophon { display: flex; justify-content: space-between; color: var(--soft); font-size: 13px; padding: 40px 0; }

/* Edit mode — only when the page is opened from the dashboard */
.edit-toggle { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 15px/1 var(--sans); cursor: pointer; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2); transform: translateY(calc(100% + 40px)); transition: transform 0.6s var(--ease), background 0.3s; }
.edit-toggle.in { transform: none; }
.editing .edit-toggle { background: var(--red); color: #fff; }
.edit-toggle.failed { background: #b3261e; color: #fff; }
.editing [data-edit] { cursor: text; -webkit-user-select: text; user-select: text; -webkit-user-drag: none; outline: 1px dashed transparent; outline-offset: 3px; border-radius: 2px; transition: outline-color 0.2s, outline-offset 0.2s; }
.editing [data-edit]:hover { outline-color: color-mix(in oklab, currentColor 55%, transparent); }
.editing [data-edit]:empty { display: inline-block; min-width: 1.2em; min-height: 1em; outline-color: color-mix(in oklab, currentColor 35%, transparent); }
.editing [data-edit].is-editing { outline: 2px solid var(--red); outline-offset: 4px; }
.editing a, .editing button { -webkit-user-drag: none; }
.editing .hero h1 .ln { overflow: visible; }
.editing .index a::before { transform: scaleY(0); }
.editing .index a:hover > * { color: inherit; }
/* Reordering a list (edit.js): the picked item rides the pointer, the rest slide aside */
.editing [data-order] { scroll-snap-type: none; -webkit-user-select: none; user-select: none; border-radius: 12px; }
.editing [data-order] > * { cursor: grab; }
.editing [data-order] img { -webkit-user-drag: none; }
.reordering > * { transition: transform 0.32s var(--ease); }
.reordering > :hover { transform: none; }
/* The strip scrolls, so it clips anything outside the item: the ring is drawn inside */
.reordering > .lifted { position: relative; z-index: 2; outline: 2px solid var(--red); outline-offset: -2px; transition: box-shadow 0.2s; box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.45); }
.reordering > .lifted.settling { transition: transform 0.32s var(--ease), box-shadow 0.32s; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.placing > * { transition: none !important; }
body.grabbing, body.grabbing * { cursor: grabbing !important; }
[data-order].saved { animation: edit-saved 1.1s var(--ease); }
[data-order].failed { animation: edit-failed 1.4s ease; }
[data-edit].saved { animation: edit-saved 1.1s var(--ease); }
[data-edit].failed { animation: edit-failed 1.4s ease; }
@keyframes edit-saved { from { outline: 2px solid #1f9d63; outline-offset: 2px; } to { outline: 2px solid transparent; outline-offset: 10px; } }
@keyframes edit-failed { 0%, 60% { outline: 2px solid #b3261e; outline-offset: 3px; } 100% { outline: 2px solid transparent; outline-offset: 3px; } }

@container (max-width: 1100px) {
  .index a { grid-template-columns: 50px 1.4fr 1fr 40px; }
  .index .c, .index .y { display: none; }
}
@container (max-width: 960px) {
  .case, .about { grid-template-columns: 1fr; gap: 40px; }
  .case .side { position: relative; top: 0; }
  .hero .row { grid-template-columns: 1fr; }
  .hero .row .go { justify-self: start; }
  .nums { grid-template-columns: 1fr 1fr; }
  .nums div:nth-child(3) { border-left: 0; padding-left: 0; }
  .mast .mid { display: none; }
  .mast .wrap { grid-template-columns: 1fr auto; }
  .contact .row { grid-template-columns: 1fr; }
  .life { grid-template-columns: repeat(5, 36%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
  .life > div { scroll-snap-align: start; }
}
@container (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .prose, .xp, .anim, .nda, .revs > div { grid-template-columns: 1fr; }
  /* Three in a row are thumb-sized on a phone: two on top, the widest figure alone under them. */
  .spin { padding: 22px; }
  .spin .figs { grid-template-columns: 1fr 1fr !important; row-gap: 26px; }
  .spin .fig:nth-child(2) { grid-column: 1 / -1; order: 3; width: 80%; justify-self: center; }
  .revs figure + figure { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .revs figure { padding-bottom: 20px; }
  .live-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .life { grid-template-columns: repeat(5, 62%); }
  .index a { grid-template-columns: 36px 1fr 30px; }
  .index .m { display: none; }
  .mast nav a:not(.tg) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker .rail > div { animation: none; }
  .rv { opacity: 1; transform: none; }
  .hero h1 .ln > span { transform: none; }
}
