/*
  ROKU RAKSTI design tokens
  Mainīgie zemāk ir vizuālās sistēmas vadības panelis.
*/
:root {
  --paper: #f4efe7;
  --paper-deep: #e8ded0;
  --surface: #fbf8f2;
  --ink: #2b2c27;
  --muted: #737368;
  --line: rgba(43, 44, 39, 0.17);
  --accent: #9a5a41;
  --accent-soft: #d8b3a0;
  --sage: #8d987b;
  --button-ink: #fffaf4;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-card: 2px;
  --radius-button: 999px;
  --image-ratio: 4 / 5;
  --shadow-soft: 0 24px 65px rgba(42, 34, 28, 0.12);
  --section-space: clamp(5rem, 9vw, 9rem);
  --page-gutter: clamp(1rem, 3vw, 3.5rem);
  --max-width: 1440px;
  --motion: 240ms cubic-bezier(.2,.7,.2,1);
}

html[data-theme="berry"] {
  --paper: #f8eee9;
  --paper-deep: #ead6dc;
  --surface: #fff9f5;
  --ink: #35252d;
  --muted: #806b74;
  --line: rgba(76, 36, 55, 0.16);
  --accent: #b43f60;
  --accent-soft: #edb4c4;
  --sage: #7e8f6b;
  --radius-card: 24px;
  --shadow-soft: 0 24px 65px rgba(108, 32, 60, 0.14);
}

html[data-theme="gallery"] {
  --paper: #f5f4ef;
  --paper-deep: #deded8;
  --surface: #ffffff;
  --ink: #171813;
  --muted: #61625a;
  --line: rgba(23, 24, 19, 0.22);
  --accent: #171813;
  --accent-soft: #c4c5bc;
  --sage: #70746b;
  --radius-card: 0px;
  --radius-button: 2px;
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

button, input, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  background: var(--ink);
  color: var(--surface);
  padding: .8rem 1rem;
  transition: top var(--motion);
}
.skip-link:focus { top: 1rem; }

.prototype-note {
  background: var(--ink);
  color: var(--surface);
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: .35rem 1rem;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-align: center;
  text-transform: uppercase;
}

.section-shell {
  width: min(calc(100% - var(--page-gutter) * 2), var(--max-width));
  margin-inline: auto;
}

#top { scroll-margin-top: 78px; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: color-mix(in srgb, var(--paper) 91%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color var(--motion), box-shadow var(--motion);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px rgba(20,20,17,.05); }
.header-inner {
  min-height: 78px;
  width: min(calc(100% - var(--page-gutter) * 2), var(--max-width));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 2rem;
}
.brand { display: flex; align-items: center; gap: .72rem; width: fit-content; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { font-family: var(--serif); font-size: 1rem; letter-spacing: .16em; line-height: 1.05; }
.brand small { color: var(--muted); font-size: .58rem; letter-spacing: .12em; margin-top: .22rem; text-transform: uppercase; }
.brand-mark { position: relative; display: flex; gap: 2px; width: 26px; height: 32px; align-items: flex-end; transform: rotate(-7deg); }
.brand-mark i { display: block; width: 7px; border-radius: 7px 7px 2px 2px; background: var(--accent); }
.brand-mark i:nth-child(1) { height: 22px; }
.brand-mark i:nth-child(2) { height: 29px; background: var(--sage); }
.brand-mark i:nth-child(3) { height: 19px; background: var(--accent-soft); }

.desktop-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.8rem); }
.desktop-nav a { position: relative; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.4rem; height: 1px; background: var(--ink); transition: right var(--motion); }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { right: 0; }

.header-actions { justify-self: end; display: flex; align-items: center; gap: .35rem; }
.icon-button, .menu-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 50%;
}
.icon-button:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.icon-button svg { width: 19px; }
.favorite-count { position: absolute; right: -1px; top: -1px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 3px; background: var(--accent); color: white; border-radius: 10px; font-size: .55rem; font-weight: 800; }
.language-switch { display: flex; align-items: center; gap: .08rem; padding-left: .45rem; margin-left: .25rem; border-left: 1px solid var(--line); }
.language-switch button { border: 0; background: none; padding: .35rem; color: var(--muted); font-size: .62rem; font-weight: 800; }
.language-switch button.is-active { color: var(--ink); text-decoration: underline; text-underline-offset: .25rem; }
.menu-button { display: none; }
.menu-button span { width: 19px; height: 1px; background: currentColor; transition: transform var(--motion); }
.menu-button span + span { margin-top: 5px; }
.mobile-nav { padding: 1rem var(--page-gutter) 2rem; border-top: 1px solid var(--line); }
.mobile-nav:not([hidden]) { display: grid; }
.mobile-nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.35rem; }
.mobile-languages { display: flex; gap: .5rem; padding-top: 1.2rem; }
.mobile-languages button { padding: .5rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-button); background: transparent; color: var(--muted); font-size: .65rem; font-weight: 800; }
.mobile-languages button.is-active { border-color: var(--ink); background: var(--ink); color: var(--surface); }

.hero {
  min-height: 0;
  padding-block: clamp(.75rem, 1.4vw, 1.25rem);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.5rem);
}
.eyebrow { margin: 0 0 1.25rem; color: var(--accent); font-size: .67rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: .96; }
h1 { max-width: 640px; font-size: clamp(3.1rem, 3.7vw, 4.4rem); }
h1 em, h2 em { color: var(--accent); font-weight: 400; }
.hero-intro { max-width: 560px; margin: 1.35rem 0 0; color: var(--muted); font-family: var(--serif); font-size: clamp(1rem, 1.2vw, 1.2rem); line-height: 1.5; }
.hero-actions-row { display: flex; align-items: center; gap: 1.7rem; margin-top: 1.5rem; }
.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  min-height: 52px;
  padding: .8rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-button);
  background: var(--ink);
  color: var(--button-ink);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: transform var(--motion), background var(--motion), color var(--motion);
}
.primary-button:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); }
.primary-button svg { width: 18px; }
.secondary-button { background: transparent; color: var(--ink); }
.secondary-button:hover { background: var(--ink); color: var(--surface); }
.text-link { border: 0; background: transparent; padding: .4rem 0; border-bottom: 1px solid currentColor; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.hero-visual { position: relative; justify-self: stretch; }
.hero-image-wrap { position: relative; isolation: isolate; overflow: visible; aspect-ratio: 1.9; background: transparent; border-radius: 0; box-shadow: none; }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 68%; filter: saturate(.83) contrast(.97) sepia(.05); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.hero-featured-stack { position: absolute; inset: .35rem 0; display: flex; align-items: stretch; padding-inline: .2rem; }
.hero-featured-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--surface) 72%, var(--line));
  border-radius: 0;
  background: var(--paper-deep);
  box-shadow: 0 16px 34px rgba(42, 34, 28, .16);
  overflow: hidden;
}
.hero-featured-item + .hero-featured-item { margin-left: clamp(-1.05rem, -1.15vw, -.7rem); }
.hero-featured-item:nth-child(1) { z-index: 1; transform: translateY(.3rem) rotate(-.45deg); }
.hero-featured-item:nth-child(2) { z-index: 2; transform: translateY(-.15rem) rotate(.1deg); }
.hero-featured-item:nth-child(3) { z-index: 3; transform: translateY(.25rem) rotate(.45deg); }
.hero-featured-item:nth-child(2) img { object-position: 54% 67%; }
.hero-featured-item:nth-child(3) img { object-position: 55% 67%; }
.hero-featured-item:hover img { transform: scale(1.04); filter: saturate(1) contrast(1); }
.handwritten { position: absolute; z-index: 5; top: 1.4rem; left: 1.4rem; transform: rotate(-8deg); color: var(--accent); font-family: cursive; font-size: 1.1rem; pointer-events: none; }
.category-ribbon { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.category-ribbon button { position: relative; min-height: 175px; padding: 2.2rem clamp(1.5rem, 4vw, 4.5rem); border: 0; border-right: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; transition: background var(--motion), color var(--motion); }
.category-ribbon button:last-child { border-right: 0; }
.category-ribbon button:hover { background: var(--ink); color: var(--surface); }
.category-ribbon .category-number { position: absolute; top: 1.2rem; right: 1.5rem; color: var(--muted); font-size: .62rem; }
.category-ribbon strong, .category-ribbon small { display: block; }
.category-ribbon strong { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.25rem); font-weight: 400; }
.category-ribbon small { margin-top: .35rem; color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.category-ribbon svg { position: absolute; right: 1.5rem; bottom: 1.5rem; width: 23px; }

.catalog-section { padding-block: clamp(2.25rem, 4vw, 4rem); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, .45fr); align-items: end; gap: 2rem; }
.section-heading h2 { font-size: clamp(3.1rem, 3.7vw, 4.4rem); }
.story-copy h2 { font-size: clamp(3.1rem, 3.7vw, 4.4rem); }
.section-heading > p { max-width: 470px; margin: 0 0 .35rem; color: var(--muted); font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; }

.catalog-toolbar { margin-top: 2rem; display: grid; grid-template-columns: minmax(280px, 1fr) auto auto; gap: .8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.search-field { display: flex; align-items: center; gap: .8rem; max-width: 550px; }
.search-field svg { flex: 0 0 20px; width: 20px; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; font-family: var(--serif); font-size: 1.05rem; }
.search-field input::placeholder { color: var(--muted); }
.filter-toggle { display: none; }
.sort-select { display: flex; align-items: center; gap: .8rem; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sort-select span { color: var(--muted); }
.sort-select select { min-width: 140px; border: 0; outline: 0; background: transparent; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.active-filters { display: flex; flex-wrap: wrap; gap: .55rem; min-height: 0; margin-top: 1rem; }
.active-filters:empty { margin: 0; }
.active-filter-chip { display: inline-flex; align-items: center; gap: .6rem; min-height: 32px; padding: .35rem .45rem .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: .67rem; }
.active-filter-chip span:last-child { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 8%, transparent); }

.catalog-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 4vw, 5rem); margin-top: 1.75rem; }
.filters-panel { position: sticky; top: 105px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: .4rem; scrollbar-width: thin; }
.filters-head { display: none; }
.filter-group { margin: 0; padding: 0 0 1.45rem; border: 0; border-bottom: 1px solid var(--line); }
.filter-group + .filter-group { padding-top: 1.45rem; }
.filter-group legend { width: 100%; margin-bottom: .8rem; font-family: var(--serif); font-size: 1.05rem; }
.filter-group > label { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: .65rem; min-height: 34px; cursor: pointer; color: var(--muted); font-size: .73rem; }
.filter-group > label.category-filter-option { padding-left: calc(var(--category-depth, 0) * 1rem); }
.filter-group > label.category-filter-option.is-root { margin-top: .45rem; color: var(--ink); font-weight: 700; }
.filter-group > label.category-filter-option.is-root:first-of-type { margin-top: 0; }
.category-branch { display: inline-block; width: 1.2rem; color: color-mix(in srgb, var(--muted) 72%, transparent); }
.filter-group input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.filter-group label:has(input:checked) { color: var(--ink); font-weight: 700; }
.filter-group small { font-size: .65rem; opacity: .7; }
.color-options { display: flex; flex-wrap: wrap; gap: .65rem; }
.color-options label { position: relative; display: block; cursor: pointer; }
.color-options input { position: absolute; opacity: 0; pointer-events: none; }
.color-options span { display: block; width: 25px; height: 25px; border: 5px solid var(--paper); outline: 1px solid var(--line); border-radius: 50%; background: var(--swatch); }
.color-options input:checked + span { outline: 2px solid var(--ink); }
.mobile-filter-actions { display: none; }

.results-meta { min-height: 34px; display: flex; justify-content: space-between; align-items: start; margin-bottom: 1rem; }
.results-meta p { margin: 0; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.results-meta p strong { color: var(--ink); }
.results-meta .clear-filters { color: var(--muted); font-size: .62rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.2vw, 2.4rem) clamp(1rem, 1.8vw, 1.8rem); }
.product-card { min-width: 0; }
.product-image { position: relative; overflow: hidden; aspect-ratio: var(--image-ratio); border-radius: var(--radius-card); background: var(--paper-deep); }
.image-button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; }
.product-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 68%; filter: saturate(.85) contrast(.97); transition: transform .65s cubic-bezier(.2,.7,.2,1), filter var(--motion); }
.product-card:hover .product-image img { transform: scale(1.035); filter: saturate(1) contrast(1); }
.availability-badge { position: absolute; top: .75rem; left: .75rem; padding: .34rem .55rem; border-radius: 99px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); font-size: .55rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.favorite-button { position: absolute; top: .65rem; right: .65rem; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); }
.favorite-button svg { width: 17px; transition: fill var(--motion), color var(--motion); }
.favorite-button.is-active svg { fill: var(--accent); color: var(--accent); }
.view-hint { position: absolute; left: 1rem; right: 1rem; bottom: -2rem; display: flex; justify-content: space-between; color: white; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-shadow: 0 1px 8px rgba(0,0,0,.45); text-transform: uppercase; transition: bottom var(--motion); pointer-events: none; }
.product-card:hover .view-hint { bottom: .8rem; }
.product-info { padding-top: .8rem; }
.product-meta, .product-bottom { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .6rem; letter-spacing: .09em; text-transform: uppercase; }
.product-title { width: 100%; margin: .25rem 0 .75rem; padding: 0; border: 0; background: transparent; text-align: left; font-family: var(--serif); font-size: clamp(1.08rem, 1.4vw, 1.35rem); }
.product-title:hover { color: var(--accent); }
.product-bottom { align-items: end; }
.product-bottom strong { color: var(--ink); font-family: var(--serif); font-size: 1.05rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.empty-state { min-height: 360px; padding: 5rem 1rem; text-align: center; }
.empty-state span { font-family: var(--serif); font-size: 3rem; }
.empty-state h3 { margin: .7rem 0; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.empty-state p { max-width: 420px; margin: 0 auto 1.5rem; color: var(--muted); }

.story-section { background: var(--ink); color: var(--surface); padding-block: clamp(2.5rem, 4vw, 4rem); }
.story-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(4rem, 9vw, 10rem); align-items: center; }
.story-copy .eyebrow { color: var(--accent-soft); }
.story-copy h2 em { color: var(--accent-soft); }
.story-copy > p:not(.eyebrow) { max-width: 560px; margin: 2rem 0; color: color-mix(in srgb, var(--surface) 68%, transparent); font-family: var(--serif); font-size: 1.1rem; line-height: 1.65; }
.light-link { color: var(--surface); }
.artist-list { border-top: 1px solid rgba(255,255,255,.2); }
.artist-empty { margin: 0; padding: 2rem 0; color: color-mix(in srgb, var(--surface) 62%, transparent); }
.artist-card { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 1.3rem; min-height: 130px; border-bottom: 1px solid rgba(255,255,255,.2); }
.artist-monogram { width: 58px; height: 70px; display: grid; place-items: center; background: var(--paper-deep); color: var(--ink); border-radius: 44% 44% 10% 10%; font-family: var(--serif); font-size: 1.5rem; transform: rotate(-3deg); }
.artist-monogram.accent { background: var(--accent); color: white; transform: rotate(3deg); }
.artist-monogram.pale { background: var(--accent-soft); }
.artist-card span { color: color-mix(in srgb, var(--surface) 55%, transparent); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }
.artist-card h3 { margin: .12rem 0; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
.artist-card p { margin: 0; color: color-mix(in srgb, var(--surface) 62%, transparent); font-size: .75rem; }
.artist-actions { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; }
.artist-contact-links { display: flex; align-items: center; gap: .3rem; }
.artist-contact-link { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; color: color-mix(in srgb, var(--surface) 78%, transparent); transition: background var(--motion), border-color var(--motion), color var(--motion); }
.artist-contact-link svg { width: 15px; height: 15px; }
.artist-contact-link:hover { border-color: var(--surface); background: var(--surface); color: var(--ink); }
.artist-works { display: inline-flex; min-height: 38px; align-items: center; gap: .5rem; padding: .55rem .75rem; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius-button); background: transparent; color: var(--surface); transition: background var(--motion), color var(--motion); }
.artist-works span { color: inherit; font-size: .57rem; }
.artist-works b { font-size: .95rem; font-weight: 400; }
.artist-works:hover { background: var(--surface); color: var(--ink); }

.contact-cta { padding-block: clamp(2.25rem, 4vw, 4rem); display: grid; grid-template-columns: .28fr 1fr auto; align-items: end; gap: clamp(2rem, 5vw, 6rem); }
.contact-cta .eyebrow { align-self: start; }
.contact-cta h2 { max-width: 900px; font-size: clamp(3.1rem, 3.7vw, 4.4rem); }
.contact-cta p:not(.eyebrow) { max-width: 620px; margin: 1.5rem 0 0; color: var(--muted); font-family: var(--serif); font-size: 1.05rem; }
.contact-cta .primary-button { white-space: nowrap; }

.partner-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 48%, transparent); }
.partner-strip-inner { min-height: 108px; display: grid; grid-template-columns: .7fr 1fr 1.2fr auto; align-items: center; gap: clamp(1.5rem, 4vw, 4.5rem); }
.partner-strip .eyebrow, .partner-strip p { margin: 0; }
.partner-name { width: fit-content; color: var(--ink); font-family: var(--serif); font-size: clamp(1.3rem, 1.7vw, 1.7rem); font-weight: 400; letter-spacing: -.035em; line-height: .96; }
.partner-strip p:not(.eyebrow) { color: var(--muted); font-family: var(--serif); font-size: .95rem; line-height: 1.5; }
.partner-link { display: inline-flex; align-items: center; gap: .55rem; font-size: .63rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.partner-link:hover span:first-child { text-decoration: underline; text-underline-offset: .3rem; }

.site-footer { padding-block: 2.5rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 2rem; align-items: center; }
.footer-brand { display: grid; }
.site-footer p { max-width: 360px; margin: 0; color: var(--muted); font-family: var(--serif); font-size: .9rem; }
.site-footer nav { display: flex; gap: 1.4rem; font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.site-footer > .footer-grid > small { grid-column: 1 / -1; color: var(--muted); font-size: .62rem; }

.theme-picker { position: fixed; z-index: 80; right: 1rem; bottom: 1rem; }
.theme-trigger { display: flex; align-items: center; gap: .65rem; min-height: 44px; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-button); background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 8px 28px rgba(20,20,17,.12); backdrop-filter: blur(12px); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.theme-trigger svg { width: 18px; }
.theme-options { position: absolute; right: 0; bottom: calc(100% + .5rem); min-width: 160px; padding: .45rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-soft); }
.theme-options:not([hidden]) { display: grid; }
.theme-options button { display: flex; align-items: center; gap: .65rem; padding: .65rem .75rem; border: 0; border-radius: 9px; background: transparent; text-align: left; font-size: .72rem; }
.theme-options button:hover, .theme-options button.is-active { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.theme-options i { width: 16px; height: 16px; border-radius: 50%; background: var(--theme-color); }

.filter-backdrop { position: fixed; z-index: 189; inset: 0; background: rgba(20,20,17,.45); backdrop-filter: blur(3px); }

.product-dialog { width: min(1000px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: calc(var(--radius-card) + 4px); background: var(--surface); color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.3); }
.product-dialog::backdrop { background: rgba(23,23,19,.55); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; z-index: 3; right: 1rem; top: 1rem; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--surface) 88%, transparent); font-size: 1.45rem; }
.dialog-grid { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 610px; }
.dialog-gallery { min-width: 0; min-height: 610px; display: grid; grid-template-rows: minmax(0, 1fr); background: var(--paper-deep); }
.dialog-gallery.has-multiple { grid-template-rows: minmax(0, 1fr) 82px; }
.dialog-image { position: relative; min-height: 0; overflow: hidden; background: var(--paper-deep); touch-action: pan-y; }
.dialog-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 68%; }
.dialog-gallery-main { user-select: none; -webkit-user-drag: none; }
.dialog-gallery-nav { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink); transform: translateY(-50%); backdrop-filter: blur(8px); }
.dialog-gallery-nav:hover { border-color: var(--accent); color: var(--accent); }
.dialog-gallery-nav.is-prev { left: .85rem; }
.dialog-gallery-nav.is-next { right: .85rem; }
.dialog-gallery-count { position: absolute; z-index: 2; left: 50%; bottom: .8rem; padding: .28rem .55rem; border-radius: 99px; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink); font-size: .58rem; font-weight: 800; letter-spacing: .06em; transform: translateX(-50%); backdrop-filter: blur(8px); }
.dialog-thumbnails { display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .65rem; border-top: 1px solid var(--line); background: var(--surface); }
.dialog-thumbnail { width: 48px; height: 58px; overflow: hidden; padding: 0; border: 1px solid transparent; border-radius: calc(var(--radius-card) + 3px); background: var(--paper-deep); opacity: .62; }
.dialog-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.dialog-thumbnail:hover, .dialog-thumbnail.is-active { border-color: var(--accent); opacity: 1; }
.dialog-details { padding: clamp(2rem, 5vw, 4.5rem); align-self: center; }
.dialog-details .eyebrow { margin-bottom: .65rem; }
.dialog-details h2 { font-size: clamp(2.4rem, 4vw, 4.2rem); }
.dialog-price { margin: 1rem 0 0; font-family: var(--serif); font-size: 1.5rem; }
.dialog-description { margin: 1.5rem 0; color: var(--muted); font-family: var(--serif); font-size: 1rem; line-height: 1.65; }
.detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 1.2rem; margin: 1.5rem 0 2rem; padding-block: 1.2rem; border-block: 1px solid var(--line); }
.detail-list div { display: grid; gap: .15rem; }
.detail-list dt { color: var(--muted); font-size: .57rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.detail-list dd { margin: 0; font-size: .78rem; }
.dialog-actions { display: grid; gap: .75rem; }
.dialog-contact-note { color: var(--muted); font-size: .67rem; text-align: center; }
.language-fallback { display: inline-block; margin-top: .5rem; padding: .25rem .45rem; background: var(--paper-deep); color: var(--muted); font-size: .58rem; letter-spacing: .07em; text-transform: uppercase; }
.product-breadcrumbs { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; color: var(--muted); font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.product-breadcrumbs button { padding: 0; border: 0; background: transparent; color: inherit; }
.product-breadcrumbs button:hover { color: var(--accent); }
.contact-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.contact-options a { min-height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-button); color: var(--ink); font-size: .64rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.contact-options a:hover { border-color: var(--accent); color: var(--accent); }
.related-products { margin-top: 1.5rem; }
.related-products > span { display: block; margin-bottom: .6rem; color: var(--muted); font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.related-product-list { display: flex; gap: .55rem; overflow-x: auto; }
.related-product-card { display: grid; grid-template-columns: 42px minmax(90px, 1fr); align-items: center; gap: .55rem; min-width: 155px; padding: .35rem; border: 1px solid var(--line); border-radius: 10px; background: transparent; text-align: left; }
.related-product-card img { width: 42px; height: 48px; border-radius: 7px; object-fit: cover; }
.related-product-card strong { font-family: var(--serif); font-size: .75rem; font-weight: 400; }
.related-product-card small { display: block; color: var(--muted); font-size: .52rem; }

.reveal { animation: reveal-in .75s both; animation-timeline: view(); animation-range: entry 5% cover 28%; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 1120px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .menu-button { display: grid; }
  .hero { grid-template-columns: minmax(0, .78fr) minmax(380px, 1.22fr); gap: 2.5rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-cta { grid-template-columns: 1fr auto; }
  .contact-cta .eyebrow { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  :root { --page-gutter: 1rem; --section-space: 5rem; }
  #top { scroll-margin-top: 66px; }
  .prototype-note { font-size: .55rem; }
  .header-inner { min-height: 66px; gap: .5rem; }
  .brand small { display: none; }
  .brand strong { font-size: .88rem; }
  .brand-mark { width: 22px; height: 28px; }
  .brand-mark i { width: 6px; }
  .brand-mark i:nth-child(1) { height: 19px; }
  .brand-mark i:nth-child(2) { height: 25px; }
  .brand-mark i:nth-child(3) { height: 16px; }
  .language-switch { display: none; }
  .header-actions { gap: 0; }
  .hero { min-height: 0; padding-block: 1rem; grid-template-columns: 1fr; gap: 1.4rem; }
  .hero-copy { display: contents; }
  .hero-copy .eyebrow { order: 1; margin-bottom: -.8rem; }
  .hero-copy h1 { order: 2; font-size: clamp(2.65rem, 12.5vw, 4rem); }
  .hero-visual { order: 3; width: calc(100% + 2rem); margin-left: -1rem; }
  .hero-image-wrap { aspect-ratio: 1.18; border-radius: 0; }
  .hero-featured-stack { inset-block: .2rem; padding-inline: .1rem; }
  .hero-featured-item + .hero-featured-item { margin-left: -.45rem; }
  .hero-featured-item:nth-child(1) { transform: translateY(.15rem) rotate(-.3deg); }
  .hero-featured-item:nth-child(2) { transform: translateY(-.08rem); }
  .hero-featured-item:nth-child(3) { transform: translateY(.12rem) rotate(.3deg); }
  .hero-copy .hero-intro { order: 4; margin-top: 0; }
  .hero-copy .hero-actions-row { order: 5; margin-top: 0; }
  .category-ribbon { grid-template-columns: 1fr; }
  .category-ribbon button { min-height: 112px; padding: 1.5rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .category-ribbon button:last-child { border-bottom: 0; }
  .category-ribbon svg { bottom: 1.5rem; }
  .section-heading { grid-template-columns: 1fr; gap: .9rem; }
  .section-heading h2 { font-size: clamp(2.65rem, 12.5vw, 4rem); }
  .catalog-toolbar { margin-top: 1.5rem; grid-template-columns: 1fr auto; }
  .search-field { grid-column: 1 / -1; max-width: none; min-height: 48px; border-bottom: 1px solid var(--line); }
  .filter-toggle { display: inline-flex; align-items: center; gap: .55rem; min-height: 42px; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-button); background: transparent; font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .filter-toggle svg { width: 17px; }
  .filter-toggle b { display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 .2rem; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: .55rem; }
  .sort-select span { display: none; }
  .catalog-layout { grid-template-columns: 1fr; margin-top: 1rem; }
  .filters-panel { position: fixed; z-index: 190; left: 0; right: 0; bottom: 0; top: auto; max-height: min(84dvh, 760px); padding: 1.2rem 1.2rem 0; border-radius: 22px 22px 0 0; background: var(--surface); transform: translateY(105%); transition: transform var(--motion); overflow-y: auto; }
  .filters-panel.is-open { transform: none; }
  .filters-head { position: sticky; z-index: 2; top: -1.2rem; display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; background: var(--surface); }
  .filters-head > div { display: grid; }
  .filters-head .eyebrow { margin: 0; }
  .filters-head strong { font-family: var(--serif); font-size: 1.6rem; }
  .filter-close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--paper-deep); font-size: 1.4rem; }
  .mobile-filter-actions { position: sticky; bottom: 0; display: grid; grid-template-columns: .7fr 1.3fr; gap: .7rem; padding: 1rem 0; background: var(--surface); }
  .mobile-filter-actions .primary-button, .mobile-filter-actions .secondary-button { min-height: 48px; padding-inline: .7rem; }
  .results-meta { align-items: center; }
  .results-meta .clear-filters { display: none; }
  .product-grid { gap: 1.6rem .65rem; }
  .availability-badge { top: .45rem; left: .45rem; padding: .28rem .42rem; }
  .favorite-button { top: .35rem; right: .35rem; width: 32px; height: 32px; }
  .view-hint { display: none; }
  .product-meta { display: grid; gap: .1rem; }
  .product-sku { display: none; }
  .product-title { font-size: 1.05rem; line-height: 1.2; }
  .product-bottom { display: grid; gap: .25rem; }
  .product-bottom strong { font-size: .95rem; }
  .story-grid { grid-template-columns: 1fr; gap: 3rem; }
  .story-copy h2 { font-size: clamp(2.65rem, 12.5vw, 4rem); }
  .artist-card { min-height: 0; grid-template-columns: 60px minmax(0, 1fr); gap: .8rem 1rem; padding: 1rem 0; }
  .artist-monogram { width: 50px; height: 60px; }
  .artist-actions { grid-column: 2; justify-content: space-between; gap: .6rem; }
  .artist-contact-link { width: 32px; height: 32px; }
  .artist-works { min-height: 34px; padding: .45rem .65rem; }
  .contact-cta { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
  .contact-cta h2 { font-size: clamp(2.65rem, 12.5vw, 4rem); }
  .contact-cta .primary-button { width: fit-content; }
  .partner-strip-inner { min-height: 0; grid-template-columns: 1fr auto; gap: .35rem 1rem; padding-block: 1.5rem; }
  .partner-strip .eyebrow { grid-column: 1 / -1; margin-bottom: .35rem; }
  .partner-strip p:not(.eyebrow) { grid-column: 1 / -1; }
  .partner-link { grid-column: 2; grid-row: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer nav { flex-wrap: wrap; }
  .dialog-grid { grid-template-columns: 1fr; }
  .dialog-gallery { min-height: 0; }
  .dialog-gallery.has-multiple { grid-template-rows: auto 72px; }
  .dialog-image { min-height: 0; aspect-ratio: 1 / 1; }
  .dialog-gallery-nav { width: 38px; height: 38px; }
  .dialog-thumbnail { width: 42px; height: 52px; }
  .dialog-details { padding: 2rem 1.25rem; }
  .product-dialog { width: 100vw; max-width: none; max-height: 93dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .theme-trigger span { display: none; }
  .theme-trigger { width: 44px; padding: 0; justify-content: center; }
}

@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-image { aspect-ratio: .86; }
  .product-sku { display: inline; }
  .product-bottom { display: flex; }
}
