/* Homepage: a quiet gallery of works. */

/* ---------- intro ---------- */
.intro { padding: clamp(20px, 3vw, 48px) 0 clamp(56px, 6vw, 100px); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 140px); align-items: center; }
.intro-work { margin: 0; width: min(100%, 64vh * 0.73 + 60px, 640px); justify-self: end; }
.intro-text .h-xl { margin: 12px 0 22px; }
.intro-text .lead { margin: 0 0 16px; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } .intro-work { width: min(100%, 340px); justify-self: center; order: 2; } }

/* museum-style label under a work */
.label { display: flex; flex-direction: column; gap: 2px; margin-top: clamp(22px, 2.6vw, 30px); font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.label-title { color: var(--ink); font-size: 15px; }
.label-title i { font-family: var(--serif); font-size: 21px; }
.label-live { margin-top: 6px; font-size: 13px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.label-live b { font-weight: 500; color: var(--ink-soft); }
.label .text-link { align-self: flex-start; margin-top: 6px; }
.status.sold { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.status.sold::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--quantum); }

/* ---------- section heads ---------- */
.section-head { max-width: 900px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .h-lg { margin-top: 10px; }
.section-head p { margin-top: 16px; }

/* ---------- statement ---------- */
.statement .h-lg { max-width: 30ch; }
.muted-serif { font-style: italic; color: var(--ink-soft); }
.statement-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(32px, 4vw, 52px); color: var(--ink-soft); }
.statement-cols p { margin: 0; }
@media (max-width: 860px) { .statement-cols { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- works ---------- */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 5vw, 96px) clamp(28px, 5vw, 96px); align-items: start; max-width: 1400px; }
.work-item { margin: 0; min-width: 0; }
.works-note { margin-top: clamp(40px, 5vw, 64px); color: var(--ink-soft); }
@media (max-width: 1000px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .works { grid-template-columns: 1fr; padding: 0 8%; } }

/* ---------- photographs ---------- */
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 2 / 3; max-height: 82vh; object-fit: cover; }
.photo figcaption, figure figcaption { font-size: 13px; color: var(--ink-faint); margin-top: 10px; }
.wall-grid { align-items: center; }
.wall-grid .h-lg { margin-top: 10px; }
@media (max-width: 900px) { .photo img { aspect-ratio: 4 / 5; max-height: 70vh; } }

/* ---------- the rig, animated ---------- */
.rig { margin: 0; width: min(100%, 520px); justify-self: center; }
.rig svg { display: block; width: 100%; height: auto; max-height: 80vh; background: var(--wall); }
.rig-cable { stroke: var(--ink); stroke-width: 1.4; }
.rig-pulley circle { fill: #a7a5a1; stroke: #5d5a55; stroke-width: 1.5; }
.rig-pulley .hub { fill: #2a2826; stroke: none; }
.rig-cw rect { fill: #1d1c1b; stroke: #3a3734; }
.rig-cw text { fill: #b9b4ab; font: 7px var(--sans); letter-spacing: .04em; }
.rig-frame { fill: none; stroke: var(--oak); stroke-width: 6; }
.rig-ref { stroke: var(--ink-faint); stroke-width: 1; stroke-dasharray: 4 5; }
.rig-tag { fill: var(--ink-faint); font: 9px var(--sans); letter-spacing: .16em; }
.rig-gap { stroke: var(--quantum); stroke-width: 3; stroke-linecap: round; }
.rig-floor { stroke: var(--line-strong); }
.rig-tile { fill: #2a2826; }
.rig-read { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.rig-read b { color: var(--quantum); font-weight: 500; }
.rig-note { color: var(--ink-faint); font-size: 13px; }
.visitors { margin-top: 32px; max-width: 520px; }
.visitors img { aspect-ratio: 16 / 10; object-position: 40% 58%; max-height: none; }

.facts { margin: 28px 0 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 500; }
.facts dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 520px) { .facts > div { grid-template-columns: 1fr; gap: 0; } }

/* ---------- two ideas of time ---------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 120px); max-width: 1200px; }
.duo h3 { margin-top: 22px; font-family: var(--display); font-size: 28px; font-weight: 400; }
.duo p { margin-top: 8px; }
.plain-face { width: min(200px, 60%); aspect-ratio: 1; border-radius: 50%; background: var(--wall); box-shadow: inset 0 0 0 1px var(--line-strong); position: relative; }
.plain-face .qclock { position: absolute; inset: 8%; width: 84%; height: 84%; }
.plain-face .qclock .hand { transition: transform .4s ease-out; }
#face-cre .qclock .hand { transition: transform .7s cubic-bezier(.2, 1.4, .4, 1); }
.face-note { margin-top: 6px; font-size: 13px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.face-note b { color: var(--quantum); font-weight: 500; }
.plain-face .qclock .h, .plain-face .qclock .m, .plain-face .qclock .pin { fill: var(--ink); }
@media (max-width: 700px) { .duo { grid-template-columns: 1fr; } }
.pull { margin: clamp(48px, 6vw, 88px) 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.2; max-width: 24ch; }
.paper-card { margin-top: clamp(36px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: clamp(24px, 3vw, 44px); border: 1px solid var(--line-strong); }
.paper-card > div { min-width: 0; flex: 1 1 380px; }
.paper-title { margin: 8px 0 4px; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; color: var(--ink); }
.paper-authors { margin: 0; color: var(--ink-soft); }
.btn-red { background: var(--quantum); border-color: var(--quantum); color: #fff; font-size: 16px; padding: 16px 30px; font-weight: 500; }
.btn-red:hover { background: #fff; border-color: #fff; color: #141210; }

/* ---------- how it works ---------- */
.how { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.how li { counter-increment: step; border-top: 1px solid var(--line-strong); padding-top: 16px; }
.how li::before { content: counter(step, decimal-leading-zero); font-size: 13px; color: var(--ink-faint); }
.how h3 { margin: 6px 0 6px; font-size: 16px; }
.how p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.small-note { margin-top: 36px; font-size: 14px; color: var(--ink-faint); max-width: 70ch; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .how { grid-template-columns: 1fr; } }

/* ---------- craft & spaces ---------- */
.craft figure, .spaces figure { margin: 0; min-width: 0; }
.craft img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.spaces figure { border-top: 1px solid var(--line-strong); padding-top: 26px; }
.space-icon { width: 56px; height: 56px; fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; display: block; margin-bottom: 18px; }
.craft figcaption, .spaces figcaption { margin-top: 14px; font-size: 15px; color: var(--ink); }
.craft h3, .spaces h3 { font-size: 16px; }
.craft p, .spaces p { margin: 4px 0 0; font-size: 15px; }
.spaces p { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.35; }

/* ---------- closing ---------- */
.closing { text-align: center; }
.closing .h-lg { max-width: 18ch; margin: 0 auto; }

/* ---------- the film ---------- */
.film { position: relative; display: block; margin-top: 30px; max-width: 520px; aspect-ratio: 16 / 9; overflow: hidden; background: #000; color: #fff; }
.film img, .film iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.film img { transition: transform .8s var(--ease), filter .4s; }
.film:hover img { transform: scale(1.03); filter: brightness(1.08); }
.film-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; font-size: 14px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.film.playing .film-cap { display: none; }
.craft-note { margin-top: clamp(28px, 4vw, 48px); color: var(--ink-soft); max-width: 70ch; }
