/* ==========================================================================
   Ori Ethnics — storefront styles
   Palette drawn from natural dyes: muslin ground, indigo ink, madder red,
   zari gold (hairlines and threads only), loom grey.
   ========================================================================== */

@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("../fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2-variations"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations"); }

@view-transition { navigation: auto; }

:root {
  --muslin:   #EEEBE5;
  --muslin-2: #E5E1D9;
  --paper:    #F7F5F1;
  --indigo:   #1A2042;
  --indigo-2: #2A3260;
  --madder:   #8C2A22;
  --zari:     #B08A3E;
  --loom:     #6E6B66;
  --line:     rgba(26, 32, 66, .14);
  --line-2:   rgba(26, 32, 66, .28);

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1520px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.64, 0, .78, 0);
  --r-sm: 2px;
  --r-pill: 999px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--muslin);
  color: var(--indigo);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { width: 1em; height: 1em; flex: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul { list-style: none; padding: 0; }
address { font-style: normal; }
::selection { background: var(--indigo); color: var(--muslin); }
:focus-visible { outline: 2px solid var(--madder); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--indigo); color: var(--muslin); padding: 10px 16px; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Type ---------- */
.h2 {
  font: 400 clamp(2rem, 1.3rem + 2.4vw, 3.5rem)/1.04 var(--display);
  font-variation-settings: "opsz" 96;
  letter-spacing: -.015em;
}
.page-title {
  font: 400 clamp(2.2rem, 1.4rem + 3vw, 4.25rem)/1.02 var(--display);
  font-variation-settings: "opsz" 96;
  letter-spacing: -.02em;
}
.page-title.display { max-width: 18ch; }
.lead { font-size: 1.125rem; color: var(--loom); max-width: 52ch; margin-top: 1rem; }
.text-link {
  display: inline-block;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.text-link:hover { color: var(--madder); }
.text-link-light { color: var(--muslin); }
.text-link-light:hover { color: var(--zari); }
.link-btn { font-size: .875rem; color: var(--loom); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--madder); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--indigo); --fg: var(--muslin);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.9em;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg);
  border-radius: var(--r-pill);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--madder);
  transform: translateY(101%);
  border-radius: inherit;
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { border-color: var(--madder); }
.btn svg { width: 1.2em; height: 1.2em; }
.btn-ghost { --bg: transparent; --fg: var(--indigo); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--muslin); }
.btn-light { --bg: var(--muslin); --fg: var(--indigo); }
.btn-light:hover { color: var(--muslin); }
.btn-block { width: 100%; }
.btn-lg { min-height: 60px; font-size: 1rem; }
.btn-small { min-height: 40px; padding: 0 1.2em; }
.btn.is-disabled { --bg: var(--muslin-2); --fg: var(--loom); border-color: var(--muslin-2); cursor: not-allowed; font-weight: 500; }
.btn.is-disabled::before { display: none; }
.btn.is-busy { pointer-events: none; color: transparent; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--fg); border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Intro (first visit) & curtain ---------- */
.intro { display: none; }
.first-visit .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 300;
  background: var(--indigo); color: var(--muslin);
}
.intro-thread { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 40px; transform: translateY(-50%); overflow: visible; }
.intro-thread path { fill: none; stroke: var(--zari); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro-mark {
  position: relative;
  font: 400 clamp(2.5rem, 7vw, 6rem)/1 var(--display); letter-spacing: -.02em;
  background: var(--indigo); padding: 0 .4em; opacity: 0;
}
.curtain {
  position: fixed; inset: 0; z-index: 250; pointer-events: none;
  background: var(--indigo);
  transform: scaleY(0); transform-origin: bottom;
}

/* ---------- Notice + header ---------- */
.notice {
  background: var(--indigo); color: var(--muslin);
  text-align: center; font-size: .8125rem; letter-spacing: .02em;
  padding: 9px var(--gutter);
}
.site-header {
  position: sticky; top: 0; z-index: 90;
  height: var(--header-h);
  background: color-mix(in srgb, var(--muslin) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(14px); backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: transform .5s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease);
  view-transition-name: site-header;
}
.header-over .site-header:not(.is-scrolled) { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-hidden { transform: translateY(-100%); }
.hdr-inner {
  height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.wordmark {
  grid-column: 2;
  font: 400 1.75rem/1 var(--display); letter-spacing: -.01em;
  font-variation-settings: "opsz" 28;
  white-space: nowrap;
}
.hdr-nav { grid-column: 1; grid-row: 1; display: flex; gap: 28px; align-items: center; font-size: .9375rem; }
.nav-link { position: relative; padding: 8px 0; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav-link:hover::after, .has-mega:hover > .nav-link::after, .has-mega:focus-within > .nav-link::after { transform: scaleX(1); transform-origin: left; }
.hdr-tools { grid-column: 3; display: flex; justify-content: flex-end; gap: 4px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: background-color .3s; position: relative; }
.icon-btn:hover { background: rgba(26, 32, 66, .06); }
.icon-btn svg { width: 22px; height: 22px; }
.bag-count {
  position: absolute; top: 6px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--madder); color: #fff; font-size: .6875rem; font-weight: 600; line-height: 18px; text-align: center;
}
.bag-count.bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.45); } }
.hdr-burger { display: none; width: 44px; height: 44px; position: relative; }
.hdr-burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.hdr-burger span:first-child { top: 17px; }
.hdr-burger span:last-child { top: 26px; right: 17px; }

/* Mega menu */
.has-mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .55s var(--ease), visibility 0s .55s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .55s var(--ease), visibility 0s; }
.mega-inner { max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 44px; display: grid; grid-template-columns: 1fr 340px; gap: 48px; }
.mega-list { columns: 3; column-gap: 32px; }
.mega-list li { break-inside: avoid; }
.mega-list a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); transition: color .25s, padding .35s var(--ease); }
.mega-list a:hover { color: var(--madder); padding-left: 6px; }
.mega-list small { color: var(--loom); font-size: .8125rem; }
.mega-feature { display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; padding: 28px; background: var(--indigo); color: var(--muslin); border-radius: var(--r-sm); position: relative; overflow: hidden; }
.mega-feature::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(176,138,62,.18) 22px 23px); }
.mega-feature-title { position: relative; font: 400 1.75rem/1.1 var(--display); }
.mega-feature-sub { position: relative; font-size: .875rem; opacity: .75; margin-top: 6px; }

/* Mobile menu */
.menu-sheet { position: fixed; inset: 0; z-index: 120; background: var(--indigo); color: var(--muslin); overflow-y: auto; }
.menu-sheet[hidden] { display: none; }
.menu-sheet-inner { padding: 20px var(--gutter) 48px; }
.menu-close { margin-left: auto; display: grid; }
.menu-heading { font-size: .875rem; opacity: .6; margin: 12px 0 8px; }
.menu-cats a { display: block; font: 400 2rem/1.25 var(--display); padding: 4px 0; }
.menu-links { margin-top: 32px; border-top: 1px solid rgba(238,235,229,.2); padding-top: 20px; }
.menu-links a { display: block; padding: 8px 0; font-size: 1.0625rem; }
.menu-call { display: inline-block; margin-top: 28px; border-bottom: 1px solid var(--zari); color: var(--zari); }

/* ---------- Hero / loom ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h) - 38px);
  max-width: var(--max); margin: calc(var(--header-h) * -1) auto 0;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: center;
}
.hero-title {
  font: 400 clamp(3.4rem, 1.5rem + 7.2vw, 9rem)/.9 var(--display);
  font-variation-settings: "opsz" 96;
  letter-spacing: -.035em;
}
.hero-title .line { display: block; overflow: hidden; padding: 0 .12em .08em; margin: 0 -.12em -.08em; }
.hero-title .line > span { display: inline-block; }
.hero-title .line:nth-child(2) { padding-left: .6em; font-style: italic; }
.hero-sub { margin-top: 28px; font-size: 1.125rem; line-height: 1.55; max-width: 34ch; color: var(--loom); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-scroll {
  position: absolute; left: var(--gutter); bottom: 24px;
  font-size: .8125rem; color: var(--loom); padding-left: 44px;
}
.hero-scroll::before { content: ""; position: absolute; left: 0; top: 50%; width: 32px; height: 1px; background: currentColor; transform-origin: left; animation: tick 2.4s var(--ease) infinite; }
@keyframes tick { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

.loom {
  position: relative;
  height: min(78svh, 820px);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 1.1vw, 18px);
  align-items: start;
}
.warp {
  position: relative; z-index: 2; display: block;
  height: 100%;
  border-radius: 999px 999px var(--r-sm) var(--r-sm);
  overflow: hidden;
  background: var(--muslin-2);
  margin-top: calc(var(--i) * 0px);
}
.warp:nth-child(1) { height: 86%; margin-top: 8%; }
.warp:nth-child(2) { height: 92%; margin-top: 0; }
.warp:nth-child(3) { height: 84%; margin-top: 14%; }
.warp:nth-child(4) { height: 94%; margin-top: 3%; }
.warp:nth-child(5) { height: 80%; margin-top: 18%; }
.warp-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: transform 1.2s var(--ease); }
.warp:hover .warp-img { transform: scale(1.05); }
.warp-label {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0;
  width: max-content; max-width: 90%;
  font-size: .75rem; line-height: 1.3; text-align: center;
  background: var(--paper); color: var(--indigo); padding: 6px 10px; border-radius: var(--r-pill);
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.warp:hover .warp-label, .warp:focus-visible .warp-label { opacity: 1; transform: none; }
.weft { position: absolute; left: -4%; width: 108%; top: 46%; height: 60px; overflow: visible; pointer-events: none; }
.weft path { fill: none; stroke: var(--zari); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.weft-back { z-index: 1; }
/* The front copy only shows over the 2nd and 4th warp, so the thread goes over-under. */
.weft-front {
  z-index: 3;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 22.5%, #000 22.5% 39%, transparent 39% 61%, #000 61% 77.5%, transparent 77.5%);
          mask-image: linear-gradient(90deg, transparent 0 22.5%, #000 22.5% 39%, transparent 39% 61%, #000 61% 77.5%, transparent 77.5%);
}

/* ---------- Sections ---------- */
.section-head {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 32px;
}
.section-head .h2 { grid-column: 1; }
.section-note { grid-column: 1; grid-row: 2; color: var(--loom); max-width: 48ch; }
.section-head .text-link { grid-column: 2; grid-row: 1 / span 2; align-self: end; }

.rail-section { padding: clamp(72px, 10vw, 140px) 0 clamp(48px, 6vw, 96px); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 21vw, 330px);
  gap: clamp(12px, 1.4vw, 24px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 36px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
  max-width: var(--max); margin: 0 auto;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging a { pointer-events: none; }
.rail > * { scroll-snap-align: start; }

/* ---------- Product card ---------- */
.card { position: relative; }
.card-link { display: block; }
.card-media {
  position: relative; aspect-ratio: 2 / 3; overflow: hidden;
  background: var(--muslin-2); border-radius: var(--r-sm);
}
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.card-img { transition: transform 1.1s var(--ease), opacity .6s var(--ease); }
.card-img-alt { opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform 1.1s var(--ease); object-position: 50% 50% !important; }
@media (hover: hover) {
  .card:hover .card-img-alt { opacity: 1; transform: scale(1); }
  .card:hover .card-img { transform: scale(1.04); }
}
.card-flag {
  position: absolute; left: 10px; top: 10px;
  font-size: .75rem; font-weight: 600; background: var(--paper); color: var(--indigo);
  padding: 3px 10px; border-radius: var(--r-pill);
}
.card-flag-sale { background: var(--madder); color: #fff; }
.card.is-sold .card-img { filter: grayscale(.7); opacity: .65; }
.card-body { padding: 14px 2px 0; }
.card-title { font: 500 .9375rem/1.35 var(--sans); }
.card-colour { font-size: .8125rem; color: var(--loom); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { margin-top: 6px; font: 400 1.125rem/1 var(--display); font-variant-numeric: lining-nums; }
.card-price s { color: var(--loom); font-size: .9em; margin-right: 6px; }
.card-add {
  position: absolute; right: 10px; top: calc((100% - 70px) - 54px);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); color: var(--indigo);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0; transform: scale(.7);
  transition: opacity .35s var(--ease), transform .45s var(--ease), background-color .3s, color .3s;
}
.card-add svg { width: 20px; height: 20px; }
.card:hover .card-add, .card-add:focus-visible { opacity: 1; transform: scale(1); }
.card-add:hover { background: var(--indigo); color: var(--muslin); }
@media (hover: none) { .card-add { opacity: 1; transform: none; } }

/* ---------- Origins (horizontal) ---------- */
.origins { background: var(--indigo); color: var(--muslin); overflow: hidden; position: relative; }
.origins-intro { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 128px) var(--gutter) 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
.origins-intro p { color: rgba(238,235,229,.72); max-width: 46ch; justify-self: end; }
.origins-track {
  position: relative;
  display: flex; gap: clamp(48px, 6vw, 110px);
  padding: 96px var(--gutter) clamp(72px, 9vw, 128px);
  width: max-content;
}
.origins-thread { position: absolute; left: 0; top: 100px; width: 100%; height: 40px; overflow: visible; }
.origins-thread path { fill: none; stroke: var(--zari); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.origin { position: relative; width: clamp(220px, 24vw, 340px); padding-top: 44px; }
.origin-knot { position: absolute; top: 15px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--indigo); border: 1.5px solid var(--zari); }
.origin-town { font: 400 clamp(2.6rem, 1.6rem + 3vw, 4.5rem)/1 var(--display); letter-spacing: -.02em; }
.origin-state { font-size: .875rem; color: var(--zari); margin-top: 10px; }
.origin-line { color: rgba(238,235,229,.72); margin-top: 6px; max-width: 26ch; }
.origin-home .origin-town { font-style: italic; }
.origin-home .origin-knot { background: var(--zari); }

/* ---------- Weave index ---------- */
.weaves { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--gutter); position: relative; }
.weaves-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; }
.weave-list { border-top: 1px solid var(--line-2); }
.weave-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: clamp(14px, 1.6vw, 22px) 0; border-bottom: 1px solid var(--line-2);
  position: relative;
}
.weave-name { font: 400 clamp(1.9rem, 1.1rem + 2.6vw, 3.6rem)/1.05 var(--display); letter-spacing: -.015em; transition: transform .6s var(--ease), color .3s; }
.weave-count { color: var(--loom); font-size: .9375rem; white-space: nowrap; }
.weave-row:hover .weave-name { transform: translateX(14px); color: var(--madder); font-style: italic; }
.weave-peek {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: 200px; aspect-ratio: 2/3; border-radius: 100px 100px 4px 4px; overflow: hidden;
  opacity: 0; scale: .8; transition: opacity .3s var(--ease), scale .5s var(--ease);
  background: var(--muslin-2);
}
.weave-peek.is-on { opacity: 1; scale: 1; }
.weave-peek img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }

/* ---------- Story & handmade ---------- */
.story {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 10vw, 140px);
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 110px); align-items: center;
}
.story-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-sm); background: var(--muslin-2); }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-copy .h2 { max-width: 16ch; }
.story-points { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 40px 0 36px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.story-points h3 { font: 600 1rem/1.3 var(--sans); margin-bottom: 8px; }
.story-points p { color: var(--loom); }
.handmade { background: var(--madder); color: var(--muslin); padding: clamp(80px, 11vw, 160px) var(--gutter); text-align: center; }
.handmade-quote {
  font: 400 italic clamp(1.7rem, 1rem + 2.4vw, 3.25rem)/1.18 var(--display);
  max-width: 26ch; margin: 0 auto 36px; letter-spacing: -.01em;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo); color: var(--muslin); padding: clamp(64px, 8vw, 110px) var(--gutter) 28px; overflow: hidden; }
.site-footer > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.ftr-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; padding-bottom: 56px; border-bottom: 1px solid rgba(238,235,229,.16); }
.ftr-statement { font: 400 clamp(1.5rem, 1rem + 1.6vw, 2.4rem)/1.2 var(--display); max-width: 30ch; }
.ftr-help { justify-self: end; }
.ftr-help p { color: rgba(238,235,229,.7); margin-bottom: 14px; }
.ftr-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 48px 0; }
.ftr-cols h3 { font: 600 .875rem/1.3 var(--sans); color: var(--zari); margin-bottom: 14px; }
.ftr-cols li a, .ftr-contact a { display: inline-block; padding: 4px 0; color: rgba(238,235,229,.82); transition: color .25s; }
.ftr-cols li a:hover, .ftr-contact a:hover { color: #fff; }
.ftr-contact address { color: rgba(238,235,229,.82); margin-bottom: 8px; max-width: 26ch; }
.ftr-mark {
  font: 400 clamp(4rem, 17vw, 17rem)/.8 var(--display); letter-spacing: -.04em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(176,138,62,.5);
  text-align: center; margin-top: 8px; user-select: none;
}
.ftr-base { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: .8125rem; color: rgba(238,235,229,.6); }
.ftr-insta { display: inline-flex; gap: 8px; align-items: center; }

/* ---------- Shop ---------- */
.shop-head { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 28px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .8125rem; color: var(--loom); }
.crumbs svg { width: 12px; height: 12px; opacity: .6; }
.crumbs a:hover { color: var(--madder); }
.shop-title { font: 400 clamp(2.6rem, 1.6rem + 4vw, 6rem)/.95 var(--display); letter-spacing: -.03em; margin-top: 18px; }
.shop-count { color: var(--loom); margin-top: 10px; }
.shop-bar {
  position: sticky; top: var(--header-h); z-index: 60;
  background: color-mix(in srgb, var(--muslin) 92%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: top .5s var(--ease);
}
.header-hidden .shop-bar { top: 0; }
.shop-bar > * { max-width: var(--max); }
.shop-bar { display: flex; align-items: center; gap: 16px; padding: 10px var(--gutter); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: .875rem; transition: background-color .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--indigo); }
.chip.is-on { background: var(--indigo); color: var(--muslin); border-color: var(--indigo); }
.shop-tools { display: flex; align-items: center; gap: 14px; flex: none; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; cursor: pointer; white-space: nowrap; }
.toggle input { appearance: none; width: 34px; height: 20px; border-radius: 10px; background: var(--line-2); position: relative; cursor: pointer; transition: background-color .3s; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); transition: transform .35s var(--ease); }
.toggle input:checked { background: var(--indigo); }
.toggle input:checked::after { transform: translateX(14px); }
.select select, .qty select {
  appearance: none; font: inherit; font-size: .875rem; color: inherit;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%231A2042' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 8px 34px 8px 14px; cursor: pointer;
}
.density { display: flex; gap: 2px; }
.density button { display: grid; grid-auto-flow: column; gap: 2px; padding: 9px; border-radius: 6px; opacity: .45; }
.density button.is-on { opacity: 1; background: rgba(26,32,66,.07); }
.density i { display: block; width: 4px; height: 14px; background: currentColor; border-radius: 1px; }
.grid {
  --cols: 4;
  max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 24px;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 40px clamp(12px, 1.5vw, 24px);
}
.grid.dense-2 { --cols: 2; }
.grid.dense-2 .card-media { aspect-ratio: 3 / 4; }
.more { text-align: center; padding: 24px var(--gutter) 96px; }
.more-count { color: var(--loom); font-size: .875rem; margin-bottom: 14px; }
.empty { max-width: 560px; margin: 0 auto; padding: 72px var(--gutter) 120px; text-align: center; }
.empty-title { font: 400 2rem/1.15 var(--display); margin-bottom: 12px; }
.empty p:not(.empty-title) { color: var(--loom); margin-bottom: 28px; }

/* ---------- Product page ---------- */
.pdp { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 40px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4.5vw, 80px); }
.pdp-gallery { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; }
.pdp-thumbs { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 10px; }
.pdp-thumb { aspect-ratio: 2/3; overflow: hidden; border-radius: var(--r-sm); opacity: .55; outline: 1px solid transparent; outline-offset: 2px; transition: opacity .3s, outline-color .3s; background: var(--muslin-2); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.pdp-thumb.is-on, .pdp-thumb:hover { opacity: 1; }
.pdp-thumb.is-on { outline-color: var(--indigo); }
.pdp-stack { display: grid; gap: 12px; }
.pdp-shot { background: var(--paper); border-radius: var(--r-sm); overflow: hidden; }
.pdp-zoom { display: block; width: 100%; cursor: zoom-in; }
.pdp-img { width: 100%; height: auto; max-height: 150vh; object-fit: contain; margin: 0 auto; }
.pdp-shot:first-child .pdp-img { view-transition-name: product-hero; }
.pdp-dots { display: none; }
.pdp-sticky { position: sticky; top: calc(var(--header-h) + 24px); padding-bottom: 24px; }
.pdp-title { font: 400 clamp(2rem, 1.3rem + 2.2vw, 3.25rem)/1.04 var(--display); letter-spacing: -.02em; margin-top: 18px; }
.pdp-colour { font-size: 1.0625rem; color: var(--loom); margin-top: 10px; }
.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-top: 22px; }
.pdp-price span { font: 400 2rem/1 var(--display); font-variant-numeric: lining-nums; }
.pdp-price s { color: var(--loom); font: 400 1.25rem/1 var(--display); }
.pdp-price small { color: var(--loom); font-size: .8125rem; flex-basis: 100%; }
.pdp-stock { margin-top: 22px; font-size: .9375rem; display: flex; align-items: center; gap: 10px; }
.pdp-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3F7D4E; box-shadow: 0 0 0 4px rgba(63,125,78,.15); }
.pdp-stock.is-sold::before { background: var(--loom); box-shadow: none; }
.pdp-actions { display: grid; gap: 10px; margin-top: 16px; }
.pdp-wa { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: .9375rem; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
.pdp-wa svg { width: 18px; height: 18px; color: #25804A; }
.pdp-wa:hover { border-color: var(--indigo); }
.pdp-facts { margin-top: 30px; border-top: 1px solid var(--line-2); }
.pdp-facts li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.pdp-facts span { color: var(--loom); }
.accordion { margin-top: 18px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 16px 0; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; width: 11px; height: 11px; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transition: transform .45s var(--ease); }
.accordion details[open] summary::after { transform: rotate(135deg); }
.acc-body { padding: 0 0 18px; color: var(--loom); }
.acc-body p + p { margin-top: 10px; }
.acc-body a { text-decoration: underline; text-underline-offset: 3px; }
.rail-related { padding-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); }
.pdp-mobilebar { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 160; background: var(--paper); display: grid; grid-template-rows: 1fr auto; }
.lightbox[hidden] { display: none; }
.lb-stage { overflow: hidden; cursor: zoom-out; display: grid; place-items: center; }
.lb-stage img { max-width: none; height: 200vh; width: auto; will-change: transform; }
.lb-close { position: absolute; top: 16px; right: 16px; z-index: 2; background: var(--muslin); }
.lb-nav { display: flex; justify-content: center; gap: 28px; align-items: center; padding: 16px; font-size: .9375rem; border-top: 1px solid var(--line); }
.lb-nav button { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Bag drawer ---------- */
.bag { position: fixed; inset: 0; z-index: 140; visibility: hidden; }
.bag.is-open { visibility: visible; }
.bag-scrim { position: absolute; inset: 0; background: rgba(26,32,66,.35); opacity: 0; transition: opacity .5s var(--ease); }
.bag.is-open .bag-scrim { opacity: 1; }
.bag-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%);
  background: var(--paper); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .65s var(--ease);
  outline: none;
}
.bag.is-open .bag-panel { transform: none; }
.bag-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.bag-head h2 { font: 400 1.75rem/1 var(--display); }
.bag-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.bag-empty { margin: auto; text-align: center; padding: 40px 24px; }
.bag-empty p { font: 400 1.5rem/1.2 var(--display); margin-bottom: 20px; }
.ship-meter { padding: 16px 24px; font-size: .875rem; border-bottom: 1px solid var(--line); }
.ship-bar { display: block; height: 3px; background: var(--muslin-2); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.ship-bar span { display: block; height: 100%; width: var(--p); background: var(--zari); border-radius: 2px; transition: width .8s var(--ease); }
.bag-lines { flex: 1; overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.bag-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bag-line.is-gone { opacity: .6; }
.bag-thumb { aspect-ratio: 2/3; overflow: hidden; border-radius: var(--r-sm); background: var(--muslin-2); }
.bag-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.bag-name { font-weight: 500; font-size: .9375rem; line-height: 1.35; }
.bag-colour, .bag-one { font-size: .8125rem; color: var(--loom); margin-top: 3px; }
.bag-warn { font-size: .8125rem; color: var(--madder); margin-top: 6px; }
.bag-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.bag-price { font: 400 1.0625rem/1 var(--display); }
.qty { display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; font-size: .8125rem; }
.qty select { padding: 4px 28px 4px 10px; }
.bag-foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); background: var(--paper); }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; font-size: .9375rem; }
.totals dt { color: var(--loom); }
.totals-grand { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px !important; }
.totals-grand dt { color: var(--indigo); font-weight: 600; }
.totals-grand dd { font: 400 1.5rem/1 var(--display); }
.bag-foot .btn { margin-top: 16px; }
.bag-view { display: block; text-align: center; margin-top: 12px; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; }

/* Fly-to-bag ghost */
.fly { position: fixed; z-index: 200; pointer-events: none; border-radius: 999px 999px 4px 4px; overflow: hidden; }
.fly img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }

/* ---------- Search ---------- */
.search { position: fixed; inset: 0; z-index: 130; background: rgba(26,32,66,.35); }
.search[hidden] { display: none; }
.search-inner { background: var(--paper); padding: 20px var(--gutter) 36px; max-height: 90vh; overflow-y: auto; clip-path: inset(0 0 0 0); animation: drop .6s var(--ease); }
@keyframes drop { from { clip-path: inset(0 0 100% 0); } }
.search-form { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--indigo); }
.search-form input { flex: 1; border: 0; background: transparent; font: 400 clamp(1.6rem, 1rem + 2.4vw, 3rem)/1.2 var(--display); color: var(--indigo); padding: 12px 0; outline: none; }
.search-form input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-form input::placeholder { color: rgba(26,32,66,.35); }
.search-suggest { max-width: 1100px; margin: 18px auto 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .875rem; }
.search-hint { color: var(--loom); margin-right: 4px; }
.search-suggest a { padding: 6px 14px; border: 1px solid var(--line-2); border-radius: var(--r-pill); }
.search-suggest a:hover { border-color: var(--indigo); }
.search-results { max-width: 1100px; margin: 28px auto 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.search-results .sr-card img { aspect-ratio: 2/3; object-fit: cover; object-position: 50% 10%; width: 100%; border-radius: var(--r-sm); background: var(--muslin-2); }
.sr-card p { font-size: .8125rem; margin-top: 8px; line-height: 1.35; }
.sr-card p span { display: block; color: var(--loom); }
.search-all { grid-column: 1 / -1; justify-self: start; }
.search-none { grid-column: 1 / -1; color: var(--loom); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 210;
  background: var(--indigo); color: var(--muslin);
  padding: 12px 20px; border-radius: var(--r-pill); font-size: .9375rem;
  transform: translate(-50%, 150%); opacity: 0; visibility: hidden;
  transition: transform .55s var(--ease), opacity .3s, visibility 0s .55s;
  max-width: calc(100vw - 32px);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .55s var(--ease), opacity .3s; }
.toast.is-error { background: var(--madder); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .875rem; font-weight: 500; }
.opt { color: var(--loom); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--indigo); width: 100%;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 13px 14px; transition: border-color .25s, box-shadow .25s;
}
.field select { appearance: none; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%231A2042' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(26,32,66,.1); }
.field [aria-invalid="true"] { border-color: var(--madder); }
.field-error { color: var(--madder); font-size: .8125rem; }
.fields.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.fields.three { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr; gap: 0 16px; }
.hint { font-size: .8125rem; color: var(--loom); }
.hint a { text-decoration: underline; }
.center { text-align: center; margin-top: 12px; }
.alert { background: rgba(140,42,34,.08); border: 1px solid rgba(140,42,34,.35); color: var(--madder); padding: 14px 16px; border-radius: 8px; margin: 18px 0; }
.alert-ok { background: rgba(63,125,78,.08); border-color: rgba(63,125,78,.35); color: #2F6340; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font: 400 1.5rem/1.2 var(--display); margin-bottom: 14px; padding: 0; }

/* ---------- Cart / checkout ---------- */
.narrow-head { max-width: 900px; margin: 0 auto; padding: 56px var(--gutter) 24px; }
.narrow { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter) 96px; }
.cart-page { max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter) 96px; display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cart-line.is-gone { opacity: .6; }
.cart-line:first-of-type { border-top: 1px solid var(--line); }
.cart-thumb { aspect-ratio: 2/3; overflow: hidden; border-radius: var(--r-sm); background: var(--muslin-2); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.cart-name { font: 400 1.375rem/1.2 var(--display); }
.cart-colour, .cart-sku { color: var(--loom); font-size: .875rem; margin-top: 4px; }
.cart-info .link-btn { margin-top: 14px; display: block; }
.cart-price { font: 400 1.25rem/1 var(--display); }
.cart-summary, .co-summary { position: sticky; top: calc(var(--header-h) + 24px); background: var(--paper); border-radius: 8px; padding: 28px; }
.summary-title { font: 400 1.5rem/1.2 var(--display); margin-bottom: 16px; }
.cart-summary .btn { margin-top: 18px; }
.summary-note { font-size: .8125rem; color: var(--loom); margin-top: 12px; }
.checkout { max-width: 1240px; margin: 0 auto; padding: 40px var(--gutter) 96px; display: grid; grid-template-columns: 1fr 400px; gap: 64px; align-items: start; }
.co-form .page-title { margin-bottom: 28px; }
.pay-options { display: grid; gap: 10px; }
.pay-opt { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; background: var(--paper); transition: border-color .25s; }
.pay-opt:has(input:checked) { border-color: var(--indigo); box-shadow: inset 0 0 0 1px var(--indigo); }
.pay-opt input { accent-color: var(--indigo); margin-top: 4px; }
.pay-opt small { display: block; color: var(--loom); font-size: .8125rem; margin-top: 2px; }
.co-lines li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; }
.co-lines li.is-gone { opacity: .5; }
.co-thumb { position: relative; display: block; aspect-ratio: 2/3; border-radius: var(--r-sm); overflow: hidden; background: var(--muslin-2); }
.co-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.co-thumb b { position: absolute; top: 2px; right: 2px; background: var(--indigo); color: #fff; font-size: .6875rem; min-width: 18px; height: 18px; border-radius: 9px; text-align: center; line-height: 18px; }
.co-name { font-size: .875rem; font-weight: 500; line-height: 1.35; }
.co-name small { display: block; color: var(--loom); font-weight: 400; }
.co-price { font: 400 1rem/1 var(--display); }
.co-summary .totals { margin: 12px 0 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.header-minimal .site-header { position: relative; }

/* Thank-you */
.thanks { max-width: 720px; margin: 0 auto; padding: 64px var(--gutter) 110px; text-align: center; }
.thanks-thread { width: 220px; height: 30px; margin: 0 auto 28px; display: block; overflow: visible; }
.thanks-thread path { fill: none; stroke: var(--zari); stroke-width: 1.5; stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2s var(--ease) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.thanks-lead { font-size: 1.125rem; color: var(--loom); margin: 18px auto 28px; max-width: 48ch; }
.thanks-card { background: var(--paper); border-radius: 8px; padding: 24px; text-align: left; margin: 32px 0 20px; }
.thanks-addr { margin-top: 18px; font-size: .9375rem; color: var(--loom); }
.thanks-addr strong { color: var(--indigo); font-weight: 600; }
.thanks-note { font-size: .875rem; color: var(--loom); margin-bottom: 24px; }

/* ---------- Content pages ---------- */
.about-hero { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 120px) var(--gutter) 48px; }
.about-body { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 110px; display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.about-media { position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--r-sm); overflow: hidden; background: var(--muslin-2); }
.about-media img { width: 100%; }
.prose { max-width: 62ch; font-size: 1.0625rem; line-height: 1.7; }
.prose h2 { font: 400 clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem)/1.15 var(--display); margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 600 1.0625rem/1.3 var(--sans); margin: 28px 0 10px; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 12px 0; }
.prose li { position: relative; padding-left: 22px; margin: 6px 0; }
.prose li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--zari); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .btn { margin-top: 32px; text-decoration: none; }
.policy { margin: 0 auto; padding: 24px var(--gutter) 110px; max-width: 900px; }
.policy > * { max-width: 62ch; }
.policy-addr { background: var(--paper); padding: 18px 20px; border-left: 2px solid var(--zari); margin: 14px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: .875rem; }
.toc a:hover { border-color: var(--indigo); }
.contact { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); }
.contact-ways { display: grid; gap: 0; margin: 36px 0 28px; border-top: 1px solid var(--line-2); }
.way { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-2); transition: padding .4s var(--ease); }
.way:hover { padding-left: 8px; }
.way svg { width: 22px; height: 22px; }
.way strong { display: block; font: 400 1.5rem/1.1 var(--display); }
.way span { color: var(--loom); }
.way span strong { color: var(--indigo); }
.contact-addr { color: var(--loom); max-width: 34ch; }
.contact-form { background: var(--paper); padding: clamp(24px, 3vw, 40px); border-radius: 8px; align-self: start; }
.track-form .btn { margin-top: 4px; }
.track-result { margin-top: 28px; background: var(--paper); padding: 24px; border-radius: 8px; }
.track-status { font: 400 1.75rem/1.2 var(--display); margin-bottom: 8px; }
.track-result .btn { margin: 16px 0; }
.lost { text-align: center; padding: 72px var(--gutter) 130px; }
.lost-code { font: 400 clamp(8rem, 26vw, 22rem)/.8 var(--display); color: transparent; -webkit-text-stroke: 1px var(--zari); }
.lost .lead { margin: 16px auto 28px; }

/* ---------- Reveal helpers (JS adds .is-in) ---------- */
.js [data-reveal] { clip-path: inset(100% 0 0 0); transform: scale(1.08); transition: clip-path 1.3s var(--ease), transform 1.6s var(--ease); }
.js [data-reveal].is-in { clip-path: inset(0 0 0 0); transform: none; }

/* ---------- View transitions ---------- */
::view-transition-old(root) { animation: vt-out .5s var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in .8s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-24px); } }
@keyframes vt-in { from { opacity: 0; clip-path: inset(18% 0 0 0); transform: translateY(40px); } }
::view-transition-group(product-hero) { animation-duration: .8s; animation-timing-function: var(--ease); }
::view-transition-old(product-hero), ::view-transition-new(product-hero) { height: 100%; object-fit: cover; overflow: clip; }
::view-transition-group(site-header) { animation: none; }
::view-transition-old(site-header) { display: none; }
::view-transition-new(site-header) { animation: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hdr-nav { gap: 20px; }
  .hdr-nav .nav-link:nth-child(3) { display: none; }
  .grid { --cols: 3; }
  .search-results { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-h: 62px; }
  .hdr-nav { display: none; }
  .hdr-burger { display: block; grid-column: 1; grid-row: 1; justify-self: start; }
  .wordmark { font-size: 1.5rem; }
  .hide-sm { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: calc(var(--header-h) + 16px); gap: 32px; }
  .hero-title { font-size: clamp(3.4rem, 15vw, 6.5rem); }
  .loom { height: 50svh; order: -1; grid-template-columns: repeat(5, 1fr); }
  .hero-scroll { display: none; }
  .origins-intro, .story, .about-body, .contact, .cart-page, .checkout { grid-template-columns: 1fr; }
  .origins-intro p { justify-self: start; }
  .origins-track { width: auto; flex-direction: column; gap: 40px; padding-top: 56px; padding-left: calc(var(--gutter) + 28px); }
  .origins-thread { display: none; }
  .origin { width: auto; padding-top: 0; }
  .origin::before { content: ""; position: absolute; left: -23px; top: 18px; bottom: -48px; width: 1px; background: var(--zari); }
  .origin:last-child::before { display: none; }
  .origin-knot { left: -28px; top: 13px; }
  .ftr-top { grid-template-columns: 1fr; }
  .ftr-help { justify-self: start; }
  .ftr-cols { grid-template-columns: 1fr 1fr; }
  .pdp { grid-template-columns: 1fr; padding-top: 0; padding-left: 0; padding-right: 0; }
  .pdp-gallery { display: block; position: relative; }
  .pdp-thumbs { display: none; }
  .pdp-stack { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; scrollbar-width: none; }
  .pdp-stack::-webkit-scrollbar { display: none; }
  .pdp-shot { flex: 0 0 100%; scroll-snap-align: center; border-radius: 0; aspect-ratio: 3 / 4.4; }
  .pdp-zoom, .pdp-img { height: 100%; }
  .pdp-img { object-fit: cover; object-position: 50% 15%; max-height: none; }
  .pdp-dots { display: flex; justify-content: center; gap: 6px; position: absolute; bottom: 14px; left: 0; right: 0; }
  .pdp-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(26,32,66,.25); transition: width .4s var(--ease), background-color .3s; }
  .pdp-dots span.is-on { width: 20px; border-radius: 3px; background: var(--indigo); }
  .pdp-info { padding: 0 var(--gutter); }
  .pdp-sticky { position: static; }
  .pdp-mobilebar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: var(--paper); border-top: 1px solid var(--line);
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    transform: translateY(110%); transition: transform .5s var(--ease);
  }
  .pdp-mobilebar.is-on { transform: none; }
  .pdp-mobilebar strong { font: 400 1.25rem/1 var(--display); display: block; }
  .pdp-mobilebar span { font-size: .75rem; color: var(--loom); }
  .cart-summary, .co-summary { position: static; }
  .co-summary { order: -1; }
  .about-media { position: static; }
  .shop-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .shop-tools { justify-content: space-between; }
}
@media (max-width: 640px) {
  .notice { font-size: .75rem; }
  .grid { --cols: 2; gap: 28px 12px; }
  .grid.dense-2 { --cols: 1; }
  .density button[data-density="2"] i:nth-child(2) { display: none; }
  .card-title { font-size: .875rem; }
  .card-colour { font-size: .75rem; }
  .section-head { grid-template-columns: 1fr; }
  .section-head .text-link { grid-column: 1; grid-row: 3; justify-self: start; margin-top: 8px; }
  .rail { grid-auto-columns: 62vw; }
  .story-points { grid-template-columns: 1fr; gap: 20px; }
  .weave-count { font-size: .8125rem; }
  .ftr-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ftr-contact { grid-column: 1 / -1; }
  .ftr-base { flex-direction: column; }
  .fields.two, .fields.three { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 86px 1fr; }
  .cart-price { grid-column: 2; }
  .search-results { grid-template-columns: repeat(2, 1fr); }
  .weave-peek { display: none; }
  .hero-ctas .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { clip-path: none; transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .first-visit .intro { display: none; }
}
