:root {
  color-scheme: light;
  --paper: #f7f7f5; --ink: #171716; --muted: #585854; --line: #c9c9c5; --mount: #e7e7e4;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
:root[data-theme="dark"] { color-scheme: dark; --paper: #171716; --ink: #f5f5f1; --muted: #bdbdb6; --line: #494945; --mount: #222221; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { color-scheme: dark; --paper: #171716; --ink: #f5f5f1; --muted: #bdbdb6; --line: #494945; --mount: #222221; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
[hidden] { display: none !important; }
.page { max-width: 1680px; width: 91%; margin: auto; }
.masthead, .section-head, footer, .nameplate { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.masthead { min-height: 78px; border-bottom: 1px solid var(--line); }
.identity { display: flex; gap: 11px; align-items: center; font-weight: 650; letter-spacing: -.045em; font-size: 18px; }
.monogram { display: grid; place-content: center; width: 34px; height: 34px; background: var(--ink); color: var(--paper); font-size: 28px; font-weight: 900; letter-spacing: -.11em; padding: 0 4px 6px 0; }
.themes { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 30px; }
.themes button { display: flex; gap: 5px; align-items: center; justify-content: center; padding: 6px 11px; border-radius: 30px; font-size: 12px; min-height: 29px; }
.themes [aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.sun,.moon { font: 16px/1 Arial, sans-serif; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: clamp(46px,6vw,100px) 0 clamp(40px,5vw,85px); }
.hero h1 { font-size: clamp(80px,13.7vw,235px); line-height: .87; font-weight: 900; letter-spacing: -.082em; margin: 0 0 0 -.047em; }
.hero p { font-size: clamp(19px,2.25vw,36px); font-weight: 300; line-height: 1.1; letter-spacing: -.045em; margin: 0 .1em 0 0; }
.section-head { border-top: 1px solid var(--ink); padding: 16px 0 18px; }
.section-head h2 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -.025em; }
.section-head > span, footer { font-size: 12px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 15px; margin: 0 0 20px; }
.filters button { padding: 7px 0; color: var(--muted); border-bottom: 2px solid transparent; font-size: 14px; }
.filters button[aria-pressed="true"], .filters button:hover { color: var(--ink); border-bottom-color: currentColor; }
.collection { display: grid; gap: clamp(28px,3vw,56px); }
.shelf { --gap: clamp(10px,1.55vw,28px); display: flex; gap: var(--gap); align-items: flex-start; }
.card { --frame-height: clamp(345px,35.5vw,596px); position: relative; scroll-margin-block-start: 10px; flex: 1 1 0%; min-width: 0; transition: flex-grow 530ms cubic-bezier(.22,.72,.22,1); }
.card.open { flex-grow: 5.8; }
.gallery-photo { position: relative; }
.card:not(.open) .pager, .card:not(.open) .photo-caption { display: none; }
.photo-caption { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; padding-top: 9px; }
.position { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
@media (min-width: 841px) {
  .card.open { max-width: calc(var(--frame-height) * var(--ratio)); }
  .shelf:last-child.has-open { min-height: calc(100dvh - 10px); }
}
@media (max-width: 840px) {
  .shelf:last-child .card.open:last-child { min-height: calc(100dvh - 10px); }
}
@media (min-width: 841px) {
  .shelf:not(.has-open):not(:has(> :nth-child(3))) .card { max-width: calc((100% - 2 * var(--gap)) / 3); }
  .shelf.has-open .card:not(.open) .title { overflow-wrap: anywhere; }
}
.card h3 { margin: 0; font-weight: inherit; }
.cover { display: block; width: 100%; text-align: left; padding: 0; }
.frame { display: block; height: var(--frame-height); overflow: hidden; position: relative; background: var(--mount); touch-action: pan-y pinch-zoom; }
.artwork { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50%) center; transition: transform 400ms ease-out; }
.open .frame { height: auto; }
.open .artwork { height: auto; aspect-ratio: var(--ratio); object-fit: contain; object-position: center; }

@media (hover: hover) {
  .card:not(.open) .cover:hover .artwork { transform: scale(1.032); }
  .nameplate:hover .toggle { background: var(--ink); color: var(--paper); }
}
.nameplate { cursor: pointer; padding: 15px 0; align-items: flex-start; }
.names { min-width: 0; }
.title, .category { display: block; }
.title { font-size: clamp(21px,2.5vw,43px); font-weight: 600; letter-spacing: -.057em; line-height: 1.05; }
.category { margin-top: 6px; color: var(--muted); font-size: 14px; font-weight: 350; line-height: 1.4; }
.toggle { border: 1px solid var(--line); border-radius: 50%; }
.toggle { flex: none; position: relative; height: 35px; width: 35px; }
.toggle::before, .toggle::after { content: ""; position: absolute; width: 12px; height: 1.5px; background: currentColor; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.toggle::after { transform: translate(-50%,-50%) rotate(90deg); }
.open .toggle::after { opacity: 0; }
.shelf.has-open .card:not(.open) .title { font-size: clamp(17px,1.6vw,25px); }
.shelf.has-open .card:not(.open) .category, .shelf.has-open .card:not(.open) .toggle { display: none; }
.detail { border-top: 1px solid var(--line); padding-top: 14px; }
.description { font-size: clamp(16px,1.25vw,20px); font-weight: 300; letter-spacing: -.015em; line-height: 1.48; margin: 0 0 14px; max-width: 65ch; }
.caption { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.4; }
.pager { position: absolute; inset: 50% 8px auto; transform: translateY(-50%); display: flex; justify-content: space-between; pointer-events: none; }
.pager button { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #ffffff80; background: #171716dc; color: white; font-size: 22px; }
.pager button:disabled { background: #343434ad; color: #d1d1d1; cursor: default; }
.pager button:focus-visible { outline: 2px solid white; box-shadow: 0 0 0 5px #171716; }
@media (hover: hover) { .pager button:hover:enabled { background: #111; } }
footer { border-top: 1px solid var(--line); margin-top: clamp(42px,6vw,96px); padding: 20px 0 32px; }
@media (max-width: 840px) {
  .page { width: calc(100% - 36px); }
  .masthead { min-height: 65px; }
  .hero { display: block; padding: 40px 0 32px; }
  .hero h1 { font-size: clamp(65px,19.6vw,135px); }
  .hero p { font-size: 19px; margin-top: 19px; }
  .hero br { display: none; }
  .shelf { display: grid; grid-template-columns: minmax(0,1fr); gap: 25px; }
  .frame { --frame-height: clamp(250px,84vw,480px); }
  .nameplate { padding: 12px 0 0; }
  .title, .shelf.has-open .card:not(.open) .title { font-size: 27px; }
  .shelf.has-open .card:not(.open) .category, .shelf.has-open .card:not(.open) .toggle { display: block; }
  .detail { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
