:root {
  --black: #030303;
  --coal: #0b0907;
  --night: #11100d;
  --bone: #e7d4b1;
  --muted-bone: rgba(231, 212, 177, 0.72);
  --faint-bone: rgba(231, 212, 177, 0.18);
  --ash: rgba(255, 250, 240, 0.64);
  --brass: #c7a66a;
  --umber: #7b5730;
  --oxide: #8d3e2e;
  --stone: #2f2a23;
  --line: rgba(231, 212, 177, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --arabic: "Noto Naskh Arabic", serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  background:
    linear-gradient(90deg, rgba(199, 166, 106, 0.025) 1px, transparent 1px) 0 0 / 108px 108px,
    var(--black);
  color: var(--bone);
  font-family: var(--sans);
  margin: 0;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
}

.site-header {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: 190px minmax(0, 1fr) 360px;
  left: 0;
  padding: 32px clamp(22px, 3.6vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 240ms ease, border-color 240ms ease, padding 240ms ease;
  z-index: 20;
}

.site-header.is-scrolled {
  background: rgba(3, 3, 3, 0.84);
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  padding-top: 20px;
}

.wordmark {
  color: var(--bone);
  display: inline-grid;
  gap: 4px;
  justify-self: start;
  letter-spacing: 0.34em;
  line-height: 1;
  text-decoration: none;
}

.wordmark span {
  font-size: 1.42rem;
  font-weight: 500;
}

.wordmark small {
  color: var(--brass);
  font-family: var(--arabic);
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1;
}

nav {
  align-items: center;
  display: flex;
  gap: clamp(24px, 3.2vw, 54px);
  justify-content: center;
}

nav a,
.header-actions button,
.text-link,
.gallery-note button,
.filter-bar button,
.inquiry-form button,
.product-actions button,
.dialog-actions button,
.checkout-form button,
.deposit-card {
  color: var(--bone);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.31em;
  text-transform: uppercase;
}

nav a {
  color: var(--muted-bone);
  text-decoration: none;
}

nav a:hover,
.header-actions button:hover,
.text-link:hover,
.gallery-note button:hover,
.filter-bar button:hover {
  color: #fff5dc;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 26px;
  justify-content: end;
}

.header-actions button {
  background: transparent;
  border: 0;
  padding: 0;
}

.bag-link {
  align-items: center;
  border: 1px solid var(--line) !important;
  display: inline-flex;
  gap: 10px;
  min-height: 36px;
  padding: 0 14px !important;
}

.bag-link span {
  align-items: center;
  background: var(--brass);
  color: var(--black);
  display: inline-flex;
  font-size: 0.62rem;
  height: 18px;
  justify-content: center;
  letter-spacing: 0;
  min-width: 18px;
  padding: 0 5px;
}

.inquiry-link {
  border-left: 1px solid var(--line) !important;
  min-height: 36px;
  padding-left: 32px !important;
}

.hero {
  display: grid;
  grid-template-columns: clamp(320px, 40vw, 680px) minmax(0, 1fr);
  grid-template-rows: minmax(620px, 1fr) auto;
  min-height: 100svh;
  overflow: hidden;
  padding: 112px clamp(22px, 7vw, 118px) 0;
  position: relative;
}

.hero::after {
  border: 1px solid rgba(231, 212, 177, 0.08);
  content: "";
  inset: 104px clamp(18px, 3vw, 52px) 84px;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.hero-image {
  inset: 0;
  position: absolute;
  z-index: 0;
}

.hero-image::before {
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.96) 0%, rgba(3, 3, 3, 0.66) 38%, rgba(3, 3, 3, 0.34) 66%, rgba(3, 3, 3, 0.8) 100%),
    linear-gradient(0deg, rgba(3, 3, 3, 0.96) 0%, rgba(3, 3, 3, 0.12) 42%, rgba(3, 3, 3, 0.88) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero-image img {
  filter: saturate(0.78) contrast(1.18) brightness(0.72);
  height: 100%;
  object-fit: cover;
  object-position: 71% center;
}

.hero-veil {
  background:
    radial-gradient(ellipse at 68% 45%, rgba(199, 166, 106, 0.2), transparent 34%),
    radial-gradient(ellipse at 32% 55%, rgba(141, 62, 46, 0.16), transparent 32%);
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.35;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.hero-copy {
  align-self: center;
  display: grid;
  justify-items: center;
  max-width: 560px;
  min-width: 0;
  padding-bottom: 38px;
  position: relative;
  text-align: center;
  z-index: 2;
}

.hero-mark-wrap {
  display: grid;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.64));
  gap: 4px;
  justify-items: center;
  margin-bottom: 26px;
  margin-top: 0;
  width: clamp(118px, 13vw, 178px);
}

.hero-mark {
  max-width: 100%;
}

.hero-mark-wrap figcaption {
  color: var(--brass);
  font-family: var(--arabic);
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  line-height: 1;
  margin-top: -6px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1 {
  color: #f1dec0;
  font-size: clamp(3.05rem, 5.2vw, 6.7rem);
  line-height: 1.1;
  margin-bottom: 22px;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.76);
}

.mantra {
  color: var(--brass);
  font-size: clamp(0.86rem, 1.3vw, 1.08rem);
  font-weight: 500;
  letter-spacing: 0.35em;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-text {
  color: var(--ash);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 28px;
  max-width: 360px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 4px;
}

.primary-action,
.secondary-action {
  background: rgba(199, 166, 106, 0.12);
  border: 1px solid var(--brass);
  color: var(--brass);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  min-height: 46px;
  padding: 0 18px;
  text-transform: uppercase;
}

.secondary-action {
  background: transparent;
  border-color: var(--line);
  color: var(--muted-bone);
}

.text-link,
.gallery-note button {
  align-items: center;
  background: transparent;
  border: 0;
  display: inline-grid;
  gap: 16px;
  justify-items: center;
  padding: 0;
}

.text-link::before,
.gallery-note button::before {
  background: var(--line);
  content: "";
  height: 1px;
  width: 54px;
}

.hero-index {
  align-self: center;
  border-left: 1px solid rgba(231, 212, 177, 0.34);
  color: var(--muted-bone);
  display: grid;
  gap: 18px;
  grid-column: 2;
  justify-self: end;
  min-width: 160px;
  padding: 34px 0 34px 28px;
  position: relative;
  z-index: 2;
}

.hero-index span,
.hero-index strong,
.section-kicker {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.hero-index strong {
  color: var(--brass);
  margin-top: 18px;
}

.hero-gallery {
  border: 1px solid var(--line);
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(210px, 0.9fr) repeat(4, minmax(136px, 1fr)) minmax(210px, 0.9fr);
  min-height: 172px;
  position: relative;
  z-index: 3;
}

.hero-gallery figure,
.hero-gallery h2,
.hero-gallery p {
  margin: 0;
}

.hero-gallery figure {
  border-left: 1px solid var(--line);
  min-height: 172px;
  overflow: hidden;
}

.hero-gallery img {
  filter: saturate(0.72) contrast(1.18) brightness(0.78);
  height: 100%;
  object-fit: cover;
  transition: filter 240ms ease, transform 420ms ease;
}

.hero-gallery figure:hover img {
  filter: saturate(0.86) contrast(1.08) brightness(0.98);
  transform: scale(1.035);
}

.gallery-note {
  align-content: center;
  background: linear-gradient(90deg, rgba(3, 3, 3, 0.92), rgba(19, 14, 9, 0.72));
  display: grid;
  gap: 14px;
  padding: 24px;
}

.gallery-note.right {
  border-left: 1px solid var(--line);
}

.gallery-note h2 {
  color: #f0dbb7;
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  line-height: 1.25;
  margin: 0;
}

.gallery-note p {
  color: rgba(255, 250, 240, 0.58);
  font-size: 0.78rem;
  line-height: 1.65;
  max-width: 220px;
}

.gallery-note button {
  align-items: start;
  color: var(--brass);
  gap: 12px;
  justify-items: start;
  margin-top: 10px;
}

.gallery-note button::before {
  background: var(--brass);
  opacity: 0.5;
}

.atelier-section,
.collection-section,
.commission-section,
.provenance-section,
.journal-section,
.contact-section,
footer {
  padding-left: clamp(22px, 7vw, 118px);
  padding-right: clamp(22px, 7vw, 118px);
}

.atelier-section {
  align-items: center;
  display: grid;
  gap: clamp(42px, 7vw, 110px);
  grid-template-columns: 180px minmax(0, 1fr);
  padding-bottom: clamp(84px, 10vw, 144px);
  padding-top: clamp(92px, 12vw, 166px);
}

.section-kicker {
  color: var(--brass);
}

.atelier-statement {
  border-left: 1px solid var(--line);
  display: grid;
  gap: 28px;
  max-width: 1080px;
  padding-left: clamp(28px, 5vw, 78px);
  position: relative;
}

.arabic-large {
  color: rgba(199, 166, 106, 0.12);
  font-family: var(--arabic);
  font-size: clamp(5rem, 14vw, 13rem);
  left: 52%;
  line-height: 1;
  margin: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.atelier-statement h2,
.commission-section h2,
.provenance-copy h2,
.contact-section h2,
.collection-section h2,
.journal-grid h2 {
  color: #f1dec0;
  font-size: clamp(2.5rem, 5.6vw, 6.2rem);
  letter-spacing: 0.1em;
  line-height: 1.02;
  margin: 0;
  text-transform: none;
}

.atelier-statement p:not(.arabic-large),
.provenance-copy p,
.contact-section p,
.process-list p {
  color: rgba(255, 250, 240, 0.6);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  max-width: 680px;
}

.collection-section {
  background:
    linear-gradient(180deg, rgba(3, 3, 3, 0), rgba(20, 16, 12, 0.84) 26%, rgba(3, 3, 3, 0.96)),
    var(--coal);
  border-top: 1px solid var(--line);
  padding-bottom: clamp(88px, 10vw, 150px);
  padding-top: clamp(76px, 10vw, 136px);
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: 150px minmax(0, 1fr) auto auto;
  margin-bottom: 44px;
}

.shop-controls {
  justify-self: end;
}

.shop-controls label {
  align-items: center;
  color: var(--brass);
  display: flex;
  gap: 12px;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.shop-controls select,
.checkout-form select,
.inquiry-form select {
  appearance: none;
}

.shop-controls select {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--bone);
  min-height: 38px;
  padding: 0 12px;
}

.filter-bar {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: end;
  padding-bottom: 16px;
}

.filter-bar button {
  background: transparent;
  border: 0;
  color: rgba(231, 212, 177, 0.48);
  padding: 0;
}

.filter-bar button.active {
  color: #f3dfbd;
}

.product-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(218px, 1fr));
}

.product-card {
  background:
    linear-gradient(180deg, rgba(231, 212, 177, 0.075), rgba(231, 212, 177, 0.035)),
    rgba(3, 3, 3, 0.36);
  border: 1px solid var(--line);
  display: grid;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.product-card.featured {
  grid-column: auto;
  grid-row: auto;
}

.image-button {
  background: transparent;
  border: 0;
  color: var(--bone);
  display: block;
  padding: 0;
  text-align: left;
  width: 100%;
}

.product-image {
  background: var(--night);
  height: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.product-image img {
  filter: saturate(0.78) contrast(1.08) brightness(0.78);
  height: 100%;
  object-fit: cover;
  transition: filter 260ms ease, transform 520ms ease;
}

.product-card:hover img {
  filter: saturate(0.9) contrast(1.08) brightness(1);
  transform: scale(1.035);
}

.product-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 13px;
  min-height: 0;
  padding: 18px;
}

.product-title-button {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
  text-align: left;
}

.product-meta {
  align-items: start;
  display: flex;
  justify-content: space-between;
}

.product-meta span,
.product-price,
.product-body p {
  color: rgba(231, 212, 177, 0.54);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.product-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 2px;
}

.product-actions button {
  background: rgba(199, 166, 106, 0.12);
  border: 1px solid var(--brass);
  color: var(--brass);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  min-height: 38px;
  padding: 0 12px;
}

.product-actions .secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--muted-bone);
}

.product-price {
  color: var(--brass);
}

.product-body h3 {
  color: #f1dec0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.55vw, 1.95rem);
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1.06;
  margin: 0;
}

.product-body p {
  display: -webkit-box;
  letter-spacing: 0.05em;
  line-height: 1.6;
  overflow: hidden;
  text-transform: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.commission-section {
  display: grid;
  gap: clamp(42px, 7vw, 100px);
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  padding-bottom: clamp(84px, 10vw, 144px);
  padding-top: clamp(84px, 10vw, 144px);
}

.deposit-card {
  background: rgba(199, 166, 106, 0.08);
  border: 1px solid var(--brass);
  color: var(--brass);
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-top: 34px;
  max-width: 360px;
  padding: 24px;
  text-align: left;
  width: 100%;
}

.deposit-card strong {
  color: #f1dec0;
  font-family: var(--serif);
  font-size: 2.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.deposit-card small {
  color: rgba(255, 250, 240, 0.58);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: none;
}

.commission-section h2 {
  margin-top: 20px;
}

.process-list {
  border-top: 1px solid var(--line);
  display: grid;
}

.process-list article {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: 70px 170px minmax(0, 1fr);
  padding: 30px 0;
}

.process-list span,
.journal-grid span {
  color: var(--brass);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
}

.process-list h3 {
  color: #f1dec0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  margin: 0;
}

.process-list p {
  margin: 0;
}

.provenance-section {
  background: #0f0d0a;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
  min-height: 760px;
  padding-left: 0;
}

.provenance-image {
  min-height: 760px;
  overflow: hidden;
}

.provenance-image img {
  filter: saturate(0.68) contrast(1.14) brightness(0.74);
  height: 100%;
  object-fit: cover;
}

.provenance-copy {
  align-content: center;
  display: grid;
  gap: 28px;
  padding: clamp(46px, 7vw, 118px);
}

.provenance-copy dl {
  border-top: 1px solid var(--line);
  display: grid;
  margin: 20px 0 0;
}

.provenance-copy div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 120px 1fr;
  padding: 22px 0;
}

.provenance-copy dt {
  color: var(--brass);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.provenance-copy dd {
  color: rgba(255, 250, 240, 0.62);
  font-weight: 300;
  line-height: 1.7;
  margin: 0;
}

.journal-section {
  padding-bottom: clamp(80px, 10vw, 138px);
  padding-top: clamp(80px, 10vw, 138px);
}

.journal-grid {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

.journal-grid article {
  border-right: 1px solid var(--line);
  display: grid;
  gap: 60px;
  min-height: 360px;
  padding: 30px;
}

.journal-grid h2 {
  align-self: end;
  font-size: clamp(2rem, 3.4vw, 4.2rem);
  letter-spacing: 0.06em;
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.92), rgba(3, 3, 3, 0.72)),
    url("assets/products/HN015-1.jpg") center / cover;
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(42px, 7vw, 96px);
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 0.72fr);
  padding-bottom: clamp(78px, 9vw, 132px);
  padding-top: clamp(78px, 9vw, 132px);
}

.contact-section h2 {
  margin: 18px 0 28px;
}

.inquiry-form {
  align-content: start;
  border: 1px solid var(--line);
  display: grid;
  gap: 24px;
  padding: clamp(26px, 4vw, 44px);
}

.inquiry-form label {
  color: var(--brass);
  display: grid;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: #f1dec0;
  min-height: 46px;
  outline: 0;
}

.inquiry-form textarea {
  min-height: 120px;
  resize: vertical;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  border-color: var(--brass);
}

.inquiry-form button {
  background: transparent;
  border: 1px solid var(--brass);
  color: var(--brass);
  justify-self: start;
  min-height: 48px;
  padding: 0 22px;
}

footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-bottom: 36px;
  padding-top: 36px;
}

footer p {
  color: var(--brass);
  letter-spacing: 0.32em;
  margin: 0;
  text-transform: uppercase;
}

.product-dialog {
  background: #090806;
  border: 1px solid var(--line);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.7);
  color: var(--bone);
  max-height: min(760px, 92vh);
  max-width: min(980px, calc(100vw - 28px));
  padding: 0;
  width: 980px;
}

.product-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.dialog-close {
  align-items: center;
  background: rgba(3, 3, 3, 0.78);
  border: 1px solid var(--line);
  color: var(--bone);
  display: flex;
  font-size: 1.5rem;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 42px;
  z-index: 2;
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.86fr);
}

.dialog-image {
  background: var(--night);
  max-height: min(760px, 92vh);
  min-height: 520px;
}

.dialog-image img {
  filter: saturate(0.8) contrast(1.08) brightness(0.86);
  height: 100%;
  object-fit: cover;
}

.dialog-copy {
  align-content: center;
  display: grid;
  gap: 18px;
  padding: clamp(30px, 4vw, 54px);
}

.dialog-copy h2 {
  color: #f1dec0;
  font-family: var(--serif);
  font-size: clamp(2.15rem, 3.8vw, 4.2rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 0.98;
  margin: 0;
}

.dialog-copy p {
  color: rgba(255, 250, 240, 0.62);
  font-weight: 300;
  line-height: 1.8;
}

.dialog-price {
  color: var(--brass);
  font-family: var(--serif);
  font-size: 2.05rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.spec-list {
  border-top: 1px solid var(--line);
  display: grid;
}

.spec-list div {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 14px 0;
}

.spec-list dt,
.spec-list dd {
  font-size: 0.68rem;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.spec-list dt {
  color: var(--brass);
}

.spec-list dd {
  color: var(--bone);
  margin: 0;
  text-align: right;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dialog-actions button {
  background: transparent;
  border: 1px solid var(--brass);
  color: var(--brass);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  min-height: 46px;
  padding: 0 18px;
  text-transform: uppercase;
}

.dialog-actions button.secondary {
  border-color: var(--line);
  color: var(--muted-bone);
}

.mark-field,
.checkout-form label {
  color: var(--brass);
  display: grid;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.mark-field input,
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--bone);
  min-height: 46px;
  outline: 0;
}

.cart-drawer {
  background: rgba(0, 0, 0, 0.62);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 40;
}

.cart-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  background: #080705;
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 100px rgba(0, 0, 0, 0.6);
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  margin-left: auto;
  max-width: 460px;
  padding: 26px;
  transform: translateX(100%);
  transition: transform 220ms ease;
  width: min(100%, 460px);
}

.cart-drawer.is-open .cart-panel {
  transform: translateX(0);
}

.cart-panel header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.cart-panel header button,
.quantity-controls button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted-bone);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  min-height: 32px;
  padding: 0 10px;
  text-transform: uppercase;
}

.cart-items {
  align-content: start;
  display: grid;
  gap: 16px;
  overflow: auto;
  padding-right: 4px;
}

.cart-item {
  border: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: 94px 1fr;
  padding: 12px;
}

.cart-item img {
  aspect-ratio: 1;
  filter: saturate(0.78) contrast(1.08) brightness(0.84);
  height: 94px;
  object-fit: cover;
}

.cart-item strong,
.cart-item span,
.cart-item small {
  display: block;
}

.cart-item strong {
  color: #f1dec0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
}

.cart-item span {
  color: var(--brass);
  margin-top: 8px;
}

.cart-item small {
  color: rgba(255, 250, 240, 0.52);
  line-height: 1.5;
  margin-top: 6px;
}

.quantity-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quantity-controls span {
  color: var(--bone);
  margin: 0;
  min-width: 18px;
  text-align: center;
}

.cart-empty {
  align-content: center;
  display: grid;
}

.cart-empty h2 {
  font-size: 3rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

.cart-empty p,
.cart-summary p,
.checkout-form p,
.payment-box small {
  color: rgba(255, 250, 240, 0.58);
  line-height: 1.7;
}

.cart-summary {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  padding-top: 20px;
}

.cart-summary div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.cart-summary span {
  color: var(--brass);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.cart-summary strong {
  color: #f1dec0;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
}

.cart-summary button,
.checkout-form button {
  background: var(--brass);
  border: 1px solid var(--brass);
  color: var(--black);
  min-height: 48px;
  padding: 0 18px;
}

.checkout-dialog {
  background: #090806;
  border: 1px solid var(--line);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.7);
  color: var(--bone);
  max-width: min(720px, calc(100vw - 28px));
  padding: 0;
  width: 720px;
}

.checkout-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.checkout-form {
  display: grid;
  gap: 22px;
  padding: clamp(30px, 5vw, 58px);
}

.checkout-form h2 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  letter-spacing: 0.08em;
  text-transform: none;
}

.checkout-form textarea {
  min-height: 100px;
}

.payment-box {
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding: 18px;
}

.payment-box span {
  color: var(--brass);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 150px 1fr 190px;
  }

  nav {
    gap: 22px;
  }

  .header-actions {
    gap: 18px;
  }

  .hero-gallery {
    grid-template-columns: minmax(180px, 0.85fr) repeat(3, minmax(120px, 1fr));
  }

  .hero-gallery figure:nth-of-type(4),
  .gallery-note.right {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(640px, 1fr) auto;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero::after,
  .hero-index {
    display: none;
  }

  .hero-copy {
    justify-self: center;
    padding-top: 40px;
  }

  .hero-gallery {
    grid-template-columns: minmax(190px, 0.9fr) repeat(2, minmax(150px, 1fr));
  }

  .gallery-note {
    grid-column: auto;
  }

  .atelier-section,
  .section-heading,
  .commission-section,
  .provenance-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .atelier-statement {
    border-left: 0;
    padding-left: 0;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card.featured {
    grid-column: auto;
  }

  .process-list article {
    grid-template-columns: 58px 1fr;
  }

  .process-list p {
    grid-column: 2;
  }

  .provenance-section {
    padding-left: clamp(22px, 7vw, 118px);
  }

  .provenance-image {
    min-height: 420px;
  }

  .provenance-copy {
    padding-left: 0;
    padding-right: 0;
  }

  .journal-grid {
    grid-template-columns: 1fr;
  }

  .journal-grid article {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    min-height: 260px;
  }

  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .dialog-image {
    max-height: 360px;
    min-height: 320px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 18px;
  }

  .header-actions {
    gap: 8px;
  }

  .site-header.is-scrolled {
    padding: 14px 18px;
  }

  .wordmark span {
    font-size: 1.18rem;
  }

  .inquiry-link {
    display: none !important;
  }

  .bag-link {
    background: rgba(199, 166, 106, 0.08) !important;
    font-size: 0.62rem !important;
    gap: 7px;
    letter-spacing: 0.18em !important;
    min-height: 34px;
    position: fixed;
    right: 18px;
    top: 18px;
    padding: 0 8px !important;
    z-index: 40;
  }

  .hero {
    grid-template-rows: minmax(620px, 1fr) auto;
    padding-top: 88px;
  }

  .hero-image img {
    object-position: 63% center;
  }

  .hero-copy {
    align-self: center;
    justify-items: start;
    justify-self: start;
    text-align: left;
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    justify-content: start;
    max-width: 320px;
    width: 100%;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .hero-mark-wrap {
    margin-bottom: 18px;
    width: 106px;
  }

  h1 {
    font-size: clamp(2.05rem, 10.4vw, 2.75rem);
    letter-spacing: 0.08em;
    max-width: 320px;
  }

  .mantra {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
  }

  .hero-text {
    max-width: 310px;
  }

  .hero-gallery {
    display: flex;
    gap: 0;
    margin-left: -20px;
    margin-right: -20px;
    overflow-x: auto;
    scroll-padding-left: 20px;
    scroll-snap-type: x mandatory;
  }

  .hero-gallery figure,
  .gallery-note {
    flex: 0 0 74vw;
    grid-column: auto;
    height: 174px;
    min-height: 174px;
    scroll-snap-align: start;
  }

  .hero-gallery figure {
    height: 174px;
    min-height: 174px;
  }

  .atelier-statement h2,
  .commission-section h2,
  .provenance-copy h2,
  .contact-section h2,
  .collection-section h2,
  .journal-grid h2 {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .filter-bar {
    justify-content: start;
  }

  .filter-bar button {
    font-size: 0.58rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-card.featured {
    grid-column: auto;
    grid-row: auto;
  }

  .product-card {
    grid-template-columns: clamp(104px, 34vw, 138px) minmax(0, 1fr);
  }

  .image-button {
    height: 100%;
  }

  .product-image {
    aspect-ratio: auto;
    min-height: 164px;
  }

  .product-body {
    border-left: 1px solid var(--line);
    border-top: 0;
    gap: 9px;
    padding: 13px;
  }

  .product-meta {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .product-meta span,
  .product-price,
  .product-body p {
    font-size: 0.55rem;
    letter-spacing: 0.12em;
  }

  .product-body h3 {
    font-size: clamp(1.05rem, 5vw, 1.35rem);
    letter-spacing: 0.04em;
    line-height: 1.08;
  }

  .product-actions {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .product-actions button {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    min-height: 32px;
    padding: 0 8px;
  }

  .product-dialog {
    max-height: 94vh;
    width: calc(100vw - 18px);
  }

  .dialog-image {
    max-height: 260px;
    min-height: 220px;
  }

  .dialog-copy {
    gap: 14px;
    padding: 24px 18px;
  }

  .dialog-copy h2 {
    font-size: clamp(1.85rem, 9vw, 2.8rem);
  }

  .spec-list div {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .spec-list dd {
    text-align: left;
  }

  .dialog-actions {
    display: grid;
  }

  .process-list article {
    grid-template-columns: 1fr;
  }

  .process-list p {
    grid-column: auto;
  }

  .provenance-copy div {
    grid-template-columns: 1fr;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  footer {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }

  footer p {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }
}
