/* ==================================================================
   Adela Privé — couture handknits
   Palette taken from the business card: wine panel + ivory stock.
   ================================================================== */

:root {
  --wine: #680B1D;        /* card panel, primary brand colour */
  --wine-deep: #4C0815;   /* pressed / footer depth */
  --thread: #9B2338;      /* the hero yarn line, hover accents */
  --ivory: #F3EDE3;       /* page */
  --linen: #E8DFD1;       /* photo wells, quiet surfaces */
  --ink: #2B0A11;         /* body text — a wine-black, not grey */
  --muted: #7B5B60;       /* secondary text */
  --rule: rgba(104, 11, 29, 0.18);

  --serif: "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Tenor Sans", "Gill Sans", "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.05; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--thread); outline-offset: 3px; }
.on-wine :focus-visible { outline-color: var(--ivory); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--wine); color: var(--ivory); padding: 10px 16px;
  font-family: var(--sans); font-size: 13px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Type helpers ---------------------------------------- */
.ui { font-family: var(--sans); font-size: 13px; letter-spacing: .08em; line-height: 1.4; }
.tagline {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  letter-spacing: .32em; font-size: clamp(15px, 1.4vw, 19px);
  color: var(--wine);
}
.lead { font-size: clamp(21px, 1.9vw, 25px); line-height: 1.5; max-width: 34ch; }
.muted { color: var(--muted); }

/* ---------- Buttons & links ------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 30px;
  font-family: var(--sans); font-size: 13px; letter-spacing: .12em;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--wine); background: var(--wine); color: var(--ivory);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--wine-deep); border-color: var(--wine-deep); }
.btn--ghost { background: transparent; color: var(--wine); }
.btn--ghost:hover { background: var(--wine); color: var(--ivory); border-color: var(--wine); }
.btn--ivory { background: var(--ivory); color: var(--wine); border-color: var(--ivory); }
.btn--ivory:hover { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.btn svg { width: 18px; height: 18px; flex: none; }

.link {
  font-family: var(--sans); font-size: 13px; letter-spacing: .1em;
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 7px; text-decoration-color: var(--rule);
  transition: text-decoration-color .25s var(--ease);
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- Announcement + header ------------------------------- */
.announce {
  background: var(--wine); color: var(--ivory);
  text-align: center; padding: 9px var(--gutter);
  font-family: var(--sans); font-size: 12px; letter-spacing: .08em;
}
.announce a { color: inherit; text-underline-offset: 4px; }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: var(--ivory);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--header-h);
}
.nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav a, .lang button {
  font-family: var(--sans); font-size: 13px; letter-spacing: .1em;
  text-decoration: none; padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--wine); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__mono { width: 46px; }
.brand__word { width: 150px; }
.header-end { display: flex; justify-content: flex-end; align-items: center; gap: 28px; }
.lang { display: flex; align-items: center; gap: 4px; }
.lang button { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 6px 4px; }
.lang button[aria-pressed="true"] { color: var(--wine); border-bottom-color: var(--wine); }
.lang span { color: var(--rule); font-family: var(--sans); font-size: 12px; }
.header-enquire { min-height: 42px; padding: 0 22px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px 0;
  font-family: var(--sans); font-size: 13px; letter-spacing: .1em; }

.drawer {
  position: fixed; inset: 0; z-index: 60; background: var(--wine); color: var(--ivory);
  display: flex; flex-direction: column; padding: 24px var(--gutter) 40px;
  transform: translateY(-100%); transition: transform .5s var(--ease); visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; }
.drawer__top button { background: none; border: 0; color: inherit; cursor: pointer;
  font-family: var(--sans); font-size: 13px; letter-spacing: .1em; padding: 8px 0; }
.drawer nav { margin-top: 12vh; display: flex; flex-direction: column; gap: 10px; }
.drawer nav a { font-size: 44px; line-height: 1.15; text-decoration: none; }
.drawer__foot { margin-top: auto; display: grid; gap: 8px; }
.drawer__foot a { font-family: var(--sans); font-size: 14px; letter-spacing: .06em; text-decoration: none; }
.drawer .lang button { color: rgba(243,237,227,.6); }
.drawer .lang button[aria-pressed="true"] { color: var(--ivory); border-bottom-color: var(--ivory); }

/* ---------- Photo well / placeholder ---------------------------- */
.photo {
  position: relative; overflow: hidden; background: var(--linen);
  aspect-ratio: 4 / 5;
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease); }
.photo img + img { position: absolute; inset: 0; opacity: 0; }
.card:hover .photo img + img { opacity: 1; }
.placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px;
  /* stockinette stitch: rows of small V's */
  background-color: var(--linen);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='18' viewBox='0 0 22 18'%3E%3Cpath d='M2 2 C5 8 8 12 11 16 M20 2 C17 8 14 12 11 16' fill='none' stroke='%23680B1D' stroke-opacity='.07' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 22px 18px;
}
.placeholder img { width: 32%; max-width: 140px; opacity: .22; }
.placeholder span { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; color: var(--muted); }

/* ---------- Hero ------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--wine) 0 41%, var(--ivory) 41% 100%);
  min-height: calc(100svh - var(--header-h) - 36px);
  display: grid; grid-template-columns: 41fr 59fr; align-items: center;
}
.hero__frame-wrap {
  position: relative; z-index: 2;
  display: flex; justify-content: flex-end;
  padding: 56px 0;
  margin-right: calc(-1 * clamp(80px, 12vw, 200px));
}
.hero__frame {
  width: min(100%, 400px);
  box-shadow: 0 40px 70px -30px rgba(43, 10, 17, .55);
}
.hero__frame .photo { aspect-ratio: 826 / 1250; }   /* matches assets/img/hero.webp, so nothing is cropped */
.hero__copy {
  position: relative; z-index: 2;
  padding: 56px var(--gutter) 56px calc(clamp(80px, 12vw, 200px) + clamp(40px, 5vw, 88px));
}
.hero__copy h1 {
  font-size: clamp(46px, 5.4vw, 88px);
  line-height: 1; margin: 22px 0 28px; max-width: 12.5ch;
}
.hero__copy p { max-width: 36ch; font-size: clamp(19px, 1.5vw, 22px); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 36px; }
.hero__thread {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
}
.hero__thread path { fill: none; stroke-linecap: round; }
.hero__thread .t1 { stroke: var(--thread); stroke-width: 1.5; }
.hero__thread .t2 { stroke: var(--ivory); stroke-width: 1.5; }
.hero__mono {
  position: absolute; z-index: 0; left: 3%; bottom: 6%; width: 18%; max-width: 230px; opacity: .08;
}

/* the single orchestrated moment: the yarn draws itself in */
@media (prefers-reduced-motion: no-preference) {
  .hero__thread path { stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: draw 2.8s var(--ease) .35s forwards; }
  .hero__thread .t2 { animation-delay: .35s; }
  .hero__frame { animation: rise 1.1s var(--ease) both; }
  .hero__copy > * { animation: fade 1s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .12s; }
  .hero__copy > :nth-child(3) { animation-delay: .24s; }
  .hero__copy > :nth-child(4) { animation-delay: .36s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Sections -------------------------------------------- */
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px;
  flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head h2 { font-size: clamp(40px, 5vw, 72px); }
.section-head p { max-width: 40ch; margin: 0; color: var(--muted); }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 32px); }
.grid--stagger { grid-template-columns: repeat(4, 1fr); }
.grid--stagger .card:nth-child(even) { margin-top: clamp(40px, 6vw, 96px); }
.card { text-decoration: none; display: block; }
.card__meta { padding-top: 18px; display: grid; gap: 2px; }
.card__name { font-size: 24px; line-height: 1.2; }
.card__cat { font-style: italic; color: var(--muted); font-size: 17px; }
.card__price { font-family: var(--serif); font-size: 26px; line-height: 1.1; letter-spacing: .02em; color: var(--wine); margin-top: 6px; }
.card .photo::after {
  content: ""; position: absolute; inset: 0; border: 1px solid transparent; transition: border-color .3s var(--ease);
}
.card:hover .photo::after, .card:focus-visible .photo::after { border-color: var(--wine); }

/* statement band */
.statement {
  position: relative; overflow: hidden; background: var(--wine); color: var(--ivory);
  padding: clamp(96px, 13vw, 180px) 0; text-align: center;
}
.statement blockquote {
  margin: 0 auto; max-width: 22ch; position: relative; z-index: 1;
  font-size: clamp(32px, 4.4vw, 62px); line-height: 1.15; font-style: italic; font-weight: 400;
}
.statement__mono { position: absolute; left: 50%; top: 50%; width: min(70vw, 720px);
  transform: translate(-50%, -50%); opacity: .07; }

/* steps (a real sequence, so numerals are earned) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 64px); counter-reset: step; }
.step { border-top: 1px solid var(--rule); padding-top: 28px; }
.step__num { font-size: 56px; line-height: 1; color: var(--wine); font-style: italic; display: block; margin-bottom: 22px; }
.step h3 { font-size: 30px; margin-bottom: 12px; }
.step p { color: var(--muted); max-width: 32ch; }

/* split block (atelier teaser etc.) */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.split .photo { aspect-ratio: 3 / 4; }
.split h2 { font-size: clamp(40px, 5vw, 72px); margin-bottom: 28px; }
.split p { max-width: 38ch; }
.split .link { display: inline-block; margin-top: 18px; }

/* page header */
.page-head { padding: clamp(64px, 9vw, 128px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 { font-size: clamp(52px, 8vw, 120px); line-height: .95; }
.page-head .lead { margin-top: 28px; color: var(--muted); }

/* filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 14px 0; margin-bottom: 48px; }
.filters > button {
  background: none; border: 0; cursor: pointer; padding: 6px 0;
  font-family: var(--sans); font-size: 13px; letter-spacing: .1em; color: var(--muted);
  border-bottom: 1px solid transparent;
}
.filters > button[aria-pressed="true"] { color: var(--wine); border-bottom-color: var(--wine); }
.filters__tools { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.filters .count { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; color: var(--muted); }
/* filter + sort menus */
.dd { position: relative; }
.dd__btn {
  display: inline-flex; align-items: baseline; gap: 10px; cursor: pointer;
  background: none; border: 0; border-bottom: 1px solid transparent; padding: 6px 0; color: var(--ink);
  transition: border-color .25s var(--ease);
}
.dd__btn:hover, .dd.is-open .dd__btn, .dd__btn:focus-visible { border-bottom-color: var(--wine); outline: none; }
.dd__label { font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dd__value { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--wine); white-space: nowrap; }
.dd__chev { width: 11px; height: 8px; color: var(--wine); align-self: center; transition: transform .3s var(--ease); }
.dd.is-open .dd__chev { transform: rotate(180deg); }
.dd__list {
  position: absolute; z-index: 30; top: calc(100% + 10px); right: 0; min-width: 100%; width: max-content; max-width: 86vw;
  margin: 0; padding: 10px 0; list-style: none; outline: none;
  background: var(--ivory); border: 1px solid var(--rule); border-top: 2px solid var(--wine);
  box-shadow: 0 18px 40px -18px rgba(43, 10, 17, .35);
  animation: dd-in .22s var(--ease);
}
@keyframes dd-in { from { opacity: 0; transform: translateY(-6px); } }
.dd__list li {
  position: relative; cursor: pointer; padding: 9px 26px 9px 34px;
  font-family: var(--serif); font-size: 18px; color: var(--ink); white-space: nowrap;
}
.dd__list li.is-active { background: var(--linen); color: var(--wine); }
.dd__list li[aria-selected="true"] { color: var(--wine); font-style: italic; }
.dd__list li[aria-selected="true"]::before {
  content: ""; position: absolute; left: 15px; top: 50%; width: 6px; height: 6px;
  background: var(--wine); transform: translateY(-50%) rotate(45deg);
}
.empty { grid-column: 1 / -1; color: var(--muted); font-style: italic; padding: 40px 0; }

/* ---------- Product page ---------------------------------------- */
.product { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); padding: 40px 0 clamp(80px, 10vw, 140px); align-items: start; }
.crumb { padding-top: 28px; }
.gallery { display: grid; grid-template-columns: 84px 1fr; gap: 16px; }
.gallery__thumbs { display: grid; gap: 12px; align-content: start; }
.gallery__thumbs button { padding: 0; border: 1px solid transparent; background: none; cursor: pointer; }
.gallery__thumbs button[aria-pressed="true"] { border-color: var(--wine); }
.gallery__thumbs .photo { aspect-ratio: 4 / 5; }
.gallery__thumbs .placeholder img { display: none; }
.gallery__main .photo { aspect-ratio: 4 / 5; }
.gallery--single { grid-template-columns: 1fr; }
.info { position: sticky; top: calc(var(--header-h) + 32px); }
.info .ref { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.info h1 { font-size: clamp(44px, 4.6vw, 68px); margin: 14px 0 12px; }
.info .price { font-size: clamp(42px, 4vw, 52px); line-height: 1.1; color: var(--wine); margin-bottom: 28px; }
.info .desc { font-size: 21px; max-width: 38ch; }
.info .handmade { font-style: italic; color: var(--muted); font-size: 18px; }
.details { margin: 32px 0; border-top: 1px solid var(--rule); }
.details div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.details dt { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; color: var(--muted); padding-top: 4px; }
.details dd { margin: 0; }
.enquire { background: var(--linen); padding: clamp(24px, 3vw, 36px); margin-top: 8px; }
.enquire h2 { font-size: 30px; margin-bottom: 10px; }
.enquire p { color: var(--muted); font-size: 18px; }
.enquire__actions { display: grid; gap: 10px; margin-top: 20px; }
.enquire__actions .btn { width: 100%; }
.enquire__msg {
  margin-top: 16px; font-size: 17px; font-style: italic; background: var(--ivory);
  padding: 14px 16px; border-left: 2px solid var(--wine);
}
.toast { font-family: var(--sans); font-size: 12px; letter-spacing: .06em; color: var(--wine); min-height: 1.4em; margin-top: 10px; }
.notfound { padding: 120px 0; text-align: center; }
.notfound h1 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 24px; }

/* ---------- Contact page ---------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 32px); }
.contact-card {
  display: block; text-decoration: none; padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--rule); transition: background-color .3s var(--ease), color .3s var(--ease);
}
.contact-card:hover { background: var(--wine); color: var(--ivory); }
.contact-card:hover .muted { color: rgba(243,237,227,.75); }
.contact-card h2 { font-size: 22px; font-family: var(--sans); letter-spacing: .1em; margin-bottom: 28px; }
.contact-card .big { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; display: block; margin-bottom: 18px; word-break: break-word; }
.compose { margin-top: clamp(64px, 8vw, 120px); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.compose h2 { font-size: clamp(36px, 4vw, 56px); margin-bottom: 18px; }
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field label { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 20px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--rule); padding: 10px 0; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--wine) 50%), linear-gradient(135deg, var(--wine) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--wine); }
/* piece picker: a scrollable strip of small photo cards */
.picker { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.picker legend { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; color: var(--muted); padding: 0; margin-bottom: 12px; }
.picker__row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 104px; gap: 12px;
  overflow-x: auto; scroll-snap-type: x proximity; padding: 6px 6px 12px; margin: 0 -6px;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
  scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
}
.picker .pick { scroll-snap-align: start; cursor: pointer; display: grid; gap: 8px; align-content: start;
  font-family: var(--serif); letter-spacing: 0; font-size: 15px; color: var(--muted); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick__img { display: block; aspect-ratio: 4 / 5; background: var(--linen); overflow: hidden;
  outline: 1px solid transparent; outline-offset: 3px; transition: outline-color .2s var(--ease); }
.pick__img img { width: 100%; height: 100%; object-fit: cover; }
.pick__img img.mono { object-fit: contain; padding: 22%; opacity: .55; }
.pick__name { line-height: 1.25; }
.pick:hover .pick__img { outline-color: var(--rule); }
.pick input:checked + .pick__img { outline: 2px solid var(--wine); }
.pick input:checked ~ .pick__name { color: var(--wine); }
.pick input:focus-visible + .pick__img { outline: 2px solid var(--thread); }
.compose > * { min-width: 0; }

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

/* ---------- Atelier page ---------------------------------------- */
.atelier-story { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.atelier-story .photo { aspect-ratio: 4 / 5; }
.about-hero { padding: clamp(56px, 8vw, 120px) 0 clamp(80px, 10vw, 140px); }
.atelier-story h1 { font-size: clamp(64px, 7vw, 108px); line-height: .95; margin: 36px 0 40px; }
.atelier-story p { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.6; }
.atelier-story p { max-width: 46ch; }
.atelier-story .lead { max-width: 40ch; }
/* thank-you note at the end of the atelier page */
.thanks { padding: clamp(80px, 10vw, 140px) 0 clamp(90px, 11vw, 150px); text-align: center; }
.thanks__inner { max-width: 760px; }
.thanks__mono { width: 64px; margin: 0 auto 28px; opacity: .9; }
.thanks h2 { font-size: clamp(44px, 6vw, 84px); margin: 0 0 32px; }
.thanks__text { font-size: clamp(21px, 2.1vw, 27px); line-height: 1.55; font-style: italic; color: var(--ink); margin: 0 auto; max-width: 34ch; }
.thanks__sign { font-family: "Great Vibes", "Marck Script", cursive; font-size: 34px; color: var(--wine); margin: 28px 0 40px; }

/* ---------- Ribbons (from the business card) --------------------
   Each ribbon enters from the side of the screen and tapers to a point,
   so it is only ever cut by the screen edge. */
main { position: relative; overflow-x: clip; }
.has-ribbon { position: relative; }
.has-ribbon > .wrap, main > .wrap { position: relative; z-index: 1; }
.ribbon { position: absolute; z-index: 0; pointer-events: none; height: auto; max-width: none;
  width: clamp(260px, 31vw, 460px); }
.ribbon--right { right: 0; }
.ribbon--left { left: 0; transform: scaleX(-1); }
.ribbon--pagehead { top: 12px; width: clamp(220px, 26vw, 400px); }

/* ---------- Order buttons on a product ------------------------- */
.order { display: grid; gap: 10px; margin-top: 8px; }
.order .enquire__msg { margin: 0 0 6px; background: var(--linen); }
.order .btn { width: 100%; }

/* ---------- Status labels -------------------------------------- */
.card__media { position: relative; }
.pill { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 6px 10px 5px;
  font-family: var(--sans); font-size: 11px; letter-spacing: .1em; line-height: 1;
  background: var(--ivory); color: var(--wine); border: 1px solid var(--rule); }
.pill--sold { background: var(--wine); color: var(--ivory); border-color: var(--wine); }
.card--sold .photo img { filter: saturate(.5) brightness(1.04); }
.card--sold .card__price { font-size: 18px; font-style: italic; color: var(--muted); }
.status--available { color: var(--ink); }
.status--made-to-order { color: var(--wine); }
.status--sold { color: var(--wine); font-style: italic; }

/* ---------- Product gallery: swipe strip + full-screen viewer ----- */
.gallery__main { position: relative; min-width: 0; }
.gallery__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--linen); }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { scroll-snap-align: start; padding: 0; border: 0; background: none; cursor: zoom-in;
  aspect-ratio: 4 / 5; display: block; width: 100%; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__track > .photo { aspect-ratio: 4 / 5; }
.gallery__dots { display: none; justify-content: center; gap: 8px; padding-top: 14px; }
.gallery__dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--rule); transition: background-color .2s var(--ease); }
.gallery__dots span.on { background: var(--wine); }

.lightbox { position: fixed; inset: 0; z-index: 80; background: var(--ivory); }
.lightbox[hidden] { display: none; }
.lightbox__track { position: absolute; inset: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__slide { scroll-snap-align: start; display: grid; place-items: center;
  padding: calc(64px + env(safe-area-inset-top, 0px)) 16px calc(56px + env(safe-area-inset-bottom, 0px)); min-width: 0; }
.lightbox__slide img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 60px -30px rgba(43, 10, 17, .45); }
.lightbox__close { position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); right: var(--gutter);
  background: none; border: 0; cursor: pointer; padding: 8px 0; font-family: var(--sans); font-size: 13px; letter-spacing: .1em; color: var(--ink); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--ivory); border: 1px solid var(--rule); color: var(--wine); cursor: pointer; transition: background-color .2s var(--ease); }
.lightbox__nav:hover { background: var(--linen); }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }
.lightbox__count { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center;
  font-family: var(--sans); font-size: 12px; letter-spacing: .12em; color: var(--muted); }

/* ---------- Script + serif titles (from her "About ME" flyer) ---- */
.duo { letter-spacing: 0; }
.page-head h1.duo { font-size: clamp(46px, 6.4vw, 100px); }
.duo__serif { white-space: nowrap; }
.duo__script { font-family: "Great Vibes", "Marck Script", cursive; font-weight: 400;
  font-size: 1.32em; line-height: .8; color: var(--ink); }
.duo__serif { font-family: var(--serif); font-weight: 400; text-transform: uppercase; color: var(--wine);
  font-size: .74em; letter-spacing: .05em; margin-left: -.06em; position: relative; top: .1em; }

/* ---------- Double portrait (from her Instagram story) ------------ */
.about-visual { position: relative; aspect-ratio: 4 / 5; max-width: 100%; }
.about-visual__bg { position: absolute; top: 0; right: 0; width: 74%; height: 100%; overflow: hidden; }
.about-visual__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) blur(5px);
  transform: scale(1.06); opacity: .9; }
.about-visual__fg { position: absolute; left: 0; top: 24%; width: 54%; margin: 0; padding: 12px;
  background: #FBF8F3; box-shadow: 0 28px 50px -26px rgba(43, 10, 17, .5); }
.about-visual__fg img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-visual--flip .about-visual__bg { right: auto; left: 0; }
.about-visual--flip .about-visual__fg { left: auto; right: 0; }

/* ---------- Footer ---------------------------------------------- */
.site-footer { background: var(--wine); color: var(--ivory); padding: clamp(64px, 8vw, 104px) 0 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-brand img.mono { width: 92px; margin-bottom: 22px; }
.footer-brand img.word { width: 220px; margin-bottom: 14px; }
.footer-brand .tagline { color: var(--ivory); opacity: .8; }
.site-footer h2 { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; opacity: .65; margin-bottom: 18px; font-weight: 400; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; font-size: 20px; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.footer-bottom {
  margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 1px solid rgba(243,237,227,.18);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: var(--sans); font-size: 12px; letter-spacing: .08em; opacity: .75;
}
.site-footer .lang button { color: rgba(243,237,227,.6); }
.site-footer .lang button[aria-pressed="true"] { color: var(--ivory); border-bottom-color: var(--ivory); }

/* ---------- Responsive ------------------------------------------ */
@media (max-width: 1080px) {
  .grid--stagger { grid-template-columns: repeat(2, 1fr); }
  .grid--stagger .card:nth-child(even) { margin-top: 56px; }
  .grid--stagger .card:nth-child(3) { margin-top: -56px; }
  .grid--stagger .card:nth-child(4) { margin-top: 0; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav, .header-enquire { display: none; }
  .menu-toggle { display: block; justify-self: start; }
  .hero__thread { display: none; }
  .brand__word { width: 120px; }
  .brand__mono { width: 38px; }

  .hero {
    grid-template-columns: 1fr; min-height: 0;
    background: linear-gradient(180deg, var(--wine) 0 340px, var(--ivory) 340px 100%);
  }
  .hero__frame-wrap { margin: 0; justify-content: center; padding: 48px var(--gutter) 0; }
  .hero__frame { width: min(78%, 420px); }
  .hero__copy { padding: 44px var(--gutter) 72px; }
  .hero__copy h1 { max-width: 12ch; }
  .hero__mono { display: none; }
  .ribbon { width: 46vw; }
  .ribbon--pagehead { display: none; }

  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .split, .atelier-story, .compose, .product { grid-template-columns: 1fr; }
  .info { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .announce { font-size: 11px; }
  .brand__word { display: none; }
  .grid, .grid--stagger { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .grid--stagger .card:nth-child(n) { margin-top: 0; }
  .card__name { font-size: 20px; }
  .card__cat { font-size: 15px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__thumbs { display: none; }
  .gallery__dots { display: flex; }
  .lightbox__nav { display: none; }
  .details div { grid-template-columns: 110px 1fr; }
  .filters__tools { margin-left: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px;
    border-top: 1px solid var(--rule); padding-top: 10px; }
  .dd__btn { width: 100%; flex-wrap: wrap; row-gap: 0; position: relative; padding-right: 18px; text-align: left; }
  .dd__label { flex-basis: 100%; }
  .dd__value { font-size: 17px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .dd__chev { position: absolute; right: 0; bottom: 12px; }
  #f-material .dd__list { left: 0; right: auto; }
  .dd__list li { white-space: normal; }
  .filters .count { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
