/* ===========================================================================
   DRAPE & GRACE by Shiara
   Design system — shot silk on Cloud Dancer.

   1. Tokens          2. Reset        3. Type          4. Motion primitives
   5. Buttons         6. Header       7. Drawers       8. Hero
   9. Sections       10. Cards       11. Marquee      12. PDP
  13. Forms          14. Cart        15. Footer       16. Admin
  17. Responsive
   ======================================================================== */

/* ---------------------------------------------------------------- 1. tokens */
:root {
  /* ground */
  --cloud:      #F1EFEA;   /* Pantone 11-4201 Cloud Dancer — the brand ground */
  --porcelain:  #FAF8F5;
  --paper:      #FFFFFF;
  --noir:       #0C1317;
  --ink:        #121A1E;
  --ink-soft:   #3E4650;
  --mute:       #6A726F;
  --faint:      #8B8880;
  --line:       #E2DED6;
  --line-soft:  #EDEAE4;

  /* the cloth */
  --peacock-deep: #07323B;
  --peacock:      #0D5A64;
  --peacock-lit:  #17858B;
  --mint:         #5FC3BF;
  --ice:          #CBEEE7;
  --blush:        #F7D4DF;
  --rose:         #E4719B;
  --rani:         #C32E67;
  --rani-deep:    #8E1746;
  --plum:         #4E0C2B;
  --champagne:    #D8C3A5;
  --champagne-lt: #EFE4D2;

  --silk: linear-gradient(135deg, #07323B 0%, #0D5A64 13%, #17858B 27%, #5FC3BF 39%,
                                  #CBEEE7 47%, #F7D4DF 55%, #E4719B 63%, #C32E67 76%,
                                  #8E1746 89%, #4E0C2B 100%);

  /* Same cloth read across a letterform: the pale centre is compressed so a
     glyph keeps its colour instead of bleaching out. */
  --silk-text: linear-gradient(142deg, #07323B 0%, #0D5A64 16%, #17858B 32%, #3FA8A6 42%,
                                       #9FDCD4 49%, #F3B9CC 55%, #E4719B 64%, #C32E67 78%,
                                       #8E1746 92%, #4E0C2B 100%);

  --serif:  'Instrument Serif', Georgia, 'Times New Roman', serif;
  --accent: 'Fraunces', Georgia, serif;
  --sans:   'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* motion */
  --ease:      cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --t-fast: .24s;
  --t-mid:  .55s;
  --t-slow: .9s;

  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --head-h: 76px;
}

/* ---------------------------------------------------------------- 2. reset */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--rani); color: #fff; }

:focus-visible { outline: 2px solid var(--peacock); outline-offset: 3px; }

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

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
      clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- 3. type */
h1, h2, h3, h4 { margin: 0 0 .45em; font-weight: 400; line-height: 1.08; letter-spacing: -.012em; font-family: var(--accent); }

/* Bare headings get a sensible size so a page that has not been given the
   display classes still reads correctly. */
h1 { font-size: clamp(30px, 4.4vw, 52px); }
h2 { font-size: clamp(24px, 3.2vw, 38px); }
h3 { font-size: 21px; }
h4 { font-size: 17px; }

.display {
  font-family: var(--accent);
  font-size: clamp(42px, 7.4vw, 108px);
  line-height: .98;
  letter-spacing: -.028em;
}
.h1 { font-family: var(--accent); font-size: clamp(34px, 5.2vw, 70px); letter-spacing: -.022em; }
.h2 { font-family: var(--accent); font-size: clamp(28px, 3.9vw, 50px); letter-spacing: -.018em; }
.h3 { font-family: var(--accent); font-size: clamp(21px, 2.1vw, 28px); letter-spacing: -.01em; }

.serif { font-family: var(--serif); letter-spacing: .01em; }
.ital  { font-family: var(--accent); font-style: italic; font-weight: 400; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 18px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px; background: currentColor; opacity: .55;
}
.eyebrow.bare::before { display: none; }

.lede { font-size: clamp(15px, 1.25vw, 18px); color: var(--mute); max-width: 54ch; line-height: 1.7; }
.small { font-size: 12.5px; color: var(--mute); }
.tnum { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------- 4. motion primitives */
/* Elements start hidden only when JS is present, so nothing is lost without it. */
.js [data-reveal] { opacity: 0; will-change: transform, opacity; }
.js [data-reveal="up"]    { transform: translate3d(0, 34px, 0); }
.js [data-reveal="fade"]  { transform: none; }
.js [data-reveal="left"]  { transform: translate3d(-34px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(34px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(1.06); }

.js .line-mask { display: block; overflow: hidden; }
.js .line-mask > span { display: block; }

/* Per-character rise, used on one headline only. */
.js .ch { display: inline-block; overflow: hidden; vertical-align: top; }
.js .ch > span { display: inline-block; }

/* ---------------------------------------------------------- scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90;
  pointer-events: none; background: transparent;
}
.scroll-progress i {
  display: block; height: 100%; background: var(--silk);
  transform: scaleX(0); transform-origin: left;
}

/* ------------------------------------------------------------ custom cursor */
.cursor { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; border-radius: 50%;
  transform: translate3d(-50%, -50%, 0); will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ink); }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(18, 26, 30, .32);
  display: grid; place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease),
              margin .4s var(--ease), background .4s var(--ease),
              border-color .4s var(--ease);
}
.cursor-ring.on { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: transparent; background: rgba(18, 26, 30, .09); }
.cursor-ring.labelled {
  width: 86px; height: 86px; margin: -43px 0 0 -43px;
  background: var(--ink); border-color: var(--ink);
}
.cursor-label {
  font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cloud); opacity: 0; transition: opacity .3s var(--ease);
  white-space: nowrap;
}
.cursor-ring.labelled .cursor-label { opacity: 1; }

/* The native cursor stays available wherever precision matters. */
@media (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
  body.has-cursor input, body.has-cursor textarea, body.has-cursor select { cursor: auto; }
}

/* --------------------------------------------------------- page transition */
.swipe { position: fixed; inset: 0; z-index: 250; display: none; pointer-events: none; }
.swipe-panel { position: absolute; inset: 0; background: var(--ink); }
.swipe-mark {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.swipe-mark img { width: clamp(90px, 13vw, 150px); height: auto; }

/* ------------------------------------------------------- pinned horizontal */
.pin-section { overflow: hidden; padding-block: 0; }
.pin-inner { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.pin-track {
  display: flex; gap: clamp(16px, 2vw, 34px); width: max-content;
  padding-inline: var(--gutter); will-change: transform;
}
.pin-track > * { width: clamp(260px, 25vw, 360px); flex: none; }
.pin-head { padding-inline: var(--gutter); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Below the pin breakpoint it degrades to an ordinary swipeable rail. */
@media (max-width: 899px) {
  .pin-section { padding-block: clamp(56px, 8vw, 100px); }
  .pin-inner { min-height: 0; }
  .pin-track {
    width: auto; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; padding-bottom: 16px;
  }
  .pin-track::-webkit-scrollbar { display: none; }
  .pin-track > * { scroll-snap-align: start; width: 72vw; }
}

/* Cards need a 3D context for the tilt to read as depth. */
[data-tilt] .shot { transform-style: preserve-3d; }

/* ===================================================== buying, made faster == */

/* ------------------------------------------- size chips on the product card */
.card-sizes {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 14px 12px 12px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.card-sizes.open { transform: none; }
.cs-label { display: block; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin-bottom: 9px; }
.cs-row { display: flex; gap: 6px; flex-wrap: wrap; }
.cs-btn {
  flex: 1; min-width: 38px; padding: 10px 4px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .08em;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.cs-btn:hover, .cs-btn:focus-visible { background: var(--ink); color: var(--cloud); border-color: var(--ink); }
.cs-btn.busy { background: var(--silk); color: #fff; border-color: transparent; }

/* ------------------------------------------------- the tick inside a button */
.btn .tick, .quick-row button .tick {
  width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 26; stroke-dashoffset: 26;
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  opacity: 0;
}
.btn, .quick-row button { position: relative; }
.btn.done .lbl, .quick-row button.done .lbl { opacity: 0; }
.btn.done .tick, .quick-row button.done .tick {
  opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .45s var(--ease) .05s, opacity .1s;
}
.btn .lbl, .quick-row button .lbl { transition: opacity .2s var(--ease); }

/* --------------------------------------------------- the shot that flies off */
.fly {
  position: fixed; z-index: 150; pointer-events: none;
  object-fit: cover; border-radius: 2px;
  box-shadow: 0 18px 40px -20px rgba(10, 36, 44, .5);
}

/* ------------------------------------------------------------ sticky buy bar */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: color-mix(in srgb, var(--porcelain) 96%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-top: 1px solid var(--line);
  transform: translateY(102%); transition: transform .55s var(--ease);
  box-shadow: 0 -20px 50px -40px rgba(10, 36, 44, .6);
}
.buybar.show { transform: none; }
.buybar-in { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.buybar img { width: 52px; height: 69px; object-fit: cover; flex: none; }
.buybar-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.buybar-name strong { font-family: var(--accent); font-size: 17px; font-weight: 400;
                      white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar-name span { font-size: 13.5px; color: var(--ink-soft); }
.buybar-name s { margin-left: 6px; font-size: 12px; }
.buybar-sizes { display: flex; gap: 5px; }
.buybar-sizes .size-btn { min-width: 42px; padding: 9px 4px; font-size: 11.5px; }
.buybar .btn { padding: 15px 26px; }

/* On a phone the bar is the main way anyone buys, so it gets the room:
   sizes on their own line, a full-width action, and the thumbnail dropped. */
@media (max-width: 760px) {
  .buybar-in { flex-wrap: wrap; gap: 10px 12px; padding: 12px 0 14px; }
  .buybar img { display: none; }
  .buybar-name { flex: 1 1 100%; flex-direction: row; align-items: baseline; gap: 10px; }
  .buybar-name strong { font-size: 15px; }
  .buybar-sizes { flex: 1 1 100%; justify-content: space-between; }
  .buybar-sizes .size-btn { flex: 1; min-width: 0; }
  .buybar .btn { flex: 1 1 100%; }
}

/* Hover instructions mean nothing on a touch screen. */
@media (hover: none) {
  .hover-only { display: none; }
}

/* ------------------------------------------------------------------- modal */
.modal {
  position: fixed; inset: 0; z-index: 110; display: grid; place-items: center;
  padding: 24px; background: rgba(12, 19, 23, .55); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .4s var(--ease);
}
/* An author `display` beats the browser's own [hidden] rule, so say it here.
   Without this the closed modal is an invisible sheet over the whole page. */
.modal[hidden] { display: none; }
.modal.open { opacity: 1; }
.modal-card {
  position: relative; width: min(460px, 100%); max-height: 86vh; overflow-y: auto;
  background: var(--porcelain); padding: clamp(24px, 3vw, 36px);
  transform: translateY(20px) scale(.98); transition: transform .5s var(--ease);
}
.modal.open .modal-card { transform: none; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.size-table th, .size-table td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.size-table thead th { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.size-table tbody th { font-weight: 500; font-family: var(--sans); }
.size-table tbody tr:hover td, .size-table tbody tr:hover th { background: var(--paper); }

.link-btn {
  background: none; border: 0; padding: 0 0 2px; cursor: pointer;
  font-family: var(--sans); font-size: 12.5px; color: var(--mute);
  border-bottom: 1px solid var(--line);
}
.link-btn:hover { color: var(--ink); border-color: var(--ink); }

/* ---------------------------------------------------------- star rating */
/* Rendered 5→1 in the markup so CSS can light up the hovered star and every
   one before it with a sibling selector, without any JavaScript. */
.rate { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rate label { cursor: pointer; line-height: 0; padding: 2px; }
.rate svg { width: 26px; height: 26px; fill: #DCD7CC; transition: fill .2s var(--ease), transform .25s var(--ease); }
.rate label:hover svg,
.rate label:hover ~ label svg,
.rate input:checked ~ label svg { fill: var(--champagne); }
.rate label:hover svg { transform: scale(1.14); }
.rate input:focus-visible + label svg { outline: 2px solid var(--peacock); outline-offset: 2px; }

.review-card .photo { margin-top: 14px; }
.review-card .photo img { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: cover; }
.review-reply {
  margin-top: 16px; padding: 14px 16px; background: var(--cloud);
  border-left: 2px solid var(--peacock); font-size: 13.5px; color: var(--ink-soft);
}
.verified {
  display: inline-flex; align-items: center; gap: 5px; margin-left: 8px;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--peacock);
}
.verified svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ------------------------------------------------------- skeleton shimmer */
.skeleton { position: relative; overflow: hidden; background: #E8E4DC; }
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  transform: translateX(-100%); animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.sk-line { height: 13px; border-radius: 2px; margin-bottom: 10px; }
.sk-shot { aspect-ratio: 3/4; margin-bottom: 20px; }

/* ------------------------------------------------------------------ journal */
.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(26px, 3vw, 44px) clamp(18px, 2vw, 30px);
}
.post-card .shot { display: block; aspect-ratio: 3/2; overflow: hidden; background: var(--cloud); }
.post-card .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .shot img { transform: scale(1.05); }
.post-card .meta { padding-top: 16px; display: flex; flex-direction: column; gap: 7px; }
.post-card .cat { font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); }
.post-card .name { font-family: var(--accent); font-size: 21px; line-height: 1.25; margin: 0; }
.post-card .name a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .5s var(--ease);
}
.post-card:hover .name a { background-size: 100% 1px; }

.post-lead {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 3vw, 48px);
  align-items: center; margin-bottom: clamp(44px, 5vw, 76px);
}
.post-lead .shot { aspect-ratio: 16/10; overflow: hidden; background: var(--cloud); }
.post-lead .shot img { width: 100%; height: 100%; object-fit: cover; }

.post-cover { aspect-ratio: 16/9; overflow: hidden; background: var(--cloud); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }

.post-body { margin-top: clamp(32px, 4vw, 56px); font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.post-body p { margin: 0 0 20px; }
.post-body a { color: var(--peacock); border-bottom: 1px solid var(--line); }
.post-body a:hover { border-color: var(--peacock); }
.post-body img { width: 100%; margin: 28px 0; }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-quote {
  margin: 30px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--rani);
  font-family: var(--accent); font-size: 21px; line-height: 1.5; color: var(--ink);
}
.post-list { margin: 0 0 20px; padding-left: 20px; }
.post-list li { margin-bottom: 9px; }

@media (max-width: 900px) {
  .post-lead { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------- full-bleed campaign */
.campaign-band {
  position: relative; min-height: min(86vh, 760px); display: grid; align-items: center;
  overflow: hidden; background: var(--noir);
}
.campaign-shot { position: absolute; inset: -8% 0; }
.campaign-shot img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.campaign-band::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,14,17,.92) 0%, rgba(8,14,17,.62) 48%, rgba(8,14,17,.2) 100%);
}
.campaign-copy { position: relative; z-index: 2; padding-block: clamp(56px, 8vw, 110px); }
.campaign-copy .display { font-size: clamp(38px, 6.2vw, 92px); margin-bottom: 18px; }

/* A frame whose image is revealed by a rising clip. The clip is applied by
   JS, so without it the image simply shows — nothing to undo. */
.curtain { position: relative; overflow: hidden; }

.hair { height: 1px; background: var(--line); border: 0; margin: 0; }
.js .hair[data-reveal] { opacity: 1; transform: scaleX(0); transform-origin: left; }

/* ---------------------------------------------------------------- 5. buttons */
.btn {
  --bg: var(--ink); --fg: var(--cloud);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; isolation: isolate; overflow: hidden; cursor: pointer; border: 0;
  padding: 17px 34px; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 11.5px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
  transition: color var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--silk);
  transform: translate3d(0, 101%, 0); transition: transform .62s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translate3d(0, 0, 0); }
.btn:hover, .btn:focus-visible { color: #fff; }

.btn.ghost { --bg: transparent; --fg: var(--ink); border: 1px solid var(--ink); }
.btn.light { --bg: transparent; --fg: var(--cloud); border: 1px solid rgba(237,234,227,.42); }
.btn.solid-silk { background: var(--silk); color: #fff; }
.btn.solid-silk::before { background: var(--ink); }
.btn.block { display: flex; width: 100%; }
.btn.sm { padding: 12px 22px; font-size: 10.5px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* An arrow link whose rule draws itself on hover. */
.arrow-link {
  display: inline-flex; align-items: center; gap: 12px; position: relative;
  font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; padding-bottom: 7px;
}
.arrow-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.arrow-link:hover::after { transform: scaleX(1); transform-origin: left; }
.arrow-link .tip { transition: transform .45s var(--ease); }
.arrow-link:hover .tip { transform: translateX(6px); }

/* ---------------------------------------------------------------- 6. header */
.announce {
  position: relative; z-index: 60; background: var(--ink); color: #AEB9B3;
  font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase;
  height: 38px; display: flex; align-items: center; overflow: hidden;
}
.announce .slides { position: relative; width: 100%; height: 100%; }
.announce .slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(100%); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.announce .slide.on { opacity: 1; transform: translateY(0); }
.announce .slide.off { opacity: 0; transform: translateY(-100%); }

.head {
  position: sticky; top: 0; z-index: 50; height: var(--head-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--cloud) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background .45s var(--ease), border-color .45s var(--ease), height .45s var(--ease);
}
.head.stuck { background: color-mix(in srgb, var(--cloud) 94%, transparent); border-bottom-color: var(--line); height: 64px; }
.head.hide { transform: translateY(-100%); transition: transform .5s var(--ease); }
.head .wrap-wide { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }

.brand { justify-self: center; text-align: center; line-height: 1; }
.brand .name {
  display: flex; align-items: center; justify-content: center; gap: .1em;
  font-family: var(--serif); font-size: clamp(19px, 1.7vw, 25px);
  letter-spacing: .18em; white-space: nowrap;
}
/* The emblem sits in the line of type at a fixed height, so it scales with the
   wordmark instead of being pinned to a pixel size. */
.brand .amp {
  height: 1.62em; width: auto; margin-inline: .1em;
  transition: transform .55s var(--ease);
}
.brand:hover .amp { transform: translateY(-2px) rotate(-3deg); }
.brand .sig { display: block; margin-top: 4px; font-family: var(--accent); font-style: italic;
              font-size: 11.5px; letter-spacing: .04em; color: var(--mute); }

.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.nav > a, .nav .has-mega > button {
  position: relative; background: none; border: 0; cursor: pointer; padding: 6px 0;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
  transition: color var(--t-fast) var(--ease);
}
.nav > a::after, .nav .has-mega > button::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--rani); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav > a:hover, .nav .has-mega > button:hover,
.nav > a.on, .nav .has-mega.open > button { color: var(--ink); }
.nav > a:hover::after, .nav .has-mega > button:hover::after,
.nav > a.on::after, .nav .has-mega.open > button::after { transform: scaleX(1); transform-origin: left; }

.head-right { justify-self: end; display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); }
.icon-btn {
  position: relative; background: none; border: 0; cursor: pointer; padding: 6px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.35; }
.icon-btn .pip {
  position: absolute; top: -2px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--rani); color: #fff;
  font-size: 10px; letter-spacing: 0; display: grid; place-items: center;
  transform: scale(0); transition: transform .4s var(--ease);
}
.icon-btn .pip.show { transform: scale(1); }
.icon-btn.bump svg { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.22) rotate(-6deg); } 100% { transform: none; } }

/* mega menu */
.has-mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--porcelain); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 44px 0 48px; opacity: 0; visibility: hidden;
  transform: translateY(-14px); transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s;
  box-shadow: 0 32px 60px -40px rgba(10, 36, 44, .35);
}
.has-mega.open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid { display: grid; grid-template-columns: 200px 1fr; gap: 56px; }
.mega-links { display: flex; flex-direction: column; gap: 4px; }
.mega-links a {
  font-family: var(--accent); font-size: 23px; color: var(--ink-soft); padding: 5px 0;
  transition: color .3s var(--ease), transform .45s var(--ease);
}
.mega-links a:hover { color: var(--rani); transform: translateX(7px); }
.mega-feature { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mega-feature figure { margin: 0; }
.mega-feature .shot { aspect-ratio: 4/5; overflow: hidden; background: var(--cloud); }
.mega-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mega-feature figure:hover img { transform: scale(1.05); }
.mega-feature figcaption { margin-top: 11px; font-size: 13px; }
.mega-feature .p { color: var(--faint); font-size: 12px; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; width: 40px; }
.burger span { display: block; height: 1.4px; background: var(--ink); margin: 5px 0;
               transition: transform .45s var(--ease), opacity .3s; }
.burger.on span:nth-child(1) { transform: translateY(6.4px) rotate(45deg); }
.burger.on span:nth-child(2) { opacity: 0; }
.burger.on span:nth-child(3) { transform: translateY(-6.4px) rotate(-45deg); }

/* ---------------------------------------------------------------- 7. drawers */
.scrim {
  position: fixed; inset: 0; z-index: 70; background: rgba(12, 19, 23, .5);
  backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.scrim.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
  width: min(460px, 100vw); background: var(--porcelain);
  display: flex; flex-direction: column;
  transform: translate3d(100%, 0, 0); transition: transform .62s var(--ease);
  box-shadow: -30px 0 80px -40px rgba(10, 36, 44, .5);
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--gutter) 20px; border-bottom: 1px solid var(--line);
}
.drawer-body { flex: 1; overflow-y: auto; padding: 8px var(--gutter) 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 22px var(--gutter) 28px; background: var(--paper); }
.close-x { background: none; border: 0; cursor: pointer; width: 34px; height: 34px; display: grid; place-items: center; }
.close-x svg { width: 17px; height: 17px; stroke: var(--ink); stroke-width: 1.4; fill: none;
               transition: transform .5s var(--ease); }
.close-x:hover svg { transform: rotate(90deg); }

/* full-screen mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 75; background: var(--ink); color: var(--cloud);
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter);
  clip-path: inset(0 0 100% 0); transition: clip-path .75s var(--ease);
}
.mobile-menu.open { clip-path: inset(0 0 0 0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu nav a {
  font-family: var(--accent); font-size: clamp(32px, 9vw, 58px); line-height: 1.18;
  color: var(--cloud); opacity: 0; transform: translateY(26px);
}
.mobile-menu.open nav a { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.mobile-menu .mm-foot { margin-top: 40px; color: #8D9892; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }

/* ---------------------------------------------------------------- preloader */
.preloader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink);
  display: grid; place-items: center; color: var(--cloud);
}
.preloader.done { pointer-events: none; }
.pre-mark { text-align: center; }
.pre-amp { display: flex; justify-content: center; }
.pre-amp img { width: clamp(120px, 20vw, 200px); height: auto; }
.pre-word { margin-top: 10px; font-family: var(--serif); font-size: clamp(15px, 2.3vw, 22px); letter-spacing: .4em; }
.pre-sig  { margin-top: 8px; font-family: var(--accent); font-style: italic; font-size: 13px; color: #8D9892; }
.pre-bar { margin: 26px auto 0; width: min(230px, 54vw); height: 1px; background: rgba(237,234,227,.2); }
.pre-bar i { display: block; height: 100%; width: 0; background: var(--cloud); }
.pre-pct { margin-top: 12px; font-size: 11px; letter-spacing: .3em; color: #78857F; }

/* ---------------------------------------------------------------- 8. hero */
.hero { position: relative; padding: clamp(40px, 7vw, 86px) 0 clamp(50px, 7vw, 96px); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4vw, 68px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero .display { margin-bottom: 26px; }
.hero .display em { font-style: italic; color: var(--rani); }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.hero-stage { position: relative; aspect-ratio: 4/5; }
.hero-stage .frame { position: absolute; overflow: hidden; background: var(--cloud); }
.hero-stage .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-stage .f-main { inset: 0 14% 8% 0; z-index: 1; }
.hero-stage .f-sub  { width: 42%; aspect-ratio: 3/4; right: 0; bottom: 0; z-index: 3;
                      box-shadow: -18px 24px 48px -28px rgba(10, 36, 44, .5); }
.hero-badge {
  position: absolute; left: -6%; top: 11%; z-index: 4;
  width: clamp(92px, 9vw, 126px); aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); color: var(--cloud); display: grid; place-items: center; text-align: center;
  font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; line-height: 1.5;
}
.hero-ticker {
  position: absolute; z-index: 4; right: -2%; top: 46%; transform: rotate(90deg); transform-origin: right center;
  font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--faint); white-space: nowrap;
}

.hero-stats { display: flex; gap: clamp(22px, 3vw, 46px); margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-stats div { flex: none; }
.hero-stats .n { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1; }
.hero-stats .k { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }

.scroll-hint {
  position: absolute; left: var(--gutter); bottom: 22px; display: flex; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--faint);
}
.scroll-hint i { display: block; width: 40px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ''; position: absolute; inset: 0; background: var(--rani);
                        animation: sweep 2.2s var(--ease) infinite; }
@keyframes sweep { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------------------------------------------------------------- 9. sections */
.section { padding: clamp(56px, 8vw, 128px) 0; position: relative; }
.section.tight { padding-block: clamp(40px, 5vw, 78px); }
.section.dark { background: var(--ink); color: var(--cloud); }
.section.dark .eyebrow, .section.dark .small { color: #8D9892; }
.section.dark .lede { color: #AEB9B3; }
.section.porcelain { background: var(--porcelain); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: clamp(26px, 3vw, 46px); flex-wrap: wrap; }
.sec-head .lede { margin-top: 10px; }

/* asymmetric editorial pair */
.editorial { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 80px); align-items: center; }
.editorial.flip > :first-child { order: 2; }
.editorial figure { margin: 0; position: relative; }
.editorial .shot { aspect-ratio: 4/5; overflow: hidden; background: var(--cloud); }
.editorial .shot img { width: 100%; height: 100%; object-fit: cover; }
.editorial .caption {
  position: absolute; bottom: -18px; left: -18px; background: var(--paper); padding: 14px 20px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}

/* category trio with a tall middle */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.cat-tile { position: relative; display: block; overflow: hidden; background: var(--ink); aspect-ratio: 3/4; }
.cat-tile:nth-child(2) { margin-top: clamp(0px, 4vw, 56px); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; opacity: .82;
                transition: transform 1s var(--ease), opacity .6s var(--ease); }
.cat-tile:hover img { transform: scale(1.06); opacity: .66; }
.cat-tile .meta { position: absolute; inset: auto 0 0 0; padding: clamp(20px, 2.2vw, 32px); color: var(--cloud); z-index: 2; }
.cat-tile .meta .n { font-size: 10px; letter-spacing: .3em; opacity: .7; }
.cat-tile .meta h3 { margin: 8px 0 6px; font-family: var(--accent); font-size: clamp(22px, 2.3vw, 32px); }
.cat-tile .meta p { margin: 0; font-size: 12.5px; color: #C7CFC9; max-width: 32ch;
                    max-height: 0; opacity: 0; overflow: hidden;
                    transition: max-height .6s var(--ease), opacity .4s var(--ease); }
.cat-tile:hover .meta p { max-height: 80px; opacity: 1; }
.cat-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,19,23,.88) 0%, rgba(12,19,23,.25) 46%, transparent 72%);
}
.cat-tile .meta { z-index: 3; }

/* ---------------------------------------------------------------- 10. cards */
.grid-products {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 282px), 1fr));
  gap: clamp(16px, 2.2vw, 34px) clamp(14px, 1.6vw, 26px);
}

.pcard { position: relative; display: flex; flex-direction: column; }
.pcard .shot {
  position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; background: var(--cloud);
}
.pcard .shot img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.05s var(--ease), opacity .6s var(--ease);
}
.pcard .shot .alt { opacity: 0; transform: scale(1.04); }
.pcard:hover .shot .lead { opacity: 0; transform: scale(1.05); }
.pcard:hover .shot .alt  { opacity: 1; transform: scale(1); }

.pcard .badges { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badge {
  font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  padding: 5px 10px; background: var(--ink); color: var(--cloud);
}
.badge.sale { background: var(--rani); }
.badge.few  { background: var(--champagne); color: var(--ink); }
.badge.new  { background: var(--peacock); }

.wish {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  width: 38px; height: 38px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(6px); border: 0; cursor: pointer;
  opacity: 0; transform: translateY(-6px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.pcard:hover .wish, .wish.on, .wish:focus-visible { opacity: 1; transform: none; }
.wish svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.4; transition: fill .3s, stroke .3s, transform .35s var(--ease); }
.wish.on svg { fill: var(--rani); stroke: var(--rani); transform: scale(1.12); }

.quick-row {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3;
  display: flex; gap: 8px;
  transform: translateY(14px); opacity: 0;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
}
.pcard:hover .quick-row, .pcard:focus-within .quick-row { transform: none; opacity: 1; }
.quick-row button {
  flex: 1; border: 0; cursor: pointer; padding: 13px 10px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); color: var(--ink);
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.quick-row button:hover { background: var(--ink); color: var(--cloud); }
.quick-row button.primary { background: var(--ink); color: var(--cloud); }
.quick-row button.primary:hover { background: var(--rani); }

.pcard .meta { padding: 15px 2px 0; display: flex; flex-direction: column; gap: 5px; }
.pcard .cat { font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--faint); }
.pcard .name { font-family: var(--accent); font-size: 19px; line-height: 1.24; }
.pcard .name a { background-image: linear-gradient(currentColor, currentColor);
                 background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
                 transition: background-size .5s var(--ease); }
.pcard:hover .name a { background-size: 100% 1px; }
.pcard .pr { display: flex; align-items: baseline; gap: 9px; margin-top: 2px; }
.pcard .pr .now { font-size: 15px; font-weight: 500; }
.pcard .pr .was { font-size: 12.5px; color: var(--faint); text-decoration: line-through; }
.pcard .swatches { display: flex; gap: 5px; margin-top: 4px; }
.pcard .swatches i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }

/* horizontal scroll rail */
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(258px, 29vw);
  gap: clamp(14px, 1.6vw, 26px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 18px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button {
  width: 46px; height: 46px; border: 1px solid var(--line); background: transparent; cursor: pointer;
  display: grid; place-items: center; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.rail-nav button:hover { background: var(--ink); color: var(--cloud); border-color: var(--ink); }
.rail-nav svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.4; }

/* ---------------------------------------------------------------- 11. marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; }
.marquee .track { display: flex; gap: 48px; width: max-content; will-change: transform; }
.marquee span {
  font-family: var(--accent); font-size: clamp(22px, 2.8vw, 40px); color: var(--ink);
  display: inline-flex; align-items: center; gap: 48px; white-space: nowrap;
}
.marquee span::after { content: '·'; color: var(--rani); }
.section.dark .marquee { border-color: #27322F; }
.section.dark .marquee span { color: var(--cloud); }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 36px); }
.quote { padding: clamp(24px, 2.6vw, 38px); background: var(--paper); position: relative; }
.section.dark .quote { background: #182227; }
.quote .mk { font-family: var(--serif); font-size: 56px; line-height: .6; color: var(--rani); }
.quote p { font-family: var(--accent); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.6; margin: 18px 0 20px; }
.quote .who { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.stars { display: flex; gap: 3px; margin-bottom: 4px; }
.stars svg { width: 13px; height: 13px; fill: var(--champagne); }

/* instagram gallery */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ig-grid a { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--cloud); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.ig-grid a::after {
  content: ''; position: absolute; inset: 0; background: rgba(12,19,23,.42);
  opacity: 0; transition: opacity .4s var(--ease);
}
.ig-grid a:hover img { transform: scale(1.09); }
.ig-grid a:hover::after { opacity: 1; }

/* newsletter */
.news-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 70px); align-items: center; }
.news-form { display: flex; border-bottom: 1px solid var(--line); }
.section.dark .news-form { border-color: #3A4A44; }
.news-form input {
  flex: 1; background: transparent; border: 0; padding: 16px 2px; color: inherit;
  font-family: var(--sans); font-size: 15px;
}
.news-form input::placeholder { color: var(--faint); }
.news-form button { background: none; border: 0; cursor: pointer; padding: 0 4px 0 18px;
                    font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }

/* ---------------------------------------------------------------- 12. pdp */
.pdp { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(26px, 4vw, 72px); align-items: start; }
.pdp-gallery { display: flex; flex-direction: column; gap: 12px; }
.pdp-stage { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--cloud); cursor: zoom-in; }
.pdp-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
                 transition: transform .7s var(--ease), opacity .5s var(--ease); }
.pdp-stage.zoom img { transform: scale(1.65); transition: transform .25s var(--ease-soft); }
.pdp-thumbs { display: flex; gap: 10px; }
.pdp-thumbs button { width: 76px; aspect-ratio: 3/4; padding: 0; border: 0; cursor: pointer; overflow: hidden;
                     background: none; position: relative; opacity: .55; transition: opacity .35s var(--ease); }
.pdp-thumbs button::after { content: ''; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--ink);
                            transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.pdp-thumbs button.on { opacity: 1; }
.pdp-thumbs button.on::after { transform: scaleX(1); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info { position: sticky; top: calc(var(--head-h) + 22px); }
.price-row { display: flex; align-items: baseline; gap: 14px; margin: 6px 0 4px; }
.price-row .now { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); }
.price-row .was { color: var(--faint); text-decoration: line-through; }
.price-row .off { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--rani); }

.sizes { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.size-btn {
  position: relative; min-width: 54px; padding: 13px 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-size: 12px; letter-spacing: .12em; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.size-btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink);
                    transform: translateY(101%); transition: transform .45s var(--ease); }
.size-btn:hover { border-color: var(--ink); }
.size-btn.on { color: var(--cloud); border-color: var(--ink); }
.size-btn.on::before { transform: none; }
.size-btn.out { opacity: .3; cursor: not-allowed; text-decoration: line-through; }

.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--paper);
}
.qty button { width: 42px; height: 46px; border: 0; background: none; cursor: pointer; font-size: 16px;
              transition: background .3s var(--ease); }
.qty button:hover { background: var(--cloud); }
.qty input { width: 46px; height: 46px; border: 0; background: none; text-align: center;
             font-family: var(--sans); font-size: 14px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.accordion { border-top: 1px solid var(--line); margin-top: 32px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; padding: 19px 0; text-align: left;
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
}
.acc-head .pm { position: relative; width: 13px; height: 13px; flex: none; }
.acc-head .pm::before, .acc-head .pm::after {
  content: ''; position: absolute; inset: 50% 0 auto 0; height: 1px; background: var(--ink);
}
.acc-head .pm::after { transform: rotate(90deg); transition: transform .45s var(--ease); }
.acc-item.open .acc-head .pm::after { transform: rotate(0); }
.acc-body { overflow: hidden; height: 0; }
.acc-body > div { padding: 0 0 22px; color: var(--ink-soft); font-size: 14px; }

.rating-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12.5px; color: var(--mute); }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.trust div { text-align: center; padding: 16px 8px; background: var(--paper); }
.trust svg { width: 20px; height: 20px; margin: 0 auto 8px; stroke: var(--peacock); fill: none; stroke-width: 1.3; }
.trust span { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

/* ---------------------------------------------------------------- 13. forms */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); background: var(--paper);
  font-family: var(--sans); font-size: 15px; color: var(--ink); border-radius: 0;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.field input:hover, .field textarea:hover { border-color: #CFC9BE; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--ink); background: var(--paper); }
.field .hint { font-size: 12px; color: var(--faint); margin: 6px 0 0; }
.field .err { font-size: 12px; color: var(--rani); margin: 6px 0 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

.panel { background: var(--paper); padding: clamp(20px, 2.4vw, 32px); }
.panel.bare { background: transparent; padding: 0; }

.notice { padding: 15px 18px; border-left: 2px solid var(--peacock); background: var(--paper); font-size: 14px; margin-bottom: 24px; }
.notice.bad { border-left-color: var(--rani); }
.notice.warn { border-left-color: var(--champagne); }

/* toast */
.toast-wrap { position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translateX(-50%);
              display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 14px; padding: 14px 22px;
  background: var(--ink); color: var(--cloud); font-size: 13px;
  box-shadow: 0 20px 44px -26px rgba(10,36,44,.7);
  transform: translateY(22px) scale(.97); opacity: 0;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
}
.toast.on { transform: none; opacity: 1; }
.toast img { width: 40px; height: 52px; object-fit: cover; }

/* ---------------------------------------------------------------- 14. cart */
.cart-line { display: grid; grid-template-columns: 86px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 86px; height: 114px; object-fit: cover; }
.cart-line .nm { font-family: var(--accent); font-size: 17px; line-height: 1.25; }
.cart-line .sz { font-size: 12px; color: var(--faint); margin-top: 3px; }
.cart-line .rm { background: none; border: 0; cursor: pointer; padding: 0; margin-top: 10px;
                 font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute);
                 border-bottom: 1px solid var(--line); }
.cart-line .rm:hover { color: var(--rani); border-color: var(--rani); }

.totals { width: 100%; font-size: 14px; }
.totals td { padding: 8px 0; }
.totals td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.totals tr.grand td { border-top: 1px solid var(--line); padding-top: 16px; font-size: 19px; font-family: var(--serif); }
.totals tr.saved td { color: var(--rani); }
.totals tr.saved td:first-child { font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; }

/* Discount code box */
.coupon-box { display: flex; gap: 8px; margin: 0 0 18px; }
.coupon-box input { flex: 1; min-width: 0; padding: 11px 13px; border: 1px solid var(--line);
  background: var(--paper); font-family: var(--sans); font-size: 13px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink); }
.coupon-box input::placeholder { letter-spacing: .4px; text-transform: none; color: var(--faint); }
.coupon-box input:focus { outline: none; border-color: var(--rani); }
.coupon-box button { flex: none; }

.coupon-on { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 0 0 18px; padding: 11px 14px; border: 1px dashed var(--rani); background: #FDF3F7; }
.coupon-on strong { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--rani); }
.coupon-on span { font-size: 12.5px; color: var(--ink-soft); }
.coupon-on button { background: none; border: 0; padding: 0; font-family: var(--sans); font-size: 11px;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--mute); cursor: pointer;
  border-bottom: 1px solid var(--line); }
.coupon-on button:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Seller disclosure in the footer — required to be displayed, so it is styled
   to be legible rather than hidden in the small print. */
.seller-block { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px 34px; padding: clamp(30px, 3.5vw, 46px) 0 0; margin-top: clamp(30px, 3.5vw, 46px);
  border-top: 1px solid #27322F; }
.seller-block h5 { font-size: 10.5px; letter-spacing: 2.4px; text-transform: uppercase;
  color: #8D9892; margin: 0 0 10px; font-weight: 500; }
.seller-block p { margin: 0; font-size: 13px; line-height: 1.8; color: #AEB9B3; }
.seller-block a { color: #AEB9B3; border-bottom: 1px solid #39443F; }
.seller-block a:hover { color: var(--cloud); border-bottom-color: var(--cloud); }
.seller-block .note { display: block; margin-top: 8px; font-size: 11.5px; color: #78857F;
  line-height: 1.6; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.ship-meter { margin: 4px 0 18px; }
.ship-meter .bar { height: 2px; background: var(--line); overflow: hidden; }
.ship-meter .bar i { display: block; height: 100%; background: var(--silk); width: 0; transition: width .9s var(--ease); }
.ship-meter p { margin: 9px 0 0; font-size: 12px; color: var(--mute); }

.cart-layout { display: grid; grid-template-columns: 1fr 370px; gap: clamp(26px, 4vw, 54px); align-items: start; }

.steps-bar { display: flex; gap: 10px; align-items: center; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.steps-bar b { color: var(--ink); font-weight: 500; }
.steps-bar i { width: 26px; height: 1px; background: var(--line); display: block; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.table td.num, .table th.num { text-align: right; }

.empty { text-align: center; padding: clamp(50px, 8vw, 110px) 20px; }
.empty .amp { font-family: var(--serif); font-size: clamp(70px, 10vw, 120px); line-height: 1; color: var(--line); }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.steps li:last-child { border-bottom: 0; }
.steps .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); margin-top: 8px; flex: none; }
.steps li.done .dot { background: var(--peacock); }
.steps li:first-child.done .dot { background: var(--rani); box-shadow: 0 0 0 4px rgba(195,46,103,.16); }
.steps .when { font-size: 12px; color: var(--faint); }

.crumbs { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding-top: 26px; }
.crumbs a:hover { color: var(--ink); }

/* filters */
.shop-layout { display: grid; grid-template-columns: 224px 1fr; gap: clamp(26px, 3.4vw, 56px); align-items: start; }
.filters { position: sticky; top: calc(var(--head-h) + 22px); }
.filters h4 { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; font-weight: 500; }
.filters ul { list-style: none; margin: 0 0 32px; padding: 0; }
.filters li { margin-bottom: 3px; }
.filters li a { display: inline-block; padding: 4px 0; font-size: 14.5px; color: var(--ink-soft);
                transition: transform .4s var(--ease), color .3s var(--ease); }
.filters li a:hover { transform: translateX(6px); color: var(--ink); }
.filters li a.on { color: var(--rani); }
.filters li a.on::before { content: '—'; margin-right: 8px; }

.sortbar { display: flex; align-items: center; gap: 12px; }
.sortbar select { padding: 11px 14px; border: 1px solid var(--line); background: var(--paper);
                  font-family: var(--sans); font-size: 13.5px; border-radius: 0; }

/* ---------------------------------------------------------------- 15. footer */
.foot { background: var(--ink); color: #9BA6A1; padding: clamp(50px, 6vw, 92px) 0 30px; font-size: 14px; }
.foot a:hover { color: #fff; }
.foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(26px, 3vw, 52px); }
.foot h5 { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--mint); margin: 0 0 16px; font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 10px; }
.foot .brand { text-align: left; }
.foot .brand .name { color: #EDEAE3; font-size: 24px; }
.foot .brand .sig { color: #8D9892; }
.foot-base { margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid #27322F;
             display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; color: #78857F; }
.pay-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pay-row span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #8D9892;
                border: 1px solid #27322F; padding: 6px 10px; }

.foot-mark { font-family: var(--serif); font-size: clamp(60px, 16vw, 210px); line-height: .8; color: #182227;
             text-align: center; letter-spacing: .04em; margin-top: clamp(30px, 4vw, 54px); user-select: none; }

/* ---------------------------------------------------------------- 16. admin */
.adm-head { background: var(--ink); color: #EDEAE3; padding: 15px 0; position: sticky; top: 0; z-index: 30; }
.adm-head .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.adm-head .mark { height: 30px; width: auto; }
.adm-head nav { display: flex; gap: 22px; flex: 1; flex-wrap: wrap; }
.adm-head nav a { color: #9BA6A1; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.adm-head nav a.on, .adm-head nav a:hover { color: var(--mint); }
.adm-head .who { font-size: 12px; color: #78857F; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 32px; }
.stat { background: var(--paper); padding: 20px 22px; }
.stat .n { font-family: var(--serif); font-size: 34px; line-height: 1.05; }
.stat .k { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }
.pill { display: inline-block; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
        padding: 5px 10px; border: 1px solid var(--line); }
.pill.paid    { background: #E6F4EF; border-color: #A8D8C8; color: #17604A; }
.pill.pending { background: #FDF4E3; border-color: #E8C98A; color: #7A5410; }
.pill.failed  { background: #FBE9EF; border-color: #E9A8C0; color: #8E1746; }
body.admin { background: #F5F4F1; }
body.admin .table { background: var(--paper); }
body.admin .table tr:hover td { background: #FAFAF8; }

/* ---------------------------------------------------------------- 17. responsive */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stage { max-width: 560px; }
  .quotes { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .mega-feature { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1080px) {
  .table { display: block; overflow-x: auto; white-space: nowrap; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-info { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 20px; }
}

@media (max-width: 900px) {
  :root { --head-h: 64px; }
  .nav { display: none; }
  .burger { display: block; }
  .head .wrap-wide { grid-template-columns: auto 1fr auto; }
  .brand { justify-self: center; }
  .editorial, .editorial.flip > :first-child { grid-template-columns: 1fr; order: initial; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-tile:nth-child(2) { margin-top: 0; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .hero-ticker { display: none; }
  .hero-badge { left: auto; right: 4%; top: -4%; }
}

@media (max-width: 560px) {
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 12px 10px; }
  .pcard .name { font-size: 15.5px; }
  .pcard .meta { padding-top: 11px; }
  .quick-row { opacity: 1; transform: none; left: 7px; right: 7px; bottom: 7px; }
  .quick-row button { padding: 10px 6px; font-size: 9px; }
  .wish { opacity: 1; transform: none; width: 32px; height: 32px; }
  .foot-top { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .hero-stats { flex-wrap: wrap; gap: 20px 28px; }
}

/* Honour a stated preference for less motion: the site still works, it just
   stops moving. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .curtain::after { display: none; }
}
