/* ==========================================================================
   LACYFIT — quiet luxury / feminine activewear
   Restraint is the brief: bone and blush, one accent, sharp edges, air.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  /* A near-neutral ground. Pink is an accent, never the wallpaper. */
  --bone:      #F7F0E9;
  --paper:     #FFFFFF;
  --ecru:      #F8EFEE;
  --oat:       #EDE6E0;
  --blush:     #F8EDEC;
  --clay:      #B49490;
  --ink:       #1E1A19;
  --muted:     #675A55;

  /* Pink accent. Deep enough to clear 4.5:1 on both the bone ground (4.8:1)
     and the blush band (4.4:1) — the labels are 10px caps, so a prettier,
     lighter rose was genuinely hard to read. --rose-soft is decorative only. */
  --rose:      #7B4A54;
  --rose-soft: #C98F96;
  --rose-line: #E2CBCB;

  --line:      rgba(90, 50, 56, 0.22);
  --line-soft: rgba(90, 50, 56, 0.14);

  --display: "Cormorant Garamond", Didot, "Times New Roman", serif;
  --sans:    "Jost", "Helvetica Neue", system-ui, sans-serif;

  --gutter: clamp(1.5rem, 5vw, 5rem);
  --maxw: 1440px;

  /* Tracking scale — the whole UI voice lives here */
  --track: 0.22em;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  /* Same plaster as the waitlist page: warm beige, tileable grain, soft
     vignette. Plates and cards stay white so the garments sit on top of it. */
  /* White page; the beige moved onto the stands under the garments. */
  background-color: #FFFFFF;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
/* A `display` rule in our own CSS outranks the UA's [hidden] rule, so JS
   toggling `hidden` would otherwise do nothing (e.g. .gallery__thumbs). */
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* Grid children default to min-width:auto — the inline product SVGs carry a
   400px intrinsic width and would blow tracks past the viewport on mobile. */
.hero__intro > *, .split > *, .pdp > *, .gallery > *,
.grid-products > *, .line-item > * { min-width: 0; }

/* --- 3. Type ------------------------------------------------------------- */
/* The serif, back where it was. The tracked-caps sans was worse. What went
   was the italic flourish, not the typeface: .italic is kept so existing
   markup stays valid but no longer slants anything. */
.display { font-family: var(--display); font-weight: 300; line-height: 1.04; letter-spacing: -0.01em; }
.h1 { font-size: clamp(2.75rem, 6.5vw, 5.5rem); }
.h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); }
.italic { font-style: normal; }

.label {
  font-size: 0.625rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--muted);
}
/* Small caps carry the pink throughout. */
.label, .footer h4 { color: var(--rose); }
.lede { font-size: 0.9375rem; line-height: 1.85; color: var(--muted); max-width: 44ch; }
.price { font-variant-numeric: tabular-nums; }

/* --- 4. Layout ----------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
/* 11vw top AND bottom stacked ~320px of dead air between every section at
   desktop width, which reads as padding nobody chose rather than as space. */
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* --- 5. Links + buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.15em 3em;
  background: var(--rose);
  color: var(--bone);
  font-size: 0.625rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.btn:hover { background: var(--ink); }
.btn--ghost { background: none; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

/* The underline that grows — used everywhere a link needs weight */
.ulink {
  display: inline-block;
  font-size: 0.625rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  padding-bottom: 5px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.ulink:hover { background-size: 0% 1px; background-position: 100% 100%; color: var(--rose); }

/* --- 6. Header ----------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 253, 251, 0.94);
  box-shadow: 0 1px 0 var(--line-soft), 0 8px 24px rgba(30, 26, 25, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 64px;
}
.nav { display: flex; gap: 2.5rem; }
.nav a {
  font-size: 0.6875rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.35s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--rose); }

.wordmark { justify-self: center; line-height: 0; }
.wordmark img { height: clamp(18px, 1.7vw, 22px); width: auto; }
.wordmark--footer img { height: 22px; }

.header__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2.5rem;
  font-size: 0.6875rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  font-weight: 400;
}
.header__actions button { color: var(--ink); transition: color 0.35s var(--ease); }
.header__actions button:hover { color: var(--rose); }
.burger { display: none; }

/* --- 7. Hero -------------------------------------------------------------
   The piece worn, full bleed, with the copy set over a light ink wash on the
   left. A still rather than the reel: it loads in one request, never stutters
   on a slow connection, and the crop is fixed so the copy always lands on
   grass rather than on the garment. */
.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  /* Exactly the rest of the first screen under the 64px header. */
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--ecru);
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Wide still, subject on the right. Biased right so the neckline stays in
     frame on narrower desktops, and up so the shoulder is never cropped. */
  object-position: 50% 56%;
  z-index: -2;
}

/* Light, not dark: the palette is bone and blush, so legibility comes from
   lifting the left side rather than dimming the footage. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* A flat wash, not a gradient. The old left-to-right fade hazed the
     footage and read as a blur; an even overlay lifts the whole frame just
     enough for dark type to sit on it while the image stays sharp. */
  /* Flat black wash. Neutral, so the grass and the pink read true, dense
     enough that white type clears 4.5:1 on the brightest patch of lawn. */
  background: rgba(0, 0, 0, 0.38);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) 1fr;
  align-items: center;
  width: 100%;
  max-width: var(--maxw);
}

.hero__content { position: relative; padding-block: clamp(3rem, 7vw, 5rem); }

/* The hero title is the house serif in white, no shadow. Legibility comes
   from the flat ink wash on the footage below, not from effects on the type;
   a script with a drop shadow reads as decoration, this reads as a label. */
/* Version mark: smaller, tracked, sans, so it reads as a label on the name
   rather than part of it. */
.h1__v {
  display: inline-block;
  vertical-align: 0.55em;
  margin-left: 0.15em;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.22em;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero__content h1 {
  margin-block: 0 0.9rem;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(3rem, 6.4vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}
/* Over footage rather than a flat ground, so the muted greys used elsewhere
   fall to about 2.5:1 on sunlit grass. Ink clears 4.5:1 against the overlay
   at every frame of the loop. */
.hero__content .lede {
  max-width: 28ch;
  color: #FFFFFF;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.45;
}
.hero__content .btn { margin-top: 1.2rem; }

/* --- 7b. Facts row -------------------------------------------------------- */
/* Four facts, ruled, under the piece they describe. Static: moving strips
   are measured as ignored, and nothing here needs to move. */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-block: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}
.facts li {
  font-size: 0.625rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--rose);
}
@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, 1fr); gap: 1rem 0.5rem; text-align: left; }
}

/* --- 8. Product cards ---------------------------------------------------- */
/* Card width is derived from the viewport height, so a 4:5 card plus its
   caption fits under the page head on one screen. Capped at 340px so wide
   screens do not turn it into a wall of two giant plates. */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, min(340px, calc((100svh - 420px) * 4 / 5)));
  gap: 2rem 1.5rem;
}



.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  /* The shots are transparent cut-outs, so the garment sits on the plaster
     itself. A soft contact shadow keeps it from floating. */
  background: transparent;
  /* Stays hidden: the quick-add panel is parked below the frame and slides
     up on hover. Visible overflow put it on screen permanently. */
  overflow: hidden;
}
.card__link { display: block; width: 100%; height: 100%; }

/* Stacked shots — cross-fade rather than swapping src */
.card__shots { display: block; position: relative; width: 100%; height: 100%; }
.card__shots img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s var(--ease), transform 1.1s var(--ease);
}
.card__shots img.is-active { opacity: 1; }
.card:hover .card__shots img.is-active { transform: scale(1.035); }

/* Hover arrows */
/* Frosted glass, shared by the gallery arrows, the shot counter and the
   quick-add panel: a thin white film that blurs what is behind it, a hairline
   highlight on the edge, and a soft shadow so it lifts off the plaster.
   Browsers without backdrop-filter get a denser film instead of a bare one. */
.card__arrow, .card__count, .card__quick {
  background: rgba(255, 255, 255, 0.34);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
          backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 20px rgba(60, 40, 30, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card__arrow, .card__count, .card__quick { background: rgba(255, 253, 251, 0.9); }
}

.card__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.3s var(--ease), background 0.3s var(--ease);
}
.card__arrow--prev { left: 12px; }
.card__arrow--next { right: 12px; }
.card__arrow:hover { background: rgba(255, 255, 255, 0.6); }

.card__count {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 0.3em 0.7em;
  border-radius: var(--pill, 999px);
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

@media (hover: hover) {
  .card:hover .card__arrow,
  .card:hover .card__count,
  .card__arrow:focus-visible { opacity: 1; }
}
@media (hover: none) { .card__arrow, .card__count { display: none; } }

/* Quick add — slides up over the image on hover */
.card__quick {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 0.75rem 1rem;
  border-width: 1px 0 0;
  text-align: center;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
  /* Above the shot, which now sits above the stand. */
  z-index: 3;
}
.quick__label { display: block; margin-bottom: 0.7rem; color: var(--ink); }
.quick__sizes { display: flex; gap: 0.35rem; justify-content: center; flex-wrap: wrap; }
.quick__size {
  min-width: 38px;
  padding: 0.55em 0.35em;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.4);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.quick__size:hover { background: var(--rose); border-color: var(--rose); color: var(--bone); }

/* Only on devices that can actually hover — on touch it would sit there
   permanently covering the product. */
@media (hover: hover) {
  .card:hover .card__quick,
  .card__quick:focus-within { transform: translateY(0); }
}
@media (hover: none) { .card__quick { display: none; } }
.card__media img { filter: drop-shadow(0 18px 22px rgba(74, 46, 35, 0.14));
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.card:hover .card__media img { transform: scale(1.035); }

/* Photography fills every media frame the same way the illustrations do. */
.split__panel img { filter: drop-shadow(0 22px 28px rgba(74, 46, 35, 0.14)); }
.line-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Caption: one left-aligned stack. Name, colourway, price, each on its own
   line, so the price sits with the piece instead of floating off to the right. */
.card__body { margin-top: .85rem; display: grid; gap: .15rem; }
.card__name { font-family: var(--display); font-size: 1.25rem; line-height: 1.2; }
.card__colour { font-size: .8125rem; color: var(--muted); }
.card__price { font-size: .9375rem; color: var(--ink); margin-top: .15rem; }

/* --- 9. Editorial split -------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.split__panel { aspect-ratio: 4 / 5; background: var(--ecru); overflow: hidden; }
.split__panel svg { width: 100%; height: 100%; }
.split__text h2 { margin-block: 1.75rem 1.75rem; }
.split__text .ulink { margin-top: 2.5rem; }

/* --- 9b. Tonal plate (piece awaiting photography) ------------------------- */
.plate {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 2rem;
  transition: transform 1.1s var(--ease);
}
.plate span {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  line-height: 1.3;
  text-align: center;
  color: var(--muted);
}
.card:hover .plate { transform: scale(1.02); }

/* --- 9e. Closing block ---------------------------------------------------- */
/* Full-bleed blush so the page lands on colour rather than fading out. */
.closing {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: clamp(3rem, 7vw, 6rem);
  /* The page is otherwise one continuous pale tone. This band is the single
     place the brand colour carries real weight, which gives the scroll an
     ending instead of just stopping. */
  background: var(--rose);
  color: var(--bone);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.closing .label { color: var(--rose-line); }
.closing .lede { color: rgba(253, 248, 247, 0.82); }
.closing .news input { color: var(--bone); }
.closing .news input::placeholder { color: rgba(253, 248, 247, 0.6); }
.closing .news button { color: var(--bone); }
.closing .news button:hover { color: var(--rose-line); }
.closing .news { margin-top: clamp(3rem, 6vw, 5rem); }
.closing .news form { border-bottom-color: rgba(253, 248, 247, 0.45); }
.closing .news form:focus-within { border-bottom-color: var(--bone); }

.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}
.notes h3 { margin-bottom: 1rem; }
.notes .lede { font-size: 0.875rem; }

/* --- 10. Pull quote ------------------------------------------------------ */
/* --- 9c. The piece -------------------------------------------------------- */
/* Cut-out on the page ground, centred, the essentials beneath. No card, no
   plate: the garment sits on the page the way the hero cut-out used to. */
.piece {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.piece__figures { display: flex; justify-content: center; align-items: end; gap: clamp(1rem, 4vw, 4rem); }
.piece__figure { display: block; position: relative; aspect-ratio: 4/5; height: min(66vh, 620px); width: auto; }
.piece__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 22px 30px rgba(148, 96, 105, 0.12));
  transition: transform 0.9s var(--ease);
}
.piece__figure:hover img { transform: translateY(-4px); }
.piece__figure .badge-soldout { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.piece__tag { position: absolute; left: 50%; bottom: -1.75rem; transform: translateX(-50%); white-space: nowrap; color: var(--muted); z-index: 1; }
.piece__body { max-width: 48ch; }
.piece__body h2 { white-space: nowrap; }
.piece__price { margin-top: 0.5rem; font-size: 1rem; }
.piece__body { margin-top: 1.25rem; }
.piece__body .lede { margin: 1rem auto 0; }
.piece__body .btn { margin-top: 1.75rem; }

@media (max-width: 860px) {
  .piece__body h2 { white-space: normal; }
  .piece__figures { gap: .5rem; }
  .piece__figure { height: auto; width: calc(50% - .25rem); }
}

/* Worn. Two photographs, full-bleed, one viewport tall at most. */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 100vw; margin-left: calc(50% - 50vw); margin-top: clamp(2rem, 4vw, 3rem); }
.duo__tile { position: relative; display: block; overflow: hidden; height: min(82vh, 760px); }
.duo__tile img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.4s var(--ease); }
.duo__tile:hover img { transform: scale(1.03); }
.duo__label {
  position: absolute; left: 1.25rem; bottom: 1.25rem; display: flex; align-items: center; gap: .9rem;
  padding: .7rem 1rem; background: rgba(255, 253, 251, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.duo__label .label { color: var(--ink); }
.duo__cta { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rose); border-bottom: 1px solid var(--rose-line); }
@media (max-width: 640px) { .duo__tile { height: 58vh; } .duo__label { left: .75rem; bottom: .75rem; padding: .55rem .8rem; } }

/* Socials: a tight six-up of post thumbnails, edge to edge of the measure. */
.socials__head { display: grid; justify-items: center; text-align: center; gap: .5rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.socials__links { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; gap: .75rem; margin-top: .25rem; }
.socials__links a { border-bottom: 1px solid var(--line); transition: color .35s var(--ease); }
.socials__links a:hover { color: var(--rose); }
/* Four across, full-bleed to the viewport edges, so each cover is big. */
.socials__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.tile { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; background: var(--oat); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s var(--ease); }
.tile:hover img { transform: scale(1.04); filter: brightness(.92); }
.tile__badge {
  position: absolute; top: .6rem; right: .6rem; width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 50%; color: var(--ink);
  background: rgba(255, 253, 251, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tile__badge svg { margin: 0 !important; }
@media (max-width: 860px) { .socials__grid { grid-template-columns: repeat(3, 1fr); } }

/* Frequently asked */
.faq {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.faq .accordion { margin-top: 0; }

/* Width in rem, not ch — `ch` resolves against this element's 15px font while
   the quote itself is set at ~36px, which wraps it every few words. */
.quote { max-width: 30rem; margin: 0; }
.quote--center { max-width: 34rem; margin-inline: auto; text-align: center; }
.quote p {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-style: italic;
  line-height: 1.35;
  font-weight: 300;
}
.quote cite { display: block; margin-top: 2rem; font-style: normal; }

/* --- 11. Newsletter ------------------------------------------------------ */
.news { max-width: 440px; margin-inline: auto; text-align: center; }
.news .lede { margin: 1rem auto 0; }
.news form {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
  border-bottom: 1px solid var(--rose-line);
  padding-bottom: 0.75rem;
}
.news input { text-align: center; }
.news input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 0.875rem; }
.news input::placeholder { color: var(--muted); }
.news button {
  font-size: 0.625rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s var(--ease);
}
.news button:hover { color: var(--rose); }

/* --- 12. Footer ---------------------------------------------------------- */
.footer { background: var(--paper); border-top: 1px solid var(--line-soft); margin-top: clamp(4rem, 8vw, 8rem); width: 100vw; margin-left: calc(50% - 50vw); padding-inline: var(--gutter); }
.footer > .wrap { padding-inline: 0; }
/* On the homepage the footer sits directly under the blush closing block,
   so it needs neither the rule nor the gap. Other pages still do. */
body[data-page="home"] .footer { margin-top: 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.footer h4 { margin-bottom: 1.5rem; }
.footer li + li { margin-top: 0.75rem; }
.footer__social { margin-top: 1.5rem; font-size: .8125rem; display: flex; gap: 1.25rem; }
.footer__social a { color: var(--muted); transition: color .35s var(--ease); }
.footer__social a:hover { color: var(--rose); }
.footer li a { font-size: 0.8125rem; color: var(--muted); transition: color 0.35s var(--ease); }
.footer li a:hover { color: var(--rose); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 2rem;
  border-top: 1px solid var(--line-soft);
}

/* --- 13. Cart drawer ----------------------------------------------------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(30, 26, 25, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  z-index: 100;
  width: min(420px, 100vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bone);
  transform: translateX(100%);
  transition: transform 0.6s var(--ease);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  border-bottom: 1px solid var(--line-soft);
}
.drawer__body { flex: 1; overflow-y: auto; padding: 0 2rem; }
/* How far to free shipping. Fills in rose; once over the line it reads as
   unlocked rather than vanishing. */
.ship-bar { padding: 1.25rem 0 .25rem; }
.ship-bar p { font-size: .6875rem; letter-spacing: .08em; color: var(--muted); }
.ship-bar p b { color: var(--ink); font-weight: 400; }
.ship-bar__track { display: block; height: 2px; margin-top: .6rem; background: var(--line); }
.ship-bar__fill { display: block; height: 100%; width: var(--p, 0%); background: var(--rose); transition: width .8s var(--ease); }
.empty__figure { display: block; width: 72px; margin: 0 auto 1.25rem; filter: drop-shadow(0 12px 16px rgba(74,46,35,.14)); }
.drawer__foot { padding: 2rem; border-top: 1px solid var(--line-soft); }
/* --- Promotion code, in the bag ------------------------------------------ */
/* The field lives here rather than on Stripe's Checkout page — see the note
   in api/checkout.js. */
.promo {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.promo input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.promo input::placeholder { color: var(--muted); letter-spacing: var(--track); font-size: 0.625rem; }
.promo:focus-within { border-bottom-color: var(--rose); }
.promo button {
  font-size: 0.625rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.promo button:hover { color: var(--rose); }
.promo button:disabled { opacity: 0.5; cursor: default; }

.promo__msg { color: var(--rose); min-height: 1.2em; margin-bottom: 0.75rem; }

.drawer__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  color: var(--rose);
}
.drawer__row .price { font-size: 0.8125rem; }

/* The struck subtotal reads as superseded once a code is on */
.drawer__total--net { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--line-soft); }

.drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.75rem;
}
.drawer__note { margin-top: 1.25rem; text-align: center; }

.line-item { display: grid; grid-template-columns: 72px 1fr; gap: 1.25rem; padding-block: 1.75rem; }
.line-item + .line-item { border-top: 1px solid var(--line-soft); }
.line-item__media { aspect-ratio: 4/5; background: var(--ecru); overflow: hidden; }
.line-item__media .plate { padding: 0.35rem; }
.line-item__media .plate span { font-size: 0.5rem; letter-spacing: 0.02em; }
.line-item__name { font-family: var(--display); font-size: 1rem; line-height: 1.3; }
.line-item__row { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.line-item__row button { color: var(--muted); transition: color 0.35s var(--ease); }
.line-item__row button:hover { color: var(--rose); }

.qty { display: inline-flex; align-items: center; gap: 0.9rem; }
.qty span { font-size: 0.8125rem; min-width: 12px; text-align: center; }

.empty { padding-block: 5rem; text-align: center; }
.empty p { color: var(--muted); margin-bottom: 2rem; }

/* --- 14. Toast ----------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%; bottom: 2.5rem;
  z-index: 120;
  /* Hidden state must not rely on translate alone — the toast is empty until
     a message is set, so a percentage shift left a sliver of it on screen. */
  transform: translate(-50%, 1rem);
  opacity: 0;
  visibility: hidden;
  padding: 1rem 2rem;
  background: var(--ink);
  color: var(--bone);
  font-size: 0.625rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease), visibility 0.4s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* --- 15. Shop ------------------------------------------------------------ */
/* Tight: the listing has to land its first row of cards inside the first screen. */
.page-head { padding-block: 1.75rem 1rem; }
.page-head h1 { margin-top: 0.5rem; }

.filters {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line-soft);
}
.cats { display: flex; gap: 2rem; flex-wrap: wrap; }
.cat {
  font-size: 0.625rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.cat:hover { color: var(--rose); }
.cat.is-active { color: var(--ink); border-color: var(--rose); }

.select {
  appearance: none;
  border: 0;
  background: none;
  padding-right: 1.4em;
  font-size: 0.625rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238C817C' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 9px;
}

/* --- 15b. Policy pages ---------------------------------------------------- */
.policy {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  padding-bottom: clamp(4rem, 9vw, 8rem);
}
.policy__nav {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: sticky;
  top: 110px;
}
.policy__nav .cat { align-self: start; }

.policy__section { padding-block: clamp(1.75rem, 3vw, 2.5rem); border-top: 1px solid var(--line-soft); }
.policy__section:first-child { border-top: 0; padding-top: 0; }
.policy__body { margin-top: 0.85rem; max-width: 62ch; }
.policy__body p { color: var(--muted); font-size: 0.9375rem; line-height: 1.85; }
.policy__body p + p { margin-top: 0.9rem; }
.policy__body ul { margin-top: 0.4rem; }
.policy__body li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.85;
}
.policy__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 5px;
  height: 1px;
  background: var(--rose);
}

@media (max-width: 860px) {
  .policy { grid-template-columns: 1fr; }
  .policy__nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
}

/* --- 15b. Returns form ---------------------------------------------------- */
.rform { display: grid; gap: 1.1rem; max-width: 34rem; }
.rform__field { display: grid; gap: 0.4rem; }
.rform__field > span { font-size: 0.625rem; letter-spacing: var(--track); text-transform: uppercase; color: var(--rose); }
.rform input, .rform select, .rform textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rose-line);
  background: var(--paper);
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.rform textarea { resize: vertical; min-height: 7rem; }
.rform :is(input, select, textarea):focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(148, 96, 105, 0.14); }
.rform ::placeholder { color: #B9AEA9; }
.rform .btn { justify-self: start; margin-top: 0.25rem; }
.rform__msg { min-height: 1.2em; }

/* --- 16. Product detail -------------------------------------------------- */
.pdp { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
/* The shots stack and scroll while the details column sticks. Each shot is
   sized from the viewport height so one always fits under the header; with
   two shots per colour there is nothing a thumbnail strip would add. */
.gallery { display: grid; gap: 1.25rem; justify-items: start; }
.gallery__shot {
  margin: 0;
  aspect-ratio: 4/5;
  height: min(calc(100svh - 64px - 5rem), 800px);
  width: auto;
  max-width: 100%;
  overflow: hidden;
}
.gallery__shot img { width: 100%; height: 100%; object-fit: cover; filter: drop-shadow(0 22px 28px rgba(74, 46, 35, 0.14)); }
/* A photograph fills its frame: no stand, no cut-out shadow. */
.gallery__shot--photo::before { display: none; }
.gallery__shot--photo img { filter: none; }
.gallery__shot--video video { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 2; }

/* No panel. The column is organised by labelled sections with a clear rule
   and generous, even spacing between them; each section has one job. */
.pdp__info { position: sticky; top: 88px; }
/* Four ruled blocks: head, one-line description, the buy controls, then the
   accordion. Everything inside a block shares one spacing scale. */
.pdp__block { padding-block: 1.75rem; border-top: 1px solid var(--line); }
/* Section titles are ink, heavier and a touch larger than body text, so a
   title never reads as the first line of the paragraph beneath it. */
.pdp__block > .label:first-child,
.pdp__info .accordion summary {
  display: block;
  color: var(--ink);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .2em;
}
.pdp__block > .label:first-child { margin-bottom: .85rem; }
.pdp__info .accordion summary { display: flex; }
.pdp__info .acc-body, .pdp__info .acc-body li, .pdp__value, .pdp__fit { color: var(--muted); }
.pdp__info .acc-body { font-size: .9375rem; line-height: 1.65; }
.pdp__block--head { padding-top: 0; border-top: 0; }
.pdp__block--head h1 { margin-block: .6rem .4rem; }
.pdp__ship { margin-top: .35rem; font-size: .75rem; letter-spacing: .04em; color: var(--muted); }
.pdp__block .lede { max-width: 40ch; line-height: 1.6; }
.pdp__block--buy { display: grid; gap: 1.1rem; }
.pdp__block--buy .pdp__opt { margin: 0; }
.pdp__block--buy .btn { justify-self: start; }
.pdp__value { font-size: .9375rem; }
.size { display: grid; gap: .15rem; justify-items: center; min-width: 64px; }
.size__au { font-size: .5625rem; letter-spacing: .08em; opacity: .7; }
.pdp__block--buy .label:first-child { margin-bottom: 0; }
.pdp__fit { margin-top: .6rem; font-size: .75rem; letter-spacing: .04em; color: var(--muted); }
/* Four ruled lines that do the job a model photo would: the cut-outs show
   the garment, these say how it sits. */
.specs { display: grid; grid-template-columns: max-content 1fr; margin: 0; }
.specs > * { padding-block: .5rem; border-top: 1px solid var(--line-soft); font-size: .8125rem; line-height: 1.5; }
.specs > dt:first-child, .specs > dt:first-child + dd { border-top: 0; padding-top: 0; }
.specs > dt { color: var(--ink); letter-spacing: .04em; padding-right: 1.5rem; }
.specs > dd { color: var(--muted); margin: 0; }
/* The size label and its guide trigger share one line. */
.pdp__sizehead { display: flex; align-items: baseline; justify-content: space-between; }
.pdp__sizehead .label:first-child { margin-bottom: 0; }
.pdp__guide { font-size: .6875rem; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--rose-line); transition: color .35s var(--ease); }
.pdp__guide:hover { color: var(--rose); }
/* Colourway chips. Each links to its sibling listing; the current one is
   ringed. The pale pink keeps its inset hairline so it reads on the ground. */
.colors a.color { display: block; }

/* --- Sticky add-to-bag (phones only) ------------------------------------- */
.sticky-add {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 253, 251, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-soft);
}
.sticky-add { flex-wrap: wrap; }
.sticky-add__meta { display: grid; min-width: 0; flex: 1 1 100%; }
.sticky-add__sizes { display: flex; gap: .4rem; flex: 1 1 auto; }
.sticky-add__sizes .size { min-width: 44px; padding: .7em .6em; gap: 0; }
.sticky-add__sizes .size__au { display: none; }
.sticky-add__name { font-family: var(--display); font-size: 1.0625rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-add__sub { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: .45rem; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sticky-add__price { font-family: var(--display); font-size: 1.0625rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
.sticky-add .btn { padding-inline: 1.5em; flex: none; }
@media (max-width: 860px) { .sticky-add:not([hidden]) { display: flex; } }
.pdp__info h1 { margin-block: .6rem .4rem; }
.pdp__single-colour { color: var(--muted); margin-top: 1.75rem; }
.pdp__price { font-size: 0.9375rem; }
.pdp__info .lede { margin-top: 0; }

.pdp__opt { margin-top: 2.75rem; }
.pdp__opt h4 { margin-bottom: .6rem; }
.pdp__opt h4 b { color: var(--ink); font-weight: 400; }

.colors { display: flex; gap: 0.75rem; }
.color {
  width: 26px; height: 26px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(30, 26, 25, 0.10);
  transition: box-shadow 0.35s var(--ease);
}
.color.is-active { box-shadow: inset 0 0 0 1px rgba(30,26,25,.10), 0 0 0 1px var(--bone), 0 0 0 2px var(--ink); }

.sizes { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.size {
  min-width: 52px;
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  /* These are the primary control on the page — muted put 11px type at about
     3.6:1 on the bone ground, under the 4.5:1 floor. */
  color: var(--ink);
  transition: all 0.35s var(--ease);
}
.size:hover { border-color: var(--rose); color: var(--rose); }
.size.is-active { background: var(--ink); border-color: var(--ink); color: var(--bone); }

.accordion { margin-top: 0; border-top: 1px solid var(--line); }
.pdp__info .accordion details:last-child { border-bottom: 0; }
.accordion details { border-bottom: 1px solid var(--line-soft); }
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding-block: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.625rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--rose); }
.accordion details[open] summary::after { content: "–"; }
.accordion .acc-body { padding-bottom: 1.75rem; color: var(--muted); font-size: 0.875rem; line-height: 1.85; }
.accordion .acc-body li + li { margin-top: 0.5rem; }

/* --- 17. Motion ---------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

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

/* --- 18. Responsive ------------------------------------------------------ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .header__inner { grid-template-columns: auto 1fr auto; min-height: 56px; }
  .nav {
    /* Anchored to the header rather than the viewport. A fixed `top: 68px`
       assumed the header started at y=0, which stopped being true the moment
       an announcement bar went above it. */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem var(--gutter) 2.5rem;
    background: var(--bone);
    border-bottom: 1px solid var(--line-soft);
    /* Faded in place rather than slid down from above. The old
       translateY(-120%) parked the panel over the announcement bar, and
       because .header is a sticky z-index:60 stacking context, a z-index:-1
       on the panel could not lift the bar back above it. Never travelling
       upward removes the problem rather than fighting the paint order.
       visibility keeps the links out of the tab order while closed. */
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition-delay: 0s, 0s, 0s;
  }
  .nav a { padding-block: 1rem; font-size: 0.6875rem; border-bottom: 1px solid var(--line-soft); }
  .burger { display: block; }

  .split, .pdp { grid-template-columns: 1fr; }
  .gallery { justify-items: stretch; }
  .gallery__shot { height: auto; width: 100%; }
  .split__panel { order: -1; }
  .notes { grid-template-columns: 1fr; gap: 2.25rem; }
  .faq { grid-template-columns: 1fr; gap: 2rem; }

  .hero { min-height: calc(100svh - 56px); align-items: end; }
  .hero__inner { grid-template-columns: 1fr; }
  /* Portrait viewport on a landscape still: keep the bodice and knee, which
     sit around 70% across after the mirror. */
  .hero__media { object-position: 62% 55%; }
  .hero__scrim {
    background: rgba(0, 0, 0, 0.44);
  }
  .hero__content { padding-block: 2.5rem 2rem; }
  .hero__content .lede { max-width: none; }
  .pdp__info { position: static; }
  .header__actions { gap: 1.25rem; }
}

@media (max-width: 560px) {
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .card__name { font-size: 1rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; }
  .drawer__head, .drawer__foot { padding: 1.5rem; }
  .drawer__body { padding-inline: 1.5rem; }
}

/* --- Size chart ----------------------------------------------------------- */
.sizes-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.sizes-table th,
.sizes-table td {
  padding: 0.7rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.sizes-table th {
  font-size: 0.625rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 400;
}
.sizes-table td { color: var(--muted); }
.sizes-table td:first-child { color: var(--ink); }
.sizes-table tr:last-child td { border-bottom: 0; }

/* --- Touch targets -------------------------------------------------------
   Measured on a 390px viewport: the burger was 20×20, header buttons 30×17,
   category filters 21px tall and footer links 19px. Apple and Google both
   ask for ~44px. Padding is used rather than height so nothing shifts
   visually — the hit area grows, the type stays where it was.
   ------------------------------------------------------------------------ */
@media (max-width: 860px) {
  .burger {
    width: 44px;
    height: 44px;
    margin-left: -12px;      /* keeps the icon optically aligned to the gutter */
    display: grid;
    place-items: center;
  }
  .header__actions { gap: 0.5rem; }
  .header__actions button { padding: 13px 8px; }
  .header__actions button:last-child { margin-right: -8px; }

  .cat { padding-block: 11px; }
  .cats { gap: 0.25rem 1.5rem; }
  .select { padding-block: 11px; }

  .footer li a,
  .footer__bottom a { display: inline-block; padding-block: 7px; }
  .footer li + li { margin-top: 0.25rem; }

  .ulink { padding-top: 8px; padding-bottom: 10px; }
  .policy__nav .cat { padding-block: 9px; }

  /* the size table is 6 columns — let it scroll rather than crush the type */
  .acc-body, .policy__body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sizes-table { min-width: 340px; }
}
@media (max-width: 860px) {
  /* logo is a 15px-tall image — grow the hit area, not the mark */
  .header .wordmark { display: inline-grid; place-items: center; min-height: 44px; padding-inline: 8px; }

  /* newsletter row */
  .news input { padding-block: 11px; }
  .news button { padding: 11px 4px; }

  /* cart drawer close */
  [data-cart-close] { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; }

  /* colour swatches */
  .color { width: 40px; height: 40px; }
  .colors { gap: 0.9rem; }
}

/* --- Order summary (thank-you page) --------------------------------------- */
.order { max-width: 30rem; margin: clamp(2.5rem, 6vw, 4rem) auto 0; text-align: left; }
.order__ref { text-align: center; margin-bottom: 1.75rem; }
.order__table { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.order__table td { padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.order__sub td { color: var(--muted); border-bottom: 0; padding-block: 0.3rem; }
.order__sub:first-of-type td { padding-top: 1rem; }
.order__total td {
  border-bottom: 0; border-top: 1px solid var(--line);
  padding-top: 0.9rem; font-family: var(--display); font-size: 1.25rem;
}
.order__meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line-soft);
}
.order__meta h4 { margin-bottom: 0.6rem; }
.order__meta p { font-size: 0.875rem; line-height: 1.7; color: var(--muted); }
@media (max-width: 560px) { .order__meta { grid-template-columns: 1fr; gap: 1.5rem; } }

/* --- Sold out ------------------------------------------------------------- */
.size.is-out, .quick__size.is-out {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}
.size.is-out:hover, .quick__size.is-out:hover {
  background: none;
  border-color: var(--line);
  color: var(--muted);
}
.badge-soldout {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 0.4em 0.85em;
  background: var(--bone);
  color: var(--muted);
}

/* --- Rose CTA ------------------------------------------------------------- */
.btn--rose { /* now the default — kept so existing markup stays valid */ }

/* --- Cursor ---------------------------------------------------------------
   A pink arrow. The hotspot is the tip (2,2), not the centre — with an arrow
   the click point is the point. Every rule keeps a standard keyword fallback
   for browsers that reject the image. */
body { cursor: url("../assets/cursor.png") 2 2, auto; }

a, button, summary, label, select,
.card__link, .size, .quick__size, .color,
.cat, .card__arrow, [data-cart-open], [data-checkout], [role="button"] {
  cursor: url("../assets/cursor-pointer.png") 2 2, pointer;
}

input[type="text"], input[type="email"], input[type="search"], input[type="password"], textarea {
  cursor: text;   /* a caret is genuinely more useful in a field */
}
[disabled], .size.is-out, .quick__size.is-out { cursor: not-allowed; }

/* Touch devices have no cursor, and coarse pointers shouldn't pay for the
   image download. */
@media (hover: none), (pointer: coarse) {
  body, a, button, summary, label, select { cursor: auto; }
}

/* --- 18b. Stand ------------------------------------------------------------
   A white disc under the garment so it stands rather than floats. The hem
   sits at 95% of the plate height, so the disc is centred there and the
   garment covers its back half. Pure CSS: no change to the plates. */
.gallery__shot::before, .card__shots::before, .piece__figure::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 90.5%;
  width: 62%;
  height: 9%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #F7F1EA 0%, #F1EAE1 60%, #E6DDD2 100%);
  box-shadow: 0 3px 0 #DDD3C7, 0 22px 30px -12px rgba(74, 46, 35, 0.18);
  z-index: 0;
}
/* Contact shadow where the cuffs meet the plate. */
.gallery__shot::after, .card__shots::after, .piece__figure::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 93.2%;
  width: 40%;
  height: 3.4%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(74, 46, 35, 0.28);
  filter: blur(7px);
  z-index: 1;
  pointer-events: none;
}
.gallery__shot { position: relative; }
.gallery__shot img, .card__shots img, .piece__figure img { position: relative; z-index: 2; }
.gallery__shot--photo::after { display: none; }
.card__shots img { position: absolute; }
.card__arrow, .card__count, .badge-soldout { z-index: 3; }

/* --- 19. Page transitions ------------------------------------------------ */
/* The shot a shopper clicks on a card carries the name set by main.js, and
   the first shot on the product page carries the same one, so the garment
   slides into place instead of the page cutting. Browsers without support
   just load the page as before. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }
::view-transition-group(piece) { animation-duration: .6s; animation-timing-function: var(--ease); }
.gallery__shot:first-child img { view-transition-name: piece; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* --- 20. Community popup -------------------------------------------------- */
/* Once per browser, a few seconds in. One field, one button, one way out. */
.pop {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center; padding: var(--gutter);
  background: rgba(30, 26, 25, 0.38);
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.pop.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.pop__card {
  position: relative; width: min(760px, 100%);
  display: grid; grid-template-columns: 5fr 6fr;
  background: var(--paper); text-align: center; overflow: hidden;
  transform: translateY(12px); transition: transform .6s var(--ease);
}
.pop.is-open .pop__card { transform: none; }
.pop__photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.pop__content { position: relative; padding: 2.75rem 2.25rem 2.25rem; display: grid; align-content: center; }
.pop__close { position: absolute; top: .9rem; right: .9rem; padding: .4rem; color: var(--muted); }
@media (max-width: 640px) {
  .pop__card { grid-template-columns: 1fr; width: min(440px, 100%); }
  .pop__photo { height: 210px; object-position: 50% 12%; }
  .pop__content { padding: 2rem 1.5rem 1.75rem; }
}
.pop__card .wordmark img { width: 110px; height: auto; margin: 0 auto 1.5rem; display: block; }
.pop__card h2 { font-family: var(--display); font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.05; }
.pop__card .lede { margin: .85rem auto 0; max-width: 32ch; }
.pop__form { margin-top: 1.5rem; display: grid; gap: .75rem; }
.pop__form input {
  width: 100%; padding: .95em 1em; border: 1px solid var(--line); background: var(--paper);
  font-size: .9375rem; outline: none; text-align: center;
}
.pop__form input:focus { border-color: var(--ink); }
.pop__skip { margin-top: 1.1rem; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.pop__code { margin-top: 1.25rem; font-family: var(--display); font-size: 1.75rem; letter-spacing: .08em; color: var(--rose); }
.pop__msg { min-height: 1.2em; margin-top: .5rem; font-size: .8125rem; color: var(--muted); }
