/* =====================================================================================================
   Project showcase (project-showcase-1.0, 2026-12-04): a project of 2S Studio designs, told with its own data —
   the room photograph, each design before and after, its reference and what changed, every catalog piece and
   finish with its price, the cost of each design, earlier versions, the DesignBook pages. Loaded after
   css/atelier.css and css/project-hero.css by the page scripts/project-showcase/build.mjs writes; every rule is
   scoped to .at .ps-*, in the site's own ivory, stone, ink and brass, Playfair Display, Manrope and DM Mono.
   ===================================================================================================== */

/* ---------- shared ---------- */
/* (scrolling: the header's backdrop blur is re-drawn over every photograph that passes under it on every frame — this page
   is mostly photographs, so its header is the same ivory, solid) */
.at.ps-page .at-nav.site-nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(245, 242, 234, 0.985); }
.at .ps-sec { padding: var(--at-pad) var(--at-inset); position: relative; }
.at .ps-sec--stone { background: var(--stone); }
.at .ps-sec--ink { background: var(--ink); color: var(--ivory); --line: var(--at-ink-line); }
.at .ps-sec--ink .at-mark__n { color: var(--at-brass-light); }
.at .ps-lede { font: 400 clamp(18px, 1.6vw, 21px)/1.5 var(--serif); letter-spacing: -0.005em; color: var(--at-ink-2); max-width: 46ch; margin: 0; text-wrap: pretty; }
.at .ps-sec--ink .ps-lede { color: var(--at-band-2); }
.at .ps-small { font-size: 13.5px; line-height: 1.55; color: var(--at-ink-3); }
.at .ps-sec--ink .ps-small { color: rgba(245, 242, 234, 0.6); }
.at .ps-h4 { font: 500 11px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--at-brass-text); margin: 0 0 22px; display: flex; align-items: center; gap: 16px; }
.at .ps-h4::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.at .ps-sec--ink .ps-h4 { color: var(--at-brass-light); }
.at .ps-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.at .ps-chips li { border: 1px solid currentColor; border-radius: 999px; padding: 6px 12px; font: 400 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--at-brass-text); }
.at .ps-design__stage .ps-chips li { color: var(--at-brass-light); }

/* every picture with width/height attributes takes its height from its own ratio (the attributes only reserve space) */
.at .ps-index img, .at .ps-ref img, .at .ps-versions img, .at .ps-sum img { height: auto; }

/* ---------- 01 how it was made ---------- */
.at .ps-how__head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px 72px; align-items: end; margin-bottom: 56px; }
.at .ps-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.at .ps-steps li { display: grid; align-content: start; gap: 14px; padding: 26px 26px 8px 0; }
.at .ps-steps li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.at .ps-steps .ps-n { font: italic 400 40px/1 var(--serif); color: var(--at-brass-text); }
.at .ps-steps h3 { font: 400 clamp(24px, 2.2vw, 28px)/1.1 var(--serif); letter-spacing: -0.02em; margin: 0; }
.at .ps-steps p { margin: 0; color: var(--at-ink-2); font-size: 15.5px; line-height: 1.6; }
.at .ps-note { margin: 48px 0 0; padding: 22px 26px; border-left: 2px solid var(--brass); background: var(--at-paper); max-width: 72ch; font-size: 15.5px; line-height: 1.6; color: var(--at-ink-2); }

/* ---------- 02 the designs: the index ---------- */
.at .ps-index { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 48px 0 0; padding: 0; list-style: none; }
.at .ps-index a { display: grid; gap: 10px; color: inherit; }
.at .ps-index img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity 0.3s ease; }
.at .ps-index a:hover img { opacity: 0.86; }
.at .ps-index .ps-index__n { font: 400 10.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--at-brass-light); }
.at .ps-index .ps-index__t { font: 400 19px/1.15 var(--serif); letter-spacing: -0.01em; }
.at .ps-index a:hover .ps-index__t { font-style: italic; }
.at .ps-index .ps-index__p { font: 400 11px/1.4 var(--mono); letter-spacing: 0.08em; color: rgba(245, 242, 234, 0.66); }

/* ---------- a design: the stage (dark) ---------- */
.at .ps-design { scroll-margin-top: 90px; }
.at .ps-design__stage { background: var(--ink); color: var(--ivory); padding: clamp(72px, 8vw, 112px) var(--at-inset-wide) clamp(56px, 6vw, 80px); --line: var(--at-ink-line); }
.at .ps-design__stage .at-mark { margin-bottom: 30px; }
.at .ps-design__stage .at-mark__n { color: var(--at-brass-light); }
.at .ps-design__stage .at-mark__aside { color: rgba(245, 242, 234, 0.6); }
.at .ps-design__head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: 36px; }
.at .ps-design__title { font: 400 clamp(44px, 6.4vw, 96px)/0.95 var(--serif); letter-spacing: -0.04em; margin: 0; text-wrap: balance; }
.at .ps-design__title em { color: var(--at-brass-light); }
.at .ps-design__meta { display: grid; gap: 14px; justify-items: start; }
.at .ps-design__meta p { margin: 0; color: rgba(245, 242, 234, 0.78); font-size: 15px; line-height: 1.55; }
.at .ps-design__price { display: flex; align-items: baseline; gap: 14px; }
/* a big sum and the words under it, everywhere on this page: about 24 px of clear space from the lowest ink of the figures
   (the italic serif's "$" and old-style figures reach below the baseline, the more the larger they are — hence the em
   terms) to the top of the caption's letters (the Owner, 2026-12-04: "lower this description a bit under the total sum,
   for all similar blocks"). The design's sum here, its total in "What it costs" (.ps-cost__total) and the cost list
   (.ps-sum, its row gap and, on a phone, the sum's margin). */
.at .ps-design__price b { font: italic 400 clamp(36px, 3.6vw, 52px)/1 var(--serif); letter-spacing: -0.02em; color: var(--ivory); margin-bottom: calc(0.07em + 5px); }
.at .ps-design__price span { font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245, 242, 234, 0.6); }

/* each picture block takes the edges of its own block's words (the Owner, 2026-12-04, evening; it replaces the afternoon's
   "one third of the side space"), the whole picture or page, never cropped, however tall that makes it:
   - a design's before / after runs from the first letter of its heading ("Design 0N", or its title — both start at the
     design stage's column) to the end of the last digit of its "Version N" (right-aligned to that column): the stage's
     column itself. Its label's last letter keeps no letter-spacing after it, so the digit ends on the column's edge;
   - the DesignBook's page runs from the first digit of its section number ("03") to the same distance from the page's
     right side: its section's column. */
.at .ps-ba, .at .ps-mag__stage, .at .ps-mag__bar, .at .ps-mag__wait { width: auto; margin-inline: 0; }
.at .ps-design__stage .at-mark__aside { margin-right: -0.16em; }
/* before | after: a switch on the photo, at its top right, no curtain and nothing under the picture (the Owner, 2026-12-04,
   afternoon: "make it just a switch … remove the curtain", then "not below, on the photo itself, at the top right"). The two
   pictures lie one over the other; the checked side fades in on top while the other waits under it and then hides, so
   the switch never dips to the background. js/project-showcase.js sets data-show. The switch sits in a small dark
   translucent capsule (the slider tags' ground), the checked side filled ivory, so it reads on any photograph. */
.at .ps-ba__pic { position: relative; aspect-ratio: 4 / 3; background: #2a2b27; overflow: hidden; }
.at .ps-ba__view { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; z-index: 0; transition: opacity 0s linear 0.32s, visibility 0s linear 0.32s; }
.at .ps-ba[data-show="before"] .ps-ba__view--before, .at .ps-ba[data-show="after"] .ps-ba__view--after { opacity: 1; visibility: visible; z-index: 1; transition: opacity 0.32s ease, visibility 0s; }
.at .ps-ba__view img { display: block; width: 100%; height: 100%; object-fit: contain; }
.at .ps-ba__switch { position: absolute; top: 18px; right: 18px; z-index: 2; display: inline-flex; gap: 2px; margin: 0; padding: 4px; border: 0; border-radius: 999px; background: rgba(20, 20, 18, 0.72); min-inline-size: 0; }
.at .ps-ba__switch legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.at .ps-ba__switch label { position: relative; display: block; cursor: pointer; }
/* (each side's input covers its label and reaches 8 px above and below the capsule: a finger-sized target on a small control) */
.at .ps-ba__switch input { position: absolute; top: -8px; left: 0; width: 100%; height: calc(100% + 16px); margin: 0; opacity: 0; cursor: pointer; }
.at .ps-ba__switch span { display: flex; align-items: center; min-height: 30px; padding: 0 14px; border-radius: 999px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(245, 242, 234, 0.86); transition: background-color 0.2s ease, color 0.2s ease; }
.at .ps-ba__switch label:hover span { color: var(--ivory); }
.at .ps-ba__switch input:checked + span { background: var(--ivory); color: var(--ink); }
.at .ps-ba__switch input:focus-visible + span { outline: 2px solid var(--at-brass-light); outline-offset: 2px; }

/* ---------- a design: the body (light) ---------- */
.at .ps-design__body { padding: clamp(64px, 7vw, 104px) var(--at-inset) clamp(72px, 8vw, 112px); display: grid; gap: clamp(56px, 6vw, 88px); }
.at .ps-design__body:nth-of-type(odd) { background: var(--ivory); }
.at .ps-read { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.at .ps-ref { margin: 0; display: grid; gap: 14px; position: sticky; top: 104px; }
.at .ps-ref img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--stone); }
.at .ps-ref figcaption { display: grid; gap: 4px; }
.at .ps-ref figcaption b { font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--at-brass-text); }
.at .ps-ref figcaption span { font-size: 14px; line-height: 1.5; color: var(--at-ink-2); }
.at .ps-reading { display: grid; gap: 28px; }
.at .ps-reading__quote { font: 400 clamp(22px, 2.2vw, 30px)/1.3 var(--serif); letter-spacing: -0.015em; margin: 0; text-wrap: pretty; }
.at .ps-reading__quote em { color: var(--at-brass-text); }
.at .ps-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 22px; margin: 0; border-top: 1px solid var(--line); padding-top: 18px; }
.at .ps-facts dt { font: 400 10.5px/1.7 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--at-ink-3); }
.at .ps-facts dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--at-ink-2); }
.at .ps-changes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.at .ps-changes h5 { font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.at .ps-changes ul { list-style: none; margin: 0; padding: 0; }
.at .ps-changes li { font-size: 14px; line-height: 1.45; color: var(--at-ink-2); padding: 7px 0; border-bottom: 1px solid var(--line); }
.at .ps-changes li b { font-weight: 500; color: var(--ink); }
.at .ps-changes li i { color: var(--at-ink-3); }

/* the pieces: product blocks — eight parts each, always in this order: photo, what it is, name, maker, variant, size, price,
   note (scripts/project-showcase/build.mjs card). With subgrid every part lines up across a row of blocks: the names start
   together and take the same room, the captions line up, the rule above the price and the price sit on one line (the
   Owner, 2026-12-04). Without subgrid each block is a column with its price at the foot. */
.at .ps-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 22px; row-gap: 0; margin: 0; padding: 0; list-style: none; }
.at .ps-card { display: flex; flex-direction: column; min-width: 0; padding-bottom: 44px; }
/* (product-fit-1.0, the Owner 2026-12-04: "products that don't fit their block — show every product whole"): the photo fills an
   inset box and is contained in it — a tall photo's max-height in % never resolved in this box, so it was drawn at full height and
   cropped top and bottom */
.at .ps-card__ph { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.at .ps-card__ph img { position: absolute; inset: 8%; width: 84%; height: 84%; max-width: none; object-fit: contain; transition: transform 0.6s var(--ease-4); }
.at a.ps-card__ph:hover img { transform: scale(1.04); }
.at .ps-card__tag { display: flex; justify-content: space-between; gap: 10px; margin: 16px 0 8px; font: 500 10px/1.4 var(--mono); letter-spacing: 0.15em; text-transform: uppercase; color: var(--at-brass-text); }
.at .ps-card__tag span:last-child { color: var(--at-ink-3); white-space: nowrap; }
.at .ps-card__name { margin: 0; font: 400 19px/1.2 var(--serif); letter-spacing: -0.01em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.at .ps-card__name a:hover { font-style: italic; }
.at .ps-card__vendor { margin: 8px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--at-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at .ps-card__var { margin: 3px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--at-ink-3); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.at .ps-card__var:empty, .at .ps-card__note:empty { margin: 0; }
.at .ps-card__price { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ink); }
.at .ps-card__size { margin-bottom: 22px; }
.at .ps-card__price b { font: 400 21px/1.1 var(--serif); letter-spacing: -0.01em; white-space: nowrap; }
.at .ps-card__price span { font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.06em; color: var(--at-ink-3); text-align: right; }
.at .ps-card__note { margin: 8px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--at-ink-3); }
@supports (grid-template-rows: subgrid) {
  .at .ps-card { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; padding-bottom: 0; }
  .at .ps-card__price { margin-top: 0; align-self: start; }
  .at .ps-card__note { padding-bottom: 44px; }
}

/* an item with no photograph (a custom or on-request piece): a row, never an empty picture (the Owner, 2026-12-04) */
.at .ps-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.at .ps-cards + .ps-lines { margin-top: 4px; }
.at .ps-line { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 6px 32px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.at .ps-line__kind { font: 500 10.5px/1.6 var(--mono); letter-spacing: 0.15em; text-transform: uppercase; color: var(--at-brass-text); }
.at .ps-line__name { margin: 0; font: 400 20px/1.25 var(--serif); letter-spacing: -0.01em; }
.at .ps-line__name a:hover { font-style: italic; }
.at .ps-line__desc { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--at-ink-2); max-width: 74ch; text-wrap: pretty; }
.at .ps-line__price { font: 400 10.5px/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--at-ink-3); white-space: nowrap; }

/* what a design costs */
.at .ps-cost { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 24px 72px; padding: clamp(32px, 4vw, 56px); background: var(--stone); }
.at .ps-cost__total { display: grid; align-content: end; gap: 10px; } /* (cost-total-low-1.0, the Owner 2026-12-04: the sum and its caption sit low, at the block's foot) */
.at .ps-cost__total b { font: italic 400 clamp(52px, 6vw, 84px)/1 var(--serif); letter-spacing: -0.035em; margin-bottom: calc(0.11em - 2.3px); }
.at .ps-cost__total span { font: 400 10.5px/1.5 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--at-ink-3); }
.at .ps-cost__total p { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--at-ink-2); max-width: 40ch; }
.at .ps-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.at .ps-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.at .ps-rows li > span:first-child { font: 400 19px/1.25 var(--serif); letter-spacing: -0.01em; }
.at .ps-rows li > span:first-child small { display: block; margin-top: 3px; font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--at-ink-3); }
.at .ps-rows li > span:last-child { font: 400 13px/1 var(--mono); letter-spacing: 0.04em; white-space: nowrap; }
.at .ps-rows li.is-total > span:first-child { font-style: italic; }
.at .ps-rows li.is-total > span:last-child { font: 400 22px/1 var(--serif); letter-spacing: -0.01em; }
.at .ps-excl { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.at .ps-excl li { font-size: 13px; line-height: 1.5; color: var(--at-ink-2); padding-left: 18px; position: relative; }
.at .ps-excl li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--brass); }

/* how it got here: the earlier versions */
.at .ps-versions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; margin: 0; padding: 0; list-style: none; }
.at .ps-versions figure { margin: 0; display: grid; gap: 12px; }
.at .ps-versions a { display: block; overflow: hidden; }
.at .ps-versions img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--ease-4); }
.at .ps-versions a:hover img { transform: scale(1.025); }
.at .ps-versions figcaption { display: grid; gap: 6px; }
.at .ps-versions figcaption b { display: flex; justify-content: space-between; gap: 12px; font: 400 20px/1.2 var(--serif); }
.at .ps-versions figcaption b span { font: 400 13px/1.6 var(--mono); }
.at .ps-versions figcaption p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--at-ink-2); }
.at .ps-versions .is-current figcaption b::after { content: none; }
.at .ps-versions .ps-tag { font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--at-brass-text); }

/* ---------- 03 the DesignBook: a magazine, one large page at a time (js/project-showcase.js) ---------- */
.at .ps-mag { margin-top: clamp(40px, 5vw, 64px); }
.at .ps-mag__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.at .ps-mag__tabs button { display: grid; gap: 5px; text-align: left; padding: 13px 18px 14px; background: transparent; color: var(--ivory); border: 1px solid rgba(245, 242, 234, 0.28); cursor: pointer; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.at .ps-mag__tabs button:hover { border-color: var(--ivory); }
.at .ps-mag__tabs button b { font: 400 18px/1.2 var(--serif); letter-spacing: -0.01em; }
.at .ps-mag__tabs button span { font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245, 242, 234, 0.6); }
.at .ps-mag__tabs button[aria-selected="true"] { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.at .ps-mag__tabs button[aria-selected="true"] span { color: var(--at-ink-3); }
.at .ps-mag__book + .ps-mag__book { margin-top: 56px; }
.at .ps-mag__book[hidden] { display: none; }
.at .ps-mag__title { font: 400 clamp(24px, 2.4vw, 32px)/1.1 var(--serif); letter-spacing: -0.02em; margin: 0 0 16px; }
.at .ps-mag__title em { color: var(--at-brass-light); }
.at .ps-mag__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.at .ps-mag__tabs button.is-pending { border-style: dashed; }
.at .ps-mag__tabs button.is-pending:not([aria-selected="true"]) b { color: rgba(245, 242, 234, 0.72); }
.at .ps-mag__wait { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: center; padding: 28px; border: 1px dashed rgba(245, 242, 234, 0.3); }
.at .ps-mag__wait img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; opacity: 0.8; }
.at .ps-mag__wait p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(245, 242, 234, 0.8); max-width: 38ch; }
.at .ps-mag__wait b { display: block; margin-bottom: 8px; font: 400 26px/1.15 var(--serif); color: var(--ivory); }
.at .ps-mag__stage { position: relative; }
/* (its width: the before / after's frame, above — the whole A4 landscape page in it) */
.at .ps-mag__track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; margin: 0; padding: 0; list-style: none; scrollbar-width: none; background: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.at .ps-mag__track::-webkit-scrollbar { display: none; }
.at .ps-mag__track:focus-visible { outline: 2px solid var(--at-brass-light); outline-offset: 6px; }
.at .ps-mag__page { flex: 0 0 100%; position: relative; aspect-ratio: 297 / 210; scroll-snap-align: center; scroll-snap-stop: always; background: #fff; }
.at .ps-mag__page img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* the paper: a soft shade at the spine and the fore-edge */
.at .ps-mag__page::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0) 3.5%, rgba(0, 0, 0, 0) 97%, rgba(0, 0, 0, 0.05)); }
.at .ps-mag__arrow { position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-top: -28px; padding: 0 0 4px; border: 0; border-radius: 50%; background: rgba(245, 242, 234, 0.94); color: var(--ink); font: 400 34px/1 var(--serif); cursor: pointer; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28); transition: opacity 0.25s ease, transform 0.25s ease; }
.at .ps-mag__arrow:hover:not(:disabled) { transform: scale(1.06); }
.at .ps-mag__arrow:disabled { opacity: 0.28; cursor: default; }
.at .ps-mag__prev { left: 18px; }
.at .ps-mag__next { right: 18px; }
.at .ps-mag__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 18px; font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245, 242, 234, 0.66); }
.at .ps-mag__count { color: var(--ivory); }
.at .ps-mag__count b { font: 400 24px/1 var(--serif); letter-spacing: 0; }
.at .ps-mag__meta { flex: 1; }
.at .ps-mag__full { font: 400 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory); background: transparent; border: 1px solid rgba(245, 242, 234, 0.4); padding: 11px 14px; cursor: pointer; }
.at .ps-mag__full:hover { background: var(--ivory); color: var(--ink); }

/* ---------- 04 what each design costs ---------- */
.at .ps-sum { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.at .ps-sum > li { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; grid-template-areas: "img name total" "img meta break"; column-gap: 28px; row-gap: 19px; align-items: end; padding: 22px 0; border-bottom: 1px solid var(--line); }
.at .ps-sum__img { grid-area: img; align-self: center; }
.at .ps-sum img { width: 132px; aspect-ratio: 4 / 3; object-fit: cover; }
.at .ps-sum__name { grid-area: name; display: grid; gap: 6px; }
/* (the title and the sum sit on one baseline; a browser without last-baseline keeps them bottom-aligned) */
.at .ps-sum__name, .at .ps-sum__total { align-self: end; align-self: last baseline; }
.at .ps-sum__name a { font: 400 clamp(22px, 2.2vw, 28px)/1.1 var(--serif); letter-spacing: -0.02em; }
.at .ps-sum__name a:hover { font-style: italic; }
.at .ps-sum__name span { font: 400 10.5px/1.5 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--at-ink-3); }
.at .ps-sum__total { grid-area: total; justify-self: end; font: italic 400 clamp(26px, 2.8vw, 36px)/1 var(--serif); letter-spacing: -0.02em; }
/* (both captions in the entry's second row, on one baseline) */
.at .ps-sum__meta { grid-area: meta; align-self: baseline; font-size: 13px; line-height: 1.45; color: var(--at-ink-2); }
.at .ps-sum__break { grid-area: break; align-self: baseline; justify-self: end; text-align: right; font: 400 10.5px/1.45 var(--mono); letter-spacing: 0.1em; color: var(--at-ink-3); }
.at .ps-notes { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 48px; }
.at .ps-notes li { font-size: 14px; line-height: 1.55; color: var(--at-ink-2); padding-left: 20px; position: relative; }
.at .ps-notes li::before { content: ""; position: absolute; left: 0; top: 0.74em; width: 10px; height: 1px; background: var(--brass); }
.at .ps-makers { margin-top: clamp(64px, 7vw, 96px); }
.at .ps-makers .pd-vendors-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--ink); }
.at .ps-makers .pd-vendor-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.at .ps-makers .pv-name { font: 400 20px/1.2 var(--serif); letter-spacing: -0.01em; }
.at .ps-makers a.pv-name:hover { font-style: italic; }
.at .ps-makers .pv-meta { font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--at-ink-3); white-space: nowrap; }

/* ---------- a product as a pop-up, with Add to order (js/project-showcase.js) ---------- */
.at .ps-pop { border: 0; padding: 0; width: min(1000px, calc(100vw - 40px)); max-width: none; max-height: calc(100vh - 40px); background: var(--ivory); color: var(--ink); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38); overflow: auto; overscroll-behavior: contain; }
.at .ps-pop::backdrop { background: rgba(20, 20, 18, 0.62); }
.at .ps-pop__x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(245, 242, 234, 0.9); color: var(--ink); font: 300 32px/1 var(--sans); cursor: pointer; }
.at .ps-pop__x:hover { background: var(--ink); color: var(--ivory); }
.at .ps-pop__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 520px; }
.at .ps-pop__media { background: #fff; padding: 36px; display: grid; align-content: center; gap: 16px; }
.at .ps-pop__photo { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; }
.at .ps-pop__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.at .ps-pop__thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.at .ps-pop__thumbs button { width: 54px; height: 54px; padding: 4px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.at .ps-pop__thumbs button[aria-current="true"] { border-color: var(--ink); }
.at .ps-pop__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.at .ps-pop__body { display: grid; align-content: start; gap: 12px; padding: 48px 44px 36px; }
.at .ps-pop__tag { margin: 0; font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.15em; text-transform: uppercase; color: var(--at-brass-text); }
.at .ps-pop__name { margin: 0; font: 400 clamp(26px, 2.6vw, 34px)/1.1 var(--serif); letter-spacing: -0.02em; }
.at .ps-pop__vendor { margin: 0; font-size: 15px; color: var(--at-ink-2); }
.at .ps-pop__facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.at .ps-pop__facts div { display: contents; }
.at .ps-pop__facts dt { font: 400 10px/1.8 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--at-ink-3); }
.at .ps-pop__facts dd { margin: 0; font-size: 14.5px; line-height: 1.5; }
.at .ps-pop__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--ink); }
.at .ps-pop__price b { font: 400 32px/1 var(--serif); letter-spacing: -0.02em; }
.at .ps-pop__price span { font: 400 11px/1.4 var(--mono); letter-spacing: 0.06em; color: var(--at-ink-3); }
.at .ps-pop__note, .at .ps-pop__hint { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--at-ink-3); }
.at .ps-pop__buy { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-top: 6px; }
.at .ps-pop__qty { display: flex; align-items: stretch; border: 1px solid var(--ink); }
.at .ps-pop__qty button { width: 46px; border: 0; background: transparent; color: var(--ink); font: 400 20px/1 var(--sans); cursor: pointer; }
.at .ps-pop__qty button:hover { background: var(--stone); }
.at .ps-pop__qty input { width: 52px; border: 0; background: transparent; text-align: center; font: 500 16px/1 var(--sans); color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.at .ps-pop__qty input::-webkit-inner-spin-button, .at .ps-pop__qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.at .ps-pop__add { flex: 1 1 200px; }
.at .ps-pop__add:disabled { opacity: 0.6; cursor: progress; }
.at .ps-pop__why { margin: 6px 0 0; padding: 14px 16px; border-left: 2px solid var(--brass); background: var(--stone); font-size: 14px; line-height: 1.5; color: var(--at-ink-2); }
.at .ps-pop__msg { min-height: 1.5em; margin: 0; font-size: 14px; line-height: 1.5; }
.at .ps-pop__msg.is-ok { color: #2f5a3b; }
.at .ps-pop__msg.is-err { color: #9a3a2c; }
.at .ps-pop__msg a { text-decoration: underline; text-underline-offset: 3px; }
.at .ps-pop__page { justify-self: start; margin-top: 4px; }

/* the numbers (5 designs · 8 versions drawn …): every number on one line, every label on one line — the number in the first
   row, the label in the second, on a 2 × 2 grid on a phone; lining figures, so the digits stand on one baseline (the Owner) */
.at.ps-page .pd-statline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; }
.at.ps-page .pd-stat b { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.at.ps-page .pd-stat span { padding-bottom: 36px; }
@media (min-width: 761px) { .at.ps-page .pd-statline { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@supports (grid-template-rows: subgrid) {
  .at.ps-page .pd-stat { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
  .at.ps-page .pd-stat b { align-self: end; }
  .at.ps-page .pd-stat span { align-self: start; }
}

/* ---------- the lightbox (js/project-showcase.js) ---------- */
.ps-lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(14, 14, 12, 0.94); color: #f5f2ea; }
.ps-lightbox::backdrop { background: rgba(14, 14, 12, 0.9); }
.ps-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.ps-lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; font: 400 11px/1 "DM Mono", monospace; letter-spacing: 0.14em; text-transform: uppercase; }
.ps-lightbox__img { min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 64px; }
.ps-lightbox__img img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); background: #fff; }
.ps-lightbox button { font: 400 11px/1 "DM Mono", monospace; letter-spacing: 0.14em; text-transform: uppercase; color: inherit; background: transparent; border: 1px solid rgba(245, 242, 234, 0.4); padding: 12px 16px; cursor: pointer; }
.ps-lightbox button:hover { background: #f5f2ea; color: #1a1b18; }
.ps-lightbox__nav { display: flex; justify-content: center; gap: 12px; padding: 14px 20px 20px; }

/* ---------- larger and smaller screens ---------- */
@media (min-width: 1280px) {
  .at .ps-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 20px; }
}
@media (max-width: 1100px) {
  .at .ps-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .at .ps-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .at .ps-steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .at .ps-steps li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .at .ps-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .at .ps-how__head, .at .ps-design__head, .at .ps-read, .at .ps-cost { grid-template-columns: minmax(0, 1fr); }
  .at .ps-steps { grid-template-columns: minmax(0, 1fr); }
  .at .ps-steps li, .at .ps-steps li + li { padding: 22px 0 14px; border-left: 0; border-top: 1px solid var(--line); }
  .at .ps-steps li:first-child { border-top: 0; }
  .at .ps-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .at .ps-design__stage { padding-inline: var(--at-gut); }
  .at .ps-design__title { font-size: clamp(42px, 12vw, 60px); }
  .at .ps-ref { position: static; }
  .at .ps-ref img { aspect-ratio: 4 / 3; }
  .at .ps-changes { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .at .ps-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  @supports (grid-template-rows: subgrid) { .at .ps-card__note { padding-bottom: 34px; } }
  .at .ps-card__name { font-size: 17px; }
  .at .ps-card__price { flex-direction: column; align-items: flex-start; gap: 4px; }
  .at .ps-card__price span { text-align: left; }
  .at .ps-versions { grid-template-columns: minmax(0, 1fr); }
  .at .ps-sum > li { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "img name" "img total" "img meta" "img break"; row-gap: 0; align-items: start; }
  .at .ps-sum img { width: 96px; }
  .at .ps-sum__img { align-self: start; }
  .at .ps-sum__total { align-self: start; justify-self: start; margin: 12px 0 21px; }
  .at .ps-sum__name, .at .ps-sum__meta, .at .ps-sum__break { align-self: start; justify-self: start; text-align: left; }
  .at .ps-sum__break { margin-top: 4px; }
  .at .ps-notes, .at .ps-makers .pd-vendors-list { grid-template-columns: minmax(0, 1fr); }
  .at .ps-mag__track { box-shadow: none; }
  .at .ps-ba__switch { top: 12px; right: 12px; padding: 3px; }
  .at .ps-ba__switch span { padding: 0 12px; }
  .at .ps-mag__arrow { width: 42px; height: 42px; margin-top: -21px; font-size: 26px; }
  .at .ps-mag__prev { left: 6px; }
  .at .ps-mag__next { right: 6px; }
  .at .ps-mag__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--at-gut)); padding-inline: var(--at-gut); }
  .at .ps-mag__tabs::-webkit-scrollbar { display: none; }
  .at .ps-mag__tabs button { flex: 0 0 auto; padding: 11px 14px 12px; }
  .at .ps-mag__tabs button b { font-size: 16px; white-space: nowrap; }
  .at .ps-line { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .at .ps-mag__wait { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px; }
  .at .ps-line__price { white-space: normal; }
  .at .ps-pop { width: 100vw; max-height: 100dvh; margin: auto 0 0; }
  .at .ps-pop__in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .at .ps-pop__media { padding: 22px 22px 14px; }
  .at .ps-pop__photo { aspect-ratio: auto; height: min(40vh, 320px); }
  .at .ps-pop__body { padding: 22px 22px 30px; }
  .ps-lightbox__img { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .at .ps-ba__view, .at .ps-ba__switch span { transition: none; }
  .at .ps-card__ph img, .at .ps-versions img, .at .ps-index img { transition: none; }
}

/* facts-row-1.0 (the Owner, 2026-12-04: "lay this block out evenly, everything on one line; remove the horizontal line, keep only
   the vertical ones"): a project page's facts share one row, each the same width, with no rule above them */
.at.ps-page .at-facts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 0; }
@media (max-width: 900px) {
  .at.ps-page .at-facts { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* cost-bleed-1.0 (the Owner, 2026-12-04: "stretch this block's background across the whole screen"): the cost block's stone
   background runs to both edges of the window; its content stays in the page's column (a shadow, clipped to the block's height,
   paints the sides without widening the page) */
.at .ps-cost { box-shadow: 0 0 0 100vmax var(--stone); clip-path: inset(0 -100vmax); }
