/* RAD-GEN.001, public site. Design D: the paint leads, words stay small.
 *
 * Tokens follow the house styles: Playfair Display + Space Mono (unsubscribe.llc), warm
 * paper and soft ink (CoCA), uncropped plates with wall labels (jesse.do).
 *
 * Naming rule: every class belongs to a component and carries its prefix
 * (look-, ed-, cell-, sheet-, form-, cart-, wl-, about-, dv-, reg-). No bare .note,
 * .label, .meta or .title. A collision between two of those broke the reserve sheet
 * on phones once (2026-11-10). Admin keeps its own frozen sheet, admin-legacy.css.
 */
:root {
  --bg: #F7F6F5; --ink: #0A0A0A; --paper: #FFFFFF; --tint: #EFEDEA;
  --muted: #6B6B6B; --soft: #B9B6B1; --hair: rgba(10, 10, 10, .18); --red: #E30613;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --mono: 'Space Mono', ui-monospace, Menlo, monospace;
  --pad: clamp(16px, 4vw, 56px); --max: 1320px; --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.is-locked { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--serif);
  font-size: clamp(17px, 16px + .25vw, 19px); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video, svg, canvas { max-width: 100%; height: auto; }
p, h1, h2, h3, h4, li, figcaption, a, dd, dt, td, th, label { overflow-wrap: anywhere; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration-color: var(--hair); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; border-radius: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.is-ink :focus-visible, .zv :focus-visible, .cart :focus-visible { outline-color: var(--bg); }
[hidden] { display: none !important; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.is-ink { background: var(--ink); color: var(--bg); }

/* ---------- nav and footer ---------- */
.site-nav .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; padding-block: 16px; }
.site-nav-brand { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-decoration: none; }
.site-nav-links { display: flex; flex-wrap: wrap; gap: 4px 22px; min-width: 0; }
.site-nav-links a { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding-block: 4px; border-bottom: 1px solid transparent; }
.site-nav-links a:hover, .site-nav-links a[aria-current] { border-bottom-color: var(--ink); }
.site-foot { border-top: 1px solid var(--hair); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 22px calc(28px + env(safe-area-inset-bottom));
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.site-foot span { min-width: 0; }
.site-foot a { text-decoration: none; border-bottom: 1px solid transparent; }
.site-foot a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- type and buttons ---------- */
.kicker { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.lede { font-size: clamp(19px, 17px + .7vw, 26px); line-height: 1.4; text-wrap: pretty; max-width: 30em; }
.prose { max-width: 34em; text-wrap: pretty; }
.prose p + p, .prose p + h3, .prose h3 + p { margin-top: 1em; }
.prose strong, .prose b, .pairs-head strong, .pairs-head b { font-weight: inherit; }
.prose .cp { font-style: normal; }
.prose h3 { margin-top: 1.8em; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.prose .src { margin-top: 1.6em; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.is-ink .prose .src { color: var(--soft); }
.prose a { text-decoration-color: currentColor; }
.btn { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; text-align: center; padding: 13px 18px; min-height: 44px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); transition: background .18s, color .18s; }
.btn:hover { background: var(--bg); color: var(--ink); }
/* Unavailable but still readable: a pale fill, not a faded button. */
.btn:disabled, .btn:disabled:hover { background: #D6D3CE; border-color: #D6D3CE; color: #3A3A3A; cursor: not-allowed; }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--bg); }
.btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.is-ink .btn { border-color: var(--bg); background: var(--bg); color: var(--ink); }
.is-ink .btn:hover { background: transparent; color: var(--bg); }
.is-ink .btn-quiet { background: transparent; color: var(--bg); border-color: var(--bg); }
.is-ink .btn-quiet:hover { background: var(--bg); color: var(--ink); }

/* ---------- wall label ---------- */
.wl { display: grid; gap: 6px; justify-items: start; }
.wl-no { font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .14em; }
.wl-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.7; }
.is-ink .wl-meta { color: var(--soft); }
.wl-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 7px; vertical-align: 1px; }

/* ---------- plate: an uncropped photograph you can open ---------- */
.plate { display: block; position: relative; width: 100%; line-height: 0; cursor: zoom-in; outline: 1px solid rgba(10, 10, 10, .14); background: var(--tint); }
.plate img { display: block; width: 100%; height: auto; }
.plate-tab { position: absolute; left: 0; bottom: 0; background: var(--bg); color: var(--ink); font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1; padding: 9px 11px; transition: background .18s, color .18s; }
.plate:hover .plate-tab, .plate:focus-visible .plate-tab { background: var(--ink); color: var(--bg); }

/* ---------- black band ---------- */
.band { background: var(--ink); color: var(--bg); }
.band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding-block: 14px 16px; }
.band-title { font-weight: 400; font-style: italic; font-size: clamp(26px, 4vw, 36px); line-height: 1.1; min-width: 0; }
.band-count { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: #C9C6C1; white-space: nowrap; }
.band-hero .wrap { flex-direction: column; align-items: flex-start; gap: 14px; padding-block: clamp(18px, 3vw, 34px); }
.band-hero h1 { font-weight: 400; font-size: clamp(40px, 8vw, 120px); line-height: 1; letter-spacing: -.02em; min-width: 0; }
.band-page h1 { font-weight: 400; font-size: clamp(36px, 6vw, 84px); line-height: 1; letter-spacing: -.02em; min-width: 0; }

/* ---------- home: drifting crop, intro ---------- */
.drift { position: relative; height: clamp(300px, 62svh, 680px); overflow: hidden; background: #2B2A20; }
.drift img { position: absolute; left: 0; top: 0; width: max(150%, 1300px); max-width: none; height: auto;
  animation: drift 60s ease-in-out infinite alternate; will-change: transform; }
@keyframes drift { from { transform: translate3d(-2%, -3%, 0); } to { transform: translate3d(-32%, -20%, 0); } }
.home-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px clamp(28px, 5vw, 80px); align-items: end; padding-block: clamp(32px, 5vw, 72px); }
.home-intro-side { display: grid; gap: 14px; justify-items: start; }
.home-intro-price { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .home-intro { grid-template-columns: minmax(0, 1fr); } }

/* ---------- home: the scroll-scrubbed close looks ---------- */
.look { position: relative; background: var(--ink); height: calc(100svh + var(--stops, 3) * 95svh); }
.look-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--ink); }
.look-stage > img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; will-change: transform; user-select: none; -webkit-user-select: none; }
.look-note, .look-acts { position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); display: flex; gap: 6px; margin: 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; line-height: 1; }
.look-note { left: 14px; max-width: calc(100% - 200px); }
.look-note span, .look-acts button { background: rgba(10, 10, 10, .62); color: var(--bg); padding: 8px 9px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.look-note-text { transition: opacity .25s; }
.look-acts { right: 14px; }
.look-acts button { font: inherit; letter-spacing: inherit; text-transform: inherit; min-height: 30px; transition: background .18s, color .18s; }
.look-acts button:hover { background: var(--bg); color: var(--ink); }
@media (max-width: 520px) { .look-note { max-width: calc(100% - 28px); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 40px); } }

/* ---------- the edition grid ---------- */
.ed-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: clamp(18px, 3vw, 30px); }
.ed-bar-note { min-width: 0; flex: 1 1 18em; font-size: 16px; color: var(--muted); }
.ed-grid { --cols: 5; --gap-x: 20px; --gap-y: 28px; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap-y) var(--gap-x); padding-bottom: clamp(48px, 8vw, 110px); }
@media (max-width: 1000px) { .ed-grid { --cols: 4; } }
@media (max-width: 700px) { .ed-grid { --cols: 3; --gap-x: 10px; --gap-y: 18px; } }
.ed-loading { padding: 60px 0; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cell { display: block; min-width: 0; text-align: left; position: relative; }
.cell-im { display: block; position: relative; aspect-ratio: 1; background: var(--tint); outline: 1px solid rgba(10, 10, 10, .1); overflow: hidden; }
.cell-im img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cell:hover .cell-im img { transform: scale(1.035); }
.cell-q { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: clamp(36px, 6vw, 72px); line-height: 1; color: var(--muted); transition: transform .5s var(--ease); }
.cell:hover .cell-q { transform: scale(1.08); }
.cell.is-special .cell-im { background: var(--ink); outline-color: var(--ink); }
.cell.is-special .cell-q { color: var(--bg); }
.cell-cap { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; }
.cell-cap b { font-weight: 700; white-space: nowrap; }
.cell-state { color: var(--muted); min-width: 0; text-align: right; }
.cell-tick { position: absolute; top: 0; right: 0; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 12px; line-height: 1; padding: 7px 8px; display: none; }
.cell.is-picked .cell-tick { display: block; }
.cell.is-picked .cell-im { outline: 2px solid var(--ink); }
.ed.is-selecting .cell.is-locked .cell-im { opacity: .35; }
.ed.is-selecting .cell.is-locked { cursor: not-allowed; }
.cell.is-pulse .cell-im { animation: pulse 1.4s var(--ease) 3; }
@keyframes pulse { 0% { outline: 2px solid var(--red); outline-offset: 0; } 100% { outline: 2px solid transparent; outline-offset: 10px; } }
@media (max-width: 560px) { .cell-state-word { display: none; } .cell-state.is-taken .cell-state-word { display: inline; } }
.loupe { position: fixed; z-index: 15; width: 240px; height: 240px; pointer-events: none; display: none; border: 1px solid var(--ink);
  background-color: var(--tint); background-repeat: no-repeat; box-shadow: 0 18px 40px rgba(10, 10, 10, .22); }

/* ---------- select-several cart bar ---------- */
.cart { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--ink); color: var(--bg); padding-bottom: env(safe-area-inset-bottom); }
.cart .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding-block: 12px; }
.cart-sum { display: grid; gap: 2px; min-width: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.cart-sum-total { color: #C9C6C1; }
.cart-acts { display: flex; gap: 8px; }
.cart .btn { border-color: var(--bg); background: var(--bg); color: var(--ink); padding: 11px 14px; }
.cart .btn:hover { background: transparent; color: var(--bg); }
.cart .btn-quiet { background: transparent; color: var(--bg); }
.cart .btn-quiet:hover { background: var(--bg); color: var(--ink); }
.cart .btn:disabled, .cart .btn:disabled:hover { background: #3A3A3A; border-color: #3A3A3A; color: #D6D3CE; }
body.has-cart { padding-bottom: 110px; }

/* ---------- the work sheet (dialog) ---------- */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(10, 10, 10, .6); }
.sheet { width: min(960px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--ink); background: var(--bg); overflow: auto; overscroll-behavior: contain; }
.sheet-x { position: sticky; top: 0; display: block; width: max-content; margin: 0 0 -44px auto; z-index: 3; min-height: 44px; padding: 0 14px;
  background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sheet-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.sheet-pic { background: var(--tint); display: grid; place-items: center; min-height: 240px; }
.sheet-pic > img { display: block; width: 100%; height: auto; }
.sheet-q { display: grid; place-items: center; width: 100%; aspect-ratio: 1; font-family: var(--serif); font-style: italic; font-size: clamp(120px, 22vw, 240px); line-height: 1; color: var(--muted); }
.sheet-q.is-special { background: var(--ink); color: var(--bg); }
.sheet-info { padding: clamp(20px, 3vw, 36px); display: grid; gap: 18px; align-content: start; min-width: 0; }
.sheet-buy { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.sheet-price { font-size: clamp(34px, 5vw, 48px); line-height: 1; }
.sheet-price-line { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); line-height: 1.6; }
.sheet-text { font-size: 16px; line-height: 1.5; color: var(--muted); }
.sheet-basket { width: 100%; display: grid; border-top: 1px solid var(--hair); }
.sheet-basket-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hair); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.sheet-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; padding: 16px; width: 100%; align-self: start; }
.sheet-thumbs img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; outline: 1px solid var(--hair); }
@media (max-width: 720px) {
  /* Phones: a bottom sheet. The picture is capped so price and Reserve stay in reach,
     and the short buy block pins to the bottom while the sheet scrolls. */
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92dvh; border-width: 1px 0 0; }
  .sheet-in { grid-template-columns: minmax(0, 1fr); }
  .sheet-pic { min-height: 0; }
  .sheet-pic > img, .sheet-pic .plate img { max-height: 46dvh; width: 100%; object-fit: contain; }
  .sheet-pic .plate { outline: 0; }
  .sheet-q { max-height: 40dvh; font-size: 120px; }
  .sheet-info { gap: 14px; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .sheet-buy.is-pinned { position: sticky; bottom: 0; background: var(--bg); padding-top: 12px; margin-top: -12px; }
  .sheet-price { font-size: 34px; }
  /* The covenant form needs the room: drop the picture while it is open. */
  .sheet.is-form .sheet-pic { display: none; }
  .sheet.is-form .sheet-info { padding-top: 54px; }
  .sheet-buy .btn { width: 100%; }
}

/* ---------- reserve form (covenant + buyer) ---------- */
.form { display: grid; gap: 14px; width: 100%; }
.form-title { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.form-text { font-size: 15px; line-height: 1.55; color: #3A3A3A; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.form-opt { color: var(--muted); }
.form-field input { width: 100%; min-width: 0; border: 1px solid var(--hair); background: var(--paper); padding: 12px; font-family: var(--serif); font-size: 16px; color: var(--ink); border-radius: 0; }
.form-field input:focus { outline: none; border-color: var(--ink); }
.form-check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.form-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.form-poc { display: grid; gap: 14px; border-left: 2px solid var(--hair); padding-left: 14px; }
.form-hint { font-size: 14px; line-height: 1.5; color: var(--muted); }
.form-err { min-height: 1em; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: #B3000A; }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; }
.form-row .btn { flex: 1 1 auto; }
.form-foot { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--hair); }
@media (max-width: 720px) { .form-foot { padding-bottom: env(safe-area-inset-bottom); } }

/* ---------- zoom viewer ---------- */
.zv { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0A0A0A; color: #F7F6F5; overflow: hidden; }
.zv::backdrop { background: #0A0A0A; }
.zv-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; overscroll-behavior: contain; }
.zv-stage.is-drag { cursor: grabbing; }
.zv-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.zv-stage.is-anim img { transition: transform .28s var(--ease); }
.zv-cap { position: absolute; left: 0; top: 0; margin: 0; padding: 14px 16px; max-width: calc(100% - 110px); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; background: rgba(10, 10, 10, .7); pointer-events: none; }
.zv button { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: #F7F6F5; color: #0A0A0A; min-width: 44px; min-height: 44px; padding: 0 14px; }
.zv button:hover { background: #0A0A0A; color: #F7F6F5; box-shadow: inset 0 0 0 1px #F7F6F5; }
.zv-x { position: absolute; right: 0; top: 0; }
.zv-ctl { position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 1px; }
.zv-hint { position: absolute; left: 0; right: 0; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 58px); text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #C9C6C1; pointer-events: none; transition: opacity .4s; }
.zv-hint.is-gone { opacity: 0; }

/* ---------- reading pages (About the Artwork, About the Artist(s)) ---------- */
.crop { position: relative; height: clamp(180px, 34svh, 380px); overflow: hidden; background: #2B2A20; }
.crop img { position: absolute; left: 0; top: 0; width: max(130%, 1100px); max-width: none; height: auto; transform: translate3d(var(--x, -10%), var(--y, -30%), 0); }
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); padding-block: clamp(40px, 6vw, 96px); align-items: start; }
.split-flip { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.split-stick { position: sticky; top: 24px; display: grid; gap: 14px; min-width: 0; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split, .split-flip { grid-template-columns: minmax(0, 1fr); } .split-stick { position: static; } }
.pairs { padding-block: clamp(40px, 6vw, 90px); display: grid; gap: clamp(40px, 6vw, 80px); }
.pairs-head { display: grid; gap: 14px; }
.pairs-head h2 { font-weight: 400; font-style: italic; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; }
.pairs-head p { color: var(--soft); max-width: 36em; font-size: 17px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(12px, 2vw, 28px); align-items: end; }
.pair figure { margin: 0; display: grid; gap: 10px; min-width: 0; }
.pair img { display: block; width: 100%; height: auto; }
.pair .plate { outline-color: rgba(247, 246, 245, .14); }
.pair figcaption { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.pair figcaption b { color: var(--bg); font-weight: 700; }
.rows { border-bottom: 1px solid var(--ink); }
.row + .row { border-top: 1px solid var(--hair); }
.row .wrap { display: grid; grid-template-columns: 64px minmax(0, 4fr) minmax(0, 7fr); }
.row .wrap > * { min-width: 0; padding: clamp(18px, 2.4vw, 30px) clamp(14px, 2vw, 28px); }
.row .wrap > * + * { border-left: 1px solid var(--hair); }
.row-n { padding-inline: 0 !important; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.row-h { font-weight: 700; font-size: clamp(17px, 16px + .4vw, 21px); letter-spacing: .04em; text-transform: uppercase; line-height: 1.25; }
@media (max-width: 760px) {
  .row .wrap { grid-template-columns: 40px minmax(0, 1fr); }
  .row .wrap > :nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-top: 0; padding-inline: 0; }
  .row .wrap > :nth-child(2) { padding-right: 0; }
}
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); padding-block: clamp(32px, 5vw, 72px); }
.doccard { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 18px; align-items: center; text-align: left; padding: 16px; border: 1px solid var(--hair); background: var(--paper); transition: border-color .2s; }
.doccard:hover { border-color: var(--ink); }
.doccard img { display: block; width: 100%; height: auto; outline: 1px solid var(--hair); }
.doccard-text { display: grid; gap: 8px; min-width: 0; }
.doccard-title { font-style: italic; font-size: clamp(19px, 2vw, 24px); line-height: 1.2; }
.doccard-sub { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 700px) { .docs { grid-template-columns: minmax(0, 1fr); } }
.about-closing { padding-bottom: clamp(40px, 6vw, 80px); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.person { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(22px, 4vw, 64px); padding-block: clamp(32px, 5vw, 72px); align-items: start; }
.person + .person { border-top: 1px solid var(--hair); }
.person-pic { margin: 0; outline: 1px solid rgba(10, 10, 10, .12); background: var(--tint); }
.person-pic img { display: block; width: 100%; height: auto; }
.person-txt { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.person-name { font-weight: 400; font-size: clamp(32px, 4.4vw, 60px); line-height: 1; letter-spacing: -.015em; }
.person-role { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.person-link { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.person-link:hover { border-bottom-color: var(--red); }
@media (max-width: 760px) { .person { grid-template-columns: minmax(0, 1fr); } .person-pic { max-width: 420px; } }
.lineage-name { font-weight: 400; font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -.02em; margin: .2em 0 .6em; }

/* ---------- specimen document viewer ---------- */
.dv { position: fixed; inset: 0; z-index: 80; background: #1C1B19; display: flex; flex-direction: column; }
.dv-bar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top));
  background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.dv-title { flex: 1 1 12em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-group { display: flex; align-items: center; gap: 2px; }
.dv-bar button { background: transparent; color: var(--bg); border: 1px solid #4A4A4A; font: inherit; letter-spacing: inherit; min-width: 40px; min-height: 40px; padding: 0 10px; }
.dv-bar button:hover { border-color: var(--bg); }
.dv-bar button:disabled { color: #8A8A8A; cursor: default; border-color: #333; }
.dv-bar .dv-close { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.dv-count { min-width: 62px; text-align: center; color: #C9C6C1; }
.dv-scroll { flex: 1; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.dv-pages { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 16px 40px; width: max-content; min-width: 100%; }
.dv-pages img { display: block; height: auto; aspect-ratio: 1200 / 1553; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
/* Phones: title and Close on the first row, page and zoom controls on the second, all thumb-sized. */
@media (max-width: 520px) {
  .dv-title { flex: 1 1 calc(100% - 90px); order: 1; }
  .dv-close { order: 2; }
  .dv-group { order: 3; }
  .dv-group-zoom { order: 4; margin-left: auto; }
  .dv-bar button { min-width: 44px; min-height: 44px; }
}
/* The page behind the viewer must not scroll (iOS otherwise scrolls it instead of the pages). */
html:has(body.modal-open), body.modal-open { overflow: hidden; }
body.modal-open { position: fixed; inset: 0; width: 100%; }

/* ---------- the Register ---------- */
.reg { padding-block: clamp(32px, 5vw, 64px) clamp(48px, 7vw, 96px); display: grid; gap: 28px; }
.reg-contact { border: 1px solid var(--hair); border-left: 3px solid var(--ink); padding: 14px 16px; background: var(--paper); max-width: 40em; }
.reg-contact p + p { margin-top: 4px; }
.reg-steps { margin: 0; padding-left: 1.2em; max-width: 40em; }
.reg-steps li + li { margin-top: 10px; }
.reg-fine { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); max-width: 52em; }
.reg-table-wrap { overflow-x: auto; max-width: 100%; }
.reg-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.reg-table th { text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; border-bottom: 1px solid var(--ink); padding: 8px 10px 8px 0; }
.reg-table td { border-bottom: 1px solid var(--hair); padding: 9px 10px 9px 0; vertical-align: top; }
.reg-num { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.reg-dim { color: var(--muted); }
@media (max-width: 640px) {
  /* Each entry becomes a small card instead of a table row, so nothing scrolls sideways. */
  .reg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .reg-table, .reg-table tbody, .reg-table tr, .reg-table td { display: block; width: 100%; }
  .reg-table tr { padding: 10px 0; border-bottom: 1px solid var(--hair); }
  .reg-table td { border: 0; padding: 2px 0; }
  .reg-table td[data-k]::before { content: attr(data-k) "  "; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .look { height: 100svh; }
  .drift img { transform: translate3d(-16%, -10%, 0); }
}
