:root {
  --spider: url("../assets/spider.webp");
  --black: #000;
  --bone: #dcd8d0;
  --ash: #8d8a85;
  --smoke: #2b2a29;
  --panel-hi: #333231;
  --panel-lo: #151515;
  --text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  /* spider artwork: where the thread meets the head, as a share of image height */
  --head: 28.4%;
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
/* no transitions until the page has loaded (main.js removes .preload); stops Safari flashing the hidden pop-up and cart */
.preload *, .preload *::before, .preload *::after { transition: none !important; }
/* pre-launch switch: <html class="prelaunch"> hides buying (.post-only) and shows sign-up (.pre-only).
   Remove the class in index.html at launch. */
.prelaunch .post-only { display: none !important; }
html:not(.prelaunch) .pre-only { display: none !important; }
html {
  background: var(--black);
  scroll-padding-top: env(safe-area-inset-top, 0px);
  scrollbar-color: #3a3938 var(--black);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font-family: var(--text);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* safe-area strip behind the fixed header */
body::before {
  /* reaches above the screen so the overscroll bounce at the top stays black too */
  content: ""; position: fixed; left: 0; right: 0; top: -120px; height: calc(120px + env(safe-area-inset-top, 0px));
  background: var(--black); z-index: 40;
}
/* film grain, static */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .11;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .86  0 0 0 0 .85  0 0 0 0 .82  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
::selection { background: var(--bone); color: var(--black); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--bone); outline-offset: 4px; }
img { display: block; max-width: 100%; }

/* ---------- header ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) clamp(18px, 4vw, 56px) 12px;
  /* solid, not a gradient: iPhone Safari only fills the strip behind the Dynamic Island
     with the header's colour when the header has a plain background colour */
  background-color: var(--black);
}
/* the soft fade under the header */
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 26px; pointer-events: none;
  background: linear-gradient(to bottom, #000, rgba(0,0,0,0));
}
.nav .home {
  display: block; width: 38px; height: 42px;
  background: var(--bone);
  /* longhands with a plain url: Safari mishandles the mask shorthand combined with var() */
  -webkit-mask-image: url("../assets/spider.webp"); mask-image: url("../assets/spider.webp");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  transition: background .3s;
  animation: spin 7s linear infinite;
}
.nav .home:hover { background: #fff; }
.nav ul { display: flex; gap: clamp(18px, 3vw, 40px); list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a, .nav button.cart-btn {
  font-family: var(--text); font-size: .9rem; line-height: 1.65; font-weight: 400; letter-spacing: .06em; text-decoration: none;
  background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--bone); display: block;
  position: relative;
}
.nav a::after, .nav button.cart-btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.nav a:hover::after, .nav button.cart-btn:hover::after { transform: scaleX(1); }

/* ---------- scroll spider (in the left margin, above the page content so the cover
   photo can't hide it, below the nav, cart and pop-up) ---------- */
main, .foot { position: relative; z-index: 1; }
.web {
  --wx: clamp(12px, 3.4vw, 50px); --ws: clamp(22px, 2.6vw, 36px);
  position: fixed; top: 0; bottom: 0; left: var(--wx); width: 0; z-index: 2; pointer-events: none;
}
.web-line {
  position: absolute; left: 0; top: 0; width: 1px; height: 100%;
  background: linear-gradient(to bottom, rgba(220,216,208,.08), rgba(220,216,208,.42));
  transform-origin: top; transform: scaleY(.12);
}
.web-spider {
  position: absolute; left: calc(var(--ws) / -2); top: 0; width: var(--ws); height: calc(var(--ws) * 1.1143);
  background: var(--bone); opacity: .62; transform-origin: 50% 28.4%; will-change: transform;
  transform: translateY(calc(96px - var(--ws) * 1.1143 * .284));
  -webkit-mask-image: url("../assets/spider.webp"); mask-image: url("../assets/spider.webp");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}

/* ---------- cover ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.cover {
  position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(ellipse 72% 78% at 50% 46%, #000 52%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 78% at 50% 46%, #000 52%, transparent 100%);
  animation: develop 2.8s ease-out both;
}
.cover video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; pointer-events: none;
  background: linear-gradient(to top, #000 8%, rgba(0,0,0,0));
}
.hero-cta {
  position: absolute; z-index: 2; left: 50%; bottom: calc(30px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  font-size: .95rem; font-weight: 400; letter-spacing: .08em; text-decoration: none;
  padding: 8px 2px; border-bottom: 1px solid rgba(220,216,208,.5); white-space: nowrap;
  animation: fade 1.4s ease 2.2s both; transition: border-color .3s, color .3s;
}
.hero-cta:hover { border-color: #fff; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* tall, narrow screens: scale the 16:9 video up so the tee fills the width, with soft edges */
@media (max-aspect-ratio: 1/1) {
  .cover { -webkit-mask-image: none; mask-image: none; }
  .cover video {
    position: absolute; top: 50%; left: 50%; width: 215vw; max-width: none; height: auto; transform: translate(-50%, -54%);
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 42%, transparent 100%);
            mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 42%, transparent 100%);
  }
}
@keyframes develop { from { opacity: 0; filter: brightness(.3); } to { opacity: 1; filter: brightness(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin {
  from { transform: perspective(170px) rotateY(0deg); }
  to   { transform: perspective(170px) rotateY(360deg); }
}

/* ---------- shop ---------- */
.shop {
  padding: clamp(80px, 14vh, 160px) clamp(18px, 5vw, 72px);
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: clamp(28px, 5vw, 80px); align-items: start;
}
.stage-wrap { position: sticky; top: 84px; }
/* Product photos carry their own dark backdrop, so the stage just frames them. */
.stage {
  position: relative; aspect-ratio: 1145 / 1374; overflow: hidden; cursor: pointer;
  max-width: calc((100vh - 120px) * 1145 / 1374); margin: 0 auto;
  background: var(--panel-lo); border: 1px solid var(--smoke);
}
.stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .55s ease;
}
.stage img.off { opacity: 0; }
.flip {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 48px; height: 48px; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: rgba(0,0,0,.45); color: var(--bone); border: 1px solid rgba(220,216,208,.25); border-radius: 50%;
  opacity: 0; transition: opacity .3s, background .3s, border-color .3s;
}
.flip.prev { left: 14px; }
.flip.next { right: 14px; }
.flip svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.flip:hover { background: rgba(0,0,0,.75); border-color: var(--bone); }
.flip:focus-visible { outline: 1px solid var(--bone); outline-offset: 3px; }
.view-label {
  position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; pointer-events: none;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ash);
  opacity: 0; transition: opacity .3s;
}
.stage:hover .flip, .stage:focus-within .flip,
.stage:hover .view-label, .stage:focus-within .view-label { opacity: 1; }
/* No hover on touch screens: keep the arrows showing. */
@media (hover: none) { .flip, .view-label { opacity: 1; } }

.info h2 {
  font-weight: 500; font-size: clamp(2.6rem, 5.6vw, 4.2rem);
  line-height: 1.02; margin: 0 0 16px; letter-spacing: -.01em;
}
.soon { margin: 0 0 28px; font-size: .9rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ash); }
.notify-note { margin: 12px 0 0; font-size: .9rem; color: var(--ash); }
.price { font-size: 1.1rem; font-weight: 400; margin: 0 0 28px; letter-spacing: .03em; }
.size-set { border: 0; margin: 0 0 22px; padding: 0; }
.size-set legend { padding: 0; font-size: .9rem; letter-spacing: .06em; margin-bottom: 12px; }
.sizes { display: flex; gap: 10px; flex-wrap: wrap; }
.sizes input { position: absolute; opacity: 0; pointer-events: none; }
.sizes label {
  min-width: 56px; text-align: center; padding: 11px 0; cursor: pointer;
  border: 1px solid #44423f; font-size: .95rem; transition: border-color .25s, background .25s, color .25s;
}
.sizes label:hover { border-color: var(--bone); }
.sizes input:checked + label { background: var(--bone); color: var(--black); border-color: var(--bone); }
.sizes input:focus-visible + label { outline: 1px solid var(--bone); outline-offset: 3px; }
.sizes input:disabled + label,
.sizes input:disabled + label:hover { color: var(--ash); border-color: var(--smoke); text-decoration: line-through; cursor: default; }
.add {
  width: 100%; padding: 16px 0; cursor: pointer; font-size: 1rem; font-weight: 500; letter-spacing: .06em;
  background: var(--bone); color: var(--black); border: 1px solid var(--bone);
  transition: background .3s, color .3s;
}
.add:hover { background: transparent; color: var(--bone); }
.msg { min-height: 1.6em; margin: 10px 0 0; font-size: .9rem; color: var(--ash); }
.facts { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid var(--smoke); }
.facts li { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--smoke); font-size: .95rem; }
.facts li span:first-child { color: var(--ash); }
.facts li span:last-child { text-align: right; }

/* ---------- worn ---------- */
.worn { padding: clamp(40px, 8vh, 100px) clamp(18px, 5vw, 72px) clamp(80px, 14vh, 160px); max-width: 1360px; margin: 0 auto; }
/* one lifestyle photo on its own dark backdrop, shown edge to edge */
.worn-photo { margin: 0; overflow: hidden; border: 1px solid var(--smoke); background: var(--panel-lo); }
.worn-photo img { width: 100%; height: auto; }

/* ---------- coda ---------- */
.coda { position: relative; text-align: center; padding: 0 20px clamp(60px, 10vh, 110px); overflow: hidden; }
.coda-spider { --w: clamp(150px, 20vw, 230px); position: relative; width: var(--w); height: calc(var(--w) * 1.1143); margin: 36svh auto 40px; }
.coda-spider .thread {
  position: absolute; left: 50%; bottom: calc(100% - var(--head)); width: 1px;
  height: calc(36svh + var(--w) * .3164); background: linear-gradient(to top, rgba(220,216,208,.45), rgba(220,216,208,.1));
  transform: scaleY(0); transform-origin: bottom; transition: transform 2.2s cubic-bezier(.3,.1,.2,1);
}
.coda-spider .body {
  position: absolute; inset: 0; background: var(--spider) center / 100% 100% no-repeat; opacity: 0;
  transition: opacity 1.6s ease .9s;
}
.coda.in .thread { transform: scaleY(1); }
.coda.in .body { opacity: .85; }
.coda h2 { font-weight: 500; letter-spacing: -.01em; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.05; margin: 0 0 10px; }
.coda p { margin: 0; color: var(--ash); }
.coda-cta {
  margin-top: 26px; padding: 8px 2px; background: none; border: 0; border-bottom: 1px solid rgba(220,216,208,.5); cursor: pointer;
  font-size: .95rem; font-weight: 400; letter-spacing: .08em; transition: border-color .3s, color .3s;
}
.coda-cta:hover { border-color: #fff; color: #fff; }
.foot {
  width: min(100% - 2 * clamp(18px, 5vw, 72px), 1216px); margin: 0 auto; padding: 0 0 calc(26px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--smoke); font-size: .88rem; color: var(--ash);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--bone); }
/* shipping, payment, policy: three small columns, stacked on phones */
.foot-info {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px);
  padding: 36px 0 32px; font-size: .8rem; line-height: 1.6;
}
.foot-info h2 { font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--bone); margin: 0 0 12px; }
.foot-info p { margin: 0 0 8px; max-width: 42ch; }
.pay { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 12px 0; padding: 0; }
.pay li { width: 52px; height: 34px; display: grid; place-items: center; border: 1px solid var(--smoke); }
.pay svg { width: 28px; height: 28px; fill: var(--bone); opacity: .85; }
.foot-base {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid var(--smoke);
}
@media (max-width: 760px) { .foot-info { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- cart ---------- */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.66); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(430px, 100%);
  background: #0d0d0d; border-left: 1px solid var(--smoke);
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  transform: translateX(100%); visibility: hidden; transition: transform .45s cubic-bezier(.3,.1,.2,1), visibility .45s;
}
body.cart-open .scrim { opacity: 1; visibility: visible; }
body.cart-open .drawer { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--smoke); }
.drawer-head h2 { font-weight: 500; letter-spacing: -.01em; font-size: 2rem; margin: 0; line-height: 1; }
.drawer-head button { background: none; border: 0; cursor: pointer; font-size: .9rem; letter-spacing: .06em; color: var(--ash); padding: 6px 0; }
.drawer-head button:hover { color: var(--bone); }
.lines { flex: 1; overflow-y: auto; padding: 8px 26px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--smoke); align-items: center; }
.line .thumb { width: 76px; height: 76px; background: radial-gradient(circle at 50% 40%, #3a3938, #1a1a1a); }
.line .thumb img { width: 100%; height: 100%; object-fit: contain; }
.line h3 { font-weight: 500; font-size: 1.2rem; letter-spacing: .02em; margin: 0; line-height: 1.2; }
.line .meta { color: var(--ash); font-size: .9rem; margin: 2px 0 8px; }
.qty { display: inline-flex; border: 1px solid #44423f; }
.qty button { width: 32px; height: 30px; background: none; border: 0; cursor: pointer; font-size: 1rem; }
.qty button:hover { background: var(--bone); color: var(--black); }
.qty span { width: 32px; text-align: center; line-height: 30px; font-size: .95rem; }
.line .amt { font-size: .95rem; align-self: start; padding-top: 4px; }
.empty { padding: 36px 0; color: var(--ash); }
.empty p { margin: 0 0 18px; max-width: 30ch; }
.empty button { background: none; border: 1px solid var(--bone); padding: 11px 22px; cursor: pointer; letter-spacing: .06em; transition: background .3s, color .3s; }
.empty button:hover { background: var(--bone); color: var(--black); }
.drawer-foot { padding: 20px 26px calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--smoke); }
.sub { display: flex; justify-content: space-between; }
.drawer-foot .add[disabled] { opacity: .35; cursor: default; }
.drawer-foot .add[disabled]:hover { background: var(--bone); color: var(--black); }
.note { margin: 12px 0 0; font-size: .88rem; color: var(--ash); min-height: 1.4em; }

/* ---------- currency ---------- */
.cur-wrap { position: relative; }
.cur-btn {
  display: flex; align-items: center; gap: 8px; background-color: transparent; color: var(--bone);
  border: 0; font-size: .9rem; font-weight: 400; letter-spacing: .06em;
  line-height: 1.65; padding: 6px 16px 6px 0; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23dcd8d0' stroke-width='1.2'/></svg>");
  background-repeat: no-repeat; background-position: right 2px center;
}
.cur-btn:hover { color: #fff; }
/* flags keep their real colours; a hairline keeps white ones (Japan) from melting into black */
.flag { flex-shrink: 0; width: 18px; height: auto; aspect-ratio: 4 / 3; border-radius: 2px; box-shadow: 0 0 0 1px rgba(220,216,208,.18); }
.nav .cur-list {
  display: block; position: absolute; right: -14px; top: calc(100% + 10px); z-index: 35; min-width: 260px; max-height: 70vh; overflow-y: auto;
  margin: 0; padding: 6px; list-style: none;
  background: #000; border: 1px solid var(--smoke); box-shadow: 0 20px 44px rgba(0,0,0,.7);
}
.nav .cur-list[hidden] { display: none; }
.cur-list:focus { outline: none; }
.cur-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; font-size: .88rem; color: var(--ash); }
.cur-list li.active { background: #161616; color: var(--bone); }
.cur-list .name { white-space: nowrap; }
.cur-list .code { min-width: 3.2em; color: var(--bone); font-weight: 500; letter-spacing: .06em; }
.cur-list li[aria-selected="true"]::after {
  content: ""; width: 10px; height: 6px; margin-left: auto; transform: rotate(-45deg) translateY(-2px);
  border-left: 1.5px solid var(--bone); border-bottom: 1.5px solid var(--bone);
}
.cur-list:focus-visible li.active { outline: 1px solid var(--ash); outline-offset: -1px; }

/* ---------- member pop-up ---------- */
body.locked { overflow: hidden; }
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; visibility: hidden; opacity: 0; transition: opacity .5s ease, visibility .5s; }
.gate.open { visibility: visible; opacity: 1; }
.gate-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.78); }
.gate-card {
  position: relative; width: min(440px, 100%); max-height: 100%; overflow-y: auto; text-align: center;
  background: #0d0d0d; border: 1px solid #3a3938; padding: 40px 30px 26px;
  transform: translateY(14px); transition: transform .6s cubic-bezier(.3,.1,.2,1);
}
.gate.open .gate-card { transform: none; }
.gate-card:focus { outline: none; }
.gate-mark {
  width: 46px; height: 51px; margin: 0 auto 18px; background: var(--bone);
  -webkit-mask-image: url("../assets/spider.webp"); mask-image: url("../assets/spider.webp");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.gate-card h2 { font-weight: 500; letter-spacing: -.01em; font-size: clamp(1.9rem, 6vw, 2.4rem); line-height: 1.05; margin: 0 0 12px; }
.gate-card p { margin: 0 auto 22px; max-width: 34ch; color: #bdb9b1; }
.gate-card input[type="email"] {
  width: 100%; padding: 15px 14px; margin-bottom: 12px; background: transparent; color: var(--bone);
  border: 1px solid #44423f; border-radius: 0; font: inherit; font-size: 1rem; font-weight: 400; text-align: center;
}
.gate-card input[type="email"]::placeholder { color: #75726d; }
.gate-card input[type="email"]:focus { outline: none; border-color: var(--bone); }
.gate-card .msg { margin: 10px 0 0; min-height: 1.4em; max-width: none; color: #cfa9a3; }
.gate-card .gate-fine { margin: 14px auto 0; max-width: 40ch; font-size: .75rem; line-height: 1.5; color: var(--ash); }
.gate-skip { background: none; border: 0; cursor: pointer; margin-top: 6px; padding: 8px; color: var(--ash); font-size: .9rem; letter-spacing: .04em; }
.gate-skip:hover { color: var(--bone); }
.gate-x { position: absolute; top: 8px; right: 12px; background: none; border: 0; cursor: pointer; font-size: 1.7rem; line-height: 1; color: var(--ash); padding: 6px 8px; }
.gate-x:hover { color: var(--bone); }

/* ---------- cart extras ---------- */
.code-row { display: flex; gap: 8px; }
.code-row input {
  flex: 1; min-width: 0; padding: 11px 12px; background: transparent; color: var(--bone); border: 1px solid #44423f;
  border-radius: 0; font: inherit; font-size: .95rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase;
}
.code-row input::placeholder { text-transform: none; letter-spacing: .02em; color: #75726d; }
.code-row input:focus { outline: none; border-color: var(--bone); }
.code-row button { padding: 0 18px; background: none; border: 1px solid var(--bone); cursor: pointer; letter-spacing: .06em; transition: background .3s, color .3s; }
.code-row button:hover { background: var(--bone); color: var(--black); }
#code-note { margin: 8px 0 14px; }
.sub[hidden] { display: none; }
.sub { margin-bottom: 8px; }
.sub.disc { align-items: baseline; gap: 12px; font-size: .88rem; color: var(--ash); }
.sub.disc strong { color: var(--bone); font-weight: 500; letter-spacing: .04em; }
.sub.disc button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ash); text-decoration: underline; text-underline-offset: 3px; }
.sub.disc button:hover { color: var(--bone); }
.sub.total { margin: 6px 0 16px; padding-top: 10px; border-top: 1px solid var(--smoke); font-weight: 500; }

/* ---------- contact and policy pages ---------- */
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.page { max-width: 760px; margin: 0 auto; padding: clamp(120px, 18vh, 170px) clamp(18px, 5vw, 72px) clamp(60px, 10vh, 100px); }
.page h1 { font-weight: 500; font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: -.01em; line-height: 1.05; margin: 0 0 14px; }
.page .lede { color: #bdb9b1; margin: 0 0 40px; max-width: 52ch; }
.page section { padding: 30px 0; border-top: 1px solid var(--smoke); scroll-margin-top: 90px; }
.page h2 { font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.page p, .page li, .page dd { color: #bdb9b1; font-size: .95rem; max-width: 62ch; }
.page p { margin: 0 0 12px; }
.page ul { margin: 0 0 12px; padding-left: 1.1em; }
.page li { margin-bottom: 6px; }
.page a:not(.big-link) { text-underline-offset: 3px; }
.page a:hover { color: #fff; }
.big-link { display: inline-block; font-size: clamp(1.3rem, 4vw, 1.7rem); font-weight: 400; text-decoration: none; border-bottom: 1px solid var(--ash); margin: 0 0 14px; word-break: break-all; }
.big-link:hover { border-color: var(--bone); }
.qa { margin: 0; }
.qa dt { font-weight: 500; margin: 18px 0 4px; }
.qa dt:first-child { margin-top: 0; }
.qa dd { margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 40px; font-size: .88rem; }
.toc a { color: var(--ash); text-decoration: none; }
.toc a:hover { color: var(--bone); }
.foot-simple { border-top: 0; }
.foot-simple .foot-base { border-top: 1px solid var(--smoke); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.foot-info .foot-links a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .shop { grid-template-columns: 1fr; }
  .stage-wrap { position: static; }
  /* taller crop on narrow screens so the model isn't tiny */
  .worn-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 52% 50%; }
}

/* phones: tighten the nav so it fits at 360px */
@media (max-width: 600px) {
  .nav .home { flex-shrink: 0; }
  .nav ul { gap: 14px; }
  .nav a, .nav button.cart-btn, .cur-btn { font-size: .82rem; letter-spacing: .03em; }
  .cur-btn { gap: 6px; }
  /* keep the spider inside the 18px page gutter so it never sits over text */
  .web { --wx: 9px; --ws: 18px; }
  .nav button.cart-btn { white-space: nowrap; }
}
/* very narrow phones: the flag stays in the menu but leaves the button, so the nav fits */
@media (max-width: 374px) { .cur-btn .flag { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .coda-spider .thread { transform: scaleY(1); }
  .coda-spider .body { opacity: .85; }
}
