:root {
  --ink: #121212;
  --muted: #6f6c66;
  --paper: #f5f3ef;
  --white: #ffffff;
  --line: rgba(18, 18, 18, 0.13);
  --accent: #b8ff3d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.site-header { height: 78px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; background: rgba(245,243,239,.94); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.site-header--dark { background: #101010; border-color: rgba(255,255,255,.15); }
.brand { display: inline-flex; align-items: center; gap: 14px; color: white; font-size: 10px; letter-spacing: .3em; }
.brand img { width: 138px; height: auto; display: block; }
.brand--ink { color: var(--ink); }
.brand span { border-left: 1px solid currentColor; padding-left: 14px; opacity: .7; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; }
.icon-button:hover:not(:disabled), .icon-button--active { background: var(--ink); color: var(--white); }
.icon-button:disabled { opacity: .35; cursor: not-allowed; }
.button { border: 1px solid var(--ink); background: var(--ink); color: white; min-height: 42px; padding: 0 20px; border-radius: 999px; font-size: 12px; letter-spacing: .03em; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button--outline { background: transparent; color: var(--ink); }

.gallery-hero { min-height: 470px; display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; background: #d9cec1; }
.gallery-hero__art { min-height: 470px; position: relative; overflow: hidden; background: linear-gradient(140deg,#111 0 12%,#574943 12% 17%,#e4cbbb 17% 48%,#d9a979 48% 58%,#7bada8 58% 100%); }
.sun { width: 180px; height: 180px; border-radius: 50%; background: rgba(255,235,206,.88); position: absolute; left: 52%; top: 15%; box-shadow: 0 0 70px rgba(255,235,206,.45); }
.wave { position: absolute; width: 120%; height: 55%; left: -10%; border-radius: 50% 45% 0 0; transform: rotate(-5deg); }
.wave--one { bottom: -15%; background: #4e8f96; }
.wave--two { bottom: -29%; left: 4%; background: #17393e; }
.grain { position: absolute; inset: 0; opacity: .15; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.gallery-hero__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 7vw, 108px); background: #d9cec1; }
.eyebrow { margin: 0 0 24px; font-size: 10px; letter-spacing: .3em; font-weight: 700; }
.client-line { margin: 0 0 16px; color: #625950; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 18px; }
.gallery-hero h1 { margin: 0 0 22px; max-width: 8ch; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(58px, 7vw, 108px); font-weight: 400; line-height: .86; letter-spacing: -.055em; }
.gallery-hero__copy > p:last-child { max-width: 390px; margin: 0; color: #554e48; font-size: 14px; line-height: 1.6; }

.collection-toolbar { min-height: 106px; padding: 0 4vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; border-bottom: 1px solid var(--line); }
.collection-summary { display: flex; flex-direction: column; gap: 7px; }
.collection-summary strong { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.collection-summary span { color: var(--muted); font-size: 11px; }
.filter-list { display: flex; align-items: center; gap: 26px; }
.filter-list button { position: relative; border: 0; padding: 42px 0 39px; background: none; color: var(--muted); font-size: 12px; cursor: pointer; }
.filter-list button[aria-current='true'] { color: var(--ink); }
.filter-list button[aria-current='true']::after { content: ''; position: absolute; height: 2px; left: 0; right: 0; bottom: -1px; background: var(--ink); }
.view-controls { justify-self: end; display: flex; gap: 8px; }

.empty-gallery { min-height: 560px; position: relative; overflow: hidden; background: #eeeae3; }
.empty-gallery__grid { position: absolute; inset: 32px 4vw; display: grid; grid-template-columns: 1.2fr .8fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 12px; opacity: .42; filter: grayscale(1); }
.empty-gallery__grid span { background: linear-gradient(145deg,#cfc9c0,#e5e0d8); }
.empty-gallery__grid span:first-child { grid-row: 1 / span 2; }
.empty-gallery__grid span:nth-child(2) { background: linear-gradient(155deg,#d8d0c5,#b9b2aa); }
.empty-gallery__grid span:nth-child(5) { grid-column: 3; }
.empty-gallery__message { position: absolute; inset: 0; margin: auto; width: min(470px, calc(100% - 40px)); height: fit-content; padding: 52px; text-align: center; background: rgba(245,243,239,.93); backdrop-filter: blur(12px); box-shadow: 0 24px 70px rgba(35,28,22,.12); }
.empty-gallery__mark { display: inline-grid; width: 38px; height: 38px; place-items: center; margin-bottom: 20px; border-radius: 50%; background: var(--ink); color: var(--accent); }
.empty-gallery__message .eyebrow { margin-bottom: 14px; }
.empty-gallery__message h2 { margin: 0 0 14px; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 34px; }
.empty-gallery__message p:last-child { margin: 0 auto; max-width: 330px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.gallery-footer { min-height: 110px; padding: 0 4vw; display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: white; font-size: 11px; letter-spacing: .06em; }
.gallery-footer div { display: flex; align-items: center; gap: 12px; }
.footer-mark { color: var(--accent); }
.gallery-footer > span { color: #888; }
.toast { position: fixed; right: 24px; bottom: 24px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: white; font-size: 12px; transform: translateY(120px); opacity: 0; transition: .25s ease; z-index: 10; }
.toast--visible { transform: translateY(0); opacity: 1; }

.index-page { min-height: 100vh; display: flex; flex-direction: column; background: #101010; color: white; }
.index-shell { flex: 1; display: grid; grid-template-columns: 1fr minmax(360px, 510px); gap: clamp(60px, 10vw, 160px); align-items: center; padding: clamp(64px, 8vw, 120px) 8vw; }
.index-copy h1 { margin: 0; max-width: 790px; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(52px, 7vw, 102px); line-height: .95; letter-spacing: -.05em; }
.index-copy .lede { max-width: 520px; margin: 30px 0 0; color: #9b9b9b; font-size: 15px; line-height: 1.6; }
.collection-card { display: block; background: #e8ddd3; color: var(--ink); transition: transform .25s ease; }
.collection-card:hover { transform: translateY(-5px); }
.collection-card__art { height: 360px; position: relative; overflow: hidden; background: linear-gradient(145deg,#c9b2a5,#f1ded0 45%,#5797a1); }
.collection-monogram { position: absolute; inset: 0; display: grid; place-items: center; font: 180px/1 Georgia, serif; color: rgba(255,255,255,.62); }
.orb { position: absolute; display: block; border-radius: 50%; filter: blur(1px); }
.orb--one { width: 220px; height: 220px; top: -50px; right: -40px; background: rgba(255,238,217,.75); }
.orb--two { width: 300px; height: 300px; left: -80px; bottom: -180px; background: #2f717b; }
.collection-card__body { padding: 28px 30px 32px; }
.collection-card__body > span:first-child { font-size: 10px; text-transform: uppercase; letter-spacing: .13em; color: #6e6259; }
.collection-card h2 { margin: 10px 0 26px; font: 38px/1 Georgia, serif; }
.collection-card__link { display: flex; justify-content: space-between; font-size: 12px; }
.site-footer { min-height: 70px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; font-size: 10px; letter-spacing: .1em; }
.site-footer--dark { background: #101010; color: #777; border-top: 1px solid rgba(255,255,255,.12); }

@media (max-width: 900px) {
  .gallery-hero { grid-template-columns: 1fr; }
  .gallery-hero__art { min-height: 52vh; }
  .gallery-hero__copy { min-height: 360px; }
  .collection-toolbar { grid-template-columns: 1fr auto; padding-top: 24px; }
  .filter-list { grid-column: 1 / -1; order: 3; overflow-x: auto; width: calc(100vw - 8vw); }
  .filter-list button { padding: 18px 0 20px; white-space: nowrap; }
  .view-controls { grid-column: 2; grid-row: 1; }
  .empty-gallery__grid { grid-template-columns: 1fr 1fr; }
  .empty-gallery__grid span:nth-child(n+4) { display: none; }
  .index-shell { grid-template-columns: 1fr; }
  .collection-card { max-width: 520px; }
}

@media (max-width: 600px) {
  .site-header { height: 68px; padding: 0 20px; }
  .brand img { width: 112px; }
  .brand span { display: none; }
  .header-actions .button { width: 40px; padding: 0; font-size: 0; }
  .header-actions .button::before { content: '↓'; font-size: 16px; }
  .gallery-hero__art { min-height: 44vh; }
  .gallery-hero__copy { padding: 44px 24px 54px; }
  .collection-toolbar { padding-left: 20px; padding-right: 20px; }
  .filter-list { width: calc(100vw - 40px); gap: 22px; }
  .empty-gallery { min-height: 500px; }
  .empty-gallery__grid { inset: 20px; }
  .empty-gallery__message { padding: 38px 26px; }
  .gallery-footer { padding: 32px 20px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .index-shell { padding: 64px 24px; gap: 54px; }
  .collection-card__art { height: 280px; }
  .site-footer { padding: 24px; flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
