:root {
  color-scheme: dark;
  --ink: #08090a;
  --graphite: #121416;
  --stone: #b8b2aa;
  --ivory: #eeeae3;
  --silver: #d8d1c7;
  --petrol: #18323b;
  --line: rgba(238, 234, 227, .18);
  --serif: "Italiana", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(216, 209, 199, .5) transparent; }
body { margin: 0; background: var(--ink); color: var(--ivory); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
body.locked { overflow: hidden; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(216, 209, 199, .46); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(238, 234, 227, .72); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid var(--ivory); outline-offset: 4px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: var(--ivory); color: var(--ink); }
.skip-link:focus { top: 1rem; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 10; height: 92px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(1.25rem, 4vw, 4rem); border-bottom: 1px solid rgba(255,255,255,.15); }
.brand { justify-self: start; width: 178px; height: 70px; overflow: hidden; }
.brand img { height: 100%; object-fit: cover; }
.desktop-nav { display: flex; gap: 2.5rem; font-size: .85rem; }
.desktop-nav a, .cart-trigger, .locale-trigger { opacity: .82; transition: opacity .2s ease; }
.desktop-nav a:hover, .cart-trigger:hover, .locale-trigger:hover { opacity: 1; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 1.6rem; }
.cart-trigger, .locale-trigger { border: 0; background: transparent; cursor: pointer; padding: .75rem 0; white-space: nowrap; }
.locale-trigger { color: var(--stone); font-size: .72rem; }
.cart-count { display: inline-grid; place-items: center; min-width: 1.55rem; height: 1.55rem; margin-left: .45rem; border: 1px solid var(--line); border-radius: 50%; font-size: .72rem; }

.hero { min-height: 100svh; display: grid; grid-template-columns: 43% 57%; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-copy { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 9.5rem clamp(1.5rem, 4vw, 4rem) 4.5rem; position: relative; z-index: 2; }
.hero-edition { display: grid; grid-template-columns: 1fr auto; gap: 1rem; margin-bottom: clamp(3rem, 7vh, 5.5rem); padding: .85rem 0; border-block: 1px solid var(--line); color: var(--stone); font-size: .72rem; }
.hero-edition span:last-child { text-align: right; }
.hero-kicker, .modal-kicker { margin: 0 0 1.5rem; color: var(--stone); font-size: .78rem; letter-spacing: .08em; }
.hero h1 { max-width: 9ch; margin: 0; font: 400 clamp(4rem, 7vw, 8.4rem)/.88 var(--serif); letter-spacing: -.04em; }
.hero-intro { max-width: 31rem; margin: 2rem 0 2.5rem; color: var(--stone); font-size: 1rem; }
.text-link { display: inline-block; border-bottom: 1px solid currentColor; padding-bottom: .35rem; background: transparent; border-width: 0 0 1px; cursor: pointer; font-size: .85rem; }
.hero-visual { margin: 0; position: relative; min-height: 100svh; overflow: hidden; background: var(--graphite); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,10,.45), transparent 32%), linear-gradient(0deg, rgba(8,9,10,.38), transparent 35%); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: saturate(.9) contrast(1.04); }
.hero-visual figcaption { position: absolute; z-index: 2; right: clamp(1.5rem, 4vw, 4rem); bottom: 2rem; color: rgba(255,255,255,.72); font-size: .74rem; }

.collection { padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 4vw, 4rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(3rem, 6vw, 6rem); }
.section-heading h2, .atelier h2, .checkout-heading h2, .success-modal h2 { margin: 0; font: 400 clamp(3rem, 6vw, 6.8rem)/.95 var(--serif); letter-spacing: -.035em; }
.section-heading p { color: var(--stone); margin: 0 0 .8rem; }
.catalog-nav { position: sticky; top: 0; z-index: 8; display: flex; flex-wrap: wrap; gap: .65rem 2rem; margin-inline: calc(clamp(1.25rem, 4vw, 4rem) * -1); padding: 1rem clamp(1.25rem, 4vw, 4rem); border-block: 1px solid var(--line); background: rgba(8,9,10,.92); backdrop-filter: blur(14px); }
.catalog-nav a { color: var(--stone); font-size: .78rem; transition: color .2s ease; }
.catalog-nav a:hover { color: var(--ivory); }
.category-block { padding-top: clamp(5rem, 8vw, 8rem); scroll-margin-top: 3rem; }
.category-heading { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: baseline; margin-bottom: 2.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.category-heading span { color: var(--stone); font-size: .72rem; }
.category-heading h3 { margin: 0; font: 400 clamp(2.5rem, 4.3vw, 4.8rem)/1 var(--serif); letter-spacing: -.025em; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(3.5rem, 6vw, 6.5rem) clamp(1.25rem, 2.5vw, 3rem); }
.product-image { position: relative; width: 100%; padding: 0; overflow: hidden; border: 0; background: var(--graphite); cursor: zoom-in; text-align: left; }
.product-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 34%); opacity: .5; transition: opacity .35s ease; }
.product-image img { aspect-ratio: 3/4; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.1,1); }
.product-image span { position: absolute; z-index: 2; left: 1.5rem; bottom: 1.3rem; font-size: .78rem; opacity: 0; transform: translateY(.5rem); transition: .3s ease; }
.product-image:hover img { transform: scale(1.018); }
.product-image:hover span { opacity: 1; transform: none; }
.product-info { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: 1.25rem; }
.product-info h4 { margin: 0 0 .3rem; font: 400 clamp(1.45rem, 2vw, 2rem)/1.15 var(--serif); }
.product-info p { margin: 0; color: var(--stone); font-size: .8rem; }
.product-info .price { flex: none; max-width: 7rem; color: var(--ivory); font-size: .78rem; text-align: right; }
.availability { margin: .8rem 0 0; color: var(--stone); font-size: .72rem; letter-spacing: .015em; }
.add-inline { margin-top: 1.2rem; padding: .45rem 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ivory); font-size: .82rem; }

.atelier { position: relative; min-height: 78vh; display: grid; grid-template-columns: minmax(18rem, .75fr) minmax(0, 1.25fr); gap: clamp(3rem, 7vw, 9rem); align-items: center; padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 4vw, 4rem); background: var(--silver); color: var(--ink); overflow: hidden; }
.atelier-copy { max-width: 48rem; }
.atelier-copy p { max-width: 42rem; margin: 2rem 0 0; font-size: 1.05rem; }
.atelier-film { margin: 0; align-self: stretch; position: relative; background: #050607; overflow: hidden; }
.atelier-film video { display: block; width: 100%; height: 100%; min-height: 36rem; object-fit: cover; }
.atelier-film figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .45rem .7rem; color: rgba(255,255,255,.8); background: rgba(0,0,0,.45); font-size: .72rem; backdrop-filter: blur(8px); }

.custom-orders { min-height: 88vh; display: grid; grid-template-columns: minmax(20rem, .9fr) minmax(0, 1.1fr); border-top: 1px solid var(--line); background: #0d0f10; }
.custom-orders-copy { align-self: center; padding: clamp(5rem, 9vw, 10rem) clamp(1.25rem, 6vw, 7rem); }
.custom-orders-kicker { margin: 0 0 1.5rem; color: var(--stone); font-size: .78rem; letter-spacing: .08em; }
.custom-orders h2 { margin: 0; font: 400 clamp(3.8rem, 7vw, 8rem)/.88 var(--serif); letter-spacing: -.04em; }
.custom-orders-copy > p:not(.custom-orders-kicker) { max-width: 39rem; margin: 2rem 0 2.5rem; color: var(--stone); font-size: 1rem; }
.custom-orders-actions { display: grid; grid-template-columns: minmax(13rem, 18rem) auto; gap: 1.5rem; align-items: center; }
.custom-orders-actions .primary-button { display: grid; place-items: center; text-align: center; }
.custom-orders-actions .text-link { justify-self: start; }
.custom-orders-visual { position: relative; min-height: 50rem; margin: 0; overflow: hidden; background: var(--graphite); }
.custom-orders-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,10,.35), transparent 35%), linear-gradient(0deg, rgba(8,9,10,.5), transparent 40%); }
.custom-orders-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.custom-orders-visual figcaption { position: absolute; z-index: 1; left: 1.5rem; bottom: 1.5rem; color: rgba(255,255,255,.78); font-size: .72rem; }

footer { min-height: 55vh; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 3rem; padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 4vw, 4rem) 2.5rem; border-top: 1px solid var(--line); }
.footer-name { grid-column: 1/-1; font: 400 clamp(4rem, 12vw, 12rem)/.74 var(--serif); color: var(--silver); letter-spacing: -.05em; }
.footer-meta { color: var(--stone); font-size: .8rem; }
.footer-meta p { margin: .25rem 0; }
footer > a { align-self: end; font-size: .8rem; border-bottom: 1px solid var(--line); }

.overlay { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); }
.drawer { position: fixed; inset: 0 0 0 auto; z-index: 40; width: min(31rem, 100%); display: flex; flex-direction: column; background: #0d0f10; border-left: 1px solid var(--line); transform: translateX(102%); transition: transform .42s cubic-bezier(.22,.8,.22,1); }
.drawer.open { transform: none; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 1.7rem 1.8rem; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 0; font: 400 2rem/1 var(--serif); }
.icon-button { border: 0; background: transparent; padding: .4rem; cursor: pointer; font-size: 1.6rem; line-height: 1; }
.cart-items { flex: 1; overflow: auto; padding: 0 1.8rem; }
.cart-row { display: grid; grid-template-columns: 85px 1fr auto; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 85px; height: 110px; object-fit: cover; }
.cart-row h3 { margin: .1rem 0 .35rem; font: 400 1.15rem/1.2 var(--serif); }
.cart-row p { margin: 0; color: var(--stone); font-size: .75rem; }
.quantity { display: flex; align-items: center; gap: .65rem; margin-top: 1rem; }
.quantity button, .remove-item { border: 0; background: transparent; color: var(--stone); cursor: pointer; padding: .15rem; }
.quantity button:disabled { opacity: .25; cursor: not-allowed; }
.remove-item { align-self: start; font-size: 1.2rem; }
.cart-empty { margin: auto; text-align: center; color: var(--stone); }
.cart-summary { padding: 1.8rem; border-top: 1px solid var(--line); }
.cart-summary > div, .checkout-total { display: flex; justify-content: space-between; gap: 1rem; }
.cart-summary p { color: var(--stone); font-size: .75rem; }
.primary-button { width: 100%; border: 1px solid var(--ivory); background: var(--ivory); color: var(--ink); padding: 1rem 1.25rem; cursor: pointer; transition: background .2s, color .2s; }
.primary-button:hover { background: transparent; color: var(--ivory); }
.primary-button:disabled { opacity: .38; cursor: not-allowed; }

.modal { position: fixed; z-index: 50; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: min(72rem, calc(100% - 2rem)); max-height: calc(100svh - 2rem); overflow-x: hidden; overflow-y: auto; background: #101213; border: 1px solid var(--line); }
.product-modal { display: grid; grid-template-columns: 1fr 1fr; }
.modal-close { position: absolute; z-index: 2; right: 1.25rem; top: 1.25rem; }
.modal-gallery { min-width: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--graphite); }
.modal-image { min-height: 0; overflow: hidden; }
.modal-image img { height: 38rem; object-fit: cover; }
.modal-thumbnails { display: flex; gap: .4rem; padding: .55rem; overflow-x: auto; border-top: 1px solid var(--line); }
.modal-thumbnails button { flex: 0 0 3.6rem; width: 3.6rem; height: 4.5rem; padding: 0; border: 1px solid transparent; background: transparent; cursor: pointer; opacity: .58; }
.modal-thumbnails button.active { border-color: var(--ivory); opacity: 1; }
.modal-thumbnails img { width: 100%; height: 100%; object-fit: cover; }
.modal-copy { align-self: center; padding: clamp(2rem, 5vw, 5rem); }
.modal-copy h2 { margin: 0; font: 400 clamp(2.5rem, 5vw, 5rem)/.95 var(--serif); }
.modal-description { color: var(--stone); margin: 1.5rem 0; }
.modal-price { font-size: 1.1rem; }
fieldset { border: 0; padding: 0; margin: 2rem 0; }
legend { margin-bottom: .75rem; font-size: .8rem; }
.size-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.size-options label { cursor: pointer; }
.size-options input { position: absolute; opacity: 0; }
.size-options span { display: grid; place-items: center; min-width: 6.2rem; min-height: 4rem; padding: .45rem .65rem; border: 1px solid var(--line); }
.size-options b { font-size: .95rem; font-weight: 500; color: var(--ivory); }
.size-options small { font-size: .65rem; color: var(--stone); }
.size-options input:checked + span { background: var(--ivory); color: var(--ink); }
.size-options input:checked + span b, .size-options input:checked + span small { color: var(--ink); }
.made-note { color: var(--stone); font-size: .72rem; text-align: center; }

.checkout-modal { padding: clamp(2rem, 5vw, 5rem); width: min(52rem, calc(100% - 2rem)); }
.checkout-heading { margin-bottom: 2.5rem; }
.checkout-heading h2 { font-size: clamp(3rem, 6vw, 5rem); }
.checkout-heading > p:last-child { color: var(--stone); }
form { display: grid; gap: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: grid; gap: .5rem; font-size: .78rem; color: var(--stone); }
input, select { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ivory); padding: .65rem 0; outline: none; }
input:focus, select:focus { border-color: var(--ivory); }
select option { color: var(--ink); }
.checkout-total { margin: 1rem 0 .5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.success-modal { position: fixed; z-index: 60; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: min(37rem, calc(100% - 2rem)); padding: clamp(2rem, 5vw, 5rem); background: var(--silver); color: var(--ink); text-align: center; }
.success-modal .modal-kicker { color: #55514b; }
.success-modal h2 { font-size: clamp(2.8rem, 5vw, 4.6rem); }
.success-modal p:not(.modal-kicker) { color: #55514b; }
.success-modal .primary-button { margin-top: 1.5rem; background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.success-mark { display: grid; place-items: center; width: 3rem; height: 3rem; margin: 0 auto 2rem; border: 1px solid var(--ink); border-radius: 50%; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 1.5rem; transform: translate(-50%, 2rem); padding: .8rem 1.2rem; background: var(--ivory); color: var(--ink); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

.locale-modal { position: fixed; z-index: 90; inset: 0; height: 100vh; height: 100dvh; display: grid; grid-template-columns: 1fr minmax(27rem, .72fr); overflow: hidden; background: var(--ink); }
.locale-visual { min-width: 0; overflow: hidden; position: relative; }
.locale-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, var(--ink)); }
.locale-visual img { height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.08); }
.locale-panel { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 0; padding: clamp(2rem, 5vw, 5rem); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.locale-panel h2 { margin: 0; max-width: 8ch; font: 400 clamp(3.3rem, 5.5vw, 6.5rem)/.9 var(--serif); letter-spacing: -.04em; }
.locale-panel > p:not(.modal-kicker) { color: var(--stone); max-width: 31rem; }
.locale-close { position: absolute; right: 1.5rem; top: 1.5rem; }
.language-switch { position: absolute; left: clamp(2rem, 5vw, 5rem); top: 1.8rem; display: flex; gap: .3rem; }
.language-switch button { border: 0; border-bottom: 1px solid transparent; padding: .4rem .25rem; background: transparent; color: var(--stone); cursor: pointer; font-size: .78rem; }
.language-switch button.active { color: var(--ivory); border-color: var(--ivory); }
.country-search { margin-top: 2rem; }
.country-list { height: 12.5rem; min-height: 9rem; flex: 0 0 auto; margin: 1rem 0 1.5rem; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; border-block: 1px solid var(--line); }
.country-option { width: 100%; display: flex; justify-content: space-between; padding: .75rem .15rem; border: 0; border-bottom: 1px solid rgba(255,255,255,.07); background: transparent; color: var(--stone); cursor: pointer; text-align: left; }
.country-option:hover, .country-option.selected { color: var(--ivory); }
.country-option.selected::after { content: "✓"; }
.country-empty { color: var(--stone); font-size: .85rem; }

@media (max-width: 800px) {
  .site-header { height: 76px; grid-template-columns: 1fr auto; padding: 0 1rem; }
  .brand { width: 135px; height: 60px; }
  .desktop-nav { display: none; }
  .header-actions { gap: .8rem; }
  .locale-trigger { max-width: 7rem; overflow: hidden; text-overflow: ellipsis; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { min-height: 78svh; justify-content: center; padding: 7.5rem 1.25rem 3.5rem; }
  .hero-edition { margin-bottom: 3rem; }
  .hero h1 { font-size: clamp(3.6rem, 17vw, 6.5rem); }
  .hero-visual { min-height: 76svh; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 1rem; }
  .catalog-nav { margin-top: 2.5rem; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
  .category-block { padding-top: 5rem; }
  .category-heading { grid-template-columns: 2rem 1fr; }
  .product-grid { grid-template-columns: 1fr; gap: 4rem; }
  .product-info { display: block; }
  .product-info .price { max-width: none; margin-top: .75rem; text-align: left; }
  .atelier { grid-template-columns: 1fr; }
  .atelier-film video { min-height: 0; aspect-ratio: 16/9; }
  .custom-orders { min-height: 0; grid-template-columns: 1fr; }
  .custom-orders-copy { padding-block: 5rem; }
  .custom-orders h2 { font-size: clamp(3.8rem, 17vw, 6rem); }
  .custom-orders-actions { grid-template-columns: 1fr; }
  .custom-orders-visual { min-height: 72svh; }
  footer { min-height: 48vh; }
  .footer-name { font-size: 20vw; }
  .product-modal { grid-template-columns: 1fr; }
  .modal-image img { height: 38svh; min-height: 0; }
  .field-row { grid-template-columns: 1fr; }
  .locale-modal { grid-template-columns: 1fr; }
  .locale-visual { position: absolute; inset: 0; opacity: .22; }
  .locale-visual::after { background: linear-gradient(0deg, var(--ink) 8%, transparent 70%); }
  .locale-panel { z-index: 1; justify-content: flex-start; height: 100vh; height: 100dvh; min-height: 0; padding: 5.25rem 1.25rem 1.25rem; }
  .locale-panel h2 { font-size: clamp(3.1rem, 14vw, 5rem); }
  .country-search { margin-top: 1.25rem; }
  .country-list { height: clamp(9rem, 31dvh, 14rem); }
}

@media (max-width: 800px) and (max-height: 700px) {
  .locale-panel { padding-top: 4.25rem; }
  .locale-panel h2 { font-size: clamp(2.75rem, 12vw, 4rem); }
  .locale-panel > p:not(.modal-kicker) { margin-block: .55rem; }
  .country-list { height: 9rem; margin-block: .65rem 1rem; }
}

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