/* ==========================================================================
   Don'Otília — handmade accessories
   Demo preparada pela Feitura
   ========================================================================== */

/* Light only: phones in dark mode must not recolour the brand ("only" stops
   Chrome's and Android in-app browsers' automatic darkening). */
:root {
  color-scheme: only light;
  --paper: #F6F0E7;
  --paper-2: #EEE4D5;
  --paper-3: #E6D9C5;
  --card: #FFFCF6;
  --ink: #2A2420;
  --ink-2: #62574D;
  --ink-3: #6E6357; /* 4.5:1 or more on card, paper and paper-2 (WCAG AA) */
  --olive: #6F5D2C;
  --gold: #B08A3A;
  --gold-2: #D9C08A;
  --line: rgba(42, 36, 32, .12);
  --line-2: rgba(42, 36, 32, .22);

  /* mood colour — updated live by the mood slider */
  --mood: #B08A3A;
  --mood-ink: #2A2420;
  --mood-soft: rgba(176, 138, 58, .14);

  --r-xl: 36px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;

  --shadow-sm: 0 1px 0 rgba(42, 36, 32, .04), 0 6px 18px -10px rgba(42, 36, 32, .25);
  --shadow: 0 1px 0 rgba(42, 36, 32, .04), 0 22px 48px -22px rgba(42, 36, 32, .35);

  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mark: 'Italiana', 'Fraunces', serif;
  --f-hand: 'Caveat', 'Bradley Hand', cursive;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* signed-in team members only, while the shop is in maintenance mode (PageController) */
.teambar { position: relative; z-index: 210; padding: 9px var(--gutter); background: var(--olive); color: var(--paper); font: 400 13.5px/1.45 var(--f-body); text-align: center; }
.teambar strong { font-weight: 600; }
.teambar a { margin-left: 6px; color: inherit; font-weight: 600; text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* subtle paper grain over everything */
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 200;
  opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 340;
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  letter-spacing: -.025em;
  line-height: .98;
  margin: 0;
}
.display em { font-style: italic; font-weight: 300; color: var(--olive); }
.h2 { font-size: clamp(40px, 5.6vw, 76px); }
.h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.01em; line-height: 1.1; margin: 0; font-variation-settings: 'SOFT' 100; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); max-width: 54ch; }
.hand { font-family: var(--f-hand); font-weight: 600; color: var(--olive); line-height: 1; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font: 600 15px/1 var(--f-body); letter-spacing: .01em; text-decoration: none;
  transition: transform .35s var(--spring), background-color .25s, box-shadow .25s;
  box-shadow: 0 10px 24px -14px rgba(42, 36, 32, .7);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { --bg: var(--card); }
.btn--card { --bg: var(--card); --fg: var(--ink); box-shadow: var(--shadow-sm); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: transparent;
  font: 500 14px/1 var(--f-body); color: var(--ink-2);
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- announcement ---------- */
.announce {
  background: var(--ink); color: var(--paper-2);
  font: 500 13px/1 var(--f-body); letter-spacing: .04em;
  overflow: hidden; white-space: nowrap; height: 38px; display: flex; align-items: center;
}
.announce__track { display: inline-flex; gap: 48px; padding-left: 48px; animation: marquee 38s linear infinite; }
.announce__track > span { display: inline-flex; align-items: center; gap: 48px; }
.announce__track > span::after { content: '✦'; color: var(--gold-2); }
.announce__track > span[hidden] { display: none; }
.announce a { color: var(--gold-2); text-underline-offset: 3px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-stuck { background: rgba(246, 240, 231, .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark img { width: 46px; height: 46px; object-fit: contain; }
.mark__txt { display: grid; line-height: 1; }
.mark__name { font: 400 25px/1 var(--f-mark); letter-spacing: .2em; margin-right: -.2em; }
.mark__sub { font: 600 9.5px/1 var(--f-body); letter-spacing: .32em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font: 500 15px/1 var(--f-body); text-decoration: none; color: var(--ink-2);
  transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: var(--ink); background: rgba(42, 36, 32, .05); }
.nav__bag {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 16px 0 14px; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--paper); font: 600 14px/1 var(--f-body);
}
.nav__bag svg { width: 18px; height: 18px; }
.nav__bag .count {
  min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center;
  background: var(--gold-2); color: var(--ink); font-size: 12px; padding: 0 6px;
  transition: transform .4s var(--spring);
}
.nav__bag.bump .count { transform: scale(1.35); }
.nav__menu { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; place-items: center; }
.nav__menu span, .nav__menu span::before, .nav__menu span::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .3s var(--ease); }
.nav__menu span::before, .nav__menu span::after { content: ''; position: absolute; left: 0; }
.nav__menu span::before { top: -6px; } .nav__menu span::after { top: 6px; }

.mnav {
  position: fixed; inset: 0; z-index: 90; background: var(--paper);
  padding: 96px var(--gutter) 32px; display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-100%); transition: transform .55s var(--ease); visibility: hidden;
}
.mnav.open { transform: none; visibility: visible; }
.mnav a { font: 340 44px/1.15 var(--f-display); font-variation-settings: 'SOFT' 100; text-decoration: none; letter-spacing: -.02em; }
.mnav a em { font-style: italic; color: var(--olive); }
.mnav__close { position: absolute; top: 18px; right: var(--gutter); }
.mnav__foot { margin-top: auto; color: var(--ink-2); font-size: 15px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 110px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__copy { position: relative; z-index: 2; }
/* Christmas snow (site.js, 15 Nov – 6 Jan): over the photo, under the words */
.snow { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero h1 { font-size: clamp(52px, 7.6vw, 118px); margin: 22px 0 26px; }
.hero h1 .line { display: block; }
.hero h1 em { position: relative; white-space: nowrap; }
.hero h1 em svg { position: absolute; left: -2%; bottom: -.08em; width: 104%; height: .32em; overflow: visible; }
.hero h1 em svg path { stroke: var(--mood); stroke-width: 3; fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s 1.1s var(--ease) forwards; transition: stroke .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__lead { margin: 0 0 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* the mood card — styled like one of Tânia's earring cards */
.moodcard {
  position: relative; max-width: 520px;
  background: var(--card); border-radius: 22px; padding: 30px 26px 22px;
  box-shadow: var(--shadow);
}
.moodcard::before { /* punched hole */
  content: ''; position: absolute; top: 12px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 1px 2px rgba(42, 36, 32, .25);
}
.moodcard__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.moodcard__q { font: 400 24px/1.15 var(--f-display); font-variation-settings: 'SOFT' 100; margin: 0; letter-spacing: -.01em; }
.moodcard__val { font: 600 26px/1 var(--f-hand); color: var(--mood); transition: color .4s; white-space: nowrap; }
.moodcard__tip { margin: 6px 0 18px; font-size: 15px; color: var(--ink-2); min-height: 3.2em; }
.moodcard__ends { display: flex; justify-content: space-between; font: 600 11.5px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 12px; }
.moodcard__go { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.moodcard__go small { color: var(--ink-3); font-size: 13px; }

.range { position: relative; height: 34px; }
.range input {
  -webkit-appearance: none; appearance: none; width: 100%; height: 34px; margin: 0; background: transparent; position: relative; z-index: 2; cursor: grab;
}
.range input:active { cursor: grabbing; }
.range__track {
  position: absolute; left: 0; right: 0; top: 50%; height: 10px; margin-top: -5px; border-radius: 99px;
  background: linear-gradient(90deg, #EDE6DC 0%, #D9C2B0 18%, #6B1F24 30%, #1E1E22 38%, #1D6A6E 52%, #2340B8 66%, #C8402E 80%, #E0367F 90%, #F2B705 100%);
  box-shadow: inset 0 1px 2px rgba(42, 36, 32, .25);
}
.range input::-webkit-slider-runnable-track { height: 34px; background: transparent; }
.range input::-moz-range-track { height: 34px; background: transparent; }
.range input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--mood); box-shadow: 0 6px 16px -6px rgba(42, 36, 32, .6);
  transition: transform .25s var(--spring), border-color .4s;
}
.range input::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--card); border: 3px solid var(--mood); box-shadow: 0 6px 16px -6px rgba(42, 36, 32, .6); }
.range input:hover::-webkit-slider-thumb { transform: scale(1.1); }
.range input:focus-visible { outline: none; }
.range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--mood-soft), 0 6px 16px -6px rgba(42, 36, 32, .6); }

/* hero visual */
.hero__art { position: relative; min-height: 640px; }
.arch {
  position: absolute; right: 0; top: 0; width: min(86%, 500px); aspect-ratio: 5 / 6.6;
  border-radius: 999px 999px 28px 28px; overflow: hidden; box-shadow: var(--shadow);
  background: var(--paper-3);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.06); animation: settle 1.8s var(--ease) forwards; }
@keyframes settle { to { transform: scale(1); } }
.arch::after { content: ''; position: absolute; inset: 10px; border-radius: 999px 999px 20px 20px; border: 1px solid rgba(255, 255, 255, .55); pointer-events: none; }

.facecard {
  position: absolute; left: 0; bottom: 6%; width: min(48%, 270px); aspect-ratio: 1;
  border-radius: 50%; background: var(--card); box-shadow: var(--shadow);
  display: grid; place-items: center; overflow: hidden;
}
.facecard::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 62% 66%, var(--mood-soft), transparent 58%); transition: background .6s; }
.facecard svg { position: relative; width: 82%; height: auto; overflow: visible; }
.face-line { fill: none; stroke: var(--ink); stroke-width: .55; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s .25s var(--ease) forwards; }
.face-line--lid { stroke-width: 1.4; }
.face-lips { fill: var(--ink); opacity: 0; animation: fade .6s 1.6s forwards; }
@keyframes fade { to { opacity: 1; } }
.earring { transform-box: view-box; opacity: 0; animation: fade .6s 1.9s forwards; }
.earring .dangle, .earring .stud { transition: fill .5s var(--ease); }
.facecard__lbl { position: absolute; bottom: 13%; left: 0; right: 0; text-align: center; font: 400 10px/1 var(--f-mark); letter-spacing: .38em; color: var(--ink-2); }

/* mood card close-up face + "para hoje" picks — mobile only (hero face is off-screen there) */
.moodface, .moodpicks { display: none; }
.moodface { position: relative; width: 96px; height: 96px; flex: none; border-radius: 50%; background: var(--paper); overflow: hidden; place-items: center; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.moodface::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 66% 70%, var(--mood-soft), transparent 62%); transition: background .6s; }
.moodface svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.moodface .face-line { stroke-width: .7; }
.moodface .face-line--lid { stroke-width: 1.5; }
.moodpicks { align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.moodpicks__imgs { display: flex; }
.moodpicks__imgs img { width: 42px; height: 52px; object-fit: cover; border-radius: 10px; border: 2px solid var(--card); margin-left: -12px; box-shadow: 0 4px 10px -6px rgba(42, 36, 32, .5); animation: pick .5s var(--spring) both; animation-delay: calc(var(--i) * 60ms); }
.moodpicks__imgs img:first-child { margin-left: 0; }
.moodpicks__lbl { font: 600 21px/1 var(--f-hand); color: var(--mood); transition: color .4s; white-space: nowrap; }
@keyframes pick { from { transform: translateY(8px) scale(.85); opacity: 0; } }

.spinbadge { position: absolute; top: 6%; right: -2%; width: 132px; height: 132px; z-index: 3; }
.spinbadge svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.spinbadge text { font: 600 9.5px var(--f-body); letter-spacing: .12em; fill: var(--ink); text-transform: uppercase; }
.spinbadge__core { position: absolute; inset: 30%; border-radius: 50%; background: var(--mood); display: grid; place-items: center; color: var(--card); transition: background .5s; }
.spinbadge__core svg { width: 46%; animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.note {
  position: absolute; z-index: 4; display: flex; align-items: flex-end; gap: 6px;
  font: 600 25px/1.05 var(--f-hand); color: var(--ink); transform: rotate(-4deg);
}
.note svg { width: 64px; height: 50px; flex: none; stroke: var(--ink); fill: none; stroke-width: 1.6; stroke-linecap: round; }
.hero .note { right: 3%; top: 54%; flex-direction: column; align-items: flex-end; text-align: right; color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.45); transform: rotate(-5deg); }
.hero .note svg { stroke: #fff; width: 56px; height: 52px; margin-right: 34%; filter: drop-shadow(0 1px 6px rgba(0,0,0,.35)); }

.press {
  border-block: 1px solid var(--line); padding: 22px 0;
}
.press .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.press__item { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); }
.press__item b { color: var(--ink); font-weight: 600; }
.press__item svg { width: 22px; height: 22px; flex: none; color: var(--olive); }
.press__quote { font: italic 400 17px/1.35 var(--f-display); color: var(--ink); max-width: 46ch; }
.press__quote small { display: block; font: 600 11px/1 var(--f-body); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 52px); }
.shead > div { max-width: 760px; }
.shead .display { margin-top: 18px; }
.shead p { margin: 18px 0 0; }

.stitch { height: 14px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M4 3l8 8M12 3l-8 8' stroke='%236F5D2C' stroke-width='1.4' stroke-linecap='round' opacity='.55'/%3E%3Cpath d='M17 7h8' stroke='%236F5D2C' stroke-width='1.4' stroke-linecap='round' stroke-dasharray='2 3' opacity='.4'/%3E%3C/svg%3E"); background-repeat: repeat-x; background-position: center; }

/* ---------- catalogue ---------- */
/* Brincos | Gesso cerâmico: which side of the shop the banca shows (site.js setKind). */
.kinds { display: flex; gap: 4px; width: max-content; max-width: 100%; padding: 4px; margin: 0 0 clamp(22px, 3vw, 30px); border-radius: 999px; background: var(--paper-2); }
.kinds button { border: 0; border-radius: 999px; padding: 11px 20px; background: transparent; color: var(--ink-2); font: 600 15px/1 var(--f-body); cursor: pointer; transition: background-color .2s, color .2s; }
.kinds button:hover { color: var(--ink); }
.kinds button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.kinds button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.toolbar {
  position: sticky; top: calc(var(--nav-h) + 8px); z-index: 30;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 10px 10px 10px 18px; margin-bottom: 30px; border-radius: 999px;
  background: rgba(255, 252, 246, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}
.toolbar__mood { display: flex; align-items: center; gap: 12px; flex: 1 1 280px; min-width: 240px; }
.toolbar__mood .lbl { font: 600 12px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.toolbar__mood .range { flex: 1; height: 30px; }
.toolbar__mood .range input { height: 30px; }
.toolbar__mood .range__track { height: 6px; margin-top: -3px; }
.toolbar__mood .range input::-webkit-slider-thumb { width: 24px; height: 24px; border-width: 2.5px; }
.toolbar__mood .range input::-moz-range-thumb { width: 20px; height: 20px; }
.toolbar__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.toolbar select {
  height: 38px; border-radius: 999px; border: 1.5px solid var(--line-2); padding: 0 34px 0 16px; background: transparent; font-size: 14px; font-weight: 500; color: var(--ink-2);
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%232A2420' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center;
}
.toolbar__count { margin-left: auto; font-size: 14px; color: var(--ink-3); padding-right: 8px; white-space: nowrap; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px) clamp(12px, 1.6vw, 24px); }
.tile { position: relative; display: flex; flex-direction: column; gap: 14px; }
.tile__img {
  position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--paper-3);
  cursor: pointer; isolation: isolate; border: 0; padding: 0; width: 100%;
}
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.tile:hover .tile__img img { transform: scale(1.05); }
.tile__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  background: rgba(255, 252, 246, .92); font: 600 11px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.tile__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--tone, var(--gold)); }
.tile__tag--today { background: var(--mood); color: #fff; }
.tile__tag--today i { background: #fff; }
.tile__tag--new { background: var(--ink); color: var(--paper); }
/* On the photo's bottom corner, never over the name and price under it: the photo is 4:5,
   so its height is 125% of the card's width, which is what a margin percentage measures. */
.tile__add {
  position: absolute; right: 12px; top: 0; margin-top: calc(125% - 56px); z-index: 2;
  height: 44px; padding: 0 16px; border-radius: 999px; border: 0;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); color: var(--ink); font: 600 14px/1 var(--f-body);
  box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .4s var(--spring), background-color .2s;
}
.tile:hover .tile__add, .tile__add:focus-visible, .tile__add.in-bag { opacity: 1; transform: none; }
.tile__add.in-bag { background: var(--ink); color: var(--paper); }
.tile__meta { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 0 4px; }
.tile__name { font: 400 21px/1.15 var(--f-display); font-variation-settings: 'SOFT' 100; letter-spacing: -.01em; margin: 0; }
.tile__sub { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }
.tile__price { font: 500 17px/1.2 var(--f-body); white-space: nowrap; }
.tile.is-sold .tile__img img { filter: grayscale(.85) contrast(.9) brightness(1.05); }
.tile.is-sold .tile__add { display: none; }
.tile__sold {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 40px 16px 16px;
  background: linear-gradient(transparent, rgba(42, 36, 32, .6));
  color: #fff; font: 600 26px/1 var(--f-hand); text-align: center;
}
.tile.is-sold .tile__price { text-decoration: line-through; color: var(--ink-3); }
.grid .tile { transition: opacity .4s; }
.grid.is-sorting .tile { will-change: transform; }
.more { display: flex; justify-content: center; margin-top: 40px; }
.more .btn { min-width: 260px; }
.grid__empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--ink-2); }

/* ---------- collections ---------- */
.cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 23%); gap: 18px; overflow-x: auto; padding: 4px var(--gutter) 22px; margin-inline: calc(var(--gutter) * -1); scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.col {
  scroll-snap-align: start; position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4;
  background: var(--paper-3); text-decoration: none; color: #fff; border: 0; padding: 0; text-align: left;
}
.col img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.col:hover img { transform: scale(1.06); }
.col::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(25, 20, 16, .78)); }
.col__body { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; }
.col__name { font: 340 32px/1 var(--f-display); font-variation-settings: 'SOFT' 100; letter-spacing: -.015em; margin: 0 0 8px; }
.col__line { font-size: 14px; line-height: 1.4; opacity: .9; margin: 0; }
.col__n { position: absolute; top: 16px; right: 16px; z-index: 2; height: 28px; padding: 0 12px; border-radius: 99px; display: inline-flex; align-items: center; background: rgba(255, 252, 246, .92); color: var(--ink); font: 600 12px/1 var(--f-body); }
.col__dot { position: absolute; top: 16px; left: 16px; z-index: 2; width: 14px; height: 14px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 3px rgba(255, 252, 246, .9); }

/* ---------- story ---------- */
.story { background: var(--paper-2); overflow: hidden; }
.story .wrap { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.rugwrap { position: relative; display: grid; place-items: center; padding: 30px 0; }
.rug { position: relative; width: min(100%, 470px); }
.rug canvas { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(42, 36, 32, .55); background: #EFE4CF; }
.rug__fringe { height: 30px; margin: 0 6px; background: repeating-linear-gradient(90deg, #D8C39C 0 3px, transparent 3px 7px); -webkit-mask: linear-gradient(#000, rgba(0, 0, 0, .65)); mask: linear-gradient(#000, rgba(0, 0, 0, .65)); }
.rug__fringe--top { transform: scaleY(-1); }
.rug__lbl { position: absolute; right: -6px; bottom: -46px; transform: rotate(-6deg); font: 600 24px/1.05 var(--f-hand); color: var(--ink); text-align: right; }
.story__polaroid {
  position: absolute; left: -10px; top: 0; width: 180px; padding: 10px 10px 40px; background: #fff; box-shadow: var(--shadow); transform: rotate(-7deg); z-index: 3;
}
.story__polaroid img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; object-position: 50% 20%; }
.story__polaroid span { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font: 600 22px/1 var(--f-hand); }
.story h2 { margin: 20px 0 28px; }
.story p { color: var(--ink-2); margin: 0 0 18px; max-width: 56ch; }
.story p:first-of-type::first-letter { font: 400 64px/.8 var(--f-display); float: left; margin: 6px 10px 0 0; color: var(--olive); }
.story blockquote {
  margin: 34px 0 24px; padding: 0 0 0 26px; border-left: 2px solid var(--gold);
  font: italic 340 clamp(24px, 2.4vw, 32px)/1.25 var(--f-display); font-variation-settings: 'SOFT' 100; letter-spacing: -.01em;
}
.sign { font: 600 38px/1 var(--f-hand); color: var(--ink); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.facts span { padding: 8px 14px; border-radius: 99px; background: var(--card); font-size: 14px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { position: relative; background: var(--card); border-radius: var(--r-lg); padding: 14px 14px 26px; box-shadow: var(--shadow-sm); }
.step__img { aspect-ratio: 1; border-radius: 16px; overflow: hidden; margin-bottom: 20px; position: relative; background: var(--paper-3); }
.step__img img { width: 100%; height: 100%; object-fit: cover; }
.step__n { position: absolute; top: 10px; left: 10px; width: 40px; height: 40px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font: 400 18px/1 var(--f-display); }
.step h3 { margin: 0 10px 8px; }
.step p { margin: 0 10px; font-size: 15px; color: var(--ink-2); }
.step__mood { display: grid; grid-template-columns: 1fr 1fr; height: 100%; }
.step__mood div { display: grid; place-items: center; padding: 14px; text-align: center; font: 600 22px/1.05 var(--f-hand); }
.step__mood div:first-child { background: linear-gradient(160deg, #EFE8DD, #D8C7B4); color: var(--ink-2); }
.step__mood div:last-child { background: linear-gradient(160deg, #F6C73A, #E0367F); color: #fff; }

/* ---------- workshop ---------- */
.ws { background: var(--ink); color: var(--paper); overflow: hidden; }
.ws .eyebrow { color: var(--gold-2); }
.ws .display em { color: var(--gold-2); }
.ws .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.ws__art { position: relative; min-height: 560px; }
.ws__a { position: absolute; left: 0; top: 0; width: 66%; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; transform: rotate(-3deg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.ws__b { position: absolute; right: 0; bottom: 0; width: 54%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 8px solid var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.ws__a img, .ws__b img { width: 100%; height: 100%; object-fit: cover; }
.ws__note { position: absolute; left: 4%; bottom: 8%; color: var(--gold-2); transform: rotate(-6deg); font: 600 28px/1.05 var(--f-hand); max-width: 220px; }
.ws p.lead { color: rgba(246, 240, 231, .78); }
.ws__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 34px; margin: 30px 0; }
.ws__facts dt { font: 600 11px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 240, 231, .55); margin-bottom: 8px; }
.ws__facts dd { margin: 0; font: 400 26px/1.1 var(--f-display); font-variation-settings: 'SOFT' 100; }
.countdown { display: flex; gap: 10px; margin: 0 0 28px; }
.countdown div { min-width: 72px; padding: 12px 10px; border-radius: 14px; background: rgba(246, 240, 231, .07); text-align: center; box-shadow: inset 0 0 0 1px rgba(246, 240, 231, .12); }
.countdown b { display: block; font: 400 34px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(246, 240, 231, .6); }
.seats { margin: 0 0 26px; }
.seats__dots { display: flex; gap: 8px; margin-bottom: 10px; }
.seats__dots i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(246, 240, 231, .35); transition: background .4s, box-shadow .4s, transform .4s var(--spring); }
.seats__dots i.on { box-shadow: none; }
.seats__dots i.pop { transform: scale(1.3); }
.seats small { color: rgba(246, 240, 231, .7); font-size: 14px; }
.wsform { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: rgba(246, 240, 231, .06); border-radius: 22px; padding: 14px; box-shadow: inset 0 0 0 1px rgba(246, 240, 231, .12); }
.wsform input, .wsform .stepper { height: 52px; border-radius: 14px; border: 0; background: rgba(246, 240, 231, .1); color: var(--paper); padding: 0 16px; width: 100%; }
.wsform input::placeholder { color: rgba(246, 240, 231, .5); }
.wsform input:focus { outline: 2px solid var(--gold-2); }
.wsform .full { grid-column: 1 / -1; }
.stepper { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 16px !important; }
.stepper span { font-size: 15px; color: rgba(246, 240, 231, .75); }
.stepper div { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 40px; height: 40px; border-radius: 10px; border: 0; background: rgba(246, 240, 231, .12); color: var(--paper); font-size: 20px; line-height: 1; }
.stepper output { min-width: 28px; text-align: center; font-weight: 600; }
.wsform .btn { --bg: var(--gold-2); --fg: var(--ink); }
.ws__ok { display: none; text-align: center; padding: 26px 18px; border-radius: 22px; background: rgba(246, 240, 231, .08); }
.ws__ok.show { display: block; animation: pop .6s var(--spring); }
.ws__ok h3 { font: 400 30px/1.1 var(--f-display); margin: 6px 0 8px; }
.ws__ok p { margin: 0; color: rgba(246, 240, 231, .75); }
.ws__more { margin-top: 18px; font-size: 15px; color: rgba(246, 240, 231, .7); }
.ws__more a { color: var(--gold-2); }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }

/* ---------- where ---------- */
.where .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 70px); align-items: start; }
.map { position: relative; background: var(--card); border-radius: var(--r-xl); padding: clamp(18px, 3vw, 34px); box-shadow: var(--shadow-sm); }
.map svg { width: 100%; height: auto; display: block; overflow: visible; }
.map .land { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.map .sea-line { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 6; stroke-linecap: round; opacity: .6; }
.map .town { font: 500 13px var(--f-body); fill: var(--ink-3); }
.map .towns circle { fill: var(--ink-3); }
.map .sea { font: italic 400 14px var(--f-display); fill: var(--ink-3); letter-spacing: .04em; }
.map .serra { font: italic 400 13px var(--f-display); fill: var(--olive); opacity: .75; letter-spacing: .03em; }
.map .pin { cursor: pointer; }
.map .pin circle.halo { fill: var(--mood); opacity: .18; transform-box: fill-box; transform-origin: center; animation: halo 2.6s ease-out infinite; }
.map .pin circle.dot { fill: var(--ink); stroke: var(--card); stroke-width: 3; transition: r .3s var(--spring); }
.map .pin.active circle.dot { fill: var(--mood); }
.map .pin text { font: 600 14px var(--f-body); fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 5px; }
@keyframes halo { 0% { transform: scale(.6); opacity: .35; } 100% { transform: scale(2.2); opacity: 0; } }
.map__legend { position: absolute; left: clamp(22px, 3.4vw, 40px); top: clamp(18px, 2.6vw, 30px); font: 600 22px/1 var(--f-hand); color: var(--olive); }
.places { display: grid; gap: 10px; }
.place {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px 14px 14px; border-radius: 18px; background: transparent; border: 0; text-align: left; width: 100%;
  box-shadow: inset 0 0 0 1px var(--line); transition: background-color .25s, box-shadow .25s;
}
.place:hover, .place.active { background: var(--card); box-shadow: var(--shadow-sm); }
.place__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--paper-2); color: var(--olive); }
.place__ico svg { width: 22px; height: 22px; }
.place b { display: block; font-weight: 600; font-size: 16px; }
.place span { font-size: 14px; color: var(--ink-3); }
.place em { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); background: var(--mood-soft); padding: 6px 10px; border-radius: 99px; white-space: nowrap; }
.fairs { margin-top: 26px; padding: 22px; border-radius: 22px; background: var(--paper-2); }
.fairs h3 { font: 400 22px/1.2 var(--f-display); margin: 0 0 12px; }
.fairs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fairs li { padding: 8px 12px; border-radius: 99px; background: var(--card); font-size: 14px; color: var(--ink-2); }

/* ---------- instagram ---------- */
.insta__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.insta__grid a { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; display: block; }
.insta__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.insta__grid a::after { content: '♡'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: #fff; background: rgba(42, 36, 32, .35); opacity: 0; transition: opacity .3s; }
.insta__grid a:hover::after { opacity: 1; }
.insta__grid a:hover img { transform: scale(1.06); }

/* ---------- faq + newsletter ---------- */
.faq .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.qa { border-top: 1px solid var(--line-2); }
.qa:last-child { border-bottom: 1px solid var(--line-2); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 400 21px/1.3 var(--f-display); font-variation-settings: 'SOFT' 100; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); position: relative; transition: transform .35s var(--ease), background-color .25s; }
.qa summary i::before, .qa summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: var(--ink); }
.qa summary i::after { transform: rotate(90deg); transition: transform .35s var(--ease); }
.qa[open] summary i { background: var(--ink); }
.qa[open] summary i::before, .qa[open] summary i::after { background: var(--paper); }
.qa[open] summary i::after { transform: rotate(0); }
.qa p { margin: -6px 0 22px; color: var(--ink-2); max-width: 62ch; }

.news {
  position: relative; margin-top: 40px; padding: 30px; border-radius: var(--r-xl); background: var(--card); box-shadow: var(--shadow-sm); overflow: hidden;
}
.news h3 { font: 340 32px/1.1 var(--f-display); font-variation-settings: 'SOFT' 100; margin: 0 0 8px; letter-spacing: -.01em; }
.news p { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; }
.news form { display: flex; gap: 8px; }
.news input { flex: 1; min-width: 0; height: 52px; border-radius: 99px; border: 1.5px solid var(--line-2); background: var(--paper); padding: 0 20px; }
.news input:focus { outline: 2px solid var(--ink); border-color: transparent; }

/* ---------- footer ---------- */
.foot { background: var(--paper-2); padding: 72px 0 34px; }
.foot__top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px; }
.foot__logo { width: 170px; mix-blend-mode: multiply; margin: -10px 0 16px -6px; }
.foot p { color: var(--ink-2); font-size: 15px; margin: 0; max-width: 34ch; }
.foot h4 { font: 600 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 10px 0 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-3); }
.foot__big { font: 400 clamp(64px, 14.5vw, 220px)/.8 var(--f-mark); letter-spacing: .08em; text-align: center; margin: 64px 0 0; color: var(--ink); opacity: .9; white-space: nowrap; overflow: hidden; }

/* ---------- drawer / modal ---------- */
.scrim { position: fixed; inset: 0; z-index: 100; background: rgba(32, 26, 22, .42); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; backdrop-filter: blur(2px); }
.scrim.open { opacity: 1; visibility: visible; }
/* Closed, the drawer is also hidden (after the slide-out): off screen its shadow still bled
   onto the page's right edge, a grey band on every page on phones. */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 110; width: min(460px, 100%);
  background: var(--paper); display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s linear .5s;
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .4);
}
.drawer.open { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font: 400 26px/1 var(--f-display); margin: 0; }
.x { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow-sm); display: grid; place-items: center; }
.x svg { width: 16px; height: 16px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.drawer__foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); background: var(--card); }
.bline { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.bline img { width: 76px; height: 92px; object-fit: cover; border-radius: 12px; }
.bline b { font: 400 19px/1.2 var(--f-display); display: block; }
.bline span { font-size: 13px; color: var(--ink-3); }
.bline button { border: 0; background: none; color: var(--ink-3); font-size: 13px; text-decoration: underline; padding: 4px 0 0; }
.bline__price { font-weight: 600; }
.ship { display: grid; gap: 8px; margin: 18px 0 6px; }
.ship label { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; font-size: 15px; }
.ship label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: var(--card); }
.ship input { accent-color: var(--ink); width: 18px; height: 18px; }
.ship label span { margin-left: auto; font-weight: 600; }
.totals { display: grid; gap: 6px; margin-bottom: 16px; font-size: 15px; color: var(--ink-2); }
.totals div { display: flex; justify-content: space-between; }
.totals .total { font: 400 24px/1.2 var(--f-display); color: var(--ink); padding-top: 6px; }
.empty { text-align: center; padding: 60px 10px; color: var(--ink-2); }
.empty .hand { font-size: 30px; display: block; margin-bottom: 8px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea { height: 50px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--card); padding: 0 14px; }
.field textarea { height: 76px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); border-color: transparent; }
.pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 14px; }
.pay label { display: grid; place-items: center; gap: 4px; padding: 12px 6px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); text-align: center; font-size: 13px; font-weight: 600; cursor: pointer; }
.pay label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: var(--card); }
.pay input { position: absolute; opacity: 0; pointer-events: none; }
.pay b { font: 700 13px/1 var(--f-body); letter-spacing: .02em; }
.done { text-align: center; padding: 30px 6px; }
.done__seal { width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 50%; background: var(--card); display: grid; place-items: center; box-shadow: var(--shadow-sm); animation: pop .7s var(--spring); }
.done__seal img { width: 92px; }
.done h4 { font: 400 30px/1.1 var(--f-display); margin: 0 0 10px; }
.done p { color: var(--ink-2); margin: 0 0 8px; }
.done .done__mail { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.done .done__mail b { color: var(--ink-2); font-weight: 600; }
.done code { font: 600 15px var(--f-body); background: var(--paper-2); padding: 4px 10px; border-radius: 8px; }

.modal {
  position: fixed; z-index: 110; left: 50%; top: 50%; width: min(980px, calc(100% - 32px)); max-height: calc(100% - 48px);
  transform: translate(-50%, -46%) scale(.98); opacity: 0; visibility: hidden; transition: all .45s var(--ease);
  background: var(--paper); border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
}
.modal.open { transform: translate(-50%, -50%) scale(1); opacity: 1; visibility: visible; }
.modal__img { background: var(--paper-3); position: relative; }
.modal__img img { width: 100%; height: 100%; object-fit: cover; min-height: 100%; }
.modal__body { padding: 40px 36px 32px; overflow-y: auto; display: flex; flex-direction: column; }
.modal .x { position: absolute; top: 16px; right: 16px; z-index: 3; }
.modal__col { font: 600 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--olive); display: flex; align-items: center; gap: 8px; }
.modal__col i { width: 9px; height: 9px; border-radius: 50%; background: var(--tone); }
.modal h3 { font: 340 44px/1.02 var(--f-display); font-variation-settings: 'SOFT' 100; margin: 14px 0 10px; letter-spacing: -.02em; }
.modal__price { font: 500 22px/1 var(--f-body); margin-bottom: 18px; }
.modal__note { color: var(--ink-2); margin: 0 0 20px; }
.modal__unique { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 20px; font-size: 14.5px; color: var(--ink-2); }
.modal__unique b { color: var(--ink); }
.modal__unique svg { flex: none; width: 34px; height: 34px; color: var(--olive); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0 0 24px; font-size: 14px; }
.specs dt { color: var(--ink-3); }
.specs dd { margin: 0; font-weight: 500; }
.moodmeter { margin: 0 0 24px; }
.moodmeter__bar { position: relative; height: 6px; border-radius: 99px; background: linear-gradient(90deg, #EDE6DC, #D9C2B0 18%, #6B1F24 30%, #1E1E22 38%, #1D6A6E 52%, #2340B8 66%, #C8402E 80%, #E0367F 90%, #F2B705); }
.moodmeter__bar i { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 2px var(--ink); }
.moodmeter__ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.modal__actions { display: grid; gap: 10px; margin-top: auto; }
.modal__ig { text-align: center; font-size: 14px; color: var(--ink-2); }

.toast {
  /* Sized to its text up to the screen width: a fixed box at left:50% would otherwise
     shrink to half the screen and wrap long messages into a tall pill on phones. */
  width: max-content; max-width: calc(100vw - 32px);
  position: fixed; left: 50%; bottom: 26px; z-index: 150; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 99px;
  background: var(--ink); color: var(--paper); font-size: 15px; box-shadow: var(--shadow);
  transition: transform .5s var(--spring), opacity .3s, visibility .3s; opacity: 0; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast img { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.toast > span { flex: 1 1 auto; min-width: 0; }
.toast button, .toast a { flex: none; white-space: nowrap; }
.toast button { border: 0; background: var(--gold-2); color: var(--ink); border-radius: 99px; min-height: 36px; padding: 0 16px; font-weight: 600; font-size: 14px; }

/* Feitura demo pill */
.demo {
  position: fixed; left: 18px; bottom: 18px; z-index: 95;
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 99px;
  background: rgba(255, 252, 246, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  font: 600 13px/1 var(--f-body);
}
.demo__brand { display: flex; align-items: center; gap: 8px; padding: 0 10px 0 8px; color: var(--ink-2); }
.demo__brand b { color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.demo__brand b::after { content: '.'; color: #3B4BF0; }
.demo a { white-space: nowrap; text-decoration: none; height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 99px; color: var(--ink); }
.demo a:hover { background: var(--paper-2); }
.demo a.primary { background: #3B4BF0; color: #fff; }
.demo a.primary:hover { background: #2A39D8; }
.demo button { width: 30px; height: 30px; border: 0; background: none; border-radius: 50%; color: var(--ink-3); }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.hero .rv { animation: rise .9s var(--ease) var(--d, 0s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insta__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  .nav__links { display: none; }
  .nav__menu { display: grid; }
  .nav__bag { margin-left: auto; }
  .hero .wrap, .story .wrap, .ws .wrap, .where .wrap, .faq .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero__art { min-height: 0; aspect-ratio: 1 / 1.08; max-width: 560px; width: 100%; margin: 0 auto; order: -1; }
  .hero .note { display: none; }
  .facecard { display: none; }
  .arch { left: 0; right: 0; margin: 0 auto; }
  .moodcard__top { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; align-items: center; justify-content: start; margin-bottom: 10px; }
  .moodface { display: grid; grid-row: 1 / span 2; }
  .moodcard__q { align-self: end; }
  .moodcard__val { align-self: start; margin-top: 6px; }
  .moodcard__go small { display: none; }
  .moodpicks { display: flex; }
  .story .rugwrap { order: 2; }
  .ws__art { min-height: 0; aspect-ratio: 1 / .92; }
  .modal { grid-template-columns: 1fr; overflow-y: auto; }
  .modal__img { aspect-ratio: 4 / 4; }
  .modal__body { overflow: visible; }
  .toolbar { border-radius: 22px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav .wrap { gap: 10px; }
  .mark { gap: 8px; min-width: 0; }
  .mark img { width: 34px; height: 34px; }
  .mark__name { font-size: 17px; letter-spacing: .14em; margin-right: -.14em; }
  .nav__bag { height: 40px; padding: 0 12px; gap: 8px; }
  .nav__menu { width: 40px; height: 40px; flex: none; }
  .mark__sub { display: none; }
  .nav__bag .lbl { display: none; }
  .hero { padding-top: 12px; }
  .hero h1 { margin: 16px 0 18px; }
  .arch { width: 78%; }
  .facecard { width: 46%; bottom: 0; }
  .spinbadge { width: 96px; height: 96px; right: 3%; top: 3%; }
  .demo a { padding: 0 11px; font-size: 12.5px; }
  .moodcard { padding: 28px 18px 18px; }
  .moodcard__q { font-size: 21px; }
  .press .wrap { justify-content: flex-start; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .tile__img { border-radius: 16px; }
  .tile__name { font-size: 18px; }
  .tile__meta { flex-direction: column; gap: 2px; }
  .toolbar__chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .toolbar__chips .chip { flex: none; }
  .tile__price { font-size: 15px; }
  .tile__add { opacity: 1; transform: none; height: 38px; width: 38px; padding: 0; justify-content: center; right: 8px; margin-top: calc(125% - 46px); }
  .tile__add .t { display: none; }
  .tile__tag { top: 8px; left: 8px; font-size: 10px; height: 24px; padding: 0 8px; }
  .toolbar { position: static; padding: 14px; border-radius: 20px; }
  .toolbar__count { margin-left: 0; }
  .cols { grid-auto-columns: 78%; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .ws__facts { grid-template-columns: repeat(2, auto); }
  .countdown div { min-width: 0; flex: 1; }
  .wsform { grid-template-columns: 1fr; }
  .insta__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .insta__grid a { border-radius: 10px; }
  .foot__top { grid-template-columns: 1fr; }
  .news form { flex-direction: column; }
  .story__polaroid { width: 130px; left: 0; }
  .demo { left: 50%; transform: translateX(-50%); bottom: 12px; }
  .demo__brand span { display: none; }
  .modal { top: auto; bottom: 0; left: 0; width: 100%; max-height: 92%; border-radius: 26px 26px 0 0; transform: translateY(100%); }
  .modal.open { transform: none; }
  .modal h3 { font-size: 36px; }
  .modal__body { padding: 26px 20px 24px; }
  .place { grid-template-columns: 40px 1fr; }
  .place em { grid-column: 2; justify-self: start; }
}

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

/* ---------- live shop (backend) ---------- */
/* Honeypot: invisible to people and screen readers, filled in by naive bots. */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.news__fine { margin: 10px 0 0 !important; font-size: 12.5px !important; color: var(--ink-3) !important; }
.ws__none { color: rgba(246, 240, 231, .78); margin: 22px 0 0; }
.ws__none a { color: var(--gold-2); }
.tile.is-reserved .tile__add { display: none; }
.tile.is-reserved .tile__img img { filter: saturate(.6) brightness(1.04); }
.tile__tag--held { background: var(--paper-2); color: var(--ink-2); }
.form-error { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #FCE4EF; color: #8A1E4C; font-size: 14px; }
.done__iban { margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-align: left; font-size: 14.5px; }
.done__iban b { display: block; font-size: 16px; letter-spacing: .02em; }
.spinner { width: 34px; height: 34px; margin: 6px auto 14px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--mood); animation: spin 1s linear infinite; }

/* Shared form and overlay hardening. */
[hidden] { display: none !important; }
.field, .field > *, .frow > *, .sheet__body > * { min-width: 0; }
.field input:not([type=checkbox]):not([type=radio]), .field textarea, .field select { width: 100%; }
.drawer__head, .drawer__foot, .sheet__head, .sheet__foot { flex-shrink: 0; }
.drawer__body, .sheet__body { min-height: 0; overscroll-behavior: contain; }
.drawer__foot, .sheet__foot { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.pay label { position: relative; }
.pay input { inset: 0; width: 100%; height: 100%; margin: 0; pointer-events: auto; cursor: pointer; }
.pay label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.form-error { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  input, select, textarea { font-size: 16px; }
  .sheet--narrow .frow { grid-template-columns: minmax(0, 1fr); }
  .drawer__head, .sheet__head { padding: 14px 18px; }
  .drawer__body, .sheet__body { padding: 16px 18px; }
  .drawer__foot { padding: 12px 18px max(12px, env(safe-area-inset-bottom)); }
}
/* Closing animations must not swallow the next tap. */
.scrim:not(.open), .drawer:not(.open), .modal:not(.open), .mnav:not(.open), .sheet:not(.open), .fair:not(.open) { pointer-events: none; }
.field .range input { height: 34px; border: 0; padding: 0; background: transparent; }

/* ---------- sharing: every piece, the open piece, the workshop (site.js "sharing") ---------- */
.tile__share {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 252, 246, .92); color: var(--ink); box-shadow: var(--shadow-sm);
  transition: background-color .2s, transform .3s var(--spring);
}
.tile__share:hover { background: var(--card); transform: scale(1.06); }
.tile__share:focus-visible, .modal__share:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.modal .modal__share { right: 66px; }
.modal .modal__share svg { width: 18px; height: 18px; }
.modal__actions { position: relative; }
.modal__sharebtn { gap: 10px; }
.ws__share { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 22px; }
.ws__share .btn { --fg: var(--paper); gap: 8px; box-shadow: inset 0 0 0 1.5px rgba(246, 240, 231, .45); }
.ws__share .btn:hover { --bg: rgba(246, 240, 231, .1); }
.ws__share span { font-size: 13.5px; color: rgba(246, 240, 231, .8); }
.sharemenu {
  position: absolute; z-index: 30; width: 250px; max-width: calc(100vw - 32px); padding: 8px; display: grid; gap: 2px;
  background: var(--card); color: var(--ink); text-align: left; border-radius: 18px;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--line);
}
.sharemenu a, .sharemenu button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 12px;
  background: none; color: var(--ink); text-decoration: none; font: 500 14.5px/1.2 var(--f-body); cursor: pointer;
}
.sharemenu a:hover, .sharemenu button:hover, .sharemenu a:focus-visible, .sharemenu button:focus-visible { background: var(--paper-2); outline: none; }
.sharemenu i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 13px/1 var(--f-body); font-style: normal; }
@media (max-width: 640px) {
  /* Same corners as the tag and the bag button on a phone. */
  .tile__share { top: 8px; right: 8px; width: 38px; height: 38px; }
}

/* Ceramic plaster pieces can be bought more than once: − n + in the bag. */
.qty { display: inline-flex; align-items: center; gap: 2px; margin: 6px 10px 0 0; border: 1px solid var(--line-2); border-radius: 999px; vertical-align: middle; }
.qty button { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; text-decoration: none; color: var(--ink); font: 600 17px/1 var(--f-body); cursor: pointer; }
.qty button:disabled { color: var(--ink-3); opacity: .45; cursor: default; }
.qty b { min-width: 18px; text-align: center; font: 600 14px/1 var(--f-body); }
