/* ═══════════════════════════════════════════════════════════════════════════
   HOME — ten scenes. Ink / paper alternate with hard cuts.
═══════════════════════════════════════════════════════════════════════════ */

section { position: relative; }
.kicker { display: block; margin-bottom: clamp(20px, 2.4vw, 36px); color: var(--fg-muted); }

/* ── 01 Hero ─────────────────────────────────────────────────────────── */
.hero { height: 100svh; min-height: 520px; overflow: hidden; background: var(--ink); color: var(--paper); position: relative; }

/* The desk stage is sized in JS to the frame's aspect (cover, capped crop).
   Every layer inside fills it exactly, so the hotspot polygons stay aligned. */
.desk-stage { position: absolute; will-change: transform;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 1.6%, #000 98.4%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 2%, #000 98%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 1.6%, #000 98.4%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 2%, #000 98%, transparent 100%); mask-composite: intersect; }
.desk-stage > img, .desk-stage > video, .desk-svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; }
.desk-dark { opacity: 1; }
.desk-film { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero.is-playing .desk-film { opacity: 1; }
.desk-still { opacity: 0; transition: opacity 1.1s var(--ease-out); }
.hero.is-still .desk-still { opacity: 1; }
.hero.is-still .desk-film { opacity: 0; transition-delay: 1.1s; }
/* returning within a session: land on the finished desk with no intro choreography.
   Applied for a single frame while the end state is set, then removed. */
.hero.is-instant, .hero.is-instant * { transition: none !important; animation: none !important; }

/* signature in ink on the blank sheet (positioned by a homography in desk.js) */
.desk-stage > .desk-sig { position: absolute; left: 0; top: 0; width: 437px; height: 141px; transform-origin: 0 0;
  color: #17120d; mix-blend-mode: multiply; opacity: .92; pointer-events: none; }
.desk-sig svg { width: 437px; height: 141px; display: block; overflow: visible; }
/* the dog wakes */
.desk-stage > .desk-dogv { opacity: 0; transition: opacity .25s linear; pointer-events: none; }
.desk-stage > .desk-dogv.is-on { opacity: 1; }
.desk-stage > .desk-zoom { opacity: 0; pointer-events: none; }
.desk-stage > .desk-zoom.is-on { opacity: 1; }
.hero.is-zooming .desk-svg, .hero.is-zooming .desk-sig, .hero.is-zooming .desk-dogv, .hero.is-zooming .desk-label { opacity: 0 !important; transition: opacity .35s ease; }

/* dim everything except the lifted sheet */
.desk-dim { fill: #000; opacity: 0; transition: opacity .9s var(--ease-out); pointer-events: none; }
.hero.is-lifting .desk-dim { opacity: .2; }
.desk-shadow { fill: #000; opacity: 0; transition: opacity .5s var(--ease-out), transform .7s var(--ease-soft); pointer-events: none; }
.hero.is-lifting .desk-shadow { opacity: .3; transform: translate(0.15%, 0.55%) scale(1.008); }
.desk-lift { opacity: 0; transition: opacity .5s var(--ease-out), transform 1s var(--ease-soft); pointer-events: none; }
.hero.is-lifting .desk-lift { opacity: 1; transform: translateY(-0.45%) scale(1.018); }
.hero.is-entering .desk-lift { opacity: 1; }
.desk-hs polygon { fill: transparent; stroke: none; cursor: pointer; pointer-events: none; }
.hero.is-live .desk-hs polygon { pointer-events: all; }
/* Hotspots are aria-hidden and non-tabbable (keyboard uses the Chapters list),
   so they never need a focus frame. Suppress it so right-clicking a chapter
   doesn't leave an outline around the drawing. */
.desk-hs:focus, .desk-hs:focus-visible { outline: none; }
.desk-hs:focus polygon, .desk-hs:focus-visible polygon { outline: none; stroke: none; }

/* floating label */
.desk-label { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 3;
  display: grid; grid-template-columns: auto auto; column-gap: 12px; row-gap: 2px; align-items: baseline;
  padding: 12px 16px 13px; background: var(--paper); color: var(--ink);
  margin: 22px 0 0 22px; opacity: 0; transform-origin: 0 0; transition: opacity .35s var(--ease-out); }
.desk-label.is-on { opacity: 1; }
.dl-roman { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--grey); grid-row: 1 / span 2; align-self: start; }
.dl-name { font-family: var(--serif); font-size: 26px; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.dl-count { color: var(--grey); grid-column: 2; }

.hero-chrome {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(24px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px; z-index: 4;
  color: var(--paper); opacity: 0; transition: opacity 1.2s var(--ease-out); pointer-events: none;
}
.hero-chrome a { pointer-events: auto; }
.hero.is-still .hero-chrome { opacity: 1; }
.hc-left { line-height: 1.7; }
.hc-left .label--muted { color: var(--grey-2); }
.hc-hint { justify-self: center; display: inline-flex; align-items: center; gap: 12px; opacity: 0; transform: translateY(8px); transition: opacity 1s var(--ease-out) .2s, transform 1s var(--ease-out) .2s; }
.hero.is-live .hc-hint { opacity: 1; transform: none; }
.hc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--paper); animation: hcpulse 2.4s var(--ease-io) infinite; }
@keyframes hcpulse { 0%, 100% { opacity: .25; transform: scale(.7) } 50% { opacity: 1; transform: scale(1) } }
.hero-scroll { justify-self: end; display: inline-grid; justify-items: center; gap: 12px; }
.hero-scroll .line { width: 1px; height: 48px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero-scroll .line::after { content: ''; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--paper); animation: scrollcue 2.2s var(--ease-io) infinite; }
@keyframes scrollcue { 0% { top: -100% } 60% { top: 100% } 100% { top: 100% } }
@media (max-width: 720px) {
  .hero-chrome { grid-template-columns: 1fr auto; row-gap: 14px; }
  .hc-hint { grid-column: 1 / -1; grid-row: 1; justify-self: start; }
  .hc-left { grid-row: 2; }
  .desk-label { display: none; }
}

/* ── 02 Statement ────────────────────────────────────────────────────── */
.statement {
  min-height: 92vh; display: grid; place-items: center; text-align: center;
  padding: clamp(96px, 14vh, 180px) var(--gutter);
}
.statement-inner { max-width: 1100px; }
.statement-text {
  font-family: var(--serif); font-size: clamp(34px, 5.2vw, 78px); line-height: 1.02; letter-spacing: -0.015em;
}
.statement-text .w { display: inline-block; opacity: 0.16; transition: none; }
.statement-text .w.is-on { opacity: 1; }
.statement-text em { font-style: italic; }
.statement-foot { margin-top: clamp(32px, 4vw, 56px); display: inline-flex; gap: 20px; align-items: center; color: var(--fg-muted); }
.statement-foot .rule { width: 36px; height: 1px; background: var(--line-strong); }

/* ── 03 About ────────────────────────────────────────────────────────── */
.about { padding: 0 0 clamp(96px, 12vw, 180px); }
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); align-items: start; }
.about-photo { grid-column: 1 / span 5; aspect-ratio: 2 / 3; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text { grid-column: 7 / span 6; padding: clamp(48px, 8vw, 120px) var(--gutter) 0 0; }
.about-heading { font-size: var(--d1); margin-bottom: clamp(40px, 5vw, 72px); }
.about-bio { columns: 2; column-gap: 32px; color: var(--fg); max-width: 720px; }
.about-bio p { break-inside: avoid; }
.about-bio p + p { margin-top: 1.1em; }
.about-signoff {
  margin-top: clamp(40px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.about-signature { display: grid; gap: 8px; justify-items: end; }
.about-signature .sig { width: 150px; color: var(--ink); }
@media (max-width: 1100px) { .about-bio { columns: 1; } }
@media (max-width: 860px) {
  .about-photo { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
  .about-text { grid-column: 1 / -1; padding: 40px var(--gutter) 0; }
  .about-signature { justify-items: start; }
}

/* ── 04 Archive (three gestures) ─────────────────────────────────────── */
.archive { padding: clamp(96px, 12vw, 180px) 0 0; overflow: hidden; }
.archive-head { padding: 0 var(--gutter) clamp(48px, 6vw, 96px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; align-items: end; }
.archive-head .kicker { grid-column: 1 / -1; }
.archive-heading { grid-column: 1 / span 8; font-size: var(--d2); }
.archive-lede { grid-column: 10 / span 3; color: var(--fg-muted); max-width: 320px; }
.arch-stage { position: relative; }
.arch-plates { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 2; overflow: visible; }
.arch-plate {
  position: absolute; left: 0; top: 0; width: min(34vw, 520px); aspect-ratio: 4 / 3;
  opacity: 0; transform: translate(-50%, -50%) scale(0.92); transform-origin: center;
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: transform;
}
.arch-plate img { width: 100%; height: 100%; object-fit: cover; }
.arch-plate.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.arch-names { position: relative; border-top: 1px solid var(--line); }
.arch-name {
  display: grid; grid-template-columns: 90px 1fr auto; align-items: baseline; gap: 24px;
  padding: clamp(18px, 2.6vw, 36px) var(--gutter); border-bottom: 1px solid var(--line);
  color: var(--paper); transition: color var(--t-fast);
}
.arch-name .roman { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 24px); color: var(--grey-2); font-style: italic; }
.arch-name .name {
  font-family: var(--serif); font-size: clamp(40px, 7.6vw, 124px); line-height: 0.92; letter-spacing: -0.02em;
  transition: transform var(--t-mid) var(--ease-out);
}
.arch-name .count { color: var(--grey-2); white-space: nowrap; }
.arch-name:hover .name, .arch-name:focus-visible .name { transform: translateX(0.12em); }
.arch-name .count .arrow { display: inline-block; margin-left: 12px; transition: transform var(--t-mid) var(--ease-out); }
.arch-name:hover .count .arrow { transform: translateX(6px); }
.archive-foot { padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(96px, 12vw, 180px); display: grid; justify-items: center; gap: 14px; text-align: center; }
@media (max-width: 860px) {
  .archive-head { grid-template-columns: 1fr; }
  .archive-heading, .archive-lede { grid-column: 1 / -1; }
  .archive-lede { margin-top: 20px; }
  .arch-name { grid-template-columns: 48px 1fr; }
  .arch-name .count { grid-column: 2; }
  .arch-plates { display: none; }
  .arch-name .thumb { grid-column: 1 / -1; aspect-ratio: 16/10; overflow: hidden; margin-top: 12px; }
  .arch-name .thumb img { width: 100%; height: 100%; object-fit: cover; }
}
@media (min-width: 861px) { .arch-name .thumb { display: none; } }

/* ── 05 Projects (horizontal leaf) ───────────────────────────────────── */
.projects { overflow: hidden; }
.pr-track { display: flex; align-items: stretch; height: 100svh; min-height: 640px; will-change: transform; }
.pr-panel { flex: 0 0 auto; height: 100%; padding: calc(var(--nav-h) + 24px) var(--gutter) 40px; display: grid; align-content: end; }
.pr-intro { width: min(46vw, 640px); padding-right: 6vw; align-content: center; }
.pr-intro .kicker { margin-bottom: 20px; }
.projects-heading { font-size: var(--d2); margin-bottom: clamp(24px, 3vw, 40px); }
.projects-body { max-width: 360px; color: var(--fg-muted); }
.projects-meta { margin-top: clamp(28px, 3vw, 44px); display: flex; gap: 26px; color: var(--fg-muted); }
.projects-meta b { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--fg); margin-right: 8px; }
.pr-card { width: min(64vw, 900px); grid-template-columns: 1fr; gap: 0; align-content: end; }
.pr-card .media { height: 60svh; min-height: 380px; margin-bottom: 26px; }
.pr-card .media img { width: 100%; height: 100%; object-fit: cover; }
.pr-card .head { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: baseline; }
.pr-card .roman { font-family: var(--serif); font-style: italic; color: var(--fg-muted); font-size: 20px; }
.pr-card .title { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 56px); line-height: 0.95; letter-spacing: -0.015em; }
.pr-card .title em { font-style: italic; }
.pr-card .tag { color: var(--fg-muted); }
.pr-card .desc { margin-top: 14px; max-width: 460px; color: var(--fg-muted); }
.pr-card .rule-link { margin-top: 18px; }
.pr-end { width: 30vw; padding-left: 4vw; align-content: center; }
@media (max-width: 860px) {
  .pr-track { display: block; height: auto; min-height: 0; }
  .pr-panel { width: auto; padding: 72px var(--gutter) 0; }
  .pr-intro { width: auto; padding-right: 0; }
  .pr-card { width: auto; }
  .pr-card .media { height: auto; aspect-ratio: 4 / 5; }
  .pr-end { width: auto; padding: 56px var(--gutter) 96px; }
}

/* ── 06 Atelier ──────────────────────────────────────────────────────── */
.atelier { padding: clamp(96px, 12vw, 180px) 0; overflow: hidden; }
.atelier-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); align-items: end; padding-left: var(--gutter); }
.atelier-text { grid-column: 1 / span 5; padding-bottom: 8px; }
.atelier-heading { font-size: clamp(92px, 13.5vw, 232px); line-height: .82; letter-spacing: -.03em; white-space: nowrap; margin-left: -.04em; }
.atelier-by { font-family: var(--serif); font-size: clamp(30px, 3.1vw, 50px); line-height: 1; letter-spacing: -.01em; margin: clamp(30px, 3.4vw, 56px) 0 0; color: var(--paper); }
.atelier-sub { font-family: var(--serif); font-size: clamp(22px, 2.1vw, 32px); line-height: 1.1; letter-spacing: -.005em; margin: .3em 0 0; color: var(--grey-2); }
.atelier-sub em { font-style: italic; }
.atelier-body { max-width: 380px; color: var(--fg-muted); margin: 22px 0 14px; }
.atelier-cap { display: block; margin-top: clamp(40px, 6vw, 96px); }
.atelier-plate { grid-column: 7 / -1; height: min(86svh, 900px); position: relative; overflow: hidden; }
.atelier-img { position: absolute; inset: -8% 0; }
.atelier-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .atelier-grid { padding-right: var(--gutter); }
  .atelier-text { grid-column: 1 / -1; order: 2; padding-top: 40px; }
  .atelier-plate { grid-column: 1 / -1; order: 1; height: 72svh; }
}

/* ── 07 &bold ────────────────────────────────────────────────────────── */
.andbold { padding: clamp(96px, 12vw, 180px) 0; }
.andbold-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); align-items: center; padding: 0 var(--gutter); }
.andbold-video { grid-column: 1 / span 5; aspect-ratio: 2 / 3; }
.andbold-video video { width: 100%; height: 100%; object-fit: cover; }
.andbold-text { grid-column: 7 / span 6; }
.andbold-heading { font-size: var(--d1); margin-bottom: clamp(32px, 4vw, 56px); }
.andbold-heading em strong { font-weight: 400; font-style: italic; }
.andbold-body { max-width: 560px; }
.andbold-signoff { margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.andbold-ident { display: grid; gap: 6px; justify-items: end; text-align: right; }
.andbold-ident .nm { font-family: var(--serif); font-size: 20px; }
@media (max-width: 860px) {
  .andbold-video { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
  .andbold-text { grid-column: 1 / -1; padding-top: 40px; }
  .andbold-ident { justify-items: start; text-align: left; }
}

/* ── 08 Contact ──────────────────────────────────────────────────────── */
.contact { padding: clamp(96px, 12vw, 180px) var(--gutter); }
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); }
.contact-story { grid-column: 1 / span 5; }
.contact-heading { grid-column: 1 / -1; }
.contact-heading { font-size: var(--d1); margin-bottom: clamp(32px, 4vw, 64px); }
.contact-lede { max-width: 360px; color: var(--fg-muted); }
.contact-links { margin-top: clamp(28px, 3vw, 44px); display: grid; }
.contact-link-row { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.contact-link-row:last-child { border-bottom: 1px solid var(--line); }
.contact-link-val { font-family: var(--serif); font-size: 22px; }
.contact-link-row:hover .contact-link-val { font-style: italic; }
.contact-meta { margin-top: clamp(28px, 3vw, 44px); display: grid; grid-template-columns: repeat(3, auto); gap: 32px; justify-content: start; }
.cm-cell { display: grid; gap: 8px; align-content: start; }
.cm-value { font-family: var(--serif); font-size: 18px; }
.cm-socials { display: flex; gap: 14px; }
.cm-socials a { font-family: var(--serif); font-size: 18px; }
.cm-socials a:hover { font-style: italic; }
.contact-form { grid-column: 7 / span 6; display: grid; gap: 28px; align-content: start; padding-top: clamp(8px, 1.5vw, 24px); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cf-field { position: relative; display: grid; gap: 8px; }
.cf-field label { order: -1; color: var(--fg-muted); }
.cf-field input, .cf-field select, .cf-field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; border-radius: 0;
  font-family: var(--serif); font-size: 22px; color: var(--fg); padding: 6px 0 12px; outline: 0; appearance: none; -webkit-appearance: none;
  transition: border-color var(--t-fast);
}
.cf-field textarea { resize: vertical; min-height: 120px; line-height: 1.3; }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { border-bottom-color: var(--fg); }
.cf-field select { cursor: pointer; padding-right: 28px; }
.cf-field .caret { position: absolute; right: 2px; bottom: 16px; pointer-events: none; }
.cf-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cf-submit { padding: 14px 0; }
.cf-status { color: var(--fg-muted); font-size: 12px; }
.cf-status.is-error { color: var(--ink); font-style: italic; }
@media (max-width: 860px) {
  .contact-story, .contact-form { grid-column: 1 / -1; }
  .contact-form { padding-top: 56px; }
  .contact-meta { grid-template-columns: 1fr 1fr; }
  .cf-row { grid-template-columns: 1fr; }
}



/* the real scan the lifted sheet becomes during the dive */
.desk-scan { position: fixed; inset: 0; z-index: 1100; background: var(--paper); opacity: 0; display: grid; place-items: center; padding: 6vh 6vw; pointer-events: none; }
.desk-scan img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 80px -30px rgba(0,0,0,.35); }
.hero.is-entering .desk-stage { -webkit-mask-image: none; mask-image: none; }
.hero.is-entering .desk-dim { transition: none; }

/* ── Desk: markers, chapter index, camera ─────────────────────────────── */
/* markers: one per chapter, spread across the table after the signature */
.desk-pins { position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .6s var(--ease-out); }
.desk-pins.is-on { opacity: 1; }
.pin { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; cursor: pointer; pointer-events: none; }
.hero.is-live .pin { pointer-events: auto; }
.pin-ring { position: absolute; inset: 7px; border-radius: 50%; border: 1px solid rgba(201,194,176,.62);
  box-shadow: 0 0 0 1px rgba(0,0,0,.18), inset 0 0 0 1px rgba(0,0,0,.12); background: rgba(0,0,0,.14);
  transition: transform .6s var(--ease-soft), background-color .4s var(--ease-out), border-color .4s; }
.pin-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 10px rgba(201,194,176,.55); transition: transform .5s var(--ease-soft); }
.pin-n { position: absolute; top: 100%; left: 50%; transform: translate(-50%, -4px); font-family: var(--serif); font-style: italic; font-size: 14px; letter-spacing: .04em;
  color: var(--paper); text-shadow: 0 1px 8px rgba(0,0,0,.7); white-space: nowrap; transition: opacity .4s; }
.pin::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; border: 1px solid rgba(201,194,176,.5); opacity: 0; }
.pin.is-on .pin-ring { transform: scale(1.14); background: rgba(201,194,176,.08); border-color: rgba(201,194,176,.9); }
.pin.is-on .pin-dot { transform: scale(1.4); }
.pin.is-on::after { animation: pinping 1.6s var(--ease-out) infinite; }
@keyframes pinping { 0% { transform: scale(1); opacity: .8 } 100% { transform: scale(2.3); opacity: 0 } }
.hero.has-active .pin:not(.is-on) { opacity: .78; }
.hero.has-active .pin { transition: opacity .35s var(--ease-out); }

/* the chapter index, beside the table (wide screens), a sheet on phones */
.desk-index { position: absolute; z-index: 5; left: 0; top: 0; bottom: 0; width: min(360px, 30vw); padding: 112px 0 120px var(--gutter);
  display: flex; flex-direction: column; justify-content: center; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.78) 0, rgba(0,0,0,.52) 60%, transparent 100%);
  opacity: 0; transition: opacity 1.1s var(--ease-out) .3s; }
.hero.is-live .desk-index { opacity: 1; }
.hero.is-live .desk-index ol, .hero.is-live .desk-index .di-head { pointer-events: auto; }
.di-head { display: flex; justify-content: space-between; align-items: center; color: var(--grey-2); margin-bottom: 14px; padding-right: 28px; }
.di-close { display: none; }
.desk-index ol { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.desk-index li { border-top: 1px solid rgba(201,194,176,.12); }
.desk-index li:last-child { border-bottom: 1px solid rgba(201,194,176,.12); }
.desk-index a { display: grid; grid-template-columns: 38px 1fr auto; align-items: baseline; gap: 6px; padding: clamp(5px, 1.05vh, 10px) 28px clamp(5px, 1.05vh, 10px) 0;
  color: rgba(201,194,176,.78); text-decoration: none; position: relative; transition: color .35s var(--ease-out), padding .5s var(--ease-soft); }
.di-n { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--grey-2); }
.di-t { font-family: var(--serif); font-size: clamp(16px, 2.05vh, 20px); line-height: 1.15; letter-spacing: -.005em; }
.di-c { color: var(--grey-2); font-size: 10px; opacity: 0; transition: opacity .35s; }
.desk-index a::before { content: ''; position: absolute; left: -14px; top: 50%; width: 8px; height: 1px; background: var(--paper); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-soft); }
.desk-index a:hover, .desk-index a:focus-visible, .desk-index a.is-on { color: var(--paper); padding-left: 10px; }
.desk-index a:hover .di-c, .desk-index a:focus-visible .di-c, .desk-index a.is-on .di-c { opacity: 1; }
.desk-index a.is-on::before, .desk-index a:hover::before, .desk-index a:focus-visible::before { transform: scaleX(1); }
.desk-index a:focus-visible { outline: 1px solid var(--paper); outline-offset: 2px; }
.hc-index { display: none; }

/* the camera: the sharp crop over the chosen sheet, the chapter card, the fade */
.desk-stage > .desk-tile { position: absolute; inset: auto; object-fit: fill; opacity: 0; transition: opacity .35s linear; pointer-events: none; }
.desk-stage > .desk-tile.is-on { opacity: 1; }
.hero.is-focus .desk-dim { opacity: .68; transition: opacity 1.4s var(--ease-out); }
.hero.is-focus .desk-lift, .hero.is-focus .desk-shadow, .hero.is-focus .desk-sig, .hero.is-focus .desk-label, .hero.is-focus .desk-dogv { opacity: 0 !important; transition: opacity .3s; }
.hero.is-entering .desk-hs polygon, .hero.is-entering .pin { pointer-events: none !important; }
.desk-card { position: absolute; z-index: 6; left: var(--gutter); bottom: calc(clamp(28px, 6vh, 64px) + env(safe-area-inset-bottom)); opacity: 0; pointer-events: none; color: var(--paper); max-width: min(760px, 84vw); }
.dc-line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.dc-line > * { display: inline-block; }
.dc-roman { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.6vw, 24px); color: var(--grey-2); }
.dc-title { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6.4vw, 112px); line-height: .92; letter-spacing: -.015em; margin: 6px 0 18px; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.dc-rule { display: block; width: 120px; height: 1px; background: var(--paper); transform-origin: left; margin-bottom: 14px; }
.dc-count { color: var(--paper); }
.desk-fade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 7; }

@media (max-width: 1100px), (max-aspect-ratio: 9/10) {
  .desk-index { width: auto; right: 0; top: auto; padding: 22px var(--gutter) calc(26px + env(safe-area-inset-bottom)); max-height: 78svh; overflow: auto; overscroll-behavior: contain;
    position: fixed; background: #000; border-top: 1px solid rgba(201,194,176,.18); justify-content: flex-start; transform: translateY(102%); opacity: 1; pointer-events: none;
    transition: transform .7s var(--ease-soft), visibility 0s linear .7s; visibility: hidden; z-index: 1150; }
  .hero.is-live .desk-index { pointer-events: none; opacity: 1; }
  .desk-index.is-open, .hero.is-live .desk-index.is-open { transform: none; pointer-events: auto; visibility: visible; transition: transform .7s var(--ease-soft); }
  .di-close { display: inline-flex; color: var(--paper); }
  .desk-index a { padding-top: 12px; padding-bottom: 12px; }
  .di-t { font-size: 21px; }
  .di-c { opacity: 1; }
  .hc-index { display: inline-flex; align-items: center; gap: 10px; justify-self: end; pointer-events: auto; background: none; border: 1px solid rgba(201,194,176,.55); color: var(--paper);
    padding: 11px 16px; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; opacity: 0; transition: opacity .8s var(--ease-out) .4s; }
  .hero.is-live .hc-index { opacity: 1; }
  .hc-index-n { font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: 0; text-transform: none; }
  .pin { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .pin-n { font-size: 12px; }
}
@media (max-width: 1100px) and (min-width: 721px) { .hero-scroll { display: none; } }
@media (max-width: 720px) { .hero-chrome { grid-template-columns: 1fr auto; } .hero-scroll { display: none; } .hc-index { grid-row: 2; grid-column: 2; } }
@media (prefers-reduced-motion: reduce) { .pin.is-on::after { animation: none; } }
/* the top bar sits over the bright curtains: a soft shade keeps it legible */
.hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: clamp(120px, 18vh, 170px); z-index: 3; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.58), rgba(0,0,0,.26) 55%, transparent); }

/* ── Phones and tablets: glide onto a sheet, a card names it ─────────── */
.desk-peek { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; color: var(--paper);
  padding: 56px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0,0,0,.9) 0, rgba(0,0,0,.72) 55%, transparent 100%);
  transform: translateY(calc(100% + 80px)); visibility: hidden; transition: transform .8s var(--ease-soft), visibility 0s linear .8s; pointer-events: none; }
.desk-peek.is-on { transform: none; visibility: visible; pointer-events: auto; transition: transform .8s var(--ease-soft); }
.dp-roman { display: block; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--grey-2); }
.dp-title { margin: 4px 0 14px; font-family: var(--serif); font-size: clamp(34px, 9.5vw, 56px); line-height: .95; letter-spacing: -.015em; text-wrap: balance; }
.desk-peek.is-swap .dp-roman, .desk-peek.is-swap .dp-title, .desk-peek.is-swap .dp-row { animation: dpswap .7s var(--ease-soft) both; }
.desk-peek.is-swap .dp-title { animation-delay: .04s; } .desk-peek.is-swap .dp-row { animation-delay: .08s; }
@keyframes dpswap { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.dp-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(201,194,176,.2); border-bottom: 1px solid rgba(201,194,176,.2); }
.dp-count { color: var(--grey-2); }
.dp-open { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 18px; border: 1px solid rgba(201,194,176,.7); color: var(--paper); text-decoration: none; }
.dp-open:active { background: rgba(201,194,176,.14); }
.dp-arrow { font-family: var(--serif); font-size: 18px; letter-spacing: 0; }
.dp-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.dp-prev, .dp-next { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--paper); font-family: var(--serif); font-size: 22px; cursor: pointer; }
.dp-hint { color: var(--grey-2); font-size: 10px; }
.dp-close { position: absolute; right: calc(var(--gutter) - 10px); top: 14px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
.dp-close span, .dp-close span::after { position: absolute; left: 12px; top: 21px; width: 20px; height: 1px; background: var(--paper); transform: rotate(45deg); content: ''; }
.dp-close span::after { left: 0; top: 0; transform: rotate(90deg); }
.hero.is-peeking .desk-pins, .hero.is-peeking .hero-chrome, .hero.is-peeking .desk-label, .hero.is-peeking .desk-sig { opacity: 0 !important; pointer-events: none; transition: opacity .4s; }
.hero.is-peeking.is-focus .desk-dim { opacity: .48; transition: opacity 1s var(--ease-out); }
.hero.is-peeking.is-entering.is-focus .desk-dim { opacity: .68; }
.hero.is-peeking .desk-hs polygon { pointer-events: all; }
@media (min-width: 900px) and (min-aspect-ratio: 9/10) {
  .desk-peek { left: auto; right: var(--gutter); bottom: var(--gutter); width: 380px; padding: 28px; background: rgba(0,0,0,.82); }
}
/* touch: the markers breathe now and then, so the desk reads as something to press */
@media (hover: none) {
  .hero.is-live:not(.has-active) .pin::after { animation: pinidle 7s var(--ease-out) infinite; animation-delay: calc(var(--k, 0) * .45s + 1.2s); }
  @keyframes pinidle { 0% { transform: scale(1); opacity: .7 } 20% { transform: scale(2.4); opacity: 0 } 100% { opacity: 0 } }
}
@media (prefers-reduced-motion: reduce) { .hero.is-live .pin::after { animation: none !important; } }

/* ── "Continue to the site": under the desk, from the first second ───── */
.hero-skip { position: absolute; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 5; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 14px; min-height: 44px; padding: 0 18px 0 20px;
  color: var(--paper); text-decoration: none; border: 1px solid rgba(201,194,176,.5); background: rgba(0,0,0,.28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; animation: skipin 1.1s var(--ease-out) 1.2s forwards;
  transition: background-color .45s var(--ease-out), color .45s var(--ease-out), border-color .45s, opacity .4s; }
.hs-arrow { font-family: var(--serif); font-size: 17px; letter-spacing: 0; display: inline-block; }
.hero-skip:hover, .hero-skip:focus-visible { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero-skip:hover .hs-arrow { animation: skipnudge 1.2s var(--ease-io) infinite; }
.hero-skip:focus-visible { outline: 1px solid var(--paper); outline-offset: 4px; }
@keyframes skipin { to { opacity: 1; } }
@keyframes skipnudge { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(3px); } }
.hero.is-peeking .hero-skip, .hero.is-entering .hero-skip { opacity: 0 !important; pointer-events: none; animation: none; }
.hero-chrome .hc-hint { margin-bottom: 66px; }                     /* the hint sits just above the button */
@media (max-width: 720px) {
  .hero-skip { left: auto; right: var(--gutter); transform: none; padding: 0 14px 0 16px; }
  .hero-chrome .hc-left { display: none; }
  .hero-chrome .hc-hint { margin-bottom: 0; }
  .hc-index { grid-row: 2; grid-column: 1; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .hero-skip { animation: none; opacity: 1; } }
@media (max-width: 1100px), (max-aspect-ratio: 9/10) {
  .hc-index { min-height: 44px; padding: 0 16px; background: rgba(0,0,0,.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-color: rgba(201,194,176,.5); }
}
/* and a quieter shade along the bottom, so the hint and the buttons read over the bright marble */
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: clamp(150px, 24vh, 230px); z-index: 3; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.3) 50%, transparent); transition: opacity .5s; }
.hero.is-peeking::after, .hero.is-entering::after { opacity: 0; }
