/* ==========================================================================
   Akiko Hirai — Ceramic Artist
   Single-page app shell: every page is a full-viewport "view" reached from
   the menu. Views animate in/out via a curtain transition (see app.js).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #f1ede6;
  --paper-2: #e8e2d8;
  --paper-3: #ddd5c8;
  --ink: #171512;
  --ink-2: #3f3a33;
  --muted: #857c70;
  --line: rgba(23, 21, 18, 0.12);
  --line-strong: rgba(23, 21, 18, 0.28);
  --clay: #9a6847;
  --clay-2: #b9876a;
  --night: #12100d;
  --night-2: #1d1a16;
  --on-night: #efe9df;
  --on-night-muted: #9b9184;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --radius: 2px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);

  color-scheme: light;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
}
ol,
ul {
  list-style: none;
}
em {
  font-style: italic;
}
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}
::selection {
  background: var(--clay);
  color: var(--paper);
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 12px;
}
.noscript {
  position: fixed;
  inset: auto 0 0 0;
  padding: 16px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  z-index: 999;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-title,
.home-title,
.series-name {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.page-title {
  font-size: clamp(54px, 9vw, 132px);
  margin-top: 14px;
}
.page-title em,
.home-title em {
  color: var(--clay);
  font-weight: 300;
}
.page-intro {
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.75;
}
.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size 0.6s var(--ease-out), gap 0.4s var(--ease-out);
}
.text-link:hover {
  gap: 18px;
  background-size: 30% 1px;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease-out), border-color 0.5s;
}
.btn span {
  position: relative;
  z-index: 1;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.6s var(--ease-out);
  z-index: 0;
}
.btn:hover::before {
  transform: translateY(0);
}
.btn-solid {
  background: var(--ink);
  color: var(--paper);
}
.btn-solid::before {
  background: var(--clay);
}
.btn-ghost {
  border: 1px solid var(--line-strong);
}
.btn-ghost::before {
  background: var(--ink);
}
.btn-ghost:hover {
  color: var(--paper);
  border-color: var(--ink);
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
.round-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-grid;
  place-items: center;
  font-size: 16px;
  transition: background 0.4s var(--ease-out), color 0.4s, border-color 0.4s, transform 0.4s var(--ease-out);
}
.round-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.magnetic {
  will-change: transform;
}

/* ---------- Grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 900;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Loader ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: var(--night);
  color: var(--on-night);
  display: grid;
  place-items: center;
}
.loader-inner {
  display: grid;
  justify-items: center;
  gap: 22px;
}
.loader-jar {
  width: 64px;
  height: 76px;
}
.loader-jar path {
  fill: none;
  stroke: var(--clay-2);
  stroke-width: 1.2;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw 1.8s var(--ease-in-out) forwards;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
.loader-name {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  letter-spacing: 0.02em;
  overflow: hidden;
}
.loader-name span,
.loader-name em {
  display: inline-block;
  animation: rise 1s var(--ease-out) both;
}
.loader-name em {
  color: var(--clay-2);
  animation-delay: 0.12s;
}
@keyframes rise {
  from { transform: translateY(110%); }
}
.loader-count {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--on-night-muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Curtain (page transition) ---------- */
#curtain {
  position: fixed;
  inset: 0;
  z-index: 800;
  pointer-events: none;
}
.curtain-panel {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
}
.curtain-a {
  background: var(--clay);
}
.curtain-b {
  background: var(--night);
  color: var(--on-night);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.curtain-num {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--clay-2);
}
.curtain-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 1;
}

/* ---------- Cursor ---------- */
#cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1100;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  display: grid;
  place-items: center;
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out), margin 0.45s var(--ease-out), background 0.3s, opacity 0.3s;
  mix-blend-mode: difference;
  background: #fff;
  opacity: 0;
}
#cursor.is-visible {
  opacity: 1;
}
#cursor.is-hover {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
}
#cursor.has-label {
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  mix-blend-mode: normal;
  background: var(--ink);
}
.cursor-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0;
  transition: opacity 0.3s;
}
#cursor.has-label .cursor-label {
  opacity: 1;
}
@media (hover: none), (pointer: coarse) {
  #cursor {
    display: none;
  }
}

/* ---------- Header ---------- */
#site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 700;
  height: var(--header-h);
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  color: var(--ink);
  isolation: isolate;
  transition: color 0.6s var(--ease-out);
}
#site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(241, 237, 230, 0.86);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  transition: background 0.6s var(--ease-out), border-color 0.6s, opacity 0.4s;
}
body.on-dark #site-header::before {
  background: rgba(18, 16, 13, 0.72);
  border-bottom-color: rgba(239, 233, 223, 0.1);
}
body.menu-open #site-header::before {
  opacity: 0;
}
.header-nav {
  display: none;
  align-items: center;
  gap: clamp(14px, 1.5vw, 26px);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.header-nav a {
  position: relative;
  padding: 8px 0;
  opacity: 0.72;
  transition: opacity 0.3s;
}
.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.header-nav a:hover,
.header-nav a[aria-current="page"] {
  opacity: 1;
}
.header-nav a:hover::after,
.header-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.header-nav a[aria-current="page"]::after {
  background: var(--clay);
}
body.menu-open .header-nav {
  visibility: hidden;
}
@media (min-width: 1280px) {
  .header-nav {
    display: flex;
  }
}
body.on-dark #site-header,
body.menu-open #site-header {
  color: var(--on-night);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  margin-right: auto;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid currentColor;
  position: relative;
  transition: transform 0.8s var(--ease-out);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--clay);
}
.brand:hover .brand-mark {
  transform: rotate(180deg) scale(1.15);
}
.header-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ig-icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.ig-icon .ig-dot {
  fill: currentColor;
  stroke: none;
}
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background 0.3s;
}
.icon-btn:hover {
  background: var(--line);
}
body.on-dark .icon-btn:hover,
body.menu-open .icon-btn:hover {
  background: rgba(239, 233, 223, 0.12);
}
.icon-btn .ig-icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.4;
}
.ig-cta {
  margin-top: 28px;
  gap: 12px;
}
.btn .ig-icon {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
}
.basket-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background 0.3s;
}
.basket-btn:hover {
  background: var(--line);
}
.basket-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}
.basket-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--clay);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
}
.basket-count.bump {
  animation: bump 0.6s var(--ease-out);
}
@keyframes bump {
  30% { transform: scale(1.5); }
}
.menu-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 4px 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  transition: border-color 0.3s;
}
body.on-dark .menu-btn,
body.menu-open .menu-btn {
  border-color: rgba(239, 233, 223, 0.35);
}
.menu-btn:hover {
  border-color: currentColor;
}
.menu-btn-label {
  display: grid;
  height: 18px;
  overflow: hidden;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 18px;
}
.menu-btn-label span {
  transition: transform 0.6s var(--ease-out);
}
body.menu-open .menu-btn-label span {
  transform: translateY(-100%);
}
.menu-btn-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  transition: background 0.4s, transform 0.6s var(--ease-out);
}
body.on-dark .menu-btn-icon,
body.menu-open .menu-btn-icon {
  background: var(--on-night);
}
.menu-btn-icon i {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1px;
  background: var(--paper);
  transition: transform 0.6s var(--ease-out), top 0.6s var(--ease-out);
}
body.on-dark .menu-btn-icon i,
body.menu-open .menu-btn-icon i {
  background: var(--night);
}
.menu-btn-icon i:nth-child(1) {
  top: 12.5px;
}
.menu-btn-icon i:nth-child(2) {
  top: 17.5px;
}
.menu-btn-icon i:nth-child(3) {
  top: 22.5px;
}
.menu-btn:hover .menu-btn-icon i:nth-child(2) {
  transform: scaleX(0.6);
}
body.menu-open .menu-btn-icon i:nth-child(1) {
  top: 17.5px;
  transform: rotate(45deg);
}
body.menu-open .menu-btn-icon i:nth-child(2) {
  transform: scaleX(0);
}
body.menu-open .menu-btn-icon i:nth-child(3) {
  top: 17.5px;
  transform: rotate(-45deg);
}

/* ---------- Menu overlay ---------- */
#menu {
  position: fixed;
  inset: 0;
  z-index: 650;
  color: var(--on-night);
  visibility: hidden;
  pointer-events: none;
}
#menu.is-open {
  visibility: visible;
  pointer-events: auto;
}
.menu-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.menu-bg span {
  background: var(--night);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.8s var(--ease-in-out);
}
.menu-bg span:nth-child(2) { transition-delay: 0.06s; }
.menu-bg span:nth-child(3) { transition-delay: 0.12s; }
#menu.is-open .menu-bg span {
  transform: scaleY(1.01);
}
#menu.is-closing .menu-bg span {
  transform-origin: bottom;
}
.menu-inner {
  position: relative;
  height: 100%;
  padding: calc(var(--header-h) + 3vh) var(--gutter) 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  grid-template-rows: 1fr auto;
  gap: 24px 6vw;
  overflow-y: auto;
}
.menu-preview {
  grid-row: 1 / 2;
  align-self: center;
  aspect-ratio: 4 / 5;
  max-height: 64vh;
  width: 100%;
  max-width: 440px;
  justify-self: end;
  overflow: hidden;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s var(--ease-in-out) 0.25s;
}
#menu.is-open .menu-preview {
  clip-path: inset(0 0 0 0);
}
.menu-preview-frame {
  position: relative;
  width: 100%;
  height: 100%;
}
.menu-preview-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: preview-in 0.9s var(--ease-out) both;
}
@keyframes preview-in {
  from { clip-path: inset(0 0 100% 0); transform: scale(1.15); }
  to { clip-path: inset(0 0 0 0); transform: scale(1); }
}
.menu-list {
  align-self: center;
  counter-reset: m;
}
.menu-list li {
  overflow: hidden;
}
.menu-list a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 2px 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5.6vh, 64px);
  line-height: 1.12;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out), color 0.4s, opacity 0.4s;
}
#menu.is-open .menu-list a {
  transform: translateY(0);
  transition-delay: calc(0.25s + var(--i, 0) * 0.05s);
}
.menu-list:hover a {
  opacity: 0.35;
}
.menu-list a:hover,
.menu-list a[aria-current="page"] {
  opacity: 1;
}
.menu-list a[aria-current="page"] .mi-text {
  font-style: italic;
  color: var(--clay-2);
}
.mi-num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--on-night-muted);
  width: 22px;
}
.mi-text {
  position: relative;
  transition: transform 0.6s var(--ease-out);
}
.menu-list a:hover .mi-text {
  transform: translateX(16px);
  font-style: italic;
}
.menu-list sup {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay-2);
  margin-left: 4px;
}
.menu-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(239, 233, 223, 0.14);
  font-size: 14px;
  color: var(--on-night-muted);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.8s var(--ease-out);
}
#menu.is-open .menu-foot {
  opacity: 1;
  transform: none;
  transition-delay: 0.6s;
}
.menu-foot .eyebrow {
  color: var(--clay-2);
  margin-bottom: 6px;
}
.menu-foot a:hover {
  color: var(--on-night);
}

/* ---------- Views ---------- */
main {
  position: fixed;
  inset: 0;
  outline: none;
}
.view {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.view-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(24px, 6vh, 72px)) var(--gutter) clamp(48px, 8vh, 96px);
}
.page-head {
  margin-bottom: clamp(32px, 6vh, 72px);
}
.page-head-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
}
.page-next {
  margin-top: clamp(48px, 10vh, 120px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.page-tail {
  padding-top: 0;
}
.page-tail .page-next {
  margin-top: 48px;
}
.next-link {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 300;
  line-height: 1;
  display: inline-flex;
  gap: 18px;
  transition: gap 0.6s var(--ease-out), color 0.4s;
}
.next-link:hover {
  gap: 34px;
  color: var(--clay);
  font-style: italic;
}

/* ---------- Entrance animations (driven by .is-in on the view) ---------- */
[data-anim="split"] .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
[data-anim="split"] .line > span {
  display: inline-block;
  transform: translateY(105%) rotate(3deg);
  transform-origin: left top;
  transition: transform 1.2s var(--ease-out);
  transition-delay: calc(0.1s + var(--i, 0) * 0.09s);
}
.is-in [data-anim="split"] .line > span {
  transform: none;
}
[data-anim="fade"] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: calc(0.35s + var(--d, 0s));
}
.is-in [data-anim="fade"] {
  opacity: 1;
  transform: none;
}
[data-anim="reveal"] {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s var(--ease-in-out) 0.2s;
}
[data-anim="reveal"] img {
  transform: scale(1.25);
  transition: transform 2s var(--ease-out) 0.2s;
}
.is-in [data-anim="reveal"] {
  clip-path: inset(0 0 0 0);
}
.is-in [data-anim="reveal"] img {
  transform: scale(1);
}
[data-anim="stagger"] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(0.4s + var(--i, 0) * 0.08s);
}
.is-in [data-anim="stagger"] > * {
  opacity: 1;
  transform: none;
}
/* In-scroll reveal for long pages */
.io {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.io.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- HOME ---------- */
.view-home {
  background: var(--night);
  color: var(--on-night);
}
.home {
  position: relative;
  height: 100%;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
}
.home-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  padding: calc(var(--header-h) + 2vh) var(--gutter) 2vh;
  position: relative;
  z-index: 2;
}
.home-copy .eyebrow {
  color: var(--on-night-muted);
}
.home-title {
  font-size: clamp(76px, 13.5vw, 220px);
  margin: 12px 0 28px -0.04em;
  line-height: 0.86;
}
.home-title em {
  color: var(--clay-2);
  padding-left: 0.6em;
}
.home-lede {
  max-width: 40ch;
  color: rgba(239, 233, 223, 0.78);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.75;
  --d: 0.25s;
}
.home-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  --d: 0.4s;
}
.view-home .btn-solid {
  background: var(--on-night);
  color: var(--night);
}
.view-home .btn-solid:hover {
  color: var(--on-night);
}
.view-home .btn-ghost {
  border-color: rgba(239, 233, 223, 0.3);
}
.view-home .btn-ghost::before {
  background: var(--on-night);
}
.view-home .btn-ghost:hover {
  color: var(--night);
}
.home-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 14px 40px;
  margin-top: 4vh;
  padding-top: 20px;
  border-top: 1px solid rgba(239, 233, 223, 0.14);
  max-width: 560px;
  --d: 0.5s;
}
.home-contact dt {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay-2);
  margin-bottom: 2px;
}
.home-contact dd {
  font-size: 14.5px;
  color: rgba(239, 233, 223, 0.88);
}
.home-contact a {
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-out), color 0.3s;
}
.home-contact a:hover {
  color: #fff;
  background-size: 100% 1px;
}
.home-quote {
  max-width: 44ch;
  margin-top: 5vh;
  padding-left: 18px;
  border-left: 1px solid var(--clay);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.5;
  color: var(--on-night-muted);
  --d: 0.55s;
}
.home-media {
  grid-column: 2;
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.6s var(--ease-in-out);
}
.is-in .home-media {
  clip-path: inset(0 0 0 0);
}
.home-slides {
  position: absolute;
  inset: 0;
}
.home-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease-soft);
}
.home-slide.is-active {
  opacity: 1;
}
.home-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}
.home-slide.is-active img {
  animation: kenburns 9s linear forwards;
}
@keyframes kenburns {
  from { transform: scale(1.12) translate3d(0, 0, 0); }
  to { transform: scale(1.02) translate3d(-1.5%, -1%, 0); }
}
.home-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--night) 0%, rgba(18, 16, 13, 0) 28%), linear-gradient(0deg, rgba(18, 16, 13, 0.7) 0%, rgba(18, 16, 13, 0) 30%);
  pointer-events: none;
}
.home-slide-ui {
  position: absolute;
  z-index: 2;
  left: 12%;
  right: var(--gutter);
  bottom: 96px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(239, 233, 223, 0.8);
}
.home-slide-bars {
  display: flex;
  gap: 6px;
}
.home-slide-bars button {
  position: relative;
  width: 34px;
  height: 18px;
}
.home-slide-bars button::before,
.home-slide-bars button i {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 2px;
  background: rgba(239, 233, 223, 0.25);
}
.home-slide-bars button i {
  background: var(--on-night);
  transform: scaleX(0);
  transform-origin: left;
}
.home-slide-bars button.is-active i {
  animation: bar 6s linear forwards;
}
.home-slide-bars button.is-done i {
  transform: scaleX(1);
}
@keyframes bar {
  to { transform: scaleX(1); }
}
.home-index {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(239, 233, 223, 0.12);
  background: linear-gradient(0deg, rgba(18, 16, 13, 0.85), rgba(18, 16, 13, 0.4));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.home-index a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 22px var(--gutter);
  font-family: var(--serif);
  font-size: clamp(17px, 1.5vw, 22px);
  border-right: 1px solid rgba(239, 233, 223, 0.12);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.8s var(--ease-out), transform 1s var(--ease-out), background 0.4s, color 0.4s;
  transition-delay: calc(0.9s + var(--i, 0) * 0.08s), calc(0.9s + var(--i, 0) * 0.08s), 0s, 0s;
}
.home-index a:last-child {
  border-right: 0;
}
.home-index a span {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--clay-2);
}
.home-index a:hover {
  background: rgba(239, 233, 223, 0.06);
  font-style: italic;
}
.is-in .home-index a {
  opacity: 1;
  transform: none;
}

/* Scroll cue + sections below the home hero */
.home-scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(239, 233, 223, 0.7);
  pointer-events: none;
}
.home-scroll-cue i {
  width: 1px;
  height: 36px;
  background: linear-gradient(rgba(239, 233, 223, 0.8), transparent);
  transform-origin: top;
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}
.home-more {
  background: var(--night);
  color: var(--on-night);
}
.home-more .eyebrow {
  color: var(--clay-2);
}
.hm-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 12vh, 140px) var(--gutter) 0;
}
.hm-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin-bottom: 36px;
}
.hm-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 6vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-top: 12px;
}
.hm-title em {
  color: var(--clay-2);
}
.hm-statement {
  text-align: center;
}
.hm-statement-text {
  max-width: 980px;
  margin: 20px auto 32px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 48px);
  line-height: 1.3;
}
.hm-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, calc((100% - 60px) / 4));
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(239, 233, 223, 0.25) transparent;
}
.hm-card {
  display: block;
  scroll-snap-align: start;
}
.hm-card-media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--night-2);
}
.hm-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.hm-card:hover .hm-card-media img {
  transform: scale(1.07);
}
.hm-card-title {
  display: block;
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
}
.hm-card-meta {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--on-night-muted);
}
.hm-series {
  border-top: 1px solid rgba(239, 233, 223, 0.14);
}
.hm-series a {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(239, 233, 223, 0.14);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 48px);
  line-height: 1.1;
  transition: color 0.4s, padding 0.6s var(--ease-out);
}
.hm-series a:hover {
  color: var(--clay-2);
  padding-left: 18px;
  font-style: italic;
}
.hm-series span {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--clay-2);
}
.hm-series em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-night-muted);
}
.hm-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 40px 64px;
  align-items: start;
}
.hm-ex li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(239, 233, 223, 0.14);
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
}
.hm-ex li:first-child {
  border-top: 1px solid rgba(239, 233, 223, 0.14);
}
.hm-ex li:last-child {
  display: block;
  border-bottom: 0;
  padding-top: 28px;
  font-family: var(--sans);
}
.hm-ex span {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--clay-2);
  padding-top: 6px;
}
.hm-ex small {
  grid-column: 2;
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--on-night-muted);
  margin-top: 4px;
}
.hm-contact {
  text-align: center;
  padding-bottom: clamp(72px, 12vh, 140px);
}
.hm-contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
  margin: 28px 0 36px;
  font-size: 16px;
}
.hm-contact-links a {
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-out), color 0.3s;
}
.hm-contact-links a:hover {
  color: #fff;
  background-size: 100% 1px;
}
.hm-footer {
  border-top-color: rgba(239, 233, 223, 0.12);
  color: var(--on-night-muted);
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}
.about-portrait {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  overflow: hidden;
}
.about-portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
.about-portrait figcaption {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.about-text p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.85;
  margin-bottom: 1.2em;
}
.about-text .about-lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 400;
}
.cv-block + .cv-block {
  margin-top: 36px;
}
.cv-title {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.cv dl > div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cv dt {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cv dd strong {
  display: block;
  font-weight: 400;
  color: var(--ink);
}
.cv dd {
  color: var(--muted);
}
.statement {
  margin: clamp(64px, 12vh, 140px) auto 0;
  max-width: 980px;
  text-align: center;
}
.statement p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 50px);
  line-height: 1.3;
}
.statement cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee {
  margin-top: clamp(48px, 10vh, 120px);
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee span {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 34px);
  font-style: italic;
  padding: 0 32px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.marquee span::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
  margin-left: 32px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Filters ---------- */
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 32px;
  -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent);
  mask-image: linear-gradient(90deg, #000 90%, transparent);
}
.filters::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background 0.4s var(--ease-out), color 0.4s, border-color 0.4s;
}
.chip sup {
  font-size: 9px;
  margin-left: 4px;
  color: var(--muted);
}
.chip:hover {
  border-color: var(--ink);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.chip-sold {
  border-style: dashed;
}
.card-price.is-sold {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b0412e;
}
.chip[aria-pressed="true"] sup {
  color: var(--clay-2);
}

/* ---------- Grids & cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px);
}
.card {
  position: relative;
  display: block;
  text-align: left;
  width: 100%;
  opacity: 0;
  transform: translateY(48px) scale(0.98);
  transition: opacity 0.8s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.card-hit {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
}
.card.is-visible {
  opacity: 1;
  transform: none;
}
.card.is-leaving {
  opacity: 0;
  transform: scale(0.94);
  transition-duration: 0.35s;
  transition-delay: 0s;
}
.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), opacity 0.8s;
  opacity: 0;
}
.card-media img.is-loaded {
  opacity: 1;
}
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(18, 16, 13, 0.35));
  opacity: 0;
  transition: opacity 0.6s;
}
.card:hover .card-media img,
.card:focus-visible .card-media img {
  transform: scale(1.07);
}
.card:hover .card-media::after {
  opacity: 1;
}
.card-badge {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(241, 237, 230, 0.92);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card-badge.is-sold::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b0412e;
  margin-right: 6px;
  vertical-align: 1px;
}
.card-badge.is-new {
  background: var(--clay);
  color: #fff;
}
.card-body {
  padding-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
}
.card-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}
.card-meta {
  grid-column: 1;
  font-size: 12.5px;
  color: var(--muted);
}
.card-price {
  grid-row: 1;
  grid-column: 2;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.card-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.card-actions .btn {
  min-height: 42px;
  padding: 0 18px;
  font-size: 11px;
  flex: 1;
}
.card-actions .btn.is-added {
  background: var(--clay);
  color: #fff;
}
.grid-recent .card:nth-child(7n + 1) {
  grid-column: span 2;
}
.grid-recent .card:nth-child(7n + 1) .card-media {
  aspect-ratio: 8 / 5;
}
.grid-empty {
  grid-column: 1 / -1;
  padding: 48px 0;
  color: var(--muted);
  text-align: center;
}

/* ---------- SERIES ---------- */
.view-series {
  background: var(--paper-2);
}
.series {
  position: relative;
  height: 100%;
  touch-action: pan-y;
}
.series-track {
  position: absolute;
  inset: 0;
}
.series-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  visibility: hidden;
}
.series-slide.is-active,
.series-slide.is-leaving {
  visibility: visible;
}
.series-media {
  position: relative;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.3s var(--ease-in-out);
}
.series-slide.is-active .series-media {
  clip-path: inset(0 0 0 0);
}
.series-slide.is-leaving .series-media {
  clip-path: inset(0 0 0 100%);
  transition-duration: 1s;
}
.series-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3);
  transition: transform 2.2s var(--ease-out);
}
.series-slide.is-active .series-media img {
  transform: scale(1);
}
.series-copy {
  align-self: center;
  padding: calc(var(--header-h) + 24px) clamp(24px, 6vw, 96px) 120px;
  max-width: 640px;
}
.series-copy > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.9s var(--ease-out);
}
.series-slide.is-active .series-copy > * {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.45s + var(--i, 0) * 0.08s);
}
.series-num {
  font-family: var(--serif);
  font-size: clamp(80px, 12vw, 180px);
  line-height: 0.8;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px var(--clay);
  margin-bottom: 20px;
}
.series-name {
  font-size: clamp(40px, 5vw, 78px);
  margin: 12px 0 24px;
}
.series-desc {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.85;
  margin-bottom: 32px;
  max-width: 50ch;
}
.series-ui {
  position: absolute;
  right: var(--gutter);
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 2;
}
.series-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
}
.series-progress i {
  position: relative;
  width: 100px;
  height: 1px;
  background: var(--line-strong);
}
.series-progress b {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(0.2);
  transition: transform 0.9s var(--ease-out);
}

/* ---------- RECENT ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-bottom: 56px;
  counter-reset: p;
}
.process li {
  padding: 22px 22px 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}
.process li + li {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.process span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--clay);
  margin-bottom: 18px;
}
.process strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 6px;
}

/* ---------- SHOP ---------- */
.shop-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.shop-bar .filters {
  flex: 1;
  min-width: 0;
}
.sort select {
  appearance: none;
  height: 38px;
  padding: 0 38px 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='none' stroke='%23171512'/%3E%3C/svg%3E") no-repeat right 16px center;
  font-size: 12px;
  cursor: pointer;
}
.shop-assurances {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.shop-assurances strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
}
.shop-assurances a {
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- EXHIBITIONS ---------- */
.tabs {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.tabs button {
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: background 0.4s var(--ease-out), color 0.4s;
}
.tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
}
.ex-list li a {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.ex-list li:first-child a {
  border-top: 1px solid var(--line);
}
.ex-list li a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease-out);
  z-index: -1;
}
.ex-list li a:hover::before {
  transform: scaleY(1);
}
.ex-list li a:hover {
  color: var(--paper);
}
.ex-year {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--clay);
  font-variant-numeric: tabular-nums;
  transition: transform 0.6s var(--ease-out);
}
.ex-list a:hover .ex-year {
  transform: translateX(16px);
}
.ex-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.15;
}
.ex-title small {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  transition: color 0.4s;
}
.ex-list a:hover small {
  color: var(--on-night-muted);
}
.ex-tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.7;
}
.ex-tag.solo {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
  opacity: 1;
}
.coll-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.coll-grid li > * {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 220px;
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.5s;
}
.coll-grid strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
}
.coll-grid span {
  font-size: 13px;
  color: var(--muted);
}
.coll-grid em {
  margin-top: auto;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
}
.coll-grid a:hover {
  background: var(--paper-2);
}
.tab-panel.is-entering > * > * {
  animation: tab-in 0.8s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
@keyframes tab-in {
  from { opacity: 0; transform: translateY(20px); }
}

/* ---------- PRESS ---------- */
.view-press {
  background: var(--night);
  color: var(--on-night);
}
.press {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(var(--header-h) + 4vh) var(--gutter) 40px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.press-eyebrow {
  color: var(--clay-2);
}
.press-stage {
  position: relative;
  display: grid;
  align-items: center;
}
.press-item {
  grid-area: 1 / 1;
  visibility: hidden;
}
.press-item.is-active {
  visibility: visible;
}
.press-item blockquote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 4.8vw, 76px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.press-item blockquote::before {
  content: "“";
  display: block;
  font-size: 1.6em;
  line-height: 0.6;
  color: var(--clay-2);
  margin-bottom: 0.15em;
}
.press-item .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.press-item .w > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 22ms);
}
.press-item.is-active .w > span {
  transform: none;
}
.press-item.is-out .w > span {
  transform: translateY(-105%);
  transition-duration: 0.5s;
  transition-delay: calc(var(--i, 0) * 8ms);
}
.press-item figcaption {
  margin-top: 36px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.8s 0.5s;
}
.press-item.is-active figcaption {
  opacity: 1;
}
.press-item figcaption span {
  display: block;
  margin-top: 6px;
  color: var(--on-night-muted);
  letter-spacing: 0.14em;
}
.press-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.press-nav button {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(239, 233, 223, 0.22);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-night-muted);
  position: relative;
  overflow: hidden;
  transition: color 0.3s, border-color 0.3s;
}
.press-nav button i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--clay-2);
  transform: scaleX(0);
  transform-origin: left;
}
.press-nav button[aria-selected="true"] {
  color: var(--on-night);
  border-color: var(--on-night);
}
.press-nav button[aria-selected="true"] i {
  animation: bar 7s linear forwards;
}

/* ---------- CONTACT ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.contact .page-intro {
  margin-top: 28px;
}
.contact-list {
  margin-top: 40px;
}
.contact-list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.contact-list dt {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.contact-list a {
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-out);
}
.contact-list a:hover {
  background-size: 100% 1px;
}
.contact-form {
  padding: clamp(24px, 3vw, 48px);
  background: var(--paper-2);
  margin-top: 8px;
}
.field {
  position: relative;
  margin-bottom: 22px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 26px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  font-size: 16px;
  outline: none;
  border-radius: 0;
  resize: vertical;
  appearance: none;
}
.field-select select {
  cursor: pointer;
}
.field label {
  position: absolute;
  left: 0;
  top: 24px;
  font-size: 15px;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.4s var(--ease-out), color 0.3s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label {
  transform: translateY(-20px) scale(0.75);
  color: var(--clay);
}
.field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.field:focus-within::after {
  transform: scaleX(1);
}
.field.is-invalid::after {
  background: #b0412e;
  transform: scaleX(1);
}
.form-status {
  margin-top: 16px;
  font-size: 14px;
  min-height: 1.6em;
  color: var(--clay);
}
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px var(--gutter) 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Lightbox ---------- */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 750;
}
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 16, 13, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.5s;
}
#lightbox.is-open .lb-backdrop {
  opacity: 1;
}
.lb-body {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.6fr);
  pointer-events: none;
}
.lb-body > * {
  pointer-events: auto;
}
.lb-media {
  display: grid;
  place-items: center;
  padding: clamp(56px, 8vh, 96px) clamp(16px, 4vw, 64px);
  overflow: hidden;
  touch-action: pan-y;
}
.lb-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.96) translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.9s var(--ease-out);
}
.lb-media img.is-shown {
  opacity: 1;
  transform: none;
}
.lb-info {
  align-self: stretch;
  background: var(--paper);
  padding: calc(var(--header-h) + 24px) 36px 36px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.8s var(--ease-out);
  overflow-y: auto;
}
#lightbox.is-open .lb-info {
  transform: none;
}
.lb-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.1;
  margin: 10px 0 24px;
}
.lb-meta > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.lb-meta dt {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.lb-actions {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}
.lb-counter {
  margin-top: auto;
  padding-top: 24px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: rgba(241, 237, 230, 0.08);
  color: var(--on-night);
  border-color: rgba(239, 233, 223, 0.3);
}
.lb-close {
  top: 16px;
  right: 16px;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}
.lb-prev,
.lb-next {
  top: 50%;
  margin-top: -24px;
}
.lb-prev {
  left: 16px;
}
.lb-next {
  right: calc(max(280px, 28.5%) + 16px);
}
.lb-prev:hover,
.lb-next:hover {
  background: var(--on-night);
  color: var(--night);
}

/* ---------- Basket ---------- */
#basket {
  position: fixed;
  inset: 0;
  z-index: 760;
  visibility: hidden;
  pointer-events: none;
}
#basket.is-open {
  visibility: visible;
  pointer-events: auto;
}
.basket-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 16, 13, 0.5);
  opacity: 0;
  transition: opacity 0.5s;
}
#basket.is-open .basket-backdrop {
  opacity: 1;
}
.basket-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.7s var(--ease-out);
}
#basket.is-open .basket-panel {
  transform: none;
}
.basket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.basket-head h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
}
.basket-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}
.basket-items li {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  animation: tab-in 0.6s var(--ease-out) both;
}
.basket-items img {
  width: 72px;
  height: 88px;
  object-fit: cover;
  background: var(--paper-2);
}
.basket-items strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
}
.basket-items small {
  font-size: 12px;
  color: var(--muted);
}
.basket-items button {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.basket-items .bi-price {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.basket-empty {
  padding: 32px 24px;
  color: var(--muted);
}
.basket-empty a {
  color: var(--clay);
  text-decoration: underline;
}
.basket-foot {
  padding: 20px 24px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.basket-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.basket-total strong {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.basket-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 8px 0 16px;
}

.checkout,
.checkout-done {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px calc(24px + env(safe-area-inset-bottom));
  animation: tab-in 0.6s var(--ease-out) both;
}
.checkout-back {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 20px;
}
.checkout-back:hover {
  color: var(--ink);
}
.checkout-summary {
  font-family: var(--serif);
  font-size: 20px;
  margin: 6px 0 12px;
}
.checkout-status {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--clay);
  min-height: 1.5em;
}
.checkout-done h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  margin: 8px 0 12px;
}
.checkout-done-text {
  color: var(--ink-2);
  margin-bottom: 28px;
}

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 1000;
  transform: translate(-50%, calc(100% + 48px));
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  white-space: nowrap;
  transition: transform 0.6s var(--ease-out);
  pointer-events: none;
}
#toast.is-shown {
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  }
  .about-grid .cv {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .cv-block + .cv-block {
    margin-top: 0;
  }
  .lb-body {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .lb-next {
    right: 356px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }
  .brand {
    font-size: 20px;
  }
  .menu-btn {
    padding-left: 14px;
  }

  /* Menu */
  .menu-inner {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    padding-top: calc(var(--header-h) + 16px);
  }
  .menu-preview {
    display: none;
  }
  .menu-list a {
    font-size: clamp(34px, 9.5vw, 52px);
  }
  .menu-foot {
    gap: 16px 32px;
    font-size: 13px;
  }
  .menu-bg {
    grid-template-columns: repeat(2, 1fr);
  }
  .menu-bg span:nth-child(3) {
    display: none;
  }

  /* Home */
  .home {
    height: auto;
    min-height: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: 44vh auto auto;
  }
  .home-scroll-cue {
    display: none;
  }
  .hm-rail {
    grid-auto-columns: 68%;
    gap: 14px;
  }
  .hm-card-title {
    font-size: 17px;
  }
  .hm-series a {
    grid-template-columns: 40px 1fr;
    padding: 18px 0;
  }
  .hm-series em {
    grid-column: 2;
  }
  .hm-split {
    grid-template-columns: 1fr;
  }
  .hm-ex li {
    grid-template-columns: 56px 1fr;
  }
  .home-media {
    grid-column: 1;
    grid-row: 1;
  }
  .home-media::after {
    background: linear-gradient(0deg, var(--night) 0%, rgba(18, 16, 13, 0) 45%), linear-gradient(180deg, rgba(18, 16, 13, 0.55) 0%, rgba(18, 16, 13, 0) 30%);
  }
  .home-slide-ui {
    left: auto;
    right: var(--gutter);
    top: calc(var(--header-h) + 4px);
    bottom: auto;
  }
  .home-slide-bars button {
    width: 22px;
  }
  .home-slide-caption {
    display: none;
  }
  .home-copy {
    grid-row: 2;
    align-self: start;
    padding-top: 0;
    margin-top: -9vh;
    padding-bottom: 28px;
  }
  .home-title {
    font-size: clamp(56px, 16vw, 110px);
    margin-bottom: 14px;
  }
  .home-lede {
    font-size: 14px;
    line-height: 1.6;
  }
  .home-quote {
    display: none;
  }
  .home-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin-top: 24px;
  }
  .home-contact dd {
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .home-ctas {
    margin-top: 22px;
  }
  .home-ctas .btn {
    flex: 1;
    padding: 0 16px;
  }
  .home-index {
    grid-row: 3;
    grid-template-columns: repeat(2, 1fr);
  }
  .home-index a {
    padding: 14px var(--gutter);
    border-bottom: 1px solid rgba(239, 233, 223, 0.12);
    font-size: 16px;
  }
  .home-index a:nth-child(2n) {
    border-right: 0;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-portrait {
    position: relative;
    top: 0;
  }
  .about-portrait img {
    aspect-ratio: 16 / 11;
  }
  .about-grid .cv {
    grid-template-columns: 1fr;
  }

  /* Grids */
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
  }
  .grid-recent .card:nth-child(7n + 1) {
    grid-column: 1 / -1;
  }
  .card-title {
    font-size: 17px;
  }
  .card-body {
    grid-template-columns: 1fr;
  }
  .card-price {
    grid-row: auto;
    grid-column: 1;
    margin-top: 4px;
  }
  .card-actions {
    flex-direction: column;
  }

  /* Series */
  .series-slide {
    grid-template-columns: 1fr;
    grid-template-rows: 40% 1fr;
    padding-top: var(--header-h);
  }
  .series-copy {
    padding: 24px var(--gutter) 110px;
    align-self: start;
    overflow-y: auto;
  }
  .series-num {
    font-size: 64px;
    margin-bottom: 8px;
  }
  .series-name {
    margin: 8px 0 14px;
  }
  .series-desc {
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 20px;
  }
  .series-ui {
    left: var(--gutter);
    right: var(--gutter);
    bottom: calc(20px + env(safe-area-inset-bottom));
    justify-content: space-between;
  }

  /* Recent */
  .process {
    grid-template-columns: repeat(2, 1fr);
  }
  .process li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  /* Shop */
  .shop-bar {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
  }
  .shop-bar .filters {
    margin-bottom: 20px;
  }
  .sort select {
    width: 100%;
  }
  .shop-assurances {
    grid-template-columns: 1fr;
  }

  /* Exhibitions */
  .ex-list li a {
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
    padding: 20px 0;
  }
  .ex-year {
    grid-column: 1 / -1;
  }
  .coll-grid {
    grid-template-columns: 1fr;
  }
  .coll-grid li > * {
    min-height: 0;
    padding: 24px;
  }

  /* Press */
  .press-item blockquote {
    font-size: clamp(26px, 7.4vw, 44px);
  }

  /* Contact */
  .contact {
    grid-template-columns: 1fr;
  }
  .contact-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  /* Lightbox */
  .lb-body {
    grid-template-columns: 1fr;
    grid-template-rows: 55% 1fr;
  }
  .lb-media {
    padding: 64px 16px 16px;
  }
  .lb-info {
    padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
  .lb-prev,
  .lb-next {
    top: calc(55% - 64px);
    margin-top: 0;
  }
  .lb-next {
    right: 16px;
  }
  .lb-title {
    margin-bottom: 14px;
  }
}

@media (max-width: 420px) {
  .header-ig {
    display: none;
  }
}

@media (max-width: 360px) {
  #site-header {
    gap: 6px;
  }
  .brand {
    gap: 8px;
    font-size: 17px;
  }
  .basket-btn {
    width: 38px;
  }
  .menu-btn {
    gap: 8px;
    padding-left: 12px;
  }
  .grid-shop {
    grid-template-columns: 1fr;
  }
  .home-ctas {
    flex-direction: column;
  }
}

@media (max-height: 900px) and (min-width: 861px) {
  .home-quote {
    display: none;
  }
}

@media (max-height: 640px) and (min-width: 861px) {
  .home-quote {
    display: none;
  }
  .home-title {
    font-size: clamp(64px, 18vh, 160px);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .grain {
    display: none;
  }
}
