/* Ornate Werks · Work, after esdevlin.com/work (William's pick).
   Index: one 3:2 image per project, centred at about half the width, uppercase caption below.
   Viewer: full-screen images, PREV / NEXT, 1/5, DETAILS. */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dv-cap, .dv-item__cap, .dv-nav, .dv-bottom, .dv-panel__title, .dv-panel__close {
  font-weight: 500; text-transform: uppercase; letter-spacing: .02em;
}

/* ---------- index: list ---------- */
.dv { position: relative; padding-top: calc(var(--bar-h) + 100px); }
.dv-list { display: flex; flex-direction: column; align-items: center; gap: 100px; padding-bottom: 120px; }
.dv-item { display: block; width: min(52.1vw, 980px); color: var(--ink); }
.dv-item__frame { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.dv-item__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dv-item__cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 15px; line-height: 20px; }
.dv-item__what { color: var(--mute); }
.dv-item:hover .dv-item__what { color: var(--ink); }

/* ---------- viewer ---------- */
body.dv-view { overflow: hidden; height: 100vh; height: 100dvh; }
.dv-view .bar { background: var(--paper); }
.dv-stage { position: fixed; left: 0; right: 0; top: var(--bar-h); bottom: 64px; overflow: hidden; transition: transform .8s var(--ease); }
.dv-track { display: flex; height: 100%; transition: transform .8s var(--ease); will-change: transform; }
.dv-slide { flex: 0 0 100%; height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; padding: 20px 91px; cursor: e-resize; }
.dv-slide img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.dv-nav { position: absolute; top: 50%; transform: translateY(-50%); padding: 12px 20px; border: 0; background: none; color: var(--ink); font-size: 15px; line-height: 20px; cursor: pointer; transition: opacity .2s; }
.dv-nav:hover { opacity: .55; }
.dv-nav--prev { left: 4px; }
.dv-nav--next { right: 4px; }
.dv-bottom { position: fixed; left: 0; right: 0; bottom: 0; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--m); font-size: 15px; line-height: 20px; background: var(--paper); }
.dv-bottom__title { margin: 0; font: inherit; }
.dv-bottom__right { display: flex; align-items: center; gap: 24px; }
.dv-count { font-variant-numeric: tabular-nums; }
.dv-details { border: 0; padding: 0; background: none; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.dv-details:hover { opacity: .55; }

/* details: the story slides in from the right; the picture moves aside */
.dv-panel { position: fixed; z-index: 45; top: 0; right: 0; bottom: 0; width: 50vw; display: flex; flex-direction: column; background: var(--paper-2); transform: translateX(100%); transition: transform .8s var(--ease); }
.dv-panel[hidden] { display: flex; visibility: hidden; }
.dv-panel.is-open { transform: none; visibility: visible; }
.dv-panel__in { flex: 1; overflow-y: auto; padding: calc(var(--bar-h) + 20px) 32px 32px; max-width: 46em; }
.dv-panel__title { margin: 0 0 20px; font-size: 28px; line-height: 32px; letter-spacing: .01em; }
.dv-panel__meta { margin: 0 0 6px; }
.dv-panel__lede { margin: 20px 0 0; }
.dv-panel__in p:not(.dv-panel__meta):not(.dv-panel__lede) { margin: 14px 0 0; text-wrap: pretty; }
.dv-panel__links { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 6px; }
.dv-panel__links a { border-bottom: 1px solid var(--hair); transition: border-color .2s; }
.dv-panel__links a:hover { border-bottom-color: var(--ink); }
.dv-panel__close { align-self: flex-end; margin: 0 var(--m) 22px; border: 0; padding: 0; background: none; color: var(--ink); font-size: 15px; cursor: pointer; }
.dv-panel__close:hover { opacity: .55; }
body.is-details .dv-stage { transform: translateX(-25vw); }

@media (prefers-reduced-motion: reduce) {
  .dv-track, .dv-stage, .dv-panel { transition: none; }
}

@media (max-width: 900px) {
  .dv { padding-top: calc(var(--bar-h) + 24px); }
  .dv-list { gap: 40px; }
  .dv-item { width: calc(100vw - 2 * var(--m)); }
  .dv-slide { padding: 12px var(--m); }
  .dv-nav { display: none; }
  .dv-bottom { height: 56px; font-size: 13px; }
  .dv-stage { bottom: 56px; }
  .dv-panel { width: 100vw; }
  body.is-details .dv-stage { transform: none; }
}

/* ---------- project pages (Oct 23, 2026): one photo with a museum label beside it, and a clear link to the live site ---------- */
.pj { padding-top: calc(var(--bar-h) + clamp(40px, 6vw, 96px)); }
.pj__grid { width: min(1320px, calc(100vw - 2 * var(--m))); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  grid-template-areas: "photo info"; gap: clamp(32px, 4.4vw, 80px); align-items: center; }
.pj__photo { grid-area: photo; display: block; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.pj__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
a.pj__photo:hover img { transform: scale(1.015); }
.pj__info { grid-area: info; max-width: 30em; }
.pj__kicker, .pj__label, .pj__pager { font-weight: 500; text-transform: uppercase; letter-spacing: .02em; font-size: 13px; line-height: 18px; }
.pj__kicker { margin: 0; color: var(--mute); }
.pj__title { margin: 10px 0 0; font-size: clamp(34px, 3.5vw, 54px); line-height: 1.04; letter-spacing: -.034em; font-weight: 400; }
.pj__notes { display: grid; gap: 22px; margin-top: clamp(24px, 2.6vw, 40px); }
.pj__label { margin: 0 0 6px; color: var(--mute); }
.pj__notes p { margin: 0; font-size: 16px; line-height: 25px; text-wrap: pretty; }
.pj__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: clamp(28px, 3vw, 44px); }
.pj__url { color: var(--mute); font-size: 13px; line-height: 18px; }
.pj__more { font-size: 15px; border-bottom: 1px solid var(--hair); transition: border-color .2s; }
.pj__more:hover { border-bottom-color: var(--ink); }
.pj__status { margin: 0; color: var(--mute); }
.pj__pager { width: min(1320px, calc(100vw - 2 * var(--m))); margin: clamp(64px, 8vw, 128px) auto 0; padding-top: 16px; border-top: 1px solid var(--hair);
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; }
.pj__pager a { color: var(--ink); transition: opacity .2s; }
.pj__pager a:hover { opacity: .55; }
.pj__pager a:last-child { justify-self: end; text-align: right; }
.pj-page .foot { margin-top: clamp(64px, 8vw, 128px); }

@media (max-width: 900px) {
  .pj__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .pj__info { display: contents; }
  .pj__head { order: 1; }
  .pj__photo { order: 2; margin-top: 24px; }
  .pj__notes { order: 3; margin-top: 28px; }
  .pj__cta { order: 4; align-items: stretch; text-align: center; }
  .pj__cta .pill { justify-content: center; }
  .pj__pager { grid-template-columns: 1fr 1fr; }
  .pj__all { display: none; }
}

/* ---------- case pages (Oct 23, 2026): a walk through the work, after Panter&Tourron's project pages (centred label, one
   paragraph, the pictures, the next paragraph), closing on a colophon of how it was made, after Max Marele's ---------- */
.cs { padding-top: calc(var(--bar-h) + clamp(56px, 8vw, 120px)); }
.cs__label { margin: 0 auto; text-align: center; font-size: 15px; line-height: 22px; }
.cs__label > * { margin: 0; font-size: inherit; line-height: inherit; font-weight: 400; }
.cs__client { color: var(--ink); font-weight: 500; }
.cs__title, .cs__meta { color: var(--mute); }
.cs__text { width: min(680px, calc(100vw - 2 * var(--m))); margin: clamp(48px, 6vw, 88px) auto 0; text-align: center; }
.cs__text p { margin: 0; font-size: 18px; line-height: 29px; text-wrap: pretty; }
.cs__text p + p { margin-top: 18px; }
.cs__text--lede p { font-size: clamp(22px, 2.05vw, 30px); line-height: 1.3; letter-spacing: -.018em; }
.cs__wide, .cs__pair { width: min(1200px, calc(100vw - 2 * var(--m))); margin: clamp(56px, 7vw, 104px) auto 0; }
.cs__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 24px); }
.cs figure { margin: 0; }
.cs figure img { display: block; width: 100%; height: auto; background: var(--paper-2); outline: 1px solid var(--hair); outline-offset: -1px; }
.cs figcaption { margin-top: 10px; color: var(--mute); font-size: 13px; line-height: 18px; }
.cs__colophon { width: min(680px, calc(100vw - 2 * var(--m))); margin: clamp(80px, 10vw, 152px) auto 0; padding-top: 18px; border-top: 1px solid var(--hair); }
.cs__colophon h2 { margin: 0; font-size: 15px; line-height: 22px; font-weight: 500; }
.cs__colophon > p { margin: 2px 0 0; color: var(--mute); font-size: 15px; line-height: 22px; }
.cs__colophon dl { margin: 28px 0 0; display: grid; grid-template-columns: 112px 1fr; gap: 16px 24px; }
.cs__colophon dt { color: var(--mute); font-size: 15px; line-height: 24px; }
.cs__colophon dd { margin: 0; font-size: 15px; line-height: 24px; text-wrap: pretty; }
.cs__visit { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: clamp(64px, 8vw, 112px) auto 0; text-align: center; }
.cs__visit .pj__url { font-size: 13px; }
.cs__visit .pj__status { font-size: 15px; }
.cs-page .pj__pager { margin-top: clamp(80px, 10vw, 144px); }
@media (max-width: 760px) {
  .cs__text { text-align: left; }
  .cs__text p { font-size: 17px; line-height: 27px; }
  .cs__pair { grid-template-columns: 1fr; }
  .cs__colophon dl { grid-template-columns: 1fr; gap: 2px 0; }
  .cs__colophon dd + dt { margin-top: 14px; }
  .cs__visit { align-items: stretch; }
  .cs__visit .pill { justify-content: center; }
}

/* ---------- phones (Oct 23, 2026): a touch more air at the sides of the Work pages (Will) ---------- */
@media (max-width: 760px) {
  .dv-item { width: calc(100vw - 48px); }
  .cs__text, .cs__colophon { width: calc(100vw - 48px); }
  .cs__wide, .cs__pair { width: calc(100vw - 48px); }
  .cs-page .pj__pager { width: calc(100vw - 48px); }
  .cs__visit { width: calc(100vw - 48px); }
}
/* the pager on phones: a small "Previous" / "Next" label over each name, names in sentence case, so long names wrap cleanly */
@media (max-width: 760px) {
  .pj__pager { text-transform: none; letter-spacing: 0; font-size: 16px; line-height: 22px; align-items: start; gap: 24px; }
  .pj__pager a::before { display: block; margin-bottom: 6px; color: var(--mute); font-size: 12px; line-height: 16px; letter-spacing: .02em; text-transform: uppercase; }
  .pj__pager a:first-child::before { content: "Previous"; }
  .pj__pager a:last-child::before { content: "Next"; }
}

/* ---------- Before you begin, the questions page (Oct 24, 2026; folded Oct 26) ----------
   Will: "make the faq page more beautiful and have collapsable answers so the page is not so long". The title and the
   Long-Distance Call, in its Louis frame, stay in view on the left; the questions sit in three groups on the right, each
   answer folded under its question and opened one at a time (details name="faq"; site.js handles links to #a-question). */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: calc(var(--u) * 3); align-items: start;
  padding-top: calc(var(--bar-h) + clamp(48px, 7vw, 112px)); interpolate-size: allow-keywords; }
.faq__side { grid-column: 1 / span 5; position: sticky; top: calc(var(--bar-h) + 40px); }
.faq__title { margin: 0; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.036em; font-weight: 400; text-wrap: balance; }
.faq__intro { margin: calc(var(--u) * 2) 0 0; max-width: 24em; font-size: 17px; line-height: 27px; letter-spacing: -.003em; color: var(--mute); text-wrap: pretty; }
.faq__art { position: relative; margin: clamp(40px, 4.5vw, 64px) 0 0; max-width: 600px; }
.faq__art::before { content: ""; position: absolute; inset: -14% -16%; z-index: -1; pointer-events: none;   /* the picture light on the wall, as on the hero */
  background: radial-gradient(closest-side, rgba(255, 252, 243, .9), rgba(255, 252, 243, .45) 55%, rgba(255, 252, 243, 0)); }
.faq__art > img { width: 100%; height: auto; }                              /* before frames.js hangs it */

.faq__body { grid-column: 7 / span 6; }
.faq__group + .faq__group { margin-top: clamp(48px, 5vw, 72px); }
.faq__label { margin: 0 0 12px; font: inherit; color: var(--mute); }
.faq__item { border-bottom: 1px solid var(--hair); scroll-margin-top: calc(var(--bar-h) + 24px); }
.faq__label + .faq__item { border-top: 1px solid var(--hair); }
.faq__q { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding: 21px 0 22px; cursor: pointer; list-style: none;
  font-size: 20px; line-height: 28px; letter-spacing: -.014em; text-wrap: balance; -webkit-tap-highlight-color: transparent; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
/* a fine plus that turns into a minus */
.faq__x { position: relative; flex: 0 0 auto; width: 13px; height: 13px; margin-top: 8px; color: var(--mute); transition: color .3s var(--ease-out); }
.faq__x::before, .faq__x::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: currentColor; }
.faq__x::after { transform: rotate(90deg); transition: transform .55s var(--ease); }
.faq__q:hover .faq__x, .faq__item[open] .faq__x { color: var(--ink); }
.faq__item[open] .faq__x::after { transform: rotate(0deg); }
/* the answer unfolds (browsers that can animate to auto height), and its lines rise in */
.faq__item::details-content { block-size: 0; overflow: clip; transition: block-size .55s var(--ease), content-visibility .55s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }
.faq__a { max-width: 36em; padding: 0 0 30px; }
.faq__item[open] .faq__a { animation: faqIn .8s var(--ease-out) both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }
.faq__a p, .faq__a li { margin: 0; font-size: 17px; line-height: 27px; color: rgba(18, 18, 17, .78); text-wrap: pretty; }
.faq__a p + p, .faq__a p + ul { margin-top: 12px; }
.faq__a ul { margin: 0; padding: 0; list-style: none; }
.faq__a li { padding-left: 1.1em; text-indent: -1.1em; }
.faq__a li::before { content: "·"; display: inline-block; width: 1.1em; text-indent: 0; color: var(--mute); }
.faq__a a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.faq__end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: clamp(48px, 5vw, 72px); }
.faq__mail { color: var(--mute); }
.faq__mail a { color: var(--ink); border-bottom: 1px solid var(--hair); transition: border-color .2s; }
.faq__mail a:hover { border-bottom-color: var(--ink); }
.faq__draft { grid-column: 1 / -1; margin: 0 0 40px; padding: 12px 16px; border-radius: 10px; background: rgba(220, 40, 120, .07); color: #a3195b; font-size: 14px; line-height: 21px; text-align: center; }
.faq__confirm { margin-top: 14px !important; padding: 10px 14px; border-left: 2px solid #dc2878; background: rgba(220, 40, 120, .06); color: #a3195b; font-size: 14px !important; line-height: 21px !important; }
@media (prefers-reduced-motion: reduce) {
  .faq__item::details-content { transition: none; }
  .faq__item[open] .faq__a { animation: none; }
}
@media (max-width: 999px) {
  .faq { overflow-x: clip; }                                                /* the picture light never widens the page */
  .faq__side { position: static; grid-column: 1 / -1; }
  .faq__art { max-width: 560px; margin-top: 40px; }
  .faq__body { grid-column: 1 / -1; margin-top: 64px; }
}
@media (max-width: 760px) {
  .faq { padding-top: calc(var(--bar-h) + 36px); }
  .faq__title { font-size: 40px; }
  .faq__intro { font-size: 16px; line-height: 25px; }
  .faq__art { margin-top: 32px; }
  .faq__body { margin-top: 56px; }
  .faq__q { gap: 20px; padding: 18px 0 19px; font-size: 18px; line-height: 26px; }
  .faq__x { margin-top: 7px; }
  .faq__a { padding-bottom: 24px; }
  .faq__a p, .faq__a li { font-size: 16px; line-height: 25px; }
  .faq__end { flex-direction: column; align-items: stretch; text-align: center; }
  .faq__end .pill { justify-content: center; }
}
