/* Enzo Nori — homepage
   Layout: an editorial 1280px column on a light plaster ground; the catalog is driven by a leather swatch card (kartela).
   One committed light look: plaster ground, plum-black ink, burgundy (the brand's signature leather) for actions. */
:root {
  --plaster: #ECEAE6;     /* page ground: the stone and plaster of the brand's photography */
  --chalk: #F8F7F5;       /* raised surfaces: dialogs, inputs, story band */
  --white: #FFFFFF;       /* product photo frames */
  --ink: #26171F;         /* plum-black text */
  --smoke: #6C6165;       /* secondary text */
  --line: #D8D2CC;        /* hairlines */
  --wine: #6A1C36;        /* burgundy: actions and selection */
  --wine-2: #7F2645;
  --wine-deep: #3A1222;   /* partnership band */
  --on-wine: #F6EEF1;
  --on-wine-2: #D9C2CA;
  --focus: #8C2A4A;
  --f-display: "Noto Serif Display", "Didot", "Bodoni 72", "Bodoni MT", Georgia, serif;
  --f-text: "Ysabeau Office", "Gill Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --maxw: 1280px;
  --g: 16px;
  --hd-h: 64px;
  --pad: clamp(72px, 9vw, 136px);
  color-scheme: light;
}
@media (min-width: 640px) { :root { --g: 28px; } }
@media (min-width: 1000px) { :root { --g: 40px; --hd-h: 84px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.locked { overflow: hidden; }
body {
  margin: 0; background: var(--plaster); color: var(--ink);
  font: 400 17px/1.6 var(--f-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 70; background: var(--plaster); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
section[id], [id="top"] { scroll-margin-top: calc(var(--hd-h) + env(safe-area-inset-top, 0px)); }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--chalk); padding: 10px 14px; text-decoration: none; border-radius: 999px; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
.ic { width: 20px; height: 20px; flex: none; }
.wrap {
  width: 100%; max-width: calc(var(--maxw) + 2 * var(--g)); margin-inline: auto;
  padding-left: max(var(--g), env(safe-area-inset-left, 0px)); padding-right: max(var(--g), env(safe-area-inset-right, 0px));
}

/* type */
.h1 { font: 300 clamp(48px, 7.4vw, 116px)/0.96 var(--f-display); letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.h2 { font: 300 clamp(36px, 4.4vw, 64px)/1.03 var(--f-display); letter-spacing: -0.01em; margin: 0; text-wrap: balance; }

/* buttons: pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px; font: 600 15px/1.15 var(--f-text); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; text-align: center;
}
.btn .ic { width: 18px; height: 18px; }
.btn-wine { background: var(--wine); color: #fff; }
.btn-wine:hover { background: var(--wine-2); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--plaster); }
.btn-chalk { background: var(--chalk); color: var(--wine-deep); }
.btn-chalk:hover { background: #fff; }
.text-link { display: inline-block; margin-top: 22px; font: 600 15px/1.3 var(--f-text); color: var(--wine); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* header: links left, monogram centre, languages and the selection list right */
.hd {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(236, 234, 230, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s;
}
.hd.solid { border-bottom-color: var(--line); }
.hd-in {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; height: var(--hd-h);
  max-width: calc(var(--maxw) + 2 * var(--g)); margin-inline: auto;
  padding-left: max(var(--g), env(safe-area-inset-left, 0px)); padding-right: max(var(--g), env(safe-area-inset-right, 0px));
}
.nav { justify-self: start; display: flex; gap: 26px; }
.nav a { font: 500 15px/1 var(--f-text); text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-color: currentColor; }
.logo { justify-self: center; display: inline-flex; text-decoration: none; }
.logo-img { height: 38px; width: auto; }
@media (min-width: 1000px) { .hd .logo-img { height: 52px; } }
.hd-r { justify-self: end; display: flex; align-items: center; gap: 16px; }
.langs { display: flex; align-items: center; gap: 2px; font: 600 13px/1 var(--f-text); letter-spacing: .04em; }
.langs a { text-decoration: none; padding: 8px 6px; color: var(--smoke); border-radius: 999px; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { color: var(--ink); background: var(--chalk); }
.list-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 14px; border: 1px solid var(--ink); border-radius: 999px;
  background: transparent; font: 600 14px/1 var(--f-text); cursor: pointer; transition: background-color .2s, color .2s;
}
.list-btn:hover { background: var(--ink); color: var(--plaster); }
.list-btn .ic { width: 18px; height: 18px; }
.lb-n { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; display: grid; place-items: center; background: var(--line); color: var(--ink); font: 600 13px/1 var(--f-text); font-variant-numeric: tabular-nums; }
.lb-n[data-n]:not([data-n="0"]) { background: var(--wine); color: #fff; }
.lb-n.bump { animation: bump .45s cubic-bezier(.3, .7, .3, 1.4); }
@keyframes bump { 40% { transform: scale(1.25); } }
.burger { display: none; width: 44px; height: 44px; margin-left: -10px; border: 0; background: transparent; cursor: pointer; place-items: center; }
.burger .ic { width: 24px; height: 24px; }
.burger .ic-close, .burger[aria-expanded="true"] .ic-open { display: none; }
.burger[aria-expanded="true"] .ic-close { display: block; }
.mnav { background: var(--chalk); border-top: 1px solid var(--line); padding: 8px max(var(--g), env(safe-area-inset-right, 0px)) 24px max(var(--g), env(safe-area-inset-left, 0px)); }
.mnav nav { display: flex; flex-direction: column; }
.mnav nav a { font: 300 28px/1.2 var(--f-display); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.langs-m { margin-top: 18px; font-size: 15px; }
@media (max-width: 999px) {
  .hd-in { grid-template-columns: 1fr auto 1fr; }
  .hd-in > .nav, .hd-r > .langs, .lb-t { display: none; }
  .burger { display: grid; justify-self: start; }
  .list-btn { padding: 0 6px 0 10px; height: 40px; }
}

/* hero: headline over the plinth photograph */
.hero-top {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px clamp(32px, 5vw, 80px); align-items: end;
  padding-top: clamp(32px, 5vw, 80px); padding-bottom: clamp(28px, 3.5vw, 52px);
}
.hero-side { min-width: 0; padding-bottom: 6px; }
.hero-side p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--smoke); max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-fig { margin: 0; }
.hero-img { width: 100%; height: clamp(340px, 50vw, 760px); object-fit: cover; object-position: 50% 64%; }
.hero-fig figcaption { padding-top: 14px; font-size: 14px; color: var(--smoke); }
@media (prefers-reduced-motion: no-preference) {
  .hero-img { animation: unveil 1.3s cubic-bezier(.6, 0, .2, 1) .1s both; }
  .hero-top > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-top > :nth-child(2) { animation-delay: .15s; }
}
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 859px) { .hero-top { grid-template-columns: 1fr; } }

/* standfirst */
.standfirst-sec { padding-block: var(--pad) 0; }
.standfirst { margin: 0; max-width: 27em; font: 300 clamp(26px, 2.9vw, 42px)/1.28 var(--f-display); letter-spacing: -0.005em; text-wrap: pretty; }

/* catalog */
.cat { padding-block: var(--pad); }
.cat-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.cat-title { flex: 1 1 560px; min-width: 0; }
.cat-lead { margin: 18px 0 0; max-width: 40em; color: var(--smoke); font-size: 18px; }
.cat-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cat-total { margin: 0; font: 600 15px/1.3 var(--f-text); font-variant-numeric: tabular-nums; }
.search {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; width: 280px; max-width: 100%;
  border: 1px solid var(--line); border-radius: 999px; background: var(--chalk); color: var(--smoke);
}
.search:focus-within { border-color: var(--ink); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); }
@media (max-width: 759px) { .cat-tools { align-items: stretch; width: 100%; } .search { width: 100%; } }

/* the swatch card: leather tags with a punched hole and stitching */
.kartela {
  display: flex; gap: 14px; margin-top: clamp(32px, 4vw, 52px); padding: 14px 2px 4px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
}
.kartela::-webkit-scrollbar { display: none; }
.sw {
  flex: none; width: 88px; display: flex; flex-direction: column; gap: 3px; padding: 0; border: 0; background: none;
  text-align: left; cursor: pointer; scroll-snap-align: start; -webkit-tap-highlight-color: transparent;
}
.sw-tag {
  position: relative; display: block; height: 118px; margin-bottom: 11px; border-radius: 8px 8px 4px 4px;
  background-color: var(--c, #ccc); background-image: url("img/grain.png"); background-size: 128px; background-blend-mode: soft-light;
  box-shadow: inset 0 0 0 1px rgba(38, 23, 31, .1), 0 1px 2px rgba(38, 23, 31, .14);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s;
}
.sw-all .sw-tag { background-image: url("img/grain.png"), var(--stripes); background-size: 128px, auto; background-blend-mode: soft-light, normal; }
.sw-tag::after {
  content: ""; position: absolute; inset: 24px 7px 7px; border: 1px dashed rgba(255, 255, 255, .5);
  border-radius: 3px; mix-blend-mode: overlay; pointer-events: none;
}
.sw-hole {
  position: absolute; top: 9px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--plaster); box-shadow: inset 0 1px 2px rgba(38, 23, 31, .5), 0 0 0 2px rgba(255, 255, 255, .16);
}
.sw-name { font: 600 15px/1.2 var(--f-text); text-decoration: underline transparent 2px; text-underline-offset: 5px; transition: text-decoration-color .3s; }
.sw-n { font: 400 13px/1.3 var(--f-text); color: var(--smoke); font-variant-numeric: tabular-nums; }
.sw:hover .sw-tag { transform: translateY(-4px); }
.sw[aria-pressed="true"] .sw-tag { transform: translateY(-11px); box-shadow: inset 0 0 0 1px rgba(38, 23, 31, .1), 0 18px 24px -12px rgba(38, 23, 31, .55); }
.sw[aria-pressed="true"] .sw-name { text-decoration-color: var(--wine); }
.sw:focus-visible { outline: none; }
.sw:focus-visible .sw-tag { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (max-width: 759px) { .kartela { margin-inline: calc(-1 * var(--g)); padding-inline: var(--g); scroll-padding-inline: var(--g); } .sw { width: 76px; } .sw-tag { height: 100px; } }

/* colour story: their own Instagram creative for the chosen tone */
.story {
  display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center;
  margin-top: 26px; padding: clamp(14px, 1.8vw, 22px); background: var(--chalk); border-radius: 8px;
}
@media (prefers-reduced-motion: no-preference) { .story.in { animation: story-in .5s cubic-bezier(.2, .7, .2, 1) both; } }
@keyframes story-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.story-vis {
  aspect-ratio: 1; border-radius: 5px; overflow: hidden;
  background-color: var(--c); background-image: url("img/grain.png"); background-size: 160px; background-blend-mode: soft-light;
}
.story-vis img { width: 100%; height: 100%; object-fit: cover; }
.story-txt { min-width: 0; padding-right: 8px; }
.story-name { margin: 0; font: 300 clamp(40px, 4.6vw, 68px)/1 var(--f-display); }
.story-n { margin: 10px 0 0; color: var(--smoke); font-size: 17px; }
.tones-l { margin: 22px 0 10px; font: 600 14px/1.3 var(--f-text); }
.tones { display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; margin: 0; padding: 0; }
.tone { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px; border-radius: 999px; background: var(--white); font: 400 14px/1.2 var(--f-text); }
.tone i { width: 15px; height: 15px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(38, 23, 31, .16); }
.tone-more { padding-left: 12px; color: var(--smoke); }
@media (max-width: 759px) {
  .story { grid-template-columns: 112px minmax(0, 1fr); align-items: start; }
  .story-name { font-size: 34px; }
  .story-n { margin-top: 6px; font-size: 15px; }
  .tones-l { margin-top: 14px; }
  .story-txt { padding-right: 0; }
}

/* product grid */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(32px, 3.4vw, 48px) clamp(14px, 1.8vw, 24px); margin-top: clamp(32px, 4vw, 52px); }
@media (max-width: 1099px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 759px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; } }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card-ph {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 3px; overflow: hidden;
  background-color: var(--white); background-repeat: no-repeat;
  background-size: calc(var(--cols, 1) * 100%) calc(var(--rows, 1) * 100%); background-position: var(--pos, 0% 0%);
  cursor: zoom-in;
}
.card-ph::after {
  content: attr(data-q); position: absolute; left: 12px; bottom: 12px; padding: 8px 14px; border-radius: 999px;
  background: rgba(248, 247, 245, .94); font: 600 13px/1 var(--f-text); opacity: 0; translate: 0 6px; transition: opacity .25s, translate .25s;
}
.card-ph:hover::after, .card-ph:focus-visible::after { opacity: 1; translate: 0 0; }
.card-add {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 42px; height: 42px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(38, 23, 31, .14); background: rgba(255, 255, 255, .95); display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.card-add:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.card-add .ic { width: 19px; height: 19px; }
.card-add .ic-chk, .card-add[data-in] .ic-plus { display: none; }
.card-add[data-in] .ic-chk { display: block; }
.card-add[data-in] { background: var(--wine); color: #fff; border-color: var(--wine); }
.card-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.card-code { margin: 0; font: 400 24px/1.05 var(--f-display); font-variant-numeric: lining-nums; overflow-wrap: anywhere; }
.card-n { font-size: 13px; color: var(--smoke); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dots { display: flex; flex-wrap: wrap; gap: 7px; }
.dot {
  position: relative; width: 17px; height: 17px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(38, 23, 31, .18);
}
.dot[data-two] { background: linear-gradient(135deg, var(--c) 0 50%, var(--c2) 50% 100%); }
.dot::after { content: ""; position: absolute; inset: -5px; }
.dot[aria-pressed="true"] { outline: 1.5px solid var(--ink); outline-offset: 2.5px; }
.dot:focus-visible { outline: 2px solid var(--focus); outline-offset: 2.5px; }
.card-cname { margin: 0; font-size: 14px; color: var(--smoke); min-height: 1.35em; overflow-wrap: anywhere; }
@media (max-width: 759px) {
  .card-code { font-size: 20px; }
  .dot { width: 15px; height: 15px; }
  .dots { gap: 6px; }
  .card-add { width: 38px; height: 38px; top: 8px; right: 8px; }
  .card-ph::after { display: none; }
}
.cat-empty { margin: 32px 0 0; padding: 28px; background: var(--chalk); border-radius: 8px; color: var(--smoke); max-width: 44em; }
.more-row { display: flex; justify-content: center; margin-top: 52px; }
.more-n { font-weight: 400; color: var(--smoke); }
.btn-line:hover .more-n { color: inherit; opacity: .8; }
.more-row:has(> [hidden]) { margin-top: 0; }

/* lookbook */
.look { padding-block: 0 var(--pad); }
.look-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(40px, 5vw, 80px); align-items: start; }
.look-txt { position: sticky; top: calc(var(--hd-h) + 40px); }
.look-txt p { margin: 18px 0 0; font: 300 clamp(22px, 2vw, 28px)/1.35 var(--f-display); color: var(--smoke); }
.look-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); padding-bottom: 64px; }
.lk { margin: 0; }
.lk img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.lk-2, .lk-5 { translate: 0 64px; }
@media (max-width: 859px) {
  .look-in { grid-template-columns: 1fr; }
  .look-txt { position: static; }
  .look-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 36px; }
  .lk-2, .lk-5 { translate: none; }
  .lk:nth-child(even) { translate: 0 36px; }
}

/* values */
.values { padding-block: 0 var(--pad); }
.values-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px clamp(40px, 7vw, 112px); align-items: start; }
.values-fig { margin: 0; position: sticky; top: calc(var(--hd-h) + 32px); }
.values-fig img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.values-txt { min-width: 0; padding-top: clamp(0px, 2vw, 24px); }
.values-p { margin: 20px 0 0; font-size: 18px; color: var(--smoke); max-width: 34em; }
.vlist { margin: 40px 0 0; border-top: 1px solid var(--line); }
.vrow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 6px 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.vrow dt { font: 300 26px/1.15 var(--f-display); }
.vrow dd { margin: 0; color: var(--smoke); font-size: 17px; }
@media (max-width: 859px) {
  .values-in { grid-template-columns: 1fr; }
  .values-fig { position: static; max-width: 520px; }
  .vrow { grid-template-columns: 1fr; }
}

/* promo pair */
.promo { padding-block: 0 var(--pad); }
.promo-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); }
.pcard { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; color: #fff; text-decoration: none; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.pcard:hover img { transform: scale(1.035); }
.pcard::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(26, 12, 18, .72) 0, rgba(26, 12, 18, .25) 38%, rgba(26, 12, 18, 0) 60%); }
.pcard-t { position: absolute; z-index: 2; left: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 40px); display: flex; flex-direction: column; gap: 6px; }
.pcard-h { font: 300 clamp(30px, 3.2vw, 48px)/1.05 var(--f-display); }
.pcard-p { font-size: 17px; opacity: .92; }
.pcard-l { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font: 600 15px/1.2 var(--f-text); text-decoration: underline; text-underline-offset: 5px; }
.pcard-ic { width: 17px; height: 17px; }
@media (max-width: 759px) { .promo-in { grid-template-columns: 1fr; } .pcard { aspect-ratio: 1; } }

/* partnership band */
.partner { background: var(--wine-deep); color: var(--on-wine); padding-block: var(--pad); }
.partner-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.partner-txt p { margin: 18px 0 0; color: var(--on-wine-2); font-size: 18px; max-width: 26em; }
.pc { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.pc li { display: flex; align-items: center; gap: 12px; font: 500 17px/1.3 var(--f-text); font-variant-numeric: tabular-nums; }
.pc .ic { color: #E3B9C7; }
.pc a { color: var(--on-wine); text-decoration: none; }
.pc a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pform { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.fld { display: flex; flex-direction: column; gap: 8px; min-width: 0; font: 500 14px/1.3 var(--f-text); color: var(--on-wine-2); }
.fld-w { grid-column: 1 / -1; }
.fld input, .fld textarea {
  width: 100%; padding: 13px 15px; border: 1px solid rgba(246, 238, 241, .28); border-radius: 12px;
  background: rgba(255, 255, 255, .06); color: var(--on-wine); font: 400 16px/1.4 var(--f-text); outline: none;
}
.fld textarea { resize: vertical; min-height: 104px; }
.fld input:focus, .fld textarea:focus { border-color: var(--on-wine); background: rgba(255, 255, 255, .1); }
.fld input[aria-invalid="true"] { border-color: #EBA6BB; }
.pf-row { grid-column: 1 / -1; display: flex; }
.form-msg { grid-column: 1 / -1; margin: 0; min-height: 1.5em; font-size: 15px; color: var(--on-wine-2); }
@media (max-width: 859px) { .partner-in { grid-template-columns: 1fr; } }
@media (max-width: 559px) { .pform { grid-template-columns: 1fr; } }

/* app */
.app { padding-block: var(--pad) 0; }
.app-in { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center; padding: clamp(24px, 4vw, 56px); background: var(--chalk); border-radius: 10px; }
.app-icon img { width: 100%; height: auto; border-radius: 22%; box-shadow: 0 14px 30px -18px rgba(38, 23, 31, .5); }
.app .h2 { font-size: clamp(30px, 3.6vw, 52px); }
.app-txt p { margin: 16px 0 0; color: var(--smoke); max-width: 40em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font: 600 15px/1.2 var(--f-text); }
.store:hover { background: var(--ink); color: var(--plaster); }
@media (max-width: 699px) { .app-in { grid-template-columns: 1fr; } .app-icon { width: 96px; } }

/* instagram */
.ig { padding-block: var(--pad) 0; }
.ig-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.ig-handle { margin: 8px 0 0; color: var(--smoke); }
.ig-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ig-grid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
@media (max-width: 759px) { .ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } }

/* contact */
.contact { padding-block: var(--pad); }
.contact-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px clamp(40px, 6vw, 96px); align-items: stretch; }
.contact-main { min-width: 0; }
.contact-p { margin: 16px 0 0; color: var(--smoke); font-size: 18px; }
.clist { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.clist li { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.clist > li > .ic { width: 22px; height: 22px; color: var(--wine); margin-top: 3px; }
.clist li > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.lbl { font: 600 13px/1.3 var(--f-text); color: var(--smoke); }
.val { font: 500 18px/1.45 var(--f-text); text-decoration: none; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
a.val:hover { color: var(--wine); }
.copy { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--chalk); font: 600 13px/1 var(--f-text); color: var(--smoke); cursor: pointer; }
.copy:hover { border-color: var(--ink); color: var(--ink); }
.copy .ic { width: 15px; height: 15px; }
.mapbox { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 340px; padding: clamp(24px, 3vw, 40px); background: var(--chalk); border-radius: 10px; overflow: hidden; }
.mapbox .map-pin { width: 30px; height: 30px; color: var(--wine); margin-bottom: 6px; }
.mapbox address { font: 300 clamp(24px, 2.3vw, 34px)/1.25 var(--f-display); font-style: normal; }
.map-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 20px; }
.map-note { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--smoke); }
.mapbox iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; }
@media (max-width: 859px) { .contact-in { grid-template-columns: 1fr; } .mapbox { min-height: 280px; } }

/* footer */
.ft { padding-block: 64px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.ft-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 32px 56px; align-items: start; }
.ft .logo-img { height: 64px; width: auto; }
.ft-brand p { margin: 14px 0 0; color: var(--smoke); font-size: 15px; }
.ft-nav { display: flex; flex-direction: column; gap: 10px; }
.ft-nav a { text-decoration: none; font: 500 15px/1.3 var(--f-text); }
.ft-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ft-side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.ft-social { display: flex; gap: 8px; }
.ft-social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.ft-social a:hover { background: var(--ink); color: var(--plaster); border-color: var(--ink); }
.ft-social .ic { width: 18px; height: 18px; }
.ft-bottom { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; }
.ft-bottom p { margin: 0; padding-top: 20px; font-size: 13px; color: var(--smoke); border-top: 1px solid var(--line); }
.ft-bottom p:first-child { flex: 1; padding-right: 24px; }
@media (max-width: 759px) { .ft-in { grid-template-columns: 1fr; } .ft-side { align-items: flex-start; } .ft-bottom { flex-direction: column; gap: 8px; } .ft-bottom p:last-child { border-top: 0; padding-top: 0; } }

/* dialogs */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(38, 23, 31, .44); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.x-btn { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--chalk); display: grid; place-items: center; cursor: pointer; flex: none; }
.x-btn:hover { background: var(--ink); color: var(--plaster); border-color: var(--ink); }
.qv { width: min(1080px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 10px; background: var(--chalk); overflow: hidden; }
.qv[open] { animation: qv-in .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes qv-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.qv-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-height: calc(100dvh - 32px); }
/* the product photo sits framed on the chalk surface: studio backdrops vary from light to mid grey */
.qv-media { --qp: clamp(12px, 1.8vw, 24px); position: relative; display: grid; place-items: center; padding: var(--qp); background: var(--chalk); min-height: 0; }
.qv-ph {
  width: min(100%, calc((100dvh - 32px - 2 * var(--qp)) * .75)); aspect-ratio: 3 / 4; border-radius: 6px; background-color: var(--white); background-repeat: no-repeat;
  background-size: calc(var(--cols, 1) * 100%) calc(var(--rows, 1) * 100%); background-position: var(--pos, 0% 0%);
}
.qv-arr { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: rgba(248, 247, 245, .94); display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(38, 23, 31, .45); }
.qv-arr:hover { background: var(--ink); color: #fff; }
.qv-prev { left: 14px; }
.qv-next { right: 14px; }
.qv-side { position: relative; overflow: auto; padding: clamp(24px, 3.2vw, 48px); display: flex; flex-direction: column; gap: 18px; min-height: 0; }
.qv-side > .x-btn { position: absolute; top: 16px; right: 16px; }
.qv-brand { margin: 0; font: 600 14px/1.3 var(--f-text); color: var(--smoke); }
.qv-code { margin: -6px 0 0; font: 300 clamp(40px, 4.2vw, 62px)/1 var(--f-display); }
.qv-mat { margin: -8px 0 0; color: var(--smoke); }
.qv-block { display: flex; flex-direction: column; gap: 10px; }
.qv-lbl { margin: 0; font: 500 15px/1.3 var(--f-text); }
.qv-lbl strong { font-weight: 600; }
.qv-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.qv-th {
  width: 54px; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 4px; cursor: pointer; background-color: var(--white); background-repeat: no-repeat;
  background-size: calc(var(--cols, 1) * 100%) calc(var(--rows, 1) * 100%); background-position: var(--pos, 0% 0%);
  box-shadow: inset 0 0 0 1px rgba(38, 23, 31, .1);
}
.qv-th[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; width: max-content; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.stepper button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; cursor: pointer; }
.stepper button:hover { background: var(--plaster); }
.stepper .ic { width: 17px; height: 17px; }
.stepper input { width: 56px; padding: 0; border: 0; background: transparent; text-align: center; font: 600 16px/1 var(--f-text); -moz-appearance: textfield; appearance: textfield; font-variant-numeric: tabular-nums; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qv-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.qv-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-height: 1.45em; margin-top: -6px; font-size: 14px; line-height: 1.45; color: var(--smoke); }
.qv-note p { margin: 0; }
.link-btn { padding: 0; border: 0; background: none; font: 600 14px/1.45 var(--f-text); color: var(--wine); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.link-btn:hover { text-decoration-thickness: 2px; }
@media (max-width: 759px) {
  .qv { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .qv-in { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: start; max-height: 100dvh; height: 100dvh; overflow: auto; }
  .qv-media { min-height: auto; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 0; }
  .qv-ph { width: min(100%, calc(58dvh * .75)); }
  .qv-side { overflow: visible; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .qv-side > .x-btn { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 3; }
  .qv-act .btn { flex: 1 1 100%; }
}

/* selection list: a sheet from the right */
.drawer {
  margin: 0 0 0 auto; width: min(460px, 100vw); height: 100dvh; max-height: 100dvh; max-width: 100vw; padding: 0; border: 0;
  background: var(--chalk); flex-direction: column;
}
.drawer[open] { display: flex; animation: dr-in .38s cubic-bezier(.2, .7, .2, 1); }
@keyframes dr-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.dr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: calc(22px + env(safe-area-inset-top, 0px)) 24px 16px; border-bottom: 1px solid var(--line); }
.dr-title { margin: 0; font: 300 34px/1.05 var(--f-display); }
.dr-sum { margin: 6px 0 0; color: var(--smoke); font-size: 14px; font-variant-numeric: tabular-nums; }
.dr-body { flex: 1; overflow: auto; padding: 4px 24px; }
.litems { list-style: none; margin: 0; padding: 0; }
.li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.li-th {
  grid-row: 1 / span 2; width: 64px; aspect-ratio: 3 / 4; border-radius: 4px; background-color: var(--white); background-repeat: no-repeat;
  background-size: calc(var(--cols, 1) * 100%) calc(var(--rows, 1) * 100%); background-position: var(--pos, 0% 0%);
}
.li-code { margin: 0; font: 400 20px/1.1 var(--f-display); }
.li-c { margin: 2px 0 0; font-size: 14px; color: var(--smoke); overflow-wrap: anywhere; }
.li-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.li .stepper button { width: 36px; height: 36px; }
.li .stepper input { width: 46px; font-size: 15px; }
.li-rm { display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px; border: 0; background: none; color: var(--smoke); font: 500 13px/1 var(--f-text); cursor: pointer; }
.li-rm:hover { color: var(--wine); }
.li-rm .ic { width: 16px; height: 16px; }
.dr-empty { margin: 0; padding: 28px 0; color: var(--smoke); }
.dr-foot { display: flex; flex-direction: column; gap: 12px; padding: 16px 24px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.dr-note span { display: block; margin-bottom: 6px; font: 500 14px/1.3 var(--f-text); }
.dr-note textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font: 400 15px/1.4 var(--f-text); resize: vertical; outline: none; }
.dr-note textarea:focus { border-color: var(--ink); }
.dr-help { margin: 0; font-size: 14px; color: var(--smoke); }
.dr-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dr-btns .btn-wine { grid-column: 1 / -1; }
.dr-btns .btn { min-height: 46px; padding: 0 14px; font-size: 14px; }
.dr-mailhint { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--smoke); }
.dr-clear { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; color: var(--smoke); font: 500 13px/1 var(--f-text); cursor: pointer; }
.dr-clear:hover, .dr-clear[data-armed] { color: var(--wine); }
.dr-clear[data-armed] { font-weight: 600; }
.dr-clear .ic { width: 15px; height: 15px; }

/* toast */
.toast {
  position: fixed; z-index: 90; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); translate: -50% 0;
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 32px); padding: 10px 10px 10px 18px;
  border-radius: 999px; background: var(--ink); color: var(--on-wine); box-shadow: 0 16px 32px -16px rgba(38, 23, 31, .65); font: 500 14px/1.35 var(--f-text);
}
.toast:not([hidden]) { animation: toast-in .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.toast button { flex: none; padding: 9px 14px; border: 0; border-radius: 999px; background: var(--on-wine); color: var(--ink); font: 600 13px/1 var(--f-text); cursor: pointer; white-space: nowrap; }
@media (max-width: 559px) { .toast { border-radius: 16px; } }

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